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-debug enable nmh code debugging"
17 --enable-masquerade[='draft_from[ mmailid[ username_extension]]']
18 enable 3 types of email address masquerading [none]"
20 --enable-mhe enable mhe support (DEFAULT)"
22 --enable-pop enable client-side support for pop"
24 --with-editor=EDITOR specify the default editor"
26 --with-hesiod=PREFIX specify location of Hesiod"
28 --with-krb4=PREFIX specify location of Kerberos V4 for kpop support"
30 --with-mts=MTS specify the mail transport agent"
32 --with-pager=PAGER specify the default pager"
34 --with-smtpservers='SMTPSERVER1[ SMTPSERVER2...]'
35 specify the default smtp server(s) [localhost]"
36 ac_default_prefix=/usr/local/nmh
38 # Initialize some variables set by options.
39 # The variables have the same names as the options, with
40 # dashes changed to underlines.
42 cache_file=./config.cache
51 program_transform_name=s,x,x,
59 bindir='${exec_prefix}/bin'
60 sbindir='${exec_prefix}/sbin'
61 libexecdir='${exec_prefix}/libexec'
62 datadir='${prefix}/share'
63 sysconfdir='${prefix}/etc'
64 sharedstatedir='${prefix}/com'
65 localstatedir='${prefix}/var'
66 libdir='${exec_prefix}/lib'
67 includedir='${prefix}/include'
68 oldincludedir='/usr/include'
69 infodir='${prefix}/info'
70 mandir='${prefix}/man'
72 # Initialize some other variables.
75 SHELL=${CONFIG_SHELL-/bin/sh}
76 # Maximum number of lines to put in a shell here document.
83 # If the previous option needs an argument, assign it.
84 if test -n "$ac_prev"; then
85 eval "$ac_prev=\$ac_option"
91 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
95 # Accept the important Cygnus configure options, so we can diagnose typos.
99 -bindir | --bindir | --bindi | --bind | --bin | --bi)
101 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
102 bindir="$ac_optarg" ;;
104 -build | --build | --buil | --bui | --bu)
106 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
107 build="$ac_optarg" ;;
109 -cache-file | --cache-file | --cache-fil | --cache-fi \
110 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
111 ac_prev=cache_file ;;
112 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
113 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
114 cache_file="$ac_optarg" ;;
116 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
118 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
120 datadir="$ac_optarg" ;;
122 -disable-* | --disable-*)
123 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
124 # Reject names that are not valid shell variable names.
125 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
126 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
128 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
129 eval "enable_${ac_feature}=no" ;;
131 -enable-* | --enable-*)
132 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
133 # Reject names that are not valid shell variable names.
134 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
135 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
137 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
142 eval "enable_${ac_feature}='$ac_optarg'" ;;
144 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
145 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
146 | --exec | --exe | --ex)
147 ac_prev=exec_prefix ;;
148 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
149 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
150 | --exec=* | --exe=* | --ex=*)
151 exec_prefix="$ac_optarg" ;;
153 -gas | --gas | --ga | --g)
154 # Obsolete; use --with-gas.
157 -help | --help | --hel | --he)
158 # Omit some internal or obsolete options to make the list less imposing.
159 # This message is too long to be a string in the A/UX 3.1 sh.
161 Usage: configure [options] [host]
162 Options: [defaults in brackets after descriptions]
164 --cache-file=FILE cache test results in FILE
165 --help print this message
166 --no-create do not create output files
167 --quiet, --silent do not print \`checking...' messages
168 --version print the version of autoconf that created configure
169 Directory and file names:
170 --prefix=PREFIX install architecture-independent files in PREFIX
172 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
174 --bindir=DIR user executables in DIR [EPREFIX/bin]
175 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
176 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
177 --datadir=DIR read-only architecture-independent data in DIR
179 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
180 --sharedstatedir=DIR modifiable architecture-independent data in DIR
182 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
183 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
184 --includedir=DIR C header files in DIR [PREFIX/include]
185 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
186 --infodir=DIR info documentation in DIR [PREFIX/info]
187 --mandir=DIR man documentation in DIR [PREFIX/man]
188 --srcdir=DIR find the sources in DIR [configure dir or ..]
189 --program-prefix=PREFIX prepend PREFIX to installed program names
190 --program-suffix=SUFFIX append SUFFIX to installed program names
191 --program-transform-name=PROGRAM
192 run sed PROGRAM on installed program names
196 --build=BUILD configure for building on BUILD [BUILD=HOST]
197 --host=HOST configure for HOST [guessed]
198 --target=TARGET configure for TARGET [TARGET=HOST]
199 Features and packages:
200 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
201 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
202 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
203 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
204 --x-includes=DIR X include files are in DIR
205 --x-libraries=DIR X library files are in DIR
207 if test -n "$ac_help"; then
208 echo "--enable and --with options recognized:$ac_help"
212 -host | --host | --hos | --ho)
214 -host=* | --host=* | --hos=* | --ho=*)
217 -includedir | --includedir | --includedi | --included | --include \
218 | --includ | --inclu | --incl | --inc)
219 ac_prev=includedir ;;
220 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
221 | --includ=* | --inclu=* | --incl=* | --inc=*)
222 includedir="$ac_optarg" ;;
224 -infodir | --infodir | --infodi | --infod | --info | --inf)
226 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
227 infodir="$ac_optarg" ;;
229 -libdir | --libdir | --libdi | --libd)
231 -libdir=* | --libdir=* | --libdi=* | --libd=*)
232 libdir="$ac_optarg" ;;
234 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
235 | --libexe | --libex | --libe)
236 ac_prev=libexecdir ;;
237 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
238 | --libexe=* | --libex=* | --libe=*)
239 libexecdir="$ac_optarg" ;;
241 -localstatedir | --localstatedir | --localstatedi | --localstated \
242 | --localstate | --localstat | --localsta | --localst \
243 | --locals | --local | --loca | --loc | --lo)
244 ac_prev=localstatedir ;;
245 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
246 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
247 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
248 localstatedir="$ac_optarg" ;;
250 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
252 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
253 mandir="$ac_optarg" ;;
256 # Obsolete; use --without-fp.
259 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
263 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
264 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
267 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
268 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
269 | --oldin | --oldi | --old | --ol | --o)
270 ac_prev=oldincludedir ;;
271 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
272 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
273 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
274 oldincludedir="$ac_optarg" ;;
276 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
278 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
279 prefix="$ac_optarg" ;;
281 -program-prefix | --program-prefix | --program-prefi | --program-pref \
282 | --program-pre | --program-pr | --program-p)
283 ac_prev=program_prefix ;;
284 -program-prefix=* | --program-prefix=* | --program-prefi=* \
285 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
286 program_prefix="$ac_optarg" ;;
288 -program-suffix | --program-suffix | --program-suffi | --program-suff \
289 | --program-suf | --program-su | --program-s)
290 ac_prev=program_suffix ;;
291 -program-suffix=* | --program-suffix=* | --program-suffi=* \
292 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
293 program_suffix="$ac_optarg" ;;
295 -program-transform-name | --program-transform-name \
296 | --program-transform-nam | --program-transform-na \
297 | --program-transform-n | --program-transform- \
298 | --program-transform | --program-transfor \
299 | --program-transfo | --program-transf \
300 | --program-trans | --program-tran \
301 | --progr-tra | --program-tr | --program-t)
302 ac_prev=program_transform_name ;;
303 -program-transform-name=* | --program-transform-name=* \
304 | --program-transform-nam=* | --program-transform-na=* \
305 | --program-transform-n=* | --program-transform-=* \
306 | --program-transform=* | --program-transfor=* \
307 | --program-transfo=* | --program-transf=* \
308 | --program-trans=* | --program-tran=* \
309 | --progr-tra=* | --program-tr=* | --program-t=*)
310 program_transform_name="$ac_optarg" ;;
312 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
313 | -silent | --silent | --silen | --sile | --sil)
316 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
318 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
320 sbindir="$ac_optarg" ;;
322 -sharedstatedir | --sharedstatedir | --sharedstatedi \
323 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
324 | --sharedst | --shareds | --shared | --share | --shar \
326 ac_prev=sharedstatedir ;;
327 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
328 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
329 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
331 sharedstatedir="$ac_optarg" ;;
333 -site | --site | --sit)
335 -site=* | --site=* | --sit=*)
338 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
340 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
341 srcdir="$ac_optarg" ;;
343 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
344 | --syscon | --sysco | --sysc | --sys | --sy)
345 ac_prev=sysconfdir ;;
346 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
347 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
348 sysconfdir="$ac_optarg" ;;
350 -target | --target | --targe | --targ | --tar | --ta | --t)
352 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
353 target="$ac_optarg" ;;
355 -v | -verbose | --verbose | --verbos | --verbo | --verb)
358 -version | --version | --versio | --versi | --vers)
359 echo "configure generated by autoconf version 2.13"
363 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
364 # Reject names that are not valid shell variable names.
365 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
366 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
368 ac_package=`echo $ac_package| sed 's/-/_/g'`
373 eval "with_${ac_package}='$ac_optarg'" ;;
375 -without-* | --without-*)
376 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
377 # Reject names that are not valid shell variable names.
378 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
379 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
381 ac_package=`echo $ac_package| sed 's/-/_/g'`
382 eval "with_${ac_package}=no" ;;
385 # Obsolete; use --with-x.
388 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
389 | --x-incl | --x-inc | --x-in | --x-i)
390 ac_prev=x_includes ;;
391 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
392 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
393 x_includes="$ac_optarg" ;;
395 -x-libraries | --x-libraries | --x-librarie | --x-librari \
396 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
397 ac_prev=x_libraries ;;
398 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
399 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
400 x_libraries="$ac_optarg" ;;
402 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
406 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
407 echo "configure: warning: $ac_option: invalid host type" 1>&2
409 if test "x$nonopt" != xNONE; then
410 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
418 if test -n "$ac_prev"; then
419 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
422 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
424 # File descriptor usage:
427 # 2 errors and warnings
428 # 3 some systems may open it to /dev/tty
429 # 4 used on the Kubota Titan
430 # 6 checking for... messages and results
431 # 5 compiler messages saved in config.log
432 if test "$silent" = yes; then
440 This file contains any messages produced by compilers while
441 running configure, to aid debugging if configure makes a mistake.
444 # Strip out --no-create and --no-recursion so they do not pile up.
445 # Also quote any args containing shell metacharacters.
450 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
451 | --no-cr | --no-c) ;;
452 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
453 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
454 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
455 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
456 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
461 # Only set these to C if already set. These must not be set unconditionally
462 # because not all systems understand e.g. LANG=C (notably SCO).
463 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
464 # Non-C LC_CTYPE values break the ctype check.
465 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
466 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
467 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
468 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
470 # confdefs.h avoids OS command line length limits that DEFS can exceed.
471 rm -rf conftest* confdefs.h
472 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
475 # A filename unique to this package, relative to the directory that
476 # configure is in, which we can look for to find out if srcdir is correct.
477 ac_unique_file=h/nmh.h
479 # Find the source files, if location was not specified.
480 if test -z "$srcdir"; then
481 ac_srcdir_defaulted=yes
482 # Try the directory containing this script, then its parent.
484 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
485 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
487 if test ! -r $srcdir/$ac_unique_file; then
491 ac_srcdir_defaulted=no
493 if test ! -r $srcdir/$ac_unique_file; then
494 if test "$ac_srcdir_defaulted" = yes; then
495 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
497 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
500 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
502 # Prefer explicitly selected file to automatically selected ones.
503 if test -z "$CONFIG_SITE"; then
504 if test "x$prefix" != xNONE; then
505 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
507 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
510 for ac_site_file in $CONFIG_SITE; do
511 if test -r "$ac_site_file"; then
512 echo "loading site script $ac_site_file"
517 if test -r "$cache_file"; then
518 echo "loading cache $cache_file"
521 echo "creating cache $cache_file"
526 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
527 ac_cpp='$CPP $CPPFLAGS'
528 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
529 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
530 cross_compiling=$ac_cv_prog_cc_cross
534 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
535 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
536 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
543 ac_n= ac_c='\c' ac_t=
550 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
551 if test -f $ac_dir/install-sh; then
553 ac_install_sh="$ac_aux_dir/install-sh -c"
555 elif test -f $ac_dir/install.sh; then
557 ac_install_sh="$ac_aux_dir/install.sh -c"
561 if test -z "$ac_aux_dir"; then
562 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
564 ac_config_guess=$ac_aux_dir/config.guess
565 ac_config_sub=$ac_aux_dir/config.sub
566 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
569 # Do some error checking and defaulting for the host and target type.
571 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
574 # 1. You are not allowed to specify --host, --target, and nonopt at the
576 # 2. Host defaults to nonopt.
577 # 3. If nonopt is not specified, then host defaults to the current host,
578 # as determined by config.guess.
579 # 4. Target and build default to nonopt.
580 # 5. If nonopt is not specified, then target and build default to host.
582 # The aliases save the names the user supplied, while $host etc.
583 # will get canonicalized.
584 case $host---$target---$nonopt in
585 NONE---*---* | *---NONE---* | *---*---NONE) ;;
586 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
590 # Make sure we can run config.sub.
591 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
592 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
595 echo $ac_n "checking host system type""... $ac_c" 1>&6
596 echo "configure:597: checking host system type" >&5
599 case "$host_alias" in
603 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
604 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
606 *) host_alias=$nonopt ;;
610 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
611 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
612 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
613 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
614 echo "$ac_t""$host" 1>&6
616 echo $ac_n "checking target system type""... $ac_c" 1>&6
617 echo "configure:618: checking target system type" >&5
620 case "$target_alias" in
623 NONE) target_alias=$host_alias ;;
624 *) target_alias=$nonopt ;;
628 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
629 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
630 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
631 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
632 echo "$ac_t""$target" 1>&6
634 echo $ac_n "checking build system type""... $ac_c" 1>&6
635 echo "configure:636: checking build system type" >&5
638 case "$build_alias" in
641 NONE) build_alias=$host_alias ;;
642 *) build_alias=$nonopt ;;
646 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
647 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
648 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
649 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
650 echo "$ac_t""$build" 1>&6
652 test "$host_alias" != "$target_alias" &&
653 test "$program_prefix$program_suffix$program_transform_name" = \
655 program_prefix=${target_alias}-
662 VERSION=`sed -e 's/nmh-//' ${srcdir}/VERSION`
663 echo "configuring for nmh-$VERSION"
666 # Check whether --enable-debug or --disable-debug was given.
667 if test "${enable_debug+set}" = set; then
668 enableval="$enable_debug"
672 if test x"$enable_nmh_debug" = x"yes"; then
676 # Check whether --enable-masquerade or --disable-masquerade was given.
677 if test "${enable_masquerade+set}" = set; then
678 enableval="$enable_masquerade"
679 if test x"$enable_masquerade" = x"yes"; then
680 masquerade="draft_from mmailid username_extension"
682 masquerade="$enable_masquerade"
687 # Check whether --enable-mhe or --disable-mhe was given.
688 if test "${enable_mhe+set}" = set; then
689 enableval="$enable_mhe"
694 if test x"$enable_mhe" != x"no" -a x"$enable_nmh_mhe" != x"no"; then
695 cat >> confdefs.h <<\EOF
700 # Check whether --enable-pop or --disable-pop was given.
701 if test "${enable_pop+set}" = set; then
702 enableval="$enable_pop"
706 if test x"$enable_nmh_pop" = x"yes"; then
709 if test x"$enable_pop" = x"yes"; then
710 cat >> confdefs.h <<\EOF
714 POPSED='/^%nmhbeginpop%/d;/^%nmhendpop%/d'
716 POPSED='/^%nmhbeginpop%/,/^%nmhendpop%/d'
719 # Check whether --with-editor or --without-editor was given.
720 if test "${with_editor+set}" = set; then
721 withval="$with_editor"
726 if test -n "$with_editor"; then
727 editorpath="$with_editor"
730 # Check whether --with-hesiod or --without-hesiod was given.
731 if test "${with_hesiod+set}" = set; then
732 withval="$with_hesiod"
736 if test x"$with_hesiod" != x -a x"$with_hesiod" != x"no"; then
737 cat >> confdefs.h <<\EOF
742 # Check whether --with-krb4 or --without-krb4 was given.
743 if test "${with_krb4+set}" = set; then
748 if test x"$with_krb4" != x -a x"$with_krb4" != x"no"; then
749 cat >> confdefs.h <<\EOF
752 cat >> confdefs.h <<\EOF
753 #define KPOP_PRINCIPAL "pop"
757 # Check whether --with-mts or --without-mts was given.
758 if test "${with_mts+set}" = set; then
764 if test x"$with_mts" = x"smtp"; then
766 MTSLIB="mts/smtp/libsmtp.a"
767 cat >> confdefs.h <<\EOF
770 elif test x"$with_mts" = x"sendmail"; then
772 MTSLIB="mts/sendmail/libsend.a"
773 cat >> confdefs.h <<\EOF
778 MTSLIB="mts/smtp/libsmtp.a"
779 cat >> confdefs.h <<\EOF
785 # Check whether --with-pager or --without-pager was given.
786 if test "${with_pager+set}" = set; then
787 withval="$with_pager"
792 if test -n "$with_pager"; then
793 pagerpath="$with_pager"
796 # Check whether --with-smtpservers or --without-smtpservers was given.
797 if test "${with_smtpservers+set}" = set; then
798 withval="$with_smtpservers"
802 if test -n "$with_smtpservers"; then
803 smtpservers="$with_smtpservers"
805 smtpservers="localhost"
810 test -z "$CFLAGS" && CFLAGS= auto_cflags=1
811 if test x"$enable_debug" = x"yes"; then
812 test -z "$LDFLAGS" && LDFLAGS=-g
815 # Extract the first word of "gcc", so it can be a program name with args.
816 set dummy gcc; ac_word=$2
817 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
818 echo "configure:819: checking for $ac_word" >&5
819 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
820 echo $ac_n "(cached) $ac_c" 1>&6
822 if test -n "$CC"; then
823 ac_cv_prog_CC="$CC" # Let the user override the test.
825 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
827 for ac_dir in $ac_dummy; do
828 test -z "$ac_dir" && ac_dir=.
829 if test -f $ac_dir/$ac_word; then
838 if test -n "$CC"; then
839 echo "$ac_t""$CC" 1>&6
841 echo "$ac_t""no" 1>&6
844 if test -z "$CC"; then
845 # Extract the first word of "cc", so it can be a program name with args.
846 set dummy cc; ac_word=$2
847 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
848 echo "configure:849: checking for $ac_word" >&5
849 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
850 echo $ac_n "(cached) $ac_c" 1>&6
852 if test -n "$CC"; then
853 ac_cv_prog_CC="$CC" # Let the user override the test.
855 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
858 for ac_dir in $ac_dummy; do
859 test -z "$ac_dir" && ac_dir=.
860 if test -f $ac_dir/$ac_word; then
861 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
870 if test $ac_prog_rejected = yes; then
871 # We found a bogon in the path, so make sure we never use it.
872 set dummy $ac_cv_prog_CC
874 if test $# -gt 0; then
875 # We chose a different compiler from the bogus one.
876 # However, it has the same basename, so the bogon will be chosen
877 # first if we set CC to just the basename; use the full file name.
879 set dummy "$ac_dir/$ac_word" "$@"
887 if test -n "$CC"; then
888 echo "$ac_t""$CC" 1>&6
890 echo "$ac_t""no" 1>&6
893 if test -z "$CC"; then
896 # Extract the first word of "cl", so it can be a program name with args.
897 set dummy cl; ac_word=$2
898 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
899 echo "configure:900: checking for $ac_word" >&5
900 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
901 echo $ac_n "(cached) $ac_c" 1>&6
903 if test -n "$CC"; then
904 ac_cv_prog_CC="$CC" # Let the user override the test.
906 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
908 for ac_dir in $ac_dummy; do
909 test -z "$ac_dir" && ac_dir=.
910 if test -f $ac_dir/$ac_word; then
919 if test -n "$CC"; then
920 echo "$ac_t""$CC" 1>&6
922 echo "$ac_t""no" 1>&6
927 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
930 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
931 echo "configure:932: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
934 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
935 ac_cpp='$CPP $CPPFLAGS'
936 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
937 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
938 cross_compiling=$ac_cv_prog_cc_cross
940 cat > conftest.$ac_ext << EOF
942 #line 943 "configure"
943 #include "confdefs.h"
947 if { (eval echo configure:948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
948 ac_cv_prog_cc_works=yes
949 # If we can't run a trivial program, we are probably using a cross compiler.
950 if (./conftest; exit) 2>/dev/null; then
951 ac_cv_prog_cc_cross=no
953 ac_cv_prog_cc_cross=yes
956 echo "configure: failed program was:" >&5
957 cat conftest.$ac_ext >&5
958 ac_cv_prog_cc_works=no
962 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
963 ac_cpp='$CPP $CPPFLAGS'
964 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
965 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
966 cross_compiling=$ac_cv_prog_cc_cross
968 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
969 if test $ac_cv_prog_cc_works = no; then
970 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
972 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
973 echo "configure:974: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
974 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
975 cross_compiling=$ac_cv_prog_cc_cross
977 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
978 echo "configure:979: checking whether we are using GNU C" >&5
979 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
980 echo $ac_n "(cached) $ac_c" 1>&6
982 cat > conftest.c <<EOF
987 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:988: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
994 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
996 if test $ac_cv_prog_gcc = yes; then
1002 ac_test_CFLAGS="${CFLAGS+set}"
1003 ac_save_CFLAGS="$CFLAGS"
1005 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1006 echo "configure:1007: checking whether ${CC-cc} accepts -g" >&5
1007 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1008 echo $ac_n "(cached) $ac_c" 1>&6
1010 echo 'void f(){}' > conftest.c
1011 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1020 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1021 if test "$ac_test_CFLAGS" = set; then
1022 CFLAGS="$ac_save_CFLAGS"
1023 elif test $ac_cv_prog_cc_g = yes; then
1024 if test "$GCC" = yes; then
1030 if test "$GCC" = yes; then
1038 if test -n "$auto_cflags"; then
1039 if test x"$enable_debug" = x"yes"; then
1040 if test -n "$GCC"; then
1041 test -z "$CFLAGS" && CFLAGS="-Wall -g" || CFLAGS="$CFLAGS -Wall -g"
1043 test -z "$CFLAGS" && CFLAGS=-g || CFLAGS="$CFLAGS -g"
1046 test -z "$LDFLAGS" && LDFLAGS=-s
1047 if test -n "$GCC"; then
1048 test -z "$CFLAGS" && CFLAGS=-O2 || CFLAGS="$CFLAGS -O2"
1050 test -z "$CFLAGS" && CFLAGS=-O || CFLAGS="$CFLAGS -O"
1055 echo $ac_n "checking for working const""... $ac_c" 1>&6
1056 echo "configure:1057: checking for working const" >&5
1057 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1058 echo $ac_n "(cached) $ac_c" 1>&6
1060 cat > conftest.$ac_ext <<EOF
1061 #line 1062 "configure"
1062 #include "confdefs.h"
1066 /* Ultrix mips cc rejects this. */
1067 typedef int charset[2]; const charset x;
1068 /* SunOS 4.1.1 cc rejects this. */
1069 char const *const *ccp;
1071 /* NEC SVR4.0.2 mips cc rejects this. */
1072 struct point {int x, y;};
1073 static struct point const zero = {0,0};
1074 /* AIX XL C 1.02.0.0 rejects this.
1075 It does not let you subtract one const X* pointer from another in an arm
1076 of an if-expression whose if-part is not a constant expression */
1077 const char *g = "string";
1078 ccp = &g + (g ? g-g : 0);
1079 /* HPUX 7.0 cc rejects these. */
1082 ccp = (char const *const *) p;
1083 { /* SCO 3.2v4 cc rejects this. */
1085 char const *s = 0 ? (char *) 0 : (char const *) 0;
1089 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1091 const int *foo = &x[0];
1094 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1095 typedef const int *iptr;
1099 { /* AIX XL C 1.02.0.0 rejects this saying
1100 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1101 struct s { int j; const int *ap[3]; };
1102 struct s *b; b->j = 5;
1104 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1110 if { (eval echo configure:1111: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1114 echo "configure: failed program was:" >&5
1115 cat conftest.$ac_ext >&5
1122 echo "$ac_t""$ac_cv_c_const" 1>&6
1123 if test $ac_cv_c_const = no; then
1124 cat >> confdefs.h <<\EOF
1130 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1131 echo "configure:1132: checking whether ${MAKE-make} sets \${MAKE}" >&5
1132 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1133 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1134 echo $ac_n "(cached) $ac_c" 1>&6
1136 cat > conftestmake <<\EOF
1138 @echo 'ac_maketemp="${MAKE}"'
1140 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1141 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1142 if test -n "$ac_maketemp"; then
1143 eval ac_cv_prog_make_${ac_make}_set=yes
1145 eval ac_cv_prog_make_${ac_make}_set=no
1149 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1150 echo "$ac_t""yes" 1>&6
1153 echo "$ac_t""no" 1>&6
1154 SET_MAKE="MAKE=${MAKE-make}"
1156 # Find a good install program. We prefer a C program (faster),
1157 # so one script is as good as another. But avoid the broken or
1158 # incompatible versions:
1159 # SysV /etc/install, /usr/sbin/install
1160 # SunOS /usr/etc/install
1161 # IRIX /sbin/install
1163 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1164 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1165 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1166 # ./install, which can be erroneously created by make from ./install.sh.
1167 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1168 echo "configure:1169: checking for a BSD compatible install" >&5
1169 if test -z "$INSTALL"; then
1170 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1171 echo $ac_n "(cached) $ac_c" 1>&6
1173 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1174 for ac_dir in $PATH; do
1175 # Account for people who put trailing slashes in PATH elements.
1177 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1179 # OSF1 and SCO ODT 3.0 have their own names for install.
1180 # Don't use installbsd from OSF since it installs stuff as root
1182 for ac_prog in ginstall scoinst install; do
1183 if test -f $ac_dir/$ac_prog; then
1184 if test $ac_prog = install &&
1185 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1186 # AIX install. It has an incompatible calling convention.
1189 ac_cv_path_install="$ac_dir/$ac_prog -c"
1200 if test "${ac_cv_path_install+set}" = set; then
1201 INSTALL="$ac_cv_path_install"
1203 # As a last resort, use the slow shell script. We don't cache a
1204 # path for INSTALL within a source directory, because that will
1205 # break other packages using the cache if that directory is
1206 # removed, or if the path is relative.
1207 INSTALL="$ac_install_sh"
1210 echo "$ac_t""$INSTALL" 1>&6
1212 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1213 # It thinks the first close brace ends the variable substitution.
1214 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1216 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1218 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1219 # Extract the first word of "ranlib", so it can be a program name with args.
1220 set dummy ranlib; ac_word=$2
1221 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1222 echo "configure:1223: checking for $ac_word" >&5
1223 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1224 echo $ac_n "(cached) $ac_c" 1>&6
1226 if test -n "$RANLIB"; then
1227 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1229 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1231 for ac_dir in $ac_dummy; do
1232 test -z "$ac_dir" && ac_dir=.
1233 if test -f $ac_dir/$ac_word; then
1234 ac_cv_prog_RANLIB="ranlib"
1239 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1242 RANLIB="$ac_cv_prog_RANLIB"
1243 if test -n "$RANLIB"; then
1244 echo "$ac_t""$RANLIB" 1>&6
1246 echo "$ac_t""no" 1>&6
1248 for ac_prog in mawk gawk nawk awk
1250 # Extract the first word of "$ac_prog", so it can be a program name with args.
1251 set dummy $ac_prog; ac_word=$2
1252 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1253 echo "configure:1254: checking for $ac_word" >&5
1254 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1255 echo $ac_n "(cached) $ac_c" 1>&6
1257 if test -n "$AWK"; then
1258 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1260 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1262 for ac_dir in $ac_dummy; do
1263 test -z "$ac_dir" && ac_dir=.
1264 if test -f $ac_dir/$ac_word; then
1265 ac_cv_prog_AWK="$ac_prog"
1272 AWK="$ac_cv_prog_AWK"
1273 if test -n "$AWK"; then
1274 echo "$ac_t""$AWK" 1>&6
1276 echo "$ac_t""no" 1>&6
1279 test -n "$AWK" && break
1281 # Extract the first word of "flex", so it can be a program name with args.
1282 set dummy flex; ac_word=$2
1283 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1284 echo "configure:1285: checking for $ac_word" >&5
1285 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1286 echo $ac_n "(cached) $ac_c" 1>&6
1288 if test -n "$LEX"; then
1289 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1291 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1293 for ac_dir in $ac_dummy; do
1294 test -z "$ac_dir" && ac_dir=.
1295 if test -f $ac_dir/$ac_word; then
1296 ac_cv_prog_LEX="flex"
1301 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1304 LEX="$ac_cv_prog_LEX"
1305 if test -n "$LEX"; then
1306 echo "$ac_t""$LEX" 1>&6
1308 echo "$ac_t""no" 1>&6
1311 if test -z "$LEXLIB"
1317 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1318 echo "configure:1319: checking for yywrap in -l$ac_lib" >&5
1319 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1320 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1321 echo $ac_n "(cached) $ac_c" 1>&6
1323 ac_save_LIBS="$LIBS"
1324 LIBS="-l$ac_lib $LIBS"
1325 cat > conftest.$ac_ext <<EOF
1326 #line 1327 "configure"
1327 #include "confdefs.h"
1328 /* Override any gcc2 internal prototype to avoid an error. */
1329 /* We use char because int might match the return type of a gcc2
1330 builtin and then its argument prototype would still apply. */
1337 if { (eval echo configure:1338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1339 eval "ac_cv_lib_$ac_lib_var=yes"
1341 echo "configure: failed program was:" >&5
1342 cat conftest.$ac_ext >&5
1344 eval "ac_cv_lib_$ac_lib_var=no"
1347 LIBS="$ac_save_LIBS"
1350 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1351 echo "$ac_t""yes" 1>&6
1354 echo "$ac_t""no" 1>&6
1359 pathtmp=/usr/bin:/bin:/usr/local/bin:/usr/xpg4/bin:/usr/ucb
1360 # Extract the first word of "cut", so it can be a program name with args.
1361 set dummy cut; ac_word=$2
1362 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1363 echo "configure:1364: checking for $ac_word" >&5
1364 if eval "test \"`echo '$''{'ac_cv_path_cutpath'+set}'`\" = set"; then
1365 echo $ac_n "(cached) $ac_c" 1>&6
1369 ac_cv_path_cutpath="$cutpath" # Let the user override the test with a path.
1372 ac_cv_path_cutpath="$cutpath" # Let the user override the test with a dos path.
1375 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1377 for ac_dir in $ac_dummy; do
1378 test -z "$ac_dir" && ac_dir=.
1379 if test -f $ac_dir/$ac_word; then
1380 ac_cv_path_cutpath="$ac_dir/$ac_word"
1385 test -z "$ac_cv_path_cutpath" && ac_cv_path_cutpath="no"
1389 cutpath="$ac_cv_path_cutpath"
1390 if test -n "$cutpath"; then
1391 echo "$ac_t""$cutpath" 1>&6
1393 echo "$ac_t""no" 1>&6
1398 # Extract the first word of "libtool", so it can be a program name with args.
1399 set dummy libtool; ac_word=$2
1400 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1401 echo "configure:1402: checking for $ac_word" >&5
1402 if eval "test \"`echo '$''{'ac_cv_prog_LIBTOOL'+set}'`\" = set"; then
1403 echo $ac_n "(cached) $ac_c" 1>&6
1405 if test -n "$LIBTOOL"; then
1406 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
1408 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1410 for ac_dir in $ac_dummy; do
1411 test -z "$ac_dir" && ac_dir=.
1412 if test -f $ac_dir/$ac_word; then
1413 ac_cv_prog_LIBTOOL="libtool"
1420 LIBTOOL="$ac_cv_prog_LIBTOOL"
1421 if test -n "$LIBTOOL"; then
1422 echo "$ac_t""$LIBTOOL" 1>&6
1424 echo "$ac_t""no" 1>&6
1428 tmptest=`$LIBTOOL --version 2>&1 | grep GNU`
1429 if test x"$tmptest" != x ; then
1434 # Extract the first word of "lorder", so it can be a program name with args.
1435 set dummy lorder; ac_word=$2
1436 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1437 echo "configure:1438: checking for $ac_word" >&5
1438 if eval "test \"`echo '$''{'ac_cv_prog_LORDER'+set}'`\" = set"; then
1439 echo $ac_n "(cached) $ac_c" 1>&6
1441 if test -n "$LORDER"; then
1442 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
1444 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1446 for ac_dir in $ac_dummy; do
1447 test -z "$ac_dir" && ac_dir=.
1448 if test -f $ac_dir/$ac_word; then
1449 ac_cv_prog_LORDER="lorder"
1454 test -z "$ac_cv_prog_LORDER" && ac_cv_prog_LORDER="no"
1457 LORDER="$ac_cv_prog_LORDER"
1458 if test -n "$LORDER"; then
1459 echo "$ac_t""$LORDER" 1>&6
1461 echo "$ac_t""no" 1>&6
1463 # Extract the first word of "tsort", so it can be a program name with args.
1464 set dummy tsort; ac_word=$2
1465 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1466 echo "configure:1467: checking for $ac_word" >&5
1467 if eval "test \"`echo '$''{'ac_cv_prog_TSORT'+set}'`\" = set"; then
1468 echo $ac_n "(cached) $ac_c" 1>&6
1470 if test -n "$TSORT"; then
1471 ac_cv_prog_TSORT="$TSORT" # Let the user override the test.
1473 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1475 for ac_dir in $ac_dummy; do
1476 test -z "$ac_dir" && ac_dir=.
1477 if test -f $ac_dir/$ac_word; then
1478 ac_cv_prog_TSORT="tsort"
1483 test -z "$ac_cv_prog_TSORT" && ac_cv_prog_TSORT="no"
1486 TSORT="$ac_cv_prog_TSORT"
1487 if test -n "$TSORT"; then
1488 echo "$ac_t""$TSORT" 1>&6
1490 echo "$ac_t""no" 1>&6
1493 if test x$ac_cv_prog_LORDER != xlorder -o x$ac_cv_prog_TSORT != xtsort; then
1498 pathtmp=/usr/bin:/bin:/usr/local/bin:/usr/xpg4/bin:/usr/ucb
1499 # Extract the first word of "ls", so it can be a program name with args.
1500 set dummy ls; ac_word=$2
1501 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1502 echo "configure:1503: checking for $ac_word" >&5
1503 if eval "test \"`echo '$''{'ac_cv_path_lspath'+set}'`\" = set"; then
1504 echo $ac_n "(cached) $ac_c" 1>&6
1508 ac_cv_path_lspath="$lspath" # Let the user override the test with a path.
1511 ac_cv_path_lspath="$lspath" # Let the user override the test with a dos path.
1514 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1516 for ac_dir in $ac_dummy; do
1517 test -z "$ac_dir" && ac_dir=.
1518 if test -f $ac_dir/$ac_word; then
1519 ac_cv_path_lspath="$ac_dir/$ac_word"
1524 test -z "$ac_cv_path_lspath" && ac_cv_path_lspath="no"
1528 lspath="$ac_cv_path_lspath"
1529 if test -n "$lspath"; then
1530 echo "$ac_t""$lspath" 1>&6
1532 echo "$ac_t""no" 1>&6
1536 if test "$lspath" != "no"; then
1537 echo $ac_n "checking how to get ls to show us the group ownership of a file""... $ac_c" 1>&6
1538 echo "configure:1539: checking how to get ls to show us the group ownership of a file" >&5
1539 if eval "test \"`echo '$''{'nmh_cv_ls_grpopt'+set}'`\" = set"; then
1540 echo $ac_n "(cached) $ac_c" 1>&6
1542 if test x"`$lspath -dl / | $AWK '{print $9}'`" = x"/"; then
1543 nmh_cv_ls_grpopt="-l"
1545 nmh_cv_ls_grpopt="-lg"
1549 echo "$ac_t""$nmh_cv_ls_grpopt" 1>&6
1552 pathtmp=/usr/bin:/bin:/usr/ucb:/usr/local/bin
1553 # Extract the first word of "more", so it can be a program name with args.
1554 set dummy more; ac_word=$2
1555 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1556 echo "configure:1557: checking for $ac_word" >&5
1557 if eval "test \"`echo '$''{'ac_cv_path_morepath'+set}'`\" = set"; then
1558 echo $ac_n "(cached) $ac_c" 1>&6
1562 ac_cv_path_morepath="$morepath" # Let the user override the test with a path.
1565 ac_cv_path_morepath="$morepath" # Let the user override the test with a dos path.
1568 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1570 for ac_dir in $ac_dummy; do
1571 test -z "$ac_dir" && ac_dir=.
1572 if test -f $ac_dir/$ac_word; then
1573 ac_cv_path_morepath="$ac_dir/$ac_word"
1578 test -z "$ac_cv_path_morepath" && ac_cv_path_morepath="no"
1582 morepath="$ac_cv_path_morepath"
1583 if test -n "$morepath"; then
1584 echo "$ac_t""$morepath" 1>&6
1586 echo "$ac_t""no" 1>&6
1590 if test -z "$pagerpath"; then
1591 pagerpath="$morepath"
1594 pathtmp=/usr/lib:/usr/sbin:/usr/etc:/usr/ucblib:/usr/bin:/bin
1595 # Extract the first word of "sendmail", so it can be a program name with args.
1596 set dummy sendmail; ac_word=$2
1597 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1598 echo "configure:1599: checking for $ac_word" >&5
1599 if eval "test \"`echo '$''{'ac_cv_path_sendmailpath'+set}'`\" = set"; then
1600 echo $ac_n "(cached) $ac_c" 1>&6
1602 case "$sendmailpath" in
1604 ac_cv_path_sendmailpath="$sendmailpath" # Let the user override the test with a path.
1607 ac_cv_path_sendmailpath="$sendmailpath" # Let the user override the test with a dos path.
1610 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1612 for ac_dir in $ac_dummy; do
1613 test -z "$ac_dir" && ac_dir=.
1614 if test -f $ac_dir/$ac_word; then
1615 ac_cv_path_sendmailpath="$ac_dir/$ac_word"
1620 test -z "$ac_cv_path_sendmailpath" && ac_cv_path_sendmailpath="no"
1624 sendmailpath="$ac_cv_path_sendmailpath"
1625 if test -n "$sendmailpath"; then
1626 echo "$ac_t""$sendmailpath" 1>&6
1628 echo "$ac_t""no" 1>&6
1632 pathtmp=/usr/bin:/bin:/usr/ucb:/usr/local/bin
1633 # Extract the first word of "vi", so it can be a program name with args.
1634 set dummy vi; ac_word=$2
1635 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1636 echo "configure:1637: checking for $ac_word" >&5
1637 if eval "test \"`echo '$''{'ac_cv_path_vipath'+set}'`\" = set"; then
1638 echo $ac_n "(cached) $ac_c" 1>&6
1642 ac_cv_path_vipath="$vipath" # Let the user override the test with a path.
1645 ac_cv_path_vipath="$vipath" # Let the user override the test with a dos path.
1648 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1650 for ac_dir in $ac_dummy; do
1651 test -z "$ac_dir" && ac_dir=.
1652 if test -f $ac_dir/$ac_word; then
1653 ac_cv_path_vipath="$ac_dir/$ac_word"
1658 test -z "$ac_cv_path_vipath" && ac_cv_path_vipath="no"
1662 vipath="$ac_cv_path_vipath"
1663 if test -n "$vipath"; then
1664 echo "$ac_t""$vipath" 1>&6
1666 echo "$ac_t""no" 1>&6
1670 if test -z "$editorpath"; then
1671 editorpath="$vipath"
1674 echo $ac_n "checking for broken vi""... $ac_c" 1>&6
1675 echo "configure:1676: checking for broken vi" >&5
1676 if eval "test \"`echo '$''{'nmh_cv_attvibug'+set}'`\" = set"; then
1677 echo $ac_n "(cached) $ac_c" 1>&6
1679 if echo 'r /nonexist-file
1680 q' | ex > /dev/null 2>&1
1688 echo "$ac_t""$nmh_cv_attvibug" 1>&6
1690 if test "$nmh_cv_attvibug" = yes; then
1691 cat >> confdefs.h <<\EOF
1696 echo $ac_n "checking where mail spool is located""... $ac_c" 1>&6
1697 echo "configure:1698: checking where mail spool is located" >&5
1698 if eval "test \"`echo '$''{'nmh_cv_mailspool'+set}'`\" = set"; then
1699 echo $ac_n "(cached) $ac_c" 1>&6
1701 for mailspool in /var/mail /var/spool/mail /usr/spool/mail /dev/null; do
1702 test -d $mailspool && break
1704 nmh_cv_mailspool=$mailspool
1708 echo "$ac_t""$nmh_cv_mailspool" 1>&6
1709 mailspool=$nmh_cv_mailspool
1711 if test "$lspath" != "no" -a "$cutpath" != "no"; then
1712 echo $ac_n "checking whether the mail spool is world-writable""... $ac_c" 1>&6
1713 echo "configure:1714: checking whether the mail spool is world-writable" >&5
1714 if eval "test \"`echo '$''{'nmh_cv_mailspool_world_writable'+set}'`\" = set"; then
1715 echo $ac_n "(cached) $ac_c" 1>&6
1717 if test "`$lspath -dlL $mailspool | $cutpath -c9`" = "-"; then
1718 nmh_cv_mailspool_world_writable=no
1720 nmh_cv_mailspool_world_writable=yes
1724 echo "$ac_t""$nmh_cv_mailspool_world_writable" 1>&6
1727 if test x"$nmh_cv_mailspool_world_writable" = x"no"; then
1728 cat >> confdefs.h <<\EOF
1734 echo $ac_n "checking what group owns the mail spool""... $ac_c" 1>&6
1735 echo "configure:1736: checking what group owns the mail spool" >&5
1736 if eval "test \"`echo '$''{'nmh_cv_ls_mail_grp'+set}'`\" = set"; then
1737 echo $ac_n "(cached) $ac_c" 1>&6
1739 nmh_cv_ls_mail_grp=`$lspath -dL $nmh_cv_ls_grpopt $mailspool|$AWK '{print $4}'`
1743 echo "$ac_t""$nmh_cv_ls_mail_grp" 1>&6
1744 MAIL_SPOOL_GRP=$nmh_cv_ls_mail_grp
1747 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1749 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1750 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1751 echo "configure:1752: checking for $ac_hdr that defines DIR" >&5
1752 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1753 echo $ac_n "(cached) $ac_c" 1>&6
1755 cat > conftest.$ac_ext <<EOF
1756 #line 1757 "configure"
1757 #include "confdefs.h"
1758 #include <sys/types.h>
1764 if { (eval echo configure:1765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1766 eval "ac_cv_header_dirent_$ac_safe=yes"
1768 echo "configure: failed program was:" >&5
1769 cat conftest.$ac_ext >&5
1771 eval "ac_cv_header_dirent_$ac_safe=no"
1775 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1776 echo "$ac_t""yes" 1>&6
1777 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1778 cat >> confdefs.h <<EOF
1779 #define $ac_tr_hdr 1
1781 ac_header_dirent=$ac_hdr; break
1783 echo "$ac_t""no" 1>&6
1786 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1787 if test $ac_header_dirent = dirent.h; then
1788 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1789 echo "configure:1790: checking for opendir in -ldir" >&5
1790 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1791 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1792 echo $ac_n "(cached) $ac_c" 1>&6
1794 ac_save_LIBS="$LIBS"
1796 cat > conftest.$ac_ext <<EOF
1797 #line 1798 "configure"
1798 #include "confdefs.h"
1799 /* Override any gcc2 internal prototype to avoid an error. */
1800 /* We use char because int might match the return type of a gcc2
1801 builtin and then its argument prototype would still apply. */
1808 if { (eval echo configure:1809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1810 eval "ac_cv_lib_$ac_lib_var=yes"
1812 echo "configure: failed program was:" >&5
1813 cat conftest.$ac_ext >&5
1815 eval "ac_cv_lib_$ac_lib_var=no"
1818 LIBS="$ac_save_LIBS"
1821 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1822 echo "$ac_t""yes" 1>&6
1825 echo "$ac_t""no" 1>&6
1829 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1830 echo "configure:1831: checking for opendir in -lx" >&5
1831 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1832 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1833 echo $ac_n "(cached) $ac_c" 1>&6
1835 ac_save_LIBS="$LIBS"
1837 cat > conftest.$ac_ext <<EOF
1838 #line 1839 "configure"
1839 #include "confdefs.h"
1840 /* Override any gcc2 internal prototype to avoid an error. */
1841 /* We use char because int might match the return type of a gcc2
1842 builtin and then its argument prototype would still apply. */
1849 if { (eval echo configure:1850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1851 eval "ac_cv_lib_$ac_lib_var=yes"
1853 echo "configure: failed program was:" >&5
1854 cat conftest.$ac_ext >&5
1856 eval "ac_cv_lib_$ac_lib_var=no"
1859 LIBS="$ac_save_LIBS"
1862 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1863 echo "$ac_t""yes" 1>&6
1866 echo "$ac_t""no" 1>&6
1871 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1872 echo "configure:1873: checking how to run the C preprocessor" >&5
1873 # On Suns, sometimes $CPP names a directory.
1874 if test -n "$CPP" && test -d "$CPP"; then
1877 if test -z "$CPP"; then
1878 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1879 echo $ac_n "(cached) $ac_c" 1>&6
1881 # This must be in double quotes, not single quotes, because CPP may get
1882 # substituted into the Makefile and "${CC-cc}" will confuse make.
1884 # On the NeXT, cc -E runs the code through the compiler's parser,
1885 # not just through cpp.
1886 cat > conftest.$ac_ext <<EOF
1887 #line 1888 "configure"
1888 #include "confdefs.h"
1892 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1893 { (eval echo configure:1894: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1894 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1895 if test -z "$ac_err"; then
1899 echo "configure: failed program was:" >&5
1900 cat conftest.$ac_ext >&5
1902 CPP="${CC-cc} -E -traditional-cpp"
1903 cat > conftest.$ac_ext <<EOF
1904 #line 1905 "configure"
1905 #include "confdefs.h"
1909 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1910 { (eval echo configure:1911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1911 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1912 if test -z "$ac_err"; then
1916 echo "configure: failed program was:" >&5
1917 cat conftest.$ac_ext >&5
1919 CPP="${CC-cc} -nologo -E"
1920 cat > conftest.$ac_ext <<EOF
1921 #line 1922 "configure"
1922 #include "confdefs.h"
1926 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1927 { (eval echo configure:1928: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1928 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1929 if test -z "$ac_err"; then
1933 echo "configure: failed program was:" >&5
1934 cat conftest.$ac_ext >&5
1943 ac_cv_prog_CPP="$CPP"
1945 CPP="$ac_cv_prog_CPP"
1947 ac_cv_prog_CPP="$CPP"
1949 echo "$ac_t""$CPP" 1>&6
1951 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1952 echo "configure:1953: checking for ANSI C header files" >&5
1953 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1954 echo $ac_n "(cached) $ac_c" 1>&6
1956 cat > conftest.$ac_ext <<EOF
1957 #line 1958 "configure"
1958 #include "confdefs.h"
1964 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1965 { (eval echo configure:1966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1966 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1967 if test -z "$ac_err"; then
1969 ac_cv_header_stdc=yes
1972 echo "configure: failed program was:" >&5
1973 cat conftest.$ac_ext >&5
1975 ac_cv_header_stdc=no
1979 if test $ac_cv_header_stdc = yes; then
1980 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1981 cat > conftest.$ac_ext <<EOF
1982 #line 1983 "configure"
1983 #include "confdefs.h"
1986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1987 egrep "memchr" >/dev/null 2>&1; then
1991 ac_cv_header_stdc=no
1997 if test $ac_cv_header_stdc = yes; then
1998 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1999 cat > conftest.$ac_ext <<EOF
2000 #line 2001 "configure"
2001 #include "confdefs.h"
2004 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2005 egrep "free" >/dev/null 2>&1; then
2009 ac_cv_header_stdc=no
2015 if test $ac_cv_header_stdc = yes; then
2016 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2017 if test "$cross_compiling" = yes; then
2020 cat > conftest.$ac_ext <<EOF
2021 #line 2022 "configure"
2022 #include "confdefs.h"
2024 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2025 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2026 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2027 int main () { int i; for (i = 0; i < 256; i++)
2028 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2032 if { (eval echo configure:2033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2036 echo "configure: failed program was:" >&5
2037 cat conftest.$ac_ext >&5
2039 ac_cv_header_stdc=no
2047 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2048 if test $ac_cv_header_stdc = yes; then
2049 cat >> confdefs.h <<\EOF
2050 #define STDC_HEADERS 1
2055 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2056 echo "configure:2057: checking whether time.h and sys/time.h may both be included" >&5
2057 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2058 echo $ac_n "(cached) $ac_c" 1>&6
2060 cat > conftest.$ac_ext <<EOF
2061 #line 2062 "configure"
2062 #include "confdefs.h"
2063 #include <sys/types.h>
2064 #include <sys/time.h>
2070 if { (eval echo configure:2071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2072 ac_cv_header_time=yes
2074 echo "configure: failed program was:" >&5
2075 cat conftest.$ac_ext >&5
2077 ac_cv_header_time=no
2082 echo "$ac_t""$ac_cv_header_time" 1>&6
2083 if test $ac_cv_header_time = yes; then
2084 cat >> confdefs.h <<\EOF
2085 #define TIME_WITH_SYS_TIME 1
2090 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2091 echo "configure:2092: checking for sys/wait.h that is POSIX.1 compatible" >&5
2092 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2093 echo $ac_n "(cached) $ac_c" 1>&6
2095 cat > conftest.$ac_ext <<EOF
2096 #line 2097 "configure"
2097 #include "confdefs.h"
2098 #include <sys/types.h>
2099 #include <sys/wait.h>
2101 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2104 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2109 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2112 if { (eval echo configure:2113: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2114 ac_cv_header_sys_wait_h=yes
2116 echo "configure: failed program was:" >&5
2117 cat conftest.$ac_ext >&5
2119 ac_cv_header_sys_wait_h=no
2124 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2125 if test $ac_cv_header_sys_wait_h = yes; then
2126 cat >> confdefs.h <<\EOF
2127 #define HAVE_SYS_WAIT_H 1
2132 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
2133 echo "configure:2134: checking whether stat file-mode macros are broken" >&5
2134 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
2135 echo $ac_n "(cached) $ac_c" 1>&6
2137 cat > conftest.$ac_ext <<EOF
2138 #line 2139 "configure"
2139 #include "confdefs.h"
2140 #include <sys/types.h>
2141 #include <sys/stat.h>
2143 #if defined(S_ISBLK) && defined(S_IFDIR)
2144 # if S_ISBLK (S_IFDIR)
2149 #if defined(S_ISBLK) && defined(S_IFCHR)
2150 # if S_ISBLK (S_IFCHR)
2155 #if defined(S_ISLNK) && defined(S_IFREG)
2156 # if S_ISLNK (S_IFREG)
2161 #if defined(S_ISSOCK) && defined(S_IFREG)
2162 # if S_ISSOCK (S_IFREG)
2168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2169 egrep "You lose" >/dev/null 2>&1; then
2171 ac_cv_header_stat_broken=yes
2174 ac_cv_header_stat_broken=no
2180 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
2181 if test $ac_cv_header_stat_broken = yes; then
2182 cat >> confdefs.h <<\EOF
2183 #define STAT_MACROS_BROKEN 1
2188 for ac_hdr in string.h memory.h stdlib.h unistd.h errno.h fcntl.h \
2189 limits.h crypt.h termcap.h termio.h termios.h locale.h \
2190 netdb.h sys/param.h sys/time.h sys/utsname.h arpa/inet.h \
2193 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2194 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2195 echo "configure:2196: checking for $ac_hdr" >&5
2196 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2197 echo $ac_n "(cached) $ac_c" 1>&6
2199 cat > conftest.$ac_ext <<EOF
2200 #line 2201 "configure"
2201 #include "confdefs.h"
2204 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2205 { (eval echo configure:2206: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2206 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2207 if test -z "$ac_err"; then
2209 eval "ac_cv_header_$ac_safe=yes"
2212 echo "configure: failed program was:" >&5
2213 cat conftest.$ac_ext >&5
2215 eval "ac_cv_header_$ac_safe=no"
2219 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2220 echo "$ac_t""yes" 1>&6
2221 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2222 cat >> confdefs.h <<EOF
2223 #define $ac_tr_hdr 1
2227 echo "$ac_t""no" 1>&6
2233 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
2234 echo "configure:2235: checking POSIX termios" >&5
2235 if eval "test \"`echo '$''{'nmh_cv_sys_posix_termios'+set}'`\" = set"; then
2236 echo $ac_n "(cached) $ac_c" 1>&6
2238 cat > conftest.$ac_ext <<EOF
2239 #line 2240 "configure"
2240 #include "confdefs.h"
2241 #include <sys/types.h>
2243 #include <termios.h>
2245 /* SunOS 4.0.3 has termios.h but not the library calls. */
2249 if { (eval echo configure:2250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2251 nmh_cv_sys_posix_termios=yes
2253 echo "configure: failed program was:" >&5
2254 cat conftest.$ac_ext >&5
2256 nmh_cv_sys_posix_termios=no
2261 echo "$ac_t""$nmh_cv_sys_posix_termios" 1>&6
2263 if test $nmh_cv_sys_posix_termios = yes; then
2264 echo $ac_n "checking TIOCGWINSZ in termios.h""... $ac_c" 1>&6
2265 echo "configure:2266: checking TIOCGWINSZ in termios.h" >&5
2266 if eval "test \"`echo '$''{'nmh_cv_header_termios_h_tiocgwinsz'+set}'`\" = set"; then
2267 echo $ac_n "(cached) $ac_c" 1>&6
2269 cat > conftest.$ac_ext <<EOF
2270 #line 2271 "configure"
2271 #include "confdefs.h"
2272 #include <sys/types.h>
2273 #include <termios.h>
2278 if { (eval echo configure:2279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2280 nmh_cv_header_termios_h_tiocgwinsz=yes
2282 echo "configure: failed program was:" >&5
2283 cat conftest.$ac_ext >&5
2285 nmh_cv_header_termios_h_tiocgwinsz=no
2290 echo "$ac_t""$nmh_cv_header_termios_h_tiocgwinsz" 1>&6
2292 nmh_cv_header_termios_h_tiocgwinsz=no
2295 if test $nmh_cv_header_termios_h_tiocgwinsz = no; then
2296 echo $ac_n "checking TIOCGWINSZ in sys/ioctl.h""... $ac_c" 1>&6
2297 echo "configure:2298: checking TIOCGWINSZ in sys/ioctl.h" >&5
2298 if eval "test \"`echo '$''{'nmh_cv_header_sys_ioctl_h_tiocgwinsz'+set}'`\" = set"; then
2299 echo $ac_n "(cached) $ac_c" 1>&6
2301 cat > conftest.$ac_ext <<EOF
2302 #line 2303 "configure"
2303 #include "confdefs.h"
2304 #include <sys/types.h>
2305 #include <sys/ioctl.h>
2310 if { (eval echo configure:2311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2312 nmh_cv_header_sys_ioctl_h_tiocgwinsz=yes
2314 echo "configure: failed program was:" >&5
2315 cat conftest.$ac_ext >&5
2317 nmh_cv_header_sys_ioctl_h_tiocgwinsz=no
2322 echo "$ac_t""$nmh_cv_header_sys_ioctl_h_tiocgwinsz" 1>&6
2323 if test $nmh_cv_header_sys_ioctl_h_tiocgwinsz = yes; then
2324 cat >> confdefs.h <<\EOF
2325 #define GWINSZ_IN_SYS_IOCTL 1
2331 ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2332 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2333 echo "configure:2334: checking for libio.h" >&5
2334 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2335 echo $ac_n "(cached) $ac_c" 1>&6
2337 cat > conftest.$ac_ext <<EOF
2338 #line 2339 "configure"
2339 #include "confdefs.h"
2342 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2343 { (eval echo configure:2344: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2344 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2345 if test -z "$ac_err"; then
2347 eval "ac_cv_header_$ac_safe=yes"
2350 echo "configure: failed program was:" >&5
2351 cat conftest.$ac_ext >&5
2353 eval "ac_cv_header_$ac_safe=no"
2357 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2358 echo "$ac_t""yes" 1>&6
2360 cat > conftest.$ac_ext <<EOF
2361 #line 2362 "configure"
2362 #include "confdefs.h"
2365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2366 egrep "_IO_write_ptr" >/dev/null 2>&1; then
2369 cat >> confdefs.h <<\EOF
2370 #define LINUX_STDIO 1
2377 echo "$ac_t""no" 1>&6
2381 ac_safe=`echo "sys/ptem.h" | sed 'y%./+-%__p_%'`
2382 echo $ac_n "checking for sys/ptem.h""... $ac_c" 1>&6
2383 echo "configure:2384: checking for sys/ptem.h" >&5
2384 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2385 echo $ac_n "(cached) $ac_c" 1>&6
2387 cat > conftest.$ac_ext <<EOF
2388 #line 2389 "configure"
2389 #include "confdefs.h"
2390 #include <sys/ptem.h>
2392 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2393 { (eval echo configure:2394: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2394 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2395 if test -z "$ac_err"; then
2397 eval "ac_cv_header_$ac_safe=yes"
2400 echo "configure: failed program was:" >&5
2401 cat conftest.$ac_ext >&5
2403 eval "ac_cv_header_$ac_safe=no"
2407 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2408 echo "$ac_t""yes" 1>&6
2409 cat >> confdefs.h <<\EOF
2410 #define WINSIZE_IN_PTEM 1
2414 echo "$ac_t""no" 1>&6
2418 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2419 echo "configure:2420: checking for pid_t" >&5
2420 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2421 echo $ac_n "(cached) $ac_c" 1>&6
2423 cat > conftest.$ac_ext <<EOF
2424 #line 2425 "configure"
2425 #include "confdefs.h"
2426 #include <sys/types.h>
2432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2433 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2435 ac_cv_type_pid_t=yes
2443 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2444 if test $ac_cv_type_pid_t = no; then
2445 cat >> confdefs.h <<\EOF
2451 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2452 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2453 echo "configure:2454: checking for vfork.h" >&5
2454 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2455 echo $ac_n "(cached) $ac_c" 1>&6
2457 cat > conftest.$ac_ext <<EOF
2458 #line 2459 "configure"
2459 #include "confdefs.h"
2462 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2463 { (eval echo configure:2464: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2464 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2465 if test -z "$ac_err"; then
2467 eval "ac_cv_header_$ac_safe=yes"
2470 echo "configure: failed program was:" >&5
2471 cat conftest.$ac_ext >&5
2473 eval "ac_cv_header_$ac_safe=no"
2477 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2478 echo "$ac_t""yes" 1>&6
2479 cat >> confdefs.h <<\EOF
2480 #define HAVE_VFORK_H 1
2484 echo "$ac_t""no" 1>&6
2487 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2488 echo "configure:2489: checking for working vfork" >&5
2489 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2490 echo $ac_n "(cached) $ac_c" 1>&6
2492 if test "$cross_compiling" = yes; then
2493 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2494 echo "configure:2495: checking for vfork" >&5
2495 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2496 echo $ac_n "(cached) $ac_c" 1>&6
2498 cat > conftest.$ac_ext <<EOF
2499 #line 2500 "configure"
2500 #include "confdefs.h"
2501 /* System header to define __stub macros and hopefully few prototypes,
2502 which can conflict with char vfork(); below. */
2504 /* Override any gcc2 internal prototype to avoid an error. */
2505 /* We use char because int might match the return type of a gcc2
2506 builtin and then its argument prototype would still apply. */
2511 /* The GNU C library defines this for functions which it implements
2512 to always fail with ENOSYS. Some functions are actually named
2513 something starting with __ and the normal name is an alias. */
2514 #if defined (__stub_vfork) || defined (__stub___vfork)
2522 if { (eval echo configure:2523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2524 eval "ac_cv_func_vfork=yes"
2526 echo "configure: failed program was:" >&5
2527 cat conftest.$ac_ext >&5
2529 eval "ac_cv_func_vfork=no"
2534 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2535 echo "$ac_t""yes" 1>&6
2538 echo "$ac_t""no" 1>&6
2541 ac_cv_func_vfork_works=$ac_cv_func_vfork
2543 cat > conftest.$ac_ext <<EOF
2544 #line 2545 "configure"
2545 #include "confdefs.h"
2546 /* Thanks to Paul Eggert for this test. */
2548 #include <sys/types.h>
2549 #include <sys/stat.h>
2550 #ifdef HAVE_UNISTD_H
2556 /* On some sparc systems, changes by the child to local and incoming
2557 argument registers are propagated back to the parent.
2558 The compiler is told about this with #include <vfork.h>,
2559 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2560 Test for this by using a static variable whose address
2561 is put into a register that is clobbered by the vfork. */
2564 sparc_address_test (int arg)
2566 sparc_address_test (arg) int arg;
2584 pid_t parent = getpid ();
2587 sparc_address_test ();
2592 /* Here is another test for sparc vfork register problems.
2593 This test uses lots of local variables, at least
2594 as many local variables as main has allocated so far
2595 including compiler temporaries. 4 locals are enough for
2596 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2597 A buggy compiler should reuse the register of parent
2598 for one of the local variables, since it will think that
2599 parent can't possibly be used any more in this routine.
2600 Assigning to the local variable will thus munge parent
2601 in the parent process. */
2603 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2604 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2605 /* Convince the compiler that p..p7 are live; otherwise, it might
2606 use the same hardware register for all 8 local variables. */
2607 if (p != p1 || p != p2 || p != p3 || p != p4
2608 || p != p5 || p != p6 || p != p7)
2611 /* On some systems (e.g. IRIX 3.3),
2612 vfork doesn't separate parent from child file descriptors.
2613 If the child closes a descriptor before it execs or exits,
2614 this munges the parent's descriptor as well.
2615 Test for this by closing stdout in the child. */
2616 _exit(close(fileno(stdout)) != 0);
2621 while (wait(&status) != child)
2624 /* Was there some problem with vforking? */
2627 /* Did the child fail? (This shouldn't happen.) */
2630 /* Did the vfork/compiler bug occur? */
2631 || parent != getpid()
2633 /* Did the file descriptor bug occur? */
2634 || fstat(fileno(stdout), &st) != 0
2639 if { (eval echo configure:2640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2641 ac_cv_func_vfork_works=yes
2643 echo "configure: failed program was:" >&5
2644 cat conftest.$ac_ext >&5
2646 ac_cv_func_vfork_works=no
2653 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2654 if test $ac_cv_func_vfork_works = no; then
2655 cat >> confdefs.h <<\EOF
2661 echo $ac_n "checking for mkstemp in -lmkstemp""... $ac_c" 1>&6
2662 echo "configure:2663: checking for mkstemp in -lmkstemp" >&5
2663 ac_lib_var=`echo mkstemp'_'mkstemp | sed 'y%./+-%__p_%'`
2664 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2665 echo $ac_n "(cached) $ac_c" 1>&6
2667 ac_save_LIBS="$LIBS"
2668 LIBS="-lmkstemp $LIBS"
2669 cat > conftest.$ac_ext <<EOF
2670 #line 2671 "configure"
2671 #include "confdefs.h"
2672 /* Override any gcc2 internal prototype to avoid an error. */
2673 /* We use char because int might match the return type of a gcc2
2674 builtin and then its argument prototype would still apply. */
2681 if { (eval echo configure:2682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2683 eval "ac_cv_lib_$ac_lib_var=yes"
2685 echo "configure: failed program was:" >&5
2686 cat conftest.$ac_ext >&5
2688 eval "ac_cv_lib_$ac_lib_var=no"
2691 LIBS="$ac_save_LIBS"
2694 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2695 echo "$ac_t""yes" 1>&6
2696 ac_tr_lib=HAVE_LIB`echo mkstemp | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2697 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2698 cat >> confdefs.h <<EOF
2699 #define $ac_tr_lib 1
2702 LIBS="-lmkstemp $LIBS"
2705 echo "$ac_t""no" 1>&6
2708 for ac_func in waitpid wait3 sigaction sigprocmask sigblock sigsetmask \
2709 sighold sigrelse writev lstat uname tzset killpg mkstemp \
2712 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2713 echo "configure:2714: checking for $ac_func" >&5
2714 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2715 echo $ac_n "(cached) $ac_c" 1>&6
2717 cat > conftest.$ac_ext <<EOF
2718 #line 2719 "configure"
2719 #include "confdefs.h"
2720 /* System header to define __stub macros and hopefully few prototypes,
2721 which can conflict with char $ac_func(); below. */
2723 /* Override any gcc2 internal prototype to avoid an error. */
2724 /* We use char because int might match the return type of a gcc2
2725 builtin and then its argument prototype would still apply. */
2730 /* The GNU C library defines this for functions which it implements
2731 to always fail with ENOSYS. Some functions are actually named
2732 something starting with __ and the normal name is an alias. */
2733 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2741 if { (eval echo configure:2742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2743 eval "ac_cv_func_$ac_func=yes"
2745 echo "configure: failed program was:" >&5
2746 cat conftest.$ac_ext >&5
2748 eval "ac_cv_func_$ac_func=no"
2753 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2754 echo "$ac_t""yes" 1>&6
2755 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2756 cat >> confdefs.h <<EOF
2757 #define $ac_tr_func 1
2761 echo "$ac_t""no" 1>&6
2766 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2767 echo "configure:2768: checking for gethostbyname" >&5
2768 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2769 echo $ac_n "(cached) $ac_c" 1>&6
2771 cat > conftest.$ac_ext <<EOF
2772 #line 2773 "configure"
2773 #include "confdefs.h"
2774 /* System header to define __stub macros and hopefully few prototypes,
2775 which can conflict with char gethostbyname(); below. */
2777 /* Override any gcc2 internal prototype to avoid an error. */
2778 /* We use char because int might match the return type of a gcc2
2779 builtin and then its argument prototype would still apply. */
2780 char gethostbyname();
2784 /* The GNU C library defines this for functions which it implements
2785 to always fail with ENOSYS. Some functions are actually named
2786 something starting with __ and the normal name is an alias. */
2787 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2795 if { (eval echo configure:2796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2797 eval "ac_cv_func_gethostbyname=yes"
2799 echo "configure: failed program was:" >&5
2800 cat conftest.$ac_ext >&5
2802 eval "ac_cv_func_gethostbyname=no"
2807 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
2808 echo "$ac_t""yes" 1>&6
2809 cat >> confdefs.h <<\EOF
2810 #define HAVE_GETHOSTBYNAME 1
2814 echo "$ac_t""no" 1>&6
2815 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2816 echo "configure:2817: checking for gethostbyname in -lnsl" >&5
2817 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2818 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2819 echo $ac_n "(cached) $ac_c" 1>&6
2821 ac_save_LIBS="$LIBS"
2823 cat > conftest.$ac_ext <<EOF
2824 #line 2825 "configure"
2825 #include "confdefs.h"
2826 /* Override any gcc2 internal prototype to avoid an error. */
2827 /* We use char because int might match the return type of a gcc2
2828 builtin and then its argument prototype would still apply. */
2829 char gethostbyname();
2835 if { (eval echo configure:2836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2837 eval "ac_cv_lib_$ac_lib_var=yes"
2839 echo "configure: failed program was:" >&5
2840 cat conftest.$ac_ext >&5
2842 eval "ac_cv_lib_$ac_lib_var=no"
2845 LIBS="$ac_save_LIBS"
2848 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2849 echo "$ac_t""yes" 1>&6
2850 cat >> confdefs.h <<\EOF
2851 #define HAVE_GETHOSTBYNAME 1
2855 echo "$ac_t""no" 1>&6
2861 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
2862 echo "configure:2863: checking for sigsetjmp" >&5
2863 cat > conftest.$ac_ext <<EOF
2864 #line 2865 "configure"
2865 #include "confdefs.h"
2868 sigsetjmp((void *)0, 0);
2871 if { (eval echo configure:2872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2873 cat >> confdefs.h <<\EOF
2874 #define HAVE_SIGSETJMP 1
2876 echo "$ac_t""yes" 1>&6
2878 echo "configure: failed program was:" >&5
2879 cat conftest.$ac_ext >&5
2881 echo "$ac_t""no" 1>&6
2885 for ac_func in snprintf strerror strdup
2887 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2888 echo "configure:2889: checking for $ac_func" >&5
2889 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2890 echo $ac_n "(cached) $ac_c" 1>&6
2892 cat > conftest.$ac_ext <<EOF
2893 #line 2894 "configure"
2894 #include "confdefs.h"
2895 /* System header to define __stub macros and hopefully few prototypes,
2896 which can conflict with char $ac_func(); below. */
2898 /* Override any gcc2 internal prototype to avoid an error. */
2899 /* We use char because int might match the return type of a gcc2
2900 builtin and then its argument prototype would still apply. */
2905 /* The GNU C library defines this for functions which it implements
2906 to always fail with ENOSYS. Some functions are actually named
2907 something starting with __ and the normal name is an alias. */
2908 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2916 if { (eval echo configure:2917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2918 eval "ac_cv_func_$ac_func=yes"
2920 echo "configure: failed program was:" >&5
2921 cat conftest.$ac_ext >&5
2923 eval "ac_cv_func_$ac_func=no"
2928 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2929 echo "$ac_t""yes" 1>&6
2930 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2931 cat >> confdefs.h <<EOF
2932 #define $ac_tr_func 1
2936 echo "$ac_t""no" 1>&6
2937 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
2943 cat > conftest.$ac_ext <<EOF
2944 #line 2945 "configure"
2945 #include "confdefs.h"
2948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2949 egrep "initgroups" >/dev/null 2>&1; then
2951 cat >> confdefs.h <<\EOF
2952 #define INITGROUPS_HEADER <grp.h>
2957 cat > conftest.$ac_ext <<EOF
2958 #line 2959 "configure"
2959 #include "confdefs.h"
2962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2963 egrep "initgroups" >/dev/null 2>&1; then
2965 cat >> confdefs.h <<\EOF
2966 #define INITGROUPS_HEADER <unistd.h>
2976 cat > conftest.$ac_ext <<EOF
2977 #line 2978 "configure"
2978 #include "confdefs.h"
2981 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2982 egrep "snprintf" >/dev/null 2>&1; then
2984 cat >> confdefs.h <<\EOF
2985 #define HAVE_SNPRINTF_PROTOTYPE 1
2992 echo $ac_n "checking for modf""... $ac_c" 1>&6
2993 echo "configure:2994: checking for modf" >&5
2994 if eval "test \"`echo '$''{'ac_cv_func_modf'+set}'`\" = set"; then
2995 echo $ac_n "(cached) $ac_c" 1>&6
2997 cat > conftest.$ac_ext <<EOF
2998 #line 2999 "configure"
2999 #include "confdefs.h"
3000 /* System header to define __stub macros and hopefully few prototypes,
3001 which can conflict with char modf(); below. */
3003 /* Override any gcc2 internal prototype to avoid an error. */
3004 /* We use char because int might match the return type of a gcc2
3005 builtin and then its argument prototype would still apply. */
3010 /* The GNU C library defines this for functions which it implements
3011 to always fail with ENOSYS. Some functions are actually named
3012 something starting with __ and the normal name is an alias. */
3013 #if defined (__stub_modf) || defined (__stub___modf)
3021 if { (eval echo configure:3022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3023 eval "ac_cv_func_modf=yes"
3025 echo "configure: failed program was:" >&5
3026 cat conftest.$ac_ext >&5
3028 eval "ac_cv_func_modf=no"
3033 if eval "test \"`echo '$ac_cv_func_'modf`\" = yes"; then
3034 echo "$ac_t""yes" 1>&6
3037 echo "$ac_t""no" 1>&6
3038 echo $ac_n "checking for modf in -lm""... $ac_c" 1>&6
3039 echo "configure:3040: checking for modf in -lm" >&5
3040 ac_lib_var=`echo m'_'modf | sed 'y%./+-%__p_%'`
3041 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3042 echo $ac_n "(cached) $ac_c" 1>&6
3044 ac_save_LIBS="$LIBS"
3046 cat > conftest.$ac_ext <<EOF
3047 #line 3048 "configure"
3048 #include "confdefs.h"
3049 /* Override any gcc2 internal prototype to avoid an error. */
3050 /* We use char because int might match the return type of a gcc2
3051 builtin and then its argument prototype would still apply. */
3058 if { (eval echo configure:3059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3060 eval "ac_cv_lib_$ac_lib_var=yes"
3062 echo "configure: failed program was:" >&5
3063 cat conftest.$ac_ext >&5
3065 eval "ac_cv_lib_$ac_lib_var=no"
3068 LIBS="$ac_save_LIBS"
3071 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3072 echo "$ac_t""yes" 1>&6
3073 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
3074 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3075 cat >> confdefs.h <<EOF
3076 #define $ac_tr_lib 1
3082 echo "$ac_t""no" 1>&6
3088 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3089 echo "configure:3090: checking for gethostbyname" >&5
3090 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3091 echo $ac_n "(cached) $ac_c" 1>&6
3093 cat > conftest.$ac_ext <<EOF
3094 #line 3095 "configure"
3095 #include "confdefs.h"
3096 /* System header to define __stub macros and hopefully few prototypes,
3097 which can conflict with char gethostbyname(); below. */
3099 /* Override any gcc2 internal prototype to avoid an error. */
3100 /* We use char because int might match the return type of a gcc2
3101 builtin and then its argument prototype would still apply. */
3102 char gethostbyname();
3106 /* The GNU C library defines this for functions which it implements
3107 to always fail with ENOSYS. Some functions are actually named
3108 something starting with __ and the normal name is an alias. */
3109 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3117 if { (eval echo configure:3118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3119 eval "ac_cv_func_gethostbyname=yes"
3121 echo "configure: failed program was:" >&5
3122 cat conftest.$ac_ext >&5
3124 eval "ac_cv_func_gethostbyname=no"
3129 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3130 echo "$ac_t""yes" 1>&6
3133 echo "$ac_t""no" 1>&6
3134 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3135 echo "configure:3136: checking for gethostbyname in -lnsl" >&5
3136 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3137 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3138 echo $ac_n "(cached) $ac_c" 1>&6
3140 ac_save_LIBS="$LIBS"
3142 cat > conftest.$ac_ext <<EOF
3143 #line 3144 "configure"
3144 #include "confdefs.h"
3145 /* Override any gcc2 internal prototype to avoid an error. */
3146 /* We use char because int might match the return type of a gcc2
3147 builtin and then its argument prototype would still apply. */
3148 char gethostbyname();
3154 if { (eval echo configure:3155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3156 eval "ac_cv_lib_$ac_lib_var=yes"
3158 echo "configure: failed program was:" >&5
3159 cat conftest.$ac_ext >&5
3161 eval "ac_cv_lib_$ac_lib_var=no"
3164 LIBS="$ac_save_LIBS"
3167 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3168 echo "$ac_t""yes" 1>&6
3169 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
3170 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3171 cat >> confdefs.h <<EOF
3172 #define $ac_tr_lib 1
3178 echo "$ac_t""no" 1>&6
3179 echo $ac_n "checking for gethostbyname in -lresolv""... $ac_c" 1>&6
3180 echo "configure:3181: checking for gethostbyname in -lresolv" >&5
3181 ac_lib_var=`echo resolv'_'gethostbyname | sed 'y%./+-%__p_%'`
3182 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3183 echo $ac_n "(cached) $ac_c" 1>&6
3185 ac_save_LIBS="$LIBS"
3186 LIBS="-lresolv $LIBS"
3187 cat > conftest.$ac_ext <<EOF
3188 #line 3189 "configure"
3189 #include "confdefs.h"
3190 /* Override any gcc2 internal prototype to avoid an error. */
3191 /* We use char because int might match the return type of a gcc2
3192 builtin and then its argument prototype would still apply. */
3193 char gethostbyname();
3199 if { (eval echo configure:3200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3201 eval "ac_cv_lib_$ac_lib_var=yes"
3203 echo "configure: failed program was:" >&5
3204 cat conftest.$ac_ext >&5
3206 eval "ac_cv_lib_$ac_lib_var=no"
3209 LIBS="$ac_save_LIBS"
3212 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3213 echo "$ac_t""yes" 1>&6
3214 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
3215 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3216 cat >> confdefs.h <<EOF
3217 #define $ac_tr_lib 1
3220 LIBS="-lresolv $LIBS"
3223 echo "$ac_t""no" 1>&6
3230 echo $ac_n "checking for socket""... $ac_c" 1>&6
3231 echo "configure:3232: checking for socket" >&5
3232 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
3233 echo $ac_n "(cached) $ac_c" 1>&6
3235 cat > conftest.$ac_ext <<EOF
3236 #line 3237 "configure"
3237 #include "confdefs.h"
3238 /* System header to define __stub macros and hopefully few prototypes,
3239 which can conflict with char socket(); below. */
3241 /* Override any gcc2 internal prototype to avoid an error. */
3242 /* We use char because int might match the return type of a gcc2
3243 builtin and then its argument prototype would still apply. */
3248 /* The GNU C library defines this for functions which it implements
3249 to always fail with ENOSYS. Some functions are actually named
3250 something starting with __ and the normal name is an alias. */
3251 #if defined (__stub_socket) || defined (__stub___socket)
3259 if { (eval echo configure:3260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3261 eval "ac_cv_func_socket=yes"
3263 echo "configure: failed program was:" >&5
3264 cat conftest.$ac_ext >&5
3266 eval "ac_cv_func_socket=no"
3271 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
3272 echo "$ac_t""yes" 1>&6
3275 echo "$ac_t""no" 1>&6
3276 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
3277 echo "configure:3278: checking for socket in -lsocket" >&5
3278 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
3279 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3280 echo $ac_n "(cached) $ac_c" 1>&6
3282 ac_save_LIBS="$LIBS"
3283 LIBS="-lsocket $LIBS"
3284 cat > conftest.$ac_ext <<EOF
3285 #line 3286 "configure"
3286 #include "confdefs.h"
3287 /* Override any gcc2 internal prototype to avoid an error. */
3288 /* We use char because int might match the return type of a gcc2
3289 builtin and then its argument prototype would still apply. */
3296 if { (eval echo configure:3297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3298 eval "ac_cv_lib_$ac_lib_var=yes"
3300 echo "configure: failed program was:" >&5
3301 cat conftest.$ac_ext >&5
3303 eval "ac_cv_lib_$ac_lib_var=no"
3306 LIBS="$ac_save_LIBS"
3309 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3310 echo "$ac_t""yes" 1>&6
3311 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
3312 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3313 cat >> confdefs.h <<EOF
3314 #define $ac_tr_lib 1
3317 LIBS="-lsocket $LIBS"
3320 echo "$ac_t""no" 1>&6
3327 echo $ac_n "checking for ruserpass""... $ac_c" 1>&6
3328 echo "configure:3329: checking for ruserpass" >&5
3329 if eval "test \"`echo '$''{'ac_cv_func_ruserpass'+set}'`\" = set"; then
3330 echo $ac_n "(cached) $ac_c" 1>&6
3332 cat > conftest.$ac_ext <<EOF
3333 #line 3334 "configure"
3334 #include "confdefs.h"
3335 /* System header to define __stub macros and hopefully few prototypes,
3336 which can conflict with char ruserpass(); below. */
3338 /* Override any gcc2 internal prototype to avoid an error. */
3339 /* We use char because int might match the return type of a gcc2
3340 builtin and then its argument prototype would still apply. */
3345 /* The GNU C library defines this for functions which it implements
3346 to always fail with ENOSYS. Some functions are actually named
3347 something starting with __ and the normal name is an alias. */
3348 #if defined (__stub_ruserpass) || defined (__stub___ruserpass)
3356 if { (eval echo configure:3357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3358 eval "ac_cv_func_ruserpass=yes"
3360 echo "configure: failed program was:" >&5
3361 cat conftest.$ac_ext >&5
3363 eval "ac_cv_func_ruserpass=no"
3368 if eval "test \"`echo '$ac_cv_func_'ruserpass`\" = yes"; then
3369 echo "$ac_t""yes" 1>&6
3372 echo "$ac_t""no" 1>&6
3373 echo $ac_n "checking for _ruserpass""... $ac_c" 1>&6
3374 echo "configure:3375: checking for _ruserpass" >&5
3375 if eval "test \"`echo '$''{'ac_cv_func__ruserpass'+set}'`\" = set"; then
3376 echo $ac_n "(cached) $ac_c" 1>&6
3378 cat > conftest.$ac_ext <<EOF
3379 #line 3380 "configure"
3380 #include "confdefs.h"
3381 /* System header to define __stub macros and hopefully few prototypes,
3382 which can conflict with char _ruserpass(); below. */
3384 /* Override any gcc2 internal prototype to avoid an error. */
3385 /* We use char because int might match the return type of a gcc2
3386 builtin and then its argument prototype would still apply. */
3391 /* The GNU C library defines this for functions which it implements
3392 to always fail with ENOSYS. Some functions are actually named
3393 something starting with __ and the normal name is an alias. */
3394 #if defined (__stub__ruserpass) || defined (__stub____ruserpass)
3402 if { (eval echo configure:3403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3404 eval "ac_cv_func__ruserpass=yes"
3406 echo "configure: failed program was:" >&5
3407 cat conftest.$ac_ext >&5
3409 eval "ac_cv_func__ruserpass=no"
3414 if eval "test \"`echo '$ac_cv_func_'_ruserpass`\" = yes"; then
3415 echo "$ac_t""yes" 1>&6
3418 echo "$ac_t""no" 1>&6
3419 echo $ac_n "checking for _ruserpass in -lsocket""... $ac_c" 1>&6
3420 echo "configure:3421: checking for _ruserpass in -lsocket" >&5
3421 ac_lib_var=`echo socket'_'_ruserpass | sed 'y%./+-%__p_%'`
3422 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3423 echo $ac_n "(cached) $ac_c" 1>&6
3425 ac_save_LIBS="$LIBS"
3426 LIBS="-lsocket $LIBS"
3427 cat > conftest.$ac_ext <<EOF
3428 #line 3429 "configure"
3429 #include "confdefs.h"
3430 /* Override any gcc2 internal prototype to avoid an error. */
3431 /* We use char because int might match the return type of a gcc2
3432 builtin and then its argument prototype would still apply. */
3439 if { (eval echo configure:3440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3441 eval "ac_cv_lib_$ac_lib_var=yes"
3443 echo "configure: failed program was:" >&5
3444 cat conftest.$ac_ext >&5
3446 eval "ac_cv_lib_$ac_lib_var=no"
3449 LIBS="$ac_save_LIBS"
3452 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3453 echo "$ac_t""yes" 1>&6
3454 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
3455 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3456 cat >> confdefs.h <<EOF
3457 #define $ac_tr_lib 1
3460 LIBS="-lsocket $LIBS"
3463 echo "$ac_t""no" 1>&6
3470 if test x$ac_cv_func_ruserpass = xno; then
3471 if test x$ac_cv_func__ruserpass = xyes -o x$ac_cv_lib_socket__ruserpass = xyes; then
3472 cat >> confdefs.h <<\EOF
3473 #define ruserpass _ruserpass
3477 LIBOBJS="$LIBOBJS ruserpass.o"
3482 termcap_curses_order="termcap curses ncurses"
3483 for lib in $termcap_curses_order; do
3484 echo $ac_n "checking for tgetent in -l${lib}""... $ac_c" 1>&6
3485 echo "configure:3486: checking for tgetent in -l${lib}" >&5
3486 ac_lib_var=`echo ${lib}'_'tgetent | sed 'y%./+-%__p_%'`
3487 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3488 echo $ac_n "(cached) $ac_c" 1>&6
3490 ac_save_LIBS="$LIBS"
3491 LIBS="-l${lib} $LIBS"
3492 cat > conftest.$ac_ext <<EOF
3493 #line 3494 "configure"
3494 #include "confdefs.h"
3495 /* Override any gcc2 internal prototype to avoid an error. */
3496 /* We use char because int might match the return type of a gcc2
3497 builtin and then its argument prototype would still apply. */
3504 if { (eval echo configure:3505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3506 eval "ac_cv_lib_$ac_lib_var=yes"
3508 echo "configure: failed program was:" >&5
3509 cat conftest.$ac_ext >&5
3511 eval "ac_cv_lib_$ac_lib_var=no"
3514 LIBS="$ac_save_LIBS"
3517 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3518 echo "$ac_t""yes" 1>&6
3519 TERMLIB="-l$lib"; break
3521 echo "$ac_t""no" 1>&6
3527 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
3528 echo "configure:3529: checking for dbm_open" >&5
3529 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
3530 echo $ac_n "(cached) $ac_c" 1>&6
3532 cat > conftest.$ac_ext <<EOF
3533 #line 3534 "configure"
3534 #include "confdefs.h"
3535 /* System header to define __stub macros and hopefully few prototypes,
3536 which can conflict with char dbm_open(); below. */
3538 /* Override any gcc2 internal prototype to avoid an error. */
3539 /* We use char because int might match the return type of a gcc2
3540 builtin and then its argument prototype would still apply. */
3545 /* The GNU C library defines this for functions which it implements
3546 to always fail with ENOSYS. Some functions are actually named
3547 something starting with __ and the normal name is an alias. */
3548 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
3556 if { (eval echo configure:3557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3558 eval "ac_cv_func_dbm_open=yes"
3560 echo "configure: failed program was:" >&5
3561 cat conftest.$ac_ext >&5
3563 eval "ac_cv_func_dbm_open=no"
3568 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
3569 echo "$ac_t""yes" 1>&6
3572 echo "$ac_t""no" 1>&6
3573 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
3574 echo "configure:3575: checking for dbm_open in -lndbm" >&5
3575 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
3576 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3577 echo $ac_n "(cached) $ac_c" 1>&6
3579 ac_save_LIBS="$LIBS"
3581 cat > conftest.$ac_ext <<EOF
3582 #line 3583 "configure"
3583 #include "confdefs.h"
3584 /* Override any gcc2 internal prototype to avoid an error. */
3585 /* We use char because int might match the return type of a gcc2
3586 builtin and then its argument prototype would still apply. */
3593 if { (eval echo configure:3594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3595 eval "ac_cv_lib_$ac_lib_var=yes"
3597 echo "configure: failed program was:" >&5
3598 cat conftest.$ac_ext >&5
3600 eval "ac_cv_lib_$ac_lib_var=no"
3603 LIBS="$ac_save_LIBS"
3606 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3607 echo "$ac_t""yes" 1>&6
3608 ac_tr_lib=HAVE_LIB`echo ndbm | sed -e 's/^a-zA-Z0-9_/_/g' \
3609 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3610 cat >> confdefs.h <<EOF
3611 #define $ac_tr_lib 1
3617 echo "$ac_t""no" 1>&6
3618 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
3619 echo "configure:3620: checking for dbm_open in -ldbm" >&5
3620 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
3621 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3622 echo $ac_n "(cached) $ac_c" 1>&6
3624 ac_save_LIBS="$LIBS"
3626 cat > conftest.$ac_ext <<EOF
3627 #line 3628 "configure"
3628 #include "confdefs.h"
3629 /* Override any gcc2 internal prototype to avoid an error. */
3630 /* We use char because int might match the return type of a gcc2
3631 builtin and then its argument prototype would still apply. */
3638 if { (eval echo configure:3639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3640 eval "ac_cv_lib_$ac_lib_var=yes"
3642 echo "configure: failed program was:" >&5
3643 cat conftest.$ac_ext >&5
3645 eval "ac_cv_lib_$ac_lib_var=no"
3648 LIBS="$ac_save_LIBS"
3651 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3652 echo "$ac_t""yes" 1>&6
3653 ac_tr_lib=HAVE_LIB`echo dbm | sed -e 's/^a-zA-Z0-9_/_/g' \
3654 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3655 cat >> confdefs.h <<EOF
3656 #define $ac_tr_lib 1
3662 echo "$ac_t""no" 1>&6
3670 for ac_hdr in db1/ndbm.h
3672 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3673 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3674 echo "configure:3675: checking for $ac_hdr" >&5
3675 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3676 echo $ac_n "(cached) $ac_c" 1>&6
3678 cat > conftest.$ac_ext <<EOF
3679 #line 3680 "configure"
3680 #include "confdefs.h"
3683 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3684 { (eval echo configure:3685: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3685 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3686 if test -z "$ac_err"; then
3688 eval "ac_cv_header_$ac_safe=yes"
3691 echo "configure: failed program was:" >&5
3692 cat conftest.$ac_ext >&5
3694 eval "ac_cv_header_$ac_safe=no"
3698 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3699 echo "$ac_t""yes" 1>&6
3700 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3701 cat >> confdefs.h <<EOF
3702 #define $ac_tr_hdr 1
3706 echo "$ac_t""no" 1>&6
3711 if test x"$with_hesiod" != x -a x"$with_hesiod" != x"no"; then
3712 if test x"$with_hesiod" != x"yes"; then
3713 HESIOD_INCLUDES="-I$with_hesiod/include"
3714 HESIOD_LIBS="-L$with_hesiod/lib"
3716 echo $ac_n "checking for res_send""... $ac_c" 1>&6
3717 echo "configure:3718: checking for res_send" >&5
3718 if eval "test \"`echo '$''{'ac_cv_func_res_send'+set}'`\" = set"; then
3719 echo $ac_n "(cached) $ac_c" 1>&6
3721 cat > conftest.$ac_ext <<EOF
3722 #line 3723 "configure"
3723 #include "confdefs.h"
3724 /* System header to define __stub macros and hopefully few prototypes,
3725 which can conflict with char res_send(); below. */
3727 /* Override any gcc2 internal prototype to avoid an error. */
3728 /* We use char because int might match the return type of a gcc2
3729 builtin and then its argument prototype would still apply. */
3734 /* The GNU C library defines this for functions which it implements
3735 to always fail with ENOSYS. Some functions are actually named
3736 something starting with __ and the normal name is an alias. */
3737 #if defined (__stub_res_send) || defined (__stub___res_send)
3745 if { (eval echo configure:3746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3747 eval "ac_cv_func_res_send=yes"
3749 echo "configure: failed program was:" >&5
3750 cat conftest.$ac_ext >&5
3752 eval "ac_cv_func_res_send=no"
3757 if eval "test \"`echo '$ac_cv_func_'res_send`\" = yes"; then
3758 echo "$ac_t""yes" 1>&6
3761 echo "$ac_t""no" 1>&6
3762 echo $ac_n "checking for res_send in -lresolv""... $ac_c" 1>&6
3763 echo "configure:3764: checking for res_send in -lresolv" >&5
3764 ac_lib_var=`echo resolv'_'res_send | sed 'y%./+-%__p_%'`
3765 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3766 echo $ac_n "(cached) $ac_c" 1>&6
3768 ac_save_LIBS="$LIBS"
3769 LIBS="-lresolv $LIBS"
3770 cat > conftest.$ac_ext <<EOF
3771 #line 3772 "configure"
3772 #include "confdefs.h"
3773 /* Override any gcc2 internal prototype to avoid an error. */
3774 /* We use char because int might match the return type of a gcc2
3775 builtin and then its argument prototype would still apply. */
3782 if { (eval echo configure:3783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3784 eval "ac_cv_lib_$ac_lib_var=yes"
3786 echo "configure: failed program was:" >&5
3787 cat conftest.$ac_ext >&5
3789 eval "ac_cv_lib_$ac_lib_var=no"
3792 LIBS="$ac_save_LIBS"
3795 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3796 echo "$ac_t""yes" 1>&6
3797 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
3798 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3799 cat >> confdefs.h <<EOF
3800 #define $ac_tr_lib 1
3803 LIBS="-lresolv $LIBS"
3806 echo "$ac_t""no" 1>&6
3811 echo $ac_n "checking for hes_resolve in -lhesiod""... $ac_c" 1>&6
3812 echo "configure:3813: checking for hes_resolve in -lhesiod" >&5
3813 ac_lib_var=`echo hesiod'_'hes_resolve | sed 'y%./+-%__p_%'`
3814 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3815 echo $ac_n "(cached) $ac_c" 1>&6
3817 ac_save_LIBS="$LIBS"
3818 LIBS="-lhesiod $HESIOD_LIBS $LIBS"
3819 cat > conftest.$ac_ext <<EOF
3820 #line 3821 "configure"
3821 #include "confdefs.h"
3822 /* Override any gcc2 internal prototype to avoid an error. */
3823 /* We use char because int might match the return type of a gcc2
3824 builtin and then its argument prototype would still apply. */
3831 if { (eval echo configure:3832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3833 eval "ac_cv_lib_$ac_lib_var=yes"
3835 echo "configure: failed program was:" >&5
3836 cat conftest.$ac_ext >&5
3838 eval "ac_cv_lib_$ac_lib_var=no"
3841 LIBS="$ac_save_LIBS"
3844 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3845 echo "$ac_t""yes" 1>&6
3846 HESIOD_LIBS="$HESIOD_LIBS -lhesiod"
3848 echo "$ac_t""no" 1>&6
3849 { echo "configure: error: Hesiod library not found" 1>&2; exit 1; }
3854 if test x"$with_krb4" != x -a x"$with_krb4" != x"no"; then
3855 if test x"$with_krb4" != x"yes"; then
3856 KRB4_INCLUDES="-I$with_krb4/include"
3857 if test -d "$with_krb4/include/kerberosIV"; then
3858 KRB4_INCLUDES="$KRB4_INCLUDES -I$with_krb4/include/kerberosIV"
3860 KRB4_LIBS="-L$with_krb4/lib"
3861 elif test -d /usr/include/kerberosIV; then
3862 KRB4_INCLUDES="-I/usr/include/kerberosIV"
3864 echo $ac_n "checking for krb_rd_req in -lkrb4""... $ac_c" 1>&6
3865 echo "configure:3866: checking for krb_rd_req in -lkrb4" >&5
3866 ac_lib_var=`echo krb4'_'krb_rd_req | sed 'y%./+-%__p_%'`
3867 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3868 echo $ac_n "(cached) $ac_c" 1>&6
3870 ac_save_LIBS="$LIBS"
3871 LIBS="-lkrb4 $KRB4_LIBS -ldes425 -lkrb5 -lcrypto -lcom_err $LIBS"
3872 cat > conftest.$ac_ext <<EOF
3873 #line 3874 "configure"
3874 #include "confdefs.h"
3875 /* Override any gcc2 internal prototype to avoid an error. */
3876 /* We use char because int might match the return type of a gcc2
3877 builtin and then its argument prototype would still apply. */
3884 if { (eval echo configure:3885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3886 eval "ac_cv_lib_$ac_lib_var=yes"
3888 echo "configure: failed program was:" >&5
3889 cat conftest.$ac_ext >&5
3891 eval "ac_cv_lib_$ac_lib_var=no"
3894 LIBS="$ac_save_LIBS"
3897 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3898 echo "$ac_t""yes" 1>&6
3899 KRB4_LIBS="$KRB4_LIBS -lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err"
3901 echo "$ac_t""no" 1>&6
3902 echo $ac_n "checking for krb_rd_req in -lkrb""... $ac_c" 1>&6
3903 echo "configure:3904: checking for krb_rd_req in -lkrb" >&5
3904 ac_lib_var=`echo krb'_'krb_rd_req | sed 'y%./+-%__p_%'`
3905 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3906 echo $ac_n "(cached) $ac_c" 1>&6
3908 ac_save_LIBS="$LIBS"
3909 LIBS="-lkrb $KRB4_LIBS -ldes $LIBS"
3910 cat > conftest.$ac_ext <<EOF
3911 #line 3912 "configure"
3912 #include "confdefs.h"
3913 /* Override any gcc2 internal prototype to avoid an error. */
3914 /* We use char because int might match the return type of a gcc2
3915 builtin and then its argument prototype would still apply. */
3922 if { (eval echo configure:3923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3924 eval "ac_cv_lib_$ac_lib_var=yes"
3926 echo "configure: failed program was:" >&5
3927 cat conftest.$ac_ext >&5
3929 eval "ac_cv_lib_$ac_lib_var=no"
3932 LIBS="$ac_save_LIBS"
3935 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3936 echo "$ac_t""yes" 1>&6
3937 KRB4_LIBS="$KRB4_LIBS -lkrb -ldes"
3939 echo "$ac_t""no" 1>&6
3940 { echo "configure: error: Kerberos 4 libraries not found" 1>&2; exit 1; }
3948 nmh_save_LIBS="$LIBS"
3949 LIBS="$TERMLIB $LIBS"
3951 echo $ac_n "checking if an include file defines ospeed""... $ac_c" 1>&6
3952 echo "configure:3953: checking if an include file defines ospeed" >&5
3953 if eval "test \"`echo '$''{'nmh_cv_decl_ospeed_include_defines'+set}'`\" = set"; then
3954 echo $ac_n "(cached) $ac_c" 1>&6
3956 cat > conftest.$ac_ext <<EOF
3957 #line 3958 "configure"
3958 #include "confdefs.h"
3959 #include <sys/types.h>
3961 #include <termios.h>
3964 #include <termcap.h>
3970 if { (eval echo configure:3971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3972 nmh_cv_decl_ospeed_include_defines=yes
3974 echo "configure: failed program was:" >&5
3975 cat conftest.$ac_ext >&5
3977 nmh_cv_decl_ospeed_include_defines=no
3982 echo "$ac_t""$nmh_cv_decl_ospeed_include_defines" 1>&6
3984 if test $nmh_cv_decl_ospeed_include_defines = no; then
3985 echo $ac_n "checking if you must define ospeed""... $ac_c" 1>&6
3986 echo "configure:3987: checking if you must define ospeed" >&5
3987 if eval "test \"`echo '$''{'nmh_cv_decl_ospeed_must_define'+set}'`\" = set"; then
3988 echo $ac_n "(cached) $ac_c" 1>&6
3990 cat > conftest.$ac_ext <<EOF
3991 #line 3992 "configure"
3992 #include "confdefs.h"
3995 extern short ospeed; ospeed = 0;
3998 if { (eval echo configure:3999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4000 nmh_cv_decl_ospeed_must_define=yes
4002 echo "configure: failed program was:" >&5
4003 cat conftest.$ac_ext >&5
4005 nmh_cv_decl_ospeed_must_define=no
4010 echo "$ac_t""$nmh_cv_decl_ospeed_must_define" 1>&6
4013 if test $nmh_cv_decl_ospeed_include_defines = yes; then
4014 cat >> confdefs.h <<\EOF
4015 #define HAVE_OSPEED 1
4018 elif test $nmh_cv_decl_ospeed_must_define = yes; then
4019 cat >> confdefs.h <<\EOF
4020 #define HAVE_OSPEED 1
4023 cat >> confdefs.h <<\EOF
4024 #define MUST_DEFINE_OSPEED 1
4030 LIBS="$nmh_save_LIBS"
4032 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4033 echo "configure:4034: checking return type of signal handlers" >&5
4034 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4035 echo $ac_n "(cached) $ac_c" 1>&6
4037 cat > conftest.$ac_ext <<EOF
4038 #line 4039 "configure"
4039 #include "confdefs.h"
4040 #include <sys/types.h>
4046 extern "C" void (*signal (int, void (*)(int)))(int);
4048 void (*signal ()) ();
4055 if { (eval echo configure:4056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4057 ac_cv_type_signal=void
4059 echo "configure: failed program was:" >&5
4060 cat conftest.$ac_ext >&5
4062 ac_cv_type_signal=int
4067 echo "$ac_t""$ac_cv_type_signal" 1>&6
4068 cat >> confdefs.h <<EOF
4069 #define RETSIGTYPE $ac_cv_type_signal
4073 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
4074 echo "configure:4075: checking for pid_t" >&5
4075 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
4076 echo $ac_n "(cached) $ac_c" 1>&6
4078 cat > conftest.$ac_ext <<EOF
4079 #line 4080 "configure"
4080 #include "confdefs.h"
4081 #include <sys/types.h>
4087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4088 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4090 ac_cv_type_pid_t=yes
4098 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
4099 if test $ac_cv_type_pid_t = no; then
4100 cat >> confdefs.h <<\EOF
4106 echo $ac_n "checking for off_t""... $ac_c" 1>&6
4107 echo "configure:4108: checking for off_t" >&5
4108 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
4109 echo $ac_n "(cached) $ac_c" 1>&6
4111 cat > conftest.$ac_ext <<EOF
4112 #line 4113 "configure"
4113 #include "confdefs.h"
4114 #include <sys/types.h>
4120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4121 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4123 ac_cv_type_off_t=yes
4131 echo "$ac_t""$ac_cv_type_off_t" 1>&6
4132 if test $ac_cv_type_off_t = no; then
4133 cat >> confdefs.h <<\EOF
4139 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
4140 echo "configure:4141: checking for uid_t in sys/types.h" >&5
4141 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
4142 echo $ac_n "(cached) $ac_c" 1>&6
4144 cat > conftest.$ac_ext <<EOF
4145 #line 4146 "configure"
4146 #include "confdefs.h"
4147 #include <sys/types.h>
4149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4150 egrep "uid_t" >/dev/null 2>&1; then
4152 ac_cv_type_uid_t=yes
4161 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
4162 if test $ac_cv_type_uid_t = no; then
4163 cat >> confdefs.h <<\EOF
4167 cat >> confdefs.h <<\EOF
4173 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
4174 echo "configure:4175: checking for mode_t" >&5
4175 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
4176 echo $ac_n "(cached) $ac_c" 1>&6
4178 cat > conftest.$ac_ext <<EOF
4179 #line 4180 "configure"
4180 #include "confdefs.h"
4181 #include <sys/types.h>
4187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4188 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4190 ac_cv_type_mode_t=yes
4193 ac_cv_type_mode_t=no
4198 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
4199 if test $ac_cv_type_mode_t = no; then
4200 cat >> confdefs.h <<\EOF
4206 echo $ac_n "checking for size_t""... $ac_c" 1>&6
4207 echo "configure:4208: checking for size_t" >&5
4208 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
4209 echo $ac_n "(cached) $ac_c" 1>&6
4211 cat > conftest.$ac_ext <<EOF
4212 #line 4213 "configure"
4213 #include "confdefs.h"
4214 #include <sys/types.h>
4220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4221 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4223 ac_cv_type_size_t=yes
4226 ac_cv_type_size_t=no
4231 echo "$ac_t""$ac_cv_type_size_t" 1>&6
4232 if test $ac_cv_type_size_t = no; then
4233 cat >> confdefs.h <<\EOF
4234 #define size_t unsigned
4240 echo $ac_n "checking for sigset_t""... $ac_c" 1>&6
4241 echo "configure:4242: checking for sigset_t" >&5
4242 if eval "test \"`echo '$''{'nmh_cv_type_sigset_t'+set}'`\" = set"; then
4243 echo $ac_n "(cached) $ac_c" 1>&6
4245 cat > conftest.$ac_ext <<EOF
4246 #line 4247 "configure"
4247 #include "confdefs.h"
4248 #include <sys/types.h>
4251 sigset_t tempsigset;
4254 if { (eval echo configure:4255: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4256 nmh_cv_type_sigset_t=yes
4258 echo "configure: failed program was:" >&5
4259 cat conftest.$ac_ext >&5
4261 nmh_cv_type_sigset_t=no
4266 echo "$ac_t""$nmh_cv_type_sigset_t" 1>&6
4267 if test $nmh_cv_type_sigset_t = no; then
4268 cat >> confdefs.h <<\EOF
4269 #define sigset_t unsigned int
4274 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
4275 echo "configure:4276: checking for st_blksize in struct stat" >&5
4276 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
4277 echo $ac_n "(cached) $ac_c" 1>&6
4279 cat > conftest.$ac_ext <<EOF
4280 #line 4281 "configure"
4281 #include "confdefs.h"
4282 #include <sys/types.h>
4283 #include <sys/stat.h>
4285 struct stat s; s.st_blksize;
4288 if { (eval echo configure:4289: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4290 ac_cv_struct_st_blksize=yes
4292 echo "configure: failed program was:" >&5
4293 cat conftest.$ac_ext >&5
4295 ac_cv_struct_st_blksize=no
4300 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
4301 if test $ac_cv_struct_st_blksize = yes; then
4302 cat >> confdefs.h <<\EOF
4303 #define HAVE_ST_BLKSIZE 1
4309 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
4310 echo "configure:4311: checking for tm_gmtoff in struct tm" >&5
4311 if eval "test \"`echo '$''{'nmh_cv_struct_tm_gmtoff'+set}'`\" = set"; then
4312 echo $ac_n "(cached) $ac_c" 1>&6
4314 cat > conftest.$ac_ext <<EOF
4315 #line 4316 "configure"
4316 #include "confdefs.h"
4317 #ifdef TIME_WITH_SYS_TIME
4318 # include <sys/time.h>
4321 # ifdef TM_IN_SYS_TIME
4322 # include <sys/time.h>
4328 struct tm temptm; temptm.tm_gmtoff = 0;
4331 if { (eval echo configure:4332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4333 nmh_cv_struct_tm_gmtoff=yes
4335 echo "configure: failed program was:" >&5
4336 cat conftest.$ac_ext >&5
4338 nmh_cv_struct_tm_gmtoff=no
4343 echo "$ac_t""$nmh_cv_struct_tm_gmtoff" 1>&6
4344 if test $nmh_cv_struct_tm_gmtoff = yes; then
4345 cat >> confdefs.h <<\EOF
4346 #define HAVE_TM_GMTOFF 1
4351 echo $ac_n "checking what style of signals to use""... $ac_c" 1>&6
4352 echo "configure:4353: checking what style of signals to use" >&5
4353 if test $ac_cv_func_sigaction = yes -a $ac_cv_func_sigprocmask = yes; then
4354 signals_style=POSIX_SIGNALS
4355 cat >> confdefs.h <<\EOF
4356 #define POSIX_SIGNALS 1
4359 cat >> confdefs.h <<\EOF
4360 #define RELIABLE_SIGNALS 1
4363 elif test $ac_cv_func_sigblock = yes -a $ac_cv_func_sigsetmask = yes; then
4364 signals_style=BSD_SIGNALS
4365 cat >> confdefs.h <<\EOF
4366 #define BSD_SIGNALS 1
4369 cat >> confdefs.h <<\EOF
4370 #define RELIABLE_SIGNALS 1
4373 elif test $ac_cv_func_sighold = yes -a $ac_cv_func_sigrelse = yes; then
4374 signals_style=SYSV_SIGNALS
4375 cat >> confdefs.h <<\EOF
4376 #define SYSV_SIGNALS 1
4380 signals_style=NO_SIGNAL_BLOCKING
4381 cat >> confdefs.h <<\EOF
4382 #define NO_SIGNAL_BLOCKING 1
4387 echo "$ac_t""$signals_style" 1>&6
4389 echo $ac_n "checking where signal.h is located""... $ac_c" 1>&6
4390 echo "configure:4391: checking where signal.h is located" >&5
4391 if eval "test \"`echo '$''{'nmh_cv_path_signal_h'+set}'`\" = set"; then
4392 echo $ac_n "(cached) $ac_c" 1>&6
4394 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
4395 test -f $SIGNAL_H && \
4396 grep '#[ ]*define[ ][ ]*SIG[0-9A-Z]*[ ]*[0-9][0-9]*' $SIGNAL_H > /dev/null && \
4399 nmh_cv_path_signal_h=$SIGNAL_H
4403 echo "$ac_t""$nmh_cv_path_signal_h" 1>&6
4404 SIGNAL_H=$nmh_cv_path_signal_h
4406 case "$target_os" in
4409 cat >> confdefs.h <<\EOF
4413 cat >> confdefs.h <<\EOF
4419 cat >> confdefs.h <<\EOF
4423 cat >> confdefs.h <<\EOF
4429 cat >> confdefs.h <<\EOF
4433 cat >> confdefs.h <<\EOF
4439 cat >> confdefs.h <<\EOF
4443 cat >> confdefs.h <<\EOF
4449 cat >> confdefs.h <<\EOF
4455 cat >> confdefs.h <<\EOF
4459 cat >> confdefs.h <<\EOF
4465 cat >> confdefs.h <<\EOF
4469 cat >> confdefs.h <<\EOF
4475 cat >> confdefs.h <<\EOF
4479 cat >> confdefs.h <<\EOF
4485 cat >> confdefs.h <<\EOF
4489 cat >> confdefs.h <<\EOF
4495 cat >> confdefs.h <<\EOF
4499 cat >> confdefs.h <<\EOF
4500 #define SCO_5_STDIO 1
4508 cat > confcache <<\EOF
4509 # This file is a shell script that caches the results of configure
4510 # tests run on this system so they can be shared between configure
4511 # scripts and configure runs. It is not useful on other systems.
4512 # If it contains results you don't want to keep, you may remove or edit it.
4514 # By default, configure uses ./config.cache as the cache file,
4515 # creating it if it does not exist already. You can give configure
4516 # the --cache-file=FILE option to use a different cache file; that is
4517 # what configure does when it calls configure scripts in
4518 # subdirectories, so they share the cache.
4519 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4520 # config.status only pays attention to the cache file if you give it the
4521 # --recheck option to rerun configure.
4524 # The following way of writing the cache mishandles newlines in values,
4525 # but we know of no workaround that is simple, portable, and efficient.
4526 # So, don't put newlines in cache variables' values.
4527 # Ultrix sh set writes to stderr and can't be redirected directly,
4528 # and sets the high bit in the cache file unless we assign to the vars.
4530 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4532 # `set' does not quote correctly, so add quotes (double-quote substitution
4533 # turns \\\\ into \\, and sed turns \\ into \).
4535 -e "s/'/'\\\\''/g" \
4536 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4539 # `set' quotes correctly as required by POSIX, so do not add quotes.
4540 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4543 if cmp -s $cache_file confcache; then
4546 if test -w $cache_file; then
4547 echo "updating cache $cache_file"
4548 cat confcache > $cache_file
4550 echo "not updating unwritable cache $cache_file"
4555 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4557 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4558 # Let make expand exec_prefix.
4559 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4561 # Any assignment to VPATH causes Sun make to only execute
4562 # the first set of double-colon rules, so remove it if not needed.
4563 # If there is a colon in the path, we need to keep it.
4564 if test "x$srcdir" = x.; then
4565 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4568 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4570 DEFS=-DHAVE_CONFIG_H
4572 # Without the "./", some shells look in PATH for config.status.
4573 : ${CONFIG_STATUS=./config.status}
4575 echo creating $CONFIG_STATUS
4576 rm -f $CONFIG_STATUS
4577 cat > $CONFIG_STATUS <<EOF
4579 # Generated automatically by configure.
4580 # Run this file to recreate the current configuration.
4581 # This directory was configured as follows,
4582 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4584 # $0 $ac_configure_args
4586 # Compiler output produced by configure, useful for debugging
4587 # configure, is in ./config.log if it exists.
4589 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4592 case "\$ac_option" in
4593 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4594 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4595 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4596 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4597 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4599 -help | --help | --hel | --he | --h)
4600 echo "\$ac_cs_usage"; exit 0 ;;
4601 *) echo "\$ac_cs_usage"; exit 1 ;;
4605 ac_given_srcdir=$srcdir
4606 ac_given_INSTALL="$INSTALL"
4608 trap 'rm -fr `echo "Makefile config/Makefile h/Makefile sbr/Makefile uip/Makefile \
4609 zotnet/Makefile zotnet/mts/Makefile zotnet/tws/Makefile \
4610 zotnet/mf/Makefile zotnet/bboards/Makefile mts/Makefile \
4611 mts/smtp/Makefile mts/sendmail/Makefile mts/mmdf/Makefile \
4612 etc/Makefile man/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4614 cat >> $CONFIG_STATUS <<EOF
4616 # Protect against being on the right side of a sed subst in config.status.
4617 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4618 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4622 s%@CFLAGS@%$CFLAGS%g
4623 s%@CPPFLAGS@%$CPPFLAGS%g
4624 s%@CXXFLAGS@%$CXXFLAGS%g
4625 s%@FFLAGS@%$FFLAGS%g
4627 s%@LDFLAGS@%$LDFLAGS%g
4629 s%@exec_prefix@%$exec_prefix%g
4630 s%@prefix@%$prefix%g
4631 s%@program_transform_name@%$program_transform_name%g
4632 s%@bindir@%$bindir%g
4633 s%@sbindir@%$sbindir%g
4634 s%@libexecdir@%$libexecdir%g
4635 s%@datadir@%$datadir%g
4636 s%@sysconfdir@%$sysconfdir%g
4637 s%@sharedstatedir@%$sharedstatedir%g
4638 s%@localstatedir@%$localstatedir%g
4639 s%@libdir@%$libdir%g
4640 s%@includedir@%$includedir%g
4641 s%@oldincludedir@%$oldincludedir%g
4642 s%@infodir@%$infodir%g
4643 s%@mandir@%$mandir%g
4645 s%@host_alias@%$host_alias%g
4646 s%@host_cpu@%$host_cpu%g
4647 s%@host_vendor@%$host_vendor%g
4648 s%@host_os@%$host_os%g
4649 s%@target@%$target%g
4650 s%@target_alias@%$target_alias%g
4651 s%@target_cpu@%$target_cpu%g
4652 s%@target_vendor@%$target_vendor%g
4653 s%@target_os@%$target_os%g
4655 s%@build_alias@%$build_alias%g
4656 s%@build_cpu@%$build_cpu%g
4657 s%@build_vendor@%$build_vendor%g
4658 s%@build_os@%$build_os%g
4659 s%@VERSION@%$VERSION%g
4660 s%@masquerade@%$masquerade%g
4661 s%@POPLIB@%$POPLIB%g
4662 s%@POPSED@%$POPSED%g
4664 s%@MTSLIB@%$MTSLIB%g
4665 s%@smtpservers@%$smtpservers%g
4667 s%@SET_MAKE@%$SET_MAKE%g
4668 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4669 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4670 s%@INSTALL_DATA@%$INSTALL_DATA%g
4671 s%@RANLIB@%$RANLIB%g
4674 s%@LEXLIB@%$LEXLIB%g
4675 s%@cutpath@%$cutpath%g
4676 s%@LIBTOOL@%$LIBTOOL%g
4677 s%@GNU_LIBTOOL@%$GNU_LIBTOOL%g
4678 s%@LORDER@%$LORDER%g
4680 s%@lspath@%$lspath%g
4681 s%@morepath@%$morepath%g
4682 s%@pagerpath@%$pagerpath%g
4683 s%@sendmailpath@%$sendmailpath%g
4684 s%@vipath@%$vipath%g
4685 s%@editorpath@%$editorpath%g
4686 s%@mailspool@%$mailspool%g
4687 s%@SETGID_MAIL@%$SETGID_MAIL%g
4688 s%@MAIL_SPOOL_GRP@%$MAIL_SPOOL_GRP%g
4690 s%@LIBOBJS@%$LIBOBJS%g
4691 s%@TERMLIB@%$TERMLIB%g
4692 s%@HESIOD_INCLUDES@%$HESIOD_INCLUDES%g
4693 s%@HESIOD_LIBS@%$HESIOD_LIBS%g
4694 s%@KRB4_INCLUDES@%$KRB4_INCLUDES%g
4695 s%@KRB4_LIBS@%$KRB4_LIBS%g
4696 s%@SIGNAL_H@%$SIGNAL_H%g
4701 cat >> $CONFIG_STATUS <<\EOF
4703 # Split the substitutions into bite-sized pieces for seds with
4704 # small command number limits, like on Digital OSF/1 and HP-UX.
4705 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4706 ac_file=1 # Number of current file.
4707 ac_beg=1 # First line for current file.
4708 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4711 while $ac_more_lines; do
4712 if test $ac_beg -gt 1; then
4713 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4715 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4717 if test ! -s conftest.s$ac_file; then
4719 rm -f conftest.s$ac_file
4721 if test -z "$ac_sed_cmds"; then
4722 ac_sed_cmds="sed -f conftest.s$ac_file"
4724 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4726 ac_file=`expr $ac_file + 1`
4728 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4731 if test -z "$ac_sed_cmds"; then
4736 cat >> $CONFIG_STATUS <<EOF
4738 CONFIG_FILES=\${CONFIG_FILES-"Makefile config/Makefile h/Makefile sbr/Makefile uip/Makefile \
4739 zotnet/Makefile zotnet/mts/Makefile zotnet/tws/Makefile \
4740 zotnet/mf/Makefile zotnet/bboards/Makefile mts/Makefile \
4741 mts/smtp/Makefile mts/sendmail/Makefile mts/mmdf/Makefile \
4742 etc/Makefile man/Makefile"}
4744 cat >> $CONFIG_STATUS <<\EOF
4745 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4746 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4748 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4749 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4750 *) ac_file_in="${ac_file}.in" ;;
4753 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4755 # Remove last slash and all that follows it. Not all systems have dirname.
4756 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4757 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4758 # The file is in a subdirectory.
4759 test ! -d "$ac_dir" && mkdir "$ac_dir"
4760 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4761 # A "../" for each directory in $ac_dir_suffix.
4762 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4764 ac_dir_suffix= ac_dots=
4767 case "$ac_given_srcdir" in
4769 if test -z "$ac_dots"; then top_srcdir=.
4770 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4771 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4773 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4774 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4777 case "$ac_given_INSTALL" in
4778 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4779 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4782 echo creating "$ac_file"
4784 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4786 *Makefile*) ac_comsub="1i\\
4787 # $configure_input" ;;
4791 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4793 s%@configure_input@%$configure_input%g
4794 s%@srcdir@%$srcdir%g
4795 s%@top_srcdir@%$top_srcdir%g
4796 s%@INSTALL@%$INSTALL%g
4797 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4801 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4802 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4804 # ac_d sets the value in "#define NAME VALUE" lines.
4805 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4806 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4809 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4810 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4811 ac_uB='\([ ]\)%\1#\2define\3'
4814 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4815 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4816 ac_eB='$%\1#\2define\3'
4820 if test "${CONFIG_HEADERS+set}" != set; then
4822 cat >> $CONFIG_STATUS <<EOF
4823 CONFIG_HEADERS="config.h"
4825 cat >> $CONFIG_STATUS <<\EOF
4827 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4828 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4830 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4831 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4832 *) ac_file_in="${ac_file}.in" ;;
4835 echo creating $ac_file
4837 rm -f conftest.frag conftest.in conftest.out
4838 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4839 cat $ac_file_inputs > conftest.in
4843 # Transform confdefs.h into a sed script conftest.vals that substitutes
4844 # the proper values into config.h.in to produce config.h. And first:
4845 # Protect against being on the right side of a sed subst in config.status.
4846 # Protect against being in an unquoted here document in config.status.
4848 cat > conftest.hdr <<\EOF
4851 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4855 sed -n -f conftest.hdr confdefs.h > conftest.vals
4858 # This sed command replaces #undef with comments. This is necessary, for
4859 # example, in the case of _POSIX_SOURCE, which is predefined and required
4860 # on some systems where configure will not decide to define it.
4861 cat >> conftest.vals <<\EOF
4862 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4865 # Break up conftest.vals because some shells have a limit on
4866 # the size of here documents, and old seds have small limits too.
4871 ac_lines=`grep -c . conftest.vals`
4872 # grep -c gives empty output for an empty file on some AIX systems.
4873 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4874 # Write a limited-size here document to conftest.frag.
4875 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4876 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4878 sed -f conftest.frag conftest.in > conftest.out
4880 mv conftest.out conftest.in
4882 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4884 mv conftest.tail conftest.vals
4888 cat >> $CONFIG_STATUS <<\EOF
4889 rm -f conftest.frag conftest.h
4890 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4891 cat conftest.in >> conftest.h
4893 if cmp -s $ac_file conftest.h 2>/dev/null; then
4894 echo "$ac_file is unchanged"
4897 # Remove last slash and all that follows it. Not all systems have dirname.
4898 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4899 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4900 # The file is in a subdirectory.
4901 test ! -d "$ac_dir" && mkdir "$ac_dir"
4904 mv conftest.h $ac_file
4909 cat >> $CONFIG_STATUS <<EOF
4912 cat >> $CONFIG_STATUS <<\EOF
4914 test -z "$CONFIG_HEADERS" || echo > stamp-h
4917 chmod +x $CONFIG_STATUS
4918 rm -fr confdefs* $ac_clean_files
4919 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4922 eval "nmhbin=${bindir}"; eval "nmhbin2=${nmhbin}"
4923 eval "nmhsysconf=${sysconfdir}"; eval "nmhsysconf2=${nmhsysconf}"
4924 eval "nmhlib=${libdir}"; eval "nmhlib2=${nmhlib}"
4925 eval "nmhman=${mandir}"
4927 if test x"$enable_pop" = x; then
4934 nmh version : ${VERSION}
4935 target os : ${target}
4937 compiler flags : ${CFLAGS}
4938 linker flags : ${LDFLAGS}
4939 source code location : ${srcdir}
4940 binary install path : ${nmhbin2}
4941 libary install path : ${nmhlib2}
4942 config files install path : ${nmhsysconf2}
4943 man page install path : ${nmhman}
4944 transport system : ${MTS}
4945 default smtp servers : ${smtpservers}
4946 default editor : ${editorpath}
4947 default pager : ${pagerpath}
4948 email address masquerading : ${masquerade}
4949 pop is enabled : ${enable_pop}"