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-masquerade[='draft_from[ mmailid[ username_extension]]']
16 enable 3 types of email address masquerading [none]"
18 --enable-nmh-debug enable nmh code debugging"
20 --enable-nmh-mhe enable mhe support (DEFAULT)"
22 --enable-nmh-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-masquerade or --disable-masquerade was given.
667 if test "${enable_masquerade+set}" = set; then
668 enableval="$enable_masquerade"
669 if test x"$enable_masquerade" = x"yes"; then
670 masquerade="draft_from mmailid username_extension"
672 masquerade="$enable_masquerade"
677 # Check whether --enable-nmh-debug or --disable-nmh-debug was given.
678 if test "${enable_nmh_debug+set}" = set; then
679 enableval="$enable_nmh_debug"
684 # Check whether --enable-nmh-mhe or --disable-nmh-mhe was given.
685 if test "${enable_nmh_mhe+set}" = set; then
686 enableval="$enable_nmh_mhe"
691 if test x$"enable_nmh_mhe" != x"no"; then
692 cat >> confdefs.h <<\EOF
697 # Check whether --enable-nmh-pop or --disable-nmh-pop was given.
698 if test "${enable_nmh_pop+set}" = set; then
699 enableval="$enable_nmh_pop"
703 if test x"$enable_nmh_pop" = x"yes"; then
704 cat >> confdefs.h <<\EOF
708 POPSED='/^%nmhbeginpop%/d;/^%nmhendpop%/d'
710 POPSED='/^%nmhbeginpop%/,/^%nmhendpop%/d'
713 # Check whether --with-editor or --without-editor was given.
714 if test "${with_editor+set}" = set; then
715 withval="$with_editor"
720 if test -n "$with_editor"; then
721 editorpath="$with_editor"
724 # Check whether --with-hesiod or --without-hesiod was given.
725 if test "${with_hesiod+set}" = set; then
726 withval="$with_hesiod"
730 if test x"$with_hesiod" != x -a x"$with_hesiod" != x"no"; then
731 cat >> confdefs.h <<\EOF
736 # Check whether --with-krb4 or --without-krb4 was given.
737 if test "${with_krb4+set}" = set; then
742 if test x"$with_krb4" != x -a x"$with_krb4" != x"no"; then
743 cat >> confdefs.h <<\EOF
746 cat >> confdefs.h <<\EOF
747 #define KPOP_PRINCIPAL "pop"
751 # Check whether --with-mts or --without-mts was given.
752 if test "${with_mts+set}" = set; then
758 if test x"$with_mts" = x"smtp"; then
760 MTSLIB="mts/smtp/libsmtp.a"
761 cat >> confdefs.h <<\EOF
764 elif test x"$with_mts" = x"sendmail"; then
766 MTSLIB="mts/sendmail/libsend.a"
767 cat >> confdefs.h <<\EOF
772 MTSLIB="mts/smtp/libsmtp.a"
773 cat >> confdefs.h <<\EOF
779 # Check whether --with-pager or --without-pager was given.
780 if test "${with_pager+set}" = set; then
781 withval="$with_pager"
786 if test -n "$with_pager"; then
787 pagerpath="$with_pager"
790 # Check whether --with-smtpservers or --without-smtpservers was given.
791 if test "${with_smtpservers+set}" = set; then
792 withval="$with_smtpservers"
796 if test -n "$with_smtpservers"; then
797 smtpservers="$with_smtpservers"
799 smtpservers="localhost"
804 test -z "$CFLAGS" && CFLAGS= auto_cflags=1
805 if test x"$enable_nmh_debug" = x"yes"; then
806 test -z "$LDFLAGS" && LDFLAGS=-g
809 # Extract the first word of "gcc", so it can be a program name with args.
810 set dummy gcc; ac_word=$2
811 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
812 echo "configure:813: checking for $ac_word" >&5
813 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
814 echo $ac_n "(cached) $ac_c" 1>&6
816 if test -n "$CC"; then
817 ac_cv_prog_CC="$CC" # Let the user override the test.
819 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
821 for ac_dir in $ac_dummy; do
822 test -z "$ac_dir" && ac_dir=.
823 if test -f $ac_dir/$ac_word; then
832 if test -n "$CC"; then
833 echo "$ac_t""$CC" 1>&6
835 echo "$ac_t""no" 1>&6
838 if test -z "$CC"; then
839 # Extract the first word of "cc", so it can be a program name with args.
840 set dummy cc; ac_word=$2
841 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
842 echo "configure:843: checking for $ac_word" >&5
843 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
844 echo $ac_n "(cached) $ac_c" 1>&6
846 if test -n "$CC"; then
847 ac_cv_prog_CC="$CC" # Let the user override the test.
849 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
852 for ac_dir in $ac_dummy; do
853 test -z "$ac_dir" && ac_dir=.
854 if test -f $ac_dir/$ac_word; then
855 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
864 if test $ac_prog_rejected = yes; then
865 # We found a bogon in the path, so make sure we never use it.
866 set dummy $ac_cv_prog_CC
868 if test $# -gt 0; then
869 # We chose a different compiler from the bogus one.
870 # However, it has the same basename, so the bogon will be chosen
871 # first if we set CC to just the basename; use the full file name.
873 set dummy "$ac_dir/$ac_word" "$@"
881 if test -n "$CC"; then
882 echo "$ac_t""$CC" 1>&6
884 echo "$ac_t""no" 1>&6
887 if test -z "$CC"; then
890 # Extract the first word of "cl", so it can be a program name with args.
891 set dummy cl; ac_word=$2
892 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
893 echo "configure:894: checking for $ac_word" >&5
894 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
895 echo $ac_n "(cached) $ac_c" 1>&6
897 if test -n "$CC"; then
898 ac_cv_prog_CC="$CC" # Let the user override the test.
900 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
902 for ac_dir in $ac_dummy; do
903 test -z "$ac_dir" && ac_dir=.
904 if test -f $ac_dir/$ac_word; then
913 if test -n "$CC"; then
914 echo "$ac_t""$CC" 1>&6
916 echo "$ac_t""no" 1>&6
921 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
924 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
925 echo "configure:926: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
928 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
929 ac_cpp='$CPP $CPPFLAGS'
930 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
931 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
932 cross_compiling=$ac_cv_prog_cc_cross
934 cat > conftest.$ac_ext << EOF
936 #line 937 "configure"
937 #include "confdefs.h"
941 if { (eval echo configure:942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
942 ac_cv_prog_cc_works=yes
943 # If we can't run a trivial program, we are probably using a cross compiler.
944 if (./conftest; exit) 2>/dev/null; then
945 ac_cv_prog_cc_cross=no
947 ac_cv_prog_cc_cross=yes
950 echo "configure: failed program was:" >&5
951 cat conftest.$ac_ext >&5
952 ac_cv_prog_cc_works=no
956 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
957 ac_cpp='$CPP $CPPFLAGS'
958 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
959 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
960 cross_compiling=$ac_cv_prog_cc_cross
962 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
963 if test $ac_cv_prog_cc_works = no; then
964 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
966 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
967 echo "configure:968: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
968 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
969 cross_compiling=$ac_cv_prog_cc_cross
971 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
972 echo "configure:973: checking whether we are using GNU C" >&5
973 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
974 echo $ac_n "(cached) $ac_c" 1>&6
976 cat > conftest.c <<EOF
981 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
988 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
990 if test $ac_cv_prog_gcc = yes; then
996 ac_test_CFLAGS="${CFLAGS+set}"
997 ac_save_CFLAGS="$CFLAGS"
999 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1000 echo "configure:1001: checking whether ${CC-cc} accepts -g" >&5
1001 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1002 echo $ac_n "(cached) $ac_c" 1>&6
1004 echo 'void f(){}' > conftest.c
1005 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1014 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1015 if test "$ac_test_CFLAGS" = set; then
1016 CFLAGS="$ac_save_CFLAGS"
1017 elif test $ac_cv_prog_cc_g = yes; then
1018 if test "$GCC" = yes; then
1024 if test "$GCC" = yes; then
1032 if test -n "$auto_cflags"; then
1033 if test x"$enable_nmh_debug" = x"yes"; then
1034 if test -n "$GCC"; then
1035 test -z "$CFLAGS" && CFLAGS="-Wall -g" || CFLAGS="$CFLAGS -Wall -g"
1037 test -z "$CFLAGS" && CFLAGS=-g || CFLAGS="$CFLAGS -g"
1040 test -z "$LDFLAGS" && LDFLAGS=-s
1041 if test -n "$GCC"; then
1042 test -z "$CFLAGS" && CFLAGS=-O2 || CFLAGS="$CFLAGS -O2"
1044 test -z "$CFLAGS" && CFLAGS=-O || CFLAGS="$CFLAGS -O"
1049 echo $ac_n "checking for working const""... $ac_c" 1>&6
1050 echo "configure:1051: checking for working const" >&5
1051 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1052 echo $ac_n "(cached) $ac_c" 1>&6
1054 cat > conftest.$ac_ext <<EOF
1055 #line 1056 "configure"
1056 #include "confdefs.h"
1060 /* Ultrix mips cc rejects this. */
1061 typedef int charset[2]; const charset x;
1062 /* SunOS 4.1.1 cc rejects this. */
1063 char const *const *ccp;
1065 /* NEC SVR4.0.2 mips cc rejects this. */
1066 struct point {int x, y;};
1067 static struct point const zero = {0,0};
1068 /* AIX XL C 1.02.0.0 rejects this.
1069 It does not let you subtract one const X* pointer from another in an arm
1070 of an if-expression whose if-part is not a constant expression */
1071 const char *g = "string";
1072 ccp = &g + (g ? g-g : 0);
1073 /* HPUX 7.0 cc rejects these. */
1076 ccp = (char const *const *) p;
1077 { /* SCO 3.2v4 cc rejects this. */
1079 char const *s = 0 ? (char *) 0 : (char const *) 0;
1083 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1085 const int *foo = &x[0];
1088 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1089 typedef const int *iptr;
1093 { /* AIX XL C 1.02.0.0 rejects this saying
1094 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1095 struct s { int j; const int *ap[3]; };
1096 struct s *b; b->j = 5;
1098 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1104 if { (eval echo configure:1105: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1108 echo "configure: failed program was:" >&5
1109 cat conftest.$ac_ext >&5
1116 echo "$ac_t""$ac_cv_c_const" 1>&6
1117 if test $ac_cv_c_const = no; then
1118 cat >> confdefs.h <<\EOF
1124 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1125 echo "configure:1126: checking whether ${MAKE-make} sets \${MAKE}" >&5
1126 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1127 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1128 echo $ac_n "(cached) $ac_c" 1>&6
1130 cat > conftestmake <<\EOF
1132 @echo 'ac_maketemp="${MAKE}"'
1134 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1135 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1136 if test -n "$ac_maketemp"; then
1137 eval ac_cv_prog_make_${ac_make}_set=yes
1139 eval ac_cv_prog_make_${ac_make}_set=no
1143 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1144 echo "$ac_t""yes" 1>&6
1147 echo "$ac_t""no" 1>&6
1148 SET_MAKE="MAKE=${MAKE-make}"
1150 # Find a good install program. We prefer a C program (faster),
1151 # so one script is as good as another. But avoid the broken or
1152 # incompatible versions:
1153 # SysV /etc/install, /usr/sbin/install
1154 # SunOS /usr/etc/install
1155 # IRIX /sbin/install
1157 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1158 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1159 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1160 # ./install, which can be erroneously created by make from ./install.sh.
1161 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1162 echo "configure:1163: checking for a BSD compatible install" >&5
1163 if test -z "$INSTALL"; then
1164 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1165 echo $ac_n "(cached) $ac_c" 1>&6
1167 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1168 for ac_dir in $PATH; do
1169 # Account for people who put trailing slashes in PATH elements.
1171 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1173 # OSF1 and SCO ODT 3.0 have their own names for install.
1174 # Don't use installbsd from OSF since it installs stuff as root
1176 for ac_prog in ginstall scoinst install; do
1177 if test -f $ac_dir/$ac_prog; then
1178 if test $ac_prog = install &&
1179 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1180 # AIX install. It has an incompatible calling convention.
1183 ac_cv_path_install="$ac_dir/$ac_prog -c"
1194 if test "${ac_cv_path_install+set}" = set; then
1195 INSTALL="$ac_cv_path_install"
1197 # As a last resort, use the slow shell script. We don't cache a
1198 # path for INSTALL within a source directory, because that will
1199 # break other packages using the cache if that directory is
1200 # removed, or if the path is relative.
1201 INSTALL="$ac_install_sh"
1204 echo "$ac_t""$INSTALL" 1>&6
1206 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1207 # It thinks the first close brace ends the variable substitution.
1208 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1210 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1212 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1213 # Extract the first word of "ranlib", so it can be a program name with args.
1214 set dummy ranlib; ac_word=$2
1215 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1216 echo "configure:1217: checking for $ac_word" >&5
1217 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1218 echo $ac_n "(cached) $ac_c" 1>&6
1220 if test -n "$RANLIB"; then
1221 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1223 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1225 for ac_dir in $ac_dummy; do
1226 test -z "$ac_dir" && ac_dir=.
1227 if test -f $ac_dir/$ac_word; then
1228 ac_cv_prog_RANLIB="ranlib"
1233 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1236 RANLIB="$ac_cv_prog_RANLIB"
1237 if test -n "$RANLIB"; then
1238 echo "$ac_t""$RANLIB" 1>&6
1240 echo "$ac_t""no" 1>&6
1242 for ac_prog in mawk gawk nawk awk
1244 # Extract the first word of "$ac_prog", so it can be a program name with args.
1245 set dummy $ac_prog; ac_word=$2
1246 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1247 echo "configure:1248: checking for $ac_word" >&5
1248 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1249 echo $ac_n "(cached) $ac_c" 1>&6
1251 if test -n "$AWK"; then
1252 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1254 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1256 for ac_dir in $ac_dummy; do
1257 test -z "$ac_dir" && ac_dir=.
1258 if test -f $ac_dir/$ac_word; then
1259 ac_cv_prog_AWK="$ac_prog"
1266 AWK="$ac_cv_prog_AWK"
1267 if test -n "$AWK"; then
1268 echo "$ac_t""$AWK" 1>&6
1270 echo "$ac_t""no" 1>&6
1273 test -n "$AWK" && break
1275 # Extract the first word of "flex", so it can be a program name with args.
1276 set dummy flex; ac_word=$2
1277 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1278 echo "configure:1279: checking for $ac_word" >&5
1279 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1280 echo $ac_n "(cached) $ac_c" 1>&6
1282 if test -n "$LEX"; then
1283 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1285 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1287 for ac_dir in $ac_dummy; do
1288 test -z "$ac_dir" && ac_dir=.
1289 if test -f $ac_dir/$ac_word; then
1290 ac_cv_prog_LEX="flex"
1295 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1298 LEX="$ac_cv_prog_LEX"
1299 if test -n "$LEX"; then
1300 echo "$ac_t""$LEX" 1>&6
1302 echo "$ac_t""no" 1>&6
1305 if test -z "$LEXLIB"
1311 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1312 echo "configure:1313: checking for yywrap in -l$ac_lib" >&5
1313 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1314 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1315 echo $ac_n "(cached) $ac_c" 1>&6
1317 ac_save_LIBS="$LIBS"
1318 LIBS="-l$ac_lib $LIBS"
1319 cat > conftest.$ac_ext <<EOF
1320 #line 1321 "configure"
1321 #include "confdefs.h"
1322 /* Override any gcc2 internal prototype to avoid an error. */
1323 /* We use char because int might match the return type of a gcc2
1324 builtin and then its argument prototype would still apply. */
1331 if { (eval echo configure:1332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1333 eval "ac_cv_lib_$ac_lib_var=yes"
1335 echo "configure: failed program was:" >&5
1336 cat conftest.$ac_ext >&5
1338 eval "ac_cv_lib_$ac_lib_var=no"
1341 LIBS="$ac_save_LIBS"
1344 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1345 echo "$ac_t""yes" 1>&6
1348 echo "$ac_t""no" 1>&6
1353 pathtmp=/usr/bin:/bin:/usr/local/bin:/usr/xpg4/bin:/usr/ucb
1354 # Extract the first word of "cut", so it can be a program name with args.
1355 set dummy cut; ac_word=$2
1356 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1357 echo "configure:1358: checking for $ac_word" >&5
1358 if eval "test \"`echo '$''{'ac_cv_path_cutpath'+set}'`\" = set"; then
1359 echo $ac_n "(cached) $ac_c" 1>&6
1363 ac_cv_path_cutpath="$cutpath" # Let the user override the test with a path.
1366 ac_cv_path_cutpath="$cutpath" # Let the user override the test with a dos path.
1369 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1371 for ac_dir in $ac_dummy; do
1372 test -z "$ac_dir" && ac_dir=.
1373 if test -f $ac_dir/$ac_word; then
1374 ac_cv_path_cutpath="$ac_dir/$ac_word"
1379 test -z "$ac_cv_path_cutpath" && ac_cv_path_cutpath="no"
1383 cutpath="$ac_cv_path_cutpath"
1384 if test -n "$cutpath"; then
1385 echo "$ac_t""$cutpath" 1>&6
1387 echo "$ac_t""no" 1>&6
1392 # Extract the first word of "libtool", so it can be a program name with args.
1393 set dummy libtool; ac_word=$2
1394 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1395 echo "configure:1396: checking for $ac_word" >&5
1396 if eval "test \"`echo '$''{'ac_cv_prog_LIBTOOL'+set}'`\" = set"; then
1397 echo $ac_n "(cached) $ac_c" 1>&6
1399 if test -n "$LIBTOOL"; then
1400 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
1402 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1404 for ac_dir in $ac_dummy; do
1405 test -z "$ac_dir" && ac_dir=.
1406 if test -f $ac_dir/$ac_word; then
1407 ac_cv_prog_LIBTOOL="libtool"
1414 LIBTOOL="$ac_cv_prog_LIBTOOL"
1415 if test -n "$LIBTOOL"; then
1416 echo "$ac_t""$LIBTOOL" 1>&6
1418 echo "$ac_t""no" 1>&6
1422 tmptest=`$LIBTOOL --version 2>&1 | grep GNU`
1423 if test x"$tmptest" != x ; then
1428 # Extract the first word of "lorder", so it can be a program name with args.
1429 set dummy lorder; ac_word=$2
1430 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1431 echo "configure:1432: checking for $ac_word" >&5
1432 if eval "test \"`echo '$''{'ac_cv_prog_LORDER'+set}'`\" = set"; then
1433 echo $ac_n "(cached) $ac_c" 1>&6
1435 if test -n "$LORDER"; then
1436 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
1438 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1440 for ac_dir in $ac_dummy; do
1441 test -z "$ac_dir" && ac_dir=.
1442 if test -f $ac_dir/$ac_word; then
1443 ac_cv_prog_LORDER="lorder"
1448 test -z "$ac_cv_prog_LORDER" && ac_cv_prog_LORDER="no"
1451 LORDER="$ac_cv_prog_LORDER"
1452 if test -n "$LORDER"; then
1453 echo "$ac_t""$LORDER" 1>&6
1455 echo "$ac_t""no" 1>&6
1457 # Extract the first word of "tsort", so it can be a program name with args.
1458 set dummy tsort; ac_word=$2
1459 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1460 echo "configure:1461: checking for $ac_word" >&5
1461 if eval "test \"`echo '$''{'ac_cv_prog_TSORT'+set}'`\" = set"; then
1462 echo $ac_n "(cached) $ac_c" 1>&6
1464 if test -n "$TSORT"; then
1465 ac_cv_prog_TSORT="$TSORT" # Let the user override the test.
1467 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1469 for ac_dir in $ac_dummy; do
1470 test -z "$ac_dir" && ac_dir=.
1471 if test -f $ac_dir/$ac_word; then
1472 ac_cv_prog_TSORT="tsort"
1477 test -z "$ac_cv_prog_TSORT" && ac_cv_prog_TSORT="no"
1480 TSORT="$ac_cv_prog_TSORT"
1481 if test -n "$TSORT"; then
1482 echo "$ac_t""$TSORT" 1>&6
1484 echo "$ac_t""no" 1>&6
1487 if test x$ac_cv_prog_LORDER != xlorder -o x$ac_cv_prog_TSORT != xtsort; then
1492 pathtmp=/usr/bin:/bin:/usr/local/bin:/usr/xpg4/bin:/usr/ucb
1493 # Extract the first word of "ls", so it can be a program name with args.
1494 set dummy ls; ac_word=$2
1495 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1496 echo "configure:1497: checking for $ac_word" >&5
1497 if eval "test \"`echo '$''{'ac_cv_path_lspath'+set}'`\" = set"; then
1498 echo $ac_n "(cached) $ac_c" 1>&6
1502 ac_cv_path_lspath="$lspath" # Let the user override the test with a path.
1505 ac_cv_path_lspath="$lspath" # Let the user override the test with a dos path.
1508 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1510 for ac_dir in $ac_dummy; do
1511 test -z "$ac_dir" && ac_dir=.
1512 if test -f $ac_dir/$ac_word; then
1513 ac_cv_path_lspath="$ac_dir/$ac_word"
1518 test -z "$ac_cv_path_lspath" && ac_cv_path_lspath="no"
1522 lspath="$ac_cv_path_lspath"
1523 if test -n "$lspath"; then
1524 echo "$ac_t""$lspath" 1>&6
1526 echo "$ac_t""no" 1>&6
1530 if test "$lspath" != "no"; then
1531 echo $ac_n "checking how to get ls to show us the group ownership of a file""... $ac_c" 1>&6
1532 echo "configure:1533: checking how to get ls to show us the group ownership of a file" >&5
1533 if eval "test \"`echo '$''{'nmh_cv_ls_grpopt'+set}'`\" = set"; then
1534 echo $ac_n "(cached) $ac_c" 1>&6
1536 if test x"`$lspath -dl / | $AWK '{print $9}'`" = x"/"; then
1537 nmh_cv_ls_grpopt="-l"
1539 nmh_cv_ls_grpopt="-lg"
1543 echo "$ac_t""$nmh_cv_ls_grpopt" 1>&6
1546 pathtmp=/usr/bin:/bin:/usr/ucb:/usr/local/bin
1547 # Extract the first word of "more", so it can be a program name with args.
1548 set dummy more; ac_word=$2
1549 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1550 echo "configure:1551: checking for $ac_word" >&5
1551 if eval "test \"`echo '$''{'ac_cv_path_morepath'+set}'`\" = set"; then
1552 echo $ac_n "(cached) $ac_c" 1>&6
1556 ac_cv_path_morepath="$morepath" # Let the user override the test with a path.
1559 ac_cv_path_morepath="$morepath" # Let the user override the test with a dos path.
1562 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1564 for ac_dir in $ac_dummy; do
1565 test -z "$ac_dir" && ac_dir=.
1566 if test -f $ac_dir/$ac_word; then
1567 ac_cv_path_morepath="$ac_dir/$ac_word"
1572 test -z "$ac_cv_path_morepath" && ac_cv_path_morepath="no"
1576 morepath="$ac_cv_path_morepath"
1577 if test -n "$morepath"; then
1578 echo "$ac_t""$morepath" 1>&6
1580 echo "$ac_t""no" 1>&6
1584 if test -z "$pagerpath"; then
1585 pagerpath="$morepath"
1588 pathtmp=/usr/lib:/usr/sbin:/usr/etc:/usr/ucblib:/usr/bin:/bin
1589 # Extract the first word of "sendmail", so it can be a program name with args.
1590 set dummy sendmail; ac_word=$2
1591 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1592 echo "configure:1593: checking for $ac_word" >&5
1593 if eval "test \"`echo '$''{'ac_cv_path_sendmailpath'+set}'`\" = set"; then
1594 echo $ac_n "(cached) $ac_c" 1>&6
1596 case "$sendmailpath" in
1598 ac_cv_path_sendmailpath="$sendmailpath" # Let the user override the test with a path.
1601 ac_cv_path_sendmailpath="$sendmailpath" # Let the user override the test with a dos path.
1604 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1606 for ac_dir in $ac_dummy; do
1607 test -z "$ac_dir" && ac_dir=.
1608 if test -f $ac_dir/$ac_word; then
1609 ac_cv_path_sendmailpath="$ac_dir/$ac_word"
1614 test -z "$ac_cv_path_sendmailpath" && ac_cv_path_sendmailpath="no"
1618 sendmailpath="$ac_cv_path_sendmailpath"
1619 if test -n "$sendmailpath"; then
1620 echo "$ac_t""$sendmailpath" 1>&6
1622 echo "$ac_t""no" 1>&6
1626 pathtmp=/usr/bin:/bin:/usr/ucb:/usr/local/bin
1627 # Extract the first word of "vi", so it can be a program name with args.
1628 set dummy vi; ac_word=$2
1629 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1630 echo "configure:1631: checking for $ac_word" >&5
1631 if eval "test \"`echo '$''{'ac_cv_path_vipath'+set}'`\" = set"; then
1632 echo $ac_n "(cached) $ac_c" 1>&6
1636 ac_cv_path_vipath="$vipath" # Let the user override the test with a path.
1639 ac_cv_path_vipath="$vipath" # Let the user override the test with a dos path.
1642 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1644 for ac_dir in $ac_dummy; do
1645 test -z "$ac_dir" && ac_dir=.
1646 if test -f $ac_dir/$ac_word; then
1647 ac_cv_path_vipath="$ac_dir/$ac_word"
1652 test -z "$ac_cv_path_vipath" && ac_cv_path_vipath="no"
1656 vipath="$ac_cv_path_vipath"
1657 if test -n "$vipath"; then
1658 echo "$ac_t""$vipath" 1>&6
1660 echo "$ac_t""no" 1>&6
1664 if test -z "$editorpath"; then
1665 editorpath="$vipath"
1668 echo $ac_n "checking for broken vi""... $ac_c" 1>&6
1669 echo "configure:1670: checking for broken vi" >&5
1670 if eval "test \"`echo '$''{'nmh_cv_attvibug'+set}'`\" = set"; then
1671 echo $ac_n "(cached) $ac_c" 1>&6
1673 if echo 'r /nonexist-file
1674 q' | ex > /dev/null 2>&1
1682 echo "$ac_t""$nmh_cv_attvibug" 1>&6
1684 if test "$nmh_cv_attvibug" = yes; then
1685 cat >> confdefs.h <<\EOF
1690 echo $ac_n "checking where mail spool is located""... $ac_c" 1>&6
1691 echo "configure:1692: checking where mail spool is located" >&5
1692 if eval "test \"`echo '$''{'nmh_cv_mailspool'+set}'`\" = set"; then
1693 echo $ac_n "(cached) $ac_c" 1>&6
1695 for mailspool in /var/mail /var/spool/mail /usr/spool/mail /dev/null; do
1696 test -d $mailspool && break
1698 nmh_cv_mailspool=$mailspool
1702 echo "$ac_t""$nmh_cv_mailspool" 1>&6
1703 mailspool=$nmh_cv_mailspool
1705 if test "$lspath" != "no" -a "$cutpath" != "no"; then
1706 echo $ac_n "checking whether the mail spool is world-writable""... $ac_c" 1>&6
1707 echo "configure:1708: checking whether the mail spool is world-writable" >&5
1708 if eval "test \"`echo '$''{'nmh_cv_mailspool_world_writable'+set}'`\" = set"; then
1709 echo $ac_n "(cached) $ac_c" 1>&6
1711 if test "`$lspath -dlL $mailspool | $cutpath -c9`" = "-"; then
1712 nmh_cv_mailspool_world_writable=no
1714 nmh_cv_mailspool_world_writable=yes
1718 echo "$ac_t""$nmh_cv_mailspool_world_writable" 1>&6
1721 if test x"$nmh_cv_mailspool_world_writable" = x"no"; then
1722 cat >> confdefs.h <<\EOF
1728 echo $ac_n "checking what group owns the mail spool""... $ac_c" 1>&6
1729 echo "configure:1730: checking what group owns the mail spool" >&5
1730 if eval "test \"`echo '$''{'nmh_cv_ls_mail_grp'+set}'`\" = set"; then
1731 echo $ac_n "(cached) $ac_c" 1>&6
1733 nmh_cv_ls_mail_grp=`$lspath -dL $nmh_cv_ls_grpopt $mailspool|$AWK '{print $4}'`
1737 echo "$ac_t""$nmh_cv_ls_mail_grp" 1>&6
1738 MAIL_SPOOL_GRP=$nmh_cv_ls_mail_grp
1741 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1743 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1744 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1745 echo "configure:1746: checking for $ac_hdr that defines DIR" >&5
1746 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1747 echo $ac_n "(cached) $ac_c" 1>&6
1749 cat > conftest.$ac_ext <<EOF
1750 #line 1751 "configure"
1751 #include "confdefs.h"
1752 #include <sys/types.h>
1758 if { (eval echo configure:1759: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1760 eval "ac_cv_header_dirent_$ac_safe=yes"
1762 echo "configure: failed program was:" >&5
1763 cat conftest.$ac_ext >&5
1765 eval "ac_cv_header_dirent_$ac_safe=no"
1769 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1770 echo "$ac_t""yes" 1>&6
1771 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1772 cat >> confdefs.h <<EOF
1773 #define $ac_tr_hdr 1
1775 ac_header_dirent=$ac_hdr; break
1777 echo "$ac_t""no" 1>&6
1780 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1781 if test $ac_header_dirent = dirent.h; then
1782 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1783 echo "configure:1784: checking for opendir in -ldir" >&5
1784 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1785 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1786 echo $ac_n "(cached) $ac_c" 1>&6
1788 ac_save_LIBS="$LIBS"
1790 cat > conftest.$ac_ext <<EOF
1791 #line 1792 "configure"
1792 #include "confdefs.h"
1793 /* Override any gcc2 internal prototype to avoid an error. */
1794 /* We use char because int might match the return type of a gcc2
1795 builtin and then its argument prototype would still apply. */
1802 if { (eval echo configure:1803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1804 eval "ac_cv_lib_$ac_lib_var=yes"
1806 echo "configure: failed program was:" >&5
1807 cat conftest.$ac_ext >&5
1809 eval "ac_cv_lib_$ac_lib_var=no"
1812 LIBS="$ac_save_LIBS"
1815 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1816 echo "$ac_t""yes" 1>&6
1819 echo "$ac_t""no" 1>&6
1823 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1824 echo "configure:1825: checking for opendir in -lx" >&5
1825 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1826 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1827 echo $ac_n "(cached) $ac_c" 1>&6
1829 ac_save_LIBS="$LIBS"
1831 cat > conftest.$ac_ext <<EOF
1832 #line 1833 "configure"
1833 #include "confdefs.h"
1834 /* Override any gcc2 internal prototype to avoid an error. */
1835 /* We use char because int might match the return type of a gcc2
1836 builtin and then its argument prototype would still apply. */
1843 if { (eval echo configure:1844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1845 eval "ac_cv_lib_$ac_lib_var=yes"
1847 echo "configure: failed program was:" >&5
1848 cat conftest.$ac_ext >&5
1850 eval "ac_cv_lib_$ac_lib_var=no"
1853 LIBS="$ac_save_LIBS"
1856 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1857 echo "$ac_t""yes" 1>&6
1860 echo "$ac_t""no" 1>&6
1865 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1866 echo "configure:1867: checking how to run the C preprocessor" >&5
1867 # On Suns, sometimes $CPP names a directory.
1868 if test -n "$CPP" && test -d "$CPP"; then
1871 if test -z "$CPP"; then
1872 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1873 echo $ac_n "(cached) $ac_c" 1>&6
1875 # This must be in double quotes, not single quotes, because CPP may get
1876 # substituted into the Makefile and "${CC-cc}" will confuse make.
1878 # On the NeXT, cc -E runs the code through the compiler's parser,
1879 # not just through cpp.
1880 cat > conftest.$ac_ext <<EOF
1881 #line 1882 "configure"
1882 #include "confdefs.h"
1886 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1887 { (eval echo configure:1888: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1888 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1889 if test -z "$ac_err"; then
1893 echo "configure: failed program was:" >&5
1894 cat conftest.$ac_ext >&5
1896 CPP="${CC-cc} -E -traditional-cpp"
1897 cat > conftest.$ac_ext <<EOF
1898 #line 1899 "configure"
1899 #include "confdefs.h"
1903 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1904 { (eval echo configure:1905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1905 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1906 if test -z "$ac_err"; then
1910 echo "configure: failed program was:" >&5
1911 cat conftest.$ac_ext >&5
1913 CPP="${CC-cc} -nologo -E"
1914 cat > conftest.$ac_ext <<EOF
1915 #line 1916 "configure"
1916 #include "confdefs.h"
1920 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1921 { (eval echo configure:1922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1922 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1923 if test -z "$ac_err"; then
1927 echo "configure: failed program was:" >&5
1928 cat conftest.$ac_ext >&5
1937 ac_cv_prog_CPP="$CPP"
1939 CPP="$ac_cv_prog_CPP"
1941 ac_cv_prog_CPP="$CPP"
1943 echo "$ac_t""$CPP" 1>&6
1945 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1946 echo "configure:1947: checking for ANSI C header files" >&5
1947 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1948 echo $ac_n "(cached) $ac_c" 1>&6
1950 cat > conftest.$ac_ext <<EOF
1951 #line 1952 "configure"
1952 #include "confdefs.h"
1958 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1959 { (eval echo configure:1960: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1960 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1961 if test -z "$ac_err"; then
1963 ac_cv_header_stdc=yes
1966 echo "configure: failed program was:" >&5
1967 cat conftest.$ac_ext >&5
1969 ac_cv_header_stdc=no
1973 if test $ac_cv_header_stdc = yes; then
1974 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1975 cat > conftest.$ac_ext <<EOF
1976 #line 1977 "configure"
1977 #include "confdefs.h"
1980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1981 egrep "memchr" >/dev/null 2>&1; then
1985 ac_cv_header_stdc=no
1991 if test $ac_cv_header_stdc = yes; then
1992 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1993 cat > conftest.$ac_ext <<EOF
1994 #line 1995 "configure"
1995 #include "confdefs.h"
1998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1999 egrep "free" >/dev/null 2>&1; then
2003 ac_cv_header_stdc=no
2009 if test $ac_cv_header_stdc = yes; then
2010 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2011 if test "$cross_compiling" = yes; then
2014 cat > conftest.$ac_ext <<EOF
2015 #line 2016 "configure"
2016 #include "confdefs.h"
2018 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2019 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2020 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2021 int main () { int i; for (i = 0; i < 256; i++)
2022 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2026 if { (eval echo configure:2027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2030 echo "configure: failed program was:" >&5
2031 cat conftest.$ac_ext >&5
2033 ac_cv_header_stdc=no
2041 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2042 if test $ac_cv_header_stdc = yes; then
2043 cat >> confdefs.h <<\EOF
2044 #define STDC_HEADERS 1
2049 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2050 echo "configure:2051: checking whether time.h and sys/time.h may both be included" >&5
2051 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2052 echo $ac_n "(cached) $ac_c" 1>&6
2054 cat > conftest.$ac_ext <<EOF
2055 #line 2056 "configure"
2056 #include "confdefs.h"
2057 #include <sys/types.h>
2058 #include <sys/time.h>
2064 if { (eval echo configure:2065: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2066 ac_cv_header_time=yes
2068 echo "configure: failed program was:" >&5
2069 cat conftest.$ac_ext >&5
2071 ac_cv_header_time=no
2076 echo "$ac_t""$ac_cv_header_time" 1>&6
2077 if test $ac_cv_header_time = yes; then
2078 cat >> confdefs.h <<\EOF
2079 #define TIME_WITH_SYS_TIME 1
2084 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2085 echo "configure:2086: checking for sys/wait.h that is POSIX.1 compatible" >&5
2086 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2087 echo $ac_n "(cached) $ac_c" 1>&6
2089 cat > conftest.$ac_ext <<EOF
2090 #line 2091 "configure"
2091 #include "confdefs.h"
2092 #include <sys/types.h>
2093 #include <sys/wait.h>
2095 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2098 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2103 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2106 if { (eval echo configure:2107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2108 ac_cv_header_sys_wait_h=yes
2110 echo "configure: failed program was:" >&5
2111 cat conftest.$ac_ext >&5
2113 ac_cv_header_sys_wait_h=no
2118 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2119 if test $ac_cv_header_sys_wait_h = yes; then
2120 cat >> confdefs.h <<\EOF
2121 #define HAVE_SYS_WAIT_H 1
2126 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
2127 echo "configure:2128: checking whether stat file-mode macros are broken" >&5
2128 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
2129 echo $ac_n "(cached) $ac_c" 1>&6
2131 cat > conftest.$ac_ext <<EOF
2132 #line 2133 "configure"
2133 #include "confdefs.h"
2134 #include <sys/types.h>
2135 #include <sys/stat.h>
2137 #if defined(S_ISBLK) && defined(S_IFDIR)
2138 # if S_ISBLK (S_IFDIR)
2143 #if defined(S_ISBLK) && defined(S_IFCHR)
2144 # if S_ISBLK (S_IFCHR)
2149 #if defined(S_ISLNK) && defined(S_IFREG)
2150 # if S_ISLNK (S_IFREG)
2155 #if defined(S_ISSOCK) && defined(S_IFREG)
2156 # if S_ISSOCK (S_IFREG)
2162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2163 egrep "You lose" >/dev/null 2>&1; then
2165 ac_cv_header_stat_broken=yes
2168 ac_cv_header_stat_broken=no
2174 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
2175 if test $ac_cv_header_stat_broken = yes; then
2176 cat >> confdefs.h <<\EOF
2177 #define STAT_MACROS_BROKEN 1
2182 for ac_hdr in string.h memory.h stdlib.h unistd.h errno.h fcntl.h \
2183 limits.h crypt.h termcap.h termio.h termios.h locale.h \
2184 netdb.h sys/param.h sys/time.h sys/utsname.h arpa/inet.h \
2187 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2188 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2189 echo "configure:2190: checking for $ac_hdr" >&5
2190 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2191 echo $ac_n "(cached) $ac_c" 1>&6
2193 cat > conftest.$ac_ext <<EOF
2194 #line 2195 "configure"
2195 #include "confdefs.h"
2198 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2199 { (eval echo configure:2200: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2200 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2201 if test -z "$ac_err"; then
2203 eval "ac_cv_header_$ac_safe=yes"
2206 echo "configure: failed program was:" >&5
2207 cat conftest.$ac_ext >&5
2209 eval "ac_cv_header_$ac_safe=no"
2213 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2214 echo "$ac_t""yes" 1>&6
2215 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2216 cat >> confdefs.h <<EOF
2217 #define $ac_tr_hdr 1
2221 echo "$ac_t""no" 1>&6
2227 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
2228 echo "configure:2229: checking POSIX termios" >&5
2229 if eval "test \"`echo '$''{'nmh_cv_sys_posix_termios'+set}'`\" = set"; then
2230 echo $ac_n "(cached) $ac_c" 1>&6
2232 cat > conftest.$ac_ext <<EOF
2233 #line 2234 "configure"
2234 #include "confdefs.h"
2235 #include <sys/types.h>
2237 #include <termios.h>
2239 /* SunOS 4.0.3 has termios.h but not the library calls. */
2243 if { (eval echo configure:2244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2245 nmh_cv_sys_posix_termios=yes
2247 echo "configure: failed program was:" >&5
2248 cat conftest.$ac_ext >&5
2250 nmh_cv_sys_posix_termios=no
2255 echo "$ac_t""$nmh_cv_sys_posix_termios" 1>&6
2257 if test $nmh_cv_sys_posix_termios = yes; then
2258 echo $ac_n "checking TIOCGWINSZ in termios.h""... $ac_c" 1>&6
2259 echo "configure:2260: checking TIOCGWINSZ in termios.h" >&5
2260 if eval "test \"`echo '$''{'nmh_cv_header_termios_h_tiocgwinsz'+set}'`\" = set"; then
2261 echo $ac_n "(cached) $ac_c" 1>&6
2263 cat > conftest.$ac_ext <<EOF
2264 #line 2265 "configure"
2265 #include "confdefs.h"
2266 #include <sys/types.h>
2267 #include <termios.h>
2272 if { (eval echo configure:2273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2274 nmh_cv_header_termios_h_tiocgwinsz=yes
2276 echo "configure: failed program was:" >&5
2277 cat conftest.$ac_ext >&5
2279 nmh_cv_header_termios_h_tiocgwinsz=no
2284 echo "$ac_t""$nmh_cv_header_termios_h_tiocgwinsz" 1>&6
2286 nmh_cv_header_termios_h_tiocgwinsz=no
2289 if test $nmh_cv_header_termios_h_tiocgwinsz = no; then
2290 echo $ac_n "checking TIOCGWINSZ in sys/ioctl.h""... $ac_c" 1>&6
2291 echo "configure:2292: checking TIOCGWINSZ in sys/ioctl.h" >&5
2292 if eval "test \"`echo '$''{'nmh_cv_header_sys_ioctl_h_tiocgwinsz'+set}'`\" = set"; then
2293 echo $ac_n "(cached) $ac_c" 1>&6
2295 cat > conftest.$ac_ext <<EOF
2296 #line 2297 "configure"
2297 #include "confdefs.h"
2298 #include <sys/types.h>
2299 #include <sys/ioctl.h>
2304 if { (eval echo configure:2305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2306 nmh_cv_header_sys_ioctl_h_tiocgwinsz=yes
2308 echo "configure: failed program was:" >&5
2309 cat conftest.$ac_ext >&5
2311 nmh_cv_header_sys_ioctl_h_tiocgwinsz=no
2316 echo "$ac_t""$nmh_cv_header_sys_ioctl_h_tiocgwinsz" 1>&6
2317 if test $nmh_cv_header_sys_ioctl_h_tiocgwinsz = yes; then
2318 cat >> confdefs.h <<\EOF
2319 #define GWINSZ_IN_SYS_IOCTL 1
2325 ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2326 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2327 echo "configure:2328: checking for libio.h" >&5
2328 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2329 echo $ac_n "(cached) $ac_c" 1>&6
2331 cat > conftest.$ac_ext <<EOF
2332 #line 2333 "configure"
2333 #include "confdefs.h"
2336 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2337 { (eval echo configure:2338: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2338 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2339 if test -z "$ac_err"; then
2341 eval "ac_cv_header_$ac_safe=yes"
2344 echo "configure: failed program was:" >&5
2345 cat conftest.$ac_ext >&5
2347 eval "ac_cv_header_$ac_safe=no"
2351 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2352 echo "$ac_t""yes" 1>&6
2354 cat > conftest.$ac_ext <<EOF
2355 #line 2356 "configure"
2356 #include "confdefs.h"
2359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2360 egrep "_IO_write_ptr" >/dev/null 2>&1; then
2363 cat >> confdefs.h <<\EOF
2364 #define LINUX_STDIO 1
2371 echo "$ac_t""no" 1>&6
2375 ac_safe=`echo "sys/ptem.h" | sed 'y%./+-%__p_%'`
2376 echo $ac_n "checking for sys/ptem.h""... $ac_c" 1>&6
2377 echo "configure:2378: checking for sys/ptem.h" >&5
2378 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2379 echo $ac_n "(cached) $ac_c" 1>&6
2381 cat > conftest.$ac_ext <<EOF
2382 #line 2383 "configure"
2383 #include "confdefs.h"
2384 #include <sys/ptem.h>
2386 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2387 { (eval echo configure:2388: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2388 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2389 if test -z "$ac_err"; then
2391 eval "ac_cv_header_$ac_safe=yes"
2394 echo "configure: failed program was:" >&5
2395 cat conftest.$ac_ext >&5
2397 eval "ac_cv_header_$ac_safe=no"
2401 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2402 echo "$ac_t""yes" 1>&6
2403 cat >> confdefs.h <<\EOF
2404 #define WINSIZE_IN_PTEM 1
2408 echo "$ac_t""no" 1>&6
2412 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2413 echo "configure:2414: checking for pid_t" >&5
2414 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2415 echo $ac_n "(cached) $ac_c" 1>&6
2417 cat > conftest.$ac_ext <<EOF
2418 #line 2419 "configure"
2419 #include "confdefs.h"
2420 #include <sys/types.h>
2426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2427 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2429 ac_cv_type_pid_t=yes
2437 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2438 if test $ac_cv_type_pid_t = no; then
2439 cat >> confdefs.h <<\EOF
2445 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2446 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2447 echo "configure:2448: checking for vfork.h" >&5
2448 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2449 echo $ac_n "(cached) $ac_c" 1>&6
2451 cat > conftest.$ac_ext <<EOF
2452 #line 2453 "configure"
2453 #include "confdefs.h"
2456 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2457 { (eval echo configure:2458: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2458 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2459 if test -z "$ac_err"; then
2461 eval "ac_cv_header_$ac_safe=yes"
2464 echo "configure: failed program was:" >&5
2465 cat conftest.$ac_ext >&5
2467 eval "ac_cv_header_$ac_safe=no"
2471 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2472 echo "$ac_t""yes" 1>&6
2473 cat >> confdefs.h <<\EOF
2474 #define HAVE_VFORK_H 1
2478 echo "$ac_t""no" 1>&6
2481 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2482 echo "configure:2483: checking for working vfork" >&5
2483 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2484 echo $ac_n "(cached) $ac_c" 1>&6
2486 if test "$cross_compiling" = yes; then
2487 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2488 echo "configure:2489: checking for vfork" >&5
2489 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2490 echo $ac_n "(cached) $ac_c" 1>&6
2492 cat > conftest.$ac_ext <<EOF
2493 #line 2494 "configure"
2494 #include "confdefs.h"
2495 /* System header to define __stub macros and hopefully few prototypes,
2496 which can conflict with char vfork(); below. */
2498 /* Override any gcc2 internal prototype to avoid an error. */
2499 /* We use char because int might match the return type of a gcc2
2500 builtin and then its argument prototype would still apply. */
2505 /* The GNU C library defines this for functions which it implements
2506 to always fail with ENOSYS. Some functions are actually named
2507 something starting with __ and the normal name is an alias. */
2508 #if defined (__stub_vfork) || defined (__stub___vfork)
2516 if { (eval echo configure:2517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2518 eval "ac_cv_func_vfork=yes"
2520 echo "configure: failed program was:" >&5
2521 cat conftest.$ac_ext >&5
2523 eval "ac_cv_func_vfork=no"
2528 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2529 echo "$ac_t""yes" 1>&6
2532 echo "$ac_t""no" 1>&6
2535 ac_cv_func_vfork_works=$ac_cv_func_vfork
2537 cat > conftest.$ac_ext <<EOF
2538 #line 2539 "configure"
2539 #include "confdefs.h"
2540 /* Thanks to Paul Eggert for this test. */
2542 #include <sys/types.h>
2543 #include <sys/stat.h>
2544 #ifdef HAVE_UNISTD_H
2550 /* On some sparc systems, changes by the child to local and incoming
2551 argument registers are propagated back to the parent.
2552 The compiler is told about this with #include <vfork.h>,
2553 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2554 Test for this by using a static variable whose address
2555 is put into a register that is clobbered by the vfork. */
2558 sparc_address_test (int arg)
2560 sparc_address_test (arg) int arg;
2578 pid_t parent = getpid ();
2581 sparc_address_test ();
2586 /* Here is another test for sparc vfork register problems.
2587 This test uses lots of local variables, at least
2588 as many local variables as main has allocated so far
2589 including compiler temporaries. 4 locals are enough for
2590 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2591 A buggy compiler should reuse the register of parent
2592 for one of the local variables, since it will think that
2593 parent can't possibly be used any more in this routine.
2594 Assigning to the local variable will thus munge parent
2595 in the parent process. */
2597 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2598 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2599 /* Convince the compiler that p..p7 are live; otherwise, it might
2600 use the same hardware register for all 8 local variables. */
2601 if (p != p1 || p != p2 || p != p3 || p != p4
2602 || p != p5 || p != p6 || p != p7)
2605 /* On some systems (e.g. IRIX 3.3),
2606 vfork doesn't separate parent from child file descriptors.
2607 If the child closes a descriptor before it execs or exits,
2608 this munges the parent's descriptor as well.
2609 Test for this by closing stdout in the child. */
2610 _exit(close(fileno(stdout)) != 0);
2615 while (wait(&status) != child)
2618 /* Was there some problem with vforking? */
2621 /* Did the child fail? (This shouldn't happen.) */
2624 /* Did the vfork/compiler bug occur? */
2625 || parent != getpid()
2627 /* Did the file descriptor bug occur? */
2628 || fstat(fileno(stdout), &st) != 0
2633 if { (eval echo configure:2634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2635 ac_cv_func_vfork_works=yes
2637 echo "configure: failed program was:" >&5
2638 cat conftest.$ac_ext >&5
2640 ac_cv_func_vfork_works=no
2647 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2648 if test $ac_cv_func_vfork_works = no; then
2649 cat >> confdefs.h <<\EOF
2655 echo $ac_n "checking for mkstemp in -lmkstemp""... $ac_c" 1>&6
2656 echo "configure:2657: checking for mkstemp in -lmkstemp" >&5
2657 ac_lib_var=`echo mkstemp'_'mkstemp | sed 'y%./+-%__p_%'`
2658 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2659 echo $ac_n "(cached) $ac_c" 1>&6
2661 ac_save_LIBS="$LIBS"
2662 LIBS="-lmkstemp $LIBS"
2663 cat > conftest.$ac_ext <<EOF
2664 #line 2665 "configure"
2665 #include "confdefs.h"
2666 /* Override any gcc2 internal prototype to avoid an error. */
2667 /* We use char because int might match the return type of a gcc2
2668 builtin and then its argument prototype would still apply. */
2675 if { (eval echo configure:2676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2677 eval "ac_cv_lib_$ac_lib_var=yes"
2679 echo "configure: failed program was:" >&5
2680 cat conftest.$ac_ext >&5
2682 eval "ac_cv_lib_$ac_lib_var=no"
2685 LIBS="$ac_save_LIBS"
2688 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2689 echo "$ac_t""yes" 1>&6
2690 ac_tr_lib=HAVE_LIB`echo mkstemp | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2691 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2692 cat >> confdefs.h <<EOF
2693 #define $ac_tr_lib 1
2696 LIBS="-lmkstemp $LIBS"
2699 echo "$ac_t""no" 1>&6
2702 for ac_func in waitpid wait3 sigaction sigprocmask sigblock sigsetmask \
2703 sighold sigrelse writev lstat uname tzset killpg mkstemp \
2706 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2707 echo "configure:2708: checking for $ac_func" >&5
2708 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2709 echo $ac_n "(cached) $ac_c" 1>&6
2711 cat > conftest.$ac_ext <<EOF
2712 #line 2713 "configure"
2713 #include "confdefs.h"
2714 /* System header to define __stub macros and hopefully few prototypes,
2715 which can conflict with char $ac_func(); below. */
2717 /* Override any gcc2 internal prototype to avoid an error. */
2718 /* We use char because int might match the return type of a gcc2
2719 builtin and then its argument prototype would still apply. */
2724 /* The GNU C library defines this for functions which it implements
2725 to always fail with ENOSYS. Some functions are actually named
2726 something starting with __ and the normal name is an alias. */
2727 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2735 if { (eval echo configure:2736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2737 eval "ac_cv_func_$ac_func=yes"
2739 echo "configure: failed program was:" >&5
2740 cat conftest.$ac_ext >&5
2742 eval "ac_cv_func_$ac_func=no"
2747 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2748 echo "$ac_t""yes" 1>&6
2749 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2750 cat >> confdefs.h <<EOF
2751 #define $ac_tr_func 1
2755 echo "$ac_t""no" 1>&6
2760 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2761 echo "configure:2762: checking for gethostbyname" >&5
2762 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2763 echo $ac_n "(cached) $ac_c" 1>&6
2765 cat > conftest.$ac_ext <<EOF
2766 #line 2767 "configure"
2767 #include "confdefs.h"
2768 /* System header to define __stub macros and hopefully few prototypes,
2769 which can conflict with char gethostbyname(); below. */
2771 /* Override any gcc2 internal prototype to avoid an error. */
2772 /* We use char because int might match the return type of a gcc2
2773 builtin and then its argument prototype would still apply. */
2774 char gethostbyname();
2778 /* The GNU C library defines this for functions which it implements
2779 to always fail with ENOSYS. Some functions are actually named
2780 something starting with __ and the normal name is an alias. */
2781 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2789 if { (eval echo configure:2790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2791 eval "ac_cv_func_gethostbyname=yes"
2793 echo "configure: failed program was:" >&5
2794 cat conftest.$ac_ext >&5
2796 eval "ac_cv_func_gethostbyname=no"
2801 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
2802 echo "$ac_t""yes" 1>&6
2803 cat >> confdefs.h <<\EOF
2804 #define HAVE_GETHOSTBYNAME 1
2808 echo "$ac_t""no" 1>&6
2809 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2810 echo "configure:2811: checking for gethostbyname in -lnsl" >&5
2811 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2812 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2813 echo $ac_n "(cached) $ac_c" 1>&6
2815 ac_save_LIBS="$LIBS"
2817 cat > conftest.$ac_ext <<EOF
2818 #line 2819 "configure"
2819 #include "confdefs.h"
2820 /* Override any gcc2 internal prototype to avoid an error. */
2821 /* We use char because int might match the return type of a gcc2
2822 builtin and then its argument prototype would still apply. */
2823 char gethostbyname();
2829 if { (eval echo configure:2830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2831 eval "ac_cv_lib_$ac_lib_var=yes"
2833 echo "configure: failed program was:" >&5
2834 cat conftest.$ac_ext >&5
2836 eval "ac_cv_lib_$ac_lib_var=no"
2839 LIBS="$ac_save_LIBS"
2842 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2843 echo "$ac_t""yes" 1>&6
2844 cat >> confdefs.h <<\EOF
2845 #define HAVE_GETHOSTBYNAME 1
2849 echo "$ac_t""no" 1>&6
2855 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
2856 echo "configure:2857: checking for sigsetjmp" >&5
2857 cat > conftest.$ac_ext <<EOF
2858 #line 2859 "configure"
2859 #include "confdefs.h"
2862 sigsetjmp((void *)0, 0);
2865 if { (eval echo configure:2866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2867 cat >> confdefs.h <<\EOF
2868 #define HAVE_SIGSETJMP 1
2870 echo "$ac_t""yes" 1>&6
2872 echo "configure: failed program was:" >&5
2873 cat conftest.$ac_ext >&5
2875 echo "$ac_t""no" 1>&6
2879 for ac_func in snprintf strerror strdup
2881 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2882 echo "configure:2883: checking for $ac_func" >&5
2883 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2884 echo $ac_n "(cached) $ac_c" 1>&6
2886 cat > conftest.$ac_ext <<EOF
2887 #line 2888 "configure"
2888 #include "confdefs.h"
2889 /* System header to define __stub macros and hopefully few prototypes,
2890 which can conflict with char $ac_func(); below. */
2892 /* Override any gcc2 internal prototype to avoid an error. */
2893 /* We use char because int might match the return type of a gcc2
2894 builtin and then its argument prototype would still apply. */
2899 /* The GNU C library defines this for functions which it implements
2900 to always fail with ENOSYS. Some functions are actually named
2901 something starting with __ and the normal name is an alias. */
2902 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2910 if { (eval echo configure:2911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2912 eval "ac_cv_func_$ac_func=yes"
2914 echo "configure: failed program was:" >&5
2915 cat conftest.$ac_ext >&5
2917 eval "ac_cv_func_$ac_func=no"
2922 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2923 echo "$ac_t""yes" 1>&6
2924 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2925 cat >> confdefs.h <<EOF
2926 #define $ac_tr_func 1
2930 echo "$ac_t""no" 1>&6
2931 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
2937 cat > conftest.$ac_ext <<EOF
2938 #line 2939 "configure"
2939 #include "confdefs.h"
2942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2943 egrep "initgroups" >/dev/null 2>&1; then
2945 cat >> confdefs.h <<\EOF
2946 #define INITGROUPS_HEADER <grp.h>
2951 cat > conftest.$ac_ext <<EOF
2952 #line 2953 "configure"
2953 #include "confdefs.h"
2956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2957 egrep "initgroups" >/dev/null 2>&1; then
2959 cat >> confdefs.h <<\EOF
2960 #define INITGROUPS_HEADER <unistd.h>
2970 cat > conftest.$ac_ext <<EOF
2971 #line 2972 "configure"
2972 #include "confdefs.h"
2975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2976 egrep "snprintf" >/dev/null 2>&1; then
2978 cat >> confdefs.h <<\EOF
2979 #define HAVE_SNPRINTF_PROTOTYPE 1
2986 echo $ac_n "checking for modf""... $ac_c" 1>&6
2987 echo "configure:2988: checking for modf" >&5
2988 if eval "test \"`echo '$''{'ac_cv_func_modf'+set}'`\" = set"; then
2989 echo $ac_n "(cached) $ac_c" 1>&6
2991 cat > conftest.$ac_ext <<EOF
2992 #line 2993 "configure"
2993 #include "confdefs.h"
2994 /* System header to define __stub macros and hopefully few prototypes,
2995 which can conflict with char modf(); below. */
2997 /* Override any gcc2 internal prototype to avoid an error. */
2998 /* We use char because int might match the return type of a gcc2
2999 builtin and then its argument prototype would still apply. */
3004 /* The GNU C library defines this for functions which it implements
3005 to always fail with ENOSYS. Some functions are actually named
3006 something starting with __ and the normal name is an alias. */
3007 #if defined (__stub_modf) || defined (__stub___modf)
3015 if { (eval echo configure:3016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3017 eval "ac_cv_func_modf=yes"
3019 echo "configure: failed program was:" >&5
3020 cat conftest.$ac_ext >&5
3022 eval "ac_cv_func_modf=no"
3027 if eval "test \"`echo '$ac_cv_func_'modf`\" = yes"; then
3028 echo "$ac_t""yes" 1>&6
3031 echo "$ac_t""no" 1>&6
3032 echo $ac_n "checking for modf in -lm""... $ac_c" 1>&6
3033 echo "configure:3034: checking for modf in -lm" >&5
3034 ac_lib_var=`echo m'_'modf | sed 'y%./+-%__p_%'`
3035 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3036 echo $ac_n "(cached) $ac_c" 1>&6
3038 ac_save_LIBS="$LIBS"
3040 cat > conftest.$ac_ext <<EOF
3041 #line 3042 "configure"
3042 #include "confdefs.h"
3043 /* Override any gcc2 internal prototype to avoid an error. */
3044 /* We use char because int might match the return type of a gcc2
3045 builtin and then its argument prototype would still apply. */
3052 if { (eval echo configure:3053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3054 eval "ac_cv_lib_$ac_lib_var=yes"
3056 echo "configure: failed program was:" >&5
3057 cat conftest.$ac_ext >&5
3059 eval "ac_cv_lib_$ac_lib_var=no"
3062 LIBS="$ac_save_LIBS"
3065 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3066 echo "$ac_t""yes" 1>&6
3067 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
3068 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3069 cat >> confdefs.h <<EOF
3070 #define $ac_tr_lib 1
3076 echo "$ac_t""no" 1>&6
3082 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3083 echo "configure:3084: checking for gethostbyname" >&5
3084 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3085 echo $ac_n "(cached) $ac_c" 1>&6
3087 cat > conftest.$ac_ext <<EOF
3088 #line 3089 "configure"
3089 #include "confdefs.h"
3090 /* System header to define __stub macros and hopefully few prototypes,
3091 which can conflict with char gethostbyname(); below. */
3093 /* Override any gcc2 internal prototype to avoid an error. */
3094 /* We use char because int might match the return type of a gcc2
3095 builtin and then its argument prototype would still apply. */
3096 char gethostbyname();
3100 /* The GNU C library defines this for functions which it implements
3101 to always fail with ENOSYS. Some functions are actually named
3102 something starting with __ and the normal name is an alias. */
3103 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3111 if { (eval echo configure:3112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3113 eval "ac_cv_func_gethostbyname=yes"
3115 echo "configure: failed program was:" >&5
3116 cat conftest.$ac_ext >&5
3118 eval "ac_cv_func_gethostbyname=no"
3123 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3124 echo "$ac_t""yes" 1>&6
3127 echo "$ac_t""no" 1>&6
3128 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3129 echo "configure:3130: checking for gethostbyname in -lnsl" >&5
3130 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3131 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3132 echo $ac_n "(cached) $ac_c" 1>&6
3134 ac_save_LIBS="$LIBS"
3136 cat > conftest.$ac_ext <<EOF
3137 #line 3138 "configure"
3138 #include "confdefs.h"
3139 /* Override any gcc2 internal prototype to avoid an error. */
3140 /* We use char because int might match the return type of a gcc2
3141 builtin and then its argument prototype would still apply. */
3142 char gethostbyname();
3148 if { (eval echo configure:3149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3150 eval "ac_cv_lib_$ac_lib_var=yes"
3152 echo "configure: failed program was:" >&5
3153 cat conftest.$ac_ext >&5
3155 eval "ac_cv_lib_$ac_lib_var=no"
3158 LIBS="$ac_save_LIBS"
3161 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3162 echo "$ac_t""yes" 1>&6
3163 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
3164 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3165 cat >> confdefs.h <<EOF
3166 #define $ac_tr_lib 1
3172 echo "$ac_t""no" 1>&6
3173 echo $ac_n "checking for gethostbyname in -lresolv""... $ac_c" 1>&6
3174 echo "configure:3175: checking for gethostbyname in -lresolv" >&5
3175 ac_lib_var=`echo resolv'_'gethostbyname | sed 'y%./+-%__p_%'`
3176 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3177 echo $ac_n "(cached) $ac_c" 1>&6
3179 ac_save_LIBS="$LIBS"
3180 LIBS="-lresolv $LIBS"
3181 cat > conftest.$ac_ext <<EOF
3182 #line 3183 "configure"
3183 #include "confdefs.h"
3184 /* Override any gcc2 internal prototype to avoid an error. */
3185 /* We use char because int might match the return type of a gcc2
3186 builtin and then its argument prototype would still apply. */
3187 char gethostbyname();
3193 if { (eval echo configure:3194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3195 eval "ac_cv_lib_$ac_lib_var=yes"
3197 echo "configure: failed program was:" >&5
3198 cat conftest.$ac_ext >&5
3200 eval "ac_cv_lib_$ac_lib_var=no"
3203 LIBS="$ac_save_LIBS"
3206 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3207 echo "$ac_t""yes" 1>&6
3208 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
3209 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3210 cat >> confdefs.h <<EOF
3211 #define $ac_tr_lib 1
3214 LIBS="-lresolv $LIBS"
3217 echo "$ac_t""no" 1>&6
3224 echo $ac_n "checking for socket""... $ac_c" 1>&6
3225 echo "configure:3226: checking for socket" >&5
3226 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
3227 echo $ac_n "(cached) $ac_c" 1>&6
3229 cat > conftest.$ac_ext <<EOF
3230 #line 3231 "configure"
3231 #include "confdefs.h"
3232 /* System header to define __stub macros and hopefully few prototypes,
3233 which can conflict with char socket(); below. */
3235 /* Override any gcc2 internal prototype to avoid an error. */
3236 /* We use char because int might match the return type of a gcc2
3237 builtin and then its argument prototype would still apply. */
3242 /* The GNU C library defines this for functions which it implements
3243 to always fail with ENOSYS. Some functions are actually named
3244 something starting with __ and the normal name is an alias. */
3245 #if defined (__stub_socket) || defined (__stub___socket)
3253 if { (eval echo configure:3254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3255 eval "ac_cv_func_socket=yes"
3257 echo "configure: failed program was:" >&5
3258 cat conftest.$ac_ext >&5
3260 eval "ac_cv_func_socket=no"
3265 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
3266 echo "$ac_t""yes" 1>&6
3269 echo "$ac_t""no" 1>&6
3270 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
3271 echo "configure:3272: checking for socket in -lsocket" >&5
3272 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
3273 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3274 echo $ac_n "(cached) $ac_c" 1>&6
3276 ac_save_LIBS="$LIBS"
3277 LIBS="-lsocket $LIBS"
3278 cat > conftest.$ac_ext <<EOF
3279 #line 3280 "configure"
3280 #include "confdefs.h"
3281 /* Override any gcc2 internal prototype to avoid an error. */
3282 /* We use char because int might match the return type of a gcc2
3283 builtin and then its argument prototype would still apply. */
3290 if { (eval echo configure:3291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3292 eval "ac_cv_lib_$ac_lib_var=yes"
3294 echo "configure: failed program was:" >&5
3295 cat conftest.$ac_ext >&5
3297 eval "ac_cv_lib_$ac_lib_var=no"
3300 LIBS="$ac_save_LIBS"
3303 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3304 echo "$ac_t""yes" 1>&6
3305 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
3306 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3307 cat >> confdefs.h <<EOF
3308 #define $ac_tr_lib 1
3311 LIBS="-lsocket $LIBS"
3314 echo "$ac_t""no" 1>&6
3321 echo $ac_n "checking for ruserpass""... $ac_c" 1>&6
3322 echo "configure:3323: checking for ruserpass" >&5
3323 if eval "test \"`echo '$''{'ac_cv_func_ruserpass'+set}'`\" = set"; then
3324 echo $ac_n "(cached) $ac_c" 1>&6
3326 cat > conftest.$ac_ext <<EOF
3327 #line 3328 "configure"
3328 #include "confdefs.h"
3329 /* System header to define __stub macros and hopefully few prototypes,
3330 which can conflict with char ruserpass(); below. */
3332 /* Override any gcc2 internal prototype to avoid an error. */
3333 /* We use char because int might match the return type of a gcc2
3334 builtin and then its argument prototype would still apply. */
3339 /* The GNU C library defines this for functions which it implements
3340 to always fail with ENOSYS. Some functions are actually named
3341 something starting with __ and the normal name is an alias. */
3342 #if defined (__stub_ruserpass) || defined (__stub___ruserpass)
3350 if { (eval echo configure:3351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3352 eval "ac_cv_func_ruserpass=yes"
3354 echo "configure: failed program was:" >&5
3355 cat conftest.$ac_ext >&5
3357 eval "ac_cv_func_ruserpass=no"
3362 if eval "test \"`echo '$ac_cv_func_'ruserpass`\" = yes"; then
3363 echo "$ac_t""yes" 1>&6
3366 echo "$ac_t""no" 1>&6
3367 echo $ac_n "checking for _ruserpass""... $ac_c" 1>&6
3368 echo "configure:3369: checking for _ruserpass" >&5
3369 if eval "test \"`echo '$''{'ac_cv_func__ruserpass'+set}'`\" = set"; then
3370 echo $ac_n "(cached) $ac_c" 1>&6
3372 cat > conftest.$ac_ext <<EOF
3373 #line 3374 "configure"
3374 #include "confdefs.h"
3375 /* System header to define __stub macros and hopefully few prototypes,
3376 which can conflict with char _ruserpass(); below. */
3378 /* Override any gcc2 internal prototype to avoid an error. */
3379 /* We use char because int might match the return type of a gcc2
3380 builtin and then its argument prototype would still apply. */
3385 /* The GNU C library defines this for functions which it implements
3386 to always fail with ENOSYS. Some functions are actually named
3387 something starting with __ and the normal name is an alias. */
3388 #if defined (__stub__ruserpass) || defined (__stub____ruserpass)
3396 if { (eval echo configure:3397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3398 eval "ac_cv_func__ruserpass=yes"
3400 echo "configure: failed program was:" >&5
3401 cat conftest.$ac_ext >&5
3403 eval "ac_cv_func__ruserpass=no"
3408 if eval "test \"`echo '$ac_cv_func_'_ruserpass`\" = yes"; then
3409 echo "$ac_t""yes" 1>&6
3412 echo "$ac_t""no" 1>&6
3413 echo $ac_n "checking for _ruserpass in -lsocket""... $ac_c" 1>&6
3414 echo "configure:3415: checking for _ruserpass in -lsocket" >&5
3415 ac_lib_var=`echo socket'_'_ruserpass | sed 'y%./+-%__p_%'`
3416 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3417 echo $ac_n "(cached) $ac_c" 1>&6
3419 ac_save_LIBS="$LIBS"
3420 LIBS="-lsocket $LIBS"
3421 cat > conftest.$ac_ext <<EOF
3422 #line 3423 "configure"
3423 #include "confdefs.h"
3424 /* Override any gcc2 internal prototype to avoid an error. */
3425 /* We use char because int might match the return type of a gcc2
3426 builtin and then its argument prototype would still apply. */
3433 if { (eval echo configure:3434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3435 eval "ac_cv_lib_$ac_lib_var=yes"
3437 echo "configure: failed program was:" >&5
3438 cat conftest.$ac_ext >&5
3440 eval "ac_cv_lib_$ac_lib_var=no"
3443 LIBS="$ac_save_LIBS"
3446 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3447 echo "$ac_t""yes" 1>&6
3448 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
3449 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3450 cat >> confdefs.h <<EOF
3451 #define $ac_tr_lib 1
3454 LIBS="-lsocket $LIBS"
3457 echo "$ac_t""no" 1>&6
3464 if test x$ac_cv_func_ruserpass = xno; then
3465 if test x$ac_cv_func__ruserpass = xyes -o x$ac_cv_lib_socket__ruserpass = xyes; then
3466 cat >> confdefs.h <<\EOF
3467 #define ruserpass _ruserpass
3471 LIBOBJS="$LIBOBJS ruserpass.o"
3476 termcap_curses_order="termcap curses ncurses"
3477 for lib in $termcap_curses_order; do
3478 echo $ac_n "checking for tgetent in -l${lib}""... $ac_c" 1>&6
3479 echo "configure:3480: checking for tgetent in -l${lib}" >&5
3480 ac_lib_var=`echo ${lib}'_'tgetent | sed 'y%./+-%__p_%'`
3481 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3482 echo $ac_n "(cached) $ac_c" 1>&6
3484 ac_save_LIBS="$LIBS"
3485 LIBS="-l${lib} $LIBS"
3486 cat > conftest.$ac_ext <<EOF
3487 #line 3488 "configure"
3488 #include "confdefs.h"
3489 /* Override any gcc2 internal prototype to avoid an error. */
3490 /* We use char because int might match the return type of a gcc2
3491 builtin and then its argument prototype would still apply. */
3498 if { (eval echo configure:3499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3500 eval "ac_cv_lib_$ac_lib_var=yes"
3502 echo "configure: failed program was:" >&5
3503 cat conftest.$ac_ext >&5
3505 eval "ac_cv_lib_$ac_lib_var=no"
3508 LIBS="$ac_save_LIBS"
3511 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3512 echo "$ac_t""yes" 1>&6
3513 TERMLIB="-l$lib"; break
3515 echo "$ac_t""no" 1>&6
3521 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
3522 echo "configure:3523: checking for dbm_open" >&5
3523 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
3524 echo $ac_n "(cached) $ac_c" 1>&6
3526 cat > conftest.$ac_ext <<EOF
3527 #line 3528 "configure"
3528 #include "confdefs.h"
3529 /* System header to define __stub macros and hopefully few prototypes,
3530 which can conflict with char dbm_open(); below. */
3532 /* Override any gcc2 internal prototype to avoid an error. */
3533 /* We use char because int might match the return type of a gcc2
3534 builtin and then its argument prototype would still apply. */
3539 /* The GNU C library defines this for functions which it implements
3540 to always fail with ENOSYS. Some functions are actually named
3541 something starting with __ and the normal name is an alias. */
3542 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
3550 if { (eval echo configure:3551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3552 eval "ac_cv_func_dbm_open=yes"
3554 echo "configure: failed program was:" >&5
3555 cat conftest.$ac_ext >&5
3557 eval "ac_cv_func_dbm_open=no"
3562 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
3563 echo "$ac_t""yes" 1>&6
3566 echo "$ac_t""no" 1>&6
3567 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
3568 echo "configure:3569: checking for dbm_open in -lndbm" >&5
3569 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
3570 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3571 echo $ac_n "(cached) $ac_c" 1>&6
3573 ac_save_LIBS="$LIBS"
3575 cat > conftest.$ac_ext <<EOF
3576 #line 3577 "configure"
3577 #include "confdefs.h"
3578 /* Override any gcc2 internal prototype to avoid an error. */
3579 /* We use char because int might match the return type of a gcc2
3580 builtin and then its argument prototype would still apply. */
3587 if { (eval echo configure:3588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3589 eval "ac_cv_lib_$ac_lib_var=yes"
3591 echo "configure: failed program was:" >&5
3592 cat conftest.$ac_ext >&5
3594 eval "ac_cv_lib_$ac_lib_var=no"
3597 LIBS="$ac_save_LIBS"
3600 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3601 echo "$ac_t""yes" 1>&6
3602 ac_tr_lib=HAVE_LIB`echo ndbm | sed -e 's/^a-zA-Z0-9_/_/g' \
3603 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3604 cat >> confdefs.h <<EOF
3605 #define $ac_tr_lib 1
3611 echo "$ac_t""no" 1>&6
3612 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
3613 echo "configure:3614: checking for dbm_open in -ldbm" >&5
3614 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
3615 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3616 echo $ac_n "(cached) $ac_c" 1>&6
3618 ac_save_LIBS="$LIBS"
3620 cat > conftest.$ac_ext <<EOF
3621 #line 3622 "configure"
3622 #include "confdefs.h"
3623 /* Override any gcc2 internal prototype to avoid an error. */
3624 /* We use char because int might match the return type of a gcc2
3625 builtin and then its argument prototype would still apply. */
3632 if { (eval echo configure:3633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3634 eval "ac_cv_lib_$ac_lib_var=yes"
3636 echo "configure: failed program was:" >&5
3637 cat conftest.$ac_ext >&5
3639 eval "ac_cv_lib_$ac_lib_var=no"
3642 LIBS="$ac_save_LIBS"
3645 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3646 echo "$ac_t""yes" 1>&6
3647 ac_tr_lib=HAVE_LIB`echo dbm | sed -e 's/^a-zA-Z0-9_/_/g' \
3648 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3649 cat >> confdefs.h <<EOF
3650 #define $ac_tr_lib 1
3656 echo "$ac_t""no" 1>&6
3664 for ac_hdr in db1/ndbm.h
3666 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3667 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3668 echo "configure:3669: checking for $ac_hdr" >&5
3669 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3670 echo $ac_n "(cached) $ac_c" 1>&6
3672 cat > conftest.$ac_ext <<EOF
3673 #line 3674 "configure"
3674 #include "confdefs.h"
3677 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3678 { (eval echo configure:3679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3679 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3680 if test -z "$ac_err"; then
3682 eval "ac_cv_header_$ac_safe=yes"
3685 echo "configure: failed program was:" >&5
3686 cat conftest.$ac_ext >&5
3688 eval "ac_cv_header_$ac_safe=no"
3692 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3693 echo "$ac_t""yes" 1>&6
3694 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3695 cat >> confdefs.h <<EOF
3696 #define $ac_tr_hdr 1
3700 echo "$ac_t""no" 1>&6
3705 if test x"$with_hesiod" != x -a x"$with_hesiod" != x"no"; then
3706 if test x"$with_hesiod" != x"yes"; then
3707 HESIOD_INCLUDES="-I$with_hesiod/include"
3708 HESIOD_LIBS="-L$with_hesiod/lib"
3710 echo $ac_n "checking for res_send""... $ac_c" 1>&6
3711 echo "configure:3712: checking for res_send" >&5
3712 if eval "test \"`echo '$''{'ac_cv_func_res_send'+set}'`\" = set"; then
3713 echo $ac_n "(cached) $ac_c" 1>&6
3715 cat > conftest.$ac_ext <<EOF
3716 #line 3717 "configure"
3717 #include "confdefs.h"
3718 /* System header to define __stub macros and hopefully few prototypes,
3719 which can conflict with char res_send(); below. */
3721 /* Override any gcc2 internal prototype to avoid an error. */
3722 /* We use char because int might match the return type of a gcc2
3723 builtin and then its argument prototype would still apply. */
3728 /* The GNU C library defines this for functions which it implements
3729 to always fail with ENOSYS. Some functions are actually named
3730 something starting with __ and the normal name is an alias. */
3731 #if defined (__stub_res_send) || defined (__stub___res_send)
3739 if { (eval echo configure:3740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3741 eval "ac_cv_func_res_send=yes"
3743 echo "configure: failed program was:" >&5
3744 cat conftest.$ac_ext >&5
3746 eval "ac_cv_func_res_send=no"
3751 if eval "test \"`echo '$ac_cv_func_'res_send`\" = yes"; then
3752 echo "$ac_t""yes" 1>&6
3755 echo "$ac_t""no" 1>&6
3756 echo $ac_n "checking for res_send in -lresolv""... $ac_c" 1>&6
3757 echo "configure:3758: checking for res_send in -lresolv" >&5
3758 ac_lib_var=`echo resolv'_'res_send | sed 'y%./+-%__p_%'`
3759 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3760 echo $ac_n "(cached) $ac_c" 1>&6
3762 ac_save_LIBS="$LIBS"
3763 LIBS="-lresolv $LIBS"
3764 cat > conftest.$ac_ext <<EOF
3765 #line 3766 "configure"
3766 #include "confdefs.h"
3767 /* Override any gcc2 internal prototype to avoid an error. */
3768 /* We use char because int might match the return type of a gcc2
3769 builtin and then its argument prototype would still apply. */
3776 if { (eval echo configure:3777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3778 eval "ac_cv_lib_$ac_lib_var=yes"
3780 echo "configure: failed program was:" >&5
3781 cat conftest.$ac_ext >&5
3783 eval "ac_cv_lib_$ac_lib_var=no"
3786 LIBS="$ac_save_LIBS"
3789 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3790 echo "$ac_t""yes" 1>&6
3791 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
3792 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3793 cat >> confdefs.h <<EOF
3794 #define $ac_tr_lib 1
3797 LIBS="-lresolv $LIBS"
3800 echo "$ac_t""no" 1>&6
3805 echo $ac_n "checking for hes_resolve in -lhesiod""... $ac_c" 1>&6
3806 echo "configure:3807: checking for hes_resolve in -lhesiod" >&5
3807 ac_lib_var=`echo hesiod'_'hes_resolve | sed 'y%./+-%__p_%'`
3808 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3809 echo $ac_n "(cached) $ac_c" 1>&6
3811 ac_save_LIBS="$LIBS"
3812 LIBS="-lhesiod $HESIOD_LIBS $LIBS"
3813 cat > conftest.$ac_ext <<EOF
3814 #line 3815 "configure"
3815 #include "confdefs.h"
3816 /* Override any gcc2 internal prototype to avoid an error. */
3817 /* We use char because int might match the return type of a gcc2
3818 builtin and then its argument prototype would still apply. */
3825 if { (eval echo configure:3826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3827 eval "ac_cv_lib_$ac_lib_var=yes"
3829 echo "configure: failed program was:" >&5
3830 cat conftest.$ac_ext >&5
3832 eval "ac_cv_lib_$ac_lib_var=no"
3835 LIBS="$ac_save_LIBS"
3838 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3839 echo "$ac_t""yes" 1>&6
3840 HESIOD_LIBS="$HESIOD_LIBS -lhesiod"
3842 echo "$ac_t""no" 1>&6
3843 { echo "configure: error: Hesiod library not found" 1>&2; exit 1; }
3848 if test x"$with_krb4" != x -a x"$with_krb4" != x"no"; then
3849 if test x"$with_krb4" != x"yes"; then
3850 KRB4_INCLUDES="-I$with_krb4/include"
3851 if test -d "$with_krb4/include/kerberosIV"; then
3852 KRB4_INCLUDES="$KRB4_INCLUDES -I$with_krb4/include/kerberosIV"
3854 KRB4_LIBS="-L$with_krb4/lib"
3855 elif test -d /usr/include/kerberosIV; then
3856 KRB4_INCLUDES="-I/usr/include/kerberosIV"
3858 echo $ac_n "checking for krb_rd_req in -lkrb4""... $ac_c" 1>&6
3859 echo "configure:3860: checking for krb_rd_req in -lkrb4" >&5
3860 ac_lib_var=`echo krb4'_'krb_rd_req | sed 'y%./+-%__p_%'`
3861 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3862 echo $ac_n "(cached) $ac_c" 1>&6
3864 ac_save_LIBS="$LIBS"
3865 LIBS="-lkrb4 $KRB4_LIBS -ldes425 -lkrb5 -lcrypto -lcom_err $LIBS"
3866 cat > conftest.$ac_ext <<EOF
3867 #line 3868 "configure"
3868 #include "confdefs.h"
3869 /* Override any gcc2 internal prototype to avoid an error. */
3870 /* We use char because int might match the return type of a gcc2
3871 builtin and then its argument prototype would still apply. */
3878 if { (eval echo configure:3879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3880 eval "ac_cv_lib_$ac_lib_var=yes"
3882 echo "configure: failed program was:" >&5
3883 cat conftest.$ac_ext >&5
3885 eval "ac_cv_lib_$ac_lib_var=no"
3888 LIBS="$ac_save_LIBS"
3891 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3892 echo "$ac_t""yes" 1>&6
3893 KRB4_LIBS="$KRB4_LIBS -lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err"
3895 echo "$ac_t""no" 1>&6
3896 echo $ac_n "checking for krb_rd_req in -lkrb""... $ac_c" 1>&6
3897 echo "configure:3898: checking for krb_rd_req in -lkrb" >&5
3898 ac_lib_var=`echo krb'_'krb_rd_req | sed 'y%./+-%__p_%'`
3899 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3900 echo $ac_n "(cached) $ac_c" 1>&6
3902 ac_save_LIBS="$LIBS"
3903 LIBS="-lkrb $KRB4_LIBS -ldes $LIBS"
3904 cat > conftest.$ac_ext <<EOF
3905 #line 3906 "configure"
3906 #include "confdefs.h"
3907 /* Override any gcc2 internal prototype to avoid an error. */
3908 /* We use char because int might match the return type of a gcc2
3909 builtin and then its argument prototype would still apply. */
3916 if { (eval echo configure:3917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3918 eval "ac_cv_lib_$ac_lib_var=yes"
3920 echo "configure: failed program was:" >&5
3921 cat conftest.$ac_ext >&5
3923 eval "ac_cv_lib_$ac_lib_var=no"
3926 LIBS="$ac_save_LIBS"
3929 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3930 echo "$ac_t""yes" 1>&6
3931 KRB4_LIBS="$KRB4_LIBS -lkrb -ldes"
3933 echo "$ac_t""no" 1>&6
3934 { echo "configure: error: Kerberos 4 libraries not found" 1>&2; exit 1; }
3942 nmh_save_LIBS="$LIBS"
3943 LIBS="$TERMLIB $LIBS"
3945 echo $ac_n "checking if an include file defines ospeed""... $ac_c" 1>&6
3946 echo "configure:3947: checking if an include file defines ospeed" >&5
3947 if eval "test \"`echo '$''{'nmh_cv_decl_ospeed_include_defines'+set}'`\" = set"; then
3948 echo $ac_n "(cached) $ac_c" 1>&6
3950 cat > conftest.$ac_ext <<EOF
3951 #line 3952 "configure"
3952 #include "confdefs.h"
3953 #include <sys/types.h>
3955 #include <termios.h>
3958 #include <termcap.h>
3964 if { (eval echo configure:3965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3966 nmh_cv_decl_ospeed_include_defines=yes
3968 echo "configure: failed program was:" >&5
3969 cat conftest.$ac_ext >&5
3971 nmh_cv_decl_ospeed_include_defines=no
3976 echo "$ac_t""$nmh_cv_decl_ospeed_include_defines" 1>&6
3978 if test $nmh_cv_decl_ospeed_include_defines = no; then
3979 echo $ac_n "checking if you must define ospeed""... $ac_c" 1>&6
3980 echo "configure:3981: checking if you must define ospeed" >&5
3981 if eval "test \"`echo '$''{'nmh_cv_decl_ospeed_must_define'+set}'`\" = set"; then
3982 echo $ac_n "(cached) $ac_c" 1>&6
3984 cat > conftest.$ac_ext <<EOF
3985 #line 3986 "configure"
3986 #include "confdefs.h"
3989 extern short ospeed; ospeed = 0;
3992 if { (eval echo configure:3993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3994 nmh_cv_decl_ospeed_must_define=yes
3996 echo "configure: failed program was:" >&5
3997 cat conftest.$ac_ext >&5
3999 nmh_cv_decl_ospeed_must_define=no
4004 echo "$ac_t""$nmh_cv_decl_ospeed_must_define" 1>&6
4007 if test $nmh_cv_decl_ospeed_include_defines = yes; then
4008 cat >> confdefs.h <<\EOF
4009 #define HAVE_OSPEED 1
4012 elif test $nmh_cv_decl_ospeed_must_define = yes; then
4013 cat >> confdefs.h <<\EOF
4014 #define HAVE_OSPEED 1
4017 cat >> confdefs.h <<\EOF
4018 #define MUST_DEFINE_OSPEED 1
4024 LIBS="$nmh_save_LIBS"
4026 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4027 echo "configure:4028: checking return type of signal handlers" >&5
4028 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4029 echo $ac_n "(cached) $ac_c" 1>&6
4031 cat > conftest.$ac_ext <<EOF
4032 #line 4033 "configure"
4033 #include "confdefs.h"
4034 #include <sys/types.h>
4040 extern "C" void (*signal (int, void (*)(int)))(int);
4042 void (*signal ()) ();
4049 if { (eval echo configure:4050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4051 ac_cv_type_signal=void
4053 echo "configure: failed program was:" >&5
4054 cat conftest.$ac_ext >&5
4056 ac_cv_type_signal=int
4061 echo "$ac_t""$ac_cv_type_signal" 1>&6
4062 cat >> confdefs.h <<EOF
4063 #define RETSIGTYPE $ac_cv_type_signal
4067 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
4068 echo "configure:4069: checking for pid_t" >&5
4069 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
4070 echo $ac_n "(cached) $ac_c" 1>&6
4072 cat > conftest.$ac_ext <<EOF
4073 #line 4074 "configure"
4074 #include "confdefs.h"
4075 #include <sys/types.h>
4081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4082 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4084 ac_cv_type_pid_t=yes
4092 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
4093 if test $ac_cv_type_pid_t = no; then
4094 cat >> confdefs.h <<\EOF
4100 echo $ac_n "checking for off_t""... $ac_c" 1>&6
4101 echo "configure:4102: checking for off_t" >&5
4102 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
4103 echo $ac_n "(cached) $ac_c" 1>&6
4105 cat > conftest.$ac_ext <<EOF
4106 #line 4107 "configure"
4107 #include "confdefs.h"
4108 #include <sys/types.h>
4114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4115 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4117 ac_cv_type_off_t=yes
4125 echo "$ac_t""$ac_cv_type_off_t" 1>&6
4126 if test $ac_cv_type_off_t = no; then
4127 cat >> confdefs.h <<\EOF
4133 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
4134 echo "configure:4135: checking for uid_t in sys/types.h" >&5
4135 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
4136 echo $ac_n "(cached) $ac_c" 1>&6
4138 cat > conftest.$ac_ext <<EOF
4139 #line 4140 "configure"
4140 #include "confdefs.h"
4141 #include <sys/types.h>
4143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4144 egrep "uid_t" >/dev/null 2>&1; then
4146 ac_cv_type_uid_t=yes
4155 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
4156 if test $ac_cv_type_uid_t = no; then
4157 cat >> confdefs.h <<\EOF
4161 cat >> confdefs.h <<\EOF
4167 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
4168 echo "configure:4169: checking for mode_t" >&5
4169 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
4170 echo $ac_n "(cached) $ac_c" 1>&6
4172 cat > conftest.$ac_ext <<EOF
4173 #line 4174 "configure"
4174 #include "confdefs.h"
4175 #include <sys/types.h>
4181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4182 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4184 ac_cv_type_mode_t=yes
4187 ac_cv_type_mode_t=no
4192 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
4193 if test $ac_cv_type_mode_t = no; then
4194 cat >> confdefs.h <<\EOF
4200 echo $ac_n "checking for size_t""... $ac_c" 1>&6
4201 echo "configure:4202: checking for size_t" >&5
4202 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
4203 echo $ac_n "(cached) $ac_c" 1>&6
4205 cat > conftest.$ac_ext <<EOF
4206 #line 4207 "configure"
4207 #include "confdefs.h"
4208 #include <sys/types.h>
4214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4215 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4217 ac_cv_type_size_t=yes
4220 ac_cv_type_size_t=no
4225 echo "$ac_t""$ac_cv_type_size_t" 1>&6
4226 if test $ac_cv_type_size_t = no; then
4227 cat >> confdefs.h <<\EOF
4228 #define size_t unsigned
4234 echo $ac_n "checking for sigset_t""... $ac_c" 1>&6
4235 echo "configure:4236: checking for sigset_t" >&5
4236 if eval "test \"`echo '$''{'nmh_cv_type_sigset_t'+set}'`\" = set"; then
4237 echo $ac_n "(cached) $ac_c" 1>&6
4239 cat > conftest.$ac_ext <<EOF
4240 #line 4241 "configure"
4241 #include "confdefs.h"
4242 #include <sys/types.h>
4245 sigset_t tempsigset;
4248 if { (eval echo configure:4249: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4250 nmh_cv_type_sigset_t=yes
4252 echo "configure: failed program was:" >&5
4253 cat conftest.$ac_ext >&5
4255 nmh_cv_type_sigset_t=no
4260 echo "$ac_t""$nmh_cv_type_sigset_t" 1>&6
4261 if test $nmh_cv_type_sigset_t = no; then
4262 cat >> confdefs.h <<\EOF
4263 #define sigset_t unsigned int
4268 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
4269 echo "configure:4270: checking for st_blksize in struct stat" >&5
4270 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
4271 echo $ac_n "(cached) $ac_c" 1>&6
4273 cat > conftest.$ac_ext <<EOF
4274 #line 4275 "configure"
4275 #include "confdefs.h"
4276 #include <sys/types.h>
4277 #include <sys/stat.h>
4279 struct stat s; s.st_blksize;
4282 if { (eval echo configure:4283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4284 ac_cv_struct_st_blksize=yes
4286 echo "configure: failed program was:" >&5
4287 cat conftest.$ac_ext >&5
4289 ac_cv_struct_st_blksize=no
4294 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
4295 if test $ac_cv_struct_st_blksize = yes; then
4296 cat >> confdefs.h <<\EOF
4297 #define HAVE_ST_BLKSIZE 1
4303 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
4304 echo "configure:4305: checking for tm_gmtoff in struct tm" >&5
4305 if eval "test \"`echo '$''{'nmh_cv_struct_tm_gmtoff'+set}'`\" = set"; then
4306 echo $ac_n "(cached) $ac_c" 1>&6
4308 cat > conftest.$ac_ext <<EOF
4309 #line 4310 "configure"
4310 #include "confdefs.h"
4311 #ifdef TIME_WITH_SYS_TIME
4312 # include <sys/time.h>
4315 # ifdef TM_IN_SYS_TIME
4316 # include <sys/time.h>
4322 struct tm temptm; temptm.tm_gmtoff = 0;
4325 if { (eval echo configure:4326: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4327 nmh_cv_struct_tm_gmtoff=yes
4329 echo "configure: failed program was:" >&5
4330 cat conftest.$ac_ext >&5
4332 nmh_cv_struct_tm_gmtoff=no
4337 echo "$ac_t""$nmh_cv_struct_tm_gmtoff" 1>&6
4338 if test $nmh_cv_struct_tm_gmtoff = yes; then
4339 cat >> confdefs.h <<\EOF
4340 #define HAVE_TM_GMTOFF 1
4345 echo $ac_n "checking what style of signals to use""... $ac_c" 1>&6
4346 echo "configure:4347: checking what style of signals to use" >&5
4347 if test $ac_cv_func_sigaction = yes -a $ac_cv_func_sigprocmask = yes; then
4348 signals_style=POSIX_SIGNALS
4349 cat >> confdefs.h <<\EOF
4350 #define POSIX_SIGNALS 1
4353 cat >> confdefs.h <<\EOF
4354 #define RELIABLE_SIGNALS 1
4357 elif test $ac_cv_func_sigblock = yes -a $ac_cv_func_sigsetmask = yes; then
4358 signals_style=BSD_SIGNALS
4359 cat >> confdefs.h <<\EOF
4360 #define BSD_SIGNALS 1
4363 cat >> confdefs.h <<\EOF
4364 #define RELIABLE_SIGNALS 1
4367 elif test $ac_cv_func_sighold = yes -a $ac_cv_func_sigrelse = yes; then
4368 signals_style=SYSV_SIGNALS
4369 cat >> confdefs.h <<\EOF
4370 #define SYSV_SIGNALS 1
4374 signals_style=NO_SIGNAL_BLOCKING
4375 cat >> confdefs.h <<\EOF
4376 #define NO_SIGNAL_BLOCKING 1
4381 echo "$ac_t""$signals_style" 1>&6
4383 echo $ac_n "checking where signal.h is located""... $ac_c" 1>&6
4384 echo "configure:4385: checking where signal.h is located" >&5
4385 if eval "test \"`echo '$''{'nmh_cv_path_signal_h'+set}'`\" = set"; then
4386 echo $ac_n "(cached) $ac_c" 1>&6
4388 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
4389 test -f $SIGNAL_H && \
4390 grep '#[ ]*define[ ][ ]*SIG[0-9A-Z]*[ ]*[0-9][0-9]*' $SIGNAL_H > /dev/null && \
4393 nmh_cv_path_signal_h=$SIGNAL_H
4397 echo "$ac_t""$nmh_cv_path_signal_h" 1>&6
4398 SIGNAL_H=$nmh_cv_path_signal_h
4400 case "$target_os" in
4403 cat >> confdefs.h <<\EOF
4407 cat >> confdefs.h <<\EOF
4413 cat >> confdefs.h <<\EOF
4417 cat >> confdefs.h <<\EOF
4423 cat >> confdefs.h <<\EOF
4427 cat >> confdefs.h <<\EOF
4433 cat >> confdefs.h <<\EOF
4437 cat >> confdefs.h <<\EOF
4443 cat >> confdefs.h <<\EOF
4449 cat >> confdefs.h <<\EOF
4453 cat >> confdefs.h <<\EOF
4459 cat >> confdefs.h <<\EOF
4463 cat >> confdefs.h <<\EOF
4469 cat >> confdefs.h <<\EOF
4473 cat >> confdefs.h <<\EOF
4479 cat >> confdefs.h <<\EOF
4483 cat >> confdefs.h <<\EOF
4489 cat >> confdefs.h <<\EOF
4493 cat >> confdefs.h <<\EOF
4494 #define SCO_5_STDIO 1
4502 cat > confcache <<\EOF
4503 # This file is a shell script that caches the results of configure
4504 # tests run on this system so they can be shared between configure
4505 # scripts and configure runs. It is not useful on other systems.
4506 # If it contains results you don't want to keep, you may remove or edit it.
4508 # By default, configure uses ./config.cache as the cache file,
4509 # creating it if it does not exist already. You can give configure
4510 # the --cache-file=FILE option to use a different cache file; that is
4511 # what configure does when it calls configure scripts in
4512 # subdirectories, so they share the cache.
4513 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4514 # config.status only pays attention to the cache file if you give it the
4515 # --recheck option to rerun configure.
4518 # The following way of writing the cache mishandles newlines in values,
4519 # but we know of no workaround that is simple, portable, and efficient.
4520 # So, don't put newlines in cache variables' values.
4521 # Ultrix sh set writes to stderr and can't be redirected directly,
4522 # and sets the high bit in the cache file unless we assign to the vars.
4524 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4526 # `set' does not quote correctly, so add quotes (double-quote substitution
4527 # turns \\\\ into \\, and sed turns \\ into \).
4529 -e "s/'/'\\\\''/g" \
4530 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4533 # `set' quotes correctly as required by POSIX, so do not add quotes.
4534 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4537 if cmp -s $cache_file confcache; then
4540 if test -w $cache_file; then
4541 echo "updating cache $cache_file"
4542 cat confcache > $cache_file
4544 echo "not updating unwritable cache $cache_file"
4549 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4551 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4552 # Let make expand exec_prefix.
4553 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4555 # Any assignment to VPATH causes Sun make to only execute
4556 # the first set of double-colon rules, so remove it if not needed.
4557 # If there is a colon in the path, we need to keep it.
4558 if test "x$srcdir" = x.; then
4559 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4562 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4564 DEFS=-DHAVE_CONFIG_H
4566 # Without the "./", some shells look in PATH for config.status.
4567 : ${CONFIG_STATUS=./config.status}
4569 echo creating $CONFIG_STATUS
4570 rm -f $CONFIG_STATUS
4571 cat > $CONFIG_STATUS <<EOF
4573 # Generated automatically by configure.
4574 # Run this file to recreate the current configuration.
4575 # This directory was configured as follows,
4576 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4578 # $0 $ac_configure_args
4580 # Compiler output produced by configure, useful for debugging
4581 # configure, is in ./config.log if it exists.
4583 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4586 case "\$ac_option" in
4587 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4588 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4589 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4590 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4591 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4593 -help | --help | --hel | --he | --h)
4594 echo "\$ac_cs_usage"; exit 0 ;;
4595 *) echo "\$ac_cs_usage"; exit 1 ;;
4599 ac_given_srcdir=$srcdir
4600 ac_given_INSTALL="$INSTALL"
4602 trap 'rm -fr `echo "Makefile config/Makefile h/Makefile sbr/Makefile uip/Makefile \
4603 zotnet/Makefile zotnet/mts/Makefile zotnet/tws/Makefile \
4604 zotnet/mf/Makefile zotnet/bboards/Makefile mts/Makefile \
4605 mts/smtp/Makefile mts/sendmail/Makefile mts/mmdf/Makefile \
4606 etc/Makefile man/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4608 cat >> $CONFIG_STATUS <<EOF
4610 # Protect against being on the right side of a sed subst in config.status.
4611 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4612 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4616 s%@CFLAGS@%$CFLAGS%g
4617 s%@CPPFLAGS@%$CPPFLAGS%g
4618 s%@CXXFLAGS@%$CXXFLAGS%g
4619 s%@FFLAGS@%$FFLAGS%g
4621 s%@LDFLAGS@%$LDFLAGS%g
4623 s%@exec_prefix@%$exec_prefix%g
4624 s%@prefix@%$prefix%g
4625 s%@program_transform_name@%$program_transform_name%g
4626 s%@bindir@%$bindir%g
4627 s%@sbindir@%$sbindir%g
4628 s%@libexecdir@%$libexecdir%g
4629 s%@datadir@%$datadir%g
4630 s%@sysconfdir@%$sysconfdir%g
4631 s%@sharedstatedir@%$sharedstatedir%g
4632 s%@localstatedir@%$localstatedir%g
4633 s%@libdir@%$libdir%g
4634 s%@includedir@%$includedir%g
4635 s%@oldincludedir@%$oldincludedir%g
4636 s%@infodir@%$infodir%g
4637 s%@mandir@%$mandir%g
4639 s%@host_alias@%$host_alias%g
4640 s%@host_cpu@%$host_cpu%g
4641 s%@host_vendor@%$host_vendor%g
4642 s%@host_os@%$host_os%g
4643 s%@target@%$target%g
4644 s%@target_alias@%$target_alias%g
4645 s%@target_cpu@%$target_cpu%g
4646 s%@target_vendor@%$target_vendor%g
4647 s%@target_os@%$target_os%g
4649 s%@build_alias@%$build_alias%g
4650 s%@build_cpu@%$build_cpu%g
4651 s%@build_vendor@%$build_vendor%g
4652 s%@build_os@%$build_os%g
4653 s%@VERSION@%$VERSION%g
4654 s%@masquerade@%$masquerade%g
4655 s%@POPLIB@%$POPLIB%g
4656 s%@POPSED@%$POPSED%g
4658 s%@MTSLIB@%$MTSLIB%g
4659 s%@smtpservers@%$smtpservers%g
4661 s%@SET_MAKE@%$SET_MAKE%g
4662 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4663 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4664 s%@INSTALL_DATA@%$INSTALL_DATA%g
4665 s%@RANLIB@%$RANLIB%g
4668 s%@LEXLIB@%$LEXLIB%g
4669 s%@cutpath@%$cutpath%g
4670 s%@LIBTOOL@%$LIBTOOL%g
4671 s%@GNU_LIBTOOL@%$GNU_LIBTOOL%g
4672 s%@LORDER@%$LORDER%g
4674 s%@lspath@%$lspath%g
4675 s%@morepath@%$morepath%g
4676 s%@pagerpath@%$pagerpath%g
4677 s%@sendmailpath@%$sendmailpath%g
4678 s%@vipath@%$vipath%g
4679 s%@editorpath@%$editorpath%g
4680 s%@mailspool@%$mailspool%g
4681 s%@SETGID_MAIL@%$SETGID_MAIL%g
4682 s%@MAIL_SPOOL_GRP@%$MAIL_SPOOL_GRP%g
4684 s%@LIBOBJS@%$LIBOBJS%g
4685 s%@TERMLIB@%$TERMLIB%g
4686 s%@HESIOD_INCLUDES@%$HESIOD_INCLUDES%g
4687 s%@HESIOD_LIBS@%$HESIOD_LIBS%g
4688 s%@KRB4_INCLUDES@%$KRB4_INCLUDES%g
4689 s%@KRB4_LIBS@%$KRB4_LIBS%g
4690 s%@SIGNAL_H@%$SIGNAL_H%g
4695 cat >> $CONFIG_STATUS <<\EOF
4697 # Split the substitutions into bite-sized pieces for seds with
4698 # small command number limits, like on Digital OSF/1 and HP-UX.
4699 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4700 ac_file=1 # Number of current file.
4701 ac_beg=1 # First line for current file.
4702 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4705 while $ac_more_lines; do
4706 if test $ac_beg -gt 1; then
4707 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4709 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4711 if test ! -s conftest.s$ac_file; then
4713 rm -f conftest.s$ac_file
4715 if test -z "$ac_sed_cmds"; then
4716 ac_sed_cmds="sed -f conftest.s$ac_file"
4718 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4720 ac_file=`expr $ac_file + 1`
4722 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4725 if test -z "$ac_sed_cmds"; then
4730 cat >> $CONFIG_STATUS <<EOF
4732 CONFIG_FILES=\${CONFIG_FILES-"Makefile config/Makefile h/Makefile sbr/Makefile uip/Makefile \
4733 zotnet/Makefile zotnet/mts/Makefile zotnet/tws/Makefile \
4734 zotnet/mf/Makefile zotnet/bboards/Makefile mts/Makefile \
4735 mts/smtp/Makefile mts/sendmail/Makefile mts/mmdf/Makefile \
4736 etc/Makefile man/Makefile"}
4738 cat >> $CONFIG_STATUS <<\EOF
4739 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4740 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4742 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4743 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4744 *) ac_file_in="${ac_file}.in" ;;
4747 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4749 # Remove last slash and all that follows it. Not all systems have dirname.
4750 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4751 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4752 # The file is in a subdirectory.
4753 test ! -d "$ac_dir" && mkdir "$ac_dir"
4754 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4755 # A "../" for each directory in $ac_dir_suffix.
4756 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4758 ac_dir_suffix= ac_dots=
4761 case "$ac_given_srcdir" in
4763 if test -z "$ac_dots"; then top_srcdir=.
4764 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4765 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4767 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4768 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4771 case "$ac_given_INSTALL" in
4772 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4773 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4776 echo creating "$ac_file"
4778 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4780 *Makefile*) ac_comsub="1i\\
4781 # $configure_input" ;;
4785 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4787 s%@configure_input@%$configure_input%g
4788 s%@srcdir@%$srcdir%g
4789 s%@top_srcdir@%$top_srcdir%g
4790 s%@INSTALL@%$INSTALL%g
4791 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4795 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4796 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4798 # ac_d sets the value in "#define NAME VALUE" lines.
4799 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4800 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4803 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4804 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4805 ac_uB='\([ ]\)%\1#\2define\3'
4808 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4809 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4810 ac_eB='$%\1#\2define\3'
4814 if test "${CONFIG_HEADERS+set}" != set; then
4816 cat >> $CONFIG_STATUS <<EOF
4817 CONFIG_HEADERS="config.h"
4819 cat >> $CONFIG_STATUS <<\EOF
4821 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4822 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4824 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4825 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4826 *) ac_file_in="${ac_file}.in" ;;
4829 echo creating $ac_file
4831 rm -f conftest.frag conftest.in conftest.out
4832 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4833 cat $ac_file_inputs > conftest.in
4837 # Transform confdefs.h into a sed script conftest.vals that substitutes
4838 # the proper values into config.h.in to produce config.h. And first:
4839 # Protect against being on the right side of a sed subst in config.status.
4840 # Protect against being in an unquoted here document in config.status.
4842 cat > conftest.hdr <<\EOF
4845 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4849 sed -n -f conftest.hdr confdefs.h > conftest.vals
4852 # This sed command replaces #undef with comments. This is necessary, for
4853 # example, in the case of _POSIX_SOURCE, which is predefined and required
4854 # on some systems where configure will not decide to define it.
4855 cat >> conftest.vals <<\EOF
4856 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4859 # Break up conftest.vals because some shells have a limit on
4860 # the size of here documents, and old seds have small limits too.
4865 ac_lines=`grep -c . conftest.vals`
4866 # grep -c gives empty output for an empty file on some AIX systems.
4867 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4868 # Write a limited-size here document to conftest.frag.
4869 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4870 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4872 sed -f conftest.frag conftest.in > conftest.out
4874 mv conftest.out conftest.in
4876 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4878 mv conftest.tail conftest.vals
4882 cat >> $CONFIG_STATUS <<\EOF
4883 rm -f conftest.frag conftest.h
4884 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4885 cat conftest.in >> conftest.h
4887 if cmp -s $ac_file conftest.h 2>/dev/null; then
4888 echo "$ac_file is unchanged"
4891 # Remove last slash and all that follows it. Not all systems have dirname.
4892 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4893 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4894 # The file is in a subdirectory.
4895 test ! -d "$ac_dir" && mkdir "$ac_dir"
4898 mv conftest.h $ac_file
4903 cat >> $CONFIG_STATUS <<EOF
4906 cat >> $CONFIG_STATUS <<\EOF
4908 test -z "$CONFIG_HEADERS" || echo > stamp-h
4911 chmod +x $CONFIG_STATUS
4912 rm -fr confdefs* $ac_clean_files
4913 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4916 eval "nmhbin=${bindir}"; eval "nmhbin2=${nmhbin}"
4917 eval "nmhsysconf=${sysconfdir}"; eval "nmhsysconf2=${nmhsysconf}"
4918 eval "nmhlib=${libdir}"; eval "nmhlib2=${nmhlib}"
4919 eval "nmhman=${mandir}"
4924 nmh version : ${VERSION}
4925 target os : ${target}
4927 compiler flags : ${CFLAGS}
4928 linker flags : ${LDFLAGS}
4929 source code location : ${srcdir}
4930 binary install path : ${nmhbin2}
4931 libary install path : ${nmhlib2}
4932 config files install path : ${nmhsysconf2}
4933 man page install path : ${nmhman}
4934 transport system : ${MTS}
4935 default smtp servers : ${smtpservers}
4936 default editor : ${editorpath}
4937 default pager : ${pagerpath}
4938 email address masquerading : ${masquerade}"