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-locking=LOCKTYPE specify the file locking method"
38 --with-mts=MTS specify the default mail transport agent/service"
40 --with-pager=PAGER specify the default pager"
42 --with-smtpservers='SMTPSERVER1[ SMTPSERVER2...]'
43 specify the default SMTP server(s) [localhost]"
44 ac_default_prefix=/usr/local/nmh
46 # Initialize some variables set by options.
47 # The variables have the same names as the options, with
48 # dashes changed to underlines.
50 cache_file=./config.cache
59 program_transform_name=s,x,x,
67 bindir='${exec_prefix}/bin'
68 sbindir='${exec_prefix}/sbin'
69 libexecdir='${exec_prefix}/libexec'
70 datadir='${prefix}/share'
71 sysconfdir='${prefix}/etc'
72 sharedstatedir='${prefix}/com'
73 localstatedir='${prefix}/var'
74 libdir='${exec_prefix}/lib'
75 includedir='${prefix}/include'
76 oldincludedir='/usr/include'
77 infodir='${prefix}/info'
78 mandir='${prefix}/man'
80 # Initialize some other variables.
83 SHELL=${CONFIG_SHELL-/bin/sh}
84 # Maximum number of lines to put in a shell here document.
91 # If the previous option needs an argument, assign it.
92 if test -n "$ac_prev"; then
93 eval "$ac_prev=\$ac_option"
99 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
103 # Accept the important Cygnus configure options, so we can diagnose typos.
107 -bindir | --bindir | --bindi | --bind | --bin | --bi)
109 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
110 bindir="$ac_optarg" ;;
112 -build | --build | --buil | --bui | --bu)
114 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
115 build="$ac_optarg" ;;
117 -cache-file | --cache-file | --cache-fil | --cache-fi \
118 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
119 ac_prev=cache_file ;;
120 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
121 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
122 cache_file="$ac_optarg" ;;
124 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
126 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
128 datadir="$ac_optarg" ;;
130 -disable-* | --disable-*)
131 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
132 # Reject names that are not valid shell variable names.
133 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
134 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
136 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
137 eval "enable_${ac_feature}=no" ;;
139 -enable-* | --enable-*)
140 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
141 # Reject names that are not valid shell variable names.
142 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
143 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
145 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
150 eval "enable_${ac_feature}='$ac_optarg'" ;;
152 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
153 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
154 | --exec | --exe | --ex)
155 ac_prev=exec_prefix ;;
156 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
157 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
158 | --exec=* | --exe=* | --ex=*)
159 exec_prefix="$ac_optarg" ;;
161 -gas | --gas | --ga | --g)
162 # Obsolete; use --with-gas.
165 -help | --help | --hel | --he)
166 # Omit some internal or obsolete options to make the list less imposing.
167 # This message is too long to be a string in the A/UX 3.1 sh.
169 Usage: configure [options] [host]
170 Options: [defaults in brackets after descriptions]
172 --cache-file=FILE cache test results in FILE
173 --help print this message
174 --no-create do not create output files
175 --quiet, --silent do not print \`checking...' messages
176 --version print the version of autoconf that created configure
177 Directory and file names:
178 --prefix=PREFIX install architecture-independent files in PREFIX
180 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
182 --bindir=DIR user executables in DIR [EPREFIX/bin]
183 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
184 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
185 --datadir=DIR read-only architecture-independent data in DIR
187 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
188 --sharedstatedir=DIR modifiable architecture-independent data in DIR
190 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
191 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
192 --includedir=DIR C header files in DIR [PREFIX/include]
193 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
194 --infodir=DIR info documentation in DIR [PREFIX/info]
195 --mandir=DIR man documentation in DIR [PREFIX/man]
196 --srcdir=DIR find the sources in DIR [configure dir or ..]
197 --program-prefix=PREFIX prepend PREFIX to installed program names
198 --program-suffix=SUFFIX append SUFFIX to installed program names
199 --program-transform-name=PROGRAM
200 run sed PROGRAM on installed program names
204 --build=BUILD configure for building on BUILD [BUILD=HOST]
205 --host=HOST configure for HOST [guessed]
206 --target=TARGET configure for TARGET [TARGET=HOST]
207 Features and packages:
208 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
209 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
210 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
211 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
212 --x-includes=DIR X include files are in DIR
213 --x-libraries=DIR X library files are in DIR
215 if test -n "$ac_help"; then
216 echo "--enable and --with options recognized:$ac_help"
220 -host | --host | --hos | --ho)
222 -host=* | --host=* | --hos=* | --ho=*)
225 -includedir | --includedir | --includedi | --included | --include \
226 | --includ | --inclu | --incl | --inc)
227 ac_prev=includedir ;;
228 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
229 | --includ=* | --inclu=* | --incl=* | --inc=*)
230 includedir="$ac_optarg" ;;
232 -infodir | --infodir | --infodi | --infod | --info | --inf)
234 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
235 infodir="$ac_optarg" ;;
237 -libdir | --libdir | --libdi | --libd)
239 -libdir=* | --libdir=* | --libdi=* | --libd=*)
240 libdir="$ac_optarg" ;;
242 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
243 | --libexe | --libex | --libe)
244 ac_prev=libexecdir ;;
245 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
246 | --libexe=* | --libex=* | --libe=*)
247 libexecdir="$ac_optarg" ;;
249 -localstatedir | --localstatedir | --localstatedi | --localstated \
250 | --localstate | --localstat | --localsta | --localst \
251 | --locals | --local | --loca | --loc | --lo)
252 ac_prev=localstatedir ;;
253 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
254 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
255 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
256 localstatedir="$ac_optarg" ;;
258 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
260 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
261 mandir="$ac_optarg" ;;
264 # Obsolete; use --without-fp.
267 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
271 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
272 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
275 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
276 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
277 | --oldin | --oldi | --old | --ol | --o)
278 ac_prev=oldincludedir ;;
279 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
280 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
281 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
282 oldincludedir="$ac_optarg" ;;
284 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
286 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
287 prefix="$ac_optarg" ;;
289 -program-prefix | --program-prefix | --program-prefi | --program-pref \
290 | --program-pre | --program-pr | --program-p)
291 ac_prev=program_prefix ;;
292 -program-prefix=* | --program-prefix=* | --program-prefi=* \
293 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
294 program_prefix="$ac_optarg" ;;
296 -program-suffix | --program-suffix | --program-suffi | --program-suff \
297 | --program-suf | --program-su | --program-s)
298 ac_prev=program_suffix ;;
299 -program-suffix=* | --program-suffix=* | --program-suffi=* \
300 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
301 program_suffix="$ac_optarg" ;;
303 -program-transform-name | --program-transform-name \
304 | --program-transform-nam | --program-transform-na \
305 | --program-transform-n | --program-transform- \
306 | --program-transform | --program-transfor \
307 | --program-transfo | --program-transf \
308 | --program-trans | --program-tran \
309 | --progr-tra | --program-tr | --program-t)
310 ac_prev=program_transform_name ;;
311 -program-transform-name=* | --program-transform-name=* \
312 | --program-transform-nam=* | --program-transform-na=* \
313 | --program-transform-n=* | --program-transform-=* \
314 | --program-transform=* | --program-transfor=* \
315 | --program-transfo=* | --program-transf=* \
316 | --program-trans=* | --program-tran=* \
317 | --progr-tra=* | --program-tr=* | --program-t=*)
318 program_transform_name="$ac_optarg" ;;
320 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
321 | -silent | --silent | --silen | --sile | --sil)
324 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
326 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
328 sbindir="$ac_optarg" ;;
330 -sharedstatedir | --sharedstatedir | --sharedstatedi \
331 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
332 | --sharedst | --shareds | --shared | --share | --shar \
334 ac_prev=sharedstatedir ;;
335 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
336 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
337 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
339 sharedstatedir="$ac_optarg" ;;
341 -site | --site | --sit)
343 -site=* | --site=* | --sit=*)
346 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
348 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
349 srcdir="$ac_optarg" ;;
351 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
352 | --syscon | --sysco | --sysc | --sys | --sy)
353 ac_prev=sysconfdir ;;
354 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
355 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
356 sysconfdir="$ac_optarg" ;;
358 -target | --target | --targe | --targ | --tar | --ta | --t)
360 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
361 target="$ac_optarg" ;;
363 -v | -verbose | --verbose | --verbos | --verbo | --verb)
366 -version | --version | --versio | --versi | --vers)
367 echo "configure generated by autoconf version 2.13"
371 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
372 # Reject names that are not valid shell variable names.
373 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
374 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
376 ac_package=`echo $ac_package| sed 's/-/_/g'`
381 eval "with_${ac_package}='$ac_optarg'" ;;
383 -without-* | --without-*)
384 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
385 # Reject names that are not valid shell variable names.
386 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
387 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
389 ac_package=`echo $ac_package| sed 's/-/_/g'`
390 eval "with_${ac_package}=no" ;;
393 # Obsolete; use --with-x.
396 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
397 | --x-incl | --x-inc | --x-in | --x-i)
398 ac_prev=x_includes ;;
399 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
400 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
401 x_includes="$ac_optarg" ;;
403 -x-libraries | --x-libraries | --x-librarie | --x-librari \
404 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
405 ac_prev=x_libraries ;;
406 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
407 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
408 x_libraries="$ac_optarg" ;;
410 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
414 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
415 echo "configure: warning: $ac_option: invalid host type" 1>&2
417 if test "x$nonopt" != xNONE; then
418 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
426 if test -n "$ac_prev"; then
427 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
430 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
432 # File descriptor usage:
435 # 2 errors and warnings
436 # 3 some systems may open it to /dev/tty
437 # 4 used on the Kubota Titan
438 # 6 checking for... messages and results
439 # 5 compiler messages saved in config.log
440 if test "$silent" = yes; then
448 This file contains any messages produced by compilers while
449 running configure, to aid debugging if configure makes a mistake.
452 # Strip out --no-create and --no-recursion so they do not pile up.
453 # Also quote any args containing shell metacharacters.
458 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
459 | --no-cr | --no-c) ;;
460 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
461 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
462 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
463 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
464 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
469 # Only set these to C if already set. These must not be set unconditionally
470 # because not all systems understand e.g. LANG=C (notably SCO).
471 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
472 # Non-C LC_CTYPE values break the ctype check.
473 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
474 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
475 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
476 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
478 # confdefs.h avoids OS command line length limits that DEFS can exceed.
479 rm -rf conftest* confdefs.h
480 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
483 # A filename unique to this package, relative to the directory that
484 # configure is in, which we can look for to find out if srcdir is correct.
485 ac_unique_file=h/nmh.h
487 # Find the source files, if location was not specified.
488 if test -z "$srcdir"; then
489 ac_srcdir_defaulted=yes
490 # Try the directory containing this script, then its parent.
492 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
493 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
495 if test ! -r $srcdir/$ac_unique_file; then
499 ac_srcdir_defaulted=no
501 if test ! -r $srcdir/$ac_unique_file; then
502 if test "$ac_srcdir_defaulted" = yes; then
503 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
505 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
508 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
510 # Prefer explicitly selected file to automatically selected ones.
511 if test -z "$CONFIG_SITE"; then
512 if test "x$prefix" != xNONE; then
513 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
515 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
518 for ac_site_file in $CONFIG_SITE; do
519 if test -r "$ac_site_file"; then
520 echo "loading site script $ac_site_file"
525 if test -r "$cache_file"; then
526 echo "loading cache $cache_file"
529 echo "creating cache $cache_file"
534 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
535 ac_cpp='$CPP $CPPFLAGS'
536 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
537 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
538 cross_compiling=$ac_cv_prog_cc_cross
542 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
543 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
544 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
551 ac_n= ac_c='\c' ac_t=
558 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
559 if test -f $ac_dir/install-sh; then
561 ac_install_sh="$ac_aux_dir/install-sh -c"
563 elif test -f $ac_dir/install.sh; then
565 ac_install_sh="$ac_aux_dir/install.sh -c"
569 if test -z "$ac_aux_dir"; then
570 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
572 ac_config_guess=$ac_aux_dir/config.guess
573 ac_config_sub=$ac_aux_dir/config.sub
574 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
577 # Do some error checking and defaulting for the host and target type.
579 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
582 # 1. You are not allowed to specify --host, --target, and nonopt at the
584 # 2. Host defaults to nonopt.
585 # 3. If nonopt is not specified, then host defaults to the current host,
586 # as determined by config.guess.
587 # 4. Target and build default to nonopt.
588 # 5. If nonopt is not specified, then target and build default to host.
590 # The aliases save the names the user supplied, while $host etc.
591 # will get canonicalized.
592 case $host---$target---$nonopt in
593 NONE---*---* | *---NONE---* | *---*---NONE) ;;
594 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
598 # Make sure we can run config.sub.
599 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
600 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
603 echo $ac_n "checking host system type""... $ac_c" 1>&6
604 echo "configure:605: checking host system type" >&5
607 case "$host_alias" in
611 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
612 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
614 *) host_alias=$nonopt ;;
618 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
619 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
620 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
621 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
622 echo "$ac_t""$host" 1>&6
624 echo $ac_n "checking target system type""... $ac_c" 1>&6
625 echo "configure:626: checking target system type" >&5
628 case "$target_alias" in
631 NONE) target_alias=$host_alias ;;
632 *) target_alias=$nonopt ;;
636 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
637 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
638 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
639 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
640 echo "$ac_t""$target" 1>&6
642 echo $ac_n "checking build system type""... $ac_c" 1>&6
643 echo "configure:644: checking build system type" >&5
646 case "$build_alias" in
649 NONE) build_alias=$host_alias ;;
650 *) build_alias=$nonopt ;;
654 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
655 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
656 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
657 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
658 echo "$ac_t""$build" 1>&6
660 test "$host_alias" != "$target_alias" &&
661 test "$program_prefix$program_suffix$program_transform_name" = \
663 program_prefix=${target_alias}-
670 VERSION=`sed -e 's/nmh-//' ${srcdir}/VERSION`
671 echo "configuring for nmh-$VERSION"
674 # Check whether --enable-apop or --disable-apop was given.
675 if test "${enable_apop+set}" = set; then
676 enableval="$enable_apop"
680 if test x"$enable_apop" = x"yes"; then
681 cat >> confdefs.h <<\EOF
688 # Check whether --enable-debug or --disable-debug was given.
689 if test "${enable_debug+set}" = set; then
690 enableval="$enable_debug"
694 if test x"$enable_nmh_debug" = x"yes"; then
698 # Check whether --enable-masquerade or --disable-masquerade was given.
699 if test "${enable_masquerade+set}" = set; then
700 enableval="$enable_masquerade"
701 if test x"$enable_masquerade" = x"yes"; then
702 masquerade="draft_from mmailid username_extension"
704 masquerade="$enable_masquerade"
709 # Check whether --enable-mhe or --disable-mhe was given.
710 if test "${enable_mhe+set}" = set; then
711 enableval="$enable_mhe"
716 if test x"$enable_mhe" != x"no" -a x"$enable_nmh_mhe" != x"no"; then
717 cat >> confdefs.h <<\EOF
722 # Check whether --enable-pop or --disable-pop was given.
723 if test "${enable_pop+set}" = set; then
724 enableval="$enable_pop"
728 if test x"$enable_nmh_pop" = x"yes"; then
732 # Check whether --with-cyrus-sasl or --without-cyrus-sasl was given.
733 if test "${with_cyrus_sasl+set}" = set; then
734 withval="$with_cyrus_sasl"
738 if test x"$with_cyrus_sasl" != x -a x"$with_cyrus_sasl" != "no"; then
739 cat >> confdefs.h <<\EOF
744 # Check whether --with-editor or --without-editor was given.
745 if test "${with_editor+set}" = set; then
746 withval="$with_editor"
751 if test -n "$with_editor"; then
752 editorpath="$with_editor"
755 # Check whether --with-hash-backup or --without-hash-backup was given.
756 if test "${with_hash_backup+set}" = set; then
757 withval="$with_hash_backup"
761 if test x"$with_hash_backup" != x -a x"$with_hash_backup" != x"no"; then
766 cat >> confdefs.h <<EOF
767 #define BACKUP_PREFIX "$backup_prefix"
770 # Check whether --with-hesiod or --without-hesiod was given.
771 if test "${with_hesiod+set}" = set; then
772 withval="$with_hesiod"
776 if test x"$with_hesiod" != x -a x"$with_hesiod" != x"no"; then
777 cat >> confdefs.h <<\EOF
782 # Check whether --with-krb4 or --without-krb4 was given.
783 if test "${with_krb4+set}" = set; then
788 if test x"$with_krb4" != x -a x"$with_krb4" != x"no"; then
790 cat >> confdefs.h <<\EOF
793 cat >> confdefs.h <<\EOF
794 #define KPOP_PRINCIPAL "pop"
798 if test x"$enable_pop" = x"yes"; then
799 cat >> confdefs.h <<\EOF
803 POPSED='/^%nmhbeginpop%/d;/^%nmhendpop%/d'
805 POPSED='/^%nmhbeginpop%/,/^%nmhendpop%/d'
808 # Check whether --with-locking or --without-locking was given.
809 if test "${with_locking+set}" = set; then
810 withval="$with_locking"
815 if test x"$with_locking" = x"dot"; then
817 cat >> confdefs.h <<\EOF
818 #define DOT_LOCKING 1
820 elif test x"$with_locking" = x"flock"; then
822 cat >> confdefs.h <<\EOF
823 #define FLOCK_LOCKING 1
825 elif test x"$with_locking" = x"lockf"; then
827 cat >> confdefs.h <<\EOF
828 #define LOCKF_LOCKING 1
830 elif test x"$with_locking" = x"fcntl"; then
832 cat >> confdefs.h <<\EOF
833 #define FCNTL_LOCKING 1
837 cat >> confdefs.h <<\EOF
838 #define DOT_LOCKING 1
842 # Check whether --with-mts or --without-mts was given.
843 if test "${with_mts+set}" = set; then
849 if test x"$with_mts" = x"smtp"; then
851 elif test x"$with_mts" = x"sendmail"; then
857 cat >> confdefs.h <<\EOF
861 # Check whether --with-pager or --without-pager was given.
862 if test "${with_pager+set}" = set; then
863 withval="$with_pager"
868 if test -n "$with_pager"; then
869 pagerpath="$with_pager"
872 # Check whether --with-smtpservers or --without-smtpservers was given.
873 if test "${with_smtpservers+set}" = set; then
874 withval="$with_smtpservers"
878 if test -n "$with_smtpservers"; then
879 smtpservers="$with_smtpservers"
881 smtpservers="localhost"
886 test -z "$CFLAGS" && CFLAGS= auto_cflags=1
887 if test x"$enable_debug" = x"yes"; then
888 test -z "$LDFLAGS" && LDFLAGS=-g
891 # Extract the first word of "gcc", so it can be a program name with args.
892 set dummy gcc; ac_word=$2
893 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
894 echo "configure:895: checking for $ac_word" >&5
895 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
896 echo $ac_n "(cached) $ac_c" 1>&6
898 if test -n "$CC"; then
899 ac_cv_prog_CC="$CC" # Let the user override the test.
901 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
903 for ac_dir in $ac_dummy; do
904 test -z "$ac_dir" && ac_dir=.
905 if test -f $ac_dir/$ac_word; then
914 if test -n "$CC"; then
915 echo "$ac_t""$CC" 1>&6
917 echo "$ac_t""no" 1>&6
920 if test -z "$CC"; then
921 # Extract the first word of "cc", so it can be a program name with args.
922 set dummy cc; ac_word=$2
923 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
924 echo "configure:925: checking for $ac_word" >&5
925 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
926 echo $ac_n "(cached) $ac_c" 1>&6
928 if test -n "$CC"; then
929 ac_cv_prog_CC="$CC" # Let the user override the test.
931 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
934 for ac_dir in $ac_dummy; do
935 test -z "$ac_dir" && ac_dir=.
936 if test -f $ac_dir/$ac_word; then
937 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
946 if test $ac_prog_rejected = yes; then
947 # We found a bogon in the path, so make sure we never use it.
948 set dummy $ac_cv_prog_CC
950 if test $# -gt 0; then
951 # We chose a different compiler from the bogus one.
952 # However, it has the same basename, so the bogon will be chosen
953 # first if we set CC to just the basename; use the full file name.
955 set dummy "$ac_dir/$ac_word" "$@"
963 if test -n "$CC"; then
964 echo "$ac_t""$CC" 1>&6
966 echo "$ac_t""no" 1>&6
969 if test -z "$CC"; then
972 # Extract the first word of "cl", so it can be a program name with args.
973 set dummy cl; ac_word=$2
974 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
975 echo "configure:976: checking for $ac_word" >&5
976 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
977 echo $ac_n "(cached) $ac_c" 1>&6
979 if test -n "$CC"; then
980 ac_cv_prog_CC="$CC" # Let the user override the test.
982 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
984 for ac_dir in $ac_dummy; do
985 test -z "$ac_dir" && ac_dir=.
986 if test -f $ac_dir/$ac_word; then
995 if test -n "$CC"; then
996 echo "$ac_t""$CC" 1>&6
998 echo "$ac_t""no" 1>&6
1003 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1006 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1007 echo "configure:1008: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1010 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1011 ac_cpp='$CPP $CPPFLAGS'
1012 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1013 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1014 cross_compiling=$ac_cv_prog_cc_cross
1016 cat > conftest.$ac_ext << EOF
1018 #line 1019 "configure"
1019 #include "confdefs.h"
1023 if { (eval echo configure:1024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1024 ac_cv_prog_cc_works=yes
1025 # If we can't run a trivial program, we are probably using a cross compiler.
1026 if (./conftest; exit) 2>/dev/null; then
1027 ac_cv_prog_cc_cross=no
1029 ac_cv_prog_cc_cross=yes
1032 echo "configure: failed program was:" >&5
1033 cat conftest.$ac_ext >&5
1034 ac_cv_prog_cc_works=no
1038 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1039 ac_cpp='$CPP $CPPFLAGS'
1040 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1041 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1042 cross_compiling=$ac_cv_prog_cc_cross
1044 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1045 if test $ac_cv_prog_cc_works = no; then
1046 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1048 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1049 echo "configure:1050: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1050 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1051 cross_compiling=$ac_cv_prog_cc_cross
1053 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1054 echo "configure:1055: checking whether we are using GNU C" >&5
1055 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1056 echo $ac_n "(cached) $ac_c" 1>&6
1058 cat > conftest.c <<EOF
1063 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1070 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1072 if test $ac_cv_prog_gcc = yes; then
1078 ac_test_CFLAGS="${CFLAGS+set}"
1079 ac_save_CFLAGS="$CFLAGS"
1081 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1082 echo "configure:1083: checking whether ${CC-cc} accepts -g" >&5
1083 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1084 echo $ac_n "(cached) $ac_c" 1>&6
1086 echo 'void f(){}' > conftest.c
1087 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1096 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1097 if test "$ac_test_CFLAGS" = set; then
1098 CFLAGS="$ac_save_CFLAGS"
1099 elif test $ac_cv_prog_cc_g = yes; then
1100 if test "$GCC" = yes; then
1106 if test "$GCC" = yes; then
1114 if test -n "$auto_cflags"; then
1115 if test x"$enable_debug" = x"yes"; then
1116 if test -n "$GCC"; then
1117 test -z "$CFLAGS" && CFLAGS="-Wall -g" || CFLAGS="$CFLAGS -Wall -g"
1119 test -z "$CFLAGS" && CFLAGS=-g || CFLAGS="$CFLAGS -g"
1122 if test -z "$LDFLAGS"; then
1132 if test -n "$GCC"; then
1133 test -z "$CFLAGS" && CFLAGS="-Wall -O2" || CFLAGS="$CFLAGS -Wall -O2"
1135 test -z "$CFLAGS" && CFLAGS=-O || CFLAGS="$CFLAGS -O"
1140 echo $ac_n "checking for working const""... $ac_c" 1>&6
1141 echo "configure:1142: checking for working const" >&5
1142 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1143 echo $ac_n "(cached) $ac_c" 1>&6
1145 cat > conftest.$ac_ext <<EOF
1146 #line 1147 "configure"
1147 #include "confdefs.h"
1151 /* Ultrix mips cc rejects this. */
1152 typedef int charset[2]; const charset x;
1153 /* SunOS 4.1.1 cc rejects this. */
1154 char const *const *ccp;
1156 /* NEC SVR4.0.2 mips cc rejects this. */
1157 struct point {int x, y;};
1158 static struct point const zero = {0,0};
1159 /* AIX XL C 1.02.0.0 rejects this.
1160 It does not let you subtract one const X* pointer from another in an arm
1161 of an if-expression whose if-part is not a constant expression */
1162 const char *g = "string";
1163 ccp = &g + (g ? g-g : 0);
1164 /* HPUX 7.0 cc rejects these. */
1167 ccp = (char const *const *) p;
1168 { /* SCO 3.2v4 cc rejects this. */
1170 char const *s = 0 ? (char *) 0 : (char const *) 0;
1174 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1176 const int *foo = &x[0];
1179 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1180 typedef const int *iptr;
1184 { /* AIX XL C 1.02.0.0 rejects this saying
1185 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1186 struct s { int j; const int *ap[3]; };
1187 struct s *b; b->j = 5;
1189 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1195 if { (eval echo configure:1196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1199 echo "configure: failed program was:" >&5
1200 cat conftest.$ac_ext >&5
1207 echo "$ac_t""$ac_cv_c_const" 1>&6
1208 if test $ac_cv_c_const = no; then
1209 cat >> confdefs.h <<\EOF
1215 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1216 echo "configure:1217: checking whether ${MAKE-make} sets \${MAKE}" >&5
1217 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1218 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1219 echo $ac_n "(cached) $ac_c" 1>&6
1221 cat > conftestmake <<\EOF
1223 @echo 'ac_maketemp="${MAKE}"'
1225 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1226 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1227 if test -n "$ac_maketemp"; then
1228 eval ac_cv_prog_make_${ac_make}_set=yes
1230 eval ac_cv_prog_make_${ac_make}_set=no
1234 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1235 echo "$ac_t""yes" 1>&6
1238 echo "$ac_t""no" 1>&6
1239 SET_MAKE="MAKE=${MAKE-make}"
1241 # Find a good install program. We prefer a C program (faster),
1242 # so one script is as good as another. But avoid the broken or
1243 # incompatible versions:
1244 # SysV /etc/install, /usr/sbin/install
1245 # SunOS /usr/etc/install
1246 # IRIX /sbin/install
1248 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1249 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1250 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1251 # ./install, which can be erroneously created by make from ./install.sh.
1252 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1253 echo "configure:1254: checking for a BSD compatible install" >&5
1254 if test -z "$INSTALL"; then
1255 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1256 echo $ac_n "(cached) $ac_c" 1>&6
1258 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1259 for ac_dir in $PATH; do
1260 # Account for people who put trailing slashes in PATH elements.
1262 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1264 # OSF1 and SCO ODT 3.0 have their own names for install.
1265 # Don't use installbsd from OSF since it installs stuff as root
1267 for ac_prog in ginstall scoinst install; do
1268 if test -f $ac_dir/$ac_prog; then
1269 if test $ac_prog = install &&
1270 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1271 # AIX install. It has an incompatible calling convention.
1274 ac_cv_path_install="$ac_dir/$ac_prog -c"
1285 if test "${ac_cv_path_install+set}" = set; then
1286 INSTALL="$ac_cv_path_install"
1288 # As a last resort, use the slow shell script. We don't cache a
1289 # path for INSTALL within a source directory, because that will
1290 # break other packages using the cache if that directory is
1291 # removed, or if the path is relative.
1292 INSTALL="$ac_install_sh"
1295 echo "$ac_t""$INSTALL" 1>&6
1297 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1298 # It thinks the first close brace ends the variable substitution.
1299 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1301 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1303 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1304 # Extract the first word of "ranlib", so it can be a program name with args.
1305 set dummy ranlib; ac_word=$2
1306 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1307 echo "configure:1308: checking for $ac_word" >&5
1308 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1309 echo $ac_n "(cached) $ac_c" 1>&6
1311 if test -n "$RANLIB"; then
1312 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1314 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1316 for ac_dir in $ac_dummy; do
1317 test -z "$ac_dir" && ac_dir=.
1318 if test -f $ac_dir/$ac_word; then
1319 ac_cv_prog_RANLIB="ranlib"
1324 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1327 RANLIB="$ac_cv_prog_RANLIB"
1328 if test -n "$RANLIB"; then
1329 echo "$ac_t""$RANLIB" 1>&6
1331 echo "$ac_t""no" 1>&6
1333 for ac_prog in gawk mawk nawk awk
1335 # Extract the first word of "$ac_prog", so it can be a program name with args.
1336 set dummy $ac_prog; ac_word=$2
1337 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1338 echo "configure:1339: checking for $ac_word" >&5
1339 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1340 echo $ac_n "(cached) $ac_c" 1>&6
1342 if test -n "$AWK"; then
1343 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1345 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1347 for ac_dir in $ac_dummy; do
1348 test -z "$ac_dir" && ac_dir=.
1349 if test -f $ac_dir/$ac_word; then
1350 ac_cv_prog_AWK="$ac_prog"
1357 AWK="$ac_cv_prog_AWK"
1358 if test -n "$AWK"; then
1359 echo "$ac_t""$AWK" 1>&6
1361 echo "$ac_t""no" 1>&6
1364 test -n "$AWK" && break
1366 # Extract the first word of "flex", so it can be a program name with args.
1367 set dummy flex; ac_word=$2
1368 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1369 echo "configure:1370: checking for $ac_word" >&5
1370 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1371 echo $ac_n "(cached) $ac_c" 1>&6
1373 if test -n "$LEX"; then
1374 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1376 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1378 for ac_dir in $ac_dummy; do
1379 test -z "$ac_dir" && ac_dir=.
1380 if test -f $ac_dir/$ac_word; then
1381 ac_cv_prog_LEX="flex"
1386 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1389 LEX="$ac_cv_prog_LEX"
1390 if test -n "$LEX"; then
1391 echo "$ac_t""$LEX" 1>&6
1393 echo "$ac_t""no" 1>&6
1396 if test -z "$LEXLIB"
1402 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1403 echo "configure:1404: checking for yywrap in -l$ac_lib" >&5
1404 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1405 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1406 echo $ac_n "(cached) $ac_c" 1>&6
1408 ac_save_LIBS="$LIBS"
1409 LIBS="-l$ac_lib $LIBS"
1410 cat > conftest.$ac_ext <<EOF
1411 #line 1412 "configure"
1412 #include "confdefs.h"
1413 /* Override any gcc2 internal prototype to avoid an error. */
1414 /* We use char because int might match the return type of a gcc2
1415 builtin and then its argument prototype would still apply. */
1422 if { (eval echo configure:1423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1424 eval "ac_cv_lib_$ac_lib_var=yes"
1426 echo "configure: failed program was:" >&5
1427 cat conftest.$ac_ext >&5
1429 eval "ac_cv_lib_$ac_lib_var=no"
1432 LIBS="$ac_save_LIBS"
1435 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1436 echo "$ac_t""yes" 1>&6
1439 echo "$ac_t""no" 1>&6
1444 pathtmp=/usr/bin:/bin:/usr/local/bin:/usr/xpg4/bin:/usr/ucb
1445 # Extract the first word of "cut", so it can be a program name with args.
1446 set dummy cut; ac_word=$2
1447 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1448 echo "configure:1449: checking for $ac_word" >&5
1449 if eval "test \"`echo '$''{'ac_cv_path_cutpath'+set}'`\" = set"; then
1450 echo $ac_n "(cached) $ac_c" 1>&6
1454 ac_cv_path_cutpath="$cutpath" # Let the user override the test with a path.
1457 ac_cv_path_cutpath="$cutpath" # Let the user override the test with a dos path.
1460 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1462 for ac_dir in $ac_dummy; do
1463 test -z "$ac_dir" && ac_dir=.
1464 if test -f $ac_dir/$ac_word; then
1465 ac_cv_path_cutpath="$ac_dir/$ac_word"
1470 test -z "$ac_cv_path_cutpath" && ac_cv_path_cutpath="no"
1474 cutpath="$ac_cv_path_cutpath"
1475 if test -n "$cutpath"; then
1476 echo "$ac_t""$cutpath" 1>&6
1478 echo "$ac_t""no" 1>&6
1482 # Extract the first word of "lclint", so it can be a program name with args.
1483 set dummy lclint; ac_word=$2
1484 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1485 echo "configure:1486: checking for $ac_word" >&5
1486 if eval "test \"`echo '$''{'ac_cv_prog_linttmp1'+set}'`\" = set"; then
1487 echo $ac_n "(cached) $ac_c" 1>&6
1489 if test -n "$linttmp1"; then
1490 ac_cv_prog_linttmp1="$linttmp1" # Let the user override the test.
1492 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1494 for ac_dir in $ac_dummy; do
1495 test -z "$ac_dir" && ac_dir=.
1496 if test -f $ac_dir/$ac_word; then
1497 ac_cv_prog_linttmp1="lclint"
1502 test -z "$ac_cv_prog_linttmp1" && ac_cv_prog_linttmp1="no"
1505 linttmp1="$ac_cv_prog_linttmp1"
1506 if test -n "$linttmp1"; then
1507 echo "$ac_t""$linttmp1" 1>&6
1509 echo "$ac_t""no" 1>&6
1511 if test x$ac_cv_prog_linttmp1 != xno ; then
1512 LINT=$ac_cv_prog_linttmp1
1513 LINTFLAGS="-weak +posixlib -macrovarprefixexclude"
1515 # Extract the first word of "lint", so it can be a program name with args.
1516 set dummy lint; ac_word=$2
1517 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1518 echo "configure:1519: checking for $ac_word" >&5
1519 if eval "test \"`echo '$''{'ac_cv_prog_linttmp2'+set}'`\" = set"; then
1520 echo $ac_n "(cached) $ac_c" 1>&6
1522 if test -n "$linttmp2"; then
1523 ac_cv_prog_linttmp2="$linttmp2" # Let the user override the test.
1525 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1527 for ac_dir in $ac_dummy; do
1528 test -z "$ac_dir" && ac_dir=.
1529 if test -f $ac_dir/$ac_word; then
1530 ac_cv_prog_linttmp2="lint"
1535 test -z "$ac_cv_prog_linttmp2" && ac_cv_prog_linttmp2="no"
1538 linttmp2="$ac_cv_prog_linttmp2"
1539 if test -n "$linttmp2"; then
1540 echo "$ac_t""$linttmp2" 1>&6
1542 echo "$ac_t""no" 1>&6
1544 if test x$ac_cv_prog_linttmp2 != xno ; then
1545 LINT=$ac_cv_prog_linttmp2
1548 LINT="echo 'No lint program found'"
1553 # Extract the first word of "libtool", so it can be a program name with args.
1554 set dummy libtool; ac_word=$2
1555 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1556 echo "configure:1557: checking for $ac_word" >&5
1557 if eval "test \"`echo '$''{'ac_cv_prog_LIBTOOL'+set}'`\" = set"; then
1558 echo $ac_n "(cached) $ac_c" 1>&6
1560 if test -n "$LIBTOOL"; then
1561 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
1563 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1565 for ac_dir in $ac_dummy; do
1566 test -z "$ac_dir" && ac_dir=.
1567 if test -f $ac_dir/$ac_word; then
1568 ac_cv_prog_LIBTOOL="libtool"
1575 LIBTOOL="$ac_cv_prog_LIBTOOL"
1576 if test -n "$LIBTOOL"; then
1577 echo "$ac_t""$LIBTOOL" 1>&6
1579 echo "$ac_t""no" 1>&6
1583 if test -n "$LIBTOOL" ; then
1584 tmptest=`$LIBTOOL --version 2>&1 | grep GNU`
1585 if test x"$tmptest" != x ; then
1591 # Extract the first word of "lorder", so it can be a program name with args.
1592 set dummy lorder; ac_word=$2
1593 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1594 echo "configure:1595: checking for $ac_word" >&5
1595 if eval "test \"`echo '$''{'ac_cv_prog_LORDER'+set}'`\" = set"; then
1596 echo $ac_n "(cached) $ac_c" 1>&6
1598 if test -n "$LORDER"; then
1599 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
1601 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1603 for ac_dir in $ac_dummy; do
1604 test -z "$ac_dir" && ac_dir=.
1605 if test -f $ac_dir/$ac_word; then
1606 ac_cv_prog_LORDER="lorder"
1611 test -z "$ac_cv_prog_LORDER" && ac_cv_prog_LORDER="no"
1614 LORDER="$ac_cv_prog_LORDER"
1615 if test -n "$LORDER"; then
1616 echo "$ac_t""$LORDER" 1>&6
1618 echo "$ac_t""no" 1>&6
1620 # Extract the first word of "tsort", so it can be a program name with args.
1621 set dummy tsort; ac_word=$2
1622 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1623 echo "configure:1624: checking for $ac_word" >&5
1624 if eval "test \"`echo '$''{'ac_cv_prog_TSORT'+set}'`\" = set"; then
1625 echo $ac_n "(cached) $ac_c" 1>&6
1627 if test -n "$TSORT"; then
1628 ac_cv_prog_TSORT="$TSORT" # Let the user override the test.
1630 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1632 for ac_dir in $ac_dummy; do
1633 test -z "$ac_dir" && ac_dir=.
1634 if test -f $ac_dir/$ac_word; then
1635 ac_cv_prog_TSORT="tsort"
1640 test -z "$ac_cv_prog_TSORT" && ac_cv_prog_TSORT="no"
1643 TSORT="$ac_cv_prog_TSORT"
1644 if test -n "$TSORT"; then
1645 echo "$ac_t""$TSORT" 1>&6
1647 echo "$ac_t""no" 1>&6
1650 if test x$ac_cv_prog_LORDER != xlorder -o x$ac_cv_prog_TSORT != xtsort; then
1655 echo $ac_n "checking whether tsort can deal with loops""... $ac_c" 1>&6
1656 echo "configure:1657: checking whether tsort can deal with loops" >&5
1657 if eval "test \"`echo '$''{'nmh_cv_tsort_loop'+set}'`\" = set"; then
1658 echo $ac_n "(cached) $ac_c" 1>&6
1660 if test -z "`echo a b b a | tsort 2>/dev/null | grep a`" ; then
1661 nmh_cv_tsort_loop=no
1663 nmh_cv_tsort_loop=yes
1667 echo "$ac_t""$nmh_cv_tsort_loop" 1>&6
1668 if test x$nmh_cv_tsort_loop = xno ; then
1673 pathtmp=/usr/bin:/bin:/usr/local/bin:/usr/xpg4/bin:/usr/ucb
1674 # Extract the first word of "ls", so it can be a program name with args.
1675 set dummy ls; ac_word=$2
1676 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1677 echo "configure:1678: checking for $ac_word" >&5
1678 if eval "test \"`echo '$''{'ac_cv_path_lspath'+set}'`\" = set"; then
1679 echo $ac_n "(cached) $ac_c" 1>&6
1683 ac_cv_path_lspath="$lspath" # Let the user override the test with a path.
1686 ac_cv_path_lspath="$lspath" # Let the user override the test with a dos path.
1689 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1691 for ac_dir in $ac_dummy; do
1692 test -z "$ac_dir" && ac_dir=.
1693 if test -f $ac_dir/$ac_word; then
1694 ac_cv_path_lspath="$ac_dir/$ac_word"
1699 test -z "$ac_cv_path_lspath" && ac_cv_path_lspath="no"
1703 lspath="$ac_cv_path_lspath"
1704 if test -n "$lspath"; then
1705 echo "$ac_t""$lspath" 1>&6
1707 echo "$ac_t""no" 1>&6
1711 if test "$lspath" != "no"; then
1712 echo $ac_n "checking how to get ls to show us the group ownership of a file""... $ac_c" 1>&6
1713 echo "configure:1714: checking how to get ls to show us the group ownership of a file" >&5
1714 if eval "test \"`echo '$''{'nmh_cv_ls_grpopt'+set}'`\" = set"; then
1715 echo $ac_n "(cached) $ac_c" 1>&6
1717 if test x"`$lspath -dl / | $AWK '{print $9}'`" = x"/"; then
1718 nmh_cv_ls_grpopt="-l"
1720 nmh_cv_ls_grpopt="-lg"
1724 echo "$ac_t""$nmh_cv_ls_grpopt" 1>&6
1727 pathtmp=/usr/bin:/bin:/usr/ucb:/usr/local/bin
1728 # Extract the first word of "more", so it can be a program name with args.
1729 set dummy more; ac_word=$2
1730 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1731 echo "configure:1732: checking for $ac_word" >&5
1732 if eval "test \"`echo '$''{'ac_cv_path_morepath'+set}'`\" = set"; then
1733 echo $ac_n "(cached) $ac_c" 1>&6
1737 ac_cv_path_morepath="$morepath" # Let the user override the test with a path.
1740 ac_cv_path_morepath="$morepath" # Let the user override the test with a dos path.
1743 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1745 for ac_dir in $ac_dummy; do
1746 test -z "$ac_dir" && ac_dir=.
1747 if test -f $ac_dir/$ac_word; then
1748 ac_cv_path_morepath="$ac_dir/$ac_word"
1753 test -z "$ac_cv_path_morepath" && ac_cv_path_morepath="no"
1757 morepath="$ac_cv_path_morepath"
1758 if test -n "$morepath"; then
1759 echo "$ac_t""$morepath" 1>&6
1761 echo "$ac_t""no" 1>&6
1765 if test -z "$pagerpath"; then
1766 pagerpath="$morepath"
1769 pathtmp=/usr/lib:/usr/sbin:/usr/etc:/usr/ucblib:/usr/bin:/bin
1770 # Extract the first word of "sendmail", so it can be a program name with args.
1771 set dummy sendmail; ac_word=$2
1772 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1773 echo "configure:1774: checking for $ac_word" >&5
1774 if eval "test \"`echo '$''{'ac_cv_path_sendmailpath'+set}'`\" = set"; then
1775 echo $ac_n "(cached) $ac_c" 1>&6
1777 case "$sendmailpath" in
1779 ac_cv_path_sendmailpath="$sendmailpath" # Let the user override the test with a path.
1782 ac_cv_path_sendmailpath="$sendmailpath" # Let the user override the test with a dos path.
1785 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1787 for ac_dir in $ac_dummy; do
1788 test -z "$ac_dir" && ac_dir=.
1789 if test -f $ac_dir/$ac_word; then
1790 ac_cv_path_sendmailpath="$ac_dir/$ac_word"
1795 test -z "$ac_cv_path_sendmailpath" && ac_cv_path_sendmailpath="no"
1799 sendmailpath="$ac_cv_path_sendmailpath"
1800 if test -n "$sendmailpath"; then
1801 echo "$ac_t""$sendmailpath" 1>&6
1803 echo "$ac_t""no" 1>&6
1807 pathtmp=/usr/bin:/bin:/usr/ucb:/usr/local/bin
1808 # Extract the first word of "vi", so it can be a program name with args.
1809 set dummy vi; ac_word=$2
1810 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1811 echo "configure:1812: checking for $ac_word" >&5
1812 if eval "test \"`echo '$''{'ac_cv_path_vipath'+set}'`\" = set"; then
1813 echo $ac_n "(cached) $ac_c" 1>&6
1817 ac_cv_path_vipath="$vipath" # Let the user override the test with a path.
1820 ac_cv_path_vipath="$vipath" # Let the user override the test with a dos path.
1823 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1825 for ac_dir in $ac_dummy; do
1826 test -z "$ac_dir" && ac_dir=.
1827 if test -f $ac_dir/$ac_word; then
1828 ac_cv_path_vipath="$ac_dir/$ac_word"
1833 test -z "$ac_cv_path_vipath" && ac_cv_path_vipath="no"
1837 vipath="$ac_cv_path_vipath"
1838 if test -n "$vipath"; then
1839 echo "$ac_t""$vipath" 1>&6
1841 echo "$ac_t""no" 1>&6
1845 if test -z "$editorpath"; then
1846 editorpath="$vipath"
1849 echo $ac_n "checking for broken vi""... $ac_c" 1>&6
1850 echo "configure:1851: checking for broken vi" >&5
1851 if eval "test \"`echo '$''{'nmh_cv_attvibug'+set}'`\" = set"; then
1852 echo $ac_n "(cached) $ac_c" 1>&6
1854 if echo 'r /nonexist-file
1855 q' | ex > /dev/null 2>&1
1863 echo "$ac_t""$nmh_cv_attvibug" 1>&6
1865 if test "$nmh_cv_attvibug" = yes; then
1866 cat >> confdefs.h <<\EOF
1871 echo $ac_n "checking where mail spool is located""... $ac_c" 1>&6
1872 echo "configure:1873: checking where mail spool is located" >&5
1873 if eval "test \"`echo '$''{'nmh_cv_mailspool'+set}'`\" = set"; then
1874 echo $ac_n "(cached) $ac_c" 1>&6
1876 for mailspool in /var/mail /var/spool/mail /usr/spool/mail /dev/null; do
1877 test -d $mailspool && break
1879 nmh_cv_mailspool=$mailspool
1883 echo "$ac_t""$nmh_cv_mailspool" 1>&6
1884 mailspool=$nmh_cv_mailspool
1886 if test "$lspath" != "no" -a "$cutpath" != "no"; then
1887 echo $ac_n "checking whether the mail spool is world-writable""... $ac_c" 1>&6
1888 echo "configure:1889: checking whether the mail spool is world-writable" >&5
1889 if eval "test \"`echo '$''{'nmh_cv_mailspool_world_writable'+set}'`\" = set"; then
1890 echo $ac_n "(cached) $ac_c" 1>&6
1892 if test "`$lspath -dlL $mailspool | $cutpath -c9`" = "-"; then
1893 nmh_cv_mailspool_world_writable=no
1895 nmh_cv_mailspool_world_writable=yes
1899 echo "$ac_t""$nmh_cv_mailspool_world_writable" 1>&6
1902 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1903 echo "configure:1904: checking how to run the C preprocessor" >&5
1904 # On Suns, sometimes $CPP names a directory.
1905 if test -n "$CPP" && test -d "$CPP"; then
1908 if test -z "$CPP"; then
1909 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1910 echo $ac_n "(cached) $ac_c" 1>&6
1912 # This must be in double quotes, not single quotes, because CPP may get
1913 # substituted into the Makefile and "${CC-cc}" will confuse make.
1915 # On the NeXT, cc -E runs the code through the compiler's parser,
1916 # not just through cpp.
1917 cat > conftest.$ac_ext <<EOF
1918 #line 1919 "configure"
1919 #include "confdefs.h"
1923 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1924 { (eval echo configure:1925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1925 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1926 if test -z "$ac_err"; then
1930 echo "configure: failed program was:" >&5
1931 cat conftest.$ac_ext >&5
1933 CPP="${CC-cc} -E -traditional-cpp"
1934 cat > conftest.$ac_ext <<EOF
1935 #line 1936 "configure"
1936 #include "confdefs.h"
1940 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1941 { (eval echo configure:1942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1942 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1943 if test -z "$ac_err"; then
1947 echo "configure: failed program was:" >&5
1948 cat conftest.$ac_ext >&5
1950 CPP="${CC-cc} -nologo -E"
1951 cat > conftest.$ac_ext <<EOF
1952 #line 1953 "configure"
1953 #include "confdefs.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
1964 echo "configure: failed program was:" >&5
1965 cat conftest.$ac_ext >&5
1974 ac_cv_prog_CPP="$CPP"
1976 CPP="$ac_cv_prog_CPP"
1978 ac_cv_prog_CPP="$CPP"
1980 echo "$ac_t""$CPP" 1>&6
1982 ac_safe=`echo "lockfile.h" | sed 'y%./+-%__p_%'`
1983 echo $ac_n "checking for lockfile.h""... $ac_c" 1>&6
1984 echo "configure:1985: checking for lockfile.h" >&5
1985 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1986 echo $ac_n "(cached) $ac_c" 1>&6
1988 cat > conftest.$ac_ext <<EOF
1989 #line 1990 "configure"
1990 #include "confdefs.h"
1991 #include <lockfile.h>
1993 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1994 { (eval echo configure:1995: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1995 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1996 if test -z "$ac_err"; then
1998 eval "ac_cv_header_$ac_safe=yes"
2001 echo "configure: failed program was:" >&5
2002 cat conftest.$ac_ext >&5
2004 eval "ac_cv_header_$ac_safe=no"
2008 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2009 echo "$ac_t""yes" 1>&6
2010 echo $ac_n "checking for lockfile_create in -llockfile""... $ac_c" 1>&6
2011 echo "configure:2012: checking for lockfile_create in -llockfile" >&5
2012 ac_lib_var=`echo lockfile'_'lockfile_create | sed 'y%./+-%__p_%'`
2013 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2014 echo $ac_n "(cached) $ac_c" 1>&6
2016 ac_save_LIBS="$LIBS"
2017 LIBS="-llockfile $LIBS"
2018 cat > conftest.$ac_ext <<EOF
2019 #line 2020 "configure"
2020 #include "confdefs.h"
2021 /* Override any gcc2 internal prototype to avoid an error. */
2022 /* We use char because int might match the return type of a gcc2
2023 builtin and then its argument prototype would still apply. */
2024 char lockfile_create();
2030 if { (eval echo configure:2031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2032 eval "ac_cv_lib_$ac_lib_var=yes"
2034 echo "configure: failed program was:" >&5
2035 cat conftest.$ac_ext >&5
2037 eval "ac_cv_lib_$ac_lib_var=no"
2040 LIBS="$ac_save_LIBS"
2043 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2044 echo "$ac_t""yes" 1>&6
2045 ac_tr_lib=HAVE_LIB`echo lockfile | sed -e 's/^a-zA-Z0-9_/_/g' \
2046 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2047 cat >> confdefs.h <<EOF
2048 #define $ac_tr_lib 1
2051 LIBS="-llockfile $LIBS"
2054 echo "$ac_t""no" 1>&6
2058 echo "$ac_t""no" 1>&6
2062 # Extract the first word of "dotlockfile", so it can be a program name with args.
2063 set dummy dotlockfile; ac_word=$2
2064 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2065 echo "configure:2066: checking for $ac_word" >&5
2066 if eval "test \"`echo '$''{'ac_cv_path_dotlockfilepath'+set}'`\" = set"; then
2067 echo $ac_n "(cached) $ac_c" 1>&6
2069 case "$dotlockfilepath" in
2071 ac_cv_path_dotlockfilepath="$dotlockfilepath" # Let the user override the test with a path.
2074 ac_cv_path_dotlockfilepath="$dotlockfilepath" # Let the user override the test with a dos path.
2077 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2079 for ac_dir in $ac_dummy; do
2080 test -z "$ac_dir" && ac_dir=.
2081 if test -f $ac_dir/$ac_word; then
2082 ac_cv_path_dotlockfilepath="$ac_dir/$ac_word"
2087 test -z "$ac_cv_path_dotlockfilepath" && ac_cv_path_dotlockfilepath="no"
2091 dotlockfilepath="$ac_cv_path_dotlockfilepath"
2092 if test -n "$dotlockfilepath"; then
2093 echo "$ac_t""$dotlockfilepath" 1>&6
2095 echo "$ac_t""no" 1>&6
2098 if test "$ac_cv_lib_lockfile_lockfile_create" != "no" ; then
2099 if test "$ac_cv_path_dotlockfilepath" != "no" ; then
2100 echo $ac_n "checking whether dotlockfile is setgid""... $ac_c" 1>&6
2101 echo "configure:2102: checking whether dotlockfile is setgid" >&5
2102 if eval "test \"`echo '$''{'nmh_cv_dotlockfile_setgid'+set}'`\" = set"; then
2103 echo $ac_n "(cached) $ac_c" 1>&6
2105 if test -g "$ac_cv_path_dotlockfilepath" ; then
2106 nmh_cv_dotlockfile_setgid=yes
2108 nmh_cv_dotlockfile_setgid=no
2112 echo "$ac_t""$nmh_cv_dotlockfile_setgid" 1>&6
2116 if test x"$nmh_cv_mailspool_world_writable" = x"no" -a x"$nmh_cv_dotlockfile_setgid" != x"yes" ; then
2117 cat >> confdefs.h <<\EOF
2123 echo $ac_n "checking what group owns the mail spool""... $ac_c" 1>&6
2124 echo "configure:2125: checking what group owns the mail spool" >&5
2125 if eval "test \"`echo '$''{'nmh_cv_ls_mail_grp'+set}'`\" = set"; then
2126 echo $ac_n "(cached) $ac_c" 1>&6
2128 nmh_cv_ls_mail_grp=`$lspath -dL $nmh_cv_ls_grpopt $mailspool|$AWK '{print $4}'`
2132 echo "$ac_t""$nmh_cv_ls_mail_grp" 1>&6
2133 MAIL_SPOOL_GRP=$nmh_cv_ls_mail_grp
2136 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2138 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2139 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2140 echo "configure:2141: checking for $ac_hdr that defines DIR" >&5
2141 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2142 echo $ac_n "(cached) $ac_c" 1>&6
2144 cat > conftest.$ac_ext <<EOF
2145 #line 2146 "configure"
2146 #include "confdefs.h"
2147 #include <sys/types.h>
2153 if { (eval echo configure:2154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2155 eval "ac_cv_header_dirent_$ac_safe=yes"
2157 echo "configure: failed program was:" >&5
2158 cat conftest.$ac_ext >&5
2160 eval "ac_cv_header_dirent_$ac_safe=no"
2164 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2165 echo "$ac_t""yes" 1>&6
2166 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2167 cat >> confdefs.h <<EOF
2168 #define $ac_tr_hdr 1
2170 ac_header_dirent=$ac_hdr; break
2172 echo "$ac_t""no" 1>&6
2175 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2176 if test $ac_header_dirent = dirent.h; then
2177 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2178 echo "configure:2179: checking for opendir in -ldir" >&5
2179 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2180 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2181 echo $ac_n "(cached) $ac_c" 1>&6
2183 ac_save_LIBS="$LIBS"
2185 cat > conftest.$ac_ext <<EOF
2186 #line 2187 "configure"
2187 #include "confdefs.h"
2188 /* Override any gcc2 internal prototype to avoid an error. */
2189 /* We use char because int might match the return type of a gcc2
2190 builtin and then its argument prototype would still apply. */
2197 if { (eval echo configure:2198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2199 eval "ac_cv_lib_$ac_lib_var=yes"
2201 echo "configure: failed program was:" >&5
2202 cat conftest.$ac_ext >&5
2204 eval "ac_cv_lib_$ac_lib_var=no"
2207 LIBS="$ac_save_LIBS"
2210 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2211 echo "$ac_t""yes" 1>&6
2214 echo "$ac_t""no" 1>&6
2218 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2219 echo "configure:2220: checking for opendir in -lx" >&5
2220 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2221 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2222 echo $ac_n "(cached) $ac_c" 1>&6
2224 ac_save_LIBS="$LIBS"
2226 cat > conftest.$ac_ext <<EOF
2227 #line 2228 "configure"
2228 #include "confdefs.h"
2229 /* Override any gcc2 internal prototype to avoid an error. */
2230 /* We use char because int might match the return type of a gcc2
2231 builtin and then its argument prototype would still apply. */
2238 if { (eval echo configure:2239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2240 eval "ac_cv_lib_$ac_lib_var=yes"
2242 echo "configure: failed program was:" >&5
2243 cat conftest.$ac_ext >&5
2245 eval "ac_cv_lib_$ac_lib_var=no"
2248 LIBS="$ac_save_LIBS"
2251 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2252 echo "$ac_t""yes" 1>&6
2255 echo "$ac_t""no" 1>&6
2260 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2261 echo "configure:2262: checking for ANSI C header files" >&5
2262 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2263 echo $ac_n "(cached) $ac_c" 1>&6
2265 cat > conftest.$ac_ext <<EOF
2266 #line 2267 "configure"
2267 #include "confdefs.h"
2273 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2274 { (eval echo configure:2275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2275 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2276 if test -z "$ac_err"; then
2278 ac_cv_header_stdc=yes
2281 echo "configure: failed program was:" >&5
2282 cat conftest.$ac_ext >&5
2284 ac_cv_header_stdc=no
2288 if test $ac_cv_header_stdc = yes; then
2289 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2290 cat > conftest.$ac_ext <<EOF
2291 #line 2292 "configure"
2292 #include "confdefs.h"
2295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2296 egrep "memchr" >/dev/null 2>&1; then
2300 ac_cv_header_stdc=no
2306 if test $ac_cv_header_stdc = yes; then
2307 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2308 cat > conftest.$ac_ext <<EOF
2309 #line 2310 "configure"
2310 #include "confdefs.h"
2313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2314 egrep "free" >/dev/null 2>&1; then
2318 ac_cv_header_stdc=no
2324 if test $ac_cv_header_stdc = yes; then
2325 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2326 if test "$cross_compiling" = yes; then
2329 cat > conftest.$ac_ext <<EOF
2330 #line 2331 "configure"
2331 #include "confdefs.h"
2333 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2334 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2335 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2336 int main () { int i; for (i = 0; i < 256; i++)
2337 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2341 if { (eval echo configure:2342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2345 echo "configure: failed program was:" >&5
2346 cat conftest.$ac_ext >&5
2348 ac_cv_header_stdc=no
2356 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2357 if test $ac_cv_header_stdc = yes; then
2358 cat >> confdefs.h <<\EOF
2359 #define STDC_HEADERS 1
2364 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2365 echo "configure:2366: checking whether time.h and sys/time.h may both be included" >&5
2366 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2367 echo $ac_n "(cached) $ac_c" 1>&6
2369 cat > conftest.$ac_ext <<EOF
2370 #line 2371 "configure"
2371 #include "confdefs.h"
2372 #include <sys/types.h>
2373 #include <sys/time.h>
2379 if { (eval echo configure:2380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2381 ac_cv_header_time=yes
2383 echo "configure: failed program was:" >&5
2384 cat conftest.$ac_ext >&5
2386 ac_cv_header_time=no
2391 echo "$ac_t""$ac_cv_header_time" 1>&6
2392 if test $ac_cv_header_time = yes; then
2393 cat >> confdefs.h <<\EOF
2394 #define TIME_WITH_SYS_TIME 1
2399 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2400 echo "configure:2401: checking for sys/wait.h that is POSIX.1 compatible" >&5
2401 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2402 echo $ac_n "(cached) $ac_c" 1>&6
2404 cat > conftest.$ac_ext <<EOF
2405 #line 2406 "configure"
2406 #include "confdefs.h"
2407 #include <sys/types.h>
2408 #include <sys/wait.h>
2410 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2413 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2418 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2421 if { (eval echo configure:2422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2423 ac_cv_header_sys_wait_h=yes
2425 echo "configure: failed program was:" >&5
2426 cat conftest.$ac_ext >&5
2428 ac_cv_header_sys_wait_h=no
2433 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2434 if test $ac_cv_header_sys_wait_h = yes; then
2435 cat >> confdefs.h <<\EOF
2436 #define HAVE_SYS_WAIT_H 1
2441 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
2442 echo "configure:2443: checking whether stat file-mode macros are broken" >&5
2443 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
2444 echo $ac_n "(cached) $ac_c" 1>&6
2446 cat > conftest.$ac_ext <<EOF
2447 #line 2448 "configure"
2448 #include "confdefs.h"
2449 #include <sys/types.h>
2450 #include <sys/stat.h>
2452 #if defined(S_ISBLK) && defined(S_IFDIR)
2453 # if S_ISBLK (S_IFDIR)
2458 #if defined(S_ISBLK) && defined(S_IFCHR)
2459 # if S_ISBLK (S_IFCHR)
2464 #if defined(S_ISLNK) && defined(S_IFREG)
2465 # if S_ISLNK (S_IFREG)
2470 #if defined(S_ISSOCK) && defined(S_IFREG)
2471 # if S_ISSOCK (S_IFREG)
2477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2478 egrep "You lose" >/dev/null 2>&1; then
2480 ac_cv_header_stat_broken=yes
2483 ac_cv_header_stat_broken=no
2489 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
2490 if test $ac_cv_header_stat_broken = yes; then
2491 cat >> confdefs.h <<\EOF
2492 #define STAT_MACROS_BROKEN 1
2497 for ac_hdr in string.h memory.h stdlib.h unistd.h errno.h fcntl.h \
2498 limits.h crypt.h termcap.h termio.h termios.h locale.h \
2499 netdb.h sys/param.h sys/time.h sys/utsname.h arpa/inet.h \
2502 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2503 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2504 echo "configure:2505: checking for $ac_hdr" >&5
2505 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2506 echo $ac_n "(cached) $ac_c" 1>&6
2508 cat > conftest.$ac_ext <<EOF
2509 #line 2510 "configure"
2510 #include "confdefs.h"
2513 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2514 { (eval echo configure:2515: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2515 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2516 if test -z "$ac_err"; then
2518 eval "ac_cv_header_$ac_safe=yes"
2521 echo "configure: failed program was:" >&5
2522 cat conftest.$ac_ext >&5
2524 eval "ac_cv_header_$ac_safe=no"
2528 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2529 echo "$ac_t""yes" 1>&6
2530 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2531 cat >> confdefs.h <<EOF
2532 #define $ac_tr_hdr 1
2536 echo "$ac_t""no" 1>&6
2542 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
2543 echo "configure:2544: checking POSIX termios" >&5
2544 if eval "test \"`echo '$''{'nmh_cv_sys_posix_termios'+set}'`\" = set"; then
2545 echo $ac_n "(cached) $ac_c" 1>&6
2547 cat > conftest.$ac_ext <<EOF
2548 #line 2549 "configure"
2549 #include "confdefs.h"
2550 #include <sys/types.h>
2552 #include <termios.h>
2554 /* SunOS 4.0.3 has termios.h but not the library calls. */
2558 if { (eval echo configure:2559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2560 nmh_cv_sys_posix_termios=yes
2562 echo "configure: failed program was:" >&5
2563 cat conftest.$ac_ext >&5
2565 nmh_cv_sys_posix_termios=no
2570 echo "$ac_t""$nmh_cv_sys_posix_termios" 1>&6
2572 if test $nmh_cv_sys_posix_termios = yes; then
2573 echo $ac_n "checking TIOCGWINSZ in termios.h""... $ac_c" 1>&6
2574 echo "configure:2575: checking TIOCGWINSZ in termios.h" >&5
2575 if eval "test \"`echo '$''{'nmh_cv_header_termios_h_tiocgwinsz'+set}'`\" = set"; then
2576 echo $ac_n "(cached) $ac_c" 1>&6
2578 cat > conftest.$ac_ext <<EOF
2579 #line 2580 "configure"
2580 #include "confdefs.h"
2581 #include <sys/types.h>
2582 #include <termios.h>
2587 if { (eval echo configure:2588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2589 nmh_cv_header_termios_h_tiocgwinsz=yes
2591 echo "configure: failed program was:" >&5
2592 cat conftest.$ac_ext >&5
2594 nmh_cv_header_termios_h_tiocgwinsz=no
2599 echo "$ac_t""$nmh_cv_header_termios_h_tiocgwinsz" 1>&6
2601 nmh_cv_header_termios_h_tiocgwinsz=no
2604 if test $nmh_cv_header_termios_h_tiocgwinsz = no; then
2605 echo $ac_n "checking TIOCGWINSZ in sys/ioctl.h""... $ac_c" 1>&6
2606 echo "configure:2607: checking TIOCGWINSZ in sys/ioctl.h" >&5
2607 if eval "test \"`echo '$''{'nmh_cv_header_sys_ioctl_h_tiocgwinsz'+set}'`\" = set"; then
2608 echo $ac_n "(cached) $ac_c" 1>&6
2610 cat > conftest.$ac_ext <<EOF
2611 #line 2612 "configure"
2612 #include "confdefs.h"
2613 #include <sys/types.h>
2614 #include <sys/ioctl.h>
2619 if { (eval echo configure:2620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2621 nmh_cv_header_sys_ioctl_h_tiocgwinsz=yes
2623 echo "configure: failed program was:" >&5
2624 cat conftest.$ac_ext >&5
2626 nmh_cv_header_sys_ioctl_h_tiocgwinsz=no
2631 echo "$ac_t""$nmh_cv_header_sys_ioctl_h_tiocgwinsz" 1>&6
2632 if test $nmh_cv_header_sys_ioctl_h_tiocgwinsz = yes; then
2633 cat >> confdefs.h <<\EOF
2634 #define GWINSZ_IN_SYS_IOCTL 1
2639 ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2640 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2641 echo "configure:2642: checking for libio.h" >&5
2642 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2643 echo $ac_n "(cached) $ac_c" 1>&6
2645 cat > conftest.$ac_ext <<EOF
2646 #line 2647 "configure"
2647 #include "confdefs.h"
2650 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2651 { (eval echo configure:2652: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2652 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2653 if test -z "$ac_err"; then
2655 eval "ac_cv_header_$ac_safe=yes"
2658 echo "configure: failed program was:" >&5
2659 cat conftest.$ac_ext >&5
2661 eval "ac_cv_header_$ac_safe=no"
2665 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2666 echo "$ac_t""yes" 1>&6
2668 cat > conftest.$ac_ext <<EOF
2669 #line 2670 "configure"
2670 #include "confdefs.h"
2673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2674 egrep "_IO_write_ptr" >/dev/null 2>&1; then
2677 cat >> confdefs.h <<\EOF
2678 #define LINUX_STDIO 1
2685 echo "$ac_t""no" 1>&6
2689 ac_safe=`echo "sys/ptem.h" | sed 'y%./+-%__p_%'`
2690 echo $ac_n "checking for sys/ptem.h""... $ac_c" 1>&6
2691 echo "configure:2692: checking for sys/ptem.h" >&5
2692 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2693 echo $ac_n "(cached) $ac_c" 1>&6
2695 cat > conftest.$ac_ext <<EOF
2696 #line 2697 "configure"
2697 #include "confdefs.h"
2698 #include <sys/ptem.h>
2700 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2701 { (eval echo configure:2702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2702 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2703 if test -z "$ac_err"; then
2705 eval "ac_cv_header_$ac_safe=yes"
2708 echo "configure: failed program was:" >&5
2709 cat conftest.$ac_ext >&5
2711 eval "ac_cv_header_$ac_safe=no"
2715 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2716 echo "$ac_t""yes" 1>&6
2717 cat >> confdefs.h <<\EOF
2718 #define WINSIZE_IN_PTEM 1
2722 echo "$ac_t""no" 1>&6
2726 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2727 echo "configure:2728: checking for pid_t" >&5
2728 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2729 echo $ac_n "(cached) $ac_c" 1>&6
2731 cat > conftest.$ac_ext <<EOF
2732 #line 2733 "configure"
2733 #include "confdefs.h"
2734 #include <sys/types.h>
2740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2741 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2743 ac_cv_type_pid_t=yes
2751 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2752 if test $ac_cv_type_pid_t = no; then
2753 cat >> confdefs.h <<\EOF
2759 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2760 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2761 echo "configure:2762: checking for vfork.h" >&5
2762 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2763 echo $ac_n "(cached) $ac_c" 1>&6
2765 cat > conftest.$ac_ext <<EOF
2766 #line 2767 "configure"
2767 #include "confdefs.h"
2770 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2771 { (eval echo configure:2772: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2772 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2773 if test -z "$ac_err"; then
2775 eval "ac_cv_header_$ac_safe=yes"
2778 echo "configure: failed program was:" >&5
2779 cat conftest.$ac_ext >&5
2781 eval "ac_cv_header_$ac_safe=no"
2785 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2786 echo "$ac_t""yes" 1>&6
2787 cat >> confdefs.h <<\EOF
2788 #define HAVE_VFORK_H 1
2792 echo "$ac_t""no" 1>&6
2795 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2796 echo "configure:2797: checking for working vfork" >&5
2797 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2798 echo $ac_n "(cached) $ac_c" 1>&6
2800 if test "$cross_compiling" = yes; then
2801 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2802 echo "configure:2803: checking for vfork" >&5
2803 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2804 echo $ac_n "(cached) $ac_c" 1>&6
2806 cat > conftest.$ac_ext <<EOF
2807 #line 2808 "configure"
2808 #include "confdefs.h"
2809 /* System header to define __stub macros and hopefully few prototypes,
2810 which can conflict with char vfork(); below. */
2812 /* Override any gcc2 internal prototype to avoid an error. */
2813 /* We use char because int might match the return type of a gcc2
2814 builtin and then its argument prototype would still apply. */
2819 /* The GNU C library defines this for functions which it implements
2820 to always fail with ENOSYS. Some functions are actually named
2821 something starting with __ and the normal name is an alias. */
2822 #if defined (__stub_vfork) || defined (__stub___vfork)
2830 if { (eval echo configure:2831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2832 eval "ac_cv_func_vfork=yes"
2834 echo "configure: failed program was:" >&5
2835 cat conftest.$ac_ext >&5
2837 eval "ac_cv_func_vfork=no"
2842 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2843 echo "$ac_t""yes" 1>&6
2846 echo "$ac_t""no" 1>&6
2849 ac_cv_func_vfork_works=$ac_cv_func_vfork
2851 cat > conftest.$ac_ext <<EOF
2852 #line 2853 "configure"
2853 #include "confdefs.h"
2854 /* Thanks to Paul Eggert for this test. */
2856 #include <sys/types.h>
2857 #include <sys/stat.h>
2858 #ifdef HAVE_UNISTD_H
2864 /* On some sparc systems, changes by the child to local and incoming
2865 argument registers are propagated back to the parent.
2866 The compiler is told about this with #include <vfork.h>,
2867 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2868 Test for this by using a static variable whose address
2869 is put into a register that is clobbered by the vfork. */
2872 sparc_address_test (int arg)
2874 sparc_address_test (arg) int arg;
2892 pid_t parent = getpid ();
2895 sparc_address_test ();
2900 /* Here is another test for sparc vfork register problems.
2901 This test uses lots of local variables, at least
2902 as many local variables as main has allocated so far
2903 including compiler temporaries. 4 locals are enough for
2904 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2905 A buggy compiler should reuse the register of parent
2906 for one of the local variables, since it will think that
2907 parent can't possibly be used any more in this routine.
2908 Assigning to the local variable will thus munge parent
2909 in the parent process. */
2911 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2912 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2913 /* Convince the compiler that p..p7 are live; otherwise, it might
2914 use the same hardware register for all 8 local variables. */
2915 if (p != p1 || p != p2 || p != p3 || p != p4
2916 || p != p5 || p != p6 || p != p7)
2919 /* On some systems (e.g. IRIX 3.3),
2920 vfork doesn't separate parent from child file descriptors.
2921 If the child closes a descriptor before it execs or exits,
2922 this munges the parent's descriptor as well.
2923 Test for this by closing stdout in the child. */
2924 _exit(close(fileno(stdout)) != 0);
2929 while (wait(&status) != child)
2932 /* Was there some problem with vforking? */
2935 /* Did the child fail? (This shouldn't happen.) */
2938 /* Did the vfork/compiler bug occur? */
2939 || parent != getpid()
2941 /* Did the file descriptor bug occur? */
2942 || fstat(fileno(stdout), &st) != 0
2947 if { (eval echo configure:2948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2949 ac_cv_func_vfork_works=yes
2951 echo "configure: failed program was:" >&5
2952 cat conftest.$ac_ext >&5
2954 ac_cv_func_vfork_works=no
2961 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2962 if test $ac_cv_func_vfork_works = no; then
2963 cat >> confdefs.h <<\EOF
2969 echo $ac_n "checking for mkstemp in -lmkstemp""... $ac_c" 1>&6
2970 echo "configure:2971: checking for mkstemp in -lmkstemp" >&5
2971 ac_lib_var=`echo mkstemp'_'mkstemp | sed 'y%./+-%__p_%'`
2972 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2973 echo $ac_n "(cached) $ac_c" 1>&6
2975 ac_save_LIBS="$LIBS"
2976 LIBS="-lmkstemp $LIBS"
2977 cat > conftest.$ac_ext <<EOF
2978 #line 2979 "configure"
2979 #include "confdefs.h"
2980 /* Override any gcc2 internal prototype to avoid an error. */
2981 /* We use char because int might match the return type of a gcc2
2982 builtin and then its argument prototype would still apply. */
2989 if { (eval echo configure:2990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2991 eval "ac_cv_lib_$ac_lib_var=yes"
2993 echo "configure: failed program was:" >&5
2994 cat conftest.$ac_ext >&5
2996 eval "ac_cv_lib_$ac_lib_var=no"
2999 LIBS="$ac_save_LIBS"
3002 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3003 echo "$ac_t""yes" 1>&6
3004 ac_tr_lib=HAVE_LIB`echo mkstemp | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3005 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3006 cat >> confdefs.h <<EOF
3007 #define $ac_tr_lib 1
3010 LIBS="-lmkstemp $LIBS"
3013 echo "$ac_t""no" 1>&6
3016 for ac_func in waitpid wait3 sigaction sigprocmask sigblock sigsetmask \
3017 sighold sigrelse writev lstat uname tzset killpg mkstemp \
3020 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3021 echo "configure:3022: checking for $ac_func" >&5
3022 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3023 echo $ac_n "(cached) $ac_c" 1>&6
3025 cat > conftest.$ac_ext <<EOF
3026 #line 3027 "configure"
3027 #include "confdefs.h"
3028 /* System header to define __stub macros and hopefully few prototypes,
3029 which can conflict with char $ac_func(); below. */
3031 /* Override any gcc2 internal prototype to avoid an error. */
3032 /* We use char because int might match the return type of a gcc2
3033 builtin and then its argument prototype would still apply. */
3038 /* The GNU C library defines this for functions which it implements
3039 to always fail with ENOSYS. Some functions are actually named
3040 something starting with __ and the normal name is an alias. */
3041 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3049 if { (eval echo configure:3050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3051 eval "ac_cv_func_$ac_func=yes"
3053 echo "configure: failed program was:" >&5
3054 cat conftest.$ac_ext >&5
3056 eval "ac_cv_func_$ac_func=no"
3061 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3062 echo "$ac_t""yes" 1>&6
3063 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3064 cat >> confdefs.h <<EOF
3065 #define $ac_tr_func 1
3069 echo "$ac_t""no" 1>&6
3074 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3075 echo "configure:3076: checking for gethostbyname" >&5
3076 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3077 echo $ac_n "(cached) $ac_c" 1>&6
3079 cat > conftest.$ac_ext <<EOF
3080 #line 3081 "configure"
3081 #include "confdefs.h"
3082 /* System header to define __stub macros and hopefully few prototypes,
3083 which can conflict with char gethostbyname(); below. */
3085 /* Override any gcc2 internal prototype to avoid an error. */
3086 /* We use char because int might match the return type of a gcc2
3087 builtin and then its argument prototype would still apply. */
3088 char gethostbyname();
3092 /* The GNU C library defines this for functions which it implements
3093 to always fail with ENOSYS. Some functions are actually named
3094 something starting with __ and the normal name is an alias. */
3095 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3103 if { (eval echo configure:3104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3105 eval "ac_cv_func_gethostbyname=yes"
3107 echo "configure: failed program was:" >&5
3108 cat conftest.$ac_ext >&5
3110 eval "ac_cv_func_gethostbyname=no"
3115 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3116 echo "$ac_t""yes" 1>&6
3117 cat >> confdefs.h <<\EOF
3118 #define HAVE_GETHOSTBYNAME 1
3122 echo "$ac_t""no" 1>&6
3123 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3124 echo "configure:3125: checking for gethostbyname in -lnsl" >&5
3125 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3126 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3127 echo $ac_n "(cached) $ac_c" 1>&6
3129 ac_save_LIBS="$LIBS"
3131 cat > conftest.$ac_ext <<EOF
3132 #line 3133 "configure"
3133 #include "confdefs.h"
3134 /* Override any gcc2 internal prototype to avoid an error. */
3135 /* We use char because int might match the return type of a gcc2
3136 builtin and then its argument prototype would still apply. */
3137 char gethostbyname();
3143 if { (eval echo configure:3144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3145 eval "ac_cv_lib_$ac_lib_var=yes"
3147 echo "configure: failed program was:" >&5
3148 cat conftest.$ac_ext >&5
3150 eval "ac_cv_lib_$ac_lib_var=no"
3153 LIBS="$ac_save_LIBS"
3156 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3157 echo "$ac_t""yes" 1>&6
3158 cat >> confdefs.h <<\EOF
3159 #define HAVE_GETHOSTBYNAME 1
3163 echo "$ac_t""no" 1>&6
3169 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
3170 echo "configure:3171: checking for sigsetjmp" >&5
3171 cat > conftest.$ac_ext <<EOF
3172 #line 3173 "configure"
3173 #include "confdefs.h"
3176 sigsetjmp((void *)0, 0);
3179 if { (eval echo configure:3180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3181 cat >> confdefs.h <<\EOF
3182 #define HAVE_SIGSETJMP 1
3184 echo "$ac_t""yes" 1>&6
3186 echo "configure: failed program was:" >&5
3187 cat conftest.$ac_ext >&5
3189 echo "$ac_t""no" 1>&6
3193 for ac_func in snprintf strerror strdup
3195 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3196 echo "configure:3197: checking for $ac_func" >&5
3197 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3198 echo $ac_n "(cached) $ac_c" 1>&6
3200 cat > conftest.$ac_ext <<EOF
3201 #line 3202 "configure"
3202 #include "confdefs.h"
3203 /* System header to define __stub macros and hopefully few prototypes,
3204 which can conflict with char $ac_func(); below. */
3206 /* Override any gcc2 internal prototype to avoid an error. */
3207 /* We use char because int might match the return type of a gcc2
3208 builtin and then its argument prototype would still apply. */
3213 /* The GNU C library defines this for functions which it implements
3214 to always fail with ENOSYS. Some functions are actually named
3215 something starting with __ and the normal name is an alias. */
3216 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3224 if { (eval echo configure:3225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3226 eval "ac_cv_func_$ac_func=yes"
3228 echo "configure: failed program was:" >&5
3229 cat conftest.$ac_ext >&5
3231 eval "ac_cv_func_$ac_func=no"
3236 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3237 echo "$ac_t""yes" 1>&6
3238 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3239 cat >> confdefs.h <<EOF
3240 #define $ac_tr_func 1
3244 echo "$ac_t""no" 1>&6
3245 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
3251 cat > conftest.$ac_ext <<EOF
3252 #line 3253 "configure"
3253 #include "confdefs.h"
3256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3257 egrep "initgroups" >/dev/null 2>&1; then
3259 cat >> confdefs.h <<\EOF
3260 #define INITGROUPS_HEADER <grp.h>
3265 cat > conftest.$ac_ext <<EOF
3266 #line 3267 "configure"
3267 #include "confdefs.h"
3270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3271 egrep "initgroups" >/dev/null 2>&1; then
3273 cat >> confdefs.h <<\EOF
3274 #define INITGROUPS_HEADER <unistd.h>
3284 cat > conftest.$ac_ext <<EOF
3285 #line 3286 "configure"
3286 #include "confdefs.h"
3289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3290 egrep "snprintf" >/dev/null 2>&1; then
3292 cat >> confdefs.h <<\EOF
3293 #define HAVE_SNPRINTF_PROTOTYPE 1
3300 echo $ac_n "checking for modf""... $ac_c" 1>&6
3301 echo "configure:3302: checking for modf" >&5
3302 if eval "test \"`echo '$''{'ac_cv_func_modf'+set}'`\" = set"; then
3303 echo $ac_n "(cached) $ac_c" 1>&6
3305 cat > conftest.$ac_ext <<EOF
3306 #line 3307 "configure"
3307 #include "confdefs.h"
3308 /* System header to define __stub macros and hopefully few prototypes,
3309 which can conflict with char modf(); below. */
3311 /* Override any gcc2 internal prototype to avoid an error. */
3312 /* We use char because int might match the return type of a gcc2
3313 builtin and then its argument prototype would still apply. */
3318 /* The GNU C library defines this for functions which it implements
3319 to always fail with ENOSYS. Some functions are actually named
3320 something starting with __ and the normal name is an alias. */
3321 #if defined (__stub_modf) || defined (__stub___modf)
3329 if { (eval echo configure:3330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3331 eval "ac_cv_func_modf=yes"
3333 echo "configure: failed program was:" >&5
3334 cat conftest.$ac_ext >&5
3336 eval "ac_cv_func_modf=no"
3341 if eval "test \"`echo '$ac_cv_func_'modf`\" = yes"; then
3342 echo "$ac_t""yes" 1>&6
3345 echo "$ac_t""no" 1>&6
3346 echo $ac_n "checking for modf in -lm""... $ac_c" 1>&6
3347 echo "configure:3348: checking for modf in -lm" >&5
3348 ac_lib_var=`echo m'_'modf | sed 'y%./+-%__p_%'`
3349 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3350 echo $ac_n "(cached) $ac_c" 1>&6
3352 ac_save_LIBS="$LIBS"
3354 cat > conftest.$ac_ext <<EOF
3355 #line 3356 "configure"
3356 #include "confdefs.h"
3357 /* Override any gcc2 internal prototype to avoid an error. */
3358 /* We use char because int might match the return type of a gcc2
3359 builtin and then its argument prototype would still apply. */
3366 if { (eval echo configure:3367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3368 eval "ac_cv_lib_$ac_lib_var=yes"
3370 echo "configure: failed program was:" >&5
3371 cat conftest.$ac_ext >&5
3373 eval "ac_cv_lib_$ac_lib_var=no"
3376 LIBS="$ac_save_LIBS"
3379 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3380 echo "$ac_t""yes" 1>&6
3381 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
3382 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3383 cat >> confdefs.h <<EOF
3384 #define $ac_tr_lib 1
3390 echo "$ac_t""no" 1>&6
3396 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3397 echo "configure:3398: checking for gethostbyname" >&5
3398 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3399 echo $ac_n "(cached) $ac_c" 1>&6
3401 cat > conftest.$ac_ext <<EOF
3402 #line 3403 "configure"
3403 #include "confdefs.h"
3404 /* System header to define __stub macros and hopefully few prototypes,
3405 which can conflict with char gethostbyname(); below. */
3407 /* Override any gcc2 internal prototype to avoid an error. */
3408 /* We use char because int might match the return type of a gcc2
3409 builtin and then its argument prototype would still apply. */
3410 char gethostbyname();
3414 /* The GNU C library defines this for functions which it implements
3415 to always fail with ENOSYS. Some functions are actually named
3416 something starting with __ and the normal name is an alias. */
3417 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3425 if { (eval echo configure:3426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3427 eval "ac_cv_func_gethostbyname=yes"
3429 echo "configure: failed program was:" >&5
3430 cat conftest.$ac_ext >&5
3432 eval "ac_cv_func_gethostbyname=no"
3437 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3438 echo "$ac_t""yes" 1>&6
3441 echo "$ac_t""no" 1>&6
3442 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3443 echo "configure:3444: checking for gethostbyname in -lnsl" >&5
3444 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3445 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3446 echo $ac_n "(cached) $ac_c" 1>&6
3448 ac_save_LIBS="$LIBS"
3450 cat > conftest.$ac_ext <<EOF
3451 #line 3452 "configure"
3452 #include "confdefs.h"
3453 /* Override any gcc2 internal prototype to avoid an error. */
3454 /* We use char because int might match the return type of a gcc2
3455 builtin and then its argument prototype would still apply. */
3456 char gethostbyname();
3462 if { (eval echo configure:3463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3464 eval "ac_cv_lib_$ac_lib_var=yes"
3466 echo "configure: failed program was:" >&5
3467 cat conftest.$ac_ext >&5
3469 eval "ac_cv_lib_$ac_lib_var=no"
3472 LIBS="$ac_save_LIBS"
3475 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3476 echo "$ac_t""yes" 1>&6
3477 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
3478 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3479 cat >> confdefs.h <<EOF
3480 #define $ac_tr_lib 1
3486 echo "$ac_t""no" 1>&6
3487 echo $ac_n "checking for gethostbyname in -lresolv""... $ac_c" 1>&6
3488 echo "configure:3489: checking for gethostbyname in -lresolv" >&5
3489 ac_lib_var=`echo resolv'_'gethostbyname | sed 'y%./+-%__p_%'`
3490 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3491 echo $ac_n "(cached) $ac_c" 1>&6
3493 ac_save_LIBS="$LIBS"
3494 LIBS="-lresolv $LIBS"
3495 cat > conftest.$ac_ext <<EOF
3496 #line 3497 "configure"
3497 #include "confdefs.h"
3498 /* Override any gcc2 internal prototype to avoid an error. */
3499 /* We use char because int might match the return type of a gcc2
3500 builtin and then its argument prototype would still apply. */
3501 char gethostbyname();
3507 if { (eval echo configure:3508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3509 eval "ac_cv_lib_$ac_lib_var=yes"
3511 echo "configure: failed program was:" >&5
3512 cat conftest.$ac_ext >&5
3514 eval "ac_cv_lib_$ac_lib_var=no"
3517 LIBS="$ac_save_LIBS"
3520 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3521 echo "$ac_t""yes" 1>&6
3522 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
3523 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3524 cat >> confdefs.h <<EOF
3525 #define $ac_tr_lib 1
3528 LIBS="-lresolv $LIBS"
3531 echo "$ac_t""no" 1>&6
3538 echo $ac_n "checking for socket""... $ac_c" 1>&6
3539 echo "configure:3540: checking for socket" >&5
3540 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
3541 echo $ac_n "(cached) $ac_c" 1>&6
3543 cat > conftest.$ac_ext <<EOF
3544 #line 3545 "configure"
3545 #include "confdefs.h"
3546 /* System header to define __stub macros and hopefully few prototypes,
3547 which can conflict with char socket(); below. */
3549 /* Override any gcc2 internal prototype to avoid an error. */
3550 /* We use char because int might match the return type of a gcc2
3551 builtin and then its argument prototype would still apply. */
3556 /* The GNU C library defines this for functions which it implements
3557 to always fail with ENOSYS. Some functions are actually named
3558 something starting with __ and the normal name is an alias. */
3559 #if defined (__stub_socket) || defined (__stub___socket)
3567 if { (eval echo configure:3568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3569 eval "ac_cv_func_socket=yes"
3571 echo "configure: failed program was:" >&5
3572 cat conftest.$ac_ext >&5
3574 eval "ac_cv_func_socket=no"
3579 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
3580 echo "$ac_t""yes" 1>&6
3583 echo "$ac_t""no" 1>&6
3584 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
3585 echo "configure:3586: checking for socket in -lsocket" >&5
3586 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
3587 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3588 echo $ac_n "(cached) $ac_c" 1>&6
3590 ac_save_LIBS="$LIBS"
3591 LIBS="-lsocket $LIBS"
3592 cat > conftest.$ac_ext <<EOF
3593 #line 3594 "configure"
3594 #include "confdefs.h"
3595 /* Override any gcc2 internal prototype to avoid an error. */
3596 /* We use char because int might match the return type of a gcc2
3597 builtin and then its argument prototype would still apply. */
3604 if { (eval echo configure:3605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3606 eval "ac_cv_lib_$ac_lib_var=yes"
3608 echo "configure: failed program was:" >&5
3609 cat conftest.$ac_ext >&5
3611 eval "ac_cv_lib_$ac_lib_var=no"
3614 LIBS="$ac_save_LIBS"
3617 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3618 echo "$ac_t""yes" 1>&6
3619 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
3620 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3621 cat >> confdefs.h <<EOF
3622 #define $ac_tr_lib 1
3625 LIBS="-lsocket $LIBS"
3628 echo "$ac_t""no" 1>&6
3635 termcap_curses_order="termcap curses ncurses"
3636 for lib in $termcap_curses_order; do
3637 echo $ac_n "checking for tgetent in -l${lib}""... $ac_c" 1>&6
3638 echo "configure:3639: checking for tgetent in -l${lib}" >&5
3639 ac_lib_var=`echo ${lib}'_'tgetent | sed 'y%./+-%__p_%'`
3640 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3641 echo $ac_n "(cached) $ac_c" 1>&6
3643 ac_save_LIBS="$LIBS"
3644 LIBS="-l${lib} $LIBS"
3645 cat > conftest.$ac_ext <<EOF
3646 #line 3647 "configure"
3647 #include "confdefs.h"
3648 /* Override any gcc2 internal prototype to avoid an error. */
3649 /* We use char because int might match the return type of a gcc2
3650 builtin and then its argument prototype would still apply. */
3657 if { (eval echo configure:3658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3659 eval "ac_cv_lib_$ac_lib_var=yes"
3661 echo "configure: failed program was:" >&5
3662 cat conftest.$ac_ext >&5
3664 eval "ac_cv_lib_$ac_lib_var=no"
3667 LIBS="$ac_save_LIBS"
3670 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3671 echo "$ac_t""yes" 1>&6
3672 TERMLIB="-l$lib"; break
3674 echo "$ac_t""no" 1>&6
3679 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
3680 echo "configure:3681: checking for dbm_open" >&5
3681 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
3682 echo $ac_n "(cached) $ac_c" 1>&6
3684 cat > conftest.$ac_ext <<EOF
3685 #line 3686 "configure"
3686 #include "confdefs.h"
3687 /* System header to define __stub macros and hopefully few prototypes,
3688 which can conflict with char dbm_open(); below. */
3690 /* Override any gcc2 internal prototype to avoid an error. */
3691 /* We use char because int might match the return type of a gcc2
3692 builtin and then its argument prototype would still apply. */
3697 /* The GNU C library defines this for functions which it implements
3698 to always fail with ENOSYS. Some functions are actually named
3699 something starting with __ and the normal name is an alias. */
3700 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
3708 if { (eval echo configure:3709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3710 eval "ac_cv_func_dbm_open=yes"
3712 echo "configure: failed program was:" >&5
3713 cat conftest.$ac_ext >&5
3715 eval "ac_cv_func_dbm_open=no"
3720 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
3721 echo "$ac_t""yes" 1>&6
3724 echo "$ac_t""no" 1>&6
3725 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
3726 echo "configure:3727: checking for dbm_open in -lndbm" >&5
3727 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
3728 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3729 echo $ac_n "(cached) $ac_c" 1>&6
3731 ac_save_LIBS="$LIBS"
3733 cat > conftest.$ac_ext <<EOF
3734 #line 3735 "configure"
3735 #include "confdefs.h"
3736 /* Override any gcc2 internal prototype to avoid an error. */
3737 /* We use char because int might match the return type of a gcc2
3738 builtin and then its argument prototype would still apply. */
3745 if { (eval echo configure:3746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3747 eval "ac_cv_lib_$ac_lib_var=yes"
3749 echo "configure: failed program was:" >&5
3750 cat conftest.$ac_ext >&5
3752 eval "ac_cv_lib_$ac_lib_var=no"
3755 LIBS="$ac_save_LIBS"
3758 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3759 echo "$ac_t""yes" 1>&6
3760 ac_tr_lib=HAVE_LIB`echo ndbm | sed -e 's/^a-zA-Z0-9_/_/g' \
3761 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3762 cat >> confdefs.h <<EOF
3763 #define $ac_tr_lib 1
3769 echo "$ac_t""no" 1>&6
3770 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
3771 echo "configure:3772: checking for dbm_open in -ldbm" >&5
3772 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
3773 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3774 echo $ac_n "(cached) $ac_c" 1>&6
3776 ac_save_LIBS="$LIBS"
3778 cat > conftest.$ac_ext <<EOF
3779 #line 3780 "configure"
3780 #include "confdefs.h"
3781 /* Override any gcc2 internal prototype to avoid an error. */
3782 /* We use char because int might match the return type of a gcc2
3783 builtin and then its argument prototype would still apply. */
3790 if { (eval echo configure:3791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3792 eval "ac_cv_lib_$ac_lib_var=yes"
3794 echo "configure: failed program was:" >&5
3795 cat conftest.$ac_ext >&5
3797 eval "ac_cv_lib_$ac_lib_var=no"
3800 LIBS="$ac_save_LIBS"
3803 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3804 echo "$ac_t""yes" 1>&6
3805 ac_tr_lib=HAVE_LIB`echo dbm | sed -e 's/^a-zA-Z0-9_/_/g' \
3806 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3807 cat >> confdefs.h <<EOF
3808 #define $ac_tr_lib 1
3814 echo "$ac_t""no" 1>&6
3822 for ac_hdr in db1/ndbm.h
3824 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3825 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3826 echo "configure:3827: checking for $ac_hdr" >&5
3827 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3828 echo $ac_n "(cached) $ac_c" 1>&6
3830 cat > conftest.$ac_ext <<EOF
3831 #line 3832 "configure"
3832 #include "confdefs.h"
3835 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3836 { (eval echo configure:3837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3837 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3838 if test -z "$ac_err"; then
3840 eval "ac_cv_header_$ac_safe=yes"
3843 echo "configure: failed program was:" >&5
3844 cat conftest.$ac_ext >&5
3846 eval "ac_cv_header_$ac_safe=no"
3850 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3851 echo "$ac_t""yes" 1>&6
3852 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3853 cat >> confdefs.h <<EOF
3854 #define $ac_tr_hdr 1
3858 echo "$ac_t""no" 1>&6
3863 if test x"$with_hesiod" != x -a x"$with_hesiod" != x"no"; then
3864 if test x"$with_hesiod" != x"yes"; then
3865 HESIOD_INCLUDES="-I$with_hesiod/include"
3866 HESIOD_LIBS="-L$with_hesiod/lib"
3868 echo $ac_n "checking for res_send""... $ac_c" 1>&6
3869 echo "configure:3870: checking for res_send" >&5
3870 if eval "test \"`echo '$''{'ac_cv_func_res_send'+set}'`\" = set"; then
3871 echo $ac_n "(cached) $ac_c" 1>&6
3873 cat > conftest.$ac_ext <<EOF
3874 #line 3875 "configure"
3875 #include "confdefs.h"
3876 /* System header to define __stub macros and hopefully few prototypes,
3877 which can conflict with char res_send(); below. */
3879 /* Override any gcc2 internal prototype to avoid an error. */
3880 /* We use char because int might match the return type of a gcc2
3881 builtin and then its argument prototype would still apply. */
3886 /* The GNU C library defines this for functions which it implements
3887 to always fail with ENOSYS. Some functions are actually named
3888 something starting with __ and the normal name is an alias. */
3889 #if defined (__stub_res_send) || defined (__stub___res_send)
3897 if { (eval echo configure:3898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3899 eval "ac_cv_func_res_send=yes"
3901 echo "configure: failed program was:" >&5
3902 cat conftest.$ac_ext >&5
3904 eval "ac_cv_func_res_send=no"
3909 if eval "test \"`echo '$ac_cv_func_'res_send`\" = yes"; then
3910 echo "$ac_t""yes" 1>&6
3913 echo "$ac_t""no" 1>&6
3914 echo $ac_n "checking for res_send in -lresolv""... $ac_c" 1>&6
3915 echo "configure:3916: checking for res_send in -lresolv" >&5
3916 ac_lib_var=`echo resolv'_'res_send | sed 'y%./+-%__p_%'`
3917 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3918 echo $ac_n "(cached) $ac_c" 1>&6
3920 ac_save_LIBS="$LIBS"
3921 LIBS="-lresolv $LIBS"
3922 cat > conftest.$ac_ext <<EOF
3923 #line 3924 "configure"
3924 #include "confdefs.h"
3925 /* Override any gcc2 internal prototype to avoid an error. */
3926 /* We use char because int might match the return type of a gcc2
3927 builtin and then its argument prototype would still apply. */
3934 if { (eval echo configure:3935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3936 eval "ac_cv_lib_$ac_lib_var=yes"
3938 echo "configure: failed program was:" >&5
3939 cat conftest.$ac_ext >&5
3941 eval "ac_cv_lib_$ac_lib_var=no"
3944 LIBS="$ac_save_LIBS"
3947 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3948 echo "$ac_t""yes" 1>&6
3949 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
3950 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3951 cat >> confdefs.h <<EOF
3952 #define $ac_tr_lib 1
3955 LIBS="-lresolv $LIBS"
3958 echo "$ac_t""no" 1>&6
3963 echo $ac_n "checking for hes_resolve in -lhesiod""... $ac_c" 1>&6
3964 echo "configure:3965: checking for hes_resolve in -lhesiod" >&5
3965 ac_lib_var=`echo hesiod'_'hes_resolve | sed 'y%./+-%__p_%'`
3966 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3967 echo $ac_n "(cached) $ac_c" 1>&6
3969 ac_save_LIBS="$LIBS"
3970 LIBS="-lhesiod $HESIOD_LIBS $LIBS"
3971 cat > conftest.$ac_ext <<EOF
3972 #line 3973 "configure"
3973 #include "confdefs.h"
3974 /* Override any gcc2 internal prototype to avoid an error. */
3975 /* We use char because int might match the return type of a gcc2
3976 builtin and then its argument prototype would still apply. */
3983 if { (eval echo configure:3984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3985 eval "ac_cv_lib_$ac_lib_var=yes"
3987 echo "configure: failed program was:" >&5
3988 cat conftest.$ac_ext >&5
3990 eval "ac_cv_lib_$ac_lib_var=no"
3993 LIBS="$ac_save_LIBS"
3996 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3997 echo "$ac_t""yes" 1>&6
3998 HESIOD_LIBS="$HESIOD_LIBS -lhesiod"
4000 echo "$ac_t""no" 1>&6
4001 { echo "configure: error: Hesiod library not found" 1>&2; exit 1; }
4006 if test x"$with_krb4" != x -a x"$with_krb4" != x"no"; then
4007 if test x"$with_krb4" != x"yes"; then
4008 KRB4_INCLUDES="-I$with_krb4/include"
4009 if test -d "$with_krb4/include/kerberosIV"; then
4010 KRB4_INCLUDES="$KRB4_INCLUDES -I$with_krb4/include/kerberosIV"
4012 KRB4_LIBS="-L$with_krb4/lib"
4013 elif test -d /usr/include/kerberosIV; then
4014 KRB4_INCLUDES="-I/usr/include/kerberosIV"
4016 echo $ac_n "checking for krb_rd_req in -lkrb4""... $ac_c" 1>&6
4017 echo "configure:4018: checking for krb_rd_req in -lkrb4" >&5
4018 ac_lib_var=`echo krb4'_'krb_rd_req | sed 'y%./+-%__p_%'`
4019 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4020 echo $ac_n "(cached) $ac_c" 1>&6
4022 ac_save_LIBS="$LIBS"
4023 LIBS="-lkrb4 $KRB4_LIBS -ldes425 -lkrb5 -lcrypto -lcom_err $LIBS"
4024 cat > conftest.$ac_ext <<EOF
4025 #line 4026 "configure"
4026 #include "confdefs.h"
4027 /* Override any gcc2 internal prototype to avoid an error. */
4028 /* We use char because int might match the return type of a gcc2
4029 builtin and then its argument prototype would still apply. */
4036 if { (eval echo configure:4037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4038 eval "ac_cv_lib_$ac_lib_var=yes"
4040 echo "configure: failed program was:" >&5
4041 cat conftest.$ac_ext >&5
4043 eval "ac_cv_lib_$ac_lib_var=no"
4046 LIBS="$ac_save_LIBS"
4049 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4050 echo "$ac_t""yes" 1>&6
4051 KRB4_LIBS="$KRB4_LIBS -lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err"
4053 echo "$ac_t""no" 1>&6
4054 echo $ac_n "checking for krb_rd_req in -lkrb""... $ac_c" 1>&6
4055 echo "configure:4056: checking for krb_rd_req in -lkrb" >&5
4056 ac_lib_var=`echo krb'_'krb_rd_req | sed 'y%./+-%__p_%'`
4057 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4058 echo $ac_n "(cached) $ac_c" 1>&6
4060 ac_save_LIBS="$LIBS"
4061 LIBS="-lkrb $KRB4_LIBS -ldes $LIBS"
4062 cat > conftest.$ac_ext <<EOF
4063 #line 4064 "configure"
4064 #include "confdefs.h"
4065 /* Override any gcc2 internal prototype to avoid an error. */
4066 /* We use char because int might match the return type of a gcc2
4067 builtin and then its argument prototype would still apply. */
4074 if { (eval echo configure:4075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4076 eval "ac_cv_lib_$ac_lib_var=yes"
4078 echo "configure: failed program was:" >&5
4079 cat conftest.$ac_ext >&5
4081 eval "ac_cv_lib_$ac_lib_var=no"
4084 LIBS="$ac_save_LIBS"
4087 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4088 echo "$ac_t""yes" 1>&6
4089 KRB4_LIBS="$KRB4_LIBS -lkrb -ldes"
4091 echo "$ac_t""no" 1>&6
4092 { echo "configure: error: Kerberos 4 libraries not found" 1>&2; exit 1; }
4099 if test x"$with_cyrus_sasl" != x -a x"$with_cyrus_sasl" != "no"; then
4100 if test x"$with_cyrus_sasl" != x"yes"; then
4101 SASL_INCLUDES="-I$with_cyrus_sasl/include"
4102 SASL_LIBS="-L$with_cyrus_sasl/lib"
4104 save_LDFLAGS="$LDFLAGS"
4105 LDFLAGS="$LDFLAGS $SASL_LIBS"
4106 echo $ac_n "checking for sasl_client_new in -lsasl""... $ac_c" 1>&6
4107 echo "configure:4108: checking for sasl_client_new in -lsasl" >&5
4108 ac_lib_var=`echo sasl'_'sasl_client_new | sed 'y%./+-%__p_%'`
4109 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4110 echo $ac_n "(cached) $ac_c" 1>&6
4112 ac_save_LIBS="$LIBS"
4114 cat > conftest.$ac_ext <<EOF
4115 #line 4116 "configure"
4116 #include "confdefs.h"
4117 /* Override any gcc2 internal prototype to avoid an error. */
4118 /* We use char because int might match the return type of a gcc2
4119 builtin and then its argument prototype would still apply. */
4120 char sasl_client_new();
4126 if { (eval echo configure:4127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4128 eval "ac_cv_lib_$ac_lib_var=yes"
4130 echo "configure: failed program was:" >&5
4131 cat conftest.$ac_ext >&5
4133 eval "ac_cv_lib_$ac_lib_var=no"
4136 LIBS="$ac_save_LIBS"
4139 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4140 echo "$ac_t""yes" 1>&6
4141 SASL_LIBS="$SASL_LIBS -lsasl"
4143 echo "$ac_t""no" 1>&6
4144 { echo "configure: error: Cyrus SASL library not found" 1>&2; exit 1; }
4147 LDFLAGS="$save_LDFLAGS"
4151 nmh_save_LIBS="$LIBS"
4152 LIBS="$TERMLIB $LIBS"
4154 echo $ac_n "checking if an include file defines ospeed""... $ac_c" 1>&6
4155 echo "configure:4156: checking if an include file defines ospeed" >&5
4156 if eval "test \"`echo '$''{'nmh_cv_decl_ospeed_include_defines'+set}'`\" = set"; then
4157 echo $ac_n "(cached) $ac_c" 1>&6
4159 cat > conftest.$ac_ext <<EOF
4160 #line 4161 "configure"
4161 #include "confdefs.h"
4162 #include <sys/types.h>
4164 #include <termios.h>
4167 #include <termcap.h>
4173 if { (eval echo configure:4174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4175 nmh_cv_decl_ospeed_include_defines=yes
4177 echo "configure: failed program was:" >&5
4178 cat conftest.$ac_ext >&5
4180 nmh_cv_decl_ospeed_include_defines=no
4185 echo "$ac_t""$nmh_cv_decl_ospeed_include_defines" 1>&6
4187 if test $nmh_cv_decl_ospeed_include_defines = no; then
4188 echo $ac_n "checking if you must define ospeed""... $ac_c" 1>&6
4189 echo "configure:4190: checking if you must define ospeed" >&5
4190 if eval "test \"`echo '$''{'nmh_cv_decl_ospeed_must_define'+set}'`\" = set"; then
4191 echo $ac_n "(cached) $ac_c" 1>&6
4193 cat > conftest.$ac_ext <<EOF
4194 #line 4195 "configure"
4195 #include "confdefs.h"
4198 extern short ospeed; ospeed = 0;
4201 if { (eval echo configure:4202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4203 nmh_cv_decl_ospeed_must_define=yes
4205 echo "configure: failed program was:" >&5
4206 cat conftest.$ac_ext >&5
4208 nmh_cv_decl_ospeed_must_define=no
4213 echo "$ac_t""$nmh_cv_decl_ospeed_must_define" 1>&6
4216 if test $nmh_cv_decl_ospeed_include_defines = yes; then
4217 cat >> confdefs.h <<\EOF
4218 #define HAVE_OSPEED 1
4220 elif test $nmh_cv_decl_ospeed_must_define = yes; then
4221 cat >> confdefs.h <<\EOF
4222 #define HAVE_OSPEED 1
4225 cat >> confdefs.h <<\EOF
4226 #define MUST_DEFINE_OSPEED 1
4232 LIBS="$nmh_save_LIBS"
4234 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4235 echo "configure:4236: checking return type of signal handlers" >&5
4236 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4237 echo $ac_n "(cached) $ac_c" 1>&6
4239 cat > conftest.$ac_ext <<EOF
4240 #line 4241 "configure"
4241 #include "confdefs.h"
4242 #include <sys/types.h>
4248 extern "C" void (*signal (int, void (*)(int)))(int);
4250 void (*signal ()) ();
4257 if { (eval echo configure:4258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4259 ac_cv_type_signal=void
4261 echo "configure: failed program was:" >&5
4262 cat conftest.$ac_ext >&5
4264 ac_cv_type_signal=int
4269 echo "$ac_t""$ac_cv_type_signal" 1>&6
4270 cat >> confdefs.h <<EOF
4271 #define RETSIGTYPE $ac_cv_type_signal
4275 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
4276 echo "configure:4277: checking for pid_t" >&5
4277 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
4278 echo $ac_n "(cached) $ac_c" 1>&6
4280 cat > conftest.$ac_ext <<EOF
4281 #line 4282 "configure"
4282 #include "confdefs.h"
4283 #include <sys/types.h>
4289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4290 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4292 ac_cv_type_pid_t=yes
4300 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
4301 if test $ac_cv_type_pid_t = no; then
4302 cat >> confdefs.h <<\EOF
4308 echo $ac_n "checking for off_t""... $ac_c" 1>&6
4309 echo "configure:4310: checking for off_t" >&5
4310 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
4311 echo $ac_n "(cached) $ac_c" 1>&6
4313 cat > conftest.$ac_ext <<EOF
4314 #line 4315 "configure"
4315 #include "confdefs.h"
4316 #include <sys/types.h>
4322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4323 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4325 ac_cv_type_off_t=yes
4333 echo "$ac_t""$ac_cv_type_off_t" 1>&6
4334 if test $ac_cv_type_off_t = no; then
4335 cat >> confdefs.h <<\EOF
4341 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
4342 echo "configure:4343: checking for uid_t in sys/types.h" >&5
4343 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
4344 echo $ac_n "(cached) $ac_c" 1>&6
4346 cat > conftest.$ac_ext <<EOF
4347 #line 4348 "configure"
4348 #include "confdefs.h"
4349 #include <sys/types.h>
4351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4352 egrep "uid_t" >/dev/null 2>&1; then
4354 ac_cv_type_uid_t=yes
4363 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
4364 if test $ac_cv_type_uid_t = no; then
4365 cat >> confdefs.h <<\EOF
4369 cat >> confdefs.h <<\EOF
4375 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
4376 echo "configure:4377: checking for mode_t" >&5
4377 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
4378 echo $ac_n "(cached) $ac_c" 1>&6
4380 cat > conftest.$ac_ext <<EOF
4381 #line 4382 "configure"
4382 #include "confdefs.h"
4383 #include <sys/types.h>
4389 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4390 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4392 ac_cv_type_mode_t=yes
4395 ac_cv_type_mode_t=no
4400 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
4401 if test $ac_cv_type_mode_t = no; then
4402 cat >> confdefs.h <<\EOF
4408 echo $ac_n "checking for size_t""... $ac_c" 1>&6
4409 echo "configure:4410: checking for size_t" >&5
4410 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
4411 echo $ac_n "(cached) $ac_c" 1>&6
4413 cat > conftest.$ac_ext <<EOF
4414 #line 4415 "configure"
4415 #include "confdefs.h"
4416 #include <sys/types.h>
4422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4423 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4425 ac_cv_type_size_t=yes
4428 ac_cv_type_size_t=no
4433 echo "$ac_t""$ac_cv_type_size_t" 1>&6
4434 if test $ac_cv_type_size_t = no; then
4435 cat >> confdefs.h <<\EOF
4436 #define size_t unsigned
4442 echo $ac_n "checking for sigset_t""... $ac_c" 1>&6
4443 echo "configure:4444: checking for sigset_t" >&5
4444 if eval "test \"`echo '$''{'nmh_cv_type_sigset_t'+set}'`\" = set"; then
4445 echo $ac_n "(cached) $ac_c" 1>&6
4447 cat > conftest.$ac_ext <<EOF
4448 #line 4449 "configure"
4449 #include "confdefs.h"
4450 #include <sys/types.h>
4453 sigset_t tempsigset;
4456 if { (eval echo configure:4457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4458 nmh_cv_type_sigset_t=yes
4460 echo "configure: failed program was:" >&5
4461 cat conftest.$ac_ext >&5
4463 nmh_cv_type_sigset_t=no
4468 echo "$ac_t""$nmh_cv_type_sigset_t" 1>&6
4469 if test $nmh_cv_type_sigset_t = no; then
4470 cat >> confdefs.h <<\EOF
4471 #define sigset_t unsigned int
4476 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
4477 echo "configure:4478: checking for st_blksize in struct stat" >&5
4478 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
4479 echo $ac_n "(cached) $ac_c" 1>&6
4481 cat > conftest.$ac_ext <<EOF
4482 #line 4483 "configure"
4483 #include "confdefs.h"
4484 #include <sys/types.h>
4485 #include <sys/stat.h>
4487 struct stat s; s.st_blksize;
4490 if { (eval echo configure:4491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4492 ac_cv_struct_st_blksize=yes
4494 echo "configure: failed program was:" >&5
4495 cat conftest.$ac_ext >&5
4497 ac_cv_struct_st_blksize=no
4502 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
4503 if test $ac_cv_struct_st_blksize = yes; then
4504 cat >> confdefs.h <<\EOF
4505 #define HAVE_ST_BLKSIZE 1
4511 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
4512 echo "configure:4513: checking for tm_gmtoff in struct tm" >&5
4513 if eval "test \"`echo '$''{'nmh_cv_struct_tm_gmtoff'+set}'`\" = set"; then
4514 echo $ac_n "(cached) $ac_c" 1>&6
4516 cat > conftest.$ac_ext <<EOF
4517 #line 4518 "configure"
4518 #include "confdefs.h"
4519 #ifdef TIME_WITH_SYS_TIME
4520 # include <sys/time.h>
4523 # ifdef TM_IN_SYS_TIME
4524 # include <sys/time.h>
4530 struct tm temptm; temptm.tm_gmtoff = 0;
4533 if { (eval echo configure:4534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4535 nmh_cv_struct_tm_gmtoff=yes
4537 echo "configure: failed program was:" >&5
4538 cat conftest.$ac_ext >&5
4540 nmh_cv_struct_tm_gmtoff=no
4545 echo "$ac_t""$nmh_cv_struct_tm_gmtoff" 1>&6
4546 if test $nmh_cv_struct_tm_gmtoff = yes; then
4547 cat >> confdefs.h <<\EOF
4548 #define HAVE_TM_GMTOFF 1
4553 echo $ac_n "checking what style of signals to use""... $ac_c" 1>&6
4554 echo "configure:4555: checking what style of signals to use" >&5
4555 if test $ac_cv_func_sigaction = yes -a $ac_cv_func_sigprocmask = yes; then
4556 signals_style=POSIX_SIGNALS
4557 cat >> confdefs.h <<\EOF
4558 #define POSIX_SIGNALS 1
4561 cat >> confdefs.h <<\EOF
4562 #define RELIABLE_SIGNALS 1
4565 elif test $ac_cv_func_sigblock = yes -a $ac_cv_func_sigsetmask = yes; then
4566 signals_style=BSD_SIGNALS
4567 cat >> confdefs.h <<\EOF
4568 #define BSD_SIGNALS 1
4571 cat >> confdefs.h <<\EOF
4572 #define RELIABLE_SIGNALS 1
4575 elif test $ac_cv_func_sighold = yes -a $ac_cv_func_sigrelse = yes; then
4576 signals_style=SYSV_SIGNALS
4577 cat >> confdefs.h <<\EOF
4578 #define SYSV_SIGNALS 1
4582 signals_style=NO_SIGNAL_BLOCKING
4583 cat >> confdefs.h <<\EOF
4584 #define NO_SIGNAL_BLOCKING 1
4589 echo "$ac_t""$signals_style" 1>&6
4591 echo $ac_n "checking where signal.h is located""... $ac_c" 1>&6
4592 echo "configure:4593: checking where signal.h is located" >&5
4593 if eval "test \"`echo '$''{'nmh_cv_path_signal_h'+set}'`\" = set"; then
4594 echo $ac_n "(cached) $ac_c" 1>&6
4596 for SIGNAL_H in /usr/include/bsd/sys/signal.h /usr/include/asm/signal.h /usr/include/asm/signum.h /usr/include/linux/signal.h /usr/include/sys/signal.h /dev/null; do
4597 test -f $SIGNAL_H && \
4598 grep '#[ ]*define[ ][ ]*SIG[0-9A-Z]*[ ]*[0-9][0-9]*' $SIGNAL_H > /dev/null && \
4601 nmh_cv_path_signal_h=$SIGNAL_H
4605 echo "$ac_t""$nmh_cv_path_signal_h" 1>&6
4606 SIGNAL_H=$nmh_cv_path_signal_h
4608 case "$target_os" in
4611 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
4657 cat >> confdefs.h <<\EOF
4661 cat >> confdefs.h <<\EOF
4667 cat >> confdefs.h <<\EOF
4671 cat >> confdefs.h <<\EOF
4677 cat >> confdefs.h <<\EOF
4681 cat >> confdefs.h <<\EOF
4687 cat >> confdefs.h <<\EOF
4691 cat >> confdefs.h <<\EOF
4697 cat >> confdefs.h <<\EOF
4701 cat >> confdefs.h <<\EOF
4702 #define SCO_5_STDIO 1
4710 cat > confcache <<\EOF
4711 # This file is a shell script that caches the results of configure
4712 # tests run on this system so they can be shared between configure
4713 # scripts and configure runs. It is not useful on other systems.
4714 # If it contains results you don't want to keep, you may remove or edit it.
4716 # By default, configure uses ./config.cache as the cache file,
4717 # creating it if it does not exist already. You can give configure
4718 # the --cache-file=FILE option to use a different cache file; that is
4719 # what configure does when it calls configure scripts in
4720 # subdirectories, so they share the cache.
4721 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4722 # config.status only pays attention to the cache file if you give it the
4723 # --recheck option to rerun configure.
4726 # The following way of writing the cache mishandles newlines in values,
4727 # but we know of no workaround that is simple, portable, and efficient.
4728 # So, don't put newlines in cache variables' values.
4729 # Ultrix sh set writes to stderr and can't be redirected directly,
4730 # and sets the high bit in the cache file unless we assign to the vars.
4732 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4734 # `set' does not quote correctly, so add quotes (double-quote substitution
4735 # turns \\\\ into \\, and sed turns \\ into \).
4737 -e "s/'/'\\\\''/g" \
4738 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4741 # `set' quotes correctly as required by POSIX, so do not add quotes.
4742 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4745 if cmp -s $cache_file confcache; then
4748 if test -w $cache_file; then
4749 echo "updating cache $cache_file"
4750 cat confcache > $cache_file
4752 echo "not updating unwritable cache $cache_file"
4757 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4759 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4760 # Let make expand exec_prefix.
4761 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4763 # Any assignment to VPATH causes Sun make to only execute
4764 # the first set of double-colon rules, so remove it if not needed.
4765 # If there is a colon in the path, we need to keep it.
4766 if test "x$srcdir" = x.; then
4767 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4770 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4772 DEFS=-DHAVE_CONFIG_H
4774 # Without the "./", some shells look in PATH for config.status.
4775 : ${CONFIG_STATUS=./config.status}
4777 echo creating $CONFIG_STATUS
4778 rm -f $CONFIG_STATUS
4779 cat > $CONFIG_STATUS <<EOF
4781 # Generated automatically by configure.
4782 # Run this file to recreate the current configuration.
4783 # This directory was configured as follows,
4784 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4786 # $0 $ac_configure_args
4788 # Compiler output produced by configure, useful for debugging
4789 # configure, is in ./config.log if it exists.
4791 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4794 case "\$ac_option" in
4795 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4796 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4797 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4798 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4799 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4801 -help | --help | --hel | --he | --h)
4802 echo "\$ac_cs_usage"; exit 0 ;;
4803 *) echo "\$ac_cs_usage"; exit 1 ;;
4807 ac_given_srcdir=$srcdir
4808 ac_given_INSTALL="$INSTALL"
4810 trap 'rm -fr `echo "Makefile config/Makefile h/Makefile sbr/Makefile uip/Makefile \
4811 mts/Makefile mts/smtp/Makefile \
4812 etc/Makefile docs/Makefile man/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4814 cat >> $CONFIG_STATUS <<EOF
4816 # Protect against being on the right side of a sed subst in config.status.
4817 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4818 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4822 s%@CFLAGS@%$CFLAGS%g
4823 s%@CPPFLAGS@%$CPPFLAGS%g
4824 s%@CXXFLAGS@%$CXXFLAGS%g
4825 s%@FFLAGS@%$FFLAGS%g
4827 s%@LDFLAGS@%$LDFLAGS%g
4829 s%@exec_prefix@%$exec_prefix%g
4830 s%@prefix@%$prefix%g
4831 s%@program_transform_name@%$program_transform_name%g
4832 s%@bindir@%$bindir%g
4833 s%@sbindir@%$sbindir%g
4834 s%@libexecdir@%$libexecdir%g
4835 s%@datadir@%$datadir%g
4836 s%@sysconfdir@%$sysconfdir%g
4837 s%@sharedstatedir@%$sharedstatedir%g
4838 s%@localstatedir@%$localstatedir%g
4839 s%@libdir@%$libdir%g
4840 s%@includedir@%$includedir%g
4841 s%@oldincludedir@%$oldincludedir%g
4842 s%@infodir@%$infodir%g
4843 s%@mandir@%$mandir%g
4845 s%@host_alias@%$host_alias%g
4846 s%@host_cpu@%$host_cpu%g
4847 s%@host_vendor@%$host_vendor%g
4848 s%@host_os@%$host_os%g
4849 s%@target@%$target%g
4850 s%@target_alias@%$target_alias%g
4851 s%@target_cpu@%$target_cpu%g
4852 s%@target_vendor@%$target_vendor%g
4853 s%@target_os@%$target_os%g
4855 s%@build_alias@%$build_alias%g
4856 s%@build_cpu@%$build_cpu%g
4857 s%@build_vendor@%$build_vendor%g
4858 s%@build_os@%$build_os%g
4859 s%@VERSION@%$VERSION%g
4860 s%@APOPLIB@%$APOPLIB%g
4861 s%@masquerade@%$masquerade%g
4862 s%@POPLIB@%$POPLIB%g
4863 s%@POPSED@%$POPSED%g
4865 s%@smtpservers@%$smtpservers%g
4867 s%@SET_MAKE@%$SET_MAKE%g
4868 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4869 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4870 s%@INSTALL_DATA@%$INSTALL_DATA%g
4871 s%@RANLIB@%$RANLIB%g
4874 s%@LEXLIB@%$LEXLIB%g
4875 s%@cutpath@%$cutpath%g
4876 s%@linttmp1@%$linttmp1%g
4877 s%@linttmp2@%$linttmp2%g
4879 s%@LINTFLAGS@%$LINTFLAGS%g
4880 s%@LIBTOOL@%$LIBTOOL%g
4881 s%@GNU_LIBTOOL@%$GNU_LIBTOOL%g
4882 s%@LORDER@%$LORDER%g
4884 s%@lspath@%$lspath%g
4885 s%@morepath@%$morepath%g
4886 s%@pagerpath@%$pagerpath%g
4887 s%@sendmailpath@%$sendmailpath%g
4888 s%@vipath@%$vipath%g
4889 s%@editorpath@%$editorpath%g
4890 s%@mailspool@%$mailspool%g
4892 s%@dotlockfilepath@%$dotlockfilepath%g
4893 s%@SETGID_MAIL@%$SETGID_MAIL%g
4894 s%@MAIL_SPOOL_GRP@%$MAIL_SPOOL_GRP%g
4895 s%@LIBOBJS@%$LIBOBJS%g
4896 s%@TERMLIB@%$TERMLIB%g
4897 s%@HESIOD_INCLUDES@%$HESIOD_INCLUDES%g
4898 s%@HESIOD_LIBS@%$HESIOD_LIBS%g
4899 s%@KRB4_INCLUDES@%$KRB4_INCLUDES%g
4900 s%@KRB4_LIBS@%$KRB4_LIBS%g
4901 s%@SASL_INCLUDES@%$SASL_INCLUDES%g
4902 s%@SASL_LIBS@%$SASL_LIBS%g
4903 s%@SIGNAL_H@%$SIGNAL_H%g
4908 cat >> $CONFIG_STATUS <<\EOF
4910 # Split the substitutions into bite-sized pieces for seds with
4911 # small command number limits, like on Digital OSF/1 and HP-UX.
4912 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4913 ac_file=1 # Number of current file.
4914 ac_beg=1 # First line for current file.
4915 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4918 while $ac_more_lines; do
4919 if test $ac_beg -gt 1; then
4920 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4922 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4924 if test ! -s conftest.s$ac_file; then
4926 rm -f conftest.s$ac_file
4928 if test -z "$ac_sed_cmds"; then
4929 ac_sed_cmds="sed -f conftest.s$ac_file"
4931 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4933 ac_file=`expr $ac_file + 1`
4935 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4938 if test -z "$ac_sed_cmds"; then
4943 cat >> $CONFIG_STATUS <<EOF
4945 CONFIG_FILES=\${CONFIG_FILES-"Makefile config/Makefile h/Makefile sbr/Makefile uip/Makefile \
4946 mts/Makefile mts/smtp/Makefile \
4947 etc/Makefile docs/Makefile man/Makefile"}
4949 cat >> $CONFIG_STATUS <<\EOF
4950 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4951 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4953 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4954 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4955 *) ac_file_in="${ac_file}.in" ;;
4958 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4960 # Remove last slash and all that follows it. Not all systems have dirname.
4961 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4962 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4963 # The file is in a subdirectory.
4964 test ! -d "$ac_dir" && mkdir "$ac_dir"
4965 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4966 # A "../" for each directory in $ac_dir_suffix.
4967 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4969 ac_dir_suffix= ac_dots=
4972 case "$ac_given_srcdir" in
4974 if test -z "$ac_dots"; then top_srcdir=.
4975 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4976 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4978 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4979 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4982 case "$ac_given_INSTALL" in
4983 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4984 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4987 echo creating "$ac_file"
4989 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4991 *Makefile*) ac_comsub="1i\\
4992 # $configure_input" ;;
4996 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4998 s%@configure_input@%$configure_input%g
4999 s%@srcdir@%$srcdir%g
5000 s%@top_srcdir@%$top_srcdir%g
5001 s%@INSTALL@%$INSTALL%g
5002 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5006 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5007 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5009 # ac_d sets the value in "#define NAME VALUE" lines.
5010 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5011 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5014 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5015 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5016 ac_uB='\([ ]\)%\1#\2define\3'
5019 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5020 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5021 ac_eB='$%\1#\2define\3'
5025 if test "${CONFIG_HEADERS+set}" != set; then
5027 cat >> $CONFIG_STATUS <<EOF
5028 CONFIG_HEADERS="config.h"
5030 cat >> $CONFIG_STATUS <<\EOF
5032 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5033 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5035 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5036 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5037 *) ac_file_in="${ac_file}.in" ;;
5040 echo creating $ac_file
5042 rm -f conftest.frag conftest.in conftest.out
5043 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5044 cat $ac_file_inputs > conftest.in
5048 # Transform confdefs.h into a sed script conftest.vals that substitutes
5049 # the proper values into config.h.in to produce config.h. And first:
5050 # Protect against being on the right side of a sed subst in config.status.
5051 # Protect against being in an unquoted here document in config.status.
5053 cat > conftest.hdr <<\EOF
5056 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5060 sed -n -f conftest.hdr confdefs.h > conftest.vals
5063 # This sed command replaces #undef with comments. This is necessary, for
5064 # example, in the case of _POSIX_SOURCE, which is predefined and required
5065 # on some systems where configure will not decide to define it.
5066 cat >> conftest.vals <<\EOF
5067 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5070 # Break up conftest.vals because some shells have a limit on
5071 # the size of here documents, and old seds have small limits too.
5076 ac_lines=`grep -c . conftest.vals`
5077 # grep -c gives empty output for an empty file on some AIX systems.
5078 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5079 # Write a limited-size here document to conftest.frag.
5080 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5081 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5083 sed -f conftest.frag conftest.in > conftest.out
5085 mv conftest.out conftest.in
5087 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5089 mv conftest.tail conftest.vals
5093 cat >> $CONFIG_STATUS <<\EOF
5094 rm -f conftest.frag conftest.h
5095 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5096 cat conftest.in >> conftest.h
5098 if cmp -s $ac_file conftest.h 2>/dev/null; then
5099 echo "$ac_file is unchanged"
5102 # Remove last slash and all that follows it. Not all systems have dirname.
5103 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5104 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5105 # The file is in a subdirectory.
5106 test ! -d "$ac_dir" && mkdir "$ac_dir"
5109 mv conftest.h $ac_file
5114 cat >> $CONFIG_STATUS <<EOF
5117 cat >> $CONFIG_STATUS <<\EOF
5119 test -z "$CONFIG_HEADERS" || echo > stamp-h
5122 chmod +x $CONFIG_STATUS
5123 rm -fr confdefs* $ac_clean_files
5124 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5127 eval "nmhbin=${bindir}"; eval "nmhbin2=${nmhbin}"
5128 eval "nmhsysconf=${sysconfdir}"; eval "nmhsysconf2=${nmhsysconf}"
5129 eval "nmhlib=${libdir}"; eval "nmhlib2=${nmhlib}"
5130 eval "nmhman=${mandir}"
5133 if test x"$enable_pop" = x"yes"; then
5136 if test x"$enable_apop" = x"yes"; then
5137 pop_kinds="${pop_kinds}APOP "
5140 if test x"$with_krb4" != x -a x"$with_krb4" != x"no"; then
5141 pop_kinds="${pop_kinds}KPOP "
5144 pop_kinds="${pop_kinds}POP3)"
5150 nmh version : ${VERSION}
5151 target os : ${target}
5153 compiler flags : ${CFLAGS}
5154 linker flags : ${LDFLAGS}
5155 source code location : ${srcdir}
5156 binary install path : ${nmhbin2}
5157 libary install path : ${nmhlib2}
5158 config files install path : ${nmhsysconf2}
5159 man page install path : ${nmhman}
5160 backup prefix : ${backup_prefix}
5161 transport system : ${MTS}
5162 file locking type : ${LOCKTYPE}
5163 default smtp servers : ${smtpservers}
5164 default editor : ${editorpath}
5165 default pager : ${pagerpath}
5166 email address masquerading : ${masquerade}
5167 pop is enabled : ${pop_kinds}"