3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --enable-debug enable nmh code debugging"
17 --enable-masquerade[='draft_from[ mmailid[ username_extension]]']
18 enable 3 types of email address masquerading [none]"
20 --enable-mhe enable mhe support (DEFAULT)"
22 --enable-apop enable client-side support for apop"
24 --with-hesiod=PREFIX specify location of Hesiod"
26 --with-krb4=PREFIX specify location of Kerberos V4 for kpop support"
28 --enable-pop enable client-side support for pop"
30 --with-editor=EDITOR specify the default editor"
32 --with-mts=MTS specify the mail transport agent"
34 --with-pager=PAGER specify the default pager"
36 --with-smtpservers='SMTPSERVER1[ SMTPSERVER2...]'
37 specify the default smtp server(s) [localhost]"
38 ac_default_prefix=/usr/local/nmh
40 # Initialize some variables set by options.
41 # The variables have the same names as the options, with
42 # dashes changed to underlines.
44 cache_file=./config.cache
53 program_transform_name=s,x,x,
61 bindir='${exec_prefix}/bin'
62 sbindir='${exec_prefix}/sbin'
63 libexecdir='${exec_prefix}/libexec'
64 datadir='${prefix}/share'
65 sysconfdir='${prefix}/etc'
66 sharedstatedir='${prefix}/com'
67 localstatedir='${prefix}/var'
68 libdir='${exec_prefix}/lib'
69 includedir='${prefix}/include'
70 oldincludedir='/usr/include'
71 infodir='${prefix}/info'
72 mandir='${prefix}/man'
74 # Initialize some other variables.
77 SHELL=${CONFIG_SHELL-/bin/sh}
78 # Maximum number of lines to put in a shell here document.
85 # If the previous option needs an argument, assign it.
86 if test -n "$ac_prev"; then
87 eval "$ac_prev=\$ac_option"
93 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
97 # Accept the important Cygnus configure options, so we can diagnose typos.
101 -bindir | --bindir | --bindi | --bind | --bin | --bi)
103 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
104 bindir="$ac_optarg" ;;
106 -build | --build | --buil | --bui | --bu)
108 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
109 build="$ac_optarg" ;;
111 -cache-file | --cache-file | --cache-fil | --cache-fi \
112 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
113 ac_prev=cache_file ;;
114 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
115 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
116 cache_file="$ac_optarg" ;;
118 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
120 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
122 datadir="$ac_optarg" ;;
124 -disable-* | --disable-*)
125 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
126 # Reject names that are not valid shell variable names.
127 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
128 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
130 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
131 eval "enable_${ac_feature}=no" ;;
133 -enable-* | --enable-*)
134 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
135 # Reject names that are not valid shell variable names.
136 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
137 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
139 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
144 eval "enable_${ac_feature}='$ac_optarg'" ;;
146 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
147 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
148 | --exec | --exe | --ex)
149 ac_prev=exec_prefix ;;
150 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
151 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
152 | --exec=* | --exe=* | --ex=*)
153 exec_prefix="$ac_optarg" ;;
155 -gas | --gas | --ga | --g)
156 # Obsolete; use --with-gas.
159 -help | --help | --hel | --he)
160 # Omit some internal or obsolete options to make the list less imposing.
161 # This message is too long to be a string in the A/UX 3.1 sh.
163 Usage: configure [options] [host]
164 Options: [defaults in brackets after descriptions]
166 --cache-file=FILE cache test results in FILE
167 --help print this message
168 --no-create do not create output files
169 --quiet, --silent do not print \`checking...' messages
170 --version print the version of autoconf that created configure
171 Directory and file names:
172 --prefix=PREFIX install architecture-independent files in PREFIX
174 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
176 --bindir=DIR user executables in DIR [EPREFIX/bin]
177 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
178 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
179 --datadir=DIR read-only architecture-independent data in DIR
181 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
182 --sharedstatedir=DIR modifiable architecture-independent data in DIR
184 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
185 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
186 --includedir=DIR C header files in DIR [PREFIX/include]
187 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
188 --infodir=DIR info documentation in DIR [PREFIX/info]
189 --mandir=DIR man documentation in DIR [PREFIX/man]
190 --srcdir=DIR find the sources in DIR [configure dir or ..]
191 --program-prefix=PREFIX prepend PREFIX to installed program names
192 --program-suffix=SUFFIX append SUFFIX to installed program names
193 --program-transform-name=PROGRAM
194 run sed PROGRAM on installed program names
198 --build=BUILD configure for building on BUILD [BUILD=HOST]
199 --host=HOST configure for HOST [guessed]
200 --target=TARGET configure for TARGET [TARGET=HOST]
201 Features and packages:
202 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
203 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
204 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
205 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
206 --x-includes=DIR X include files are in DIR
207 --x-libraries=DIR X library files are in DIR
209 if test -n "$ac_help"; then
210 echo "--enable and --with options recognized:$ac_help"
214 -host | --host | --hos | --ho)
216 -host=* | --host=* | --hos=* | --ho=*)
219 -includedir | --includedir | --includedi | --included | --include \
220 | --includ | --inclu | --incl | --inc)
221 ac_prev=includedir ;;
222 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
223 | --includ=* | --inclu=* | --incl=* | --inc=*)
224 includedir="$ac_optarg" ;;
226 -infodir | --infodir | --infodi | --infod | --info | --inf)
228 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
229 infodir="$ac_optarg" ;;
231 -libdir | --libdir | --libdi | --libd)
233 -libdir=* | --libdir=* | --libdi=* | --libd=*)
234 libdir="$ac_optarg" ;;
236 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
237 | --libexe | --libex | --libe)
238 ac_prev=libexecdir ;;
239 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
240 | --libexe=* | --libex=* | --libe=*)
241 libexecdir="$ac_optarg" ;;
243 -localstatedir | --localstatedir | --localstatedi | --localstated \
244 | --localstate | --localstat | --localsta | --localst \
245 | --locals | --local | --loca | --loc | --lo)
246 ac_prev=localstatedir ;;
247 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
248 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
249 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
250 localstatedir="$ac_optarg" ;;
252 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
254 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
255 mandir="$ac_optarg" ;;
258 # Obsolete; use --without-fp.
261 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
265 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
266 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
269 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
270 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
271 | --oldin | --oldi | --old | --ol | --o)
272 ac_prev=oldincludedir ;;
273 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
274 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
275 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
276 oldincludedir="$ac_optarg" ;;
278 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
280 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
281 prefix="$ac_optarg" ;;
283 -program-prefix | --program-prefix | --program-prefi | --program-pref \
284 | --program-pre | --program-pr | --program-p)
285 ac_prev=program_prefix ;;
286 -program-prefix=* | --program-prefix=* | --program-prefi=* \
287 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
288 program_prefix="$ac_optarg" ;;
290 -program-suffix | --program-suffix | --program-suffi | --program-suff \
291 | --program-suf | --program-su | --program-s)
292 ac_prev=program_suffix ;;
293 -program-suffix=* | --program-suffix=* | --program-suffi=* \
294 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
295 program_suffix="$ac_optarg" ;;
297 -program-transform-name | --program-transform-name \
298 | --program-transform-nam | --program-transform-na \
299 | --program-transform-n | --program-transform- \
300 | --program-transform | --program-transfor \
301 | --program-transfo | --program-transf \
302 | --program-trans | --program-tran \
303 | --progr-tra | --program-tr | --program-t)
304 ac_prev=program_transform_name ;;
305 -program-transform-name=* | --program-transform-name=* \
306 | --program-transform-nam=* | --program-transform-na=* \
307 | --program-transform-n=* | --program-transform-=* \
308 | --program-transform=* | --program-transfor=* \
309 | --program-transfo=* | --program-transf=* \
310 | --program-trans=* | --program-tran=* \
311 | --progr-tra=* | --program-tr=* | --program-t=*)
312 program_transform_name="$ac_optarg" ;;
314 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
315 | -silent | --silent | --silen | --sile | --sil)
318 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
320 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
322 sbindir="$ac_optarg" ;;
324 -sharedstatedir | --sharedstatedir | --sharedstatedi \
325 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
326 | --sharedst | --shareds | --shared | --share | --shar \
328 ac_prev=sharedstatedir ;;
329 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
330 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
331 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
333 sharedstatedir="$ac_optarg" ;;
335 -site | --site | --sit)
337 -site=* | --site=* | --sit=*)
340 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
342 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
343 srcdir="$ac_optarg" ;;
345 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
346 | --syscon | --sysco | --sysc | --sys | --sy)
347 ac_prev=sysconfdir ;;
348 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
349 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
350 sysconfdir="$ac_optarg" ;;
352 -target | --target | --targe | --targ | --tar | --ta | --t)
354 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
355 target="$ac_optarg" ;;
357 -v | -verbose | --verbose | --verbos | --verbo | --verb)
360 -version | --version | --versio | --versi | --vers)
361 echo "configure generated by autoconf version 2.13"
365 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
366 # Reject names that are not valid shell variable names.
367 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
368 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
370 ac_package=`echo $ac_package| sed 's/-/_/g'`
375 eval "with_${ac_package}='$ac_optarg'" ;;
377 -without-* | --without-*)
378 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
379 # Reject names that are not valid shell variable names.
380 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
381 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
383 ac_package=`echo $ac_package| sed 's/-/_/g'`
384 eval "with_${ac_package}=no" ;;
387 # Obsolete; use --with-x.
390 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
391 | --x-incl | --x-inc | --x-in | --x-i)
392 ac_prev=x_includes ;;
393 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
394 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
395 x_includes="$ac_optarg" ;;
397 -x-libraries | --x-libraries | --x-librarie | --x-librari \
398 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
399 ac_prev=x_libraries ;;
400 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
401 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
402 x_libraries="$ac_optarg" ;;
404 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
408 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
409 echo "configure: warning: $ac_option: invalid host type" 1>&2
411 if test "x$nonopt" != xNONE; then
412 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
420 if test -n "$ac_prev"; then
421 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
424 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
426 # File descriptor usage:
429 # 2 errors and warnings
430 # 3 some systems may open it to /dev/tty
431 # 4 used on the Kubota Titan
432 # 6 checking for... messages and results
433 # 5 compiler messages saved in config.log
434 if test "$silent" = yes; then
442 This file contains any messages produced by compilers while
443 running configure, to aid debugging if configure makes a mistake.
446 # Strip out --no-create and --no-recursion so they do not pile up.
447 # Also quote any args containing shell metacharacters.
452 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
453 | --no-cr | --no-c) ;;
454 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
455 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
456 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
457 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
458 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
463 # Only set these to C if already set. These must not be set unconditionally
464 # because not all systems understand e.g. LANG=C (notably SCO).
465 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
466 # Non-C LC_CTYPE values break the ctype check.
467 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
468 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
469 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
470 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
472 # confdefs.h avoids OS command line length limits that DEFS can exceed.
473 rm -rf conftest* confdefs.h
474 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
477 # A filename unique to this package, relative to the directory that
478 # configure is in, which we can look for to find out if srcdir is correct.
479 ac_unique_file=h/nmh.h
481 # Find the source files, if location was not specified.
482 if test -z "$srcdir"; then
483 ac_srcdir_defaulted=yes
484 # Try the directory containing this script, then its parent.
486 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
487 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
489 if test ! -r $srcdir/$ac_unique_file; then
493 ac_srcdir_defaulted=no
495 if test ! -r $srcdir/$ac_unique_file; then
496 if test "$ac_srcdir_defaulted" = yes; then
497 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
499 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
502 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
504 # Prefer explicitly selected file to automatically selected ones.
505 if test -z "$CONFIG_SITE"; then
506 if test "x$prefix" != xNONE; then
507 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
509 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
512 for ac_site_file in $CONFIG_SITE; do
513 if test -r "$ac_site_file"; then
514 echo "loading site script $ac_site_file"
519 if test -r "$cache_file"; then
520 echo "loading cache $cache_file"
523 echo "creating cache $cache_file"
528 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
529 ac_cpp='$CPP $CPPFLAGS'
530 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
531 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
532 cross_compiling=$ac_cv_prog_cc_cross
536 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
537 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
538 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
545 ac_n= ac_c='\c' ac_t=
552 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
553 if test -f $ac_dir/install-sh; then
555 ac_install_sh="$ac_aux_dir/install-sh -c"
557 elif test -f $ac_dir/install.sh; then
559 ac_install_sh="$ac_aux_dir/install.sh -c"
563 if test -z "$ac_aux_dir"; then
564 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
566 ac_config_guess=$ac_aux_dir/config.guess
567 ac_config_sub=$ac_aux_dir/config.sub
568 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
571 # Do some error checking and defaulting for the host and target type.
573 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
576 # 1. You are not allowed to specify --host, --target, and nonopt at the
578 # 2. Host defaults to nonopt.
579 # 3. If nonopt is not specified, then host defaults to the current host,
580 # as determined by config.guess.
581 # 4. Target and build default to nonopt.
582 # 5. If nonopt is not specified, then target and build default to host.
584 # The aliases save the names the user supplied, while $host etc.
585 # will get canonicalized.
586 case $host---$target---$nonopt in
587 NONE---*---* | *---NONE---* | *---*---NONE) ;;
588 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
592 # Make sure we can run config.sub.
593 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
594 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
597 echo $ac_n "checking host system type""... $ac_c" 1>&6
598 echo "configure:599: checking host system type" >&5
601 case "$host_alias" in
605 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
606 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
608 *) host_alias=$nonopt ;;
612 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
613 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
614 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
615 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
616 echo "$ac_t""$host" 1>&6
618 echo $ac_n "checking target system type""... $ac_c" 1>&6
619 echo "configure:620: checking target system type" >&5
622 case "$target_alias" in
625 NONE) target_alias=$host_alias ;;
626 *) target_alias=$nonopt ;;
630 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
631 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
632 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
633 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
634 echo "$ac_t""$target" 1>&6
636 echo $ac_n "checking build system type""... $ac_c" 1>&6
637 echo "configure:638: checking build system type" >&5
640 case "$build_alias" in
643 NONE) build_alias=$host_alias ;;
644 *) build_alias=$nonopt ;;
648 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
649 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
650 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
651 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
652 echo "$ac_t""$build" 1>&6
654 test "$host_alias" != "$target_alias" &&
655 test "$program_prefix$program_suffix$program_transform_name" = \
657 program_prefix=${target_alias}-
664 VERSION=`sed -e 's/nmh-//' ${srcdir}/VERSION`
665 echo "configuring for nmh-$VERSION"
668 # Check whether --enable-debug or --disable-debug was given.
669 if test "${enable_debug+set}" = set; then
670 enableval="$enable_debug"
674 if test x"$enable_nmh_debug" = x"yes"; then
678 # Check whether --enable-masquerade or --disable-masquerade was given.
679 if test "${enable_masquerade+set}" = set; then
680 enableval="$enable_masquerade"
681 if test x"$enable_masquerade" = x"yes"; then
682 masquerade="draft_from mmailid username_extension"
684 masquerade="$enable_masquerade"
689 # Check whether --enable-mhe or --disable-mhe was given.
690 if test "${enable_mhe+set}" = set; then
691 enableval="$enable_mhe"
696 if test x"$enable_mhe" != x"no" -a x"$enable_nmh_mhe" != x"no"; then
697 cat >> confdefs.h <<\EOF
702 # Check whether --enable-apop or --disable-apop was given.
703 if test "${enable_apop+set}" = set; then
704 enableval="$enable_apop"
708 if test x"$enable_apop" = x"yes"; then
709 cat >> confdefs.h <<\EOF
716 # Check whether --with-hesiod or --without-hesiod was given.
717 if test "${with_hesiod+set}" = set; then
718 withval="$with_hesiod"
722 if test x"$with_hesiod" != x -a x"$with_hesiod" != x"no"; then
723 cat >> confdefs.h <<\EOF
728 # Check whether --with-krb4 or --without-krb4 was given.
729 if test "${with_krb4+set}" = set; then
734 if test x"$with_krb4" != x -a x"$with_krb4" != x"no"; then
736 cat >> confdefs.h <<\EOF
739 cat >> confdefs.h <<\EOF
740 #define KPOP_PRINCIPAL "pop"
744 # Check whether --enable-pop or --disable-pop was given.
745 if test "${enable_pop+set}" = set; then
746 enableval="$enable_pop"
750 if test x"$enable_nmh_pop" = x"yes"; then
753 if test x"$enable_pop" = x"yes"; then
754 cat >> confdefs.h <<\EOF
758 POPSED='/^%nmhbeginpop%/d;/^%nmhendpop%/d'
760 POPSED='/^%nmhbeginpop%/,/^%nmhendpop%/d'
763 # Check whether --with-editor or --without-editor was given.
764 if test "${with_editor+set}" = set; then
765 withval="$with_editor"
770 if test -n "$with_editor"; then
771 editorpath="$with_editor"
774 # Check whether --with-mts or --without-mts was given.
775 if test "${with_mts+set}" = set; then
781 if test x"$with_mts" = x"smtp"; then
783 MTSLIB="mts/smtp/libsmtp.a"
784 cat >> confdefs.h <<\EOF
787 elif test x"$with_mts" = x"sendmail"; then
789 MTSLIB="mts/sendmail/libsend.a"
790 cat >> confdefs.h <<\EOF
795 MTSLIB="mts/smtp/libsmtp.a"
796 cat >> confdefs.h <<\EOF
802 # Check whether --with-pager or --without-pager was given.
803 if test "${with_pager+set}" = set; then
804 withval="$with_pager"
809 if test -n "$with_pager"; then
810 pagerpath="$with_pager"
813 # Check whether --with-smtpservers or --without-smtpservers was given.
814 if test "${with_smtpservers+set}" = set; then
815 withval="$with_smtpservers"
819 if test -n "$with_smtpservers"; then
820 smtpservers="$with_smtpservers"
822 smtpservers="localhost"
827 test -z "$CFLAGS" && CFLAGS= auto_cflags=1
828 if test x"$enable_debug" = x"yes"; then
829 test -z "$LDFLAGS" && LDFLAGS=-g
832 # Extract the first word of "gcc", so it can be a program name with args.
833 set dummy gcc; ac_word=$2
834 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
835 echo "configure:836: checking for $ac_word" >&5
836 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
837 echo $ac_n "(cached) $ac_c" 1>&6
839 if test -n "$CC"; then
840 ac_cv_prog_CC="$CC" # Let the user override the test.
842 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
844 for ac_dir in $ac_dummy; do
845 test -z "$ac_dir" && ac_dir=.
846 if test -f $ac_dir/$ac_word; then
855 if test -n "$CC"; then
856 echo "$ac_t""$CC" 1>&6
858 echo "$ac_t""no" 1>&6
861 if test -z "$CC"; then
862 # Extract the first word of "cc", so it can be a program name with args.
863 set dummy cc; ac_word=$2
864 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
865 echo "configure:866: checking for $ac_word" >&5
866 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
867 echo $ac_n "(cached) $ac_c" 1>&6
869 if test -n "$CC"; then
870 ac_cv_prog_CC="$CC" # Let the user override the test.
872 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
875 for ac_dir in $ac_dummy; do
876 test -z "$ac_dir" && ac_dir=.
877 if test -f $ac_dir/$ac_word; then
878 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
887 if test $ac_prog_rejected = yes; then
888 # We found a bogon in the path, so make sure we never use it.
889 set dummy $ac_cv_prog_CC
891 if test $# -gt 0; then
892 # We chose a different compiler from the bogus one.
893 # However, it has the same basename, so the bogon will be chosen
894 # first if we set CC to just the basename; use the full file name.
896 set dummy "$ac_dir/$ac_word" "$@"
904 if test -n "$CC"; then
905 echo "$ac_t""$CC" 1>&6
907 echo "$ac_t""no" 1>&6
910 if test -z "$CC"; then
913 # Extract the first word of "cl", so it can be a program name with args.
914 set dummy cl; ac_word=$2
915 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
916 echo "configure:917: checking for $ac_word" >&5
917 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
918 echo $ac_n "(cached) $ac_c" 1>&6
920 if test -n "$CC"; then
921 ac_cv_prog_CC="$CC" # Let the user override the test.
923 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
925 for ac_dir in $ac_dummy; do
926 test -z "$ac_dir" && ac_dir=.
927 if test -f $ac_dir/$ac_word; then
936 if test -n "$CC"; then
937 echo "$ac_t""$CC" 1>&6
939 echo "$ac_t""no" 1>&6
944 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
947 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
948 echo "configure:949: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
951 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
952 ac_cpp='$CPP $CPPFLAGS'
953 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
954 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
955 cross_compiling=$ac_cv_prog_cc_cross
957 cat > conftest.$ac_ext << EOF
959 #line 960 "configure"
960 #include "confdefs.h"
964 if { (eval echo configure:965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
965 ac_cv_prog_cc_works=yes
966 # If we can't run a trivial program, we are probably using a cross compiler.
967 if (./conftest; exit) 2>/dev/null; then
968 ac_cv_prog_cc_cross=no
970 ac_cv_prog_cc_cross=yes
973 echo "configure: failed program was:" >&5
974 cat conftest.$ac_ext >&5
975 ac_cv_prog_cc_works=no
979 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
980 ac_cpp='$CPP $CPPFLAGS'
981 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
982 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
983 cross_compiling=$ac_cv_prog_cc_cross
985 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
986 if test $ac_cv_prog_cc_works = no; then
987 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
989 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
990 echo "configure:991: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
991 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
992 cross_compiling=$ac_cv_prog_cc_cross
994 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
995 echo "configure:996: checking whether we are using GNU C" >&5
996 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
997 echo $ac_n "(cached) $ac_c" 1>&6
999 cat > conftest.c <<EOF
1004 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1005: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1011 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1013 if test $ac_cv_prog_gcc = yes; then
1019 ac_test_CFLAGS="${CFLAGS+set}"
1020 ac_save_CFLAGS="$CFLAGS"
1022 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1023 echo "configure:1024: checking whether ${CC-cc} accepts -g" >&5
1024 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1025 echo $ac_n "(cached) $ac_c" 1>&6
1027 echo 'void f(){}' > conftest.c
1028 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1037 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1038 if test "$ac_test_CFLAGS" = set; then
1039 CFLAGS="$ac_save_CFLAGS"
1040 elif test $ac_cv_prog_cc_g = yes; then
1041 if test "$GCC" = yes; then
1047 if test "$GCC" = yes; then
1055 if test -n "$auto_cflags"; then
1056 if test x"$enable_debug" = x"yes"; then
1057 if test -n "$GCC"; then
1058 test -z "$CFLAGS" && CFLAGS="-Wall -g" || CFLAGS="$CFLAGS -Wall -g"
1060 test -z "$CFLAGS" && CFLAGS=-g || CFLAGS="$CFLAGS -g"
1063 test -z "$LDFLAGS" && LDFLAGS=-s
1064 if test -n "$GCC"; then
1065 test -z "$CFLAGS" && CFLAGS=-O2 || CFLAGS="$CFLAGS -O2"
1067 test -z "$CFLAGS" && CFLAGS=-O || CFLAGS="$CFLAGS -O"
1072 echo $ac_n "checking for working const""... $ac_c" 1>&6
1073 echo "configure:1074: checking for working const" >&5
1074 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1075 echo $ac_n "(cached) $ac_c" 1>&6
1077 cat > conftest.$ac_ext <<EOF
1078 #line 1079 "configure"
1079 #include "confdefs.h"
1083 /* Ultrix mips cc rejects this. */
1084 typedef int charset[2]; const charset x;
1085 /* SunOS 4.1.1 cc rejects this. */
1086 char const *const *ccp;
1088 /* NEC SVR4.0.2 mips cc rejects this. */
1089 struct point {int x, y;};
1090 static struct point const zero = {0,0};
1091 /* AIX XL C 1.02.0.0 rejects this.
1092 It does not let you subtract one const X* pointer from another in an arm
1093 of an if-expression whose if-part is not a constant expression */
1094 const char *g = "string";
1095 ccp = &g + (g ? g-g : 0);
1096 /* HPUX 7.0 cc rejects these. */
1099 ccp = (char const *const *) p;
1100 { /* SCO 3.2v4 cc rejects this. */
1102 char const *s = 0 ? (char *) 0 : (char const *) 0;
1106 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1108 const int *foo = &x[0];
1111 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1112 typedef const int *iptr;
1116 { /* AIX XL C 1.02.0.0 rejects this saying
1117 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1118 struct s { int j; const int *ap[3]; };
1119 struct s *b; b->j = 5;
1121 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1127 if { (eval echo configure:1128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1131 echo "configure: failed program was:" >&5
1132 cat conftest.$ac_ext >&5
1139 echo "$ac_t""$ac_cv_c_const" 1>&6
1140 if test $ac_cv_c_const = no; then
1141 cat >> confdefs.h <<\EOF
1147 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1148 echo "configure:1149: checking whether ${MAKE-make} sets \${MAKE}" >&5
1149 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1150 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1151 echo $ac_n "(cached) $ac_c" 1>&6
1153 cat > conftestmake <<\EOF
1155 @echo 'ac_maketemp="${MAKE}"'
1157 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1158 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1159 if test -n "$ac_maketemp"; then
1160 eval ac_cv_prog_make_${ac_make}_set=yes
1162 eval ac_cv_prog_make_${ac_make}_set=no
1166 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1167 echo "$ac_t""yes" 1>&6
1170 echo "$ac_t""no" 1>&6
1171 SET_MAKE="MAKE=${MAKE-make}"
1173 # Find a good install program. We prefer a C program (faster),
1174 # so one script is as good as another. But avoid the broken or
1175 # incompatible versions:
1176 # SysV /etc/install, /usr/sbin/install
1177 # SunOS /usr/etc/install
1178 # IRIX /sbin/install
1180 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1181 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1182 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1183 # ./install, which can be erroneously created by make from ./install.sh.
1184 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1185 echo "configure:1186: checking for a BSD compatible install" >&5
1186 if test -z "$INSTALL"; then
1187 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1188 echo $ac_n "(cached) $ac_c" 1>&6
1190 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1191 for ac_dir in $PATH; do
1192 # Account for people who put trailing slashes in PATH elements.
1194 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1196 # OSF1 and SCO ODT 3.0 have their own names for install.
1197 # Don't use installbsd from OSF since it installs stuff as root
1199 for ac_prog in ginstall scoinst install; do
1200 if test -f $ac_dir/$ac_prog; then
1201 if test $ac_prog = install &&
1202 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1203 # AIX install. It has an incompatible calling convention.
1206 ac_cv_path_install="$ac_dir/$ac_prog -c"
1217 if test "${ac_cv_path_install+set}" = set; then
1218 INSTALL="$ac_cv_path_install"
1220 # As a last resort, use the slow shell script. We don't cache a
1221 # path for INSTALL within a source directory, because that will
1222 # break other packages using the cache if that directory is
1223 # removed, or if the path is relative.
1224 INSTALL="$ac_install_sh"
1227 echo "$ac_t""$INSTALL" 1>&6
1229 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1230 # It thinks the first close brace ends the variable substitution.
1231 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1233 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1235 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1236 # Extract the first word of "ranlib", so it can be a program name with args.
1237 set dummy ranlib; ac_word=$2
1238 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1239 echo "configure:1240: checking for $ac_word" >&5
1240 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1241 echo $ac_n "(cached) $ac_c" 1>&6
1243 if test -n "$RANLIB"; then
1244 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1246 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1248 for ac_dir in $ac_dummy; do
1249 test -z "$ac_dir" && ac_dir=.
1250 if test -f $ac_dir/$ac_word; then
1251 ac_cv_prog_RANLIB="ranlib"
1256 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1259 RANLIB="$ac_cv_prog_RANLIB"
1260 if test -n "$RANLIB"; then
1261 echo "$ac_t""$RANLIB" 1>&6
1263 echo "$ac_t""no" 1>&6
1265 for ac_prog in gawk mawk nawk awk
1267 # Extract the first word of "$ac_prog", so it can be a program name with args.
1268 set dummy $ac_prog; ac_word=$2
1269 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1270 echo "configure:1271: checking for $ac_word" >&5
1271 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1272 echo $ac_n "(cached) $ac_c" 1>&6
1274 if test -n "$AWK"; then
1275 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1277 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1279 for ac_dir in $ac_dummy; do
1280 test -z "$ac_dir" && ac_dir=.
1281 if test -f $ac_dir/$ac_word; then
1282 ac_cv_prog_AWK="$ac_prog"
1289 AWK="$ac_cv_prog_AWK"
1290 if test -n "$AWK"; then
1291 echo "$ac_t""$AWK" 1>&6
1293 echo "$ac_t""no" 1>&6
1296 test -n "$AWK" && break
1298 # Extract the first word of "flex", so it can be a program name with args.
1299 set dummy flex; ac_word=$2
1300 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1301 echo "configure:1302: checking for $ac_word" >&5
1302 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1303 echo $ac_n "(cached) $ac_c" 1>&6
1305 if test -n "$LEX"; then
1306 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1308 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1310 for ac_dir in $ac_dummy; do
1311 test -z "$ac_dir" && ac_dir=.
1312 if test -f $ac_dir/$ac_word; then
1313 ac_cv_prog_LEX="flex"
1318 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1321 LEX="$ac_cv_prog_LEX"
1322 if test -n "$LEX"; then
1323 echo "$ac_t""$LEX" 1>&6
1325 echo "$ac_t""no" 1>&6
1328 if test -z "$LEXLIB"
1334 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1335 echo "configure:1336: checking for yywrap in -l$ac_lib" >&5
1336 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1337 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1338 echo $ac_n "(cached) $ac_c" 1>&6
1340 ac_save_LIBS="$LIBS"
1341 LIBS="-l$ac_lib $LIBS"
1342 cat > conftest.$ac_ext <<EOF
1343 #line 1344 "configure"
1344 #include "confdefs.h"
1345 /* Override any gcc2 internal prototype to avoid an error. */
1346 /* We use char because int might match the return type of a gcc2
1347 builtin and then its argument prototype would still apply. */
1354 if { (eval echo configure:1355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1356 eval "ac_cv_lib_$ac_lib_var=yes"
1358 echo "configure: failed program was:" >&5
1359 cat conftest.$ac_ext >&5
1361 eval "ac_cv_lib_$ac_lib_var=no"
1364 LIBS="$ac_save_LIBS"
1367 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1368 echo "$ac_t""yes" 1>&6
1371 echo "$ac_t""no" 1>&6
1376 pathtmp=/usr/bin:/bin:/usr/local/bin:/usr/xpg4/bin:/usr/ucb
1377 # Extract the first word of "cut", so it can be a program name with args.
1378 set dummy cut; ac_word=$2
1379 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1380 echo "configure:1381: checking for $ac_word" >&5
1381 if eval "test \"`echo '$''{'ac_cv_path_cutpath'+set}'`\" = set"; then
1382 echo $ac_n "(cached) $ac_c" 1>&6
1386 ac_cv_path_cutpath="$cutpath" # Let the user override the test with a path.
1389 ac_cv_path_cutpath="$cutpath" # Let the user override the test with a dos path.
1392 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1394 for ac_dir in $ac_dummy; do
1395 test -z "$ac_dir" && ac_dir=.
1396 if test -f $ac_dir/$ac_word; then
1397 ac_cv_path_cutpath="$ac_dir/$ac_word"
1402 test -z "$ac_cv_path_cutpath" && ac_cv_path_cutpath="no"
1406 cutpath="$ac_cv_path_cutpath"
1407 if test -n "$cutpath"; then
1408 echo "$ac_t""$cutpath" 1>&6
1410 echo "$ac_t""no" 1>&6
1415 # Extract the first word of "libtool", so it can be a program name with args.
1416 set dummy libtool; ac_word=$2
1417 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1418 echo "configure:1419: checking for $ac_word" >&5
1419 if eval "test \"`echo '$''{'ac_cv_prog_LIBTOOL'+set}'`\" = set"; then
1420 echo $ac_n "(cached) $ac_c" 1>&6
1422 if test -n "$LIBTOOL"; then
1423 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
1425 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1427 for ac_dir in $ac_dummy; do
1428 test -z "$ac_dir" && ac_dir=.
1429 if test -f $ac_dir/$ac_word; then
1430 ac_cv_prog_LIBTOOL="libtool"
1437 LIBTOOL="$ac_cv_prog_LIBTOOL"
1438 if test -n "$LIBTOOL"; then
1439 echo "$ac_t""$LIBTOOL" 1>&6
1441 echo "$ac_t""no" 1>&6
1445 tmptest=`$LIBTOOL --version 2>&1 | grep GNU`
1446 if test x"$tmptest" != x ; then
1451 # Extract the first word of "lorder", so it can be a program name with args.
1452 set dummy lorder; ac_word=$2
1453 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1454 echo "configure:1455: checking for $ac_word" >&5
1455 if eval "test \"`echo '$''{'ac_cv_prog_LORDER'+set}'`\" = set"; then
1456 echo $ac_n "(cached) $ac_c" 1>&6
1458 if test -n "$LORDER"; then
1459 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
1461 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1463 for ac_dir in $ac_dummy; do
1464 test -z "$ac_dir" && ac_dir=.
1465 if test -f $ac_dir/$ac_word; then
1466 ac_cv_prog_LORDER="lorder"
1471 test -z "$ac_cv_prog_LORDER" && ac_cv_prog_LORDER="no"
1474 LORDER="$ac_cv_prog_LORDER"
1475 if test -n "$LORDER"; then
1476 echo "$ac_t""$LORDER" 1>&6
1478 echo "$ac_t""no" 1>&6
1480 # Extract the first word of "tsort", so it can be a program name with args.
1481 set dummy tsort; ac_word=$2
1482 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1483 echo "configure:1484: checking for $ac_word" >&5
1484 if eval "test \"`echo '$''{'ac_cv_prog_TSORT'+set}'`\" = set"; then
1485 echo $ac_n "(cached) $ac_c" 1>&6
1487 if test -n "$TSORT"; then
1488 ac_cv_prog_TSORT="$TSORT" # Let the user override the test.
1490 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1492 for ac_dir in $ac_dummy; do
1493 test -z "$ac_dir" && ac_dir=.
1494 if test -f $ac_dir/$ac_word; then
1495 ac_cv_prog_TSORT="tsort"
1500 test -z "$ac_cv_prog_TSORT" && ac_cv_prog_TSORT="no"
1503 TSORT="$ac_cv_prog_TSORT"
1504 if test -n "$TSORT"; then
1505 echo "$ac_t""$TSORT" 1>&6
1507 echo "$ac_t""no" 1>&6
1510 if test x$ac_cv_prog_LORDER != xlorder -o x$ac_cv_prog_TSORT != xtsort; then
1515 pathtmp=/usr/bin:/bin:/usr/local/bin:/usr/xpg4/bin:/usr/ucb
1516 # Extract the first word of "ls", so it can be a program name with args.
1517 set dummy ls; ac_word=$2
1518 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1519 echo "configure:1520: checking for $ac_word" >&5
1520 if eval "test \"`echo '$''{'ac_cv_path_lspath'+set}'`\" = set"; then
1521 echo $ac_n "(cached) $ac_c" 1>&6
1525 ac_cv_path_lspath="$lspath" # Let the user override the test with a path.
1528 ac_cv_path_lspath="$lspath" # Let the user override the test with a dos path.
1531 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1533 for ac_dir in $ac_dummy; do
1534 test -z "$ac_dir" && ac_dir=.
1535 if test -f $ac_dir/$ac_word; then
1536 ac_cv_path_lspath="$ac_dir/$ac_word"
1541 test -z "$ac_cv_path_lspath" && ac_cv_path_lspath="no"
1545 lspath="$ac_cv_path_lspath"
1546 if test -n "$lspath"; then
1547 echo "$ac_t""$lspath" 1>&6
1549 echo "$ac_t""no" 1>&6
1553 if test "$lspath" != "no"; then
1554 echo $ac_n "checking how to get ls to show us the group ownership of a file""... $ac_c" 1>&6
1555 echo "configure:1556: checking how to get ls to show us the group ownership of a file" >&5
1556 if eval "test \"`echo '$''{'nmh_cv_ls_grpopt'+set}'`\" = set"; then
1557 echo $ac_n "(cached) $ac_c" 1>&6
1559 if test x"`$lspath -dl / | $AWK '{print $9}'`" = x"/"; then
1560 nmh_cv_ls_grpopt="-l"
1562 nmh_cv_ls_grpopt="-lg"
1566 echo "$ac_t""$nmh_cv_ls_grpopt" 1>&6
1569 pathtmp=/usr/bin:/bin:/usr/ucb:/usr/local/bin
1570 # Extract the first word of "more", so it can be a program name with args.
1571 set dummy more; ac_word=$2
1572 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1573 echo "configure:1574: checking for $ac_word" >&5
1574 if eval "test \"`echo '$''{'ac_cv_path_morepath'+set}'`\" = set"; then
1575 echo $ac_n "(cached) $ac_c" 1>&6
1579 ac_cv_path_morepath="$morepath" # Let the user override the test with a path.
1582 ac_cv_path_morepath="$morepath" # Let the user override the test with a dos path.
1585 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1587 for ac_dir in $ac_dummy; do
1588 test -z "$ac_dir" && ac_dir=.
1589 if test -f $ac_dir/$ac_word; then
1590 ac_cv_path_morepath="$ac_dir/$ac_word"
1595 test -z "$ac_cv_path_morepath" && ac_cv_path_morepath="no"
1599 morepath="$ac_cv_path_morepath"
1600 if test -n "$morepath"; then
1601 echo "$ac_t""$morepath" 1>&6
1603 echo "$ac_t""no" 1>&6
1607 if test -z "$pagerpath"; then
1608 pagerpath="$morepath"
1611 pathtmp=/usr/lib:/usr/sbin:/usr/etc:/usr/ucblib:/usr/bin:/bin
1612 # Extract the first word of "sendmail", so it can be a program name with args.
1613 set dummy sendmail; ac_word=$2
1614 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1615 echo "configure:1616: checking for $ac_word" >&5
1616 if eval "test \"`echo '$''{'ac_cv_path_sendmailpath'+set}'`\" = set"; then
1617 echo $ac_n "(cached) $ac_c" 1>&6
1619 case "$sendmailpath" in
1621 ac_cv_path_sendmailpath="$sendmailpath" # Let the user override the test with a path.
1624 ac_cv_path_sendmailpath="$sendmailpath" # Let the user override the test with a dos path.
1627 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1629 for ac_dir in $ac_dummy; do
1630 test -z "$ac_dir" && ac_dir=.
1631 if test -f $ac_dir/$ac_word; then
1632 ac_cv_path_sendmailpath="$ac_dir/$ac_word"
1637 test -z "$ac_cv_path_sendmailpath" && ac_cv_path_sendmailpath="no"
1641 sendmailpath="$ac_cv_path_sendmailpath"
1642 if test -n "$sendmailpath"; then
1643 echo "$ac_t""$sendmailpath" 1>&6
1645 echo "$ac_t""no" 1>&6
1649 pathtmp=/usr/bin:/bin:/usr/ucb:/usr/local/bin
1650 # Extract the first word of "vi", so it can be a program name with args.
1651 set dummy vi; ac_word=$2
1652 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1653 echo "configure:1654: checking for $ac_word" >&5
1654 if eval "test \"`echo '$''{'ac_cv_path_vipath'+set}'`\" = set"; then
1655 echo $ac_n "(cached) $ac_c" 1>&6
1659 ac_cv_path_vipath="$vipath" # Let the user override the test with a path.
1662 ac_cv_path_vipath="$vipath" # Let the user override the test with a dos path.
1665 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1667 for ac_dir in $ac_dummy; do
1668 test -z "$ac_dir" && ac_dir=.
1669 if test -f $ac_dir/$ac_word; then
1670 ac_cv_path_vipath="$ac_dir/$ac_word"
1675 test -z "$ac_cv_path_vipath" && ac_cv_path_vipath="no"
1679 vipath="$ac_cv_path_vipath"
1680 if test -n "$vipath"; then
1681 echo "$ac_t""$vipath" 1>&6
1683 echo "$ac_t""no" 1>&6
1687 if test -z "$editorpath"; then
1688 editorpath="$vipath"
1691 echo $ac_n "checking for broken vi""... $ac_c" 1>&6
1692 echo "configure:1693: checking for broken vi" >&5
1693 if eval "test \"`echo '$''{'nmh_cv_attvibug'+set}'`\" = set"; then
1694 echo $ac_n "(cached) $ac_c" 1>&6
1696 if echo 'r /nonexist-file
1697 q' | ex > /dev/null 2>&1
1705 echo "$ac_t""$nmh_cv_attvibug" 1>&6
1707 if test "$nmh_cv_attvibug" = yes; then
1708 cat >> confdefs.h <<\EOF
1713 echo $ac_n "checking where mail spool is located""... $ac_c" 1>&6
1714 echo "configure:1715: checking where mail spool is located" >&5
1715 if eval "test \"`echo '$''{'nmh_cv_mailspool'+set}'`\" = set"; then
1716 echo $ac_n "(cached) $ac_c" 1>&6
1718 for mailspool in /var/mail /var/spool/mail /usr/spool/mail /dev/null; do
1719 test -d $mailspool && break
1721 nmh_cv_mailspool=$mailspool
1725 echo "$ac_t""$nmh_cv_mailspool" 1>&6
1726 mailspool=$nmh_cv_mailspool
1728 if test "$lspath" != "no" -a "$cutpath" != "no"; then
1729 echo $ac_n "checking whether the mail spool is world-writable""... $ac_c" 1>&6
1730 echo "configure:1731: checking whether the mail spool is world-writable" >&5
1731 if eval "test \"`echo '$''{'nmh_cv_mailspool_world_writable'+set}'`\" = set"; then
1732 echo $ac_n "(cached) $ac_c" 1>&6
1734 if test "`$lspath -dlL $mailspool | $cutpath -c9`" = "-"; then
1735 nmh_cv_mailspool_world_writable=no
1737 nmh_cv_mailspool_world_writable=yes
1741 echo "$ac_t""$nmh_cv_mailspool_world_writable" 1>&6
1744 if test x"$nmh_cv_mailspool_world_writable" = x"no"; then
1745 cat >> confdefs.h <<\EOF
1751 echo $ac_n "checking what group owns the mail spool""... $ac_c" 1>&6
1752 echo "configure:1753: checking what group owns the mail spool" >&5
1753 if eval "test \"`echo '$''{'nmh_cv_ls_mail_grp'+set}'`\" = set"; then
1754 echo $ac_n "(cached) $ac_c" 1>&6
1756 nmh_cv_ls_mail_grp=`$lspath -dL $nmh_cv_ls_grpopt $mailspool|$AWK '{print $4}'`
1760 echo "$ac_t""$nmh_cv_ls_mail_grp" 1>&6
1761 MAIL_SPOOL_GRP=$nmh_cv_ls_mail_grp
1764 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1766 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1767 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1768 echo "configure:1769: checking for $ac_hdr that defines DIR" >&5
1769 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1770 echo $ac_n "(cached) $ac_c" 1>&6
1772 cat > conftest.$ac_ext <<EOF
1773 #line 1774 "configure"
1774 #include "confdefs.h"
1775 #include <sys/types.h>
1781 if { (eval echo configure:1782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1783 eval "ac_cv_header_dirent_$ac_safe=yes"
1785 echo "configure: failed program was:" >&5
1786 cat conftest.$ac_ext >&5
1788 eval "ac_cv_header_dirent_$ac_safe=no"
1792 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1793 echo "$ac_t""yes" 1>&6
1794 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1795 cat >> confdefs.h <<EOF
1796 #define $ac_tr_hdr 1
1798 ac_header_dirent=$ac_hdr; break
1800 echo "$ac_t""no" 1>&6
1803 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1804 if test $ac_header_dirent = dirent.h; then
1805 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1806 echo "configure:1807: checking for opendir in -ldir" >&5
1807 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1808 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1809 echo $ac_n "(cached) $ac_c" 1>&6
1811 ac_save_LIBS="$LIBS"
1813 cat > conftest.$ac_ext <<EOF
1814 #line 1815 "configure"
1815 #include "confdefs.h"
1816 /* Override any gcc2 internal prototype to avoid an error. */
1817 /* We use char because int might match the return type of a gcc2
1818 builtin and then its argument prototype would still apply. */
1825 if { (eval echo configure:1826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1827 eval "ac_cv_lib_$ac_lib_var=yes"
1829 echo "configure: failed program was:" >&5
1830 cat conftest.$ac_ext >&5
1832 eval "ac_cv_lib_$ac_lib_var=no"
1835 LIBS="$ac_save_LIBS"
1838 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1839 echo "$ac_t""yes" 1>&6
1842 echo "$ac_t""no" 1>&6
1846 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1847 echo "configure:1848: checking for opendir in -lx" >&5
1848 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1849 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1850 echo $ac_n "(cached) $ac_c" 1>&6
1852 ac_save_LIBS="$LIBS"
1854 cat > conftest.$ac_ext <<EOF
1855 #line 1856 "configure"
1856 #include "confdefs.h"
1857 /* Override any gcc2 internal prototype to avoid an error. */
1858 /* We use char because int might match the return type of a gcc2
1859 builtin and then its argument prototype would still apply. */
1866 if { (eval echo configure:1867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1868 eval "ac_cv_lib_$ac_lib_var=yes"
1870 echo "configure: failed program was:" >&5
1871 cat conftest.$ac_ext >&5
1873 eval "ac_cv_lib_$ac_lib_var=no"
1876 LIBS="$ac_save_LIBS"
1879 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1880 echo "$ac_t""yes" 1>&6
1883 echo "$ac_t""no" 1>&6
1888 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1889 echo "configure:1890: checking how to run the C preprocessor" >&5
1890 # On Suns, sometimes $CPP names a directory.
1891 if test -n "$CPP" && test -d "$CPP"; then
1894 if test -z "$CPP"; then
1895 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1896 echo $ac_n "(cached) $ac_c" 1>&6
1898 # This must be in double quotes, not single quotes, because CPP may get
1899 # substituted into the Makefile and "${CC-cc}" will confuse make.
1901 # On the NeXT, cc -E runs the code through the compiler's parser,
1902 # not just through cpp.
1903 cat > conftest.$ac_ext <<EOF
1904 #line 1905 "configure"
1905 #include "confdefs.h"
1909 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1910 { (eval echo configure:1911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1911 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1912 if test -z "$ac_err"; then
1916 echo "configure: failed program was:" >&5
1917 cat conftest.$ac_ext >&5
1919 CPP="${CC-cc} -E -traditional-cpp"
1920 cat > conftest.$ac_ext <<EOF
1921 #line 1922 "configure"
1922 #include "confdefs.h"
1926 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1927 { (eval echo configure:1928: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1928 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1929 if test -z "$ac_err"; then
1933 echo "configure: failed program was:" >&5
1934 cat conftest.$ac_ext >&5
1936 CPP="${CC-cc} -nologo -E"
1937 cat > conftest.$ac_ext <<EOF
1938 #line 1939 "configure"
1939 #include "confdefs.h"
1943 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1944 { (eval echo configure:1945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1945 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1946 if test -z "$ac_err"; then
1950 echo "configure: failed program was:" >&5
1951 cat conftest.$ac_ext >&5
1960 ac_cv_prog_CPP="$CPP"
1962 CPP="$ac_cv_prog_CPP"
1964 ac_cv_prog_CPP="$CPP"
1966 echo "$ac_t""$CPP" 1>&6
1968 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1969 echo "configure:1970: checking for ANSI C header files" >&5
1970 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1971 echo $ac_n "(cached) $ac_c" 1>&6
1973 cat > conftest.$ac_ext <<EOF
1974 #line 1975 "configure"
1975 #include "confdefs.h"
1981 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1982 { (eval echo configure:1983: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1983 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1984 if test -z "$ac_err"; then
1986 ac_cv_header_stdc=yes
1989 echo "configure: failed program was:" >&5
1990 cat conftest.$ac_ext >&5
1992 ac_cv_header_stdc=no
1996 if test $ac_cv_header_stdc = yes; then
1997 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1998 cat > conftest.$ac_ext <<EOF
1999 #line 2000 "configure"
2000 #include "confdefs.h"
2003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2004 egrep "memchr" >/dev/null 2>&1; then
2008 ac_cv_header_stdc=no
2014 if test $ac_cv_header_stdc = yes; then
2015 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2016 cat > conftest.$ac_ext <<EOF
2017 #line 2018 "configure"
2018 #include "confdefs.h"
2021 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2022 egrep "free" >/dev/null 2>&1; then
2026 ac_cv_header_stdc=no
2032 if test $ac_cv_header_stdc = yes; then
2033 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2034 if test "$cross_compiling" = yes; then
2037 cat > conftest.$ac_ext <<EOF
2038 #line 2039 "configure"
2039 #include "confdefs.h"
2041 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2042 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2043 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2044 int main () { int i; for (i = 0; i < 256; i++)
2045 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2049 if { (eval echo configure:2050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2053 echo "configure: failed program was:" >&5
2054 cat conftest.$ac_ext >&5
2056 ac_cv_header_stdc=no
2064 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2065 if test $ac_cv_header_stdc = yes; then
2066 cat >> confdefs.h <<\EOF
2067 #define STDC_HEADERS 1
2072 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2073 echo "configure:2074: checking whether time.h and sys/time.h may both be included" >&5
2074 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2075 echo $ac_n "(cached) $ac_c" 1>&6
2077 cat > conftest.$ac_ext <<EOF
2078 #line 2079 "configure"
2079 #include "confdefs.h"
2080 #include <sys/types.h>
2081 #include <sys/time.h>
2087 if { (eval echo configure:2088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2089 ac_cv_header_time=yes
2091 echo "configure: failed program was:" >&5
2092 cat conftest.$ac_ext >&5
2094 ac_cv_header_time=no
2099 echo "$ac_t""$ac_cv_header_time" 1>&6
2100 if test $ac_cv_header_time = yes; then
2101 cat >> confdefs.h <<\EOF
2102 #define TIME_WITH_SYS_TIME 1
2107 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2108 echo "configure:2109: checking for sys/wait.h that is POSIX.1 compatible" >&5
2109 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2110 echo $ac_n "(cached) $ac_c" 1>&6
2112 cat > conftest.$ac_ext <<EOF
2113 #line 2114 "configure"
2114 #include "confdefs.h"
2115 #include <sys/types.h>
2116 #include <sys/wait.h>
2118 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2121 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2126 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2129 if { (eval echo configure:2130: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2131 ac_cv_header_sys_wait_h=yes
2133 echo "configure: failed program was:" >&5
2134 cat conftest.$ac_ext >&5
2136 ac_cv_header_sys_wait_h=no
2141 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2142 if test $ac_cv_header_sys_wait_h = yes; then
2143 cat >> confdefs.h <<\EOF
2144 #define HAVE_SYS_WAIT_H 1
2149 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
2150 echo "configure:2151: checking whether stat file-mode macros are broken" >&5
2151 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
2152 echo $ac_n "(cached) $ac_c" 1>&6
2154 cat > conftest.$ac_ext <<EOF
2155 #line 2156 "configure"
2156 #include "confdefs.h"
2157 #include <sys/types.h>
2158 #include <sys/stat.h>
2160 #if defined(S_ISBLK) && defined(S_IFDIR)
2161 # if S_ISBLK (S_IFDIR)
2166 #if defined(S_ISBLK) && defined(S_IFCHR)
2167 # if S_ISBLK (S_IFCHR)
2172 #if defined(S_ISLNK) && defined(S_IFREG)
2173 # if S_ISLNK (S_IFREG)
2178 #if defined(S_ISSOCK) && defined(S_IFREG)
2179 # if S_ISSOCK (S_IFREG)
2185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2186 egrep "You lose" >/dev/null 2>&1; then
2188 ac_cv_header_stat_broken=yes
2191 ac_cv_header_stat_broken=no
2197 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
2198 if test $ac_cv_header_stat_broken = yes; then
2199 cat >> confdefs.h <<\EOF
2200 #define STAT_MACROS_BROKEN 1
2205 for ac_hdr in string.h memory.h stdlib.h unistd.h errno.h fcntl.h \
2206 limits.h crypt.h termcap.h termio.h termios.h locale.h \
2207 netdb.h sys/param.h sys/time.h sys/utsname.h arpa/inet.h \
2210 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2211 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2212 echo "configure:2213: checking for $ac_hdr" >&5
2213 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2214 echo $ac_n "(cached) $ac_c" 1>&6
2216 cat > conftest.$ac_ext <<EOF
2217 #line 2218 "configure"
2218 #include "confdefs.h"
2221 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2222 { (eval echo configure:2223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2223 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2224 if test -z "$ac_err"; then
2226 eval "ac_cv_header_$ac_safe=yes"
2229 echo "configure: failed program was:" >&5
2230 cat conftest.$ac_ext >&5
2232 eval "ac_cv_header_$ac_safe=no"
2236 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2237 echo "$ac_t""yes" 1>&6
2238 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2239 cat >> confdefs.h <<EOF
2240 #define $ac_tr_hdr 1
2244 echo "$ac_t""no" 1>&6
2250 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
2251 echo "configure:2252: checking POSIX termios" >&5
2252 if eval "test \"`echo '$''{'nmh_cv_sys_posix_termios'+set}'`\" = set"; then
2253 echo $ac_n "(cached) $ac_c" 1>&6
2255 cat > conftest.$ac_ext <<EOF
2256 #line 2257 "configure"
2257 #include "confdefs.h"
2258 #include <sys/types.h>
2260 #include <termios.h>
2262 /* SunOS 4.0.3 has termios.h but not the library calls. */
2266 if { (eval echo configure:2267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2268 nmh_cv_sys_posix_termios=yes
2270 echo "configure: failed program was:" >&5
2271 cat conftest.$ac_ext >&5
2273 nmh_cv_sys_posix_termios=no
2278 echo "$ac_t""$nmh_cv_sys_posix_termios" 1>&6
2280 if test $nmh_cv_sys_posix_termios = yes; then
2281 echo $ac_n "checking TIOCGWINSZ in termios.h""... $ac_c" 1>&6
2282 echo "configure:2283: checking TIOCGWINSZ in termios.h" >&5
2283 if eval "test \"`echo '$''{'nmh_cv_header_termios_h_tiocgwinsz'+set}'`\" = set"; then
2284 echo $ac_n "(cached) $ac_c" 1>&6
2286 cat > conftest.$ac_ext <<EOF
2287 #line 2288 "configure"
2288 #include "confdefs.h"
2289 #include <sys/types.h>
2290 #include <termios.h>
2295 if { (eval echo configure:2296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2297 nmh_cv_header_termios_h_tiocgwinsz=yes
2299 echo "configure: failed program was:" >&5
2300 cat conftest.$ac_ext >&5
2302 nmh_cv_header_termios_h_tiocgwinsz=no
2307 echo "$ac_t""$nmh_cv_header_termios_h_tiocgwinsz" 1>&6
2309 nmh_cv_header_termios_h_tiocgwinsz=no
2312 if test $nmh_cv_header_termios_h_tiocgwinsz = no; then
2313 echo $ac_n "checking TIOCGWINSZ in sys/ioctl.h""... $ac_c" 1>&6
2314 echo "configure:2315: checking TIOCGWINSZ in sys/ioctl.h" >&5
2315 if eval "test \"`echo '$''{'nmh_cv_header_sys_ioctl_h_tiocgwinsz'+set}'`\" = set"; then
2316 echo $ac_n "(cached) $ac_c" 1>&6
2318 cat > conftest.$ac_ext <<EOF
2319 #line 2320 "configure"
2320 #include "confdefs.h"
2321 #include <sys/types.h>
2322 #include <sys/ioctl.h>
2327 if { (eval echo configure:2328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2329 nmh_cv_header_sys_ioctl_h_tiocgwinsz=yes
2331 echo "configure: failed program was:" >&5
2332 cat conftest.$ac_ext >&5
2334 nmh_cv_header_sys_ioctl_h_tiocgwinsz=no
2339 echo "$ac_t""$nmh_cv_header_sys_ioctl_h_tiocgwinsz" 1>&6
2340 if test $nmh_cv_header_sys_ioctl_h_tiocgwinsz = yes; then
2341 cat >> confdefs.h <<\EOF
2342 #define GWINSZ_IN_SYS_IOCTL 1
2348 ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2349 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2350 echo "configure:2351: checking for libio.h" >&5
2351 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2352 echo $ac_n "(cached) $ac_c" 1>&6
2354 cat > conftest.$ac_ext <<EOF
2355 #line 2356 "configure"
2356 #include "confdefs.h"
2359 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2360 { (eval echo configure:2361: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2361 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2362 if test -z "$ac_err"; then
2364 eval "ac_cv_header_$ac_safe=yes"
2367 echo "configure: failed program was:" >&5
2368 cat conftest.$ac_ext >&5
2370 eval "ac_cv_header_$ac_safe=no"
2374 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2375 echo "$ac_t""yes" 1>&6
2377 cat > conftest.$ac_ext <<EOF
2378 #line 2379 "configure"
2379 #include "confdefs.h"
2382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2383 egrep "_IO_write_ptr" >/dev/null 2>&1; then
2386 cat >> confdefs.h <<\EOF
2387 #define LINUX_STDIO 1
2394 echo "$ac_t""no" 1>&6
2398 ac_safe=`echo "sys/ptem.h" | sed 'y%./+-%__p_%'`
2399 echo $ac_n "checking for sys/ptem.h""... $ac_c" 1>&6
2400 echo "configure:2401: checking for sys/ptem.h" >&5
2401 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2402 echo $ac_n "(cached) $ac_c" 1>&6
2404 cat > conftest.$ac_ext <<EOF
2405 #line 2406 "configure"
2406 #include "confdefs.h"
2407 #include <sys/ptem.h>
2409 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2410 { (eval echo configure:2411: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2411 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2412 if test -z "$ac_err"; then
2414 eval "ac_cv_header_$ac_safe=yes"
2417 echo "configure: failed program was:" >&5
2418 cat conftest.$ac_ext >&5
2420 eval "ac_cv_header_$ac_safe=no"
2424 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2425 echo "$ac_t""yes" 1>&6
2426 cat >> confdefs.h <<\EOF
2427 #define WINSIZE_IN_PTEM 1
2431 echo "$ac_t""no" 1>&6
2435 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2436 echo "configure:2437: checking for pid_t" >&5
2437 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2438 echo $ac_n "(cached) $ac_c" 1>&6
2440 cat > conftest.$ac_ext <<EOF
2441 #line 2442 "configure"
2442 #include "confdefs.h"
2443 #include <sys/types.h>
2449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2450 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2452 ac_cv_type_pid_t=yes
2460 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2461 if test $ac_cv_type_pid_t = no; then
2462 cat >> confdefs.h <<\EOF
2468 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2469 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2470 echo "configure:2471: checking for vfork.h" >&5
2471 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2472 echo $ac_n "(cached) $ac_c" 1>&6
2474 cat > conftest.$ac_ext <<EOF
2475 #line 2476 "configure"
2476 #include "confdefs.h"
2479 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2480 { (eval echo configure:2481: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2481 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2482 if test -z "$ac_err"; then
2484 eval "ac_cv_header_$ac_safe=yes"
2487 echo "configure: failed program was:" >&5
2488 cat conftest.$ac_ext >&5
2490 eval "ac_cv_header_$ac_safe=no"
2494 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2495 echo "$ac_t""yes" 1>&6
2496 cat >> confdefs.h <<\EOF
2497 #define HAVE_VFORK_H 1
2501 echo "$ac_t""no" 1>&6
2504 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2505 echo "configure:2506: checking for working vfork" >&5
2506 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2507 echo $ac_n "(cached) $ac_c" 1>&6
2509 if test "$cross_compiling" = yes; then
2510 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2511 echo "configure:2512: checking for vfork" >&5
2512 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2513 echo $ac_n "(cached) $ac_c" 1>&6
2515 cat > conftest.$ac_ext <<EOF
2516 #line 2517 "configure"
2517 #include "confdefs.h"
2518 /* System header to define __stub macros and hopefully few prototypes,
2519 which can conflict with char vfork(); below. */
2521 /* Override any gcc2 internal prototype to avoid an error. */
2522 /* We use char because int might match the return type of a gcc2
2523 builtin and then its argument prototype would still apply. */
2528 /* The GNU C library defines this for functions which it implements
2529 to always fail with ENOSYS. Some functions are actually named
2530 something starting with __ and the normal name is an alias. */
2531 #if defined (__stub_vfork) || defined (__stub___vfork)
2539 if { (eval echo configure:2540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2541 eval "ac_cv_func_vfork=yes"
2543 echo "configure: failed program was:" >&5
2544 cat conftest.$ac_ext >&5
2546 eval "ac_cv_func_vfork=no"
2551 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2552 echo "$ac_t""yes" 1>&6
2555 echo "$ac_t""no" 1>&6
2558 ac_cv_func_vfork_works=$ac_cv_func_vfork
2560 cat > conftest.$ac_ext <<EOF
2561 #line 2562 "configure"
2562 #include "confdefs.h"
2563 /* Thanks to Paul Eggert for this test. */
2565 #include <sys/types.h>
2566 #include <sys/stat.h>
2567 #ifdef HAVE_UNISTD_H
2573 /* On some sparc systems, changes by the child to local and incoming
2574 argument registers are propagated back to the parent.
2575 The compiler is told about this with #include <vfork.h>,
2576 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2577 Test for this by using a static variable whose address
2578 is put into a register that is clobbered by the vfork. */
2581 sparc_address_test (int arg)
2583 sparc_address_test (arg) int arg;
2601 pid_t parent = getpid ();
2604 sparc_address_test ();
2609 /* Here is another test for sparc vfork register problems.
2610 This test uses lots of local variables, at least
2611 as many local variables as main has allocated so far
2612 including compiler temporaries. 4 locals are enough for
2613 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2614 A buggy compiler should reuse the register of parent
2615 for one of the local variables, since it will think that
2616 parent can't possibly be used any more in this routine.
2617 Assigning to the local variable will thus munge parent
2618 in the parent process. */
2620 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2621 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2622 /* Convince the compiler that p..p7 are live; otherwise, it might
2623 use the same hardware register for all 8 local variables. */
2624 if (p != p1 || p != p2 || p != p3 || p != p4
2625 || p != p5 || p != p6 || p != p7)
2628 /* On some systems (e.g. IRIX 3.3),
2629 vfork doesn't separate parent from child file descriptors.
2630 If the child closes a descriptor before it execs or exits,
2631 this munges the parent's descriptor as well.
2632 Test for this by closing stdout in the child. */
2633 _exit(close(fileno(stdout)) != 0);
2638 while (wait(&status) != child)
2641 /* Was there some problem with vforking? */
2644 /* Did the child fail? (This shouldn't happen.) */
2647 /* Did the vfork/compiler bug occur? */
2648 || parent != getpid()
2650 /* Did the file descriptor bug occur? */
2651 || fstat(fileno(stdout), &st) != 0
2656 if { (eval echo configure:2657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2658 ac_cv_func_vfork_works=yes
2660 echo "configure: failed program was:" >&5
2661 cat conftest.$ac_ext >&5
2663 ac_cv_func_vfork_works=no
2670 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2671 if test $ac_cv_func_vfork_works = no; then
2672 cat >> confdefs.h <<\EOF
2678 echo $ac_n "checking for mkstemp in -lmkstemp""... $ac_c" 1>&6
2679 echo "configure:2680: checking for mkstemp in -lmkstemp" >&5
2680 ac_lib_var=`echo mkstemp'_'mkstemp | sed 'y%./+-%__p_%'`
2681 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2682 echo $ac_n "(cached) $ac_c" 1>&6
2684 ac_save_LIBS="$LIBS"
2685 LIBS="-lmkstemp $LIBS"
2686 cat > conftest.$ac_ext <<EOF
2687 #line 2688 "configure"
2688 #include "confdefs.h"
2689 /* Override any gcc2 internal prototype to avoid an error. */
2690 /* We use char because int might match the return type of a gcc2
2691 builtin and then its argument prototype would still apply. */
2698 if { (eval echo configure:2699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2700 eval "ac_cv_lib_$ac_lib_var=yes"
2702 echo "configure: failed program was:" >&5
2703 cat conftest.$ac_ext >&5
2705 eval "ac_cv_lib_$ac_lib_var=no"
2708 LIBS="$ac_save_LIBS"
2711 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2712 echo "$ac_t""yes" 1>&6
2713 ac_tr_lib=HAVE_LIB`echo mkstemp | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2714 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2715 cat >> confdefs.h <<EOF
2716 #define $ac_tr_lib 1
2719 LIBS="-lmkstemp $LIBS"
2722 echo "$ac_t""no" 1>&6
2725 for ac_func in waitpid wait3 sigaction sigprocmask sigblock sigsetmask \
2726 sighold sigrelse writev lstat uname tzset killpg mkstemp \
2729 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2730 echo "configure:2731: checking for $ac_func" >&5
2731 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2732 echo $ac_n "(cached) $ac_c" 1>&6
2734 cat > conftest.$ac_ext <<EOF
2735 #line 2736 "configure"
2736 #include "confdefs.h"
2737 /* System header to define __stub macros and hopefully few prototypes,
2738 which can conflict with char $ac_func(); below. */
2740 /* Override any gcc2 internal prototype to avoid an error. */
2741 /* We use char because int might match the return type of a gcc2
2742 builtin and then its argument prototype would still apply. */
2747 /* The GNU C library defines this for functions which it implements
2748 to always fail with ENOSYS. Some functions are actually named
2749 something starting with __ and the normal name is an alias. */
2750 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2758 if { (eval echo configure:2759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2760 eval "ac_cv_func_$ac_func=yes"
2762 echo "configure: failed program was:" >&5
2763 cat conftest.$ac_ext >&5
2765 eval "ac_cv_func_$ac_func=no"
2770 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2771 echo "$ac_t""yes" 1>&6
2772 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2773 cat >> confdefs.h <<EOF
2774 #define $ac_tr_func 1
2778 echo "$ac_t""no" 1>&6
2783 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2784 echo "configure:2785: checking for gethostbyname" >&5
2785 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2786 echo $ac_n "(cached) $ac_c" 1>&6
2788 cat > conftest.$ac_ext <<EOF
2789 #line 2790 "configure"
2790 #include "confdefs.h"
2791 /* System header to define __stub macros and hopefully few prototypes,
2792 which can conflict with char gethostbyname(); below. */
2794 /* Override any gcc2 internal prototype to avoid an error. */
2795 /* We use char because int might match the return type of a gcc2
2796 builtin and then its argument prototype would still apply. */
2797 char gethostbyname();
2801 /* The GNU C library defines this for functions which it implements
2802 to always fail with ENOSYS. Some functions are actually named
2803 something starting with __ and the normal name is an alias. */
2804 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2812 if { (eval echo configure:2813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2814 eval "ac_cv_func_gethostbyname=yes"
2816 echo "configure: failed program was:" >&5
2817 cat conftest.$ac_ext >&5
2819 eval "ac_cv_func_gethostbyname=no"
2824 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
2825 echo "$ac_t""yes" 1>&6
2826 cat >> confdefs.h <<\EOF
2827 #define HAVE_GETHOSTBYNAME 1
2831 echo "$ac_t""no" 1>&6
2832 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2833 echo "configure:2834: checking for gethostbyname in -lnsl" >&5
2834 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2835 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2836 echo $ac_n "(cached) $ac_c" 1>&6
2838 ac_save_LIBS="$LIBS"
2840 cat > conftest.$ac_ext <<EOF
2841 #line 2842 "configure"
2842 #include "confdefs.h"
2843 /* Override any gcc2 internal prototype to avoid an error. */
2844 /* We use char because int might match the return type of a gcc2
2845 builtin and then its argument prototype would still apply. */
2846 char gethostbyname();
2852 if { (eval echo configure:2853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2854 eval "ac_cv_lib_$ac_lib_var=yes"
2856 echo "configure: failed program was:" >&5
2857 cat conftest.$ac_ext >&5
2859 eval "ac_cv_lib_$ac_lib_var=no"
2862 LIBS="$ac_save_LIBS"
2865 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2866 echo "$ac_t""yes" 1>&6
2867 cat >> confdefs.h <<\EOF
2868 #define HAVE_GETHOSTBYNAME 1
2872 echo "$ac_t""no" 1>&6
2878 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
2879 echo "configure:2880: checking for sigsetjmp" >&5
2880 cat > conftest.$ac_ext <<EOF
2881 #line 2882 "configure"
2882 #include "confdefs.h"
2885 sigsetjmp((void *)0, 0);
2888 if { (eval echo configure:2889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2890 cat >> confdefs.h <<\EOF
2891 #define HAVE_SIGSETJMP 1
2893 echo "$ac_t""yes" 1>&6
2895 echo "configure: failed program was:" >&5
2896 cat conftest.$ac_ext >&5
2898 echo "$ac_t""no" 1>&6
2902 for ac_func in snprintf strerror strdup
2904 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2905 echo "configure:2906: checking for $ac_func" >&5
2906 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2907 echo $ac_n "(cached) $ac_c" 1>&6
2909 cat > conftest.$ac_ext <<EOF
2910 #line 2911 "configure"
2911 #include "confdefs.h"
2912 /* System header to define __stub macros and hopefully few prototypes,
2913 which can conflict with char $ac_func(); below. */
2915 /* Override any gcc2 internal prototype to avoid an error. */
2916 /* We use char because int might match the return type of a gcc2
2917 builtin and then its argument prototype would still apply. */
2922 /* The GNU C library defines this for functions which it implements
2923 to always fail with ENOSYS. Some functions are actually named
2924 something starting with __ and the normal name is an alias. */
2925 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2933 if { (eval echo configure:2934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2935 eval "ac_cv_func_$ac_func=yes"
2937 echo "configure: failed program was:" >&5
2938 cat conftest.$ac_ext >&5
2940 eval "ac_cv_func_$ac_func=no"
2945 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2946 echo "$ac_t""yes" 1>&6
2947 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2948 cat >> confdefs.h <<EOF
2949 #define $ac_tr_func 1
2953 echo "$ac_t""no" 1>&6
2954 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
2960 cat > conftest.$ac_ext <<EOF
2961 #line 2962 "configure"
2962 #include "confdefs.h"
2965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2966 egrep "initgroups" >/dev/null 2>&1; then
2968 cat >> confdefs.h <<\EOF
2969 #define INITGROUPS_HEADER <grp.h>
2974 cat > conftest.$ac_ext <<EOF
2975 #line 2976 "configure"
2976 #include "confdefs.h"
2979 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2980 egrep "initgroups" >/dev/null 2>&1; then
2982 cat >> confdefs.h <<\EOF
2983 #define INITGROUPS_HEADER <unistd.h>
2993 cat > conftest.$ac_ext <<EOF
2994 #line 2995 "configure"
2995 #include "confdefs.h"
2998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2999 egrep "snprintf" >/dev/null 2>&1; then
3001 cat >> confdefs.h <<\EOF
3002 #define HAVE_SNPRINTF_PROTOTYPE 1
3009 echo $ac_n "checking for modf""... $ac_c" 1>&6
3010 echo "configure:3011: checking for modf" >&5
3011 if eval "test \"`echo '$''{'ac_cv_func_modf'+set}'`\" = set"; then
3012 echo $ac_n "(cached) $ac_c" 1>&6
3014 cat > conftest.$ac_ext <<EOF
3015 #line 3016 "configure"
3016 #include "confdefs.h"
3017 /* System header to define __stub macros and hopefully few prototypes,
3018 which can conflict with char modf(); below. */
3020 /* Override any gcc2 internal prototype to avoid an error. */
3021 /* We use char because int might match the return type of a gcc2
3022 builtin and then its argument prototype would still apply. */
3027 /* The GNU C library defines this for functions which it implements
3028 to always fail with ENOSYS. Some functions are actually named
3029 something starting with __ and the normal name is an alias. */
3030 #if defined (__stub_modf) || defined (__stub___modf)
3038 if { (eval echo configure:3039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3040 eval "ac_cv_func_modf=yes"
3042 echo "configure: failed program was:" >&5
3043 cat conftest.$ac_ext >&5
3045 eval "ac_cv_func_modf=no"
3050 if eval "test \"`echo '$ac_cv_func_'modf`\" = yes"; then
3051 echo "$ac_t""yes" 1>&6
3054 echo "$ac_t""no" 1>&6
3055 echo $ac_n "checking for modf in -lm""... $ac_c" 1>&6
3056 echo "configure:3057: checking for modf in -lm" >&5
3057 ac_lib_var=`echo m'_'modf | sed 'y%./+-%__p_%'`
3058 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3059 echo $ac_n "(cached) $ac_c" 1>&6
3061 ac_save_LIBS="$LIBS"
3063 cat > conftest.$ac_ext <<EOF
3064 #line 3065 "configure"
3065 #include "confdefs.h"
3066 /* Override any gcc2 internal prototype to avoid an error. */
3067 /* We use char because int might match the return type of a gcc2
3068 builtin and then its argument prototype would still apply. */
3075 if { (eval echo configure:3076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3077 eval "ac_cv_lib_$ac_lib_var=yes"
3079 echo "configure: failed program was:" >&5
3080 cat conftest.$ac_ext >&5
3082 eval "ac_cv_lib_$ac_lib_var=no"
3085 LIBS="$ac_save_LIBS"
3088 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3089 echo "$ac_t""yes" 1>&6
3090 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
3091 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3092 cat >> confdefs.h <<EOF
3093 #define $ac_tr_lib 1
3099 echo "$ac_t""no" 1>&6
3105 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3106 echo "configure:3107: checking for gethostbyname" >&5
3107 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3108 echo $ac_n "(cached) $ac_c" 1>&6
3110 cat > conftest.$ac_ext <<EOF
3111 #line 3112 "configure"
3112 #include "confdefs.h"
3113 /* System header to define __stub macros and hopefully few prototypes,
3114 which can conflict with char gethostbyname(); below. */
3116 /* Override any gcc2 internal prototype to avoid an error. */
3117 /* We use char because int might match the return type of a gcc2
3118 builtin and then its argument prototype would still apply. */
3119 char gethostbyname();
3123 /* The GNU C library defines this for functions which it implements
3124 to always fail with ENOSYS. Some functions are actually named
3125 something starting with __ and the normal name is an alias. */
3126 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3134 if { (eval echo configure:3135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3136 eval "ac_cv_func_gethostbyname=yes"
3138 echo "configure: failed program was:" >&5
3139 cat conftest.$ac_ext >&5
3141 eval "ac_cv_func_gethostbyname=no"
3146 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3147 echo "$ac_t""yes" 1>&6
3150 echo "$ac_t""no" 1>&6
3151 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3152 echo "configure:3153: checking for gethostbyname in -lnsl" >&5
3153 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3154 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3155 echo $ac_n "(cached) $ac_c" 1>&6
3157 ac_save_LIBS="$LIBS"
3159 cat > conftest.$ac_ext <<EOF
3160 #line 3161 "configure"
3161 #include "confdefs.h"
3162 /* Override any gcc2 internal prototype to avoid an error. */
3163 /* We use char because int might match the return type of a gcc2
3164 builtin and then its argument prototype would still apply. */
3165 char gethostbyname();
3171 if { (eval echo configure:3172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3173 eval "ac_cv_lib_$ac_lib_var=yes"
3175 echo "configure: failed program was:" >&5
3176 cat conftest.$ac_ext >&5
3178 eval "ac_cv_lib_$ac_lib_var=no"
3181 LIBS="$ac_save_LIBS"
3184 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3185 echo "$ac_t""yes" 1>&6
3186 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
3187 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3188 cat >> confdefs.h <<EOF
3189 #define $ac_tr_lib 1
3195 echo "$ac_t""no" 1>&6
3196 echo $ac_n "checking for gethostbyname in -lresolv""... $ac_c" 1>&6
3197 echo "configure:3198: checking for gethostbyname in -lresolv" >&5
3198 ac_lib_var=`echo resolv'_'gethostbyname | sed 'y%./+-%__p_%'`
3199 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3200 echo $ac_n "(cached) $ac_c" 1>&6
3202 ac_save_LIBS="$LIBS"
3203 LIBS="-lresolv $LIBS"
3204 cat > conftest.$ac_ext <<EOF
3205 #line 3206 "configure"
3206 #include "confdefs.h"
3207 /* Override any gcc2 internal prototype to avoid an error. */
3208 /* We use char because int might match the return type of a gcc2
3209 builtin and then its argument prototype would still apply. */
3210 char gethostbyname();
3216 if { (eval echo configure:3217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3218 eval "ac_cv_lib_$ac_lib_var=yes"
3220 echo "configure: failed program was:" >&5
3221 cat conftest.$ac_ext >&5
3223 eval "ac_cv_lib_$ac_lib_var=no"
3226 LIBS="$ac_save_LIBS"
3229 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3230 echo "$ac_t""yes" 1>&6
3231 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
3232 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3233 cat >> confdefs.h <<EOF
3234 #define $ac_tr_lib 1
3237 LIBS="-lresolv $LIBS"
3240 echo "$ac_t""no" 1>&6
3247 echo $ac_n "checking for socket""... $ac_c" 1>&6
3248 echo "configure:3249: checking for socket" >&5
3249 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
3250 echo $ac_n "(cached) $ac_c" 1>&6
3252 cat > conftest.$ac_ext <<EOF
3253 #line 3254 "configure"
3254 #include "confdefs.h"
3255 /* System header to define __stub macros and hopefully few prototypes,
3256 which can conflict with char socket(); below. */
3258 /* Override any gcc2 internal prototype to avoid an error. */
3259 /* We use char because int might match the return type of a gcc2
3260 builtin and then its argument prototype would still apply. */
3265 /* The GNU C library defines this for functions which it implements
3266 to always fail with ENOSYS. Some functions are actually named
3267 something starting with __ and the normal name is an alias. */
3268 #if defined (__stub_socket) || defined (__stub___socket)
3276 if { (eval echo configure:3277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3278 eval "ac_cv_func_socket=yes"
3280 echo "configure: failed program was:" >&5
3281 cat conftest.$ac_ext >&5
3283 eval "ac_cv_func_socket=no"
3288 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
3289 echo "$ac_t""yes" 1>&6
3292 echo "$ac_t""no" 1>&6
3293 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
3294 echo "configure:3295: checking for socket in -lsocket" >&5
3295 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
3296 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3297 echo $ac_n "(cached) $ac_c" 1>&6
3299 ac_save_LIBS="$LIBS"
3300 LIBS="-lsocket $LIBS"
3301 cat > conftest.$ac_ext <<EOF
3302 #line 3303 "configure"
3303 #include "confdefs.h"
3304 /* Override any gcc2 internal prototype to avoid an error. */
3305 /* We use char because int might match the return type of a gcc2
3306 builtin and then its argument prototype would still apply. */
3313 if { (eval echo configure:3314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3315 eval "ac_cv_lib_$ac_lib_var=yes"
3317 echo "configure: failed program was:" >&5
3318 cat conftest.$ac_ext >&5
3320 eval "ac_cv_lib_$ac_lib_var=no"
3323 LIBS="$ac_save_LIBS"
3326 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3327 echo "$ac_t""yes" 1>&6
3328 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
3329 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3330 cat >> confdefs.h <<EOF
3331 #define $ac_tr_lib 1
3334 LIBS="-lsocket $LIBS"
3337 echo "$ac_t""no" 1>&6
3344 termcap_curses_order="termcap curses ncurses"
3345 for lib in $termcap_curses_order; do
3346 echo $ac_n "checking for tgetent in -l${lib}""... $ac_c" 1>&6
3347 echo "configure:3348: checking for tgetent in -l${lib}" >&5
3348 ac_lib_var=`echo ${lib}'_'tgetent | sed 'y%./+-%__p_%'`
3349 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3350 echo $ac_n "(cached) $ac_c" 1>&6
3352 ac_save_LIBS="$LIBS"
3353 LIBS="-l${lib} $LIBS"
3354 cat > conftest.$ac_ext <<EOF
3355 #line 3356 "configure"
3356 #include "confdefs.h"
3357 /* Override any gcc2 internal prototype to avoid an error. */
3358 /* We use char because int might match the return type of a gcc2
3359 builtin and then its argument prototype would still apply. */
3366 if { (eval echo configure:3367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3368 eval "ac_cv_lib_$ac_lib_var=yes"
3370 echo "configure: failed program was:" >&5
3371 cat conftest.$ac_ext >&5
3373 eval "ac_cv_lib_$ac_lib_var=no"
3376 LIBS="$ac_save_LIBS"
3379 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3380 echo "$ac_t""yes" 1>&6
3381 TERMLIB="-l$lib"; break
3383 echo "$ac_t""no" 1>&6
3389 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
3390 echo "configure:3391: checking for dbm_open" >&5
3391 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
3392 echo $ac_n "(cached) $ac_c" 1>&6
3394 cat > conftest.$ac_ext <<EOF
3395 #line 3396 "configure"
3396 #include "confdefs.h"
3397 /* System header to define __stub macros and hopefully few prototypes,
3398 which can conflict with char dbm_open(); below. */
3400 /* Override any gcc2 internal prototype to avoid an error. */
3401 /* We use char because int might match the return type of a gcc2
3402 builtin and then its argument prototype would still apply. */
3407 /* The GNU C library defines this for functions which it implements
3408 to always fail with ENOSYS. Some functions are actually named
3409 something starting with __ and the normal name is an alias. */
3410 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
3418 if { (eval echo configure:3419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3420 eval "ac_cv_func_dbm_open=yes"
3422 echo "configure: failed program was:" >&5
3423 cat conftest.$ac_ext >&5
3425 eval "ac_cv_func_dbm_open=no"
3430 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
3431 echo "$ac_t""yes" 1>&6
3434 echo "$ac_t""no" 1>&6
3435 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
3436 echo "configure:3437: checking for dbm_open in -lndbm" >&5
3437 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
3438 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3439 echo $ac_n "(cached) $ac_c" 1>&6
3441 ac_save_LIBS="$LIBS"
3443 cat > conftest.$ac_ext <<EOF
3444 #line 3445 "configure"
3445 #include "confdefs.h"
3446 /* Override any gcc2 internal prototype to avoid an error. */
3447 /* We use char because int might match the return type of a gcc2
3448 builtin and then its argument prototype would still apply. */
3455 if { (eval echo configure:3456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3457 eval "ac_cv_lib_$ac_lib_var=yes"
3459 echo "configure: failed program was:" >&5
3460 cat conftest.$ac_ext >&5
3462 eval "ac_cv_lib_$ac_lib_var=no"
3465 LIBS="$ac_save_LIBS"
3468 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3469 echo "$ac_t""yes" 1>&6
3470 ac_tr_lib=HAVE_LIB`echo ndbm | sed -e 's/^a-zA-Z0-9_/_/g' \
3471 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3472 cat >> confdefs.h <<EOF
3473 #define $ac_tr_lib 1
3479 echo "$ac_t""no" 1>&6
3480 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
3481 echo "configure:3482: checking for dbm_open in -ldbm" >&5
3482 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
3483 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3484 echo $ac_n "(cached) $ac_c" 1>&6
3486 ac_save_LIBS="$LIBS"
3488 cat > conftest.$ac_ext <<EOF
3489 #line 3490 "configure"
3490 #include "confdefs.h"
3491 /* Override any gcc2 internal prototype to avoid an error. */
3492 /* We use char because int might match the return type of a gcc2
3493 builtin and then its argument prototype would still apply. */
3500 if { (eval echo configure:3501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3502 eval "ac_cv_lib_$ac_lib_var=yes"
3504 echo "configure: failed program was:" >&5
3505 cat conftest.$ac_ext >&5
3507 eval "ac_cv_lib_$ac_lib_var=no"
3510 LIBS="$ac_save_LIBS"
3513 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3514 echo "$ac_t""yes" 1>&6
3515 ac_tr_lib=HAVE_LIB`echo dbm | sed -e 's/^a-zA-Z0-9_/_/g' \
3516 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3517 cat >> confdefs.h <<EOF
3518 #define $ac_tr_lib 1
3524 echo "$ac_t""no" 1>&6
3532 for ac_hdr in db1/ndbm.h
3534 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3535 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3536 echo "configure:3537: checking for $ac_hdr" >&5
3537 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3538 echo $ac_n "(cached) $ac_c" 1>&6
3540 cat > conftest.$ac_ext <<EOF
3541 #line 3542 "configure"
3542 #include "confdefs.h"
3545 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3546 { (eval echo configure:3547: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3547 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3548 if test -z "$ac_err"; then
3550 eval "ac_cv_header_$ac_safe=yes"
3553 echo "configure: failed program was:" >&5
3554 cat conftest.$ac_ext >&5
3556 eval "ac_cv_header_$ac_safe=no"
3560 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3561 echo "$ac_t""yes" 1>&6
3562 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3563 cat >> confdefs.h <<EOF
3564 #define $ac_tr_hdr 1
3568 echo "$ac_t""no" 1>&6
3573 if test x"$with_hesiod" != x -a x"$with_hesiod" != x"no"; then
3574 if test x"$with_hesiod" != x"yes"; then
3575 HESIOD_INCLUDES="-I$with_hesiod/include"
3576 HESIOD_LIBS="-L$with_hesiod/lib"
3578 echo $ac_n "checking for res_send""... $ac_c" 1>&6
3579 echo "configure:3580: checking for res_send" >&5
3580 if eval "test \"`echo '$''{'ac_cv_func_res_send'+set}'`\" = set"; then
3581 echo $ac_n "(cached) $ac_c" 1>&6
3583 cat > conftest.$ac_ext <<EOF
3584 #line 3585 "configure"
3585 #include "confdefs.h"
3586 /* System header to define __stub macros and hopefully few prototypes,
3587 which can conflict with char res_send(); below. */
3589 /* Override any gcc2 internal prototype to avoid an error. */
3590 /* We use char because int might match the return type of a gcc2
3591 builtin and then its argument prototype would still apply. */
3596 /* The GNU C library defines this for functions which it implements
3597 to always fail with ENOSYS. Some functions are actually named
3598 something starting with __ and the normal name is an alias. */
3599 #if defined (__stub_res_send) || defined (__stub___res_send)
3607 if { (eval echo configure:3608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3609 eval "ac_cv_func_res_send=yes"
3611 echo "configure: failed program was:" >&5
3612 cat conftest.$ac_ext >&5
3614 eval "ac_cv_func_res_send=no"
3619 if eval "test \"`echo '$ac_cv_func_'res_send`\" = yes"; then
3620 echo "$ac_t""yes" 1>&6
3623 echo "$ac_t""no" 1>&6
3624 echo $ac_n "checking for res_send in -lresolv""... $ac_c" 1>&6
3625 echo "configure:3626: checking for res_send in -lresolv" >&5
3626 ac_lib_var=`echo resolv'_'res_send | sed 'y%./+-%__p_%'`
3627 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3628 echo $ac_n "(cached) $ac_c" 1>&6
3630 ac_save_LIBS="$LIBS"
3631 LIBS="-lresolv $LIBS"
3632 cat > conftest.$ac_ext <<EOF
3633 #line 3634 "configure"
3634 #include "confdefs.h"
3635 /* Override any gcc2 internal prototype to avoid an error. */
3636 /* We use char because int might match the return type of a gcc2
3637 builtin and then its argument prototype would still apply. */
3644 if { (eval echo configure:3645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3646 eval "ac_cv_lib_$ac_lib_var=yes"
3648 echo "configure: failed program was:" >&5
3649 cat conftest.$ac_ext >&5
3651 eval "ac_cv_lib_$ac_lib_var=no"
3654 LIBS="$ac_save_LIBS"
3657 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3658 echo "$ac_t""yes" 1>&6
3659 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
3660 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3661 cat >> confdefs.h <<EOF
3662 #define $ac_tr_lib 1
3665 LIBS="-lresolv $LIBS"
3668 echo "$ac_t""no" 1>&6
3673 echo $ac_n "checking for hes_resolve in -lhesiod""... $ac_c" 1>&6
3674 echo "configure:3675: checking for hes_resolve in -lhesiod" >&5
3675 ac_lib_var=`echo hesiod'_'hes_resolve | sed 'y%./+-%__p_%'`
3676 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3677 echo $ac_n "(cached) $ac_c" 1>&6
3679 ac_save_LIBS="$LIBS"
3680 LIBS="-lhesiod $HESIOD_LIBS $LIBS"
3681 cat > conftest.$ac_ext <<EOF
3682 #line 3683 "configure"
3683 #include "confdefs.h"
3684 /* Override any gcc2 internal prototype to avoid an error. */
3685 /* We use char because int might match the return type of a gcc2
3686 builtin and then its argument prototype would still apply. */
3693 if { (eval echo configure:3694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3695 eval "ac_cv_lib_$ac_lib_var=yes"
3697 echo "configure: failed program was:" >&5
3698 cat conftest.$ac_ext >&5
3700 eval "ac_cv_lib_$ac_lib_var=no"
3703 LIBS="$ac_save_LIBS"
3706 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3707 echo "$ac_t""yes" 1>&6
3708 HESIOD_LIBS="$HESIOD_LIBS -lhesiod"
3710 echo "$ac_t""no" 1>&6
3711 { echo "configure: error: Hesiod library not found" 1>&2; exit 1; }
3716 if test x"$with_krb4" != x -a x"$with_krb4" != x"no"; then
3717 if test x"$with_krb4" != x"yes"; then
3718 KRB4_INCLUDES="-I$with_krb4/include"
3719 if test -d "$with_krb4/include/kerberosIV"; then
3720 KRB4_INCLUDES="$KRB4_INCLUDES -I$with_krb4/include/kerberosIV"
3722 KRB4_LIBS="-L$with_krb4/lib"
3723 elif test -d /usr/include/kerberosIV; then
3724 KRB4_INCLUDES="-I/usr/include/kerberosIV"
3726 echo $ac_n "checking for krb_rd_req in -lkrb4""... $ac_c" 1>&6
3727 echo "configure:3728: checking for krb_rd_req in -lkrb4" >&5
3728 ac_lib_var=`echo krb4'_'krb_rd_req | sed 'y%./+-%__p_%'`
3729 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3730 echo $ac_n "(cached) $ac_c" 1>&6
3732 ac_save_LIBS="$LIBS"
3733 LIBS="-lkrb4 $KRB4_LIBS -ldes425 -lkrb5 -lcrypto -lcom_err $LIBS"
3734 cat > conftest.$ac_ext <<EOF
3735 #line 3736 "configure"
3736 #include "confdefs.h"
3737 /* Override any gcc2 internal prototype to avoid an error. */
3738 /* We use char because int might match the return type of a gcc2
3739 builtin and then its argument prototype would still apply. */
3746 if { (eval echo configure:3747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3748 eval "ac_cv_lib_$ac_lib_var=yes"
3750 echo "configure: failed program was:" >&5
3751 cat conftest.$ac_ext >&5
3753 eval "ac_cv_lib_$ac_lib_var=no"
3756 LIBS="$ac_save_LIBS"
3759 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3760 echo "$ac_t""yes" 1>&6
3761 KRB4_LIBS="$KRB4_LIBS -lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err"
3763 echo "$ac_t""no" 1>&6
3764 echo $ac_n "checking for krb_rd_req in -lkrb""... $ac_c" 1>&6
3765 echo "configure:3766: checking for krb_rd_req in -lkrb" >&5
3766 ac_lib_var=`echo krb'_'krb_rd_req | sed 'y%./+-%__p_%'`
3767 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3768 echo $ac_n "(cached) $ac_c" 1>&6
3770 ac_save_LIBS="$LIBS"
3771 LIBS="-lkrb $KRB4_LIBS -ldes $LIBS"
3772 cat > conftest.$ac_ext <<EOF
3773 #line 3774 "configure"
3774 #include "confdefs.h"
3775 /* Override any gcc2 internal prototype to avoid an error. */
3776 /* We use char because int might match the return type of a gcc2
3777 builtin and then its argument prototype would still apply. */
3784 if { (eval echo configure:3785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3786 eval "ac_cv_lib_$ac_lib_var=yes"
3788 echo "configure: failed program was:" >&5
3789 cat conftest.$ac_ext >&5
3791 eval "ac_cv_lib_$ac_lib_var=no"
3794 LIBS="$ac_save_LIBS"
3797 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3798 echo "$ac_t""yes" 1>&6
3799 KRB4_LIBS="$KRB4_LIBS -lkrb -ldes"
3801 echo "$ac_t""no" 1>&6
3802 { echo "configure: error: Kerberos 4 libraries not found" 1>&2; exit 1; }
3810 nmh_save_LIBS="$LIBS"
3811 LIBS="$TERMLIB $LIBS"
3813 echo $ac_n "checking if an include file defines ospeed""... $ac_c" 1>&6
3814 echo "configure:3815: checking if an include file defines ospeed" >&5
3815 if eval "test \"`echo '$''{'nmh_cv_decl_ospeed_include_defines'+set}'`\" = set"; then
3816 echo $ac_n "(cached) $ac_c" 1>&6
3818 cat > conftest.$ac_ext <<EOF
3819 #line 3820 "configure"
3820 #include "confdefs.h"
3821 #include <sys/types.h>
3823 #include <termios.h>
3826 #include <termcap.h>
3832 if { (eval echo configure:3833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3834 nmh_cv_decl_ospeed_include_defines=yes
3836 echo "configure: failed program was:" >&5
3837 cat conftest.$ac_ext >&5
3839 nmh_cv_decl_ospeed_include_defines=no
3844 echo "$ac_t""$nmh_cv_decl_ospeed_include_defines" 1>&6
3846 if test $nmh_cv_decl_ospeed_include_defines = no; then
3847 echo $ac_n "checking if you must define ospeed""... $ac_c" 1>&6
3848 echo "configure:3849: checking if you must define ospeed" >&5
3849 if eval "test \"`echo '$''{'nmh_cv_decl_ospeed_must_define'+set}'`\" = set"; then
3850 echo $ac_n "(cached) $ac_c" 1>&6
3852 cat > conftest.$ac_ext <<EOF
3853 #line 3854 "configure"
3854 #include "confdefs.h"
3857 extern short ospeed; ospeed = 0;
3860 if { (eval echo configure:3861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3862 nmh_cv_decl_ospeed_must_define=yes
3864 echo "configure: failed program was:" >&5
3865 cat conftest.$ac_ext >&5
3867 nmh_cv_decl_ospeed_must_define=no
3872 echo "$ac_t""$nmh_cv_decl_ospeed_must_define" 1>&6
3875 if test $nmh_cv_decl_ospeed_include_defines = yes; then
3876 cat >> confdefs.h <<\EOF
3877 #define HAVE_OSPEED 1
3880 elif test $nmh_cv_decl_ospeed_must_define = yes; then
3881 cat >> confdefs.h <<\EOF
3882 #define HAVE_OSPEED 1
3885 cat >> confdefs.h <<\EOF
3886 #define MUST_DEFINE_OSPEED 1
3892 LIBS="$nmh_save_LIBS"
3894 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3895 echo "configure:3896: checking return type of signal handlers" >&5
3896 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3897 echo $ac_n "(cached) $ac_c" 1>&6
3899 cat > conftest.$ac_ext <<EOF
3900 #line 3901 "configure"
3901 #include "confdefs.h"
3902 #include <sys/types.h>
3908 extern "C" void (*signal (int, void (*)(int)))(int);
3910 void (*signal ()) ();
3917 if { (eval echo configure:3918: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3919 ac_cv_type_signal=void
3921 echo "configure: failed program was:" >&5
3922 cat conftest.$ac_ext >&5
3924 ac_cv_type_signal=int
3929 echo "$ac_t""$ac_cv_type_signal" 1>&6
3930 cat >> confdefs.h <<EOF
3931 #define RETSIGTYPE $ac_cv_type_signal
3935 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3936 echo "configure:3937: checking for pid_t" >&5
3937 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3938 echo $ac_n "(cached) $ac_c" 1>&6
3940 cat > conftest.$ac_ext <<EOF
3941 #line 3942 "configure"
3942 #include "confdefs.h"
3943 #include <sys/types.h>
3949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3950 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3952 ac_cv_type_pid_t=yes
3960 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3961 if test $ac_cv_type_pid_t = no; then
3962 cat >> confdefs.h <<\EOF
3968 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3969 echo "configure:3970: checking for off_t" >&5
3970 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3971 echo $ac_n "(cached) $ac_c" 1>&6
3973 cat > conftest.$ac_ext <<EOF
3974 #line 3975 "configure"
3975 #include "confdefs.h"
3976 #include <sys/types.h>
3982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3983 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3985 ac_cv_type_off_t=yes
3993 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3994 if test $ac_cv_type_off_t = no; then
3995 cat >> confdefs.h <<\EOF
4001 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
4002 echo "configure:4003: checking for uid_t in sys/types.h" >&5
4003 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
4004 echo $ac_n "(cached) $ac_c" 1>&6
4006 cat > conftest.$ac_ext <<EOF
4007 #line 4008 "configure"
4008 #include "confdefs.h"
4009 #include <sys/types.h>
4011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4012 egrep "uid_t" >/dev/null 2>&1; then
4014 ac_cv_type_uid_t=yes
4023 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
4024 if test $ac_cv_type_uid_t = no; then
4025 cat >> confdefs.h <<\EOF
4029 cat >> confdefs.h <<\EOF
4035 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
4036 echo "configure:4037: checking for mode_t" >&5
4037 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
4038 echo $ac_n "(cached) $ac_c" 1>&6
4040 cat > conftest.$ac_ext <<EOF
4041 #line 4042 "configure"
4042 #include "confdefs.h"
4043 #include <sys/types.h>
4049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4050 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4052 ac_cv_type_mode_t=yes
4055 ac_cv_type_mode_t=no
4060 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
4061 if test $ac_cv_type_mode_t = no; then
4062 cat >> confdefs.h <<\EOF
4068 echo $ac_n "checking for size_t""... $ac_c" 1>&6
4069 echo "configure:4070: checking for size_t" >&5
4070 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
4071 echo $ac_n "(cached) $ac_c" 1>&6
4073 cat > conftest.$ac_ext <<EOF
4074 #line 4075 "configure"
4075 #include "confdefs.h"
4076 #include <sys/types.h>
4082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4083 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4085 ac_cv_type_size_t=yes
4088 ac_cv_type_size_t=no
4093 echo "$ac_t""$ac_cv_type_size_t" 1>&6
4094 if test $ac_cv_type_size_t = no; then
4095 cat >> confdefs.h <<\EOF
4096 #define size_t unsigned
4102 echo $ac_n "checking for sigset_t""... $ac_c" 1>&6
4103 echo "configure:4104: checking for sigset_t" >&5
4104 if eval "test \"`echo '$''{'nmh_cv_type_sigset_t'+set}'`\" = set"; then
4105 echo $ac_n "(cached) $ac_c" 1>&6
4107 cat > conftest.$ac_ext <<EOF
4108 #line 4109 "configure"
4109 #include "confdefs.h"
4110 #include <sys/types.h>
4113 sigset_t tempsigset;
4116 if { (eval echo configure:4117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4118 nmh_cv_type_sigset_t=yes
4120 echo "configure: failed program was:" >&5
4121 cat conftest.$ac_ext >&5
4123 nmh_cv_type_sigset_t=no
4128 echo "$ac_t""$nmh_cv_type_sigset_t" 1>&6
4129 if test $nmh_cv_type_sigset_t = no; then
4130 cat >> confdefs.h <<\EOF
4131 #define sigset_t unsigned int
4136 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
4137 echo "configure:4138: checking for st_blksize in struct stat" >&5
4138 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
4139 echo $ac_n "(cached) $ac_c" 1>&6
4141 cat > conftest.$ac_ext <<EOF
4142 #line 4143 "configure"
4143 #include "confdefs.h"
4144 #include <sys/types.h>
4145 #include <sys/stat.h>
4147 struct stat s; s.st_blksize;
4150 if { (eval echo configure:4151: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4152 ac_cv_struct_st_blksize=yes
4154 echo "configure: failed program was:" >&5
4155 cat conftest.$ac_ext >&5
4157 ac_cv_struct_st_blksize=no
4162 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
4163 if test $ac_cv_struct_st_blksize = yes; then
4164 cat >> confdefs.h <<\EOF
4165 #define HAVE_ST_BLKSIZE 1
4171 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
4172 echo "configure:4173: checking for tm_gmtoff in struct tm" >&5
4173 if eval "test \"`echo '$''{'nmh_cv_struct_tm_gmtoff'+set}'`\" = set"; then
4174 echo $ac_n "(cached) $ac_c" 1>&6
4176 cat > conftest.$ac_ext <<EOF
4177 #line 4178 "configure"
4178 #include "confdefs.h"
4179 #ifdef TIME_WITH_SYS_TIME
4180 # include <sys/time.h>
4183 # ifdef TM_IN_SYS_TIME
4184 # include <sys/time.h>
4190 struct tm temptm; temptm.tm_gmtoff = 0;
4193 if { (eval echo configure:4194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4195 nmh_cv_struct_tm_gmtoff=yes
4197 echo "configure: failed program was:" >&5
4198 cat conftest.$ac_ext >&5
4200 nmh_cv_struct_tm_gmtoff=no
4205 echo "$ac_t""$nmh_cv_struct_tm_gmtoff" 1>&6
4206 if test $nmh_cv_struct_tm_gmtoff = yes; then
4207 cat >> confdefs.h <<\EOF
4208 #define HAVE_TM_GMTOFF 1
4213 echo $ac_n "checking what style of signals to use""... $ac_c" 1>&6
4214 echo "configure:4215: checking what style of signals to use" >&5
4215 if test $ac_cv_func_sigaction = yes -a $ac_cv_func_sigprocmask = yes; then
4216 signals_style=POSIX_SIGNALS
4217 cat >> confdefs.h <<\EOF
4218 #define POSIX_SIGNALS 1
4221 cat >> confdefs.h <<\EOF
4222 #define RELIABLE_SIGNALS 1
4225 elif test $ac_cv_func_sigblock = yes -a $ac_cv_func_sigsetmask = yes; then
4226 signals_style=BSD_SIGNALS
4227 cat >> confdefs.h <<\EOF
4228 #define BSD_SIGNALS 1
4231 cat >> confdefs.h <<\EOF
4232 #define RELIABLE_SIGNALS 1
4235 elif test $ac_cv_func_sighold = yes -a $ac_cv_func_sigrelse = yes; then
4236 signals_style=SYSV_SIGNALS
4237 cat >> confdefs.h <<\EOF
4238 #define SYSV_SIGNALS 1
4242 signals_style=NO_SIGNAL_BLOCKING
4243 cat >> confdefs.h <<\EOF
4244 #define NO_SIGNAL_BLOCKING 1
4249 echo "$ac_t""$signals_style" 1>&6
4251 echo $ac_n "checking where signal.h is located""... $ac_c" 1>&6
4252 echo "configure:4253: checking where signal.h is located" >&5
4253 if eval "test \"`echo '$''{'nmh_cv_path_signal_h'+set}'`\" = set"; then
4254 echo $ac_n "(cached) $ac_c" 1>&6
4256 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
4257 test -f $SIGNAL_H && \
4258 grep '#[ ]*define[ ][ ]*SIG[0-9A-Z]*[ ]*[0-9][0-9]*' $SIGNAL_H > /dev/null && \
4261 nmh_cv_path_signal_h=$SIGNAL_H
4265 echo "$ac_t""$nmh_cv_path_signal_h" 1>&6
4266 SIGNAL_H=$nmh_cv_path_signal_h
4268 case "$target_os" in
4271 cat >> confdefs.h <<\EOF
4275 cat >> confdefs.h <<\EOF
4281 cat >> confdefs.h <<\EOF
4285 cat >> confdefs.h <<\EOF
4291 cat >> confdefs.h <<\EOF
4295 cat >> confdefs.h <<\EOF
4301 cat >> confdefs.h <<\EOF
4305 cat >> confdefs.h <<\EOF
4311 cat >> confdefs.h <<\EOF
4317 cat >> confdefs.h <<\EOF
4321 cat >> confdefs.h <<\EOF
4327 cat >> confdefs.h <<\EOF
4331 cat >> confdefs.h <<\EOF
4337 cat >> confdefs.h <<\EOF
4341 cat >> confdefs.h <<\EOF
4347 cat >> confdefs.h <<\EOF
4351 cat >> confdefs.h <<\EOF
4357 cat >> confdefs.h <<\EOF
4361 cat >> confdefs.h <<\EOF
4362 #define SCO_5_STDIO 1
4370 cat > confcache <<\EOF
4371 # This file is a shell script that caches the results of configure
4372 # tests run on this system so they can be shared between configure
4373 # scripts and configure runs. It is not useful on other systems.
4374 # If it contains results you don't want to keep, you may remove or edit it.
4376 # By default, configure uses ./config.cache as the cache file,
4377 # creating it if it does not exist already. You can give configure
4378 # the --cache-file=FILE option to use a different cache file; that is
4379 # what configure does when it calls configure scripts in
4380 # subdirectories, so they share the cache.
4381 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4382 # config.status only pays attention to the cache file if you give it the
4383 # --recheck option to rerun configure.
4386 # The following way of writing the cache mishandles newlines in values,
4387 # but we know of no workaround that is simple, portable, and efficient.
4388 # So, don't put newlines in cache variables' values.
4389 # Ultrix sh set writes to stderr and can't be redirected directly,
4390 # and sets the high bit in the cache file unless we assign to the vars.
4392 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4394 # `set' does not quote correctly, so add quotes (double-quote substitution
4395 # turns \\\\ into \\, and sed turns \\ into \).
4397 -e "s/'/'\\\\''/g" \
4398 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4401 # `set' quotes correctly as required by POSIX, so do not add quotes.
4402 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4405 if cmp -s $cache_file confcache; then
4408 if test -w $cache_file; then
4409 echo "updating cache $cache_file"
4410 cat confcache > $cache_file
4412 echo "not updating unwritable cache $cache_file"
4417 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4419 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4420 # Let make expand exec_prefix.
4421 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4423 # Any assignment to VPATH causes Sun make to only execute
4424 # the first set of double-colon rules, so remove it if not needed.
4425 # If there is a colon in the path, we need to keep it.
4426 if test "x$srcdir" = x.; then
4427 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4430 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4432 DEFS=-DHAVE_CONFIG_H
4434 # Without the "./", some shells look in PATH for config.status.
4435 : ${CONFIG_STATUS=./config.status}
4437 echo creating $CONFIG_STATUS
4438 rm -f $CONFIG_STATUS
4439 cat > $CONFIG_STATUS <<EOF
4441 # Generated automatically by configure.
4442 # Run this file to recreate the current configuration.
4443 # This directory was configured as follows,
4444 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4446 # $0 $ac_configure_args
4448 # Compiler output produced by configure, useful for debugging
4449 # configure, is in ./config.log if it exists.
4451 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4454 case "\$ac_option" in
4455 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4456 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4457 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4458 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4459 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4461 -help | --help | --hel | --he | --h)
4462 echo "\$ac_cs_usage"; exit 0 ;;
4463 *) echo "\$ac_cs_usage"; exit 1 ;;
4467 ac_given_srcdir=$srcdir
4468 ac_given_INSTALL="$INSTALL"
4470 trap 'rm -fr `echo "Makefile config/Makefile h/Makefile sbr/Makefile uip/Makefile \
4471 zotnet/Makefile zotnet/mts/Makefile zotnet/tws/Makefile \
4472 zotnet/mf/Makefile zotnet/bboards/Makefile mts/Makefile \
4473 mts/smtp/Makefile mts/sendmail/Makefile mts/mmdf/Makefile \
4474 etc/Makefile man/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4476 cat >> $CONFIG_STATUS <<EOF
4478 # Protect against being on the right side of a sed subst in config.status.
4479 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4480 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4484 s%@CFLAGS@%$CFLAGS%g
4485 s%@CPPFLAGS@%$CPPFLAGS%g
4486 s%@CXXFLAGS@%$CXXFLAGS%g
4487 s%@FFLAGS@%$FFLAGS%g
4489 s%@LDFLAGS@%$LDFLAGS%g
4491 s%@exec_prefix@%$exec_prefix%g
4492 s%@prefix@%$prefix%g
4493 s%@program_transform_name@%$program_transform_name%g
4494 s%@bindir@%$bindir%g
4495 s%@sbindir@%$sbindir%g
4496 s%@libexecdir@%$libexecdir%g
4497 s%@datadir@%$datadir%g
4498 s%@sysconfdir@%$sysconfdir%g
4499 s%@sharedstatedir@%$sharedstatedir%g
4500 s%@localstatedir@%$localstatedir%g
4501 s%@libdir@%$libdir%g
4502 s%@includedir@%$includedir%g
4503 s%@oldincludedir@%$oldincludedir%g
4504 s%@infodir@%$infodir%g
4505 s%@mandir@%$mandir%g
4507 s%@host_alias@%$host_alias%g
4508 s%@host_cpu@%$host_cpu%g
4509 s%@host_vendor@%$host_vendor%g
4510 s%@host_os@%$host_os%g
4511 s%@target@%$target%g
4512 s%@target_alias@%$target_alias%g
4513 s%@target_cpu@%$target_cpu%g
4514 s%@target_vendor@%$target_vendor%g
4515 s%@target_os@%$target_os%g
4517 s%@build_alias@%$build_alias%g
4518 s%@build_cpu@%$build_cpu%g
4519 s%@build_vendor@%$build_vendor%g
4520 s%@build_os@%$build_os%g
4521 s%@VERSION@%$VERSION%g
4522 s%@masquerade@%$masquerade%g
4523 s%@APOPLIB@%$APOPLIB%g
4524 s%@POPLIB@%$POPLIB%g
4525 s%@POPSED@%$POPSED%g
4527 s%@MTSLIB@%$MTSLIB%g
4528 s%@smtpservers@%$smtpservers%g
4530 s%@SET_MAKE@%$SET_MAKE%g
4531 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4532 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4533 s%@INSTALL_DATA@%$INSTALL_DATA%g
4534 s%@RANLIB@%$RANLIB%g
4537 s%@LEXLIB@%$LEXLIB%g
4538 s%@cutpath@%$cutpath%g
4539 s%@LIBTOOL@%$LIBTOOL%g
4540 s%@GNU_LIBTOOL@%$GNU_LIBTOOL%g
4541 s%@LORDER@%$LORDER%g
4543 s%@lspath@%$lspath%g
4544 s%@morepath@%$morepath%g
4545 s%@pagerpath@%$pagerpath%g
4546 s%@sendmailpath@%$sendmailpath%g
4547 s%@vipath@%$vipath%g
4548 s%@editorpath@%$editorpath%g
4549 s%@mailspool@%$mailspool%g
4550 s%@SETGID_MAIL@%$SETGID_MAIL%g
4551 s%@MAIL_SPOOL_GRP@%$MAIL_SPOOL_GRP%g
4553 s%@LIBOBJS@%$LIBOBJS%g
4554 s%@TERMLIB@%$TERMLIB%g
4555 s%@HESIOD_INCLUDES@%$HESIOD_INCLUDES%g
4556 s%@HESIOD_LIBS@%$HESIOD_LIBS%g
4557 s%@KRB4_INCLUDES@%$KRB4_INCLUDES%g
4558 s%@KRB4_LIBS@%$KRB4_LIBS%g
4559 s%@SIGNAL_H@%$SIGNAL_H%g
4564 cat >> $CONFIG_STATUS <<\EOF
4566 # Split the substitutions into bite-sized pieces for seds with
4567 # small command number limits, like on Digital OSF/1 and HP-UX.
4568 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4569 ac_file=1 # Number of current file.
4570 ac_beg=1 # First line for current file.
4571 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4574 while $ac_more_lines; do
4575 if test $ac_beg -gt 1; then
4576 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4578 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4580 if test ! -s conftest.s$ac_file; then
4582 rm -f conftest.s$ac_file
4584 if test -z "$ac_sed_cmds"; then
4585 ac_sed_cmds="sed -f conftest.s$ac_file"
4587 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4589 ac_file=`expr $ac_file + 1`
4591 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4594 if test -z "$ac_sed_cmds"; then
4599 cat >> $CONFIG_STATUS <<EOF
4601 CONFIG_FILES=\${CONFIG_FILES-"Makefile config/Makefile h/Makefile sbr/Makefile uip/Makefile \
4602 zotnet/Makefile zotnet/mts/Makefile zotnet/tws/Makefile \
4603 zotnet/mf/Makefile zotnet/bboards/Makefile mts/Makefile \
4604 mts/smtp/Makefile mts/sendmail/Makefile mts/mmdf/Makefile \
4605 etc/Makefile man/Makefile"}
4607 cat >> $CONFIG_STATUS <<\EOF
4608 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4609 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4611 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4612 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4613 *) ac_file_in="${ac_file}.in" ;;
4616 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4618 # Remove last slash and all that follows it. Not all systems have dirname.
4619 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4620 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4621 # The file is in a subdirectory.
4622 test ! -d "$ac_dir" && mkdir "$ac_dir"
4623 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4624 # A "../" for each directory in $ac_dir_suffix.
4625 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4627 ac_dir_suffix= ac_dots=
4630 case "$ac_given_srcdir" in
4632 if test -z "$ac_dots"; then top_srcdir=.
4633 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4634 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4636 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4637 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4640 case "$ac_given_INSTALL" in
4641 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4642 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4645 echo creating "$ac_file"
4647 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4649 *Makefile*) ac_comsub="1i\\
4650 # $configure_input" ;;
4654 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4656 s%@configure_input@%$configure_input%g
4657 s%@srcdir@%$srcdir%g
4658 s%@top_srcdir@%$top_srcdir%g
4659 s%@INSTALL@%$INSTALL%g
4660 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4664 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4665 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4667 # ac_d sets the value in "#define NAME VALUE" lines.
4668 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4669 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4672 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4673 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4674 ac_uB='\([ ]\)%\1#\2define\3'
4677 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4678 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4679 ac_eB='$%\1#\2define\3'
4683 if test "${CONFIG_HEADERS+set}" != set; then
4685 cat >> $CONFIG_STATUS <<EOF
4686 CONFIG_HEADERS="config.h"
4688 cat >> $CONFIG_STATUS <<\EOF
4690 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4691 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4693 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4694 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4695 *) ac_file_in="${ac_file}.in" ;;
4698 echo creating $ac_file
4700 rm -f conftest.frag conftest.in conftest.out
4701 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4702 cat $ac_file_inputs > conftest.in
4706 # Transform confdefs.h into a sed script conftest.vals that substitutes
4707 # the proper values into config.h.in to produce config.h. And first:
4708 # Protect against being on the right side of a sed subst in config.status.
4709 # Protect against being in an unquoted here document in config.status.
4711 cat > conftest.hdr <<\EOF
4714 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4718 sed -n -f conftest.hdr confdefs.h > conftest.vals
4721 # This sed command replaces #undef with comments. This is necessary, for
4722 # example, in the case of _POSIX_SOURCE, which is predefined and required
4723 # on some systems where configure will not decide to define it.
4724 cat >> conftest.vals <<\EOF
4725 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4728 # Break up conftest.vals because some shells have a limit on
4729 # the size of here documents, and old seds have small limits too.
4734 ac_lines=`grep -c . conftest.vals`
4735 # grep -c gives empty output for an empty file on some AIX systems.
4736 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4737 # Write a limited-size here document to conftest.frag.
4738 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4739 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4741 sed -f conftest.frag conftest.in > conftest.out
4743 mv conftest.out conftest.in
4745 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4747 mv conftest.tail conftest.vals
4751 cat >> $CONFIG_STATUS <<\EOF
4752 rm -f conftest.frag conftest.h
4753 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4754 cat conftest.in >> conftest.h
4756 if cmp -s $ac_file conftest.h 2>/dev/null; then
4757 echo "$ac_file is unchanged"
4760 # Remove last slash and all that follows it. Not all systems have dirname.
4761 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4762 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4763 # The file is in a subdirectory.
4764 test ! -d "$ac_dir" && mkdir "$ac_dir"
4767 mv conftest.h $ac_file
4772 cat >> $CONFIG_STATUS <<EOF
4775 cat >> $CONFIG_STATUS <<\EOF
4777 test -z "$CONFIG_HEADERS" || echo > stamp-h
4780 chmod +x $CONFIG_STATUS
4781 rm -fr confdefs* $ac_clean_files
4782 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4785 eval "nmhbin=${bindir}"; eval "nmhbin2=${nmhbin}"
4786 eval "nmhsysconf=${sysconfdir}"; eval "nmhsysconf2=${nmhsysconf}"
4787 eval "nmhlib=${libdir}"; eval "nmhlib2=${nmhlib}"
4788 eval "nmhman=${mandir}"
4791 if test x"$enable_pop" = x"yes"; then
4792 pop_kinds="yes (pop"
4793 if test x"$enable_apop" = x"yes"; then
4794 pop_kinds="${pop_kinds} apop"
4796 if test x"$with_krb4" = x"yes"; then
4797 pop_kinds="${pop_kinds} kpop"
4799 if test "$pop_kinds" = "yes (pop"; then
4802 pop_kinds="${pop_kinds})"
4809 nmh version : ${VERSION}
4810 target os : ${target}
4812 compiler flags : ${CFLAGS}
4813 linker flags : ${LDFLAGS}
4814 source code location : ${srcdir}
4815 binary install path : ${nmhbin2}
4816 libary install path : ${nmhlib2}
4817 config files install path : ${nmhsysconf2}
4818 man page install path : ${nmhman}
4819 transport system : ${MTS}
4820 default smtp servers : ${smtpservers}
4821 default editor : ${editorpath}
4822 default pager : ${pagerpath}
4823 email address masquerading : ${masquerade}
4824 pop is enabled : ${pop_kinds}"