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.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --enable-apop enable client-side support for POP3 and APOP"
17 --enable-debug enable nmh code debugging"
19 --enable-masquerade[='draft_from mmailid username_extension']
20 enable up to 3 types of address masquerading [none]"
22 --enable-mhe enable mhe support (DEFAULT)"
24 --enable-pop enable client-side support for plain POP3"
26 --with-cyrus-sasl=<dir> Specify location of Cyrus SASL library for auth"
28 --with-editor=EDITOR specify the default editor"
30 --with-hash-backup use # as the backup prefix (default: ,)"
32 --with-hesiod=PREFIX specify location of Hesiod"
34 --with-krb4=PREFIX specify location of Kerberos V4 for KPOP support"
36 --with-mts=MTS specify the default mail transport agent/service"
38 --with-pager=PAGER specify the default pager"
40 --with-smtpservers='SMTPSERVER1[ SMTPSERVER2...]'
41 specify the default SMTP server(s) [localhost]"
42 ac_default_prefix=/usr/local/nmh
44 # Initialize some variables set by options.
45 # The variables have the same names as the options, with
46 # dashes changed to underlines.
48 cache_file=./config.cache
57 program_transform_name=s,x,x,
65 bindir='${exec_prefix}/bin'
66 sbindir='${exec_prefix}/sbin'
67 libexecdir='${exec_prefix}/libexec'
68 datadir='${prefix}/share'
69 sysconfdir='${prefix}/etc'
70 sharedstatedir='${prefix}/com'
71 localstatedir='${prefix}/var'
72 libdir='${exec_prefix}/lib'
73 includedir='${prefix}/include'
74 oldincludedir='/usr/include'
75 infodir='${prefix}/info'
76 mandir='${prefix}/man'
78 # Initialize some other variables.
81 SHELL=${CONFIG_SHELL-/bin/sh}
82 # Maximum number of lines to put in a shell here document.
89 # If the previous option needs an argument, assign it.
90 if test -n "$ac_prev"; then
91 eval "$ac_prev=\$ac_option"
97 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
101 # Accept the important Cygnus configure options, so we can diagnose typos.
105 -bindir | --bindir | --bindi | --bind | --bin | --bi)
107 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
108 bindir="$ac_optarg" ;;
110 -build | --build | --buil | --bui | --bu)
112 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
113 build="$ac_optarg" ;;
115 -cache-file | --cache-file | --cache-fil | --cache-fi \
116 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
117 ac_prev=cache_file ;;
118 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
119 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
120 cache_file="$ac_optarg" ;;
122 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
124 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
126 datadir="$ac_optarg" ;;
128 -disable-* | --disable-*)
129 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
130 # Reject names that are not valid shell variable names.
131 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
132 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
134 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
135 eval "enable_${ac_feature}=no" ;;
137 -enable-* | --enable-*)
138 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
139 # Reject names that are not valid shell variable names.
140 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
141 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
143 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
148 eval "enable_${ac_feature}='$ac_optarg'" ;;
150 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
151 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
152 | --exec | --exe | --ex)
153 ac_prev=exec_prefix ;;
154 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
155 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
156 | --exec=* | --exe=* | --ex=*)
157 exec_prefix="$ac_optarg" ;;
159 -gas | --gas | --ga | --g)
160 # Obsolete; use --with-gas.
163 -help | --help | --hel | --he)
164 # Omit some internal or obsolete options to make the list less imposing.
165 # This message is too long to be a string in the A/UX 3.1 sh.
167 Usage: configure [options] [host]
168 Options: [defaults in brackets after descriptions]
170 --cache-file=FILE cache test results in FILE
171 --help print this message
172 --no-create do not create output files
173 --quiet, --silent do not print \`checking...' messages
174 --version print the version of autoconf that created configure
175 Directory and file names:
176 --prefix=PREFIX install architecture-independent files in PREFIX
178 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
180 --bindir=DIR user executables in DIR [EPREFIX/bin]
181 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
182 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
183 --datadir=DIR read-only architecture-independent data in DIR
185 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
186 --sharedstatedir=DIR modifiable architecture-independent data in DIR
188 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
189 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
190 --includedir=DIR C header files in DIR [PREFIX/include]
191 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
192 --infodir=DIR info documentation in DIR [PREFIX/info]
193 --mandir=DIR man documentation in DIR [PREFIX/man]
194 --srcdir=DIR find the sources in DIR [configure dir or ..]
195 --program-prefix=PREFIX prepend PREFIX to installed program names
196 --program-suffix=SUFFIX append SUFFIX to installed program names
197 --program-transform-name=PROGRAM
198 run sed PROGRAM on installed program names
202 --build=BUILD configure for building on BUILD [BUILD=HOST]
203 --host=HOST configure for HOST [guessed]
204 --target=TARGET configure for TARGET [TARGET=HOST]
205 Features and packages:
206 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
207 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
208 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
209 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
210 --x-includes=DIR X include files are in DIR
211 --x-libraries=DIR X library files are in DIR
213 if test -n "$ac_help"; then
214 echo "--enable and --with options recognized:$ac_help"
218 -host | --host | --hos | --ho)
220 -host=* | --host=* | --hos=* | --ho=*)
223 -includedir | --includedir | --includedi | --included | --include \
224 | --includ | --inclu | --incl | --inc)
225 ac_prev=includedir ;;
226 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
227 | --includ=* | --inclu=* | --incl=* | --inc=*)
228 includedir="$ac_optarg" ;;
230 -infodir | --infodir | --infodi | --infod | --info | --inf)
232 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
233 infodir="$ac_optarg" ;;
235 -libdir | --libdir | --libdi | --libd)
237 -libdir=* | --libdir=* | --libdi=* | --libd=*)
238 libdir="$ac_optarg" ;;
240 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
241 | --libexe | --libex | --libe)
242 ac_prev=libexecdir ;;
243 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
244 | --libexe=* | --libex=* | --libe=*)
245 libexecdir="$ac_optarg" ;;
247 -localstatedir | --localstatedir | --localstatedi | --localstated \
248 | --localstate | --localstat | --localsta | --localst \
249 | --locals | --local | --loca | --loc | --lo)
250 ac_prev=localstatedir ;;
251 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
252 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
253 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
254 localstatedir="$ac_optarg" ;;
256 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
258 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
259 mandir="$ac_optarg" ;;
262 # Obsolete; use --without-fp.
265 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
269 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
270 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
273 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
274 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
275 | --oldin | --oldi | --old | --ol | --o)
276 ac_prev=oldincludedir ;;
277 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
278 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
279 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
280 oldincludedir="$ac_optarg" ;;
282 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
284 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
285 prefix="$ac_optarg" ;;
287 -program-prefix | --program-prefix | --program-prefi | --program-pref \
288 | --program-pre | --program-pr | --program-p)
289 ac_prev=program_prefix ;;
290 -program-prefix=* | --program-prefix=* | --program-prefi=* \
291 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
292 program_prefix="$ac_optarg" ;;
294 -program-suffix | --program-suffix | --program-suffi | --program-suff \
295 | --program-suf | --program-su | --program-s)
296 ac_prev=program_suffix ;;
297 -program-suffix=* | --program-suffix=* | --program-suffi=* \
298 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
299 program_suffix="$ac_optarg" ;;
301 -program-transform-name | --program-transform-name \
302 | --program-transform-nam | --program-transform-na \
303 | --program-transform-n | --program-transform- \
304 | --program-transform | --program-transfor \
305 | --program-transfo | --program-transf \
306 | --program-trans | --program-tran \
307 | --progr-tra | --program-tr | --program-t)
308 ac_prev=program_transform_name ;;
309 -program-transform-name=* | --program-transform-name=* \
310 | --program-transform-nam=* | --program-transform-na=* \
311 | --program-transform-n=* | --program-transform-=* \
312 | --program-transform=* | --program-transfor=* \
313 | --program-transfo=* | --program-transf=* \
314 | --program-trans=* | --program-tran=* \
315 | --progr-tra=* | --program-tr=* | --program-t=*)
316 program_transform_name="$ac_optarg" ;;
318 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
319 | -silent | --silent | --silen | --sile | --sil)
322 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
324 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
326 sbindir="$ac_optarg" ;;
328 -sharedstatedir | --sharedstatedir | --sharedstatedi \
329 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
330 | --sharedst | --shareds | --shared | --share | --shar \
332 ac_prev=sharedstatedir ;;
333 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
334 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
335 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
337 sharedstatedir="$ac_optarg" ;;
339 -site | --site | --sit)
341 -site=* | --site=* | --sit=*)
344 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
346 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
347 srcdir="$ac_optarg" ;;
349 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
350 | --syscon | --sysco | --sysc | --sys | --sy)
351 ac_prev=sysconfdir ;;
352 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
353 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
354 sysconfdir="$ac_optarg" ;;
356 -target | --target | --targe | --targ | --tar | --ta | --t)
358 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
359 target="$ac_optarg" ;;
361 -v | -verbose | --verbose | --verbos | --verbo | --verb)
364 -version | --version | --versio | --versi | --vers)
365 echo "configure generated by autoconf version 2.13"
369 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
370 # Reject names that are not valid shell variable names.
371 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
372 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
374 ac_package=`echo $ac_package| sed 's/-/_/g'`
379 eval "with_${ac_package}='$ac_optarg'" ;;
381 -without-* | --without-*)
382 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
383 # Reject names that are not valid shell variable names.
384 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
385 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
387 ac_package=`echo $ac_package| sed 's/-/_/g'`
388 eval "with_${ac_package}=no" ;;
391 # Obsolete; use --with-x.
394 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
395 | --x-incl | --x-inc | --x-in | --x-i)
396 ac_prev=x_includes ;;
397 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
398 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
399 x_includes="$ac_optarg" ;;
401 -x-libraries | --x-libraries | --x-librarie | --x-librari \
402 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
403 ac_prev=x_libraries ;;
404 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
405 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
406 x_libraries="$ac_optarg" ;;
408 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
412 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
413 echo "configure: warning: $ac_option: invalid host type" 1>&2
415 if test "x$nonopt" != xNONE; then
416 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
424 if test -n "$ac_prev"; then
425 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
428 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
430 # File descriptor usage:
433 # 2 errors and warnings
434 # 3 some systems may open it to /dev/tty
435 # 4 used on the Kubota Titan
436 # 6 checking for... messages and results
437 # 5 compiler messages saved in config.log
438 if test "$silent" = yes; then
446 This file contains any messages produced by compilers while
447 running configure, to aid debugging if configure makes a mistake.
450 # Strip out --no-create and --no-recursion so they do not pile up.
451 # Also quote any args containing shell metacharacters.
456 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
457 | --no-cr | --no-c) ;;
458 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
459 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
460 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
461 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
462 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
467 # Only set these to C if already set. These must not be set unconditionally
468 # because not all systems understand e.g. LANG=C (notably SCO).
469 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
470 # Non-C LC_CTYPE values break the ctype check.
471 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
472 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
473 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
474 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
476 # confdefs.h avoids OS command line length limits that DEFS can exceed.
477 rm -rf conftest* confdefs.h
478 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
481 # A filename unique to this package, relative to the directory that
482 # configure is in, which we can look for to find out if srcdir is correct.
483 ac_unique_file=h/nmh.h
485 # Find the source files, if location was not specified.
486 if test -z "$srcdir"; then
487 ac_srcdir_defaulted=yes
488 # Try the directory containing this script, then its parent.
490 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
491 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
493 if test ! -r $srcdir/$ac_unique_file; then
497 ac_srcdir_defaulted=no
499 if test ! -r $srcdir/$ac_unique_file; then
500 if test "$ac_srcdir_defaulted" = yes; then
501 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
503 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
506 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
508 # Prefer explicitly selected file to automatically selected ones.
509 if test -z "$CONFIG_SITE"; then
510 if test "x$prefix" != xNONE; then
511 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
513 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
516 for ac_site_file in $CONFIG_SITE; do
517 if test -r "$ac_site_file"; then
518 echo "loading site script $ac_site_file"
523 if test -r "$cache_file"; then
524 echo "loading cache $cache_file"
527 echo "creating cache $cache_file"
532 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
533 ac_cpp='$CPP $CPPFLAGS'
534 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
535 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
536 cross_compiling=$ac_cv_prog_cc_cross
540 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
541 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
542 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
549 ac_n= ac_c='\c' ac_t=
556 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
557 if test -f $ac_dir/install-sh; then
559 ac_install_sh="$ac_aux_dir/install-sh -c"
561 elif test -f $ac_dir/install.sh; then
563 ac_install_sh="$ac_aux_dir/install.sh -c"
567 if test -z "$ac_aux_dir"; then
568 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
570 ac_config_guess=$ac_aux_dir/config.guess
571 ac_config_sub=$ac_aux_dir/config.sub
572 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
575 # Do some error checking and defaulting for the host and target type.
577 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
580 # 1. You are not allowed to specify --host, --target, and nonopt at the
582 # 2. Host defaults to nonopt.
583 # 3. If nonopt is not specified, then host defaults to the current host,
584 # as determined by config.guess.
585 # 4. Target and build default to nonopt.
586 # 5. If nonopt is not specified, then target and build default to host.
588 # The aliases save the names the user supplied, while $host etc.
589 # will get canonicalized.
590 case $host---$target---$nonopt in
591 NONE---*---* | *---NONE---* | *---*---NONE) ;;
592 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
596 # Make sure we can run config.sub.
597 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
598 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
601 echo $ac_n "checking host system type""... $ac_c" 1>&6
602 echo "configure:603: checking host system type" >&5
605 case "$host_alias" in
609 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
610 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
612 *) host_alias=$nonopt ;;
616 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
617 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
618 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
619 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
620 echo "$ac_t""$host" 1>&6
622 echo $ac_n "checking target system type""... $ac_c" 1>&6
623 echo "configure:624: checking target system type" >&5
626 case "$target_alias" in
629 NONE) target_alias=$host_alias ;;
630 *) target_alias=$nonopt ;;
634 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
635 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
636 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
637 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
638 echo "$ac_t""$target" 1>&6
640 echo $ac_n "checking build system type""... $ac_c" 1>&6
641 echo "configure:642: checking build system type" >&5
644 case "$build_alias" in
647 NONE) build_alias=$host_alias ;;
648 *) build_alias=$nonopt ;;
652 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
653 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
654 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
655 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
656 echo "$ac_t""$build" 1>&6
658 test "$host_alias" != "$target_alias" &&
659 test "$program_prefix$program_suffix$program_transform_name" = \
661 program_prefix=${target_alias}-
668 VERSION=`sed -e 's/nmh-//' ${srcdir}/VERSION`
669 echo "configuring for nmh-$VERSION"
672 # Check whether --enable-apop or --disable-apop was given.
673 if test "${enable_apop+set}" = set; then
674 enableval="$enable_apop"
678 if test x"$enable_apop" = x"yes"; then
679 cat >> confdefs.h <<\EOF
686 # Check whether --enable-debug or --disable-debug was given.
687 if test "${enable_debug+set}" = set; then
688 enableval="$enable_debug"
692 if test x"$enable_nmh_debug" = x"yes"; then
696 # Check whether --enable-masquerade or --disable-masquerade was given.
697 if test "${enable_masquerade+set}" = set; then
698 enableval="$enable_masquerade"
699 if test x"$enable_masquerade" = x"yes"; then
700 masquerade="draft_from mmailid username_extension"
702 masquerade="$enable_masquerade"
707 # Check whether --enable-mhe or --disable-mhe was given.
708 if test "${enable_mhe+set}" = set; then
709 enableval="$enable_mhe"
714 if test x"$enable_mhe" != x"no" -a x"$enable_nmh_mhe" != x"no"; then
715 cat >> confdefs.h <<\EOF
720 # Check whether --enable-pop or --disable-pop was given.
721 if test "${enable_pop+set}" = set; then
722 enableval="$enable_pop"
726 if test x"$enable_nmh_pop" = x"yes"; then
730 # Check whether --with-cyrus-sasl or --without-cyrus-sasl was given.
731 if test "${with_cyrus_sasl+set}" = set; then
732 withval="$with_cyrus_sasl"
736 if test x"$with_cyrus_sasl" != x -a x"$with_cyrus_sasl" != "no"; then
737 cat >> confdefs.h <<\EOF
742 # Check whether --with-editor or --without-editor was given.
743 if test "${with_editor+set}" = set; then
744 withval="$with_editor"
749 if test -n "$with_editor"; then
750 editorpath="$with_editor"
753 # Check whether --with-hash-backup or --without-hash-backup was given.
754 if test "${with_hash_backup+set}" = set; then
755 withval="$with_hash_backup"
759 if test x"$with_hash_backup" != x -a x"$with_hash_backup" != x"no"; then
764 cat >> confdefs.h <<EOF
765 #define BACKUP_PREFIX "$backup_prefix"
768 # Check whether --with-hesiod or --without-hesiod was given.
769 if test "${with_hesiod+set}" = set; then
770 withval="$with_hesiod"
774 if test x"$with_hesiod" != x -a x"$with_hesiod" != x"no"; then
775 cat >> confdefs.h <<\EOF
780 # Check whether --with-krb4 or --without-krb4 was given.
781 if test "${with_krb4+set}" = set; then
786 if test x"$with_krb4" != x -a x"$with_krb4" != x"no"; then
788 cat >> confdefs.h <<\EOF
791 cat >> confdefs.h <<\EOF
792 #define KPOP_PRINCIPAL "pop"
796 if test x"$enable_pop" = x"yes"; then
797 cat >> confdefs.h <<\EOF
801 POPSED='/^%nmhbeginpop%/d;/^%nmhendpop%/d'
803 POPSED='/^%nmhbeginpop%/,/^%nmhendpop%/d'
806 # Check whether --with-mts or --without-mts was given.
807 if test "${with_mts+set}" = set; then
813 if test x"$with_mts" = x"smtp"; then
815 elif test x"$with_mts" = x"sendmail"; then
821 cat >> confdefs.h <<\EOF
825 # Check whether --with-pager or --without-pager was given.
826 if test "${with_pager+set}" = set; then
827 withval="$with_pager"
832 if test -n "$with_pager"; then
833 pagerpath="$with_pager"
836 # Check whether --with-smtpservers or --without-smtpservers was given.
837 if test "${with_smtpservers+set}" = set; then
838 withval="$with_smtpservers"
842 if test -n "$with_smtpservers"; then
843 smtpservers="$with_smtpservers"
845 smtpservers="localhost"
850 test -z "$CFLAGS" && CFLAGS= auto_cflags=1
851 if test x"$enable_debug" = x"yes"; then
852 test -z "$LDFLAGS" && LDFLAGS=-g
855 # Extract the first word of "gcc", so it can be a program name with args.
856 set dummy gcc; ac_word=$2
857 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
858 echo "configure:859: checking for $ac_word" >&5
859 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
860 echo $ac_n "(cached) $ac_c" 1>&6
862 if test -n "$CC"; then
863 ac_cv_prog_CC="$CC" # Let the user override the test.
865 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
867 for ac_dir in $ac_dummy; do
868 test -z "$ac_dir" && ac_dir=.
869 if test -f $ac_dir/$ac_word; then
878 if test -n "$CC"; then
879 echo "$ac_t""$CC" 1>&6
881 echo "$ac_t""no" 1>&6
884 if test -z "$CC"; then
885 # Extract the first word of "cc", so it can be a program name with args.
886 set dummy cc; ac_word=$2
887 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
888 echo "configure:889: checking for $ac_word" >&5
889 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
890 echo $ac_n "(cached) $ac_c" 1>&6
892 if test -n "$CC"; then
893 ac_cv_prog_CC="$CC" # Let the user override the test.
895 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
898 for ac_dir in $ac_dummy; do
899 test -z "$ac_dir" && ac_dir=.
900 if test -f $ac_dir/$ac_word; then
901 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
910 if test $ac_prog_rejected = yes; then
911 # We found a bogon in the path, so make sure we never use it.
912 set dummy $ac_cv_prog_CC
914 if test $# -gt 0; then
915 # We chose a different compiler from the bogus one.
916 # However, it has the same basename, so the bogon will be chosen
917 # first if we set CC to just the basename; use the full file name.
919 set dummy "$ac_dir/$ac_word" "$@"
927 if test -n "$CC"; then
928 echo "$ac_t""$CC" 1>&6
930 echo "$ac_t""no" 1>&6
933 if test -z "$CC"; then
936 # Extract the first word of "cl", so it can be a program name with args.
937 set dummy cl; ac_word=$2
938 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
939 echo "configure:940: checking for $ac_word" >&5
940 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
941 echo $ac_n "(cached) $ac_c" 1>&6
943 if test -n "$CC"; then
944 ac_cv_prog_CC="$CC" # Let the user override the test.
946 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
948 for ac_dir in $ac_dummy; do
949 test -z "$ac_dir" && ac_dir=.
950 if test -f $ac_dir/$ac_word; then
959 if test -n "$CC"; then
960 echo "$ac_t""$CC" 1>&6
962 echo "$ac_t""no" 1>&6
967 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
970 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
971 echo "configure:972: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
974 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
975 ac_cpp='$CPP $CPPFLAGS'
976 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
977 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
978 cross_compiling=$ac_cv_prog_cc_cross
980 cat > conftest.$ac_ext << EOF
982 #line 983 "configure"
983 #include "confdefs.h"
987 if { (eval echo configure:988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
988 ac_cv_prog_cc_works=yes
989 # If we can't run a trivial program, we are probably using a cross compiler.
990 if (./conftest; exit) 2>/dev/null; then
991 ac_cv_prog_cc_cross=no
993 ac_cv_prog_cc_cross=yes
996 echo "configure: failed program was:" >&5
997 cat conftest.$ac_ext >&5
998 ac_cv_prog_cc_works=no
1002 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1003 ac_cpp='$CPP $CPPFLAGS'
1004 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1005 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1006 cross_compiling=$ac_cv_prog_cc_cross
1008 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1009 if test $ac_cv_prog_cc_works = no; then
1010 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1012 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1013 echo "configure:1014: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1014 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1015 cross_compiling=$ac_cv_prog_cc_cross
1017 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1018 echo "configure:1019: checking whether we are using GNU C" >&5
1019 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1020 echo $ac_n "(cached) $ac_c" 1>&6
1022 cat > conftest.c <<EOF
1027 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1034 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1036 if test $ac_cv_prog_gcc = yes; then
1042 ac_test_CFLAGS="${CFLAGS+set}"
1043 ac_save_CFLAGS="$CFLAGS"
1045 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1046 echo "configure:1047: checking whether ${CC-cc} accepts -g" >&5
1047 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1048 echo $ac_n "(cached) $ac_c" 1>&6
1050 echo 'void f(){}' > conftest.c
1051 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1060 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1061 if test "$ac_test_CFLAGS" = set; then
1062 CFLAGS="$ac_save_CFLAGS"
1063 elif test $ac_cv_prog_cc_g = yes; then
1064 if test "$GCC" = yes; then
1070 if test "$GCC" = yes; then
1078 if test -n "$auto_cflags"; then
1079 if test x"$enable_debug" = x"yes"; then
1080 if test -n "$GCC"; then
1081 test -z "$CFLAGS" && CFLAGS="-Wall -g" || CFLAGS="$CFLAGS -Wall -g"
1083 test -z "$CFLAGS" && CFLAGS=-g || CFLAGS="$CFLAGS -g"
1086 if test -z "$LDFLAGS"; then
1096 if test -n "$GCC"; then
1097 test -z "$CFLAGS" && CFLAGS="-Wall -O2" || CFLAGS="$CFLAGS -Wall -O2"
1099 test -z "$CFLAGS" && CFLAGS=-O || CFLAGS="$CFLAGS -O"
1104 echo $ac_n "checking for working const""... $ac_c" 1>&6
1105 echo "configure:1106: checking for working const" >&5
1106 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1107 echo $ac_n "(cached) $ac_c" 1>&6
1109 cat > conftest.$ac_ext <<EOF
1110 #line 1111 "configure"
1111 #include "confdefs.h"
1115 /* Ultrix mips cc rejects this. */
1116 typedef int charset[2]; const charset x;
1117 /* SunOS 4.1.1 cc rejects this. */
1118 char const *const *ccp;
1120 /* NEC SVR4.0.2 mips cc rejects this. */
1121 struct point {int x, y;};
1122 static struct point const zero = {0,0};
1123 /* AIX XL C 1.02.0.0 rejects this.
1124 It does not let you subtract one const X* pointer from another in an arm
1125 of an if-expression whose if-part is not a constant expression */
1126 const char *g = "string";
1127 ccp = &g + (g ? g-g : 0);
1128 /* HPUX 7.0 cc rejects these. */
1131 ccp = (char const *const *) p;
1132 { /* SCO 3.2v4 cc rejects this. */
1134 char const *s = 0 ? (char *) 0 : (char const *) 0;
1138 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1140 const int *foo = &x[0];
1143 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1144 typedef const int *iptr;
1148 { /* AIX XL C 1.02.0.0 rejects this saying
1149 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1150 struct s { int j; const int *ap[3]; };
1151 struct s *b; b->j = 5;
1153 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1159 if { (eval echo configure:1160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1163 echo "configure: failed program was:" >&5
1164 cat conftest.$ac_ext >&5
1171 echo "$ac_t""$ac_cv_c_const" 1>&6
1172 if test $ac_cv_c_const = no; then
1173 cat >> confdefs.h <<\EOF
1179 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1180 echo "configure:1181: checking whether ${MAKE-make} sets \${MAKE}" >&5
1181 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1182 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1183 echo $ac_n "(cached) $ac_c" 1>&6
1185 cat > conftestmake <<\EOF
1187 @echo 'ac_maketemp="${MAKE}"'
1189 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1190 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1191 if test -n "$ac_maketemp"; then
1192 eval ac_cv_prog_make_${ac_make}_set=yes
1194 eval ac_cv_prog_make_${ac_make}_set=no
1198 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1199 echo "$ac_t""yes" 1>&6
1202 echo "$ac_t""no" 1>&6
1203 SET_MAKE="MAKE=${MAKE-make}"
1205 # Find a good install program. We prefer a C program (faster),
1206 # so one script is as good as another. But avoid the broken or
1207 # incompatible versions:
1208 # SysV /etc/install, /usr/sbin/install
1209 # SunOS /usr/etc/install
1210 # IRIX /sbin/install
1212 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1213 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1214 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1215 # ./install, which can be erroneously created by make from ./install.sh.
1216 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1217 echo "configure:1218: checking for a BSD compatible install" >&5
1218 if test -z "$INSTALL"; then
1219 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1220 echo $ac_n "(cached) $ac_c" 1>&6
1222 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1223 for ac_dir in $PATH; do
1224 # Account for people who put trailing slashes in PATH elements.
1226 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1228 # OSF1 and SCO ODT 3.0 have their own names for install.
1229 # Don't use installbsd from OSF since it installs stuff as root
1231 for ac_prog in ginstall scoinst install; do
1232 if test -f $ac_dir/$ac_prog; then
1233 if test $ac_prog = install &&
1234 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1235 # AIX install. It has an incompatible calling convention.
1238 ac_cv_path_install="$ac_dir/$ac_prog -c"
1249 if test "${ac_cv_path_install+set}" = set; then
1250 INSTALL="$ac_cv_path_install"
1252 # As a last resort, use the slow shell script. We don't cache a
1253 # path for INSTALL within a source directory, because that will
1254 # break other packages using the cache if that directory is
1255 # removed, or if the path is relative.
1256 INSTALL="$ac_install_sh"
1259 echo "$ac_t""$INSTALL" 1>&6
1261 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1262 # It thinks the first close brace ends the variable substitution.
1263 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1265 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1267 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1268 # Extract the first word of "ranlib", so it can be a program name with args.
1269 set dummy ranlib; ac_word=$2
1270 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1271 echo "configure:1272: checking for $ac_word" >&5
1272 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1273 echo $ac_n "(cached) $ac_c" 1>&6
1275 if test -n "$RANLIB"; then
1276 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1278 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1280 for ac_dir in $ac_dummy; do
1281 test -z "$ac_dir" && ac_dir=.
1282 if test -f $ac_dir/$ac_word; then
1283 ac_cv_prog_RANLIB="ranlib"
1288 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1291 RANLIB="$ac_cv_prog_RANLIB"
1292 if test -n "$RANLIB"; then
1293 echo "$ac_t""$RANLIB" 1>&6
1295 echo "$ac_t""no" 1>&6
1297 for ac_prog in gawk mawk nawk awk
1299 # Extract the first word of "$ac_prog", so it can be a program name with args.
1300 set dummy $ac_prog; ac_word=$2
1301 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1302 echo "configure:1303: checking for $ac_word" >&5
1303 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1304 echo $ac_n "(cached) $ac_c" 1>&6
1306 if test -n "$AWK"; then
1307 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1309 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1311 for ac_dir in $ac_dummy; do
1312 test -z "$ac_dir" && ac_dir=.
1313 if test -f $ac_dir/$ac_word; then
1314 ac_cv_prog_AWK="$ac_prog"
1321 AWK="$ac_cv_prog_AWK"
1322 if test -n "$AWK"; then
1323 echo "$ac_t""$AWK" 1>&6
1325 echo "$ac_t""no" 1>&6
1328 test -n "$AWK" && break
1330 # Extract the first word of "flex", so it can be a program name with args.
1331 set dummy flex; ac_word=$2
1332 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1333 echo "configure:1334: checking for $ac_word" >&5
1334 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1335 echo $ac_n "(cached) $ac_c" 1>&6
1337 if test -n "$LEX"; then
1338 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1340 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1342 for ac_dir in $ac_dummy; do
1343 test -z "$ac_dir" && ac_dir=.
1344 if test -f $ac_dir/$ac_word; then
1345 ac_cv_prog_LEX="flex"
1350 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1353 LEX="$ac_cv_prog_LEX"
1354 if test -n "$LEX"; then
1355 echo "$ac_t""$LEX" 1>&6
1357 echo "$ac_t""no" 1>&6
1360 if test -z "$LEXLIB"
1366 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1367 echo "configure:1368: checking for yywrap in -l$ac_lib" >&5
1368 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1369 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1370 echo $ac_n "(cached) $ac_c" 1>&6
1372 ac_save_LIBS="$LIBS"
1373 LIBS="-l$ac_lib $LIBS"
1374 cat > conftest.$ac_ext <<EOF
1375 #line 1376 "configure"
1376 #include "confdefs.h"
1377 /* Override any gcc2 internal prototype to avoid an error. */
1378 /* We use char because int might match the return type of a gcc2
1379 builtin and then its argument prototype would still apply. */
1386 if { (eval echo configure:1387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1388 eval "ac_cv_lib_$ac_lib_var=yes"
1390 echo "configure: failed program was:" >&5
1391 cat conftest.$ac_ext >&5
1393 eval "ac_cv_lib_$ac_lib_var=no"
1396 LIBS="$ac_save_LIBS"
1399 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1400 echo "$ac_t""yes" 1>&6
1403 echo "$ac_t""no" 1>&6
1408 pathtmp=/usr/bin:/bin:/usr/local/bin:/usr/xpg4/bin:/usr/ucb
1409 # Extract the first word of "cut", so it can be a program name with args.
1410 set dummy cut; ac_word=$2
1411 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1412 echo "configure:1413: checking for $ac_word" >&5
1413 if eval "test \"`echo '$''{'ac_cv_path_cutpath'+set}'`\" = set"; then
1414 echo $ac_n "(cached) $ac_c" 1>&6
1418 ac_cv_path_cutpath="$cutpath" # Let the user override the test with a path.
1421 ac_cv_path_cutpath="$cutpath" # Let the user override the test with a dos path.
1424 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1426 for ac_dir in $ac_dummy; do
1427 test -z "$ac_dir" && ac_dir=.
1428 if test -f $ac_dir/$ac_word; then
1429 ac_cv_path_cutpath="$ac_dir/$ac_word"
1434 test -z "$ac_cv_path_cutpath" && ac_cv_path_cutpath="no"
1438 cutpath="$ac_cv_path_cutpath"
1439 if test -n "$cutpath"; then
1440 echo "$ac_t""$cutpath" 1>&6
1442 echo "$ac_t""no" 1>&6
1446 # Extract the first word of "lclint", so it can be a program name with args.
1447 set dummy lclint; ac_word=$2
1448 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1449 echo "configure:1450: checking for $ac_word" >&5
1450 if eval "test \"`echo '$''{'ac_cv_prog_linttmp1'+set}'`\" = set"; then
1451 echo $ac_n "(cached) $ac_c" 1>&6
1453 if test -n "$linttmp1"; then
1454 ac_cv_prog_linttmp1="$linttmp1" # Let the user override the test.
1456 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1458 for ac_dir in $ac_dummy; do
1459 test -z "$ac_dir" && ac_dir=.
1460 if test -f $ac_dir/$ac_word; then
1461 ac_cv_prog_linttmp1="lclint"
1466 test -z "$ac_cv_prog_linttmp1" && ac_cv_prog_linttmp1="no"
1469 linttmp1="$ac_cv_prog_linttmp1"
1470 if test -n "$linttmp1"; then
1471 echo "$ac_t""$linttmp1" 1>&6
1473 echo "$ac_t""no" 1>&6
1475 if test x$ac_cv_prog_linttmp1 != xno ; then
1476 LINT=$ac_cv_prog_linttmp1
1477 LINTFLAGS="-weak +posixlib -macrovarprefixexclude"
1479 # Extract the first word of "lint", so it can be a program name with args.
1480 set dummy lint; ac_word=$2
1481 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1482 echo "configure:1483: checking for $ac_word" >&5
1483 if eval "test \"`echo '$''{'ac_cv_prog_linttmp2'+set}'`\" = set"; then
1484 echo $ac_n "(cached) $ac_c" 1>&6
1486 if test -n "$linttmp2"; then
1487 ac_cv_prog_linttmp2="$linttmp2" # Let the user override the test.
1489 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1491 for ac_dir in $ac_dummy; do
1492 test -z "$ac_dir" && ac_dir=.
1493 if test -f $ac_dir/$ac_word; then
1494 ac_cv_prog_linttmp2="lint"
1499 test -z "$ac_cv_prog_linttmp2" && ac_cv_prog_linttmp2="no"
1502 linttmp2="$ac_cv_prog_linttmp2"
1503 if test -n "$linttmp2"; then
1504 echo "$ac_t""$linttmp2" 1>&6
1506 echo "$ac_t""no" 1>&6
1508 if test x$ac_cv_prog_linttmp2 != xno ; then
1509 LINT=$ac_cv_prog_linttmp2
1512 LINT="echo 'No lint program found'"
1517 # Extract the first word of "libtool", so it can be a program name with args.
1518 set dummy libtool; ac_word=$2
1519 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1520 echo "configure:1521: checking for $ac_word" >&5
1521 if eval "test \"`echo '$''{'ac_cv_prog_LIBTOOL'+set}'`\" = set"; then
1522 echo $ac_n "(cached) $ac_c" 1>&6
1524 if test -n "$LIBTOOL"; then
1525 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
1527 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1529 for ac_dir in $ac_dummy; do
1530 test -z "$ac_dir" && ac_dir=.
1531 if test -f $ac_dir/$ac_word; then
1532 ac_cv_prog_LIBTOOL="libtool"
1539 LIBTOOL="$ac_cv_prog_LIBTOOL"
1540 if test -n "$LIBTOOL"; then
1541 echo "$ac_t""$LIBTOOL" 1>&6
1543 echo "$ac_t""no" 1>&6
1547 if test -n "$LIBTOOL" ; then
1548 tmptest=`$LIBTOOL --version 2>&1 | grep GNU`
1549 if test x"$tmptest" != x ; then
1555 # Extract the first word of "lorder", so it can be a program name with args.
1556 set dummy lorder; ac_word=$2
1557 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1558 echo "configure:1559: checking for $ac_word" >&5
1559 if eval "test \"`echo '$''{'ac_cv_prog_LORDER'+set}'`\" = set"; then
1560 echo $ac_n "(cached) $ac_c" 1>&6
1562 if test -n "$LORDER"; then
1563 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
1565 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1567 for ac_dir in $ac_dummy; do
1568 test -z "$ac_dir" && ac_dir=.
1569 if test -f $ac_dir/$ac_word; then
1570 ac_cv_prog_LORDER="lorder"
1575 test -z "$ac_cv_prog_LORDER" && ac_cv_prog_LORDER="no"
1578 LORDER="$ac_cv_prog_LORDER"
1579 if test -n "$LORDER"; then
1580 echo "$ac_t""$LORDER" 1>&6
1582 echo "$ac_t""no" 1>&6
1584 # Extract the first word of "tsort", so it can be a program name with args.
1585 set dummy tsort; ac_word=$2
1586 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1587 echo "configure:1588: checking for $ac_word" >&5
1588 if eval "test \"`echo '$''{'ac_cv_prog_TSORT'+set}'`\" = set"; then
1589 echo $ac_n "(cached) $ac_c" 1>&6
1591 if test -n "$TSORT"; then
1592 ac_cv_prog_TSORT="$TSORT" # Let the user override the test.
1594 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1596 for ac_dir in $ac_dummy; do
1597 test -z "$ac_dir" && ac_dir=.
1598 if test -f $ac_dir/$ac_word; then
1599 ac_cv_prog_TSORT="tsort"
1604 test -z "$ac_cv_prog_TSORT" && ac_cv_prog_TSORT="no"
1607 TSORT="$ac_cv_prog_TSORT"
1608 if test -n "$TSORT"; then
1609 echo "$ac_t""$TSORT" 1>&6
1611 echo "$ac_t""no" 1>&6
1614 if test x$ac_cv_prog_LORDER != xlorder -o x$ac_cv_prog_TSORT != xtsort; then
1619 echo $ac_n "checking whether tsort can deal with loops""... $ac_c" 1>&6
1620 echo "configure:1621: checking whether tsort can deal with loops" >&5
1621 if eval "test \"`echo '$''{'nmh_cv_tsort_loop'+set}'`\" = set"; then
1622 echo $ac_n "(cached) $ac_c" 1>&6
1624 if test -z "`echo a b b a | tsort 2>/dev/null | grep a`" ; then
1625 nmh_cv_tsort_loop=no
1627 nmh_cv_tsort_loop=yes
1631 echo "$ac_t""$nmh_cv_tsort_loop" 1>&6
1632 if test x$nmh_cv_tsort_loop = xno ; then
1637 pathtmp=/usr/bin:/bin:/usr/local/bin:/usr/xpg4/bin:/usr/ucb
1638 # Extract the first word of "ls", so it can be a program name with args.
1639 set dummy ls; ac_word=$2
1640 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1641 echo "configure:1642: checking for $ac_word" >&5
1642 if eval "test \"`echo '$''{'ac_cv_path_lspath'+set}'`\" = set"; then
1643 echo $ac_n "(cached) $ac_c" 1>&6
1647 ac_cv_path_lspath="$lspath" # Let the user override the test with a path.
1650 ac_cv_path_lspath="$lspath" # Let the user override the test with a dos path.
1653 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1655 for ac_dir in $ac_dummy; do
1656 test -z "$ac_dir" && ac_dir=.
1657 if test -f $ac_dir/$ac_word; then
1658 ac_cv_path_lspath="$ac_dir/$ac_word"
1663 test -z "$ac_cv_path_lspath" && ac_cv_path_lspath="no"
1667 lspath="$ac_cv_path_lspath"
1668 if test -n "$lspath"; then
1669 echo "$ac_t""$lspath" 1>&6
1671 echo "$ac_t""no" 1>&6
1675 if test "$lspath" != "no"; then
1676 echo $ac_n "checking how to get ls to show us the group ownership of a file""... $ac_c" 1>&6
1677 echo "configure:1678: checking how to get ls to show us the group ownership of a file" >&5
1678 if eval "test \"`echo '$''{'nmh_cv_ls_grpopt'+set}'`\" = set"; then
1679 echo $ac_n "(cached) $ac_c" 1>&6
1681 if test x"`$lspath -dl / | $AWK '{print $9}'`" = x"/"; then
1682 nmh_cv_ls_grpopt="-l"
1684 nmh_cv_ls_grpopt="-lg"
1688 echo "$ac_t""$nmh_cv_ls_grpopt" 1>&6
1691 pathtmp=/usr/bin:/bin:/usr/ucb:/usr/local/bin
1692 # Extract the first word of "more", so it can be a program name with args.
1693 set dummy more; ac_word=$2
1694 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1695 echo "configure:1696: checking for $ac_word" >&5
1696 if eval "test \"`echo '$''{'ac_cv_path_morepath'+set}'`\" = set"; then
1697 echo $ac_n "(cached) $ac_c" 1>&6
1701 ac_cv_path_morepath="$morepath" # Let the user override the test with a path.
1704 ac_cv_path_morepath="$morepath" # Let the user override the test with a dos path.
1707 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1709 for ac_dir in $ac_dummy; do
1710 test -z "$ac_dir" && ac_dir=.
1711 if test -f $ac_dir/$ac_word; then
1712 ac_cv_path_morepath="$ac_dir/$ac_word"
1717 test -z "$ac_cv_path_morepath" && ac_cv_path_morepath="no"
1721 morepath="$ac_cv_path_morepath"
1722 if test -n "$morepath"; then
1723 echo "$ac_t""$morepath" 1>&6
1725 echo "$ac_t""no" 1>&6
1729 if test -z "$pagerpath"; then
1730 pagerpath="$morepath"
1733 pathtmp=/usr/lib:/usr/sbin:/usr/etc:/usr/ucblib:/usr/bin:/bin
1734 # Extract the first word of "sendmail", so it can be a program name with args.
1735 set dummy sendmail; ac_word=$2
1736 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1737 echo "configure:1738: checking for $ac_word" >&5
1738 if eval "test \"`echo '$''{'ac_cv_path_sendmailpath'+set}'`\" = set"; then
1739 echo $ac_n "(cached) $ac_c" 1>&6
1741 case "$sendmailpath" in
1743 ac_cv_path_sendmailpath="$sendmailpath" # Let the user override the test with a path.
1746 ac_cv_path_sendmailpath="$sendmailpath" # Let the user override the test with a dos path.
1749 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1751 for ac_dir in $ac_dummy; do
1752 test -z "$ac_dir" && ac_dir=.
1753 if test -f $ac_dir/$ac_word; then
1754 ac_cv_path_sendmailpath="$ac_dir/$ac_word"
1759 test -z "$ac_cv_path_sendmailpath" && ac_cv_path_sendmailpath="no"
1763 sendmailpath="$ac_cv_path_sendmailpath"
1764 if test -n "$sendmailpath"; then
1765 echo "$ac_t""$sendmailpath" 1>&6
1767 echo "$ac_t""no" 1>&6
1771 pathtmp=/usr/bin:/bin:/usr/ucb:/usr/local/bin
1772 # Extract the first word of "vi", so it can be a program name with args.
1773 set dummy vi; ac_word=$2
1774 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1775 echo "configure:1776: checking for $ac_word" >&5
1776 if eval "test \"`echo '$''{'ac_cv_path_vipath'+set}'`\" = set"; then
1777 echo $ac_n "(cached) $ac_c" 1>&6
1781 ac_cv_path_vipath="$vipath" # Let the user override the test with a path.
1784 ac_cv_path_vipath="$vipath" # Let the user override the test with a dos path.
1787 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1789 for ac_dir in $ac_dummy; do
1790 test -z "$ac_dir" && ac_dir=.
1791 if test -f $ac_dir/$ac_word; then
1792 ac_cv_path_vipath="$ac_dir/$ac_word"
1797 test -z "$ac_cv_path_vipath" && ac_cv_path_vipath="no"
1801 vipath="$ac_cv_path_vipath"
1802 if test -n "$vipath"; then
1803 echo "$ac_t""$vipath" 1>&6
1805 echo "$ac_t""no" 1>&6
1809 if test -z "$editorpath"; then
1810 editorpath="$vipath"
1813 echo $ac_n "checking for broken vi""... $ac_c" 1>&6
1814 echo "configure:1815: checking for broken vi" >&5
1815 if eval "test \"`echo '$''{'nmh_cv_attvibug'+set}'`\" = set"; then
1816 echo $ac_n "(cached) $ac_c" 1>&6
1818 if echo 'r /nonexist-file
1819 q' | ex > /dev/null 2>&1
1827 echo "$ac_t""$nmh_cv_attvibug" 1>&6
1829 if test "$nmh_cv_attvibug" = yes; then
1830 cat >> confdefs.h <<\EOF
1835 echo $ac_n "checking where mail spool is located""... $ac_c" 1>&6
1836 echo "configure:1837: checking where mail spool is located" >&5
1837 if eval "test \"`echo '$''{'nmh_cv_mailspool'+set}'`\" = set"; then
1838 echo $ac_n "(cached) $ac_c" 1>&6
1840 for mailspool in /var/mail /var/spool/mail /usr/spool/mail /dev/null; do
1841 test -d $mailspool && break
1843 nmh_cv_mailspool=$mailspool
1847 echo "$ac_t""$nmh_cv_mailspool" 1>&6
1848 mailspool=$nmh_cv_mailspool
1850 if test "$lspath" != "no" -a "$cutpath" != "no"; then
1851 echo $ac_n "checking whether the mail spool is world-writable""... $ac_c" 1>&6
1852 echo "configure:1853: checking whether the mail spool is world-writable" >&5
1853 if eval "test \"`echo '$''{'nmh_cv_mailspool_world_writable'+set}'`\" = set"; then
1854 echo $ac_n "(cached) $ac_c" 1>&6
1856 if test "`$lspath -dlL $mailspool | $cutpath -c9`" = "-"; then
1857 nmh_cv_mailspool_world_writable=no
1859 nmh_cv_mailspool_world_writable=yes
1863 echo "$ac_t""$nmh_cv_mailspool_world_writable" 1>&6
1866 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1867 echo "configure:1868: checking how to run the C preprocessor" >&5
1868 # On Suns, sometimes $CPP names a directory.
1869 if test -n "$CPP" && test -d "$CPP"; then
1872 if test -z "$CPP"; then
1873 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1874 echo $ac_n "(cached) $ac_c" 1>&6
1876 # This must be in double quotes, not single quotes, because CPP may get
1877 # substituted into the Makefile and "${CC-cc}" will confuse make.
1879 # On the NeXT, cc -E runs the code through the compiler's parser,
1880 # not just through cpp.
1881 cat > conftest.$ac_ext <<EOF
1882 #line 1883 "configure"
1883 #include "confdefs.h"
1887 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1888 { (eval echo configure:1889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1889 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1890 if test -z "$ac_err"; then
1894 echo "configure: failed program was:" >&5
1895 cat conftest.$ac_ext >&5
1897 CPP="${CC-cc} -E -traditional-cpp"
1898 cat > conftest.$ac_ext <<EOF
1899 #line 1900 "configure"
1900 #include "confdefs.h"
1904 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1905 { (eval echo configure:1906: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1906 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1907 if test -z "$ac_err"; then
1911 echo "configure: failed program was:" >&5
1912 cat conftest.$ac_ext >&5
1914 CPP="${CC-cc} -nologo -E"
1915 cat > conftest.$ac_ext <<EOF
1916 #line 1917 "configure"
1917 #include "confdefs.h"
1921 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1922 { (eval echo configure:1923: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1923 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1924 if test -z "$ac_err"; then
1928 echo "configure: failed program was:" >&5
1929 cat conftest.$ac_ext >&5
1938 ac_cv_prog_CPP="$CPP"
1940 CPP="$ac_cv_prog_CPP"
1942 ac_cv_prog_CPP="$CPP"
1944 echo "$ac_t""$CPP" 1>&6
1946 ac_safe=`echo "lockfile.h" | sed 'y%./+-%__p_%'`
1947 echo $ac_n "checking for lockfile.h""... $ac_c" 1>&6
1948 echo "configure:1949: checking for lockfile.h" >&5
1949 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1950 echo $ac_n "(cached) $ac_c" 1>&6
1952 cat > conftest.$ac_ext <<EOF
1953 #line 1954 "configure"
1954 #include "confdefs.h"
1955 #include <lockfile.h>
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
1962 eval "ac_cv_header_$ac_safe=yes"
1965 echo "configure: failed program was:" >&5
1966 cat conftest.$ac_ext >&5
1968 eval "ac_cv_header_$ac_safe=no"
1972 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1973 echo "$ac_t""yes" 1>&6
1974 echo $ac_n "checking for lockfile_create in -llockfile""... $ac_c" 1>&6
1975 echo "configure:1976: checking for lockfile_create in -llockfile" >&5
1976 ac_lib_var=`echo lockfile'_'lockfile_create | sed 'y%./+-%__p_%'`
1977 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1978 echo $ac_n "(cached) $ac_c" 1>&6
1980 ac_save_LIBS="$LIBS"
1981 LIBS="-llockfile $LIBS"
1982 cat > conftest.$ac_ext <<EOF
1983 #line 1984 "configure"
1984 #include "confdefs.h"
1985 /* Override any gcc2 internal prototype to avoid an error. */
1986 /* We use char because int might match the return type of a gcc2
1987 builtin and then its argument prototype would still apply. */
1988 char lockfile_create();
1994 if { (eval echo configure:1995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1996 eval "ac_cv_lib_$ac_lib_var=yes"
1998 echo "configure: failed program was:" >&5
1999 cat conftest.$ac_ext >&5
2001 eval "ac_cv_lib_$ac_lib_var=no"
2004 LIBS="$ac_save_LIBS"
2007 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2008 echo "$ac_t""yes" 1>&6
2009 ac_tr_lib=HAVE_LIB`echo lockfile | sed -e 's/^a-zA-Z0-9_/_/g' \
2010 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2011 cat >> confdefs.h <<EOF
2012 #define $ac_tr_lib 1
2015 LIBS="-llockfile $LIBS"
2018 echo "$ac_t""no" 1>&6
2022 echo "$ac_t""no" 1>&6
2026 # Extract the first word of "dotlockfile", so it can be a program name with args.
2027 set dummy dotlockfile; ac_word=$2
2028 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2029 echo "configure:2030: checking for $ac_word" >&5
2030 if eval "test \"`echo '$''{'ac_cv_path_dotlockfilepath'+set}'`\" = set"; then
2031 echo $ac_n "(cached) $ac_c" 1>&6
2033 case "$dotlockfilepath" in
2035 ac_cv_path_dotlockfilepath="$dotlockfilepath" # Let the user override the test with a path.
2038 ac_cv_path_dotlockfilepath="$dotlockfilepath" # Let the user override the test with a dos path.
2041 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2043 for ac_dir in $ac_dummy; do
2044 test -z "$ac_dir" && ac_dir=.
2045 if test -f $ac_dir/$ac_word; then
2046 ac_cv_path_dotlockfilepath="$ac_dir/$ac_word"
2051 test -z "$ac_cv_path_dotlockfilepath" && ac_cv_path_dotlockfilepath="no"
2055 dotlockfilepath="$ac_cv_path_dotlockfilepath"
2056 if test -n "$dotlockfilepath"; then
2057 echo "$ac_t""$dotlockfilepath" 1>&6
2059 echo "$ac_t""no" 1>&6
2062 if test "$ac_cv_lib_lockfile_lockfile_create" != "no" ; then
2063 if test "$ac_cv_path_dotlockfilepath" != "no" ; then
2064 echo $ac_n "checking whether dotlockfile is setgid""... $ac_c" 1>&6
2065 echo "configure:2066: checking whether dotlockfile is setgid" >&5
2066 if eval "test \"`echo '$''{'nmh_cv_dotlockfile_setgid'+set}'`\" = set"; then
2067 echo $ac_n "(cached) $ac_c" 1>&6
2069 if test -g "$ac_cv_path_dotlockfilepath" ; then
2070 nmh_cv_dotlockfile_setgid=yes
2072 nmh_cv_dotlockfile_setgid=no
2076 echo "$ac_t""$nmh_cv_dotlockfile_setgid" 1>&6
2080 if test x"$nmh_cv_mailspool_world_writable" = x"no" -a x"$nmh_cv_dotlockfile_setgid" != x"yes" ; then
2081 cat >> confdefs.h <<\EOF
2087 echo $ac_n "checking what group owns the mail spool""... $ac_c" 1>&6
2088 echo "configure:2089: checking what group owns the mail spool" >&5
2089 if eval "test \"`echo '$''{'nmh_cv_ls_mail_grp'+set}'`\" = set"; then
2090 echo $ac_n "(cached) $ac_c" 1>&6
2092 nmh_cv_ls_mail_grp=`$lspath -dL $nmh_cv_ls_grpopt $mailspool|$AWK '{print $4}'`
2096 echo "$ac_t""$nmh_cv_ls_mail_grp" 1>&6
2097 MAIL_SPOOL_GRP=$nmh_cv_ls_mail_grp
2100 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2102 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2103 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2104 echo "configure:2105: checking for $ac_hdr that defines DIR" >&5
2105 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2106 echo $ac_n "(cached) $ac_c" 1>&6
2108 cat > conftest.$ac_ext <<EOF
2109 #line 2110 "configure"
2110 #include "confdefs.h"
2111 #include <sys/types.h>
2117 if { (eval echo configure:2118: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2119 eval "ac_cv_header_dirent_$ac_safe=yes"
2121 echo "configure: failed program was:" >&5
2122 cat conftest.$ac_ext >&5
2124 eval "ac_cv_header_dirent_$ac_safe=no"
2128 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2129 echo "$ac_t""yes" 1>&6
2130 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2131 cat >> confdefs.h <<EOF
2132 #define $ac_tr_hdr 1
2134 ac_header_dirent=$ac_hdr; break
2136 echo "$ac_t""no" 1>&6
2139 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2140 if test $ac_header_dirent = dirent.h; then
2141 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2142 echo "configure:2143: checking for opendir in -ldir" >&5
2143 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2144 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2145 echo $ac_n "(cached) $ac_c" 1>&6
2147 ac_save_LIBS="$LIBS"
2149 cat > conftest.$ac_ext <<EOF
2150 #line 2151 "configure"
2151 #include "confdefs.h"
2152 /* Override any gcc2 internal prototype to avoid an error. */
2153 /* We use char because int might match the return type of a gcc2
2154 builtin and then its argument prototype would still apply. */
2161 if { (eval echo configure:2162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2163 eval "ac_cv_lib_$ac_lib_var=yes"
2165 echo "configure: failed program was:" >&5
2166 cat conftest.$ac_ext >&5
2168 eval "ac_cv_lib_$ac_lib_var=no"
2171 LIBS="$ac_save_LIBS"
2174 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2175 echo "$ac_t""yes" 1>&6
2178 echo "$ac_t""no" 1>&6
2182 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2183 echo "configure:2184: checking for opendir in -lx" >&5
2184 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2185 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2186 echo $ac_n "(cached) $ac_c" 1>&6
2188 ac_save_LIBS="$LIBS"
2190 cat > conftest.$ac_ext <<EOF
2191 #line 2192 "configure"
2192 #include "confdefs.h"
2193 /* Override any gcc2 internal prototype to avoid an error. */
2194 /* We use char because int might match the return type of a gcc2
2195 builtin and then its argument prototype would still apply. */
2202 if { (eval echo configure:2203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2204 eval "ac_cv_lib_$ac_lib_var=yes"
2206 echo "configure: failed program was:" >&5
2207 cat conftest.$ac_ext >&5
2209 eval "ac_cv_lib_$ac_lib_var=no"
2212 LIBS="$ac_save_LIBS"
2215 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2216 echo "$ac_t""yes" 1>&6
2219 echo "$ac_t""no" 1>&6
2224 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2225 echo "configure:2226: checking for ANSI C header files" >&5
2226 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2227 echo $ac_n "(cached) $ac_c" 1>&6
2229 cat > conftest.$ac_ext <<EOF
2230 #line 2231 "configure"
2231 #include "confdefs.h"
2237 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2238 { (eval echo configure:2239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2239 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2240 if test -z "$ac_err"; then
2242 ac_cv_header_stdc=yes
2245 echo "configure: failed program was:" >&5
2246 cat conftest.$ac_ext >&5
2248 ac_cv_header_stdc=no
2252 if test $ac_cv_header_stdc = yes; then
2253 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2254 cat > conftest.$ac_ext <<EOF
2255 #line 2256 "configure"
2256 #include "confdefs.h"
2259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2260 egrep "memchr" >/dev/null 2>&1; then
2264 ac_cv_header_stdc=no
2270 if test $ac_cv_header_stdc = yes; then
2271 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2272 cat > conftest.$ac_ext <<EOF
2273 #line 2274 "configure"
2274 #include "confdefs.h"
2277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2278 egrep "free" >/dev/null 2>&1; then
2282 ac_cv_header_stdc=no
2288 if test $ac_cv_header_stdc = yes; then
2289 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2290 if test "$cross_compiling" = yes; then
2293 cat > conftest.$ac_ext <<EOF
2294 #line 2295 "configure"
2295 #include "confdefs.h"
2297 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2298 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2299 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2300 int main () { int i; for (i = 0; i < 256; i++)
2301 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2305 if { (eval echo configure:2306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2309 echo "configure: failed program was:" >&5
2310 cat conftest.$ac_ext >&5
2312 ac_cv_header_stdc=no
2320 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2321 if test $ac_cv_header_stdc = yes; then
2322 cat >> confdefs.h <<\EOF
2323 #define STDC_HEADERS 1
2328 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2329 echo "configure:2330: checking whether time.h and sys/time.h may both be included" >&5
2330 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2331 echo $ac_n "(cached) $ac_c" 1>&6
2333 cat > conftest.$ac_ext <<EOF
2334 #line 2335 "configure"
2335 #include "confdefs.h"
2336 #include <sys/types.h>
2337 #include <sys/time.h>
2343 if { (eval echo configure:2344: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2345 ac_cv_header_time=yes
2347 echo "configure: failed program was:" >&5
2348 cat conftest.$ac_ext >&5
2350 ac_cv_header_time=no
2355 echo "$ac_t""$ac_cv_header_time" 1>&6
2356 if test $ac_cv_header_time = yes; then
2357 cat >> confdefs.h <<\EOF
2358 #define TIME_WITH_SYS_TIME 1
2363 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2364 echo "configure:2365: checking for sys/wait.h that is POSIX.1 compatible" >&5
2365 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2366 echo $ac_n "(cached) $ac_c" 1>&6
2368 cat > conftest.$ac_ext <<EOF
2369 #line 2370 "configure"
2370 #include "confdefs.h"
2371 #include <sys/types.h>
2372 #include <sys/wait.h>
2374 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2377 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2382 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2385 if { (eval echo configure:2386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2387 ac_cv_header_sys_wait_h=yes
2389 echo "configure: failed program was:" >&5
2390 cat conftest.$ac_ext >&5
2392 ac_cv_header_sys_wait_h=no
2397 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2398 if test $ac_cv_header_sys_wait_h = yes; then
2399 cat >> confdefs.h <<\EOF
2400 #define HAVE_SYS_WAIT_H 1
2405 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
2406 echo "configure:2407: checking whether stat file-mode macros are broken" >&5
2407 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
2408 echo $ac_n "(cached) $ac_c" 1>&6
2410 cat > conftest.$ac_ext <<EOF
2411 #line 2412 "configure"
2412 #include "confdefs.h"
2413 #include <sys/types.h>
2414 #include <sys/stat.h>
2416 #if defined(S_ISBLK) && defined(S_IFDIR)
2417 # if S_ISBLK (S_IFDIR)
2422 #if defined(S_ISBLK) && defined(S_IFCHR)
2423 # if S_ISBLK (S_IFCHR)
2428 #if defined(S_ISLNK) && defined(S_IFREG)
2429 # if S_ISLNK (S_IFREG)
2434 #if defined(S_ISSOCK) && defined(S_IFREG)
2435 # if S_ISSOCK (S_IFREG)
2441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2442 egrep "You lose" >/dev/null 2>&1; then
2444 ac_cv_header_stat_broken=yes
2447 ac_cv_header_stat_broken=no
2453 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
2454 if test $ac_cv_header_stat_broken = yes; then
2455 cat >> confdefs.h <<\EOF
2456 #define STAT_MACROS_BROKEN 1
2461 for ac_hdr in string.h memory.h stdlib.h unistd.h errno.h fcntl.h \
2462 limits.h crypt.h termcap.h termio.h termios.h locale.h \
2463 netdb.h sys/param.h sys/time.h sys/utsname.h arpa/inet.h \
2466 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2467 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2468 echo "configure:2469: checking for $ac_hdr" >&5
2469 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2470 echo $ac_n "(cached) $ac_c" 1>&6
2472 cat > conftest.$ac_ext <<EOF
2473 #line 2474 "configure"
2474 #include "confdefs.h"
2477 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2478 { (eval echo configure:2479: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2479 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2480 if test -z "$ac_err"; then
2482 eval "ac_cv_header_$ac_safe=yes"
2485 echo "configure: failed program was:" >&5
2486 cat conftest.$ac_ext >&5
2488 eval "ac_cv_header_$ac_safe=no"
2492 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2493 echo "$ac_t""yes" 1>&6
2494 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2495 cat >> confdefs.h <<EOF
2496 #define $ac_tr_hdr 1
2500 echo "$ac_t""no" 1>&6
2506 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
2507 echo "configure:2508: checking POSIX termios" >&5
2508 if eval "test \"`echo '$''{'nmh_cv_sys_posix_termios'+set}'`\" = set"; then
2509 echo $ac_n "(cached) $ac_c" 1>&6
2511 cat > conftest.$ac_ext <<EOF
2512 #line 2513 "configure"
2513 #include "confdefs.h"
2514 #include <sys/types.h>
2516 #include <termios.h>
2518 /* SunOS 4.0.3 has termios.h but not the library calls. */
2522 if { (eval echo configure:2523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2524 nmh_cv_sys_posix_termios=yes
2526 echo "configure: failed program was:" >&5
2527 cat conftest.$ac_ext >&5
2529 nmh_cv_sys_posix_termios=no
2534 echo "$ac_t""$nmh_cv_sys_posix_termios" 1>&6
2536 if test $nmh_cv_sys_posix_termios = yes; then
2537 echo $ac_n "checking TIOCGWINSZ in termios.h""... $ac_c" 1>&6
2538 echo "configure:2539: checking TIOCGWINSZ in termios.h" >&5
2539 if eval "test \"`echo '$''{'nmh_cv_header_termios_h_tiocgwinsz'+set}'`\" = set"; then
2540 echo $ac_n "(cached) $ac_c" 1>&6
2542 cat > conftest.$ac_ext <<EOF
2543 #line 2544 "configure"
2544 #include "confdefs.h"
2545 #include <sys/types.h>
2546 #include <termios.h>
2551 if { (eval echo configure:2552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2553 nmh_cv_header_termios_h_tiocgwinsz=yes
2555 echo "configure: failed program was:" >&5
2556 cat conftest.$ac_ext >&5
2558 nmh_cv_header_termios_h_tiocgwinsz=no
2563 echo "$ac_t""$nmh_cv_header_termios_h_tiocgwinsz" 1>&6
2565 nmh_cv_header_termios_h_tiocgwinsz=no
2568 if test $nmh_cv_header_termios_h_tiocgwinsz = no; then
2569 echo $ac_n "checking TIOCGWINSZ in sys/ioctl.h""... $ac_c" 1>&6
2570 echo "configure:2571: checking TIOCGWINSZ in sys/ioctl.h" >&5
2571 if eval "test \"`echo '$''{'nmh_cv_header_sys_ioctl_h_tiocgwinsz'+set}'`\" = set"; then
2572 echo $ac_n "(cached) $ac_c" 1>&6
2574 cat > conftest.$ac_ext <<EOF
2575 #line 2576 "configure"
2576 #include "confdefs.h"
2577 #include <sys/types.h>
2578 #include <sys/ioctl.h>
2583 if { (eval echo configure:2584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2585 nmh_cv_header_sys_ioctl_h_tiocgwinsz=yes
2587 echo "configure: failed program was:" >&5
2588 cat conftest.$ac_ext >&5
2590 nmh_cv_header_sys_ioctl_h_tiocgwinsz=no
2595 echo "$ac_t""$nmh_cv_header_sys_ioctl_h_tiocgwinsz" 1>&6
2596 if test $nmh_cv_header_sys_ioctl_h_tiocgwinsz = yes; then
2597 cat >> confdefs.h <<\EOF
2598 #define GWINSZ_IN_SYS_IOCTL 1
2603 ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2604 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2605 echo "configure:2606: checking for libio.h" >&5
2606 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2607 echo $ac_n "(cached) $ac_c" 1>&6
2609 cat > conftest.$ac_ext <<EOF
2610 #line 2611 "configure"
2611 #include "confdefs.h"
2614 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2615 { (eval echo configure:2616: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2616 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2617 if test -z "$ac_err"; then
2619 eval "ac_cv_header_$ac_safe=yes"
2622 echo "configure: failed program was:" >&5
2623 cat conftest.$ac_ext >&5
2625 eval "ac_cv_header_$ac_safe=no"
2629 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2630 echo "$ac_t""yes" 1>&6
2632 cat > conftest.$ac_ext <<EOF
2633 #line 2634 "configure"
2634 #include "confdefs.h"
2637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2638 egrep "_IO_write_ptr" >/dev/null 2>&1; then
2641 cat >> confdefs.h <<\EOF
2642 #define LINUX_STDIO 1
2649 echo "$ac_t""no" 1>&6
2653 ac_safe=`echo "sys/ptem.h" | sed 'y%./+-%__p_%'`
2654 echo $ac_n "checking for sys/ptem.h""... $ac_c" 1>&6
2655 echo "configure:2656: checking for sys/ptem.h" >&5
2656 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2657 echo $ac_n "(cached) $ac_c" 1>&6
2659 cat > conftest.$ac_ext <<EOF
2660 #line 2661 "configure"
2661 #include "confdefs.h"
2662 #include <sys/ptem.h>
2664 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2665 { (eval echo configure:2666: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2666 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2667 if test -z "$ac_err"; then
2669 eval "ac_cv_header_$ac_safe=yes"
2672 echo "configure: failed program was:" >&5
2673 cat conftest.$ac_ext >&5
2675 eval "ac_cv_header_$ac_safe=no"
2679 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2680 echo "$ac_t""yes" 1>&6
2681 cat >> confdefs.h <<\EOF
2682 #define WINSIZE_IN_PTEM 1
2686 echo "$ac_t""no" 1>&6
2690 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2691 echo "configure:2692: checking for pid_t" >&5
2692 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2693 echo $ac_n "(cached) $ac_c" 1>&6
2695 cat > conftest.$ac_ext <<EOF
2696 #line 2697 "configure"
2697 #include "confdefs.h"
2698 #include <sys/types.h>
2704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2705 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2707 ac_cv_type_pid_t=yes
2715 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2716 if test $ac_cv_type_pid_t = no; then
2717 cat >> confdefs.h <<\EOF
2723 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2724 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2725 echo "configure:2726: checking for vfork.h" >&5
2726 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2727 echo $ac_n "(cached) $ac_c" 1>&6
2729 cat > conftest.$ac_ext <<EOF
2730 #line 2731 "configure"
2731 #include "confdefs.h"
2734 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2735 { (eval echo configure:2736: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2736 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2737 if test -z "$ac_err"; then
2739 eval "ac_cv_header_$ac_safe=yes"
2742 echo "configure: failed program was:" >&5
2743 cat conftest.$ac_ext >&5
2745 eval "ac_cv_header_$ac_safe=no"
2749 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2750 echo "$ac_t""yes" 1>&6
2751 cat >> confdefs.h <<\EOF
2752 #define HAVE_VFORK_H 1
2756 echo "$ac_t""no" 1>&6
2759 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2760 echo "configure:2761: checking for working vfork" >&5
2761 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2762 echo $ac_n "(cached) $ac_c" 1>&6
2764 if test "$cross_compiling" = yes; then
2765 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2766 echo "configure:2767: checking for vfork" >&5
2767 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2768 echo $ac_n "(cached) $ac_c" 1>&6
2770 cat > conftest.$ac_ext <<EOF
2771 #line 2772 "configure"
2772 #include "confdefs.h"
2773 /* System header to define __stub macros and hopefully few prototypes,
2774 which can conflict with char vfork(); below. */
2776 /* Override any gcc2 internal prototype to avoid an error. */
2777 /* We use char because int might match the return type of a gcc2
2778 builtin and then its argument prototype would still apply. */
2783 /* The GNU C library defines this for functions which it implements
2784 to always fail with ENOSYS. Some functions are actually named
2785 something starting with __ and the normal name is an alias. */
2786 #if defined (__stub_vfork) || defined (__stub___vfork)
2794 if { (eval echo configure:2795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2796 eval "ac_cv_func_vfork=yes"
2798 echo "configure: failed program was:" >&5
2799 cat conftest.$ac_ext >&5
2801 eval "ac_cv_func_vfork=no"
2806 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2807 echo "$ac_t""yes" 1>&6
2810 echo "$ac_t""no" 1>&6
2813 ac_cv_func_vfork_works=$ac_cv_func_vfork
2815 cat > conftest.$ac_ext <<EOF
2816 #line 2817 "configure"
2817 #include "confdefs.h"
2818 /* Thanks to Paul Eggert for this test. */
2820 #include <sys/types.h>
2821 #include <sys/stat.h>
2822 #ifdef HAVE_UNISTD_H
2828 /* On some sparc systems, changes by the child to local and incoming
2829 argument registers are propagated back to the parent.
2830 The compiler is told about this with #include <vfork.h>,
2831 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2832 Test for this by using a static variable whose address
2833 is put into a register that is clobbered by the vfork. */
2836 sparc_address_test (int arg)
2838 sparc_address_test (arg) int arg;
2856 pid_t parent = getpid ();
2859 sparc_address_test ();
2864 /* Here is another test for sparc vfork register problems.
2865 This test uses lots of local variables, at least
2866 as many local variables as main has allocated so far
2867 including compiler temporaries. 4 locals are enough for
2868 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2869 A buggy compiler should reuse the register of parent
2870 for one of the local variables, since it will think that
2871 parent can't possibly be used any more in this routine.
2872 Assigning to the local variable will thus munge parent
2873 in the parent process. */
2875 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2876 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2877 /* Convince the compiler that p..p7 are live; otherwise, it might
2878 use the same hardware register for all 8 local variables. */
2879 if (p != p1 || p != p2 || p != p3 || p != p4
2880 || p != p5 || p != p6 || p != p7)
2883 /* On some systems (e.g. IRIX 3.3),
2884 vfork doesn't separate parent from child file descriptors.
2885 If the child closes a descriptor before it execs or exits,
2886 this munges the parent's descriptor as well.
2887 Test for this by closing stdout in the child. */
2888 _exit(close(fileno(stdout)) != 0);
2893 while (wait(&status) != child)
2896 /* Was there some problem with vforking? */
2899 /* Did the child fail? (This shouldn't happen.) */
2902 /* Did the vfork/compiler bug occur? */
2903 || parent != getpid()
2905 /* Did the file descriptor bug occur? */
2906 || fstat(fileno(stdout), &st) != 0
2911 if { (eval echo configure:2912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2913 ac_cv_func_vfork_works=yes
2915 echo "configure: failed program was:" >&5
2916 cat conftest.$ac_ext >&5
2918 ac_cv_func_vfork_works=no
2925 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2926 if test $ac_cv_func_vfork_works = no; then
2927 cat >> confdefs.h <<\EOF
2933 echo $ac_n "checking for mkstemp in -lmkstemp""... $ac_c" 1>&6
2934 echo "configure:2935: checking for mkstemp in -lmkstemp" >&5
2935 ac_lib_var=`echo mkstemp'_'mkstemp | sed 'y%./+-%__p_%'`
2936 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2937 echo $ac_n "(cached) $ac_c" 1>&6
2939 ac_save_LIBS="$LIBS"
2940 LIBS="-lmkstemp $LIBS"
2941 cat > conftest.$ac_ext <<EOF
2942 #line 2943 "configure"
2943 #include "confdefs.h"
2944 /* Override any gcc2 internal prototype to avoid an error. */
2945 /* We use char because int might match the return type of a gcc2
2946 builtin and then its argument prototype would still apply. */
2953 if { (eval echo configure:2954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2955 eval "ac_cv_lib_$ac_lib_var=yes"
2957 echo "configure: failed program was:" >&5
2958 cat conftest.$ac_ext >&5
2960 eval "ac_cv_lib_$ac_lib_var=no"
2963 LIBS="$ac_save_LIBS"
2966 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2967 echo "$ac_t""yes" 1>&6
2968 ac_tr_lib=HAVE_LIB`echo mkstemp | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2969 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2970 cat >> confdefs.h <<EOF
2971 #define $ac_tr_lib 1
2974 LIBS="-lmkstemp $LIBS"
2977 echo "$ac_t""no" 1>&6
2980 for ac_func in waitpid wait3 sigaction sigprocmask sigblock sigsetmask \
2981 sighold sigrelse writev lstat uname tzset killpg mkstemp \
2984 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2985 echo "configure:2986: checking for $ac_func" >&5
2986 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2987 echo $ac_n "(cached) $ac_c" 1>&6
2989 cat > conftest.$ac_ext <<EOF
2990 #line 2991 "configure"
2991 #include "confdefs.h"
2992 /* System header to define __stub macros and hopefully few prototypes,
2993 which can conflict with char $ac_func(); below. */
2995 /* Override any gcc2 internal prototype to avoid an error. */
2996 /* We use char because int might match the return type of a gcc2
2997 builtin and then its argument prototype would still apply. */
3002 /* The GNU C library defines this for functions which it implements
3003 to always fail with ENOSYS. Some functions are actually named
3004 something starting with __ and the normal name is an alias. */
3005 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3013 if { (eval echo configure:3014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3015 eval "ac_cv_func_$ac_func=yes"
3017 echo "configure: failed program was:" >&5
3018 cat conftest.$ac_ext >&5
3020 eval "ac_cv_func_$ac_func=no"
3025 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3026 echo "$ac_t""yes" 1>&6
3027 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3028 cat >> confdefs.h <<EOF
3029 #define $ac_tr_func 1
3033 echo "$ac_t""no" 1>&6
3038 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3039 echo "configure:3040: checking for gethostbyname" >&5
3040 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3041 echo $ac_n "(cached) $ac_c" 1>&6
3043 cat > conftest.$ac_ext <<EOF
3044 #line 3045 "configure"
3045 #include "confdefs.h"
3046 /* System header to define __stub macros and hopefully few prototypes,
3047 which can conflict with char gethostbyname(); below. */
3049 /* Override any gcc2 internal prototype to avoid an error. */
3050 /* We use char because int might match the return type of a gcc2
3051 builtin and then its argument prototype would still apply. */
3052 char gethostbyname();
3056 /* The GNU C library defines this for functions which it implements
3057 to always fail with ENOSYS. Some functions are actually named
3058 something starting with __ and the normal name is an alias. */
3059 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3067 if { (eval echo configure:3068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3069 eval "ac_cv_func_gethostbyname=yes"
3071 echo "configure: failed program was:" >&5
3072 cat conftest.$ac_ext >&5
3074 eval "ac_cv_func_gethostbyname=no"
3079 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3080 echo "$ac_t""yes" 1>&6
3081 cat >> confdefs.h <<\EOF
3082 #define HAVE_GETHOSTBYNAME 1
3086 echo "$ac_t""no" 1>&6
3087 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3088 echo "configure:3089: checking for gethostbyname in -lnsl" >&5
3089 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3090 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3091 echo $ac_n "(cached) $ac_c" 1>&6
3093 ac_save_LIBS="$LIBS"
3095 cat > conftest.$ac_ext <<EOF
3096 #line 3097 "configure"
3097 #include "confdefs.h"
3098 /* Override any gcc2 internal prototype to avoid an error. */
3099 /* We use char because int might match the return type of a gcc2
3100 builtin and then its argument prototype would still apply. */
3101 char gethostbyname();
3107 if { (eval echo configure:3108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3109 eval "ac_cv_lib_$ac_lib_var=yes"
3111 echo "configure: failed program was:" >&5
3112 cat conftest.$ac_ext >&5
3114 eval "ac_cv_lib_$ac_lib_var=no"
3117 LIBS="$ac_save_LIBS"
3120 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3121 echo "$ac_t""yes" 1>&6
3122 cat >> confdefs.h <<\EOF
3123 #define HAVE_GETHOSTBYNAME 1
3127 echo "$ac_t""no" 1>&6
3133 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
3134 echo "configure:3135: checking for sigsetjmp" >&5
3135 cat > conftest.$ac_ext <<EOF
3136 #line 3137 "configure"
3137 #include "confdefs.h"
3140 sigsetjmp((void *)0, 0);
3143 if { (eval echo configure:3144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3145 cat >> confdefs.h <<\EOF
3146 #define HAVE_SIGSETJMP 1
3148 echo "$ac_t""yes" 1>&6
3150 echo "configure: failed program was:" >&5
3151 cat conftest.$ac_ext >&5
3153 echo "$ac_t""no" 1>&6
3157 for ac_func in snprintf strerror strdup
3159 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3160 echo "configure:3161: checking for $ac_func" >&5
3161 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3162 echo $ac_n "(cached) $ac_c" 1>&6
3164 cat > conftest.$ac_ext <<EOF
3165 #line 3166 "configure"
3166 #include "confdefs.h"
3167 /* System header to define __stub macros and hopefully few prototypes,
3168 which can conflict with char $ac_func(); below. */
3170 /* Override any gcc2 internal prototype to avoid an error. */
3171 /* We use char because int might match the return type of a gcc2
3172 builtin and then its argument prototype would still apply. */
3177 /* The GNU C library defines this for functions which it implements
3178 to always fail with ENOSYS. Some functions are actually named
3179 something starting with __ and the normal name is an alias. */
3180 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3188 if { (eval echo configure:3189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3190 eval "ac_cv_func_$ac_func=yes"
3192 echo "configure: failed program was:" >&5
3193 cat conftest.$ac_ext >&5
3195 eval "ac_cv_func_$ac_func=no"
3200 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3201 echo "$ac_t""yes" 1>&6
3202 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3203 cat >> confdefs.h <<EOF
3204 #define $ac_tr_func 1
3208 echo "$ac_t""no" 1>&6
3209 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
3215 cat > conftest.$ac_ext <<EOF
3216 #line 3217 "configure"
3217 #include "confdefs.h"
3220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3221 egrep "initgroups" >/dev/null 2>&1; then
3223 cat >> confdefs.h <<\EOF
3224 #define INITGROUPS_HEADER <grp.h>
3229 cat > conftest.$ac_ext <<EOF
3230 #line 3231 "configure"
3231 #include "confdefs.h"
3234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3235 egrep "initgroups" >/dev/null 2>&1; then
3237 cat >> confdefs.h <<\EOF
3238 #define INITGROUPS_HEADER <unistd.h>
3248 cat > conftest.$ac_ext <<EOF
3249 #line 3250 "configure"
3250 #include "confdefs.h"
3253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3254 egrep "snprintf" >/dev/null 2>&1; then
3256 cat >> confdefs.h <<\EOF
3257 #define HAVE_SNPRINTF_PROTOTYPE 1
3264 echo $ac_n "checking for modf""... $ac_c" 1>&6
3265 echo "configure:3266: checking for modf" >&5
3266 if eval "test \"`echo '$''{'ac_cv_func_modf'+set}'`\" = set"; then
3267 echo $ac_n "(cached) $ac_c" 1>&6
3269 cat > conftest.$ac_ext <<EOF
3270 #line 3271 "configure"
3271 #include "confdefs.h"
3272 /* System header to define __stub macros and hopefully few prototypes,
3273 which can conflict with char modf(); below. */
3275 /* Override any gcc2 internal prototype to avoid an error. */
3276 /* We use char because int might match the return type of a gcc2
3277 builtin and then its argument prototype would still apply. */
3282 /* The GNU C library defines this for functions which it implements
3283 to always fail with ENOSYS. Some functions are actually named
3284 something starting with __ and the normal name is an alias. */
3285 #if defined (__stub_modf) || defined (__stub___modf)
3293 if { (eval echo configure:3294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3295 eval "ac_cv_func_modf=yes"
3297 echo "configure: failed program was:" >&5
3298 cat conftest.$ac_ext >&5
3300 eval "ac_cv_func_modf=no"
3305 if eval "test \"`echo '$ac_cv_func_'modf`\" = yes"; then
3306 echo "$ac_t""yes" 1>&6
3309 echo "$ac_t""no" 1>&6
3310 echo $ac_n "checking for modf in -lm""... $ac_c" 1>&6
3311 echo "configure:3312: checking for modf in -lm" >&5
3312 ac_lib_var=`echo m'_'modf | sed 'y%./+-%__p_%'`
3313 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3314 echo $ac_n "(cached) $ac_c" 1>&6
3316 ac_save_LIBS="$LIBS"
3318 cat > conftest.$ac_ext <<EOF
3319 #line 3320 "configure"
3320 #include "confdefs.h"
3321 /* Override any gcc2 internal prototype to avoid an error. */
3322 /* We use char because int might match the return type of a gcc2
3323 builtin and then its argument prototype would still apply. */
3330 if { (eval echo configure:3331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3332 eval "ac_cv_lib_$ac_lib_var=yes"
3334 echo "configure: failed program was:" >&5
3335 cat conftest.$ac_ext >&5
3337 eval "ac_cv_lib_$ac_lib_var=no"
3340 LIBS="$ac_save_LIBS"
3343 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3344 echo "$ac_t""yes" 1>&6
3345 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
3346 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3347 cat >> confdefs.h <<EOF
3348 #define $ac_tr_lib 1
3354 echo "$ac_t""no" 1>&6
3360 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3361 echo "configure:3362: checking for gethostbyname" >&5
3362 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3363 echo $ac_n "(cached) $ac_c" 1>&6
3365 cat > conftest.$ac_ext <<EOF
3366 #line 3367 "configure"
3367 #include "confdefs.h"
3368 /* System header to define __stub macros and hopefully few prototypes,
3369 which can conflict with char gethostbyname(); below. */
3371 /* Override any gcc2 internal prototype to avoid an error. */
3372 /* We use char because int might match the return type of a gcc2
3373 builtin and then its argument prototype would still apply. */
3374 char gethostbyname();
3378 /* The GNU C library defines this for functions which it implements
3379 to always fail with ENOSYS. Some functions are actually named
3380 something starting with __ and the normal name is an alias. */
3381 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3389 if { (eval echo configure:3390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3391 eval "ac_cv_func_gethostbyname=yes"
3393 echo "configure: failed program was:" >&5
3394 cat conftest.$ac_ext >&5
3396 eval "ac_cv_func_gethostbyname=no"
3401 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3402 echo "$ac_t""yes" 1>&6
3405 echo "$ac_t""no" 1>&6
3406 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3407 echo "configure:3408: checking for gethostbyname in -lnsl" >&5
3408 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3409 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3410 echo $ac_n "(cached) $ac_c" 1>&6
3412 ac_save_LIBS="$LIBS"
3414 cat > conftest.$ac_ext <<EOF
3415 #line 3416 "configure"
3416 #include "confdefs.h"
3417 /* Override any gcc2 internal prototype to avoid an error. */
3418 /* We use char because int might match the return type of a gcc2
3419 builtin and then its argument prototype would still apply. */
3420 char gethostbyname();
3426 if { (eval echo configure:3427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3428 eval "ac_cv_lib_$ac_lib_var=yes"
3430 echo "configure: failed program was:" >&5
3431 cat conftest.$ac_ext >&5
3433 eval "ac_cv_lib_$ac_lib_var=no"
3436 LIBS="$ac_save_LIBS"
3439 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3440 echo "$ac_t""yes" 1>&6
3441 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
3442 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3443 cat >> confdefs.h <<EOF
3444 #define $ac_tr_lib 1
3450 echo "$ac_t""no" 1>&6
3451 echo $ac_n "checking for gethostbyname in -lresolv""... $ac_c" 1>&6
3452 echo "configure:3453: checking for gethostbyname in -lresolv" >&5
3453 ac_lib_var=`echo resolv'_'gethostbyname | sed 'y%./+-%__p_%'`
3454 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3455 echo $ac_n "(cached) $ac_c" 1>&6
3457 ac_save_LIBS="$LIBS"
3458 LIBS="-lresolv $LIBS"
3459 cat > conftest.$ac_ext <<EOF
3460 #line 3461 "configure"
3461 #include "confdefs.h"
3462 /* Override any gcc2 internal prototype to avoid an error. */
3463 /* We use char because int might match the return type of a gcc2
3464 builtin and then its argument prototype would still apply. */
3465 char gethostbyname();
3471 if { (eval echo configure:3472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3473 eval "ac_cv_lib_$ac_lib_var=yes"
3475 echo "configure: failed program was:" >&5
3476 cat conftest.$ac_ext >&5
3478 eval "ac_cv_lib_$ac_lib_var=no"
3481 LIBS="$ac_save_LIBS"
3484 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3485 echo "$ac_t""yes" 1>&6
3486 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
3487 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3488 cat >> confdefs.h <<EOF
3489 #define $ac_tr_lib 1
3492 LIBS="-lresolv $LIBS"
3495 echo "$ac_t""no" 1>&6
3502 echo $ac_n "checking for socket""... $ac_c" 1>&6
3503 echo "configure:3504: checking for socket" >&5
3504 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
3505 echo $ac_n "(cached) $ac_c" 1>&6
3507 cat > conftest.$ac_ext <<EOF
3508 #line 3509 "configure"
3509 #include "confdefs.h"
3510 /* System header to define __stub macros and hopefully few prototypes,
3511 which can conflict with char socket(); below. */
3513 /* Override any gcc2 internal prototype to avoid an error. */
3514 /* We use char because int might match the return type of a gcc2
3515 builtin and then its argument prototype would still apply. */
3520 /* The GNU C library defines this for functions which it implements
3521 to always fail with ENOSYS. Some functions are actually named
3522 something starting with __ and the normal name is an alias. */
3523 #if defined (__stub_socket) || defined (__stub___socket)
3531 if { (eval echo configure:3532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3533 eval "ac_cv_func_socket=yes"
3535 echo "configure: failed program was:" >&5
3536 cat conftest.$ac_ext >&5
3538 eval "ac_cv_func_socket=no"
3543 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
3544 echo "$ac_t""yes" 1>&6
3547 echo "$ac_t""no" 1>&6
3548 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
3549 echo "configure:3550: checking for socket in -lsocket" >&5
3550 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
3551 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3552 echo $ac_n "(cached) $ac_c" 1>&6
3554 ac_save_LIBS="$LIBS"
3555 LIBS="-lsocket $LIBS"
3556 cat > conftest.$ac_ext <<EOF
3557 #line 3558 "configure"
3558 #include "confdefs.h"
3559 /* Override any gcc2 internal prototype to avoid an error. */
3560 /* We use char because int might match the return type of a gcc2
3561 builtin and then its argument prototype would still apply. */
3568 if { (eval echo configure:3569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3570 eval "ac_cv_lib_$ac_lib_var=yes"
3572 echo "configure: failed program was:" >&5
3573 cat conftest.$ac_ext >&5
3575 eval "ac_cv_lib_$ac_lib_var=no"
3578 LIBS="$ac_save_LIBS"
3581 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3582 echo "$ac_t""yes" 1>&6
3583 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
3584 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3585 cat >> confdefs.h <<EOF
3586 #define $ac_tr_lib 1
3589 LIBS="-lsocket $LIBS"
3592 echo "$ac_t""no" 1>&6
3599 termcap_curses_order="termcap curses ncurses"
3600 for lib in $termcap_curses_order; do
3601 echo $ac_n "checking for tgetent in -l${lib}""... $ac_c" 1>&6
3602 echo "configure:3603: checking for tgetent in -l${lib}" >&5
3603 ac_lib_var=`echo ${lib}'_'tgetent | sed 'y%./+-%__p_%'`
3604 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3605 echo $ac_n "(cached) $ac_c" 1>&6
3607 ac_save_LIBS="$LIBS"
3608 LIBS="-l${lib} $LIBS"
3609 cat > conftest.$ac_ext <<EOF
3610 #line 3611 "configure"
3611 #include "confdefs.h"
3612 /* Override any gcc2 internal prototype to avoid an error. */
3613 /* We use char because int might match the return type of a gcc2
3614 builtin and then its argument prototype would still apply. */
3621 if { (eval echo configure:3622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3623 eval "ac_cv_lib_$ac_lib_var=yes"
3625 echo "configure: failed program was:" >&5
3626 cat conftest.$ac_ext >&5
3628 eval "ac_cv_lib_$ac_lib_var=no"
3631 LIBS="$ac_save_LIBS"
3634 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3635 echo "$ac_t""yes" 1>&6
3636 TERMLIB="-l$lib"; break
3638 echo "$ac_t""no" 1>&6
3643 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
3644 echo "configure:3645: checking for dbm_open" >&5
3645 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
3646 echo $ac_n "(cached) $ac_c" 1>&6
3648 cat > conftest.$ac_ext <<EOF
3649 #line 3650 "configure"
3650 #include "confdefs.h"
3651 /* System header to define __stub macros and hopefully few prototypes,
3652 which can conflict with char dbm_open(); below. */
3654 /* Override any gcc2 internal prototype to avoid an error. */
3655 /* We use char because int might match the return type of a gcc2
3656 builtin and then its argument prototype would still apply. */
3661 /* The GNU C library defines this for functions which it implements
3662 to always fail with ENOSYS. Some functions are actually named
3663 something starting with __ and the normal name is an alias. */
3664 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
3672 if { (eval echo configure:3673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3674 eval "ac_cv_func_dbm_open=yes"
3676 echo "configure: failed program was:" >&5
3677 cat conftest.$ac_ext >&5
3679 eval "ac_cv_func_dbm_open=no"
3684 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
3685 echo "$ac_t""yes" 1>&6
3688 echo "$ac_t""no" 1>&6
3689 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
3690 echo "configure:3691: checking for dbm_open in -lndbm" >&5
3691 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
3692 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3693 echo $ac_n "(cached) $ac_c" 1>&6
3695 ac_save_LIBS="$LIBS"
3697 cat > conftest.$ac_ext <<EOF
3698 #line 3699 "configure"
3699 #include "confdefs.h"
3700 /* Override any gcc2 internal prototype to avoid an error. */
3701 /* We use char because int might match the return type of a gcc2
3702 builtin and then its argument prototype would still apply. */
3709 if { (eval echo configure:3710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3711 eval "ac_cv_lib_$ac_lib_var=yes"
3713 echo "configure: failed program was:" >&5
3714 cat conftest.$ac_ext >&5
3716 eval "ac_cv_lib_$ac_lib_var=no"
3719 LIBS="$ac_save_LIBS"
3722 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3723 echo "$ac_t""yes" 1>&6
3724 ac_tr_lib=HAVE_LIB`echo ndbm | sed -e 's/^a-zA-Z0-9_/_/g' \
3725 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3726 cat >> confdefs.h <<EOF
3727 #define $ac_tr_lib 1
3733 echo "$ac_t""no" 1>&6
3734 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
3735 echo "configure:3736: checking for dbm_open in -ldbm" >&5
3736 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
3737 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3738 echo $ac_n "(cached) $ac_c" 1>&6
3740 ac_save_LIBS="$LIBS"
3742 cat > conftest.$ac_ext <<EOF
3743 #line 3744 "configure"
3744 #include "confdefs.h"
3745 /* Override any gcc2 internal prototype to avoid an error. */
3746 /* We use char because int might match the return type of a gcc2
3747 builtin and then its argument prototype would still apply. */
3754 if { (eval echo configure:3755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3756 eval "ac_cv_lib_$ac_lib_var=yes"
3758 echo "configure: failed program was:" >&5
3759 cat conftest.$ac_ext >&5
3761 eval "ac_cv_lib_$ac_lib_var=no"
3764 LIBS="$ac_save_LIBS"
3767 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3768 echo "$ac_t""yes" 1>&6
3769 ac_tr_lib=HAVE_LIB`echo dbm | sed -e 's/^a-zA-Z0-9_/_/g' \
3770 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3771 cat >> confdefs.h <<EOF
3772 #define $ac_tr_lib 1
3778 echo "$ac_t""no" 1>&6
3786 for ac_hdr in db1/ndbm.h
3788 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3789 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3790 echo "configure:3791: checking for $ac_hdr" >&5
3791 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3792 echo $ac_n "(cached) $ac_c" 1>&6
3794 cat > conftest.$ac_ext <<EOF
3795 #line 3796 "configure"
3796 #include "confdefs.h"
3799 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3800 { (eval echo configure:3801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3801 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3802 if test -z "$ac_err"; then
3804 eval "ac_cv_header_$ac_safe=yes"
3807 echo "configure: failed program was:" >&5
3808 cat conftest.$ac_ext >&5
3810 eval "ac_cv_header_$ac_safe=no"
3814 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3815 echo "$ac_t""yes" 1>&6
3816 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3817 cat >> confdefs.h <<EOF
3818 #define $ac_tr_hdr 1
3822 echo "$ac_t""no" 1>&6
3827 if test x"$with_hesiod" != x -a x"$with_hesiod" != x"no"; then
3828 if test x"$with_hesiod" != x"yes"; then
3829 HESIOD_INCLUDES="-I$with_hesiod/include"
3830 HESIOD_LIBS="-L$with_hesiod/lib"
3832 echo $ac_n "checking for res_send""... $ac_c" 1>&6
3833 echo "configure:3834: checking for res_send" >&5
3834 if eval "test \"`echo '$''{'ac_cv_func_res_send'+set}'`\" = set"; then
3835 echo $ac_n "(cached) $ac_c" 1>&6
3837 cat > conftest.$ac_ext <<EOF
3838 #line 3839 "configure"
3839 #include "confdefs.h"
3840 /* System header to define __stub macros and hopefully few prototypes,
3841 which can conflict with char res_send(); below. */
3843 /* Override any gcc2 internal prototype to avoid an error. */
3844 /* We use char because int might match the return type of a gcc2
3845 builtin and then its argument prototype would still apply. */
3850 /* The GNU C library defines this for functions which it implements
3851 to always fail with ENOSYS. Some functions are actually named
3852 something starting with __ and the normal name is an alias. */
3853 #if defined (__stub_res_send) || defined (__stub___res_send)
3861 if { (eval echo configure:3862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3863 eval "ac_cv_func_res_send=yes"
3865 echo "configure: failed program was:" >&5
3866 cat conftest.$ac_ext >&5
3868 eval "ac_cv_func_res_send=no"
3873 if eval "test \"`echo '$ac_cv_func_'res_send`\" = yes"; then
3874 echo "$ac_t""yes" 1>&6
3877 echo "$ac_t""no" 1>&6
3878 echo $ac_n "checking for res_send in -lresolv""... $ac_c" 1>&6
3879 echo "configure:3880: checking for res_send in -lresolv" >&5
3880 ac_lib_var=`echo resolv'_'res_send | sed 'y%./+-%__p_%'`
3881 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3882 echo $ac_n "(cached) $ac_c" 1>&6
3884 ac_save_LIBS="$LIBS"
3885 LIBS="-lresolv $LIBS"
3886 cat > conftest.$ac_ext <<EOF
3887 #line 3888 "configure"
3888 #include "confdefs.h"
3889 /* Override any gcc2 internal prototype to avoid an error. */
3890 /* We use char because int might match the return type of a gcc2
3891 builtin and then its argument prototype would still apply. */
3898 if { (eval echo configure:3899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3900 eval "ac_cv_lib_$ac_lib_var=yes"
3902 echo "configure: failed program was:" >&5
3903 cat conftest.$ac_ext >&5
3905 eval "ac_cv_lib_$ac_lib_var=no"
3908 LIBS="$ac_save_LIBS"
3911 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3912 echo "$ac_t""yes" 1>&6
3913 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
3914 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3915 cat >> confdefs.h <<EOF
3916 #define $ac_tr_lib 1
3919 LIBS="-lresolv $LIBS"
3922 echo "$ac_t""no" 1>&6
3927 echo $ac_n "checking for hes_resolve in -lhesiod""... $ac_c" 1>&6
3928 echo "configure:3929: checking for hes_resolve in -lhesiod" >&5
3929 ac_lib_var=`echo hesiod'_'hes_resolve | sed 'y%./+-%__p_%'`
3930 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3931 echo $ac_n "(cached) $ac_c" 1>&6
3933 ac_save_LIBS="$LIBS"
3934 LIBS="-lhesiod $HESIOD_LIBS $LIBS"
3935 cat > conftest.$ac_ext <<EOF
3936 #line 3937 "configure"
3937 #include "confdefs.h"
3938 /* Override any gcc2 internal prototype to avoid an error. */
3939 /* We use char because int might match the return type of a gcc2
3940 builtin and then its argument prototype would still apply. */
3947 if { (eval echo configure:3948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3949 eval "ac_cv_lib_$ac_lib_var=yes"
3951 echo "configure: failed program was:" >&5
3952 cat conftest.$ac_ext >&5
3954 eval "ac_cv_lib_$ac_lib_var=no"
3957 LIBS="$ac_save_LIBS"
3960 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3961 echo "$ac_t""yes" 1>&6
3962 HESIOD_LIBS="$HESIOD_LIBS -lhesiod"
3964 echo "$ac_t""no" 1>&6
3965 { echo "configure: error: Hesiod library not found" 1>&2; exit 1; }
3970 if test x"$with_krb4" != x -a x"$with_krb4" != x"no"; then
3971 if test x"$with_krb4" != x"yes"; then
3972 KRB4_INCLUDES="-I$with_krb4/include"
3973 if test -d "$with_krb4/include/kerberosIV"; then
3974 KRB4_INCLUDES="$KRB4_INCLUDES -I$with_krb4/include/kerberosIV"
3976 KRB4_LIBS="-L$with_krb4/lib"
3977 elif test -d /usr/include/kerberosIV; then
3978 KRB4_INCLUDES="-I/usr/include/kerberosIV"
3980 echo $ac_n "checking for krb_rd_req in -lkrb4""... $ac_c" 1>&6
3981 echo "configure:3982: checking for krb_rd_req in -lkrb4" >&5
3982 ac_lib_var=`echo krb4'_'krb_rd_req | sed 'y%./+-%__p_%'`
3983 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3984 echo $ac_n "(cached) $ac_c" 1>&6
3986 ac_save_LIBS="$LIBS"
3987 LIBS="-lkrb4 $KRB4_LIBS -ldes425 -lkrb5 -lcrypto -lcom_err $LIBS"
3988 cat > conftest.$ac_ext <<EOF
3989 #line 3990 "configure"
3990 #include "confdefs.h"
3991 /* Override any gcc2 internal prototype to avoid an error. */
3992 /* We use char because int might match the return type of a gcc2
3993 builtin and then its argument prototype would still apply. */
4000 if { (eval echo configure:4001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4002 eval "ac_cv_lib_$ac_lib_var=yes"
4004 echo "configure: failed program was:" >&5
4005 cat conftest.$ac_ext >&5
4007 eval "ac_cv_lib_$ac_lib_var=no"
4010 LIBS="$ac_save_LIBS"
4013 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4014 echo "$ac_t""yes" 1>&6
4015 KRB4_LIBS="$KRB4_LIBS -lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err"
4017 echo "$ac_t""no" 1>&6
4018 echo $ac_n "checking for krb_rd_req in -lkrb""... $ac_c" 1>&6
4019 echo "configure:4020: checking for krb_rd_req in -lkrb" >&5
4020 ac_lib_var=`echo krb'_'krb_rd_req | sed 'y%./+-%__p_%'`
4021 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4022 echo $ac_n "(cached) $ac_c" 1>&6
4024 ac_save_LIBS="$LIBS"
4025 LIBS="-lkrb $KRB4_LIBS -ldes $LIBS"
4026 cat > conftest.$ac_ext <<EOF
4027 #line 4028 "configure"
4028 #include "confdefs.h"
4029 /* Override any gcc2 internal prototype to avoid an error. */
4030 /* We use char because int might match the return type of a gcc2
4031 builtin and then its argument prototype would still apply. */
4038 if { (eval echo configure:4039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4040 eval "ac_cv_lib_$ac_lib_var=yes"
4042 echo "configure: failed program was:" >&5
4043 cat conftest.$ac_ext >&5
4045 eval "ac_cv_lib_$ac_lib_var=no"
4048 LIBS="$ac_save_LIBS"
4051 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4052 echo "$ac_t""yes" 1>&6
4053 KRB4_LIBS="$KRB4_LIBS -lkrb -ldes"
4055 echo "$ac_t""no" 1>&6
4056 { echo "configure: error: Kerberos 4 libraries not found" 1>&2; exit 1; }
4063 if test x"$with_cyrus_sasl" != x -a x"$with_cyrus_sasl" != "no"; then
4064 if test x"$with_cyrus_sasl" != x"yes"; then
4065 SASL_INCLUDES="-I$with_cyrus_sasl/include"
4066 SASL_LIBS="-L$with_cyrus_sasl/lib"
4068 save_LDFLAGS="$LDFLAGS"
4069 LDFLAGS="$LDFLAGS $SASL_LIBS"
4070 echo $ac_n "checking for sasl_client_new in -lsasl""... $ac_c" 1>&6
4071 echo "configure:4072: checking for sasl_client_new in -lsasl" >&5
4072 ac_lib_var=`echo sasl'_'sasl_client_new | sed 'y%./+-%__p_%'`
4073 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4074 echo $ac_n "(cached) $ac_c" 1>&6
4076 ac_save_LIBS="$LIBS"
4078 cat > conftest.$ac_ext <<EOF
4079 #line 4080 "configure"
4080 #include "confdefs.h"
4081 /* Override any gcc2 internal prototype to avoid an error. */
4082 /* We use char because int might match the return type of a gcc2
4083 builtin and then its argument prototype would still apply. */
4084 char sasl_client_new();
4090 if { (eval echo configure:4091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4092 eval "ac_cv_lib_$ac_lib_var=yes"
4094 echo "configure: failed program was:" >&5
4095 cat conftest.$ac_ext >&5
4097 eval "ac_cv_lib_$ac_lib_var=no"
4100 LIBS="$ac_save_LIBS"
4103 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4104 echo "$ac_t""yes" 1>&6
4105 SASL_LIBS="$SASL_LIBS -lsasl"
4107 echo "$ac_t""no" 1>&6
4108 { echo "configure: error: Cyrus SASL library not found" 1>&2; exit 1; }
4111 LDFLAGS="$save_LDFLAGS"
4115 nmh_save_LIBS="$LIBS"
4116 LIBS="$TERMLIB $LIBS"
4118 echo $ac_n "checking if an include file defines ospeed""... $ac_c" 1>&6
4119 echo "configure:4120: checking if an include file defines ospeed" >&5
4120 if eval "test \"`echo '$''{'nmh_cv_decl_ospeed_include_defines'+set}'`\" = set"; then
4121 echo $ac_n "(cached) $ac_c" 1>&6
4123 cat > conftest.$ac_ext <<EOF
4124 #line 4125 "configure"
4125 #include "confdefs.h"
4126 #include <sys/types.h>
4128 #include <termios.h>
4131 #include <termcap.h>
4137 if { (eval echo configure:4138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4139 nmh_cv_decl_ospeed_include_defines=yes
4141 echo "configure: failed program was:" >&5
4142 cat conftest.$ac_ext >&5
4144 nmh_cv_decl_ospeed_include_defines=no
4149 echo "$ac_t""$nmh_cv_decl_ospeed_include_defines" 1>&6
4151 if test $nmh_cv_decl_ospeed_include_defines = no; then
4152 echo $ac_n "checking if you must define ospeed""... $ac_c" 1>&6
4153 echo "configure:4154: checking if you must define ospeed" >&5
4154 if eval "test \"`echo '$''{'nmh_cv_decl_ospeed_must_define'+set}'`\" = set"; then
4155 echo $ac_n "(cached) $ac_c" 1>&6
4157 cat > conftest.$ac_ext <<EOF
4158 #line 4159 "configure"
4159 #include "confdefs.h"
4162 extern short ospeed; ospeed = 0;
4165 if { (eval echo configure:4166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4167 nmh_cv_decl_ospeed_must_define=yes
4169 echo "configure: failed program was:" >&5
4170 cat conftest.$ac_ext >&5
4172 nmh_cv_decl_ospeed_must_define=no
4177 echo "$ac_t""$nmh_cv_decl_ospeed_must_define" 1>&6
4180 if test $nmh_cv_decl_ospeed_include_defines = yes; then
4181 cat >> confdefs.h <<\EOF
4182 #define HAVE_OSPEED 1
4184 elif test $nmh_cv_decl_ospeed_must_define = yes; then
4185 cat >> confdefs.h <<\EOF
4186 #define HAVE_OSPEED 1
4189 cat >> confdefs.h <<\EOF
4190 #define MUST_DEFINE_OSPEED 1
4196 LIBS="$nmh_save_LIBS"
4198 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4199 echo "configure:4200: checking return type of signal handlers" >&5
4200 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4201 echo $ac_n "(cached) $ac_c" 1>&6
4203 cat > conftest.$ac_ext <<EOF
4204 #line 4205 "configure"
4205 #include "confdefs.h"
4206 #include <sys/types.h>
4212 extern "C" void (*signal (int, void (*)(int)))(int);
4214 void (*signal ()) ();
4221 if { (eval echo configure:4222: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4223 ac_cv_type_signal=void
4225 echo "configure: failed program was:" >&5
4226 cat conftest.$ac_ext >&5
4228 ac_cv_type_signal=int
4233 echo "$ac_t""$ac_cv_type_signal" 1>&6
4234 cat >> confdefs.h <<EOF
4235 #define RETSIGTYPE $ac_cv_type_signal
4239 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
4240 echo "configure:4241: checking for pid_t" >&5
4241 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
4242 echo $ac_n "(cached) $ac_c" 1>&6
4244 cat > conftest.$ac_ext <<EOF
4245 #line 4246 "configure"
4246 #include "confdefs.h"
4247 #include <sys/types.h>
4253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4254 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4256 ac_cv_type_pid_t=yes
4264 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
4265 if test $ac_cv_type_pid_t = no; then
4266 cat >> confdefs.h <<\EOF
4272 echo $ac_n "checking for off_t""... $ac_c" 1>&6
4273 echo "configure:4274: checking for off_t" >&5
4274 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
4275 echo $ac_n "(cached) $ac_c" 1>&6
4277 cat > conftest.$ac_ext <<EOF
4278 #line 4279 "configure"
4279 #include "confdefs.h"
4280 #include <sys/types.h>
4286 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4287 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4289 ac_cv_type_off_t=yes
4297 echo "$ac_t""$ac_cv_type_off_t" 1>&6
4298 if test $ac_cv_type_off_t = no; then
4299 cat >> confdefs.h <<\EOF
4305 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
4306 echo "configure:4307: checking for uid_t in sys/types.h" >&5
4307 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
4308 echo $ac_n "(cached) $ac_c" 1>&6
4310 cat > conftest.$ac_ext <<EOF
4311 #line 4312 "configure"
4312 #include "confdefs.h"
4313 #include <sys/types.h>
4315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4316 egrep "uid_t" >/dev/null 2>&1; then
4318 ac_cv_type_uid_t=yes
4327 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
4328 if test $ac_cv_type_uid_t = no; then
4329 cat >> confdefs.h <<\EOF
4333 cat >> confdefs.h <<\EOF
4339 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
4340 echo "configure:4341: checking for mode_t" >&5
4341 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
4342 echo $ac_n "(cached) $ac_c" 1>&6
4344 cat > conftest.$ac_ext <<EOF
4345 #line 4346 "configure"
4346 #include "confdefs.h"
4347 #include <sys/types.h>
4353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4354 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4356 ac_cv_type_mode_t=yes
4359 ac_cv_type_mode_t=no
4364 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
4365 if test $ac_cv_type_mode_t = no; then
4366 cat >> confdefs.h <<\EOF
4372 echo $ac_n "checking for size_t""... $ac_c" 1>&6
4373 echo "configure:4374: checking for size_t" >&5
4374 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
4375 echo $ac_n "(cached) $ac_c" 1>&6
4377 cat > conftest.$ac_ext <<EOF
4378 #line 4379 "configure"
4379 #include "confdefs.h"
4380 #include <sys/types.h>
4386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4387 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4389 ac_cv_type_size_t=yes
4392 ac_cv_type_size_t=no
4397 echo "$ac_t""$ac_cv_type_size_t" 1>&6
4398 if test $ac_cv_type_size_t = no; then
4399 cat >> confdefs.h <<\EOF
4400 #define size_t unsigned
4406 echo $ac_n "checking for sigset_t""... $ac_c" 1>&6
4407 echo "configure:4408: checking for sigset_t" >&5
4408 if eval "test \"`echo '$''{'nmh_cv_type_sigset_t'+set}'`\" = set"; then
4409 echo $ac_n "(cached) $ac_c" 1>&6
4411 cat > conftest.$ac_ext <<EOF
4412 #line 4413 "configure"
4413 #include "confdefs.h"
4414 #include <sys/types.h>
4417 sigset_t tempsigset;
4420 if { (eval echo configure:4421: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4422 nmh_cv_type_sigset_t=yes
4424 echo "configure: failed program was:" >&5
4425 cat conftest.$ac_ext >&5
4427 nmh_cv_type_sigset_t=no
4432 echo "$ac_t""$nmh_cv_type_sigset_t" 1>&6
4433 if test $nmh_cv_type_sigset_t = no; then
4434 cat >> confdefs.h <<\EOF
4435 #define sigset_t unsigned int
4440 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
4441 echo "configure:4442: checking for st_blksize in struct stat" >&5
4442 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
4443 echo $ac_n "(cached) $ac_c" 1>&6
4445 cat > conftest.$ac_ext <<EOF
4446 #line 4447 "configure"
4447 #include "confdefs.h"
4448 #include <sys/types.h>
4449 #include <sys/stat.h>
4451 struct stat s; s.st_blksize;
4454 if { (eval echo configure:4455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4456 ac_cv_struct_st_blksize=yes
4458 echo "configure: failed program was:" >&5
4459 cat conftest.$ac_ext >&5
4461 ac_cv_struct_st_blksize=no
4466 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
4467 if test $ac_cv_struct_st_blksize = yes; then
4468 cat >> confdefs.h <<\EOF
4469 #define HAVE_ST_BLKSIZE 1
4475 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
4476 echo "configure:4477: checking for tm_gmtoff in struct tm" >&5
4477 if eval "test \"`echo '$''{'nmh_cv_struct_tm_gmtoff'+set}'`\" = set"; then
4478 echo $ac_n "(cached) $ac_c" 1>&6
4480 cat > conftest.$ac_ext <<EOF
4481 #line 4482 "configure"
4482 #include "confdefs.h"
4483 #ifdef TIME_WITH_SYS_TIME
4484 # include <sys/time.h>
4487 # ifdef TM_IN_SYS_TIME
4488 # include <sys/time.h>
4494 struct tm temptm; temptm.tm_gmtoff = 0;
4497 if { (eval echo configure:4498: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4499 nmh_cv_struct_tm_gmtoff=yes
4501 echo "configure: failed program was:" >&5
4502 cat conftest.$ac_ext >&5
4504 nmh_cv_struct_tm_gmtoff=no
4509 echo "$ac_t""$nmh_cv_struct_tm_gmtoff" 1>&6
4510 if test $nmh_cv_struct_tm_gmtoff = yes; then
4511 cat >> confdefs.h <<\EOF
4512 #define HAVE_TM_GMTOFF 1
4517 echo $ac_n "checking what style of signals to use""... $ac_c" 1>&6
4518 echo "configure:4519: checking what style of signals to use" >&5
4519 if test $ac_cv_func_sigaction = yes -a $ac_cv_func_sigprocmask = yes; then
4520 signals_style=POSIX_SIGNALS
4521 cat >> confdefs.h <<\EOF
4522 #define POSIX_SIGNALS 1
4525 cat >> confdefs.h <<\EOF
4526 #define RELIABLE_SIGNALS 1
4529 elif test $ac_cv_func_sigblock = yes -a $ac_cv_func_sigsetmask = yes; then
4530 signals_style=BSD_SIGNALS
4531 cat >> confdefs.h <<\EOF
4532 #define BSD_SIGNALS 1
4535 cat >> confdefs.h <<\EOF
4536 #define RELIABLE_SIGNALS 1
4539 elif test $ac_cv_func_sighold = yes -a $ac_cv_func_sigrelse = yes; then
4540 signals_style=SYSV_SIGNALS
4541 cat >> confdefs.h <<\EOF
4542 #define SYSV_SIGNALS 1
4546 signals_style=NO_SIGNAL_BLOCKING
4547 cat >> confdefs.h <<\EOF
4548 #define NO_SIGNAL_BLOCKING 1
4553 echo "$ac_t""$signals_style" 1>&6
4555 echo $ac_n "checking where signal.h is located""... $ac_c" 1>&6
4556 echo "configure:4557: checking where signal.h is located" >&5
4557 if eval "test \"`echo '$''{'nmh_cv_path_signal_h'+set}'`\" = set"; then
4558 echo $ac_n "(cached) $ac_c" 1>&6
4560 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
4561 test -f $SIGNAL_H && \
4562 grep '#[ ]*define[ ][ ]*SIG[0-9A-Z]*[ ]*[0-9][0-9]*' $SIGNAL_H > /dev/null && \
4565 nmh_cv_path_signal_h=$SIGNAL_H
4569 echo "$ac_t""$nmh_cv_path_signal_h" 1>&6
4570 SIGNAL_H=$nmh_cv_path_signal_h
4572 case "$target_os" in
4575 cat >> confdefs.h <<\EOF
4579 cat >> confdefs.h <<\EOF
4585 cat >> confdefs.h <<\EOF
4589 cat >> confdefs.h <<\EOF
4595 cat >> confdefs.h <<\EOF
4599 cat >> confdefs.h <<\EOF
4605 cat >> confdefs.h <<\EOF
4609 cat >> confdefs.h <<\EOF
4615 cat >> confdefs.h <<\EOF
4621 cat >> confdefs.h <<\EOF
4625 cat >> confdefs.h <<\EOF
4631 cat >> confdefs.h <<\EOF
4635 cat >> confdefs.h <<\EOF
4641 cat >> confdefs.h <<\EOF
4645 cat >> confdefs.h <<\EOF
4651 cat >> confdefs.h <<\EOF
4655 cat >> confdefs.h <<\EOF
4661 cat >> confdefs.h <<\EOF
4665 cat >> confdefs.h <<\EOF
4666 #define SCO_5_STDIO 1
4674 cat > confcache <<\EOF
4675 # This file is a shell script that caches the results of configure
4676 # tests run on this system so they can be shared between configure
4677 # scripts and configure runs. It is not useful on other systems.
4678 # If it contains results you don't want to keep, you may remove or edit it.
4680 # By default, configure uses ./config.cache as the cache file,
4681 # creating it if it does not exist already. You can give configure
4682 # the --cache-file=FILE option to use a different cache file; that is
4683 # what configure does when it calls configure scripts in
4684 # subdirectories, so they share the cache.
4685 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4686 # config.status only pays attention to the cache file if you give it the
4687 # --recheck option to rerun configure.
4690 # The following way of writing the cache mishandles newlines in values,
4691 # but we know of no workaround that is simple, portable, and efficient.
4692 # So, don't put newlines in cache variables' values.
4693 # Ultrix sh set writes to stderr and can't be redirected directly,
4694 # and sets the high bit in the cache file unless we assign to the vars.
4696 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4698 # `set' does not quote correctly, so add quotes (double-quote substitution
4699 # turns \\\\ into \\, and sed turns \\ into \).
4701 -e "s/'/'\\\\''/g" \
4702 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4705 # `set' quotes correctly as required by POSIX, so do not add quotes.
4706 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4709 if cmp -s $cache_file confcache; then
4712 if test -w $cache_file; then
4713 echo "updating cache $cache_file"
4714 cat confcache > $cache_file
4716 echo "not updating unwritable cache $cache_file"
4721 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4723 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4724 # Let make expand exec_prefix.
4725 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4727 # Any assignment to VPATH causes Sun make to only execute
4728 # the first set of double-colon rules, so remove it if not needed.
4729 # If there is a colon in the path, we need to keep it.
4730 if test "x$srcdir" = x.; then
4731 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4734 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4736 DEFS=-DHAVE_CONFIG_H
4738 # Without the "./", some shells look in PATH for config.status.
4739 : ${CONFIG_STATUS=./config.status}
4741 echo creating $CONFIG_STATUS
4742 rm -f $CONFIG_STATUS
4743 cat > $CONFIG_STATUS <<EOF
4745 # Generated automatically by configure.
4746 # Run this file to recreate the current configuration.
4747 # This directory was configured as follows,
4748 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4750 # $0 $ac_configure_args
4752 # Compiler output produced by configure, useful for debugging
4753 # configure, is in ./config.log if it exists.
4755 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4758 case "\$ac_option" in
4759 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4760 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4761 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4762 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4763 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4765 -help | --help | --hel | --he | --h)
4766 echo "\$ac_cs_usage"; exit 0 ;;
4767 *) echo "\$ac_cs_usage"; exit 1 ;;
4771 ac_given_srcdir=$srcdir
4772 ac_given_INSTALL="$INSTALL"
4774 trap 'rm -fr `echo "Makefile config/Makefile h/Makefile sbr/Makefile uip/Makefile \
4775 mts/Makefile mts/smtp/Makefile \
4776 etc/Makefile docs/Makefile man/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4778 cat >> $CONFIG_STATUS <<EOF
4780 # Protect against being on the right side of a sed subst in config.status.
4781 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4782 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4786 s%@CFLAGS@%$CFLAGS%g
4787 s%@CPPFLAGS@%$CPPFLAGS%g
4788 s%@CXXFLAGS@%$CXXFLAGS%g
4789 s%@FFLAGS@%$FFLAGS%g
4791 s%@LDFLAGS@%$LDFLAGS%g
4793 s%@exec_prefix@%$exec_prefix%g
4794 s%@prefix@%$prefix%g
4795 s%@program_transform_name@%$program_transform_name%g
4796 s%@bindir@%$bindir%g
4797 s%@sbindir@%$sbindir%g
4798 s%@libexecdir@%$libexecdir%g
4799 s%@datadir@%$datadir%g
4800 s%@sysconfdir@%$sysconfdir%g
4801 s%@sharedstatedir@%$sharedstatedir%g
4802 s%@localstatedir@%$localstatedir%g
4803 s%@libdir@%$libdir%g
4804 s%@includedir@%$includedir%g
4805 s%@oldincludedir@%$oldincludedir%g
4806 s%@infodir@%$infodir%g
4807 s%@mandir@%$mandir%g
4809 s%@host_alias@%$host_alias%g
4810 s%@host_cpu@%$host_cpu%g
4811 s%@host_vendor@%$host_vendor%g
4812 s%@host_os@%$host_os%g
4813 s%@target@%$target%g
4814 s%@target_alias@%$target_alias%g
4815 s%@target_cpu@%$target_cpu%g
4816 s%@target_vendor@%$target_vendor%g
4817 s%@target_os@%$target_os%g
4819 s%@build_alias@%$build_alias%g
4820 s%@build_cpu@%$build_cpu%g
4821 s%@build_vendor@%$build_vendor%g
4822 s%@build_os@%$build_os%g
4823 s%@VERSION@%$VERSION%g
4824 s%@APOPLIB@%$APOPLIB%g
4825 s%@masquerade@%$masquerade%g
4826 s%@POPLIB@%$POPLIB%g
4827 s%@POPSED@%$POPSED%g
4829 s%@smtpservers@%$smtpservers%g
4831 s%@SET_MAKE@%$SET_MAKE%g
4832 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4833 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4834 s%@INSTALL_DATA@%$INSTALL_DATA%g
4835 s%@RANLIB@%$RANLIB%g
4838 s%@LEXLIB@%$LEXLIB%g
4839 s%@cutpath@%$cutpath%g
4840 s%@linttmp1@%$linttmp1%g
4841 s%@linttmp2@%$linttmp2%g
4843 s%@LINTFLAGS@%$LINTFLAGS%g
4844 s%@LIBTOOL@%$LIBTOOL%g
4845 s%@GNU_LIBTOOL@%$GNU_LIBTOOL%g
4846 s%@LORDER@%$LORDER%g
4848 s%@lspath@%$lspath%g
4849 s%@morepath@%$morepath%g
4850 s%@pagerpath@%$pagerpath%g
4851 s%@sendmailpath@%$sendmailpath%g
4852 s%@vipath@%$vipath%g
4853 s%@editorpath@%$editorpath%g
4854 s%@mailspool@%$mailspool%g
4856 s%@dotlockfilepath@%$dotlockfilepath%g
4857 s%@SETGID_MAIL@%$SETGID_MAIL%g
4858 s%@MAIL_SPOOL_GRP@%$MAIL_SPOOL_GRP%g
4859 s%@LIBOBJS@%$LIBOBJS%g
4860 s%@TERMLIB@%$TERMLIB%g
4861 s%@HESIOD_INCLUDES@%$HESIOD_INCLUDES%g
4862 s%@HESIOD_LIBS@%$HESIOD_LIBS%g
4863 s%@KRB4_INCLUDES@%$KRB4_INCLUDES%g
4864 s%@KRB4_LIBS@%$KRB4_LIBS%g
4865 s%@SASL_INCLUDES@%$SASL_INCLUDES%g
4866 s%@SASL_LIBS@%$SASL_LIBS%g
4867 s%@SIGNAL_H@%$SIGNAL_H%g
4872 cat >> $CONFIG_STATUS <<\EOF
4874 # Split the substitutions into bite-sized pieces for seds with
4875 # small command number limits, like on Digital OSF/1 and HP-UX.
4876 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4877 ac_file=1 # Number of current file.
4878 ac_beg=1 # First line for current file.
4879 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4882 while $ac_more_lines; do
4883 if test $ac_beg -gt 1; then
4884 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4886 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4888 if test ! -s conftest.s$ac_file; then
4890 rm -f conftest.s$ac_file
4892 if test -z "$ac_sed_cmds"; then
4893 ac_sed_cmds="sed -f conftest.s$ac_file"
4895 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4897 ac_file=`expr $ac_file + 1`
4899 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4902 if test -z "$ac_sed_cmds"; then
4907 cat >> $CONFIG_STATUS <<EOF
4909 CONFIG_FILES=\${CONFIG_FILES-"Makefile config/Makefile h/Makefile sbr/Makefile uip/Makefile \
4910 mts/Makefile mts/smtp/Makefile \
4911 etc/Makefile docs/Makefile man/Makefile"}
4913 cat >> $CONFIG_STATUS <<\EOF
4914 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4915 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4917 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4918 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4919 *) ac_file_in="${ac_file}.in" ;;
4922 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4924 # Remove last slash and all that follows it. Not all systems have dirname.
4925 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4926 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4927 # The file is in a subdirectory.
4928 test ! -d "$ac_dir" && mkdir "$ac_dir"
4929 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4930 # A "../" for each directory in $ac_dir_suffix.
4931 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4933 ac_dir_suffix= ac_dots=
4936 case "$ac_given_srcdir" in
4938 if test -z "$ac_dots"; then top_srcdir=.
4939 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4940 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4942 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4943 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4946 case "$ac_given_INSTALL" in
4947 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4948 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4951 echo creating "$ac_file"
4953 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4955 *Makefile*) ac_comsub="1i\\
4956 # $configure_input" ;;
4960 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4962 s%@configure_input@%$configure_input%g
4963 s%@srcdir@%$srcdir%g
4964 s%@top_srcdir@%$top_srcdir%g
4965 s%@INSTALL@%$INSTALL%g
4966 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4970 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4971 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4973 # ac_d sets the value in "#define NAME VALUE" lines.
4974 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4975 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4978 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4979 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4980 ac_uB='\([ ]\)%\1#\2define\3'
4983 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4984 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4985 ac_eB='$%\1#\2define\3'
4989 if test "${CONFIG_HEADERS+set}" != set; then
4991 cat >> $CONFIG_STATUS <<EOF
4992 CONFIG_HEADERS="config.h"
4994 cat >> $CONFIG_STATUS <<\EOF
4996 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4997 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4999 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5000 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5001 *) ac_file_in="${ac_file}.in" ;;
5004 echo creating $ac_file
5006 rm -f conftest.frag conftest.in conftest.out
5007 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5008 cat $ac_file_inputs > conftest.in
5012 # Transform confdefs.h into a sed script conftest.vals that substitutes
5013 # the proper values into config.h.in to produce config.h. And first:
5014 # Protect against being on the right side of a sed subst in config.status.
5015 # Protect against being in an unquoted here document in config.status.
5017 cat > conftest.hdr <<\EOF
5020 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5024 sed -n -f conftest.hdr confdefs.h > conftest.vals
5027 # This sed command replaces #undef with comments. This is necessary, for
5028 # example, in the case of _POSIX_SOURCE, which is predefined and required
5029 # on some systems where configure will not decide to define it.
5030 cat >> conftest.vals <<\EOF
5031 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5034 # Break up conftest.vals because some shells have a limit on
5035 # the size of here documents, and old seds have small limits too.
5040 ac_lines=`grep -c . conftest.vals`
5041 # grep -c gives empty output for an empty file on some AIX systems.
5042 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5043 # Write a limited-size here document to conftest.frag.
5044 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5045 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5047 sed -f conftest.frag conftest.in > conftest.out
5049 mv conftest.out conftest.in
5051 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5053 mv conftest.tail conftest.vals
5057 cat >> $CONFIG_STATUS <<\EOF
5058 rm -f conftest.frag conftest.h
5059 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5060 cat conftest.in >> conftest.h
5062 if cmp -s $ac_file conftest.h 2>/dev/null; then
5063 echo "$ac_file is unchanged"
5066 # Remove last slash and all that follows it. Not all systems have dirname.
5067 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5068 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5069 # The file is in a subdirectory.
5070 test ! -d "$ac_dir" && mkdir "$ac_dir"
5073 mv conftest.h $ac_file
5078 cat >> $CONFIG_STATUS <<EOF
5081 cat >> $CONFIG_STATUS <<\EOF
5083 test -z "$CONFIG_HEADERS" || echo > stamp-h
5086 chmod +x $CONFIG_STATUS
5087 rm -fr confdefs* $ac_clean_files
5088 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5091 eval "nmhbin=${bindir}"; eval "nmhbin2=${nmhbin}"
5092 eval "nmhsysconf=${sysconfdir}"; eval "nmhsysconf2=${nmhsysconf}"
5093 eval "nmhlib=${libdir}"; eval "nmhlib2=${nmhlib}"
5094 eval "nmhman=${mandir}"
5097 if test x"$enable_pop" = x"yes"; then
5100 if test x"$enable_apop" = x"yes"; then
5101 pop_kinds="${pop_kinds}APOP "
5104 if test x"$with_krb4" != x -a x"$with_krb4" != x"no"; then
5105 pop_kinds="${pop_kinds}KPOP "
5108 pop_kinds="${pop_kinds}POP3)"
5114 nmh version : ${VERSION}
5115 target os : ${target}
5117 compiler flags : ${CFLAGS}
5118 linker flags : ${LDFLAGS}
5119 source code location : ${srcdir}
5120 binary install path : ${nmhbin2}
5121 libary install path : ${nmhlib2}
5122 config files install path : ${nmhsysconf2}
5123 man page install path : ${nmhman}
5124 backup prefix : ${backup_prefix}
5125 transport system : ${MTS}
5126 default smtp servers : ${smtpservers}
5127 default editor : ${editorpath}
5128 default pager : ${pagerpath}
5129 email address masquerading : ${masquerade}
5130 pop is enabled : ${pop_kinds}"