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 --with-hash-backup use # as the backup prefix (default: ,)"
21 --enable-masquerade[='draft_from mmailid username_extension']
22 enable up to 3 types of address masquerading [none]"
24 --enable-mhe enable mhe support (DEFAULT)"
26 --enable-pop enable client-side support for plain POP3"
28 --with-hesiod=PREFIX specify location of Hesiod"
30 --with-krb4=PREFIX specify location of Kerberos V4 for KPOP support"
32 --with-editor=EDITOR specify the default editor"
34 --with-cyrus-sasl=<dir> Specify location of Cyrus SASL library for auth"
36 --with-mts=MTS specify the default mail transport agent/service"
38 --with-pager=PAGER specify the default pager"
40 --with-smtpservers='SMTPSERVER1[ SMTPSERVER2...]'
41 specify the default SMTP server(s) [localhost]"
42 ac_default_prefix=/usr/local/nmh
44 # Initialize some variables set by options.
45 # The variables have the same names as the options, with
46 # dashes changed to underlines.
48 cache_file=./config.cache
57 program_transform_name=s,x,x,
65 bindir='${exec_prefix}/bin'
66 sbindir='${exec_prefix}/sbin'
67 libexecdir='${exec_prefix}/libexec'
68 datadir='${prefix}/share'
69 sysconfdir='${prefix}/etc'
70 sharedstatedir='${prefix}/com'
71 localstatedir='${prefix}/var'
72 libdir='${exec_prefix}/lib'
73 includedir='${prefix}/include'
74 oldincludedir='/usr/include'
75 infodir='${prefix}/info'
76 mandir='${prefix}/man'
78 # Initialize some other variables.
81 SHELL=${CONFIG_SHELL-/bin/sh}
82 # Maximum number of lines to put in a shell here document.
89 # If the previous option needs an argument, assign it.
90 if test -n "$ac_prev"; then
91 eval "$ac_prev=\$ac_option"
97 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
101 # Accept the important Cygnus configure options, so we can diagnose typos.
105 -bindir | --bindir | --bindi | --bind | --bin | --bi)
107 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
108 bindir="$ac_optarg" ;;
110 -build | --build | --buil | --bui | --bu)
112 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
113 build="$ac_optarg" ;;
115 -cache-file | --cache-file | --cache-fil | --cache-fi \
116 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
117 ac_prev=cache_file ;;
118 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
119 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
120 cache_file="$ac_optarg" ;;
122 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
124 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
126 datadir="$ac_optarg" ;;
128 -disable-* | --disable-*)
129 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
130 # Reject names that are not valid shell variable names.
131 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
132 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
134 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
135 eval "enable_${ac_feature}=no" ;;
137 -enable-* | --enable-*)
138 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
139 # Reject names that are not valid shell variable names.
140 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
141 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
143 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
148 eval "enable_${ac_feature}='$ac_optarg'" ;;
150 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
151 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
152 | --exec | --exe | --ex)
153 ac_prev=exec_prefix ;;
154 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
155 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
156 | --exec=* | --exe=* | --ex=*)
157 exec_prefix="$ac_optarg" ;;
159 -gas | --gas | --ga | --g)
160 # Obsolete; use --with-gas.
163 -help | --help | --hel | --he)
164 # Omit some internal or obsolete options to make the list less imposing.
165 # This message is too long to be a string in the A/UX 3.1 sh.
167 Usage: configure [options] [host]
168 Options: [defaults in brackets after descriptions]
170 --cache-file=FILE cache test results in FILE
171 --help print this message
172 --no-create do not create output files
173 --quiet, --silent do not print \`checking...' messages
174 --version print the version of autoconf that created configure
175 Directory and file names:
176 --prefix=PREFIX install architecture-independent files in PREFIX
178 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
180 --bindir=DIR user executables in DIR [EPREFIX/bin]
181 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
182 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
183 --datadir=DIR read-only architecture-independent data in DIR
185 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
186 --sharedstatedir=DIR modifiable architecture-independent data in DIR
188 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
189 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
190 --includedir=DIR C header files in DIR [PREFIX/include]
191 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
192 --infodir=DIR info documentation in DIR [PREFIX/info]
193 --mandir=DIR man documentation in DIR [PREFIX/man]
194 --srcdir=DIR find the sources in DIR [configure dir or ..]
195 --program-prefix=PREFIX prepend PREFIX to installed program names
196 --program-suffix=SUFFIX append SUFFIX to installed program names
197 --program-transform-name=PROGRAM
198 run sed PROGRAM on installed program names
202 --build=BUILD configure for building on BUILD [BUILD=HOST]
203 --host=HOST configure for HOST [guessed]
204 --target=TARGET configure for TARGET [TARGET=HOST]
205 Features and packages:
206 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
207 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
208 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
209 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
210 --x-includes=DIR X include files are in DIR
211 --x-libraries=DIR X library files are in DIR
213 if test -n "$ac_help"; then
214 echo "--enable and --with options recognized:$ac_help"
218 -host | --host | --hos | --ho)
220 -host=* | --host=* | --hos=* | --ho=*)
223 -includedir | --includedir | --includedi | --included | --include \
224 | --includ | --inclu | --incl | --inc)
225 ac_prev=includedir ;;
226 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
227 | --includ=* | --inclu=* | --incl=* | --inc=*)
228 includedir="$ac_optarg" ;;
230 -infodir | --infodir | --infodi | --infod | --info | --inf)
232 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
233 infodir="$ac_optarg" ;;
235 -libdir | --libdir | --libdi | --libd)
237 -libdir=* | --libdir=* | --libdi=* | --libd=*)
238 libdir="$ac_optarg" ;;
240 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
241 | --libexe | --libex | --libe)
242 ac_prev=libexecdir ;;
243 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
244 | --libexe=* | --libex=* | --libe=*)
245 libexecdir="$ac_optarg" ;;
247 -localstatedir | --localstatedir | --localstatedi | --localstated \
248 | --localstate | --localstat | --localsta | --localst \
249 | --locals | --local | --loca | --loc | --lo)
250 ac_prev=localstatedir ;;
251 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
252 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
253 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
254 localstatedir="$ac_optarg" ;;
256 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
258 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
259 mandir="$ac_optarg" ;;
262 # Obsolete; use --without-fp.
265 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
269 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
270 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
273 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
274 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
275 | --oldin | --oldi | --old | --ol | --o)
276 ac_prev=oldincludedir ;;
277 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
278 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
279 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
280 oldincludedir="$ac_optarg" ;;
282 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
284 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
285 prefix="$ac_optarg" ;;
287 -program-prefix | --program-prefix | --program-prefi | --program-pref \
288 | --program-pre | --program-pr | --program-p)
289 ac_prev=program_prefix ;;
290 -program-prefix=* | --program-prefix=* | --program-prefi=* \
291 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
292 program_prefix="$ac_optarg" ;;
294 -program-suffix | --program-suffix | --program-suffi | --program-suff \
295 | --program-suf | --program-su | --program-s)
296 ac_prev=program_suffix ;;
297 -program-suffix=* | --program-suffix=* | --program-suffi=* \
298 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
299 program_suffix="$ac_optarg" ;;
301 -program-transform-name | --program-transform-name \
302 | --program-transform-nam | --program-transform-na \
303 | --program-transform-n | --program-transform- \
304 | --program-transform | --program-transfor \
305 | --program-transfo | --program-transf \
306 | --program-trans | --program-tran \
307 | --progr-tra | --program-tr | --program-t)
308 ac_prev=program_transform_name ;;
309 -program-transform-name=* | --program-transform-name=* \
310 | --program-transform-nam=* | --program-transform-na=* \
311 | --program-transform-n=* | --program-transform-=* \
312 | --program-transform=* | --program-transfor=* \
313 | --program-transfo=* | --program-transf=* \
314 | --program-trans=* | --program-tran=* \
315 | --progr-tra=* | --program-tr=* | --program-t=*)
316 program_transform_name="$ac_optarg" ;;
318 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
319 | -silent | --silent | --silen | --sile | --sil)
322 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
324 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
326 sbindir="$ac_optarg" ;;
328 -sharedstatedir | --sharedstatedir | --sharedstatedi \
329 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
330 | --sharedst | --shareds | --shared | --share | --shar \
332 ac_prev=sharedstatedir ;;
333 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
334 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
335 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
337 sharedstatedir="$ac_optarg" ;;
339 -site | --site | --sit)
341 -site=* | --site=* | --sit=*)
344 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
346 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
347 srcdir="$ac_optarg" ;;
349 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
350 | --syscon | --sysco | --sysc | --sys | --sy)
351 ac_prev=sysconfdir ;;
352 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
353 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
354 sysconfdir="$ac_optarg" ;;
356 -target | --target | --targe | --targ | --tar | --ta | --t)
358 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
359 target="$ac_optarg" ;;
361 -v | -verbose | --verbose | --verbos | --verbo | --verb)
364 -version | --version | --versio | --versi | --vers)
365 echo "configure generated by autoconf version 2.13"
369 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
370 # Reject names that are not valid shell variable names.
371 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
372 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
374 ac_package=`echo $ac_package| sed 's/-/_/g'`
379 eval "with_${ac_package}='$ac_optarg'" ;;
381 -without-* | --without-*)
382 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
383 # Reject names that are not valid shell variable names.
384 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
385 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
387 ac_package=`echo $ac_package| sed 's/-/_/g'`
388 eval "with_${ac_package}=no" ;;
391 # Obsolete; use --with-x.
394 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
395 | --x-incl | --x-inc | --x-in | --x-i)
396 ac_prev=x_includes ;;
397 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
398 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
399 x_includes="$ac_optarg" ;;
401 -x-libraries | --x-libraries | --x-librarie | --x-librari \
402 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
403 ac_prev=x_libraries ;;
404 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
405 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
406 x_libraries="$ac_optarg" ;;
408 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
412 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
413 echo "configure: warning: $ac_option: invalid host type" 1>&2
415 if test "x$nonopt" != xNONE; then
416 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
424 if test -n "$ac_prev"; then
425 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
428 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
430 # File descriptor usage:
433 # 2 errors and warnings
434 # 3 some systems may open it to /dev/tty
435 # 4 used on the Kubota Titan
436 # 6 checking for... messages and results
437 # 5 compiler messages saved in config.log
438 if test "$silent" = yes; then
446 This file contains any messages produced by compilers while
447 running configure, to aid debugging if configure makes a mistake.
450 # Strip out --no-create and --no-recursion so they do not pile up.
451 # Also quote any args containing shell metacharacters.
456 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
457 | --no-cr | --no-c) ;;
458 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
459 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
460 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
461 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
462 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
467 # Only set these to C if already set. These must not be set unconditionally
468 # because not all systems understand e.g. LANG=C (notably SCO).
469 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
470 # Non-C LC_CTYPE values break the ctype check.
471 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
472 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
473 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
474 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
476 # confdefs.h avoids OS command line length limits that DEFS can exceed.
477 rm -rf conftest* confdefs.h
478 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
481 # A filename unique to this package, relative to the directory that
482 # configure is in, which we can look for to find out if srcdir is correct.
483 ac_unique_file=h/nmh.h
485 # Find the source files, if location was not specified.
486 if test -z "$srcdir"; then
487 ac_srcdir_defaulted=yes
488 # Try the directory containing this script, then its parent.
490 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
491 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
493 if test ! -r $srcdir/$ac_unique_file; then
497 ac_srcdir_defaulted=no
499 if test ! -r $srcdir/$ac_unique_file; then
500 if test "$ac_srcdir_defaulted" = yes; then
501 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
503 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
506 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
508 # Prefer explicitly selected file to automatically selected ones.
509 if test -z "$CONFIG_SITE"; then
510 if test "x$prefix" != xNONE; then
511 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
513 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
516 for ac_site_file in $CONFIG_SITE; do
517 if test -r "$ac_site_file"; then
518 echo "loading site script $ac_site_file"
523 if test -r "$cache_file"; then
524 echo "loading cache $cache_file"
527 echo "creating cache $cache_file"
532 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
533 ac_cpp='$CPP $CPPFLAGS'
534 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
535 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
536 cross_compiling=$ac_cv_prog_cc_cross
540 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
541 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
542 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
549 ac_n= ac_c='\c' ac_t=
556 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
557 if test -f $ac_dir/install-sh; then
559 ac_install_sh="$ac_aux_dir/install-sh -c"
561 elif test -f $ac_dir/install.sh; then
563 ac_install_sh="$ac_aux_dir/install.sh -c"
567 if test -z "$ac_aux_dir"; then
568 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
570 ac_config_guess=$ac_aux_dir/config.guess
571 ac_config_sub=$ac_aux_dir/config.sub
572 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
575 # Do some error checking and defaulting for the host and target type.
577 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
580 # 1. You are not allowed to specify --host, --target, and nonopt at the
582 # 2. Host defaults to nonopt.
583 # 3. If nonopt is not specified, then host defaults to the current host,
584 # as determined by config.guess.
585 # 4. Target and build default to nonopt.
586 # 5. If nonopt is not specified, then target and build default to host.
588 # The aliases save the names the user supplied, while $host etc.
589 # will get canonicalized.
590 case $host---$target---$nonopt in
591 NONE---*---* | *---NONE---* | *---*---NONE) ;;
592 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
596 # Make sure we can run config.sub.
597 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
598 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
601 echo $ac_n "checking host system type""... $ac_c" 1>&6
602 echo "configure:603: checking host system type" >&5
605 case "$host_alias" in
609 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
610 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
612 *) host_alias=$nonopt ;;
616 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
617 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
618 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
619 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
620 echo "$ac_t""$host" 1>&6
622 echo $ac_n "checking target system type""... $ac_c" 1>&6
623 echo "configure:624: checking target system type" >&5
626 case "$target_alias" in
629 NONE) target_alias=$host_alias ;;
630 *) target_alias=$nonopt ;;
634 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
635 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
636 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
637 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
638 echo "$ac_t""$target" 1>&6
640 echo $ac_n "checking build system type""... $ac_c" 1>&6
641 echo "configure:642: checking build system type" >&5
644 case "$build_alias" in
647 NONE) build_alias=$host_alias ;;
648 *) build_alias=$nonopt ;;
652 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
653 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
654 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
655 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
656 echo "$ac_t""$build" 1>&6
658 test "$host_alias" != "$target_alias" &&
659 test "$program_prefix$program_suffix$program_transform_name" = \
661 program_prefix=${target_alias}-
668 VERSION=`sed -e 's/nmh-//' ${srcdir}/VERSION`
669 echo "configuring for nmh-$VERSION"
672 # Check whether --enable-apop or --disable-apop was given.
673 if test "${enable_apop+set}" = set; then
674 enableval="$enable_apop"
678 if test x"$enable_apop" = x"yes"; then
679 cat >> confdefs.h <<\EOF
686 # Check whether --enable-debug or --disable-debug was given.
687 if test "${enable_debug+set}" = set; then
688 enableval="$enable_debug"
692 if test x"$enable_nmh_debug" = x"yes"; then
696 # Check whether --with-hash-backup or --without-hash-backup was given.
697 if test "${with_hash_backup+set}" = set; then
698 withval="$with_hash_backup"
702 if test x"$with_hash_backup" != x -a x"$with_hash_backup" != x"no"; then
707 cat >> confdefs.h <<EOF
708 #define BACKUP_PREFIX "$backup_prefix"
711 # Check whether --enable-masquerade or --disable-masquerade was given.
712 if test "${enable_masquerade+set}" = set; then
713 enableval="$enable_masquerade"
714 if test x"$enable_masquerade" = x"yes"; then
715 masquerade="draft_from mmailid username_extension"
717 masquerade="$enable_masquerade"
722 # Check whether --enable-mhe or --disable-mhe was given.
723 if test "${enable_mhe+set}" = set; then
724 enableval="$enable_mhe"
729 if test x"$enable_mhe" != x"no" -a x"$enable_nmh_mhe" != x"no"; then
730 cat >> confdefs.h <<\EOF
735 # Check whether --enable-pop or --disable-pop was given.
736 if test "${enable_pop+set}" = set; then
737 enableval="$enable_pop"
741 if test x"$enable_nmh_pop" = x"yes"; then
745 # Check whether --with-hesiod or --without-hesiod was given.
746 if test "${with_hesiod+set}" = set; then
747 withval="$with_hesiod"
751 if test x"$with_hesiod" != x -a x"$with_hesiod" != x"no"; then
752 cat >> confdefs.h <<\EOF
757 # Check whether --with-krb4 or --without-krb4 was given.
758 if test "${with_krb4+set}" = set; then
763 if test x"$with_krb4" != x -a x"$with_krb4" != x"no"; then
765 cat >> confdefs.h <<\EOF
768 cat >> confdefs.h <<\EOF
769 #define KPOP_PRINCIPAL "pop"
773 if test x"$enable_pop" = x"yes"; then
774 cat >> confdefs.h <<\EOF
778 POPSED='/^%nmhbeginpop%/d;/^%nmhendpop%/d'
780 POPSED='/^%nmhbeginpop%/,/^%nmhendpop%/d'
783 # Check whether --with-editor or --without-editor was given.
784 if test "${with_editor+set}" = set; then
785 withval="$with_editor"
790 if test -n "$with_editor"; then
791 editorpath="$with_editor"
794 # Check whether --with-cyrus-sasl or --without-cyrus-sasl was given.
795 if test "${with_cyrus_sasl+set}" = set; then
796 withval="$with_cyrus_sasl"
800 if test x"$with_cyrus_sasl" != x -a x"$with_cyrus_sasl" != "no"; then
801 cat >> confdefs.h <<\EOF
806 # Check whether --with-mts or --without-mts was given.
807 if test "${with_mts+set}" = set; then
813 if test x"$with_mts" = x"smtp"; then
815 elif test x"$with_mts" = x"sendmail"; then
821 cat >> confdefs.h <<\EOF
825 # Check whether --with-pager or --without-pager was given.
826 if test "${with_pager+set}" = set; then
827 withval="$with_pager"
832 if test -n "$with_pager"; then
833 pagerpath="$with_pager"
836 # Check whether --with-smtpservers or --without-smtpservers was given.
837 if test "${with_smtpservers+set}" = set; then
838 withval="$with_smtpservers"
842 if test -n "$with_smtpservers"; then
843 smtpservers="$with_smtpservers"
845 smtpservers="localhost"
850 test -z "$CFLAGS" && CFLAGS= auto_cflags=1
851 if test x"$enable_debug" = x"yes"; then
852 test -z "$LDFLAGS" && LDFLAGS=-g
855 # Extract the first word of "gcc", so it can be a program name with args.
856 set dummy gcc; ac_word=$2
857 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
858 echo "configure:859: checking for $ac_word" >&5
859 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
860 echo $ac_n "(cached) $ac_c" 1>&6
862 if test -n "$CC"; then
863 ac_cv_prog_CC="$CC" # Let the user override the test.
865 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
867 for ac_dir in $ac_dummy; do
868 test -z "$ac_dir" && ac_dir=.
869 if test -f $ac_dir/$ac_word; then
878 if test -n "$CC"; then
879 echo "$ac_t""$CC" 1>&6
881 echo "$ac_t""no" 1>&6
884 if test -z "$CC"; then
885 # Extract the first word of "cc", so it can be a program name with args.
886 set dummy cc; ac_word=$2
887 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
888 echo "configure:889: checking for $ac_word" >&5
889 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
890 echo $ac_n "(cached) $ac_c" 1>&6
892 if test -n "$CC"; then
893 ac_cv_prog_CC="$CC" # Let the user override the test.
895 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
898 for ac_dir in $ac_dummy; do
899 test -z "$ac_dir" && ac_dir=.
900 if test -f $ac_dir/$ac_word; then
901 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
910 if test $ac_prog_rejected = yes; then
911 # We found a bogon in the path, so make sure we never use it.
912 set dummy $ac_cv_prog_CC
914 if test $# -gt 0; then
915 # We chose a different compiler from the bogus one.
916 # However, it has the same basename, so the bogon will be chosen
917 # first if we set CC to just the basename; use the full file name.
919 set dummy "$ac_dir/$ac_word" "$@"
927 if test -n "$CC"; then
928 echo "$ac_t""$CC" 1>&6
930 echo "$ac_t""no" 1>&6
933 if test -z "$CC"; then
936 # Extract the first word of "cl", so it can be a program name with args.
937 set dummy cl; ac_word=$2
938 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
939 echo "configure:940: checking for $ac_word" >&5
940 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
941 echo $ac_n "(cached) $ac_c" 1>&6
943 if test -n "$CC"; then
944 ac_cv_prog_CC="$CC" # Let the user override the test.
946 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
948 for ac_dir in $ac_dummy; do
949 test -z "$ac_dir" && ac_dir=.
950 if test -f $ac_dir/$ac_word; then
959 if test -n "$CC"; then
960 echo "$ac_t""$CC" 1>&6
962 echo "$ac_t""no" 1>&6
967 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
970 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
971 echo "configure:972: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
974 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
975 ac_cpp='$CPP $CPPFLAGS'
976 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
977 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
978 cross_compiling=$ac_cv_prog_cc_cross
980 cat > conftest.$ac_ext << EOF
982 #line 983 "configure"
983 #include "confdefs.h"
987 if { (eval echo configure:988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
988 ac_cv_prog_cc_works=yes
989 # If we can't run a trivial program, we are probably using a cross compiler.
990 if (./conftest; exit) 2>/dev/null; then
991 ac_cv_prog_cc_cross=no
993 ac_cv_prog_cc_cross=yes
996 echo "configure: failed program was:" >&5
997 cat conftest.$ac_ext >&5
998 ac_cv_prog_cc_works=no
1002 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1003 ac_cpp='$CPP $CPPFLAGS'
1004 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1005 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1006 cross_compiling=$ac_cv_prog_cc_cross
1008 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1009 if test $ac_cv_prog_cc_works = no; then
1010 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1012 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1013 echo "configure:1014: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1014 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1015 cross_compiling=$ac_cv_prog_cc_cross
1017 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1018 echo "configure:1019: checking whether we are using GNU C" >&5
1019 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1020 echo $ac_n "(cached) $ac_c" 1>&6
1022 cat > conftest.c <<EOF
1027 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1034 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1036 if test $ac_cv_prog_gcc = yes; then
1042 ac_test_CFLAGS="${CFLAGS+set}"
1043 ac_save_CFLAGS="$CFLAGS"
1045 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1046 echo "configure:1047: checking whether ${CC-cc} accepts -g" >&5
1047 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1048 echo $ac_n "(cached) $ac_c" 1>&6
1050 echo 'void f(){}' > conftest.c
1051 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1060 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1061 if test "$ac_test_CFLAGS" = set; then
1062 CFLAGS="$ac_save_CFLAGS"
1063 elif test $ac_cv_prog_cc_g = yes; then
1064 if test "$GCC" = yes; then
1070 if test "$GCC" = yes; then
1078 if test -n "$auto_cflags"; then
1079 if test x"$enable_debug" = x"yes"; then
1080 if test -n "$GCC"; then
1081 test -z "$CFLAGS" && CFLAGS="-Wall -g" || CFLAGS="$CFLAGS -Wall -g"
1083 test -z "$CFLAGS" && CFLAGS=-g || CFLAGS="$CFLAGS -g"
1086 test -z "$LDFLAGS" && LDFLAGS=-s
1087 if test -n "$GCC"; then
1088 test -z "$CFLAGS" && CFLAGS="-Wall -O2" || CFLAGS="$CFLAGS -Wall -O2"
1090 test -z "$CFLAGS" && CFLAGS=-O || CFLAGS="$CFLAGS -O"
1095 echo $ac_n "checking for working const""... $ac_c" 1>&6
1096 echo "configure:1097: checking for working const" >&5
1097 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1098 echo $ac_n "(cached) $ac_c" 1>&6
1100 cat > conftest.$ac_ext <<EOF
1101 #line 1102 "configure"
1102 #include "confdefs.h"
1106 /* Ultrix mips cc rejects this. */
1107 typedef int charset[2]; const charset x;
1108 /* SunOS 4.1.1 cc rejects this. */
1109 char const *const *ccp;
1111 /* NEC SVR4.0.2 mips cc rejects this. */
1112 struct point {int x, y;};
1113 static struct point const zero = {0,0};
1114 /* AIX XL C 1.02.0.0 rejects this.
1115 It does not let you subtract one const X* pointer from another in an arm
1116 of an if-expression whose if-part is not a constant expression */
1117 const char *g = "string";
1118 ccp = &g + (g ? g-g : 0);
1119 /* HPUX 7.0 cc rejects these. */
1122 ccp = (char const *const *) p;
1123 { /* SCO 3.2v4 cc rejects this. */
1125 char const *s = 0 ? (char *) 0 : (char const *) 0;
1129 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1131 const int *foo = &x[0];
1134 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1135 typedef const int *iptr;
1139 { /* AIX XL C 1.02.0.0 rejects this saying
1140 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1141 struct s { int j; const int *ap[3]; };
1142 struct s *b; b->j = 5;
1144 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1150 if { (eval echo configure:1151: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1154 echo "configure: failed program was:" >&5
1155 cat conftest.$ac_ext >&5
1162 echo "$ac_t""$ac_cv_c_const" 1>&6
1163 if test $ac_cv_c_const = no; then
1164 cat >> confdefs.h <<\EOF
1170 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1171 echo "configure:1172: checking whether ${MAKE-make} sets \${MAKE}" >&5
1172 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1173 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1174 echo $ac_n "(cached) $ac_c" 1>&6
1176 cat > conftestmake <<\EOF
1178 @echo 'ac_maketemp="${MAKE}"'
1180 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1181 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1182 if test -n "$ac_maketemp"; then
1183 eval ac_cv_prog_make_${ac_make}_set=yes
1185 eval ac_cv_prog_make_${ac_make}_set=no
1189 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1190 echo "$ac_t""yes" 1>&6
1193 echo "$ac_t""no" 1>&6
1194 SET_MAKE="MAKE=${MAKE-make}"
1196 # Find a good install program. We prefer a C program (faster),
1197 # so one script is as good as another. But avoid the broken or
1198 # incompatible versions:
1199 # SysV /etc/install, /usr/sbin/install
1200 # SunOS /usr/etc/install
1201 # IRIX /sbin/install
1203 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1204 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1205 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1206 # ./install, which can be erroneously created by make from ./install.sh.
1207 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1208 echo "configure:1209: checking for a BSD compatible install" >&5
1209 if test -z "$INSTALL"; then
1210 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1211 echo $ac_n "(cached) $ac_c" 1>&6
1213 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1214 for ac_dir in $PATH; do
1215 # Account for people who put trailing slashes in PATH elements.
1217 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1219 # OSF1 and SCO ODT 3.0 have their own names for install.
1220 # Don't use installbsd from OSF since it installs stuff as root
1222 for ac_prog in ginstall scoinst install; do
1223 if test -f $ac_dir/$ac_prog; then
1224 if test $ac_prog = install &&
1225 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1226 # AIX install. It has an incompatible calling convention.
1229 ac_cv_path_install="$ac_dir/$ac_prog -c"
1240 if test "${ac_cv_path_install+set}" = set; then
1241 INSTALL="$ac_cv_path_install"
1243 # As a last resort, use the slow shell script. We don't cache a
1244 # path for INSTALL within a source directory, because that will
1245 # break other packages using the cache if that directory is
1246 # removed, or if the path is relative.
1247 INSTALL="$ac_install_sh"
1250 echo "$ac_t""$INSTALL" 1>&6
1252 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1253 # It thinks the first close brace ends the variable substitution.
1254 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1256 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1258 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1259 # Extract the first word of "ranlib", so it can be a program name with args.
1260 set dummy ranlib; ac_word=$2
1261 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1262 echo "configure:1263: checking for $ac_word" >&5
1263 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1264 echo $ac_n "(cached) $ac_c" 1>&6
1266 if test -n "$RANLIB"; then
1267 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1269 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1271 for ac_dir in $ac_dummy; do
1272 test -z "$ac_dir" && ac_dir=.
1273 if test -f $ac_dir/$ac_word; then
1274 ac_cv_prog_RANLIB="ranlib"
1279 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1282 RANLIB="$ac_cv_prog_RANLIB"
1283 if test -n "$RANLIB"; then
1284 echo "$ac_t""$RANLIB" 1>&6
1286 echo "$ac_t""no" 1>&6
1288 for ac_prog in mawk gawk nawk awk
1290 # Extract the first word of "$ac_prog", so it can be a program name with args.
1291 set dummy $ac_prog; ac_word=$2
1292 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1293 echo "configure:1294: checking for $ac_word" >&5
1294 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1295 echo $ac_n "(cached) $ac_c" 1>&6
1297 if test -n "$AWK"; then
1298 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1300 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1302 for ac_dir in $ac_dummy; do
1303 test -z "$ac_dir" && ac_dir=.
1304 if test -f $ac_dir/$ac_word; then
1305 ac_cv_prog_AWK="$ac_prog"
1312 AWK="$ac_cv_prog_AWK"
1313 if test -n "$AWK"; then
1314 echo "$ac_t""$AWK" 1>&6
1316 echo "$ac_t""no" 1>&6
1319 test -n "$AWK" && break
1321 # Extract the first word of "flex", so it can be a program name with args.
1322 set dummy flex; ac_word=$2
1323 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1324 echo "configure:1325: checking for $ac_word" >&5
1325 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1326 echo $ac_n "(cached) $ac_c" 1>&6
1328 if test -n "$LEX"; then
1329 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1331 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1333 for ac_dir in $ac_dummy; do
1334 test -z "$ac_dir" && ac_dir=.
1335 if test -f $ac_dir/$ac_word; then
1336 ac_cv_prog_LEX="flex"
1341 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1344 LEX="$ac_cv_prog_LEX"
1345 if test -n "$LEX"; then
1346 echo "$ac_t""$LEX" 1>&6
1348 echo "$ac_t""no" 1>&6
1351 if test -z "$LEXLIB"
1357 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1358 echo "configure:1359: checking for yywrap in -l$ac_lib" >&5
1359 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1360 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1361 echo $ac_n "(cached) $ac_c" 1>&6
1363 ac_save_LIBS="$LIBS"
1364 LIBS="-l$ac_lib $LIBS"
1365 cat > conftest.$ac_ext <<EOF
1366 #line 1367 "configure"
1367 #include "confdefs.h"
1368 /* Override any gcc2 internal prototype to avoid an error. */
1369 /* We use char because int might match the return type of a gcc2
1370 builtin and then its argument prototype would still apply. */
1377 if { (eval echo configure:1378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1379 eval "ac_cv_lib_$ac_lib_var=yes"
1381 echo "configure: failed program was:" >&5
1382 cat conftest.$ac_ext >&5
1384 eval "ac_cv_lib_$ac_lib_var=no"
1387 LIBS="$ac_save_LIBS"
1390 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1391 echo "$ac_t""yes" 1>&6
1394 echo "$ac_t""no" 1>&6
1399 pathtmp=/usr/bin:/bin:/usr/local/bin:/usr/xpg4/bin:/usr/ucb
1400 # Extract the first word of "cut", so it can be a program name with args.
1401 set dummy cut; ac_word=$2
1402 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1403 echo "configure:1404: checking for $ac_word" >&5
1404 if eval "test \"`echo '$''{'ac_cv_path_cutpath'+set}'`\" = set"; then
1405 echo $ac_n "(cached) $ac_c" 1>&6
1409 ac_cv_path_cutpath="$cutpath" # Let the user override the test with a path.
1412 ac_cv_path_cutpath="$cutpath" # Let the user override the test with a dos path.
1415 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1417 for ac_dir in $ac_dummy; do
1418 test -z "$ac_dir" && ac_dir=.
1419 if test -f $ac_dir/$ac_word; then
1420 ac_cv_path_cutpath="$ac_dir/$ac_word"
1425 test -z "$ac_cv_path_cutpath" && ac_cv_path_cutpath="no"
1429 cutpath="$ac_cv_path_cutpath"
1430 if test -n "$cutpath"; then
1431 echo "$ac_t""$cutpath" 1>&6
1433 echo "$ac_t""no" 1>&6
1437 # Extract the first word of "lclint", so it can be a program name with args.
1438 set dummy lclint; ac_word=$2
1439 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1440 echo "configure:1441: checking for $ac_word" >&5
1441 if eval "test \"`echo '$''{'ac_cv_prog_linttmp1'+set}'`\" = set"; then
1442 echo $ac_n "(cached) $ac_c" 1>&6
1444 if test -n "$linttmp1"; then
1445 ac_cv_prog_linttmp1="$linttmp1" # Let the user override the test.
1447 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1449 for ac_dir in $ac_dummy; do
1450 test -z "$ac_dir" && ac_dir=.
1451 if test -f $ac_dir/$ac_word; then
1452 ac_cv_prog_linttmp1="lclint"
1457 test -z "$ac_cv_prog_linttmp1" && ac_cv_prog_linttmp1="no"
1460 linttmp1="$ac_cv_prog_linttmp1"
1461 if test -n "$linttmp1"; then
1462 echo "$ac_t""$linttmp1" 1>&6
1464 echo "$ac_t""no" 1>&6
1466 if test x$ac_cv_prog_linttmp1 != xno ; then
1467 LINT=$ac_cv_prog_linttmp1
1468 LINTFLAGS="-weak +posixlib -macrovarprefixexclude"
1470 # Extract the first word of "lint", so it can be a program name with args.
1471 set dummy lint; ac_word=$2
1472 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1473 echo "configure:1474: checking for $ac_word" >&5
1474 if eval "test \"`echo '$''{'ac_cv_prog_linttmp2'+set}'`\" = set"; then
1475 echo $ac_n "(cached) $ac_c" 1>&6
1477 if test -n "$linttmp2"; then
1478 ac_cv_prog_linttmp2="$linttmp2" # Let the user override the test.
1480 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1482 for ac_dir in $ac_dummy; do
1483 test -z "$ac_dir" && ac_dir=.
1484 if test -f $ac_dir/$ac_word; then
1485 ac_cv_prog_linttmp2="lint"
1490 test -z "$ac_cv_prog_linttmp2" && ac_cv_prog_linttmp2="no"
1493 linttmp2="$ac_cv_prog_linttmp2"
1494 if test -n "$linttmp2"; then
1495 echo "$ac_t""$linttmp2" 1>&6
1497 echo "$ac_t""no" 1>&6
1499 if test x$ac_cv_prog_linttmp2 != xno ; then
1500 LINT=$ac_cv_prog_linttmp2
1503 LINT="echo 'No lint program found'"
1510 # Extract the first word of "libtool", so it can be a program name with args.
1511 set dummy libtool; ac_word=$2
1512 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1513 echo "configure:1514: checking for $ac_word" >&5
1514 if eval "test \"`echo '$''{'ac_cv_prog_LIBTOOL'+set}'`\" = set"; then
1515 echo $ac_n "(cached) $ac_c" 1>&6
1517 if test -n "$LIBTOOL"; then
1518 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
1520 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1522 for ac_dir in $ac_dummy; do
1523 test -z "$ac_dir" && ac_dir=.
1524 if test -f $ac_dir/$ac_word; then
1525 ac_cv_prog_LIBTOOL="libtool"
1532 LIBTOOL="$ac_cv_prog_LIBTOOL"
1533 if test -n "$LIBTOOL"; then
1534 echo "$ac_t""$LIBTOOL" 1>&6
1536 echo "$ac_t""no" 1>&6
1540 tmptest=`$LIBTOOL --version 2>&1 | grep GNU`
1541 if test x"$tmptest" != x ; then
1546 # Extract the first word of "lorder", so it can be a program name with args.
1547 set dummy lorder; ac_word=$2
1548 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1549 echo "configure:1550: checking for $ac_word" >&5
1550 if eval "test \"`echo '$''{'ac_cv_prog_LORDER'+set}'`\" = set"; then
1551 echo $ac_n "(cached) $ac_c" 1>&6
1553 if test -n "$LORDER"; then
1554 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
1556 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1558 for ac_dir in $ac_dummy; do
1559 test -z "$ac_dir" && ac_dir=.
1560 if test -f $ac_dir/$ac_word; then
1561 ac_cv_prog_LORDER="lorder"
1566 test -z "$ac_cv_prog_LORDER" && ac_cv_prog_LORDER="no"
1569 LORDER="$ac_cv_prog_LORDER"
1570 if test -n "$LORDER"; then
1571 echo "$ac_t""$LORDER" 1>&6
1573 echo "$ac_t""no" 1>&6
1575 # Extract the first word of "tsort", so it can be a program name with args.
1576 set dummy tsort; ac_word=$2
1577 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1578 echo "configure:1579: checking for $ac_word" >&5
1579 if eval "test \"`echo '$''{'ac_cv_prog_TSORT'+set}'`\" = set"; then
1580 echo $ac_n "(cached) $ac_c" 1>&6
1582 if test -n "$TSORT"; then
1583 ac_cv_prog_TSORT="$TSORT" # Let the user override the test.
1585 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1587 for ac_dir in $ac_dummy; do
1588 test -z "$ac_dir" && ac_dir=.
1589 if test -f $ac_dir/$ac_word; then
1590 ac_cv_prog_TSORT="tsort"
1595 test -z "$ac_cv_prog_TSORT" && ac_cv_prog_TSORT="no"
1598 TSORT="$ac_cv_prog_TSORT"
1599 if test -n "$TSORT"; then
1600 echo "$ac_t""$TSORT" 1>&6
1602 echo "$ac_t""no" 1>&6
1605 if test x$ac_cv_prog_LORDER != xlorder -o x$ac_cv_prog_TSORT != xtsort; then
1610 echo $ac_n "checking whether tsort can deal with loops""... $ac_c" 1>&6
1611 echo "configure:1612: checking whether tsort can deal with loops" >&5
1612 if eval "test \"`echo '$''{'nmh_cv_tsort_loop'+set}'`\" = set"; then
1613 echo $ac_n "(cached) $ac_c" 1>&6
1615 if test -z "`echo a b b a | tsort 2>/dev/null | grep a`" ; then
1616 nmh_cv_tsort_loop=no
1618 nmh_cv_tsort_loop=yes
1622 echo "$ac_t""$nmh_cv_tsort_loop" 1>&6
1623 if test x$nmh_cv_tsort_loop = xno ; then
1628 pathtmp=/usr/bin:/bin:/usr/local/bin:/usr/xpg4/bin:/usr/ucb
1629 # Extract the first word of "ls", so it can be a program name with args.
1630 set dummy ls; ac_word=$2
1631 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1632 echo "configure:1633: checking for $ac_word" >&5
1633 if eval "test \"`echo '$''{'ac_cv_path_lspath'+set}'`\" = set"; then
1634 echo $ac_n "(cached) $ac_c" 1>&6
1638 ac_cv_path_lspath="$lspath" # Let the user override the test with a path.
1641 ac_cv_path_lspath="$lspath" # Let the user override the test with a dos path.
1644 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1646 for ac_dir in $ac_dummy; do
1647 test -z "$ac_dir" && ac_dir=.
1648 if test -f $ac_dir/$ac_word; then
1649 ac_cv_path_lspath="$ac_dir/$ac_word"
1654 test -z "$ac_cv_path_lspath" && ac_cv_path_lspath="no"
1658 lspath="$ac_cv_path_lspath"
1659 if test -n "$lspath"; then
1660 echo "$ac_t""$lspath" 1>&6
1662 echo "$ac_t""no" 1>&6
1666 if test "$lspath" != "no"; then
1667 echo $ac_n "checking how to get ls to show us the group ownership of a file""... $ac_c" 1>&6
1668 echo "configure:1669: checking how to get ls to show us the group ownership of a file" >&5
1669 if eval "test \"`echo '$''{'nmh_cv_ls_grpopt'+set}'`\" = set"; then
1670 echo $ac_n "(cached) $ac_c" 1>&6
1672 if test x"`$lspath -dl / | $AWK '{print $9}'`" = x"/"; then
1673 nmh_cv_ls_grpopt="-l"
1675 nmh_cv_ls_grpopt="-lg"
1679 echo "$ac_t""$nmh_cv_ls_grpopt" 1>&6
1682 pathtmp=/usr/bin:/bin:/usr/ucb:/usr/local/bin
1683 # Extract the first word of "more", so it can be a program name with args.
1684 set dummy more; ac_word=$2
1685 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1686 echo "configure:1687: checking for $ac_word" >&5
1687 if eval "test \"`echo '$''{'ac_cv_path_morepath'+set}'`\" = set"; then
1688 echo $ac_n "(cached) $ac_c" 1>&6
1692 ac_cv_path_morepath="$morepath" # Let the user override the test with a path.
1695 ac_cv_path_morepath="$morepath" # Let the user override the test with a dos path.
1698 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1700 for ac_dir in $ac_dummy; do
1701 test -z "$ac_dir" && ac_dir=.
1702 if test -f $ac_dir/$ac_word; then
1703 ac_cv_path_morepath="$ac_dir/$ac_word"
1708 test -z "$ac_cv_path_morepath" && ac_cv_path_morepath="no"
1712 morepath="$ac_cv_path_morepath"
1713 if test -n "$morepath"; then
1714 echo "$ac_t""$morepath" 1>&6
1716 echo "$ac_t""no" 1>&6
1720 if test -z "$pagerpath"; then
1721 pagerpath="$morepath"
1724 pathtmp=/usr/lib:/usr/sbin:/usr/etc:/usr/ucblib:/usr/bin:/bin
1725 # Extract the first word of "sendmail", so it can be a program name with args.
1726 set dummy sendmail; ac_word=$2
1727 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1728 echo "configure:1729: checking for $ac_word" >&5
1729 if eval "test \"`echo '$''{'ac_cv_path_sendmailpath'+set}'`\" = set"; then
1730 echo $ac_n "(cached) $ac_c" 1>&6
1732 case "$sendmailpath" in
1734 ac_cv_path_sendmailpath="$sendmailpath" # Let the user override the test with a path.
1737 ac_cv_path_sendmailpath="$sendmailpath" # Let the user override the test with a dos path.
1740 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1742 for ac_dir in $ac_dummy; do
1743 test -z "$ac_dir" && ac_dir=.
1744 if test -f $ac_dir/$ac_word; then
1745 ac_cv_path_sendmailpath="$ac_dir/$ac_word"
1750 test -z "$ac_cv_path_sendmailpath" && ac_cv_path_sendmailpath="no"
1754 sendmailpath="$ac_cv_path_sendmailpath"
1755 if test -n "$sendmailpath"; then
1756 echo "$ac_t""$sendmailpath" 1>&6
1758 echo "$ac_t""no" 1>&6
1762 pathtmp=/usr/bin:/bin:/usr/ucb:/usr/local/bin
1763 # Extract the first word of "vi", so it can be a program name with args.
1764 set dummy vi; ac_word=$2
1765 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1766 echo "configure:1767: checking for $ac_word" >&5
1767 if eval "test \"`echo '$''{'ac_cv_path_vipath'+set}'`\" = set"; then
1768 echo $ac_n "(cached) $ac_c" 1>&6
1772 ac_cv_path_vipath="$vipath" # Let the user override the test with a path.
1775 ac_cv_path_vipath="$vipath" # Let the user override the test with a dos path.
1778 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1780 for ac_dir in $ac_dummy; do
1781 test -z "$ac_dir" && ac_dir=.
1782 if test -f $ac_dir/$ac_word; then
1783 ac_cv_path_vipath="$ac_dir/$ac_word"
1788 test -z "$ac_cv_path_vipath" && ac_cv_path_vipath="no"
1792 vipath="$ac_cv_path_vipath"
1793 if test -n "$vipath"; then
1794 echo "$ac_t""$vipath" 1>&6
1796 echo "$ac_t""no" 1>&6
1800 if test -z "$editorpath"; then
1801 editorpath="$vipath"
1804 echo $ac_n "checking for broken vi""... $ac_c" 1>&6
1805 echo "configure:1806: checking for broken vi" >&5
1806 if eval "test \"`echo '$''{'nmh_cv_attvibug'+set}'`\" = set"; then
1807 echo $ac_n "(cached) $ac_c" 1>&6
1809 if echo 'r /nonexist-file
1810 q' | ex > /dev/null 2>&1
1818 echo "$ac_t""$nmh_cv_attvibug" 1>&6
1820 if test "$nmh_cv_attvibug" = yes; then
1821 cat >> confdefs.h <<\EOF
1826 echo $ac_n "checking where mail spool is located""... $ac_c" 1>&6
1827 echo "configure:1828: checking where mail spool is located" >&5
1828 if eval "test \"`echo '$''{'nmh_cv_mailspool'+set}'`\" = set"; then
1829 echo $ac_n "(cached) $ac_c" 1>&6
1831 for mailspool in /var/mail /var/spool/mail /usr/spool/mail /dev/null; do
1832 test -d $mailspool && break
1834 nmh_cv_mailspool=$mailspool
1838 echo "$ac_t""$nmh_cv_mailspool" 1>&6
1839 mailspool=$nmh_cv_mailspool
1841 if test "$lspath" != "no" -a "$cutpath" != "no"; then
1842 echo $ac_n "checking whether the mail spool is world-writable""... $ac_c" 1>&6
1843 echo "configure:1844: checking whether the mail spool is world-writable" >&5
1844 if eval "test \"`echo '$''{'nmh_cv_mailspool_world_writable'+set}'`\" = set"; then
1845 echo $ac_n "(cached) $ac_c" 1>&6
1847 if test "`$lspath -dlL $mailspool | $cutpath -c9`" = "-"; then
1848 nmh_cv_mailspool_world_writable=no
1850 nmh_cv_mailspool_world_writable=yes
1854 echo "$ac_t""$nmh_cv_mailspool_world_writable" 1>&6
1857 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1858 echo "configure:1859: checking how to run the C preprocessor" >&5
1859 # On Suns, sometimes $CPP names a directory.
1860 if test -n "$CPP" && test -d "$CPP"; then
1863 if test -z "$CPP"; then
1864 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1865 echo $ac_n "(cached) $ac_c" 1>&6
1867 # This must be in double quotes, not single quotes, because CPP may get
1868 # substituted into the Makefile and "${CC-cc}" will confuse make.
1870 # On the NeXT, cc -E runs the code through the compiler's parser,
1871 # not just through cpp.
1872 cat > conftest.$ac_ext <<EOF
1873 #line 1874 "configure"
1874 #include "confdefs.h"
1878 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1879 { (eval echo configure:1880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1880 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1881 if test -z "$ac_err"; then
1885 echo "configure: failed program was:" >&5
1886 cat conftest.$ac_ext >&5
1888 CPP="${CC-cc} -E -traditional-cpp"
1889 cat > conftest.$ac_ext <<EOF
1890 #line 1891 "configure"
1891 #include "confdefs.h"
1895 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1896 { (eval echo configure:1897: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1897 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1898 if test -z "$ac_err"; then
1902 echo "configure: failed program was:" >&5
1903 cat conftest.$ac_ext >&5
1905 CPP="${CC-cc} -nologo -E"
1906 cat > conftest.$ac_ext <<EOF
1907 #line 1908 "configure"
1908 #include "confdefs.h"
1912 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1913 { (eval echo configure:1914: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1914 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1915 if test -z "$ac_err"; then
1919 echo "configure: failed program was:" >&5
1920 cat conftest.$ac_ext >&5
1929 ac_cv_prog_CPP="$CPP"
1931 CPP="$ac_cv_prog_CPP"
1933 ac_cv_prog_CPP="$CPP"
1935 echo "$ac_t""$CPP" 1>&6
1937 ac_safe=`echo "lockfile.h" | sed 'y%./+-%__p_%'`
1938 echo $ac_n "checking for lockfile.h""... $ac_c" 1>&6
1939 echo "configure:1940: checking for lockfile.h" >&5
1940 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1941 echo $ac_n "(cached) $ac_c" 1>&6
1943 cat > conftest.$ac_ext <<EOF
1944 #line 1945 "configure"
1945 #include "confdefs.h"
1946 #include <lockfile.h>
1948 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1949 { (eval echo configure:1950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1950 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1951 if test -z "$ac_err"; then
1953 eval "ac_cv_header_$ac_safe=yes"
1956 echo "configure: failed program was:" >&5
1957 cat conftest.$ac_ext >&5
1959 eval "ac_cv_header_$ac_safe=no"
1963 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1964 echo "$ac_t""yes" 1>&6
1965 echo $ac_n "checking for lockfile_create in -llockfile""... $ac_c" 1>&6
1966 echo "configure:1967: checking for lockfile_create in -llockfile" >&5
1967 ac_lib_var=`echo lockfile'_'lockfile_create | sed 'y%./+-%__p_%'`
1968 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1969 echo $ac_n "(cached) $ac_c" 1>&6
1971 ac_save_LIBS="$LIBS"
1972 LIBS="-llockfile $LIBS"
1973 cat > conftest.$ac_ext <<EOF
1974 #line 1975 "configure"
1975 #include "confdefs.h"
1976 /* Override any gcc2 internal prototype to avoid an error. */
1977 /* We use char because int might match the return type of a gcc2
1978 builtin and then its argument prototype would still apply. */
1979 char lockfile_create();
1985 if { (eval echo configure:1986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1987 eval "ac_cv_lib_$ac_lib_var=yes"
1989 echo "configure: failed program was:" >&5
1990 cat conftest.$ac_ext >&5
1992 eval "ac_cv_lib_$ac_lib_var=no"
1995 LIBS="$ac_save_LIBS"
1998 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1999 echo "$ac_t""yes" 1>&6
2000 ac_tr_lib=HAVE_LIB`echo lockfile | sed -e 's/^a-zA-Z0-9_/_/g' \
2001 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2002 cat >> confdefs.h <<EOF
2003 #define $ac_tr_lib 1
2006 LIBS="-llockfile $LIBS"
2009 echo "$ac_t""no" 1>&6
2013 echo "$ac_t""no" 1>&6
2017 # Extract the first word of "dotlockfile", so it can be a program name with args.
2018 set dummy dotlockfile; ac_word=$2
2019 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2020 echo "configure:2021: checking for $ac_word" >&5
2021 if eval "test \"`echo '$''{'ac_cv_path_dotlockfilepath'+set}'`\" = set"; then
2022 echo $ac_n "(cached) $ac_c" 1>&6
2024 case "$dotlockfilepath" in
2026 ac_cv_path_dotlockfilepath="$dotlockfilepath" # Let the user override the test with a path.
2029 ac_cv_path_dotlockfilepath="$dotlockfilepath" # Let the user override the test with a dos path.
2032 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2034 for ac_dir in $ac_dummy; do
2035 test -z "$ac_dir" && ac_dir=.
2036 if test -f $ac_dir/$ac_word; then
2037 ac_cv_path_dotlockfilepath="$ac_dir/$ac_word"
2042 test -z "$ac_cv_path_dotlockfilepath" && ac_cv_path_dotlockfilepath="no"
2046 dotlockfilepath="$ac_cv_path_dotlockfilepath"
2047 if test -n "$dotlockfilepath"; then
2048 echo "$ac_t""$dotlockfilepath" 1>&6
2050 echo "$ac_t""no" 1>&6
2053 if test "$ac_cv_lib_lockfile_lockfile_create" != "no" ; then
2054 if test "$ac_cv_path_dotlockfilepath" != "no" ; then
2055 echo $ac_n "checking whether dotlockfile is setgid""... $ac_c" 1>&6
2056 echo "configure:2057: checking whether dotlockfile is setgid" >&5
2057 if eval "test \"`echo '$''{'nmh_cv_dotlockfile_setgid'+set}'`\" = set"; then
2058 echo $ac_n "(cached) $ac_c" 1>&6
2060 if test -g "$ac_cv_path_dotlockfilepath" ; then
2061 nmh_cv_dotlockfile_setgid=yes
2063 nmh_cv_dotlockfile_setgid=no
2067 echo "$ac_t""$nmh_cv_dotlockfile_setgid" 1>&6
2071 if test x"$nmh_cv_mailspool_world_writable" = x"no" -a x"$nmh_cv_dotlockfile_setgid" != x"yes" ; then
2072 cat >> confdefs.h <<\EOF
2078 echo $ac_n "checking what group owns the mail spool""... $ac_c" 1>&6
2079 echo "configure:2080: checking what group owns the mail spool" >&5
2080 if eval "test \"`echo '$''{'nmh_cv_ls_mail_grp'+set}'`\" = set"; then
2081 echo $ac_n "(cached) $ac_c" 1>&6
2083 nmh_cv_ls_mail_grp=`$lspath -dL $nmh_cv_ls_grpopt $mailspool|$AWK '{print $4}'`
2087 echo "$ac_t""$nmh_cv_ls_mail_grp" 1>&6
2088 MAIL_SPOOL_GRP=$nmh_cv_ls_mail_grp
2091 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2093 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2094 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2095 echo "configure:2096: checking for $ac_hdr that defines DIR" >&5
2096 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2097 echo $ac_n "(cached) $ac_c" 1>&6
2099 cat > conftest.$ac_ext <<EOF
2100 #line 2101 "configure"
2101 #include "confdefs.h"
2102 #include <sys/types.h>
2108 if { (eval echo configure:2109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2110 eval "ac_cv_header_dirent_$ac_safe=yes"
2112 echo "configure: failed program was:" >&5
2113 cat conftest.$ac_ext >&5
2115 eval "ac_cv_header_dirent_$ac_safe=no"
2119 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2120 echo "$ac_t""yes" 1>&6
2121 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2122 cat >> confdefs.h <<EOF
2123 #define $ac_tr_hdr 1
2125 ac_header_dirent=$ac_hdr; break
2127 echo "$ac_t""no" 1>&6
2130 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2131 if test $ac_header_dirent = dirent.h; then
2132 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2133 echo "configure:2134: checking for opendir in -ldir" >&5
2134 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2135 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2136 echo $ac_n "(cached) $ac_c" 1>&6
2138 ac_save_LIBS="$LIBS"
2140 cat > conftest.$ac_ext <<EOF
2141 #line 2142 "configure"
2142 #include "confdefs.h"
2143 /* Override any gcc2 internal prototype to avoid an error. */
2144 /* We use char because int might match the return type of a gcc2
2145 builtin and then its argument prototype would still apply. */
2152 if { (eval echo configure:2153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2154 eval "ac_cv_lib_$ac_lib_var=yes"
2156 echo "configure: failed program was:" >&5
2157 cat conftest.$ac_ext >&5
2159 eval "ac_cv_lib_$ac_lib_var=no"
2162 LIBS="$ac_save_LIBS"
2165 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2166 echo "$ac_t""yes" 1>&6
2169 echo "$ac_t""no" 1>&6
2173 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2174 echo "configure:2175: checking for opendir in -lx" >&5
2175 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2176 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2177 echo $ac_n "(cached) $ac_c" 1>&6
2179 ac_save_LIBS="$LIBS"
2181 cat > conftest.$ac_ext <<EOF
2182 #line 2183 "configure"
2183 #include "confdefs.h"
2184 /* Override any gcc2 internal prototype to avoid an error. */
2185 /* We use char because int might match the return type of a gcc2
2186 builtin and then its argument prototype would still apply. */
2193 if { (eval echo configure:2194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2195 eval "ac_cv_lib_$ac_lib_var=yes"
2197 echo "configure: failed program was:" >&5
2198 cat conftest.$ac_ext >&5
2200 eval "ac_cv_lib_$ac_lib_var=no"
2203 LIBS="$ac_save_LIBS"
2206 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2207 echo "$ac_t""yes" 1>&6
2210 echo "$ac_t""no" 1>&6
2215 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2216 echo "configure:2217: checking for ANSI C header files" >&5
2217 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2218 echo $ac_n "(cached) $ac_c" 1>&6
2220 cat > conftest.$ac_ext <<EOF
2221 #line 2222 "configure"
2222 #include "confdefs.h"
2228 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2229 { (eval echo configure:2230: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2230 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2231 if test -z "$ac_err"; then
2233 ac_cv_header_stdc=yes
2236 echo "configure: failed program was:" >&5
2237 cat conftest.$ac_ext >&5
2239 ac_cv_header_stdc=no
2243 if test $ac_cv_header_stdc = yes; then
2244 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2245 cat > conftest.$ac_ext <<EOF
2246 #line 2247 "configure"
2247 #include "confdefs.h"
2250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2251 egrep "memchr" >/dev/null 2>&1; then
2255 ac_cv_header_stdc=no
2261 if test $ac_cv_header_stdc = yes; then
2262 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2263 cat > conftest.$ac_ext <<EOF
2264 #line 2265 "configure"
2265 #include "confdefs.h"
2268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2269 egrep "free" >/dev/null 2>&1; then
2273 ac_cv_header_stdc=no
2279 if test $ac_cv_header_stdc = yes; then
2280 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2281 if test "$cross_compiling" = yes; then
2284 cat > conftest.$ac_ext <<EOF
2285 #line 2286 "configure"
2286 #include "confdefs.h"
2288 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2289 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2290 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2291 int main () { int i; for (i = 0; i < 256; i++)
2292 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2296 if { (eval echo configure:2297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2300 echo "configure: failed program was:" >&5
2301 cat conftest.$ac_ext >&5
2303 ac_cv_header_stdc=no
2311 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2312 if test $ac_cv_header_stdc = yes; then
2313 cat >> confdefs.h <<\EOF
2314 #define STDC_HEADERS 1
2319 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2320 echo "configure:2321: checking whether time.h and sys/time.h may both be included" >&5
2321 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2322 echo $ac_n "(cached) $ac_c" 1>&6
2324 cat > conftest.$ac_ext <<EOF
2325 #line 2326 "configure"
2326 #include "confdefs.h"
2327 #include <sys/types.h>
2328 #include <sys/time.h>
2334 if { (eval echo configure:2335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2336 ac_cv_header_time=yes
2338 echo "configure: failed program was:" >&5
2339 cat conftest.$ac_ext >&5
2341 ac_cv_header_time=no
2346 echo "$ac_t""$ac_cv_header_time" 1>&6
2347 if test $ac_cv_header_time = yes; then
2348 cat >> confdefs.h <<\EOF
2349 #define TIME_WITH_SYS_TIME 1
2354 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2355 echo "configure:2356: checking for sys/wait.h that is POSIX.1 compatible" >&5
2356 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2357 echo $ac_n "(cached) $ac_c" 1>&6
2359 cat > conftest.$ac_ext <<EOF
2360 #line 2361 "configure"
2361 #include "confdefs.h"
2362 #include <sys/types.h>
2363 #include <sys/wait.h>
2365 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2368 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2373 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2376 if { (eval echo configure:2377: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2378 ac_cv_header_sys_wait_h=yes
2380 echo "configure: failed program was:" >&5
2381 cat conftest.$ac_ext >&5
2383 ac_cv_header_sys_wait_h=no
2388 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2389 if test $ac_cv_header_sys_wait_h = yes; then
2390 cat >> confdefs.h <<\EOF
2391 #define HAVE_SYS_WAIT_H 1
2396 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
2397 echo "configure:2398: checking whether stat file-mode macros are broken" >&5
2398 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
2399 echo $ac_n "(cached) $ac_c" 1>&6
2401 cat > conftest.$ac_ext <<EOF
2402 #line 2403 "configure"
2403 #include "confdefs.h"
2404 #include <sys/types.h>
2405 #include <sys/stat.h>
2407 #if defined(S_ISBLK) && defined(S_IFDIR)
2408 # if S_ISBLK (S_IFDIR)
2413 #if defined(S_ISBLK) && defined(S_IFCHR)
2414 # if S_ISBLK (S_IFCHR)
2419 #if defined(S_ISLNK) && defined(S_IFREG)
2420 # if S_ISLNK (S_IFREG)
2425 #if defined(S_ISSOCK) && defined(S_IFREG)
2426 # if S_ISSOCK (S_IFREG)
2432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2433 egrep "You lose" >/dev/null 2>&1; then
2435 ac_cv_header_stat_broken=yes
2438 ac_cv_header_stat_broken=no
2444 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
2445 if test $ac_cv_header_stat_broken = yes; then
2446 cat >> confdefs.h <<\EOF
2447 #define STAT_MACROS_BROKEN 1
2452 for ac_hdr in string.h memory.h stdlib.h unistd.h errno.h fcntl.h \
2453 limits.h crypt.h termcap.h termio.h termios.h locale.h \
2454 netdb.h sys/param.h sys/time.h sys/utsname.h arpa/inet.h \
2457 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2458 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2459 echo "configure:2460: checking for $ac_hdr" >&5
2460 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2461 echo $ac_n "(cached) $ac_c" 1>&6
2463 cat > conftest.$ac_ext <<EOF
2464 #line 2465 "configure"
2465 #include "confdefs.h"
2468 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2469 { (eval echo configure:2470: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2470 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2471 if test -z "$ac_err"; then
2473 eval "ac_cv_header_$ac_safe=yes"
2476 echo "configure: failed program was:" >&5
2477 cat conftest.$ac_ext >&5
2479 eval "ac_cv_header_$ac_safe=no"
2483 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2484 echo "$ac_t""yes" 1>&6
2485 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2486 cat >> confdefs.h <<EOF
2487 #define $ac_tr_hdr 1
2491 echo "$ac_t""no" 1>&6
2497 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
2498 echo "configure:2499: checking POSIX termios" >&5
2499 if eval "test \"`echo '$''{'nmh_cv_sys_posix_termios'+set}'`\" = set"; then
2500 echo $ac_n "(cached) $ac_c" 1>&6
2502 cat > conftest.$ac_ext <<EOF
2503 #line 2504 "configure"
2504 #include "confdefs.h"
2505 #include <sys/types.h>
2507 #include <termios.h>
2509 /* SunOS 4.0.3 has termios.h but not the library calls. */
2513 if { (eval echo configure:2514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2515 nmh_cv_sys_posix_termios=yes
2517 echo "configure: failed program was:" >&5
2518 cat conftest.$ac_ext >&5
2520 nmh_cv_sys_posix_termios=no
2525 echo "$ac_t""$nmh_cv_sys_posix_termios" 1>&6
2527 if test $nmh_cv_sys_posix_termios = yes; then
2528 echo $ac_n "checking TIOCGWINSZ in termios.h""... $ac_c" 1>&6
2529 echo "configure:2530: checking TIOCGWINSZ in termios.h" >&5
2530 if eval "test \"`echo '$''{'nmh_cv_header_termios_h_tiocgwinsz'+set}'`\" = set"; then
2531 echo $ac_n "(cached) $ac_c" 1>&6
2533 cat > conftest.$ac_ext <<EOF
2534 #line 2535 "configure"
2535 #include "confdefs.h"
2536 #include <sys/types.h>
2537 #include <termios.h>
2542 if { (eval echo configure:2543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2544 nmh_cv_header_termios_h_tiocgwinsz=yes
2546 echo "configure: failed program was:" >&5
2547 cat conftest.$ac_ext >&5
2549 nmh_cv_header_termios_h_tiocgwinsz=no
2554 echo "$ac_t""$nmh_cv_header_termios_h_tiocgwinsz" 1>&6
2556 nmh_cv_header_termios_h_tiocgwinsz=no
2559 if test $nmh_cv_header_termios_h_tiocgwinsz = no; then
2560 echo $ac_n "checking TIOCGWINSZ in sys/ioctl.h""... $ac_c" 1>&6
2561 echo "configure:2562: checking TIOCGWINSZ in sys/ioctl.h" >&5
2562 if eval "test \"`echo '$''{'nmh_cv_header_sys_ioctl_h_tiocgwinsz'+set}'`\" = set"; then
2563 echo $ac_n "(cached) $ac_c" 1>&6
2565 cat > conftest.$ac_ext <<EOF
2566 #line 2567 "configure"
2567 #include "confdefs.h"
2568 #include <sys/types.h>
2569 #include <sys/ioctl.h>
2574 if { (eval echo configure:2575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2576 nmh_cv_header_sys_ioctl_h_tiocgwinsz=yes
2578 echo "configure: failed program was:" >&5
2579 cat conftest.$ac_ext >&5
2581 nmh_cv_header_sys_ioctl_h_tiocgwinsz=no
2586 echo "$ac_t""$nmh_cv_header_sys_ioctl_h_tiocgwinsz" 1>&6
2587 if test $nmh_cv_header_sys_ioctl_h_tiocgwinsz = yes; then
2588 cat >> confdefs.h <<\EOF
2589 #define GWINSZ_IN_SYS_IOCTL 1
2595 ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2596 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2597 echo "configure:2598: checking for libio.h" >&5
2598 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2599 echo $ac_n "(cached) $ac_c" 1>&6
2601 cat > conftest.$ac_ext <<EOF
2602 #line 2603 "configure"
2603 #include "confdefs.h"
2606 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2607 { (eval echo configure:2608: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2608 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2609 if test -z "$ac_err"; then
2611 eval "ac_cv_header_$ac_safe=yes"
2614 echo "configure: failed program was:" >&5
2615 cat conftest.$ac_ext >&5
2617 eval "ac_cv_header_$ac_safe=no"
2621 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2622 echo "$ac_t""yes" 1>&6
2624 cat > conftest.$ac_ext <<EOF
2625 #line 2626 "configure"
2626 #include "confdefs.h"
2629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2630 egrep "_IO_write_ptr" >/dev/null 2>&1; then
2633 cat >> confdefs.h <<\EOF
2634 #define LINUX_STDIO 1
2641 echo "$ac_t""no" 1>&6
2645 ac_safe=`echo "sys/ptem.h" | sed 'y%./+-%__p_%'`
2646 echo $ac_n "checking for sys/ptem.h""... $ac_c" 1>&6
2647 echo "configure:2648: checking for sys/ptem.h" >&5
2648 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2649 echo $ac_n "(cached) $ac_c" 1>&6
2651 cat > conftest.$ac_ext <<EOF
2652 #line 2653 "configure"
2653 #include "confdefs.h"
2654 #include <sys/ptem.h>
2656 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2657 { (eval echo configure:2658: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2658 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2659 if test -z "$ac_err"; then
2661 eval "ac_cv_header_$ac_safe=yes"
2664 echo "configure: failed program was:" >&5
2665 cat conftest.$ac_ext >&5
2667 eval "ac_cv_header_$ac_safe=no"
2671 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2672 echo "$ac_t""yes" 1>&6
2673 cat >> confdefs.h <<\EOF
2674 #define WINSIZE_IN_PTEM 1
2678 echo "$ac_t""no" 1>&6
2682 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2683 echo "configure:2684: checking for pid_t" >&5
2684 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2685 echo $ac_n "(cached) $ac_c" 1>&6
2687 cat > conftest.$ac_ext <<EOF
2688 #line 2689 "configure"
2689 #include "confdefs.h"
2690 #include <sys/types.h>
2696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2697 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2699 ac_cv_type_pid_t=yes
2707 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2708 if test $ac_cv_type_pid_t = no; then
2709 cat >> confdefs.h <<\EOF
2715 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2716 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2717 echo "configure:2718: checking for vfork.h" >&5
2718 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2719 echo $ac_n "(cached) $ac_c" 1>&6
2721 cat > conftest.$ac_ext <<EOF
2722 #line 2723 "configure"
2723 #include "confdefs.h"
2726 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2727 { (eval echo configure:2728: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2728 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2729 if test -z "$ac_err"; then
2731 eval "ac_cv_header_$ac_safe=yes"
2734 echo "configure: failed program was:" >&5
2735 cat conftest.$ac_ext >&5
2737 eval "ac_cv_header_$ac_safe=no"
2741 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2742 echo "$ac_t""yes" 1>&6
2743 cat >> confdefs.h <<\EOF
2744 #define HAVE_VFORK_H 1
2748 echo "$ac_t""no" 1>&6
2751 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2752 echo "configure:2753: checking for working vfork" >&5
2753 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2754 echo $ac_n "(cached) $ac_c" 1>&6
2756 if test "$cross_compiling" = yes; then
2757 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2758 echo "configure:2759: checking for vfork" >&5
2759 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2760 echo $ac_n "(cached) $ac_c" 1>&6
2762 cat > conftest.$ac_ext <<EOF
2763 #line 2764 "configure"
2764 #include "confdefs.h"
2765 /* System header to define __stub macros and hopefully few prototypes,
2766 which can conflict with char vfork(); below. */
2768 /* Override any gcc2 internal prototype to avoid an error. */
2769 /* We use char because int might match the return type of a gcc2
2770 builtin and then its argument prototype would still apply. */
2775 /* The GNU C library defines this for functions which it implements
2776 to always fail with ENOSYS. Some functions are actually named
2777 something starting with __ and the normal name is an alias. */
2778 #if defined (__stub_vfork) || defined (__stub___vfork)
2786 if { (eval echo configure:2787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2788 eval "ac_cv_func_vfork=yes"
2790 echo "configure: failed program was:" >&5
2791 cat conftest.$ac_ext >&5
2793 eval "ac_cv_func_vfork=no"
2798 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2799 echo "$ac_t""yes" 1>&6
2802 echo "$ac_t""no" 1>&6
2805 ac_cv_func_vfork_works=$ac_cv_func_vfork
2807 cat > conftest.$ac_ext <<EOF
2808 #line 2809 "configure"
2809 #include "confdefs.h"
2810 /* Thanks to Paul Eggert for this test. */
2812 #include <sys/types.h>
2813 #include <sys/stat.h>
2814 #ifdef HAVE_UNISTD_H
2820 /* On some sparc systems, changes by the child to local and incoming
2821 argument registers are propagated back to the parent.
2822 The compiler is told about this with #include <vfork.h>,
2823 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2824 Test for this by using a static variable whose address
2825 is put into a register that is clobbered by the vfork. */
2828 sparc_address_test (int arg)
2830 sparc_address_test (arg) int arg;
2848 pid_t parent = getpid ();
2851 sparc_address_test ();
2856 /* Here is another test for sparc vfork register problems.
2857 This test uses lots of local variables, at least
2858 as many local variables as main has allocated so far
2859 including compiler temporaries. 4 locals are enough for
2860 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2861 A buggy compiler should reuse the register of parent
2862 for one of the local variables, since it will think that
2863 parent can't possibly be used any more in this routine.
2864 Assigning to the local variable will thus munge parent
2865 in the parent process. */
2867 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2868 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2869 /* Convince the compiler that p..p7 are live; otherwise, it might
2870 use the same hardware register for all 8 local variables. */
2871 if (p != p1 || p != p2 || p != p3 || p != p4
2872 || p != p5 || p != p6 || p != p7)
2875 /* On some systems (e.g. IRIX 3.3),
2876 vfork doesn't separate parent from child file descriptors.
2877 If the child closes a descriptor before it execs or exits,
2878 this munges the parent's descriptor as well.
2879 Test for this by closing stdout in the child. */
2880 _exit(close(fileno(stdout)) != 0);
2885 while (wait(&status) != child)
2888 /* Was there some problem with vforking? */
2891 /* Did the child fail? (This shouldn't happen.) */
2894 /* Did the vfork/compiler bug occur? */
2895 || parent != getpid()
2897 /* Did the file descriptor bug occur? */
2898 || fstat(fileno(stdout), &st) != 0
2903 if { (eval echo configure:2904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2905 ac_cv_func_vfork_works=yes
2907 echo "configure: failed program was:" >&5
2908 cat conftest.$ac_ext >&5
2910 ac_cv_func_vfork_works=no
2917 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2918 if test $ac_cv_func_vfork_works = no; then
2919 cat >> confdefs.h <<\EOF
2925 echo $ac_n "checking for mkstemp in -lmkstemp""... $ac_c" 1>&6
2926 echo "configure:2927: checking for mkstemp in -lmkstemp" >&5
2927 ac_lib_var=`echo mkstemp'_'mkstemp | sed 'y%./+-%__p_%'`
2928 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2929 echo $ac_n "(cached) $ac_c" 1>&6
2931 ac_save_LIBS="$LIBS"
2932 LIBS="-lmkstemp $LIBS"
2933 cat > conftest.$ac_ext <<EOF
2934 #line 2935 "configure"
2935 #include "confdefs.h"
2936 /* Override any gcc2 internal prototype to avoid an error. */
2937 /* We use char because int might match the return type of a gcc2
2938 builtin and then its argument prototype would still apply. */
2945 if { (eval echo configure:2946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2947 eval "ac_cv_lib_$ac_lib_var=yes"
2949 echo "configure: failed program was:" >&5
2950 cat conftest.$ac_ext >&5
2952 eval "ac_cv_lib_$ac_lib_var=no"
2955 LIBS="$ac_save_LIBS"
2958 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2959 echo "$ac_t""yes" 1>&6
2960 ac_tr_lib=HAVE_LIB`echo mkstemp | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2961 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2962 cat >> confdefs.h <<EOF
2963 #define $ac_tr_lib 1
2966 LIBS="-lmkstemp $LIBS"
2969 echo "$ac_t""no" 1>&6
2972 for ac_func in waitpid wait3 sigaction sigprocmask sigblock sigsetmask \
2973 sighold sigrelse writev lstat uname tzset killpg mkstemp \
2976 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2977 echo "configure:2978: checking for $ac_func" >&5
2978 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2979 echo $ac_n "(cached) $ac_c" 1>&6
2981 cat > conftest.$ac_ext <<EOF
2982 #line 2983 "configure"
2983 #include "confdefs.h"
2984 /* System header to define __stub macros and hopefully few prototypes,
2985 which can conflict with char $ac_func(); below. */
2987 /* Override any gcc2 internal prototype to avoid an error. */
2988 /* We use char because int might match the return type of a gcc2
2989 builtin and then its argument prototype would still apply. */
2994 /* The GNU C library defines this for functions which it implements
2995 to always fail with ENOSYS. Some functions are actually named
2996 something starting with __ and the normal name is an alias. */
2997 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3005 if { (eval echo configure:3006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3007 eval "ac_cv_func_$ac_func=yes"
3009 echo "configure: failed program was:" >&5
3010 cat conftest.$ac_ext >&5
3012 eval "ac_cv_func_$ac_func=no"
3017 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3018 echo "$ac_t""yes" 1>&6
3019 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3020 cat >> confdefs.h <<EOF
3021 #define $ac_tr_func 1
3025 echo "$ac_t""no" 1>&6
3030 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3031 echo "configure:3032: checking for gethostbyname" >&5
3032 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3033 echo $ac_n "(cached) $ac_c" 1>&6
3035 cat > conftest.$ac_ext <<EOF
3036 #line 3037 "configure"
3037 #include "confdefs.h"
3038 /* System header to define __stub macros and hopefully few prototypes,
3039 which can conflict with char gethostbyname(); below. */
3041 /* Override any gcc2 internal prototype to avoid an error. */
3042 /* We use char because int might match the return type of a gcc2
3043 builtin and then its argument prototype would still apply. */
3044 char gethostbyname();
3048 /* The GNU C library defines this for functions which it implements
3049 to always fail with ENOSYS. Some functions are actually named
3050 something starting with __ and the normal name is an alias. */
3051 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3059 if { (eval echo configure:3060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3061 eval "ac_cv_func_gethostbyname=yes"
3063 echo "configure: failed program was:" >&5
3064 cat conftest.$ac_ext >&5
3066 eval "ac_cv_func_gethostbyname=no"
3071 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3072 echo "$ac_t""yes" 1>&6
3073 cat >> confdefs.h <<\EOF
3074 #define HAVE_GETHOSTBYNAME 1
3078 echo "$ac_t""no" 1>&6
3079 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3080 echo "configure:3081: checking for gethostbyname in -lnsl" >&5
3081 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3082 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3083 echo $ac_n "(cached) $ac_c" 1>&6
3085 ac_save_LIBS="$LIBS"
3087 cat > conftest.$ac_ext <<EOF
3088 #line 3089 "configure"
3089 #include "confdefs.h"
3090 /* Override any gcc2 internal prototype to avoid an error. */
3091 /* We use char because int might match the return type of a gcc2
3092 builtin and then its argument prototype would still apply. */
3093 char gethostbyname();
3099 if { (eval echo configure:3100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3101 eval "ac_cv_lib_$ac_lib_var=yes"
3103 echo "configure: failed program was:" >&5
3104 cat conftest.$ac_ext >&5
3106 eval "ac_cv_lib_$ac_lib_var=no"
3109 LIBS="$ac_save_LIBS"
3112 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3113 echo "$ac_t""yes" 1>&6
3114 cat >> confdefs.h <<\EOF
3115 #define HAVE_GETHOSTBYNAME 1
3119 echo "$ac_t""no" 1>&6
3125 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
3126 echo "configure:3127: checking for sigsetjmp" >&5
3127 cat > conftest.$ac_ext <<EOF
3128 #line 3129 "configure"
3129 #include "confdefs.h"
3132 sigsetjmp((void *)0, 0);
3135 if { (eval echo configure:3136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3137 cat >> confdefs.h <<\EOF
3138 #define HAVE_SIGSETJMP 1
3140 echo "$ac_t""yes" 1>&6
3142 echo "configure: failed program was:" >&5
3143 cat conftest.$ac_ext >&5
3145 echo "$ac_t""no" 1>&6
3149 for ac_func in snprintf strerror strdup
3151 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3152 echo "configure:3153: checking for $ac_func" >&5
3153 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3154 echo $ac_n "(cached) $ac_c" 1>&6
3156 cat > conftest.$ac_ext <<EOF
3157 #line 3158 "configure"
3158 #include "confdefs.h"
3159 /* System header to define __stub macros and hopefully few prototypes,
3160 which can conflict with char $ac_func(); below. */
3162 /* Override any gcc2 internal prototype to avoid an error. */
3163 /* We use char because int might match the return type of a gcc2
3164 builtin and then its argument prototype would still apply. */
3169 /* The GNU C library defines this for functions which it implements
3170 to always fail with ENOSYS. Some functions are actually named
3171 something starting with __ and the normal name is an alias. */
3172 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3180 if { (eval echo configure:3181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3182 eval "ac_cv_func_$ac_func=yes"
3184 echo "configure: failed program was:" >&5
3185 cat conftest.$ac_ext >&5
3187 eval "ac_cv_func_$ac_func=no"
3192 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3193 echo "$ac_t""yes" 1>&6
3194 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3195 cat >> confdefs.h <<EOF
3196 #define $ac_tr_func 1
3200 echo "$ac_t""no" 1>&6
3201 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
3207 cat > conftest.$ac_ext <<EOF
3208 #line 3209 "configure"
3209 #include "confdefs.h"
3212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3213 egrep "initgroups" >/dev/null 2>&1; then
3215 cat >> confdefs.h <<\EOF
3216 #define INITGROUPS_HEADER <grp.h>
3221 cat > conftest.$ac_ext <<EOF
3222 #line 3223 "configure"
3223 #include "confdefs.h"
3226 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3227 egrep "initgroups" >/dev/null 2>&1; then
3229 cat >> confdefs.h <<\EOF
3230 #define INITGROUPS_HEADER <unistd.h>
3240 cat > conftest.$ac_ext <<EOF
3241 #line 3242 "configure"
3242 #include "confdefs.h"
3245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3246 egrep "snprintf" >/dev/null 2>&1; then
3248 cat >> confdefs.h <<\EOF
3249 #define HAVE_SNPRINTF_PROTOTYPE 1
3256 echo $ac_n "checking for modf""... $ac_c" 1>&6
3257 echo "configure:3258: checking for modf" >&5
3258 if eval "test \"`echo '$''{'ac_cv_func_modf'+set}'`\" = set"; then
3259 echo $ac_n "(cached) $ac_c" 1>&6
3261 cat > conftest.$ac_ext <<EOF
3262 #line 3263 "configure"
3263 #include "confdefs.h"
3264 /* System header to define __stub macros and hopefully few prototypes,
3265 which can conflict with char modf(); below. */
3267 /* Override any gcc2 internal prototype to avoid an error. */
3268 /* We use char because int might match the return type of a gcc2
3269 builtin and then its argument prototype would still apply. */
3274 /* The GNU C library defines this for functions which it implements
3275 to always fail with ENOSYS. Some functions are actually named
3276 something starting with __ and the normal name is an alias. */
3277 #if defined (__stub_modf) || defined (__stub___modf)
3285 if { (eval echo configure:3286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3287 eval "ac_cv_func_modf=yes"
3289 echo "configure: failed program was:" >&5
3290 cat conftest.$ac_ext >&5
3292 eval "ac_cv_func_modf=no"
3297 if eval "test \"`echo '$ac_cv_func_'modf`\" = yes"; then
3298 echo "$ac_t""yes" 1>&6
3301 echo "$ac_t""no" 1>&6
3302 echo $ac_n "checking for modf in -lm""... $ac_c" 1>&6
3303 echo "configure:3304: checking for modf in -lm" >&5
3304 ac_lib_var=`echo m'_'modf | sed 'y%./+-%__p_%'`
3305 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3306 echo $ac_n "(cached) $ac_c" 1>&6
3308 ac_save_LIBS="$LIBS"
3310 cat > conftest.$ac_ext <<EOF
3311 #line 3312 "configure"
3312 #include "confdefs.h"
3313 /* Override any gcc2 internal prototype to avoid an error. */
3314 /* We use char because int might match the return type of a gcc2
3315 builtin and then its argument prototype would still apply. */
3322 if { (eval echo configure:3323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3324 eval "ac_cv_lib_$ac_lib_var=yes"
3326 echo "configure: failed program was:" >&5
3327 cat conftest.$ac_ext >&5
3329 eval "ac_cv_lib_$ac_lib_var=no"
3332 LIBS="$ac_save_LIBS"
3335 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3336 echo "$ac_t""yes" 1>&6
3337 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
3338 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3339 cat >> confdefs.h <<EOF
3340 #define $ac_tr_lib 1
3346 echo "$ac_t""no" 1>&6
3352 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3353 echo "configure:3354: checking for gethostbyname" >&5
3354 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3355 echo $ac_n "(cached) $ac_c" 1>&6
3357 cat > conftest.$ac_ext <<EOF
3358 #line 3359 "configure"
3359 #include "confdefs.h"
3360 /* System header to define __stub macros and hopefully few prototypes,
3361 which can conflict with char gethostbyname(); below. */
3363 /* Override any gcc2 internal prototype to avoid an error. */
3364 /* We use char because int might match the return type of a gcc2
3365 builtin and then its argument prototype would still apply. */
3366 char gethostbyname();
3370 /* The GNU C library defines this for functions which it implements
3371 to always fail with ENOSYS. Some functions are actually named
3372 something starting with __ and the normal name is an alias. */
3373 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3381 if { (eval echo configure:3382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3383 eval "ac_cv_func_gethostbyname=yes"
3385 echo "configure: failed program was:" >&5
3386 cat conftest.$ac_ext >&5
3388 eval "ac_cv_func_gethostbyname=no"
3393 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3394 echo "$ac_t""yes" 1>&6
3397 echo "$ac_t""no" 1>&6
3398 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3399 echo "configure:3400: checking for gethostbyname in -lnsl" >&5
3400 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3401 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3402 echo $ac_n "(cached) $ac_c" 1>&6
3404 ac_save_LIBS="$LIBS"
3406 cat > conftest.$ac_ext <<EOF
3407 #line 3408 "configure"
3408 #include "confdefs.h"
3409 /* Override any gcc2 internal prototype to avoid an error. */
3410 /* We use char because int might match the return type of a gcc2
3411 builtin and then its argument prototype would still apply. */
3412 char gethostbyname();
3418 if { (eval echo configure:3419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3420 eval "ac_cv_lib_$ac_lib_var=yes"
3422 echo "configure: failed program was:" >&5
3423 cat conftest.$ac_ext >&5
3425 eval "ac_cv_lib_$ac_lib_var=no"
3428 LIBS="$ac_save_LIBS"
3431 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3432 echo "$ac_t""yes" 1>&6
3433 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
3434 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3435 cat >> confdefs.h <<EOF
3436 #define $ac_tr_lib 1
3442 echo "$ac_t""no" 1>&6
3443 echo $ac_n "checking for gethostbyname in -lresolv""... $ac_c" 1>&6
3444 echo "configure:3445: checking for gethostbyname in -lresolv" >&5
3445 ac_lib_var=`echo resolv'_'gethostbyname | sed 'y%./+-%__p_%'`
3446 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3447 echo $ac_n "(cached) $ac_c" 1>&6
3449 ac_save_LIBS="$LIBS"
3450 LIBS="-lresolv $LIBS"
3451 cat > conftest.$ac_ext <<EOF
3452 #line 3453 "configure"
3453 #include "confdefs.h"
3454 /* Override any gcc2 internal prototype to avoid an error. */
3455 /* We use char because int might match the return type of a gcc2
3456 builtin and then its argument prototype would still apply. */
3457 char gethostbyname();
3463 if { (eval echo configure:3464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3465 eval "ac_cv_lib_$ac_lib_var=yes"
3467 echo "configure: failed program was:" >&5
3468 cat conftest.$ac_ext >&5
3470 eval "ac_cv_lib_$ac_lib_var=no"
3473 LIBS="$ac_save_LIBS"
3476 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3477 echo "$ac_t""yes" 1>&6
3478 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
3479 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3480 cat >> confdefs.h <<EOF
3481 #define $ac_tr_lib 1
3484 LIBS="-lresolv $LIBS"
3487 echo "$ac_t""no" 1>&6
3494 echo $ac_n "checking for socket""... $ac_c" 1>&6
3495 echo "configure:3496: checking for socket" >&5
3496 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
3497 echo $ac_n "(cached) $ac_c" 1>&6
3499 cat > conftest.$ac_ext <<EOF
3500 #line 3501 "configure"
3501 #include "confdefs.h"
3502 /* System header to define __stub macros and hopefully few prototypes,
3503 which can conflict with char socket(); below. */
3505 /* Override any gcc2 internal prototype to avoid an error. */
3506 /* We use char because int might match the return type of a gcc2
3507 builtin and then its argument prototype would still apply. */
3512 /* The GNU C library defines this for functions which it implements
3513 to always fail with ENOSYS. Some functions are actually named
3514 something starting with __ and the normal name is an alias. */
3515 #if defined (__stub_socket) || defined (__stub___socket)
3523 if { (eval echo configure:3524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3525 eval "ac_cv_func_socket=yes"
3527 echo "configure: failed program was:" >&5
3528 cat conftest.$ac_ext >&5
3530 eval "ac_cv_func_socket=no"
3535 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
3536 echo "$ac_t""yes" 1>&6
3539 echo "$ac_t""no" 1>&6
3540 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
3541 echo "configure:3542: checking for socket in -lsocket" >&5
3542 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
3543 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3544 echo $ac_n "(cached) $ac_c" 1>&6
3546 ac_save_LIBS="$LIBS"
3547 LIBS="-lsocket $LIBS"
3548 cat > conftest.$ac_ext <<EOF
3549 #line 3550 "configure"
3550 #include "confdefs.h"
3551 /* Override any gcc2 internal prototype to avoid an error. */
3552 /* We use char because int might match the return type of a gcc2
3553 builtin and then its argument prototype would still apply. */
3560 if { (eval echo configure:3561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3562 eval "ac_cv_lib_$ac_lib_var=yes"
3564 echo "configure: failed program was:" >&5
3565 cat conftest.$ac_ext >&5
3567 eval "ac_cv_lib_$ac_lib_var=no"
3570 LIBS="$ac_save_LIBS"
3573 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3574 echo "$ac_t""yes" 1>&6
3575 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
3576 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3577 cat >> confdefs.h <<EOF
3578 #define $ac_tr_lib 1
3581 LIBS="-lsocket $LIBS"
3584 echo "$ac_t""no" 1>&6
3591 termcap_curses_order="termcap curses ncurses"
3592 for lib in $termcap_curses_order; do
3593 echo $ac_n "checking for tgetent in -l${lib}""... $ac_c" 1>&6
3594 echo "configure:3595: checking for tgetent in -l${lib}" >&5
3595 ac_lib_var=`echo ${lib}'_'tgetent | sed 'y%./+-%__p_%'`
3596 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3597 echo $ac_n "(cached) $ac_c" 1>&6
3599 ac_save_LIBS="$LIBS"
3600 LIBS="-l${lib} $LIBS"
3601 cat > conftest.$ac_ext <<EOF
3602 #line 3603 "configure"
3603 #include "confdefs.h"
3604 /* Override any gcc2 internal prototype to avoid an error. */
3605 /* We use char because int might match the return type of a gcc2
3606 builtin and then its argument prototype would still apply. */
3613 if { (eval echo configure:3614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3615 eval "ac_cv_lib_$ac_lib_var=yes"
3617 echo "configure: failed program was:" >&5
3618 cat conftest.$ac_ext >&5
3620 eval "ac_cv_lib_$ac_lib_var=no"
3623 LIBS="$ac_save_LIBS"
3626 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3627 echo "$ac_t""yes" 1>&6
3628 TERMLIB="-l$lib"; break
3630 echo "$ac_t""no" 1>&6
3635 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
3636 echo "configure:3637: checking for dbm_open" >&5
3637 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
3638 echo $ac_n "(cached) $ac_c" 1>&6
3640 cat > conftest.$ac_ext <<EOF
3641 #line 3642 "configure"
3642 #include "confdefs.h"
3643 /* System header to define __stub macros and hopefully few prototypes,
3644 which can conflict with char dbm_open(); below. */
3646 /* Override any gcc2 internal prototype to avoid an error. */
3647 /* We use char because int might match the return type of a gcc2
3648 builtin and then its argument prototype would still apply. */
3653 /* The GNU C library defines this for functions which it implements
3654 to always fail with ENOSYS. Some functions are actually named
3655 something starting with __ and the normal name is an alias. */
3656 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
3664 if { (eval echo configure:3665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3666 eval "ac_cv_func_dbm_open=yes"
3668 echo "configure: failed program was:" >&5
3669 cat conftest.$ac_ext >&5
3671 eval "ac_cv_func_dbm_open=no"
3676 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
3677 echo "$ac_t""yes" 1>&6
3680 echo "$ac_t""no" 1>&6
3681 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
3682 echo "configure:3683: checking for dbm_open in -lndbm" >&5
3683 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
3684 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3685 echo $ac_n "(cached) $ac_c" 1>&6
3687 ac_save_LIBS="$LIBS"
3689 cat > conftest.$ac_ext <<EOF
3690 #line 3691 "configure"
3691 #include "confdefs.h"
3692 /* Override any gcc2 internal prototype to avoid an error. */
3693 /* We use char because int might match the return type of a gcc2
3694 builtin and then its argument prototype would still apply. */
3701 if { (eval echo configure:3702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3703 eval "ac_cv_lib_$ac_lib_var=yes"
3705 echo "configure: failed program was:" >&5
3706 cat conftest.$ac_ext >&5
3708 eval "ac_cv_lib_$ac_lib_var=no"
3711 LIBS="$ac_save_LIBS"
3714 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3715 echo "$ac_t""yes" 1>&6
3716 ac_tr_lib=HAVE_LIB`echo ndbm | sed -e 's/^a-zA-Z0-9_/_/g' \
3717 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3718 cat >> confdefs.h <<EOF
3719 #define $ac_tr_lib 1
3725 echo "$ac_t""no" 1>&6
3726 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
3727 echo "configure:3728: checking for dbm_open in -ldbm" >&5
3728 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
3729 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3730 echo $ac_n "(cached) $ac_c" 1>&6
3732 ac_save_LIBS="$LIBS"
3734 cat > conftest.$ac_ext <<EOF
3735 #line 3736 "configure"
3736 #include "confdefs.h"
3737 /* Override any gcc2 internal prototype to avoid an error. */
3738 /* We use char because int might match the return type of a gcc2
3739 builtin and then its argument prototype would still apply. */
3746 if { (eval echo configure:3747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3748 eval "ac_cv_lib_$ac_lib_var=yes"
3750 echo "configure: failed program was:" >&5
3751 cat conftest.$ac_ext >&5
3753 eval "ac_cv_lib_$ac_lib_var=no"
3756 LIBS="$ac_save_LIBS"
3759 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3760 echo "$ac_t""yes" 1>&6
3761 ac_tr_lib=HAVE_LIB`echo dbm | sed -e 's/^a-zA-Z0-9_/_/g' \
3762 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3763 cat >> confdefs.h <<EOF
3764 #define $ac_tr_lib 1
3770 echo "$ac_t""no" 1>&6
3778 for ac_hdr in db1/ndbm.h
3780 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3781 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3782 echo "configure:3783: checking for $ac_hdr" >&5
3783 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3784 echo $ac_n "(cached) $ac_c" 1>&6
3786 cat > conftest.$ac_ext <<EOF
3787 #line 3788 "configure"
3788 #include "confdefs.h"
3791 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3792 { (eval echo configure:3793: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3793 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3794 if test -z "$ac_err"; then
3796 eval "ac_cv_header_$ac_safe=yes"
3799 echo "configure: failed program was:" >&5
3800 cat conftest.$ac_ext >&5
3802 eval "ac_cv_header_$ac_safe=no"
3806 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3807 echo "$ac_t""yes" 1>&6
3808 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3809 cat >> confdefs.h <<EOF
3810 #define $ac_tr_hdr 1
3814 echo "$ac_t""no" 1>&6
3819 if test x"$with_hesiod" != x -a x"$with_hesiod" != x"no"; then
3820 if test x"$with_hesiod" != x"yes"; then
3821 HESIOD_INCLUDES="-I$with_hesiod/include"
3822 HESIOD_LIBS="-L$with_hesiod/lib"
3824 echo $ac_n "checking for res_send""... $ac_c" 1>&6
3825 echo "configure:3826: checking for res_send" >&5
3826 if eval "test \"`echo '$''{'ac_cv_func_res_send'+set}'`\" = set"; then
3827 echo $ac_n "(cached) $ac_c" 1>&6
3829 cat > conftest.$ac_ext <<EOF
3830 #line 3831 "configure"
3831 #include "confdefs.h"
3832 /* System header to define __stub macros and hopefully few prototypes,
3833 which can conflict with char res_send(); below. */
3835 /* Override any gcc2 internal prototype to avoid an error. */
3836 /* We use char because int might match the return type of a gcc2
3837 builtin and then its argument prototype would still apply. */
3842 /* The GNU C library defines this for functions which it implements
3843 to always fail with ENOSYS. Some functions are actually named
3844 something starting with __ and the normal name is an alias. */
3845 #if defined (__stub_res_send) || defined (__stub___res_send)
3853 if { (eval echo configure:3854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3855 eval "ac_cv_func_res_send=yes"
3857 echo "configure: failed program was:" >&5
3858 cat conftest.$ac_ext >&5
3860 eval "ac_cv_func_res_send=no"
3865 if eval "test \"`echo '$ac_cv_func_'res_send`\" = yes"; then
3866 echo "$ac_t""yes" 1>&6
3869 echo "$ac_t""no" 1>&6
3870 echo $ac_n "checking for res_send in -lresolv""... $ac_c" 1>&6
3871 echo "configure:3872: checking for res_send in -lresolv" >&5
3872 ac_lib_var=`echo resolv'_'res_send | sed 'y%./+-%__p_%'`
3873 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3874 echo $ac_n "(cached) $ac_c" 1>&6
3876 ac_save_LIBS="$LIBS"
3877 LIBS="-lresolv $LIBS"
3878 cat > conftest.$ac_ext <<EOF
3879 #line 3880 "configure"
3880 #include "confdefs.h"
3881 /* Override any gcc2 internal prototype to avoid an error. */
3882 /* We use char because int might match the return type of a gcc2
3883 builtin and then its argument prototype would still apply. */
3890 if { (eval echo configure:3891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3892 eval "ac_cv_lib_$ac_lib_var=yes"
3894 echo "configure: failed program was:" >&5
3895 cat conftest.$ac_ext >&5
3897 eval "ac_cv_lib_$ac_lib_var=no"
3900 LIBS="$ac_save_LIBS"
3903 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3904 echo "$ac_t""yes" 1>&6
3905 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
3906 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3907 cat >> confdefs.h <<EOF
3908 #define $ac_tr_lib 1
3911 LIBS="-lresolv $LIBS"
3914 echo "$ac_t""no" 1>&6
3919 echo $ac_n "checking for hes_resolve in -lhesiod""... $ac_c" 1>&6
3920 echo "configure:3921: checking for hes_resolve in -lhesiod" >&5
3921 ac_lib_var=`echo hesiod'_'hes_resolve | sed 'y%./+-%__p_%'`
3922 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3923 echo $ac_n "(cached) $ac_c" 1>&6
3925 ac_save_LIBS="$LIBS"
3926 LIBS="-lhesiod $HESIOD_LIBS $LIBS"
3927 cat > conftest.$ac_ext <<EOF
3928 #line 3929 "configure"
3929 #include "confdefs.h"
3930 /* Override any gcc2 internal prototype to avoid an error. */
3931 /* We use char because int might match the return type of a gcc2
3932 builtin and then its argument prototype would still apply. */
3939 if { (eval echo configure:3940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3941 eval "ac_cv_lib_$ac_lib_var=yes"
3943 echo "configure: failed program was:" >&5
3944 cat conftest.$ac_ext >&5
3946 eval "ac_cv_lib_$ac_lib_var=no"
3949 LIBS="$ac_save_LIBS"
3952 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3953 echo "$ac_t""yes" 1>&6
3954 HESIOD_LIBS="$HESIOD_LIBS -lhesiod"
3956 echo "$ac_t""no" 1>&6
3957 { echo "configure: error: Hesiod library not found" 1>&2; exit 1; }
3962 if test x"$with_krb4" != x -a x"$with_krb4" != x"no"; then
3963 if test x"$with_krb4" != x"yes"; then
3964 KRB4_INCLUDES="-I$with_krb4/include"
3965 if test -d "$with_krb4/include/kerberosIV"; then
3966 KRB4_INCLUDES="$KRB4_INCLUDES -I$with_krb4/include/kerberosIV"
3968 KRB4_LIBS="-L$with_krb4/lib"
3969 elif test -d /usr/include/kerberosIV; then
3970 KRB4_INCLUDES="-I/usr/include/kerberosIV"
3972 echo $ac_n "checking for krb_rd_req in -lkrb4""... $ac_c" 1>&6
3973 echo "configure:3974: checking for krb_rd_req in -lkrb4" >&5
3974 ac_lib_var=`echo krb4'_'krb_rd_req | sed 'y%./+-%__p_%'`
3975 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3976 echo $ac_n "(cached) $ac_c" 1>&6
3978 ac_save_LIBS="$LIBS"
3979 LIBS="-lkrb4 $KRB4_LIBS -ldes425 -lkrb5 -lcrypto -lcom_err $LIBS"
3980 cat > conftest.$ac_ext <<EOF
3981 #line 3982 "configure"
3982 #include "confdefs.h"
3983 /* Override any gcc2 internal prototype to avoid an error. */
3984 /* We use char because int might match the return type of a gcc2
3985 builtin and then its argument prototype would still apply. */
3992 if { (eval echo configure:3993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3994 eval "ac_cv_lib_$ac_lib_var=yes"
3996 echo "configure: failed program was:" >&5
3997 cat conftest.$ac_ext >&5
3999 eval "ac_cv_lib_$ac_lib_var=no"
4002 LIBS="$ac_save_LIBS"
4005 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4006 echo "$ac_t""yes" 1>&6
4007 KRB4_LIBS="$KRB4_LIBS -lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err"
4009 echo "$ac_t""no" 1>&6
4010 echo $ac_n "checking for krb_rd_req in -lkrb""... $ac_c" 1>&6
4011 echo "configure:4012: checking for krb_rd_req in -lkrb" >&5
4012 ac_lib_var=`echo krb'_'krb_rd_req | sed 'y%./+-%__p_%'`
4013 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4014 echo $ac_n "(cached) $ac_c" 1>&6
4016 ac_save_LIBS="$LIBS"
4017 LIBS="-lkrb $KRB4_LIBS -ldes $LIBS"
4018 cat > conftest.$ac_ext <<EOF
4019 #line 4020 "configure"
4020 #include "confdefs.h"
4021 /* Override any gcc2 internal prototype to avoid an error. */
4022 /* We use char because int might match the return type of a gcc2
4023 builtin and then its argument prototype would still apply. */
4030 if { (eval echo configure:4031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4032 eval "ac_cv_lib_$ac_lib_var=yes"
4034 echo "configure: failed program was:" >&5
4035 cat conftest.$ac_ext >&5
4037 eval "ac_cv_lib_$ac_lib_var=no"
4040 LIBS="$ac_save_LIBS"
4043 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4044 echo "$ac_t""yes" 1>&6
4045 KRB4_LIBS="$KRB4_LIBS -lkrb -ldes"
4047 echo "$ac_t""no" 1>&6
4048 { echo "configure: error: Kerberos 4 libraries not found" 1>&2; exit 1; }
4055 if test x"$with_cyrus_sasl" != x -a x"$with_cyrus_sasl" != "no"; then
4056 if test x"$with_cyrus_sasl" != x"yes"; then
4057 SASL_INCLUDES="-I$with_cyrus_sasl/include"
4058 SASL_LIBS="-L$with_cyrus_sasl/lib"
4060 save_LDFLAGS="$LDFLAGS"
4061 LDFLAGS="$LDFLAGS $SASL_LIBS"
4062 echo $ac_n "checking for sasl_client_new in -lsasl""... $ac_c" 1>&6
4063 echo "configure:4064: checking for sasl_client_new in -lsasl" >&5
4064 ac_lib_var=`echo sasl'_'sasl_client_new | sed 'y%./+-%__p_%'`
4065 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4066 echo $ac_n "(cached) $ac_c" 1>&6
4068 ac_save_LIBS="$LIBS"
4070 cat > conftest.$ac_ext <<EOF
4071 #line 4072 "configure"
4072 #include "confdefs.h"
4073 /* Override any gcc2 internal prototype to avoid an error. */
4074 /* We use char because int might match the return type of a gcc2
4075 builtin and then its argument prototype would still apply. */
4076 char sasl_client_new();
4082 if { (eval echo configure:4083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4084 eval "ac_cv_lib_$ac_lib_var=yes"
4086 echo "configure: failed program was:" >&5
4087 cat conftest.$ac_ext >&5
4089 eval "ac_cv_lib_$ac_lib_var=no"
4092 LIBS="$ac_save_LIBS"
4095 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4096 echo "$ac_t""yes" 1>&6
4097 SASL_LIBS="$SASL_LIBS -lsasl"
4099 echo "$ac_t""no" 1>&6
4100 { echo "configure: error: Cyrus SASL library not found" 1>&2; exit 1; }
4103 LDFLAGS="$save_LDFLAGS"
4107 nmh_save_LIBS="$LIBS"
4108 LIBS="$TERMLIB $LIBS"
4110 echo $ac_n "checking if an include file defines ospeed""... $ac_c" 1>&6
4111 echo "configure:4112: checking if an include file defines ospeed" >&5
4112 if eval "test \"`echo '$''{'nmh_cv_decl_ospeed_include_defines'+set}'`\" = set"; then
4113 echo $ac_n "(cached) $ac_c" 1>&6
4115 cat > conftest.$ac_ext <<EOF
4116 #line 4117 "configure"
4117 #include "confdefs.h"
4118 #include <sys/types.h>
4120 #include <termios.h>
4123 #include <termcap.h>
4129 if { (eval echo configure:4130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4131 nmh_cv_decl_ospeed_include_defines=yes
4133 echo "configure: failed program was:" >&5
4134 cat conftest.$ac_ext >&5
4136 nmh_cv_decl_ospeed_include_defines=no
4141 echo "$ac_t""$nmh_cv_decl_ospeed_include_defines" 1>&6
4143 if test $nmh_cv_decl_ospeed_include_defines = no; then
4144 echo $ac_n "checking if you must define ospeed""... $ac_c" 1>&6
4145 echo "configure:4146: checking if you must define ospeed" >&5
4146 if eval "test \"`echo '$''{'nmh_cv_decl_ospeed_must_define'+set}'`\" = set"; then
4147 echo $ac_n "(cached) $ac_c" 1>&6
4149 cat > conftest.$ac_ext <<EOF
4150 #line 4151 "configure"
4151 #include "confdefs.h"
4154 extern short ospeed; ospeed = 0;
4157 if { (eval echo configure:4158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4159 nmh_cv_decl_ospeed_must_define=yes
4161 echo "configure: failed program was:" >&5
4162 cat conftest.$ac_ext >&5
4164 nmh_cv_decl_ospeed_must_define=no
4169 echo "$ac_t""$nmh_cv_decl_ospeed_must_define" 1>&6
4172 if test $nmh_cv_decl_ospeed_include_defines = yes; then
4173 cat >> confdefs.h <<\EOF
4174 #define HAVE_OSPEED 1
4177 elif test $nmh_cv_decl_ospeed_must_define = yes; then
4178 cat >> confdefs.h <<\EOF
4179 #define HAVE_OSPEED 1
4182 cat >> confdefs.h <<\EOF
4183 #define MUST_DEFINE_OSPEED 1
4189 LIBS="$nmh_save_LIBS"
4191 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4192 echo "configure:4193: checking return type of signal handlers" >&5
4193 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4194 echo $ac_n "(cached) $ac_c" 1>&6
4196 cat > conftest.$ac_ext <<EOF
4197 #line 4198 "configure"
4198 #include "confdefs.h"
4199 #include <sys/types.h>
4205 extern "C" void (*signal (int, void (*)(int)))(int);
4207 void (*signal ()) ();
4214 if { (eval echo configure:4215: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4216 ac_cv_type_signal=void
4218 echo "configure: failed program was:" >&5
4219 cat conftest.$ac_ext >&5
4221 ac_cv_type_signal=int
4226 echo "$ac_t""$ac_cv_type_signal" 1>&6
4227 cat >> confdefs.h <<EOF
4228 #define RETSIGTYPE $ac_cv_type_signal
4232 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
4233 echo "configure:4234: checking for pid_t" >&5
4234 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
4235 echo $ac_n "(cached) $ac_c" 1>&6
4237 cat > conftest.$ac_ext <<EOF
4238 #line 4239 "configure"
4239 #include "confdefs.h"
4240 #include <sys/types.h>
4246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4247 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4249 ac_cv_type_pid_t=yes
4257 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
4258 if test $ac_cv_type_pid_t = no; then
4259 cat >> confdefs.h <<\EOF
4265 echo $ac_n "checking for off_t""... $ac_c" 1>&6
4266 echo "configure:4267: checking for off_t" >&5
4267 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
4268 echo $ac_n "(cached) $ac_c" 1>&6
4270 cat > conftest.$ac_ext <<EOF
4271 #line 4272 "configure"
4272 #include "confdefs.h"
4273 #include <sys/types.h>
4279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4280 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4282 ac_cv_type_off_t=yes
4290 echo "$ac_t""$ac_cv_type_off_t" 1>&6
4291 if test $ac_cv_type_off_t = no; then
4292 cat >> confdefs.h <<\EOF
4298 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
4299 echo "configure:4300: checking for uid_t in sys/types.h" >&5
4300 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
4301 echo $ac_n "(cached) $ac_c" 1>&6
4303 cat > conftest.$ac_ext <<EOF
4304 #line 4305 "configure"
4305 #include "confdefs.h"
4306 #include <sys/types.h>
4308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4309 egrep "uid_t" >/dev/null 2>&1; then
4311 ac_cv_type_uid_t=yes
4320 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
4321 if test $ac_cv_type_uid_t = no; then
4322 cat >> confdefs.h <<\EOF
4326 cat >> confdefs.h <<\EOF
4332 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
4333 echo "configure:4334: checking for mode_t" >&5
4334 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
4335 echo $ac_n "(cached) $ac_c" 1>&6
4337 cat > conftest.$ac_ext <<EOF
4338 #line 4339 "configure"
4339 #include "confdefs.h"
4340 #include <sys/types.h>
4346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4347 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4349 ac_cv_type_mode_t=yes
4352 ac_cv_type_mode_t=no
4357 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
4358 if test $ac_cv_type_mode_t = no; then
4359 cat >> confdefs.h <<\EOF
4365 echo $ac_n "checking for size_t""... $ac_c" 1>&6
4366 echo "configure:4367: checking for size_t" >&5
4367 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
4368 echo $ac_n "(cached) $ac_c" 1>&6
4370 cat > conftest.$ac_ext <<EOF
4371 #line 4372 "configure"
4372 #include "confdefs.h"
4373 #include <sys/types.h>
4379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4380 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4382 ac_cv_type_size_t=yes
4385 ac_cv_type_size_t=no
4390 echo "$ac_t""$ac_cv_type_size_t" 1>&6
4391 if test $ac_cv_type_size_t = no; then
4392 cat >> confdefs.h <<\EOF
4393 #define size_t unsigned
4399 echo $ac_n "checking for sigset_t""... $ac_c" 1>&6
4400 echo "configure:4401: checking for sigset_t" >&5
4401 if eval "test \"`echo '$''{'nmh_cv_type_sigset_t'+set}'`\" = set"; then
4402 echo $ac_n "(cached) $ac_c" 1>&6
4404 cat > conftest.$ac_ext <<EOF
4405 #line 4406 "configure"
4406 #include "confdefs.h"
4407 #include <sys/types.h>
4410 sigset_t tempsigset;
4413 if { (eval echo configure:4414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4415 nmh_cv_type_sigset_t=yes
4417 echo "configure: failed program was:" >&5
4418 cat conftest.$ac_ext >&5
4420 nmh_cv_type_sigset_t=no
4425 echo "$ac_t""$nmh_cv_type_sigset_t" 1>&6
4426 if test $nmh_cv_type_sigset_t = no; then
4427 cat >> confdefs.h <<\EOF
4428 #define sigset_t unsigned int
4433 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
4434 echo "configure:4435: checking for st_blksize in struct stat" >&5
4435 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
4436 echo $ac_n "(cached) $ac_c" 1>&6
4438 cat > conftest.$ac_ext <<EOF
4439 #line 4440 "configure"
4440 #include "confdefs.h"
4441 #include <sys/types.h>
4442 #include <sys/stat.h>
4444 struct stat s; s.st_blksize;
4447 if { (eval echo configure:4448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4449 ac_cv_struct_st_blksize=yes
4451 echo "configure: failed program was:" >&5
4452 cat conftest.$ac_ext >&5
4454 ac_cv_struct_st_blksize=no
4459 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
4460 if test $ac_cv_struct_st_blksize = yes; then
4461 cat >> confdefs.h <<\EOF
4462 #define HAVE_ST_BLKSIZE 1
4468 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
4469 echo "configure:4470: checking for tm_gmtoff in struct tm" >&5
4470 if eval "test \"`echo '$''{'nmh_cv_struct_tm_gmtoff'+set}'`\" = set"; then
4471 echo $ac_n "(cached) $ac_c" 1>&6
4473 cat > conftest.$ac_ext <<EOF
4474 #line 4475 "configure"
4475 #include "confdefs.h"
4476 #ifdef TIME_WITH_SYS_TIME
4477 # include <sys/time.h>
4480 # ifdef TM_IN_SYS_TIME
4481 # include <sys/time.h>
4487 struct tm temptm; temptm.tm_gmtoff = 0;
4490 if { (eval echo configure:4491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4492 nmh_cv_struct_tm_gmtoff=yes
4494 echo "configure: failed program was:" >&5
4495 cat conftest.$ac_ext >&5
4497 nmh_cv_struct_tm_gmtoff=no
4502 echo "$ac_t""$nmh_cv_struct_tm_gmtoff" 1>&6
4503 if test $nmh_cv_struct_tm_gmtoff = yes; then
4504 cat >> confdefs.h <<\EOF
4505 #define HAVE_TM_GMTOFF 1
4510 echo $ac_n "checking what style of signals to use""... $ac_c" 1>&6
4511 echo "configure:4512: checking what style of signals to use" >&5
4512 if test $ac_cv_func_sigaction = yes -a $ac_cv_func_sigprocmask = yes; then
4513 signals_style=POSIX_SIGNALS
4514 cat >> confdefs.h <<\EOF
4515 #define POSIX_SIGNALS 1
4518 cat >> confdefs.h <<\EOF
4519 #define RELIABLE_SIGNALS 1
4522 elif test $ac_cv_func_sigblock = yes -a $ac_cv_func_sigsetmask = yes; then
4523 signals_style=BSD_SIGNALS
4524 cat >> confdefs.h <<\EOF
4525 #define BSD_SIGNALS 1
4528 cat >> confdefs.h <<\EOF
4529 #define RELIABLE_SIGNALS 1
4532 elif test $ac_cv_func_sighold = yes -a $ac_cv_func_sigrelse = yes; then
4533 signals_style=SYSV_SIGNALS
4534 cat >> confdefs.h <<\EOF
4535 #define SYSV_SIGNALS 1
4539 signals_style=NO_SIGNAL_BLOCKING
4540 cat >> confdefs.h <<\EOF
4541 #define NO_SIGNAL_BLOCKING 1
4546 echo "$ac_t""$signals_style" 1>&6
4548 echo $ac_n "checking where signal.h is located""... $ac_c" 1>&6
4549 echo "configure:4550: checking where signal.h is located" >&5
4550 if eval "test \"`echo '$''{'nmh_cv_path_signal_h'+set}'`\" = set"; then
4551 echo $ac_n "(cached) $ac_c" 1>&6
4553 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
4554 test -f $SIGNAL_H && \
4555 grep '#[ ]*define[ ][ ]*SIG[0-9A-Z]*[ ]*[0-9][0-9]*' $SIGNAL_H > /dev/null && \
4558 nmh_cv_path_signal_h=$SIGNAL_H
4562 echo "$ac_t""$nmh_cv_path_signal_h" 1>&6
4563 SIGNAL_H=$nmh_cv_path_signal_h
4565 case "$target_os" in
4568 cat >> confdefs.h <<\EOF
4572 cat >> confdefs.h <<\EOF
4578 cat >> confdefs.h <<\EOF
4582 cat >> confdefs.h <<\EOF
4588 cat >> confdefs.h <<\EOF
4592 cat >> confdefs.h <<\EOF
4598 cat >> confdefs.h <<\EOF
4602 cat >> confdefs.h <<\EOF
4608 cat >> confdefs.h <<\EOF
4614 cat >> confdefs.h <<\EOF
4618 cat >> confdefs.h <<\EOF
4624 cat >> confdefs.h <<\EOF
4628 cat >> confdefs.h <<\EOF
4634 cat >> confdefs.h <<\EOF
4638 cat >> confdefs.h <<\EOF
4644 cat >> confdefs.h <<\EOF
4648 cat >> confdefs.h <<\EOF
4654 cat >> confdefs.h <<\EOF
4658 cat >> confdefs.h <<\EOF
4659 #define SCO_5_STDIO 1
4667 cat > confcache <<\EOF
4668 # This file is a shell script that caches the results of configure
4669 # tests run on this system so they can be shared between configure
4670 # scripts and configure runs. It is not useful on other systems.
4671 # If it contains results you don't want to keep, you may remove or edit it.
4673 # By default, configure uses ./config.cache as the cache file,
4674 # creating it if it does not exist already. You can give configure
4675 # the --cache-file=FILE option to use a different cache file; that is
4676 # what configure does when it calls configure scripts in
4677 # subdirectories, so they share the cache.
4678 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4679 # config.status only pays attention to the cache file if you give it the
4680 # --recheck option to rerun configure.
4683 # The following way of writing the cache mishandles newlines in values,
4684 # but we know of no workaround that is simple, portable, and efficient.
4685 # So, don't put newlines in cache variables' values.
4686 # Ultrix sh set writes to stderr and can't be redirected directly,
4687 # and sets the high bit in the cache file unless we assign to the vars.
4689 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4691 # `set' does not quote correctly, so add quotes (double-quote substitution
4692 # turns \\\\ into \\, and sed turns \\ into \).
4694 -e "s/'/'\\\\''/g" \
4695 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4698 # `set' quotes correctly as required by POSIX, so do not add quotes.
4699 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4702 if cmp -s $cache_file confcache; then
4705 if test -w $cache_file; then
4706 echo "updating cache $cache_file"
4707 cat confcache > $cache_file
4709 echo "not updating unwritable cache $cache_file"
4714 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4716 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4717 # Let make expand exec_prefix.
4718 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4720 # Any assignment to VPATH causes Sun make to only execute
4721 # the first set of double-colon rules, so remove it if not needed.
4722 # If there is a colon in the path, we need to keep it.
4723 if test "x$srcdir" = x.; then
4724 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4727 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4729 DEFS=-DHAVE_CONFIG_H
4731 # Without the "./", some shells look in PATH for config.status.
4732 : ${CONFIG_STATUS=./config.status}
4734 echo creating $CONFIG_STATUS
4735 rm -f $CONFIG_STATUS
4736 cat > $CONFIG_STATUS <<EOF
4738 # Generated automatically by configure.
4739 # Run this file to recreate the current configuration.
4740 # This directory was configured as follows,
4741 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4743 # $0 $ac_configure_args
4745 # Compiler output produced by configure, useful for debugging
4746 # configure, is in ./config.log if it exists.
4748 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4751 case "\$ac_option" in
4752 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4753 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4754 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4755 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4756 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4758 -help | --help | --hel | --he | --h)
4759 echo "\$ac_cs_usage"; exit 0 ;;
4760 *) echo "\$ac_cs_usage"; exit 1 ;;
4764 ac_given_srcdir=$srcdir
4765 ac_given_INSTALL="$INSTALL"
4767 trap 'rm -fr `echo "Makefile config/Makefile h/Makefile sbr/Makefile uip/Makefile \
4768 zotnet/Makefile zotnet/mts/Makefile \
4769 mts/Makefile mts/smtp/Makefile \
4770 mts/sendmail/Makefile mts/mmdf/Makefile etc/Makefile \
4771 docs/Makefile man/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4773 cat >> $CONFIG_STATUS <<EOF
4775 # Protect against being on the right side of a sed subst in config.status.
4776 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4777 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4781 s%@CFLAGS@%$CFLAGS%g
4782 s%@CPPFLAGS@%$CPPFLAGS%g
4783 s%@CXXFLAGS@%$CXXFLAGS%g
4784 s%@FFLAGS@%$FFLAGS%g
4786 s%@LDFLAGS@%$LDFLAGS%g
4788 s%@exec_prefix@%$exec_prefix%g
4789 s%@prefix@%$prefix%g
4790 s%@program_transform_name@%$program_transform_name%g
4791 s%@bindir@%$bindir%g
4792 s%@sbindir@%$sbindir%g
4793 s%@libexecdir@%$libexecdir%g
4794 s%@datadir@%$datadir%g
4795 s%@sysconfdir@%$sysconfdir%g
4796 s%@sharedstatedir@%$sharedstatedir%g
4797 s%@localstatedir@%$localstatedir%g
4798 s%@libdir@%$libdir%g
4799 s%@includedir@%$includedir%g
4800 s%@oldincludedir@%$oldincludedir%g
4801 s%@infodir@%$infodir%g
4802 s%@mandir@%$mandir%g
4804 s%@host_alias@%$host_alias%g
4805 s%@host_cpu@%$host_cpu%g
4806 s%@host_vendor@%$host_vendor%g
4807 s%@host_os@%$host_os%g
4808 s%@target@%$target%g
4809 s%@target_alias@%$target_alias%g
4810 s%@target_cpu@%$target_cpu%g
4811 s%@target_vendor@%$target_vendor%g
4812 s%@target_os@%$target_os%g
4814 s%@build_alias@%$build_alias%g
4815 s%@build_cpu@%$build_cpu%g
4816 s%@build_vendor@%$build_vendor%g
4817 s%@build_os@%$build_os%g
4818 s%@VERSION@%$VERSION%g
4819 s%@APOPLIB@%$APOPLIB%g
4820 s%@masquerade@%$masquerade%g
4821 s%@POPLIB@%$POPLIB%g
4822 s%@POPSED@%$POPSED%g
4824 s%@smtpservers@%$smtpservers%g
4826 s%@SET_MAKE@%$SET_MAKE%g
4827 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4828 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4829 s%@INSTALL_DATA@%$INSTALL_DATA%g
4830 s%@RANLIB@%$RANLIB%g
4833 s%@LEXLIB@%$LEXLIB%g
4834 s%@cutpath@%$cutpath%g
4835 s%@linttmp1@%$linttmp1%g
4836 s%@linttmp2@%$linttmp2%g
4838 s%@LINTFLAGS@%$LINTFLAGS%g
4839 s%@LIBTOOL@%$LIBTOOL%g
4840 s%@GNU_LIBTOOL@%$GNU_LIBTOOL%g
4841 s%@LORDER@%$LORDER%g
4843 s%@lspath@%$lspath%g
4844 s%@morepath@%$morepath%g
4845 s%@pagerpath@%$pagerpath%g
4846 s%@sendmailpath@%$sendmailpath%g
4847 s%@vipath@%$vipath%g
4848 s%@editorpath@%$editorpath%g
4849 s%@mailspool@%$mailspool%g
4851 s%@dotlockfilepath@%$dotlockfilepath%g
4852 s%@SETGID_MAIL@%$SETGID_MAIL%g
4853 s%@MAIL_SPOOL_GRP@%$MAIL_SPOOL_GRP%g
4854 s%@LIBOBJS@%$LIBOBJS%g
4855 s%@TERMLIB@%$TERMLIB%g
4856 s%@HESIOD_INCLUDES@%$HESIOD_INCLUDES%g
4857 s%@HESIOD_LIBS@%$HESIOD_LIBS%g
4858 s%@KRB4_INCLUDES@%$KRB4_INCLUDES%g
4859 s%@KRB4_LIBS@%$KRB4_LIBS%g
4860 s%@SASL_INCLUDES@%$SASL_INCLUDES%g
4861 s%@SASL_LIBS@%$SASL_LIBS%g
4862 s%@SIGNAL_H@%$SIGNAL_H%g
4867 cat >> $CONFIG_STATUS <<\EOF
4869 # Split the substitutions into bite-sized pieces for seds with
4870 # small command number limits, like on Digital OSF/1 and HP-UX.
4871 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4872 ac_file=1 # Number of current file.
4873 ac_beg=1 # First line for current file.
4874 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4877 while $ac_more_lines; do
4878 if test $ac_beg -gt 1; then
4879 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4881 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4883 if test ! -s conftest.s$ac_file; then
4885 rm -f conftest.s$ac_file
4887 if test -z "$ac_sed_cmds"; then
4888 ac_sed_cmds="sed -f conftest.s$ac_file"
4890 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4892 ac_file=`expr $ac_file + 1`
4894 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4897 if test -z "$ac_sed_cmds"; then
4902 cat >> $CONFIG_STATUS <<EOF
4904 CONFIG_FILES=\${CONFIG_FILES-"Makefile config/Makefile h/Makefile sbr/Makefile uip/Makefile \
4905 zotnet/Makefile zotnet/mts/Makefile \
4906 mts/Makefile mts/smtp/Makefile \
4907 mts/sendmail/Makefile mts/mmdf/Makefile etc/Makefile \
4908 docs/Makefile man/Makefile"}
4910 cat >> $CONFIG_STATUS <<\EOF
4911 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4912 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4914 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4915 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4916 *) ac_file_in="${ac_file}.in" ;;
4919 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4921 # Remove last slash and all that follows it. Not all systems have dirname.
4922 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4923 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4924 # The file is in a subdirectory.
4925 test ! -d "$ac_dir" && mkdir "$ac_dir"
4926 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4927 # A "../" for each directory in $ac_dir_suffix.
4928 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4930 ac_dir_suffix= ac_dots=
4933 case "$ac_given_srcdir" in
4935 if test -z "$ac_dots"; then top_srcdir=.
4936 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4937 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4939 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4940 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4943 case "$ac_given_INSTALL" in
4944 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4945 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4948 echo creating "$ac_file"
4950 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4952 *Makefile*) ac_comsub="1i\\
4953 # $configure_input" ;;
4957 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4959 s%@configure_input@%$configure_input%g
4960 s%@srcdir@%$srcdir%g
4961 s%@top_srcdir@%$top_srcdir%g
4962 s%@INSTALL@%$INSTALL%g
4963 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4967 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4968 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4970 # ac_d sets the value in "#define NAME VALUE" lines.
4971 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4972 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4975 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4976 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4977 ac_uB='\([ ]\)%\1#\2define\3'
4980 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4981 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4982 ac_eB='$%\1#\2define\3'
4986 if test "${CONFIG_HEADERS+set}" != set; then
4988 cat >> $CONFIG_STATUS <<EOF
4989 CONFIG_HEADERS="config.h"
4991 cat >> $CONFIG_STATUS <<\EOF
4993 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4994 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4996 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4997 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4998 *) ac_file_in="${ac_file}.in" ;;
5001 echo creating $ac_file
5003 rm -f conftest.frag conftest.in conftest.out
5004 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5005 cat $ac_file_inputs > conftest.in
5009 # Transform confdefs.h into a sed script conftest.vals that substitutes
5010 # the proper values into config.h.in to produce config.h. And first:
5011 # Protect against being on the right side of a sed subst in config.status.
5012 # Protect against being in an unquoted here document in config.status.
5014 cat > conftest.hdr <<\EOF
5017 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5021 sed -n -f conftest.hdr confdefs.h > conftest.vals
5024 # This sed command replaces #undef with comments. This is necessary, for
5025 # example, in the case of _POSIX_SOURCE, which is predefined and required
5026 # on some systems where configure will not decide to define it.
5027 cat >> conftest.vals <<\EOF
5028 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5031 # Break up conftest.vals because some shells have a limit on
5032 # the size of here documents, and old seds have small limits too.
5037 ac_lines=`grep -c . conftest.vals`
5038 # grep -c gives empty output for an empty file on some AIX systems.
5039 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5040 # Write a limited-size here document to conftest.frag.
5041 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5042 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5044 sed -f conftest.frag conftest.in > conftest.out
5046 mv conftest.out conftest.in
5048 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5050 mv conftest.tail conftest.vals
5054 cat >> $CONFIG_STATUS <<\EOF
5055 rm -f conftest.frag conftest.h
5056 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5057 cat conftest.in >> conftest.h
5059 if cmp -s $ac_file conftest.h 2>/dev/null; then
5060 echo "$ac_file is unchanged"
5063 # Remove last slash and all that follows it. Not all systems have dirname.
5064 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5065 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5066 # The file is in a subdirectory.
5067 test ! -d "$ac_dir" && mkdir "$ac_dir"
5070 mv conftest.h $ac_file
5075 cat >> $CONFIG_STATUS <<EOF
5078 cat >> $CONFIG_STATUS <<\EOF
5080 test -z "$CONFIG_HEADERS" || echo > stamp-h
5083 chmod +x $CONFIG_STATUS
5084 rm -fr confdefs* $ac_clean_files
5085 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5088 eval "nmhbin=${bindir}"; eval "nmhbin2=${nmhbin}"
5089 eval "nmhsysconf=${sysconfdir}"; eval "nmhsysconf2=${nmhsysconf}"
5090 eval "nmhlib=${libdir}"; eval "nmhlib2=${nmhlib}"
5091 eval "nmhman=${mandir}"
5094 if test x"$enable_pop" = x"yes"; then
5097 if test x"$enable_apop" = x"yes"; then
5098 pop_kinds="${pop_kinds}APOP "
5101 if test x"$with_krb4" != x -a x"$with_krb4" != x"no"; then
5102 pop_kinds="${pop_kinds}KPOP "
5105 pop_kinds="${pop_kinds}POP3)"
5111 nmh version : ${VERSION}
5112 target os : ${target}
5114 compiler flags : ${CFLAGS}
5115 linker flags : ${LDFLAGS}
5116 source code location : ${srcdir}
5117 binary install path : ${nmhbin2}
5118 libary install path : ${nmhlib2}
5119 config files install path : ${nmhsysconf2}
5120 man page install path : ${nmhman}
5121 backup prefix : ${backup_prefix}
5122 transport system : ${MTS}
5123 default smtp servers : ${smtpservers}
5124 default editor : ${editorpath}
5125 default pager : ${pagerpath}
5126 email address masquerading : ${masquerade}
5127 pop is enabled : ${pop_kinds}"