3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --enable-apop enable client-side support for POP3 and APOP"
17 --enable-debug enable nmh code debugging"
19 --enable-masquerade[='draft_from mmailid username_extension']
20 enable up to 3 types of address masquerading [none]"
22 --enable-mhe enable mhe support (DEFAULT)"
24 --enable-pop enable client-side support for plain POP3"
26 --with-hesiod=PREFIX specify location of Hesiod"
28 --with-krb4=PREFIX specify location of Kerberos V4 for KPOP support"
30 --with-editor=EDITOR specify the default editor"
32 --with-cyrus-sasl=<dir> Specify location of Cyrus SASL library for auth"
34 --with-mts=MTS specify the default mail transport agent/service"
36 --with-pager=PAGER specify the default pager"
38 --with-smtpservers='SMTPSERVER1[ SMTPSERVER2...]'
39 specify the default SMTP server(s) [localhost]"
40 ac_default_prefix=/usr/local/nmh
42 # Initialize some variables set by options.
43 # The variables have the same names as the options, with
44 # dashes changed to underlines.
46 cache_file=./config.cache
55 program_transform_name=s,x,x,
63 bindir='${exec_prefix}/bin'
64 sbindir='${exec_prefix}/sbin'
65 libexecdir='${exec_prefix}/libexec'
66 datadir='${prefix}/share'
67 sysconfdir='${prefix}/etc'
68 sharedstatedir='${prefix}/com'
69 localstatedir='${prefix}/var'
70 libdir='${exec_prefix}/lib'
71 includedir='${prefix}/include'
72 oldincludedir='/usr/include'
73 infodir='${prefix}/info'
74 mandir='${prefix}/man'
76 # Initialize some other variables.
79 SHELL=${CONFIG_SHELL-/bin/sh}
80 # Maximum number of lines to put in a shell here document.
87 # If the previous option needs an argument, assign it.
88 if test -n "$ac_prev"; then
89 eval "$ac_prev=\$ac_option"
95 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
99 # Accept the important Cygnus configure options, so we can diagnose typos.
103 -bindir | --bindir | --bindi | --bind | --bin | --bi)
105 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
106 bindir="$ac_optarg" ;;
108 -build | --build | --buil | --bui | --bu)
110 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
111 build="$ac_optarg" ;;
113 -cache-file | --cache-file | --cache-fil | --cache-fi \
114 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
115 ac_prev=cache_file ;;
116 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
117 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
118 cache_file="$ac_optarg" ;;
120 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
122 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
124 datadir="$ac_optarg" ;;
126 -disable-* | --disable-*)
127 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
128 # Reject names that are not valid shell variable names.
129 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
130 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
132 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
133 eval "enable_${ac_feature}=no" ;;
135 -enable-* | --enable-*)
136 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
137 # Reject names that are not valid shell variable names.
138 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
139 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
141 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
146 eval "enable_${ac_feature}='$ac_optarg'" ;;
148 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
149 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
150 | --exec | --exe | --ex)
151 ac_prev=exec_prefix ;;
152 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
153 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
154 | --exec=* | --exe=* | --ex=*)
155 exec_prefix="$ac_optarg" ;;
157 -gas | --gas | --ga | --g)
158 # Obsolete; use --with-gas.
161 -help | --help | --hel | --he)
162 # Omit some internal or obsolete options to make the list less imposing.
163 # This message is too long to be a string in the A/UX 3.1 sh.
165 Usage: configure [options] [host]
166 Options: [defaults in brackets after descriptions]
168 --cache-file=FILE cache test results in FILE
169 --help print this message
170 --no-create do not create output files
171 --quiet, --silent do not print \`checking...' messages
172 --version print the version of autoconf that created configure
173 Directory and file names:
174 --prefix=PREFIX install architecture-independent files in PREFIX
176 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
178 --bindir=DIR user executables in DIR [EPREFIX/bin]
179 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
180 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
181 --datadir=DIR read-only architecture-independent data in DIR
183 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
184 --sharedstatedir=DIR modifiable architecture-independent data in DIR
186 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
187 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
188 --includedir=DIR C header files in DIR [PREFIX/include]
189 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
190 --infodir=DIR info documentation in DIR [PREFIX/info]
191 --mandir=DIR man documentation in DIR [PREFIX/man]
192 --srcdir=DIR find the sources in DIR [configure dir or ..]
193 --program-prefix=PREFIX prepend PREFIX to installed program names
194 --program-suffix=SUFFIX append SUFFIX to installed program names
195 --program-transform-name=PROGRAM
196 run sed PROGRAM on installed program names
200 --build=BUILD configure for building on BUILD [BUILD=HOST]
201 --host=HOST configure for HOST [guessed]
202 --target=TARGET configure for TARGET [TARGET=HOST]
203 Features and packages:
204 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
205 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
206 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
207 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
208 --x-includes=DIR X include files are in DIR
209 --x-libraries=DIR X library files are in DIR
211 if test -n "$ac_help"; then
212 echo "--enable and --with options recognized:$ac_help"
216 -host | --host | --hos | --ho)
218 -host=* | --host=* | --hos=* | --ho=*)
221 -includedir | --includedir | --includedi | --included | --include \
222 | --includ | --inclu | --incl | --inc)
223 ac_prev=includedir ;;
224 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
225 | --includ=* | --inclu=* | --incl=* | --inc=*)
226 includedir="$ac_optarg" ;;
228 -infodir | --infodir | --infodi | --infod | --info | --inf)
230 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
231 infodir="$ac_optarg" ;;
233 -libdir | --libdir | --libdi | --libd)
235 -libdir=* | --libdir=* | --libdi=* | --libd=*)
236 libdir="$ac_optarg" ;;
238 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
239 | --libexe | --libex | --libe)
240 ac_prev=libexecdir ;;
241 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
242 | --libexe=* | --libex=* | --libe=*)
243 libexecdir="$ac_optarg" ;;
245 -localstatedir | --localstatedir | --localstatedi | --localstated \
246 | --localstate | --localstat | --localsta | --localst \
247 | --locals | --local | --loca | --loc | --lo)
248 ac_prev=localstatedir ;;
249 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
250 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
251 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
252 localstatedir="$ac_optarg" ;;
254 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
256 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
257 mandir="$ac_optarg" ;;
260 # Obsolete; use --without-fp.
263 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
267 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
268 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
271 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
272 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
273 | --oldin | --oldi | --old | --ol | --o)
274 ac_prev=oldincludedir ;;
275 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
276 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
277 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
278 oldincludedir="$ac_optarg" ;;
280 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
282 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
283 prefix="$ac_optarg" ;;
285 -program-prefix | --program-prefix | --program-prefi | --program-pref \
286 | --program-pre | --program-pr | --program-p)
287 ac_prev=program_prefix ;;
288 -program-prefix=* | --program-prefix=* | --program-prefi=* \
289 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
290 program_prefix="$ac_optarg" ;;
292 -program-suffix | --program-suffix | --program-suffi | --program-suff \
293 | --program-suf | --program-su | --program-s)
294 ac_prev=program_suffix ;;
295 -program-suffix=* | --program-suffix=* | --program-suffi=* \
296 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
297 program_suffix="$ac_optarg" ;;
299 -program-transform-name | --program-transform-name \
300 | --program-transform-nam | --program-transform-na \
301 | --program-transform-n | --program-transform- \
302 | --program-transform | --program-transfor \
303 | --program-transfo | --program-transf \
304 | --program-trans | --program-tran \
305 | --progr-tra | --program-tr | --program-t)
306 ac_prev=program_transform_name ;;
307 -program-transform-name=* | --program-transform-name=* \
308 | --program-transform-nam=* | --program-transform-na=* \
309 | --program-transform-n=* | --program-transform-=* \
310 | --program-transform=* | --program-transfor=* \
311 | --program-transfo=* | --program-transf=* \
312 | --program-trans=* | --program-tran=* \
313 | --progr-tra=* | --program-tr=* | --program-t=*)
314 program_transform_name="$ac_optarg" ;;
316 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
317 | -silent | --silent | --silen | --sile | --sil)
320 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
322 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
324 sbindir="$ac_optarg" ;;
326 -sharedstatedir | --sharedstatedir | --sharedstatedi \
327 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
328 | --sharedst | --shareds | --shared | --share | --shar \
330 ac_prev=sharedstatedir ;;
331 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
332 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
333 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
335 sharedstatedir="$ac_optarg" ;;
337 -site | --site | --sit)
339 -site=* | --site=* | --sit=*)
342 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
344 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
345 srcdir="$ac_optarg" ;;
347 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
348 | --syscon | --sysco | --sysc | --sys | --sy)
349 ac_prev=sysconfdir ;;
350 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
351 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
352 sysconfdir="$ac_optarg" ;;
354 -target | --target | --targe | --targ | --tar | --ta | --t)
356 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
357 target="$ac_optarg" ;;
359 -v | -verbose | --verbose | --verbos | --verbo | --verb)
362 -version | --version | --versio | --versi | --vers)
363 echo "configure generated by autoconf version 2.13"
367 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
368 # Reject names that are not valid shell variable names.
369 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
370 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
372 ac_package=`echo $ac_package| sed 's/-/_/g'`
377 eval "with_${ac_package}='$ac_optarg'" ;;
379 -without-* | --without-*)
380 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
381 # Reject names that are not valid shell variable names.
382 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
383 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
385 ac_package=`echo $ac_package| sed 's/-/_/g'`
386 eval "with_${ac_package}=no" ;;
389 # Obsolete; use --with-x.
392 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
393 | --x-incl | --x-inc | --x-in | --x-i)
394 ac_prev=x_includes ;;
395 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
396 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
397 x_includes="$ac_optarg" ;;
399 -x-libraries | --x-libraries | --x-librarie | --x-librari \
400 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
401 ac_prev=x_libraries ;;
402 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
403 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
404 x_libraries="$ac_optarg" ;;
406 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
410 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
411 echo "configure: warning: $ac_option: invalid host type" 1>&2
413 if test "x$nonopt" != xNONE; then
414 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
422 if test -n "$ac_prev"; then
423 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
426 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
428 # File descriptor usage:
431 # 2 errors and warnings
432 # 3 some systems may open it to /dev/tty
433 # 4 used on the Kubota Titan
434 # 6 checking for... messages and results
435 # 5 compiler messages saved in config.log
436 if test "$silent" = yes; then
444 This file contains any messages produced by compilers while
445 running configure, to aid debugging if configure makes a mistake.
448 # Strip out --no-create and --no-recursion so they do not pile up.
449 # Also quote any args containing shell metacharacters.
454 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
455 | --no-cr | --no-c) ;;
456 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
457 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
458 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
459 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
460 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
465 # Only set these to C if already set. These must not be set unconditionally
466 # because not all systems understand e.g. LANG=C (notably SCO).
467 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
468 # Non-C LC_CTYPE values break the ctype check.
469 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
470 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
471 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
472 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
474 # confdefs.h avoids OS command line length limits that DEFS can exceed.
475 rm -rf conftest* confdefs.h
476 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
479 # A filename unique to this package, relative to the directory that
480 # configure is in, which we can look for to find out if srcdir is correct.
481 ac_unique_file=h/nmh.h
483 # Find the source files, if location was not specified.
484 if test -z "$srcdir"; then
485 ac_srcdir_defaulted=yes
486 # Try the directory containing this script, then its parent.
488 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
489 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
491 if test ! -r $srcdir/$ac_unique_file; then
495 ac_srcdir_defaulted=no
497 if test ! -r $srcdir/$ac_unique_file; then
498 if test "$ac_srcdir_defaulted" = yes; then
499 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
501 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
504 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
506 # Prefer explicitly selected file to automatically selected ones.
507 if test -z "$CONFIG_SITE"; then
508 if test "x$prefix" != xNONE; then
509 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
511 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
514 for ac_site_file in $CONFIG_SITE; do
515 if test -r "$ac_site_file"; then
516 echo "loading site script $ac_site_file"
521 if test -r "$cache_file"; then
522 echo "loading cache $cache_file"
525 echo "creating cache $cache_file"
530 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
531 ac_cpp='$CPP $CPPFLAGS'
532 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
533 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
534 cross_compiling=$ac_cv_prog_cc_cross
538 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
539 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
540 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
547 ac_n= ac_c='\c' ac_t=
554 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
555 if test -f $ac_dir/install-sh; then
557 ac_install_sh="$ac_aux_dir/install-sh -c"
559 elif test -f $ac_dir/install.sh; then
561 ac_install_sh="$ac_aux_dir/install.sh -c"
565 if test -z "$ac_aux_dir"; then
566 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
568 ac_config_guess=$ac_aux_dir/config.guess
569 ac_config_sub=$ac_aux_dir/config.sub
570 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
573 # Do some error checking and defaulting for the host and target type.
575 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
578 # 1. You are not allowed to specify --host, --target, and nonopt at the
580 # 2. Host defaults to nonopt.
581 # 3. If nonopt is not specified, then host defaults to the current host,
582 # as determined by config.guess.
583 # 4. Target and build default to nonopt.
584 # 5. If nonopt is not specified, then target and build default to host.
586 # The aliases save the names the user supplied, while $host etc.
587 # will get canonicalized.
588 case $host---$target---$nonopt in
589 NONE---*---* | *---NONE---* | *---*---NONE) ;;
590 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
594 # Make sure we can run config.sub.
595 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
596 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
599 echo $ac_n "checking host system type""... $ac_c" 1>&6
600 echo "configure:601: checking host system type" >&5
603 case "$host_alias" in
607 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
608 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
610 *) host_alias=$nonopt ;;
614 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
615 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
616 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
617 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
618 echo "$ac_t""$host" 1>&6
620 echo $ac_n "checking target system type""... $ac_c" 1>&6
621 echo "configure:622: checking target system type" >&5
624 case "$target_alias" in
627 NONE) target_alias=$host_alias ;;
628 *) target_alias=$nonopt ;;
632 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
633 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
634 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
635 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
636 echo "$ac_t""$target" 1>&6
638 echo $ac_n "checking build system type""... $ac_c" 1>&6
639 echo "configure:640: checking build system type" >&5
642 case "$build_alias" in
645 NONE) build_alias=$host_alias ;;
646 *) build_alias=$nonopt ;;
650 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
651 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
652 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
653 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
654 echo "$ac_t""$build" 1>&6
656 test "$host_alias" != "$target_alias" &&
657 test "$program_prefix$program_suffix$program_transform_name" = \
659 program_prefix=${target_alias}-
666 VERSION=`sed -e 's/nmh-//' ${srcdir}/VERSION`
667 echo "configuring for nmh-$VERSION"
670 # Check whether --enable-apop or --disable-apop was given.
671 if test "${enable_apop+set}" = set; then
672 enableval="$enable_apop"
676 if test x"$enable_apop" = x"yes"; then
677 cat >> confdefs.h <<\EOF
684 # Check whether --enable-debug or --disable-debug was given.
685 if test "${enable_debug+set}" = set; then
686 enableval="$enable_debug"
690 if test x"$enable_nmh_debug" = x"yes"; then
694 # Check whether --enable-masquerade or --disable-masquerade was given.
695 if test "${enable_masquerade+set}" = set; then
696 enableval="$enable_masquerade"
697 if test x"$enable_masquerade" = x"yes"; then
698 masquerade="draft_from mmailid username_extension"
700 masquerade="$enable_masquerade"
705 # Check whether --enable-mhe or --disable-mhe was given.
706 if test "${enable_mhe+set}" = set; then
707 enableval="$enable_mhe"
712 if test x"$enable_mhe" != x"no" -a x"$enable_nmh_mhe" != x"no"; then
713 cat >> confdefs.h <<\EOF
718 # Check whether --enable-pop or --disable-pop was given.
719 if test "${enable_pop+set}" = set; then
720 enableval="$enable_pop"
724 if test x"$enable_nmh_pop" = x"yes"; then
728 # Check whether --with-hesiod or --without-hesiod was given.
729 if test "${with_hesiod+set}" = set; then
730 withval="$with_hesiod"
734 if test x"$with_hesiod" != x -a x"$with_hesiod" != x"no"; then
735 cat >> confdefs.h <<\EOF
740 # Check whether --with-krb4 or --without-krb4 was given.
741 if test "${with_krb4+set}" = set; then
746 if test x"$with_krb4" != x -a x"$with_krb4" != x"no"; then
748 cat >> confdefs.h <<\EOF
751 cat >> confdefs.h <<\EOF
752 #define KPOP_PRINCIPAL "pop"
756 if test x"$enable_pop" = x"yes"; then
757 cat >> confdefs.h <<\EOF
761 POPSED='/^%nmhbeginpop%/d;/^%nmhendpop%/d'
763 POPSED='/^%nmhbeginpop%/,/^%nmhendpop%/d'
766 # Check whether --with-editor or --without-editor was given.
767 if test "${with_editor+set}" = set; then
768 withval="$with_editor"
773 if test -n "$with_editor"; then
774 editorpath="$with_editor"
777 # Check whether --with-cyrus-sasl or --without-cyrus-sasl was given.
778 if test "${with_cyrus_sasl+set}" = set; then
779 withval="$with_cyrus_sasl"
783 if test x"$with_cyrus_sasl" != x -a x"$with_cyrus_sasl" != "no"; then
784 cat >> confdefs.h <<\EOF
789 # Check whether --with-mts or --without-mts was given.
790 if test "${with_mts+set}" = set; then
796 if test x"$with_mts" = x"smtp"; then
798 elif test x"$with_mts" = x"sendmail"; then
804 cat >> confdefs.h <<\EOF
808 # Check whether --with-pager or --without-pager was given.
809 if test "${with_pager+set}" = set; then
810 withval="$with_pager"
815 if test -n "$with_pager"; then
816 pagerpath="$with_pager"
819 # Check whether --with-smtpservers or --without-smtpservers was given.
820 if test "${with_smtpservers+set}" = set; then
821 withval="$with_smtpservers"
825 if test -n "$with_smtpservers"; then
826 smtpservers="$with_smtpservers"
828 smtpservers="localhost"
833 test -z "$CFLAGS" && CFLAGS= auto_cflags=1
834 if test x"$enable_debug" = x"yes"; then
835 test -z "$LDFLAGS" && LDFLAGS=-g
838 # Extract the first word of "gcc", so it can be a program name with args.
839 set dummy gcc; ac_word=$2
840 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
841 echo "configure:842: checking for $ac_word" >&5
842 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
843 echo $ac_n "(cached) $ac_c" 1>&6
845 if test -n "$CC"; then
846 ac_cv_prog_CC="$CC" # Let the user override the test.
848 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
850 for ac_dir in $ac_dummy; do
851 test -z "$ac_dir" && ac_dir=.
852 if test -f $ac_dir/$ac_word; then
861 if test -n "$CC"; then
862 echo "$ac_t""$CC" 1>&6
864 echo "$ac_t""no" 1>&6
867 if test -z "$CC"; then
868 # Extract the first word of "cc", so it can be a program name with args.
869 set dummy cc; ac_word=$2
870 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
871 echo "configure:872: checking for $ac_word" >&5
872 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
873 echo $ac_n "(cached) $ac_c" 1>&6
875 if test -n "$CC"; then
876 ac_cv_prog_CC="$CC" # Let the user override the test.
878 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
881 for ac_dir in $ac_dummy; do
882 test -z "$ac_dir" && ac_dir=.
883 if test -f $ac_dir/$ac_word; then
884 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
893 if test $ac_prog_rejected = yes; then
894 # We found a bogon in the path, so make sure we never use it.
895 set dummy $ac_cv_prog_CC
897 if test $# -gt 0; then
898 # We chose a different compiler from the bogus one.
899 # However, it has the same basename, so the bogon will be chosen
900 # first if we set CC to just the basename; use the full file name.
902 set dummy "$ac_dir/$ac_word" "$@"
910 if test -n "$CC"; then
911 echo "$ac_t""$CC" 1>&6
913 echo "$ac_t""no" 1>&6
916 if test -z "$CC"; then
919 # Extract the first word of "cl", so it can be a program name with args.
920 set dummy cl; ac_word=$2
921 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
922 echo "configure:923: checking for $ac_word" >&5
923 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
924 echo $ac_n "(cached) $ac_c" 1>&6
926 if test -n "$CC"; then
927 ac_cv_prog_CC="$CC" # Let the user override the test.
929 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
931 for ac_dir in $ac_dummy; do
932 test -z "$ac_dir" && ac_dir=.
933 if test -f $ac_dir/$ac_word; then
942 if test -n "$CC"; then
943 echo "$ac_t""$CC" 1>&6
945 echo "$ac_t""no" 1>&6
950 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
953 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
954 echo "configure:955: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
957 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
958 ac_cpp='$CPP $CPPFLAGS'
959 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
960 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
961 cross_compiling=$ac_cv_prog_cc_cross
963 cat > conftest.$ac_ext << EOF
965 #line 966 "configure"
966 #include "confdefs.h"
970 if { (eval echo configure:971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
971 ac_cv_prog_cc_works=yes
972 # If we can't run a trivial program, we are probably using a cross compiler.
973 if (./conftest; exit) 2>/dev/null; then
974 ac_cv_prog_cc_cross=no
976 ac_cv_prog_cc_cross=yes
979 echo "configure: failed program was:" >&5
980 cat conftest.$ac_ext >&5
981 ac_cv_prog_cc_works=no
985 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
986 ac_cpp='$CPP $CPPFLAGS'
987 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
988 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
989 cross_compiling=$ac_cv_prog_cc_cross
991 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
992 if test $ac_cv_prog_cc_works = no; then
993 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
995 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
996 echo "configure:997: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
997 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
998 cross_compiling=$ac_cv_prog_cc_cross
1000 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1001 echo "configure:1002: checking whether we are using GNU C" >&5
1002 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1003 echo $ac_n "(cached) $ac_c" 1>&6
1005 cat > conftest.c <<EOF
1010 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1011: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1017 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1019 if test $ac_cv_prog_gcc = yes; then
1025 ac_test_CFLAGS="${CFLAGS+set}"
1026 ac_save_CFLAGS="$CFLAGS"
1028 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1029 echo "configure:1030: checking whether ${CC-cc} accepts -g" >&5
1030 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1031 echo $ac_n "(cached) $ac_c" 1>&6
1033 echo 'void f(){}' > conftest.c
1034 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1043 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1044 if test "$ac_test_CFLAGS" = set; then
1045 CFLAGS="$ac_save_CFLAGS"
1046 elif test $ac_cv_prog_cc_g = yes; then
1047 if test "$GCC" = yes; then
1053 if test "$GCC" = yes; then
1061 if test -n "$auto_cflags"; then
1062 if test x"$enable_debug" = x"yes"; then
1063 if test -n "$GCC"; then
1064 test -z "$CFLAGS" && CFLAGS="-Wall -g" || CFLAGS="$CFLAGS -Wall -g"
1066 test -z "$CFLAGS" && CFLAGS=-g || CFLAGS="$CFLAGS -g"
1069 test -z "$LDFLAGS" && LDFLAGS=-s
1070 if test -n "$GCC"; then
1071 test -z "$CFLAGS" && CFLAGS="-Wall -O2" || CFLAGS="$CFLAGS -Wall -O2"
1073 test -z "$CFLAGS" && CFLAGS=-O || CFLAGS="$CFLAGS -O"
1078 echo $ac_n "checking for working const""... $ac_c" 1>&6
1079 echo "configure:1080: checking for working const" >&5
1080 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1081 echo $ac_n "(cached) $ac_c" 1>&6
1083 cat > conftest.$ac_ext <<EOF
1084 #line 1085 "configure"
1085 #include "confdefs.h"
1089 /* Ultrix mips cc rejects this. */
1090 typedef int charset[2]; const charset x;
1091 /* SunOS 4.1.1 cc rejects this. */
1092 char const *const *ccp;
1094 /* NEC SVR4.0.2 mips cc rejects this. */
1095 struct point {int x, y;};
1096 static struct point const zero = {0,0};
1097 /* AIX XL C 1.02.0.0 rejects this.
1098 It does not let you subtract one const X* pointer from another in an arm
1099 of an if-expression whose if-part is not a constant expression */
1100 const char *g = "string";
1101 ccp = &g + (g ? g-g : 0);
1102 /* HPUX 7.0 cc rejects these. */
1105 ccp = (char const *const *) p;
1106 { /* SCO 3.2v4 cc rejects this. */
1108 char const *s = 0 ? (char *) 0 : (char const *) 0;
1112 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1114 const int *foo = &x[0];
1117 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1118 typedef const int *iptr;
1122 { /* AIX XL C 1.02.0.0 rejects this saying
1123 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1124 struct s { int j; const int *ap[3]; };
1125 struct s *b; b->j = 5;
1127 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1133 if { (eval echo configure:1134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1137 echo "configure: failed program was:" >&5
1138 cat conftest.$ac_ext >&5
1145 echo "$ac_t""$ac_cv_c_const" 1>&6
1146 if test $ac_cv_c_const = no; then
1147 cat >> confdefs.h <<\EOF
1153 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1154 echo "configure:1155: checking whether ${MAKE-make} sets \${MAKE}" >&5
1155 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1156 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1157 echo $ac_n "(cached) $ac_c" 1>&6
1159 cat > conftestmake <<\EOF
1161 @echo 'ac_maketemp="${MAKE}"'
1163 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1164 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1165 if test -n "$ac_maketemp"; then
1166 eval ac_cv_prog_make_${ac_make}_set=yes
1168 eval ac_cv_prog_make_${ac_make}_set=no
1172 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1173 echo "$ac_t""yes" 1>&6
1176 echo "$ac_t""no" 1>&6
1177 SET_MAKE="MAKE=${MAKE-make}"
1179 # Find a good install program. We prefer a C program (faster),
1180 # so one script is as good as another. But avoid the broken or
1181 # incompatible versions:
1182 # SysV /etc/install, /usr/sbin/install
1183 # SunOS /usr/etc/install
1184 # IRIX /sbin/install
1186 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1187 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1188 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1189 # ./install, which can be erroneously created by make from ./install.sh.
1190 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1191 echo "configure:1192: checking for a BSD compatible install" >&5
1192 if test -z "$INSTALL"; then
1193 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1194 echo $ac_n "(cached) $ac_c" 1>&6
1196 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1197 for ac_dir in $PATH; do
1198 # Account for people who put trailing slashes in PATH elements.
1200 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1202 # OSF1 and SCO ODT 3.0 have their own names for install.
1203 # Don't use installbsd from OSF since it installs stuff as root
1205 for ac_prog in ginstall scoinst install; do
1206 if test -f $ac_dir/$ac_prog; then
1207 if test $ac_prog = install &&
1208 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1209 # AIX install. It has an incompatible calling convention.
1212 ac_cv_path_install="$ac_dir/$ac_prog -c"
1223 if test "${ac_cv_path_install+set}" = set; then
1224 INSTALL="$ac_cv_path_install"
1226 # As a last resort, use the slow shell script. We don't cache a
1227 # path for INSTALL within a source directory, because that will
1228 # break other packages using the cache if that directory is
1229 # removed, or if the path is relative.
1230 INSTALL="$ac_install_sh"
1233 echo "$ac_t""$INSTALL" 1>&6
1235 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1236 # It thinks the first close brace ends the variable substitution.
1237 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1239 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1241 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1242 # Extract the first word of "ranlib", so it can be a program name with args.
1243 set dummy ranlib; ac_word=$2
1244 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1245 echo "configure:1246: checking for $ac_word" >&5
1246 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1247 echo $ac_n "(cached) $ac_c" 1>&6
1249 if test -n "$RANLIB"; then
1250 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1252 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1254 for ac_dir in $ac_dummy; do
1255 test -z "$ac_dir" && ac_dir=.
1256 if test -f $ac_dir/$ac_word; then
1257 ac_cv_prog_RANLIB="ranlib"
1262 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1265 RANLIB="$ac_cv_prog_RANLIB"
1266 if test -n "$RANLIB"; then
1267 echo "$ac_t""$RANLIB" 1>&6
1269 echo "$ac_t""no" 1>&6
1271 for ac_prog in mawk gawk nawk awk
1273 # Extract the first word of "$ac_prog", so it can be a program name with args.
1274 set dummy $ac_prog; ac_word=$2
1275 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1276 echo "configure:1277: checking for $ac_word" >&5
1277 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1278 echo $ac_n "(cached) $ac_c" 1>&6
1280 if test -n "$AWK"; then
1281 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1283 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1285 for ac_dir in $ac_dummy; do
1286 test -z "$ac_dir" && ac_dir=.
1287 if test -f $ac_dir/$ac_word; then
1288 ac_cv_prog_AWK="$ac_prog"
1295 AWK="$ac_cv_prog_AWK"
1296 if test -n "$AWK"; then
1297 echo "$ac_t""$AWK" 1>&6
1299 echo "$ac_t""no" 1>&6
1302 test -n "$AWK" && break
1304 # Extract the first word of "flex", so it can be a program name with args.
1305 set dummy flex; ac_word=$2
1306 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1307 echo "configure:1308: checking for $ac_word" >&5
1308 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1309 echo $ac_n "(cached) $ac_c" 1>&6
1311 if test -n "$LEX"; then
1312 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1314 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1316 for ac_dir in $ac_dummy; do
1317 test -z "$ac_dir" && ac_dir=.
1318 if test -f $ac_dir/$ac_word; then
1319 ac_cv_prog_LEX="flex"
1324 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1327 LEX="$ac_cv_prog_LEX"
1328 if test -n "$LEX"; then
1329 echo "$ac_t""$LEX" 1>&6
1331 echo "$ac_t""no" 1>&6
1334 if test -z "$LEXLIB"
1340 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1341 echo "configure:1342: checking for yywrap in -l$ac_lib" >&5
1342 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1343 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1344 echo $ac_n "(cached) $ac_c" 1>&6
1346 ac_save_LIBS="$LIBS"
1347 LIBS="-l$ac_lib $LIBS"
1348 cat > conftest.$ac_ext <<EOF
1349 #line 1350 "configure"
1350 #include "confdefs.h"
1351 /* Override any gcc2 internal prototype to avoid an error. */
1352 /* We use char because int might match the return type of a gcc2
1353 builtin and then its argument prototype would still apply. */
1360 if { (eval echo configure:1361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1362 eval "ac_cv_lib_$ac_lib_var=yes"
1364 echo "configure: failed program was:" >&5
1365 cat conftest.$ac_ext >&5
1367 eval "ac_cv_lib_$ac_lib_var=no"
1370 LIBS="$ac_save_LIBS"
1373 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1374 echo "$ac_t""yes" 1>&6
1377 echo "$ac_t""no" 1>&6
1382 pathtmp=/usr/bin:/bin:/usr/local/bin:/usr/xpg4/bin:/usr/ucb
1383 # Extract the first word of "cut", so it can be a program name with args.
1384 set dummy cut; ac_word=$2
1385 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1386 echo "configure:1387: checking for $ac_word" >&5
1387 if eval "test \"`echo '$''{'ac_cv_path_cutpath'+set}'`\" = set"; then
1388 echo $ac_n "(cached) $ac_c" 1>&6
1392 ac_cv_path_cutpath="$cutpath" # Let the user override the test with a path.
1395 ac_cv_path_cutpath="$cutpath" # Let the user override the test with a dos path.
1398 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1400 for ac_dir in $ac_dummy; do
1401 test -z "$ac_dir" && ac_dir=.
1402 if test -f $ac_dir/$ac_word; then
1403 ac_cv_path_cutpath="$ac_dir/$ac_word"
1408 test -z "$ac_cv_path_cutpath" && ac_cv_path_cutpath="no"
1412 cutpath="$ac_cv_path_cutpath"
1413 if test -n "$cutpath"; then
1414 echo "$ac_t""$cutpath" 1>&6
1416 echo "$ac_t""no" 1>&6
1420 # Extract the first word of "lclint", so it can be a program name with args.
1421 set dummy lclint; ac_word=$2
1422 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1423 echo "configure:1424: checking for $ac_word" >&5
1424 if eval "test \"`echo '$''{'ac_cv_prog_linttmp1'+set}'`\" = set"; then
1425 echo $ac_n "(cached) $ac_c" 1>&6
1427 if test -n "$linttmp1"; then
1428 ac_cv_prog_linttmp1="$linttmp1" # Let the user override the test.
1430 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1432 for ac_dir in $ac_dummy; do
1433 test -z "$ac_dir" && ac_dir=.
1434 if test -f $ac_dir/$ac_word; then
1435 ac_cv_prog_linttmp1="lclint"
1440 test -z "$ac_cv_prog_linttmp1" && ac_cv_prog_linttmp1="no"
1443 linttmp1="$ac_cv_prog_linttmp1"
1444 if test -n "$linttmp1"; then
1445 echo "$ac_t""$linttmp1" 1>&6
1447 echo "$ac_t""no" 1>&6
1449 if test x$ac_cv_prog_linttmp1 != xno ; then
1450 LINT=$ac_cv_prog_linttmp1
1451 LINTFLAGS="-weak +posixlib -macrovarprefixexclude"
1453 # Extract the first word of "lint", so it can be a program name with args.
1454 set dummy lint; ac_word=$2
1455 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1456 echo "configure:1457: checking for $ac_word" >&5
1457 if eval "test \"`echo '$''{'ac_cv_prog_linttmp2'+set}'`\" = set"; then
1458 echo $ac_n "(cached) $ac_c" 1>&6
1460 if test -n "$linttmp2"; then
1461 ac_cv_prog_linttmp2="$linttmp2" # Let the user override the test.
1463 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1465 for ac_dir in $ac_dummy; do
1466 test -z "$ac_dir" && ac_dir=.
1467 if test -f $ac_dir/$ac_word; then
1468 ac_cv_prog_linttmp2="lint"
1473 test -z "$ac_cv_prog_linttmp2" && ac_cv_prog_linttmp2="no"
1476 linttmp2="$ac_cv_prog_linttmp2"
1477 if test -n "$linttmp2"; then
1478 echo "$ac_t""$linttmp2" 1>&6
1480 echo "$ac_t""no" 1>&6
1482 if test x$ac_cv_prog_linttmp2 != xno ; then
1483 LINT=$ac_cv_prog_linttmp2
1486 LINT="echo 'No lint program found'"
1493 # Extract the first word of "libtool", so it can be a program name with args.
1494 set dummy libtool; ac_word=$2
1495 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1496 echo "configure:1497: checking for $ac_word" >&5
1497 if eval "test \"`echo '$''{'ac_cv_prog_LIBTOOL'+set}'`\" = set"; then
1498 echo $ac_n "(cached) $ac_c" 1>&6
1500 if test -n "$LIBTOOL"; then
1501 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
1503 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1505 for ac_dir in $ac_dummy; do
1506 test -z "$ac_dir" && ac_dir=.
1507 if test -f $ac_dir/$ac_word; then
1508 ac_cv_prog_LIBTOOL="libtool"
1515 LIBTOOL="$ac_cv_prog_LIBTOOL"
1516 if test -n "$LIBTOOL"; then
1517 echo "$ac_t""$LIBTOOL" 1>&6
1519 echo "$ac_t""no" 1>&6
1523 tmptest=`$LIBTOOL --version 2>&1 | grep GNU`
1524 if test x"$tmptest" != x ; then
1529 # Extract the first word of "lorder", so it can be a program name with args.
1530 set dummy lorder; ac_word=$2
1531 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1532 echo "configure:1533: checking for $ac_word" >&5
1533 if eval "test \"`echo '$''{'ac_cv_prog_LORDER'+set}'`\" = set"; then
1534 echo $ac_n "(cached) $ac_c" 1>&6
1536 if test -n "$LORDER"; then
1537 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
1539 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1541 for ac_dir in $ac_dummy; do
1542 test -z "$ac_dir" && ac_dir=.
1543 if test -f $ac_dir/$ac_word; then
1544 ac_cv_prog_LORDER="lorder"
1549 test -z "$ac_cv_prog_LORDER" && ac_cv_prog_LORDER="no"
1552 LORDER="$ac_cv_prog_LORDER"
1553 if test -n "$LORDER"; then
1554 echo "$ac_t""$LORDER" 1>&6
1556 echo "$ac_t""no" 1>&6
1558 # Extract the first word of "tsort", so it can be a program name with args.
1559 set dummy tsort; ac_word=$2
1560 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1561 echo "configure:1562: checking for $ac_word" >&5
1562 if eval "test \"`echo '$''{'ac_cv_prog_TSORT'+set}'`\" = set"; then
1563 echo $ac_n "(cached) $ac_c" 1>&6
1565 if test -n "$TSORT"; then
1566 ac_cv_prog_TSORT="$TSORT" # Let the user override the test.
1568 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1570 for ac_dir in $ac_dummy; do
1571 test -z "$ac_dir" && ac_dir=.
1572 if test -f $ac_dir/$ac_word; then
1573 ac_cv_prog_TSORT="tsort"
1578 test -z "$ac_cv_prog_TSORT" && ac_cv_prog_TSORT="no"
1581 TSORT="$ac_cv_prog_TSORT"
1582 if test -n "$TSORT"; then
1583 echo "$ac_t""$TSORT" 1>&6
1585 echo "$ac_t""no" 1>&6
1588 if test x$ac_cv_prog_LORDER != xlorder -o x$ac_cv_prog_TSORT != xtsort; then
1593 echo $ac_n "checking whether tsort can deal with loops""... $ac_c" 1>&6
1594 echo "configure:1595: checking whether tsort can deal with loops" >&5
1595 if eval "test \"`echo '$''{'nmh_cv_tsort_loop'+set}'`\" = set"; then
1596 echo $ac_n "(cached) $ac_c" 1>&6
1598 if test -z "`echo a b b a | tsort 2>/dev/null | grep a`" ; then
1599 nmh_cv_tsort_loop=no
1601 nmh_cv_tsort_loop=yes
1605 echo "$ac_t""$nmh_cv_tsort_loop" 1>&6
1606 if test x$nmh_cv_tsort_loop = xno ; then
1611 pathtmp=/usr/bin:/bin:/usr/local/bin:/usr/xpg4/bin:/usr/ucb
1612 # Extract the first word of "ls", so it can be a program name with args.
1613 set dummy ls; 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_lspath'+set}'`\" = set"; then
1617 echo $ac_n "(cached) $ac_c" 1>&6
1621 ac_cv_path_lspath="$lspath" # Let the user override the test with a path.
1624 ac_cv_path_lspath="$lspath" # 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_lspath="$ac_dir/$ac_word"
1637 test -z "$ac_cv_path_lspath" && ac_cv_path_lspath="no"
1641 lspath="$ac_cv_path_lspath"
1642 if test -n "$lspath"; then
1643 echo "$ac_t""$lspath" 1>&6
1645 echo "$ac_t""no" 1>&6
1649 if test "$lspath" != "no"; then
1650 echo $ac_n "checking how to get ls to show us the group ownership of a file""... $ac_c" 1>&6
1651 echo "configure:1652: checking how to get ls to show us the group ownership of a file" >&5
1652 if eval "test \"`echo '$''{'nmh_cv_ls_grpopt'+set}'`\" = set"; then
1653 echo $ac_n "(cached) $ac_c" 1>&6
1655 if test x"`$lspath -dl / | $AWK '{print $9}'`" = x"/"; then
1656 nmh_cv_ls_grpopt="-l"
1658 nmh_cv_ls_grpopt="-lg"
1662 echo "$ac_t""$nmh_cv_ls_grpopt" 1>&6
1665 pathtmp=/usr/bin:/bin:/usr/ucb:/usr/local/bin
1666 # Extract the first word of "more", so it can be a program name with args.
1667 set dummy more; ac_word=$2
1668 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1669 echo "configure:1670: checking for $ac_word" >&5
1670 if eval "test \"`echo '$''{'ac_cv_path_morepath'+set}'`\" = set"; then
1671 echo $ac_n "(cached) $ac_c" 1>&6
1675 ac_cv_path_morepath="$morepath" # Let the user override the test with a path.
1678 ac_cv_path_morepath="$morepath" # Let the user override the test with a dos path.
1681 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1683 for ac_dir in $ac_dummy; do
1684 test -z "$ac_dir" && ac_dir=.
1685 if test -f $ac_dir/$ac_word; then
1686 ac_cv_path_morepath="$ac_dir/$ac_word"
1691 test -z "$ac_cv_path_morepath" && ac_cv_path_morepath="no"
1695 morepath="$ac_cv_path_morepath"
1696 if test -n "$morepath"; then
1697 echo "$ac_t""$morepath" 1>&6
1699 echo "$ac_t""no" 1>&6
1703 if test -z "$pagerpath"; then
1704 pagerpath="$morepath"
1707 pathtmp=/usr/lib:/usr/sbin:/usr/etc:/usr/ucblib:/usr/bin:/bin
1708 # Extract the first word of "sendmail", so it can be a program name with args.
1709 set dummy sendmail; ac_word=$2
1710 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1711 echo "configure:1712: checking for $ac_word" >&5
1712 if eval "test \"`echo '$''{'ac_cv_path_sendmailpath'+set}'`\" = set"; then
1713 echo $ac_n "(cached) $ac_c" 1>&6
1715 case "$sendmailpath" in
1717 ac_cv_path_sendmailpath="$sendmailpath" # Let the user override the test with a path.
1720 ac_cv_path_sendmailpath="$sendmailpath" # Let the user override the test with a dos path.
1723 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1725 for ac_dir in $ac_dummy; do
1726 test -z "$ac_dir" && ac_dir=.
1727 if test -f $ac_dir/$ac_word; then
1728 ac_cv_path_sendmailpath="$ac_dir/$ac_word"
1733 test -z "$ac_cv_path_sendmailpath" && ac_cv_path_sendmailpath="no"
1737 sendmailpath="$ac_cv_path_sendmailpath"
1738 if test -n "$sendmailpath"; then
1739 echo "$ac_t""$sendmailpath" 1>&6
1741 echo "$ac_t""no" 1>&6
1745 pathtmp=/usr/bin:/bin:/usr/ucb:/usr/local/bin
1746 # Extract the first word of "vi", so it can be a program name with args.
1747 set dummy vi; ac_word=$2
1748 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1749 echo "configure:1750: checking for $ac_word" >&5
1750 if eval "test \"`echo '$''{'ac_cv_path_vipath'+set}'`\" = set"; then
1751 echo $ac_n "(cached) $ac_c" 1>&6
1755 ac_cv_path_vipath="$vipath" # Let the user override the test with a path.
1758 ac_cv_path_vipath="$vipath" # Let the user override the test with a dos path.
1761 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1763 for ac_dir in $ac_dummy; do
1764 test -z "$ac_dir" && ac_dir=.
1765 if test -f $ac_dir/$ac_word; then
1766 ac_cv_path_vipath="$ac_dir/$ac_word"
1771 test -z "$ac_cv_path_vipath" && ac_cv_path_vipath="no"
1775 vipath="$ac_cv_path_vipath"
1776 if test -n "$vipath"; then
1777 echo "$ac_t""$vipath" 1>&6
1779 echo "$ac_t""no" 1>&6
1783 if test -z "$editorpath"; then
1784 editorpath="$vipath"
1787 echo $ac_n "checking for broken vi""... $ac_c" 1>&6
1788 echo "configure:1789: checking for broken vi" >&5
1789 if eval "test \"`echo '$''{'nmh_cv_attvibug'+set}'`\" = set"; then
1790 echo $ac_n "(cached) $ac_c" 1>&6
1792 if echo 'r /nonexist-file
1793 q' | ex > /dev/null 2>&1
1801 echo "$ac_t""$nmh_cv_attvibug" 1>&6
1803 if test "$nmh_cv_attvibug" = yes; then
1804 cat >> confdefs.h <<\EOF
1809 echo $ac_n "checking where mail spool is located""... $ac_c" 1>&6
1810 echo "configure:1811: checking where mail spool is located" >&5
1811 if eval "test \"`echo '$''{'nmh_cv_mailspool'+set}'`\" = set"; then
1812 echo $ac_n "(cached) $ac_c" 1>&6
1814 for mailspool in /var/mail /var/spool/mail /usr/spool/mail /dev/null; do
1815 test -d $mailspool && break
1817 nmh_cv_mailspool=$mailspool
1821 echo "$ac_t""$nmh_cv_mailspool" 1>&6
1822 mailspool=$nmh_cv_mailspool
1824 if test "$lspath" != "no" -a "$cutpath" != "no"; then
1825 echo $ac_n "checking whether the mail spool is world-writable""... $ac_c" 1>&6
1826 echo "configure:1827: checking whether the mail spool is world-writable" >&5
1827 if eval "test \"`echo '$''{'nmh_cv_mailspool_world_writable'+set}'`\" = set"; then
1828 echo $ac_n "(cached) $ac_c" 1>&6
1830 if test "`$lspath -dlL $mailspool | $cutpath -c9`" = "-"; then
1831 nmh_cv_mailspool_world_writable=no
1833 nmh_cv_mailspool_world_writable=yes
1837 echo "$ac_t""$nmh_cv_mailspool_world_writable" 1>&6
1840 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1841 echo "configure:1842: checking how to run the C preprocessor" >&5
1842 # On Suns, sometimes $CPP names a directory.
1843 if test -n "$CPP" && test -d "$CPP"; then
1846 if test -z "$CPP"; then
1847 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1848 echo $ac_n "(cached) $ac_c" 1>&6
1850 # This must be in double quotes, not single quotes, because CPP may get
1851 # substituted into the Makefile and "${CC-cc}" will confuse make.
1853 # On the NeXT, cc -E runs the code through the compiler's parser,
1854 # not just through cpp.
1855 cat > conftest.$ac_ext <<EOF
1856 #line 1857 "configure"
1857 #include "confdefs.h"
1861 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1862 { (eval echo configure:1863: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1863 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1864 if test -z "$ac_err"; then
1868 echo "configure: failed program was:" >&5
1869 cat conftest.$ac_ext >&5
1871 CPP="${CC-cc} -E -traditional-cpp"
1872 cat > conftest.$ac_ext <<EOF
1873 #line 1874 "configure"
1874 #include "confdefs.h"
1878 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1879 { (eval echo configure:1880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1880 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1881 if test -z "$ac_err"; then
1885 echo "configure: failed program was:" >&5
1886 cat conftest.$ac_ext >&5
1888 CPP="${CC-cc} -nologo -E"
1889 cat > conftest.$ac_ext <<EOF
1890 #line 1891 "configure"
1891 #include "confdefs.h"
1895 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1896 { (eval echo configure:1897: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1897 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1898 if test -z "$ac_err"; then
1902 echo "configure: failed program was:" >&5
1903 cat conftest.$ac_ext >&5
1912 ac_cv_prog_CPP="$CPP"
1914 CPP="$ac_cv_prog_CPP"
1916 ac_cv_prog_CPP="$CPP"
1918 echo "$ac_t""$CPP" 1>&6
1920 ac_safe=`echo "lockfile.h" | sed 'y%./+-%__p_%'`
1921 echo $ac_n "checking for lockfile.h""... $ac_c" 1>&6
1922 echo "configure:1923: checking for lockfile.h" >&5
1923 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1924 echo $ac_n "(cached) $ac_c" 1>&6
1926 cat > conftest.$ac_ext <<EOF
1927 #line 1928 "configure"
1928 #include "confdefs.h"
1929 #include <lockfile.h>
1931 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1932 { (eval echo configure:1933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1933 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1934 if test -z "$ac_err"; then
1936 eval "ac_cv_header_$ac_safe=yes"
1939 echo "configure: failed program was:" >&5
1940 cat conftest.$ac_ext >&5
1942 eval "ac_cv_header_$ac_safe=no"
1946 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1947 echo "$ac_t""yes" 1>&6
1948 echo $ac_n "checking for lockfile_create in -llockfile""... $ac_c" 1>&6
1949 echo "configure:1950: checking for lockfile_create in -llockfile" >&5
1950 ac_lib_var=`echo lockfile'_'lockfile_create | sed 'y%./+-%__p_%'`
1951 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1952 echo $ac_n "(cached) $ac_c" 1>&6
1954 ac_save_LIBS="$LIBS"
1955 LIBS="-llockfile $LIBS"
1956 cat > conftest.$ac_ext <<EOF
1957 #line 1958 "configure"
1958 #include "confdefs.h"
1959 /* Override any gcc2 internal prototype to avoid an error. */
1960 /* We use char because int might match the return type of a gcc2
1961 builtin and then its argument prototype would still apply. */
1962 char lockfile_create();
1968 if { (eval echo configure:1969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1970 eval "ac_cv_lib_$ac_lib_var=yes"
1972 echo "configure: failed program was:" >&5
1973 cat conftest.$ac_ext >&5
1975 eval "ac_cv_lib_$ac_lib_var=no"
1978 LIBS="$ac_save_LIBS"
1981 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1982 echo "$ac_t""yes" 1>&6
1983 ac_tr_lib=HAVE_LIB`echo lockfile | sed -e 's/^a-zA-Z0-9_/_/g' \
1984 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1985 cat >> confdefs.h <<EOF
1986 #define $ac_tr_lib 1
1989 LIBS="-llockfile $LIBS"
1992 echo "$ac_t""no" 1>&6
1996 echo "$ac_t""no" 1>&6
2000 # Extract the first word of "dotlockfile", so it can be a program name with args.
2001 set dummy dotlockfile; ac_word=$2
2002 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2003 echo "configure:2004: checking for $ac_word" >&5
2004 if eval "test \"`echo '$''{'ac_cv_path_dotlockfilepath'+set}'`\" = set"; then
2005 echo $ac_n "(cached) $ac_c" 1>&6
2007 case "$dotlockfilepath" in
2009 ac_cv_path_dotlockfilepath="$dotlockfilepath" # Let the user override the test with a path.
2012 ac_cv_path_dotlockfilepath="$dotlockfilepath" # Let the user override the test with a dos path.
2015 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2017 for ac_dir in $ac_dummy; do
2018 test -z "$ac_dir" && ac_dir=.
2019 if test -f $ac_dir/$ac_word; then
2020 ac_cv_path_dotlockfilepath="$ac_dir/$ac_word"
2025 test -z "$ac_cv_path_dotlockfilepath" && ac_cv_path_dotlockfilepath="no"
2029 dotlockfilepath="$ac_cv_path_dotlockfilepath"
2030 if test -n "$dotlockfilepath"; then
2031 echo "$ac_t""$dotlockfilepath" 1>&6
2033 echo "$ac_t""no" 1>&6
2036 if test "$ac_cv_lib_lockfile_lockfile_create" != "no" ; then
2037 if test "$ac_cv_path_dotlockfilepath" != "no" ; then
2038 echo $ac_n "checking whether dotlockfile is setgid""... $ac_c" 1>&6
2039 echo "configure:2040: checking whether dotlockfile is setgid" >&5
2040 if eval "test \"`echo '$''{'nmh_cv_dotlockfile_setgid'+set}'`\" = set"; then
2041 echo $ac_n "(cached) $ac_c" 1>&6
2043 if test -g "$ac_cv_path_dotlockfilepath" ; then
2044 nmh_cv_dotlockfile_setgid=yes
2046 nmh_cv_dotlockfile_setgid=no
2050 echo "$ac_t""$nmh_cv_dotlockfile_setgid" 1>&6
2054 if test x"$nmh_cv_mailspool_world_writable" = x"no" -a x"$nmh_cv_dotlockfile_setgid" != x"yes" ; then
2055 cat >> confdefs.h <<\EOF
2061 echo $ac_n "checking what group owns the mail spool""... $ac_c" 1>&6
2062 echo "configure:2063: checking what group owns the mail spool" >&5
2063 if eval "test \"`echo '$''{'nmh_cv_ls_mail_grp'+set}'`\" = set"; then
2064 echo $ac_n "(cached) $ac_c" 1>&6
2066 nmh_cv_ls_mail_grp=`$lspath -dL $nmh_cv_ls_grpopt $mailspool|$AWK '{print $4}'`
2070 echo "$ac_t""$nmh_cv_ls_mail_grp" 1>&6
2071 MAIL_SPOOL_GRP=$nmh_cv_ls_mail_grp
2074 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2076 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2077 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2078 echo "configure:2079: checking for $ac_hdr that defines DIR" >&5
2079 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2080 echo $ac_n "(cached) $ac_c" 1>&6
2082 cat > conftest.$ac_ext <<EOF
2083 #line 2084 "configure"
2084 #include "confdefs.h"
2085 #include <sys/types.h>
2091 if { (eval echo configure:2092: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2093 eval "ac_cv_header_dirent_$ac_safe=yes"
2095 echo "configure: failed program was:" >&5
2096 cat conftest.$ac_ext >&5
2098 eval "ac_cv_header_dirent_$ac_safe=no"
2102 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2103 echo "$ac_t""yes" 1>&6
2104 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2105 cat >> confdefs.h <<EOF
2106 #define $ac_tr_hdr 1
2108 ac_header_dirent=$ac_hdr; break
2110 echo "$ac_t""no" 1>&6
2113 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2114 if test $ac_header_dirent = dirent.h; then
2115 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2116 echo "configure:2117: checking for opendir in -ldir" >&5
2117 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2118 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2119 echo $ac_n "(cached) $ac_c" 1>&6
2121 ac_save_LIBS="$LIBS"
2123 cat > conftest.$ac_ext <<EOF
2124 #line 2125 "configure"
2125 #include "confdefs.h"
2126 /* Override any gcc2 internal prototype to avoid an error. */
2127 /* We use char because int might match the return type of a gcc2
2128 builtin and then its argument prototype would still apply. */
2135 if { (eval echo configure:2136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2137 eval "ac_cv_lib_$ac_lib_var=yes"
2139 echo "configure: failed program was:" >&5
2140 cat conftest.$ac_ext >&5
2142 eval "ac_cv_lib_$ac_lib_var=no"
2145 LIBS="$ac_save_LIBS"
2148 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2149 echo "$ac_t""yes" 1>&6
2152 echo "$ac_t""no" 1>&6
2156 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2157 echo "configure:2158: checking for opendir in -lx" >&5
2158 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2159 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2160 echo $ac_n "(cached) $ac_c" 1>&6
2162 ac_save_LIBS="$LIBS"
2164 cat > conftest.$ac_ext <<EOF
2165 #line 2166 "configure"
2166 #include "confdefs.h"
2167 /* Override any gcc2 internal prototype to avoid an error. */
2168 /* We use char because int might match the return type of a gcc2
2169 builtin and then its argument prototype would still apply. */
2176 if { (eval echo configure:2177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2178 eval "ac_cv_lib_$ac_lib_var=yes"
2180 echo "configure: failed program was:" >&5
2181 cat conftest.$ac_ext >&5
2183 eval "ac_cv_lib_$ac_lib_var=no"
2186 LIBS="$ac_save_LIBS"
2189 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2190 echo "$ac_t""yes" 1>&6
2193 echo "$ac_t""no" 1>&6
2198 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2199 echo "configure:2200: checking for ANSI C header files" >&5
2200 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2201 echo $ac_n "(cached) $ac_c" 1>&6
2203 cat > conftest.$ac_ext <<EOF
2204 #line 2205 "configure"
2205 #include "confdefs.h"
2211 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2212 { (eval echo configure:2213: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2213 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2214 if test -z "$ac_err"; then
2216 ac_cv_header_stdc=yes
2219 echo "configure: failed program was:" >&5
2220 cat conftest.$ac_ext >&5
2222 ac_cv_header_stdc=no
2226 if test $ac_cv_header_stdc = yes; then
2227 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2228 cat > conftest.$ac_ext <<EOF
2229 #line 2230 "configure"
2230 #include "confdefs.h"
2233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2234 egrep "memchr" >/dev/null 2>&1; then
2238 ac_cv_header_stdc=no
2244 if test $ac_cv_header_stdc = yes; then
2245 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2246 cat > conftest.$ac_ext <<EOF
2247 #line 2248 "configure"
2248 #include "confdefs.h"
2251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2252 egrep "free" >/dev/null 2>&1; then
2256 ac_cv_header_stdc=no
2262 if test $ac_cv_header_stdc = yes; then
2263 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2264 if test "$cross_compiling" = yes; then
2267 cat > conftest.$ac_ext <<EOF
2268 #line 2269 "configure"
2269 #include "confdefs.h"
2271 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2272 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2273 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2274 int main () { int i; for (i = 0; i < 256; i++)
2275 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2279 if { (eval echo configure:2280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2283 echo "configure: failed program was:" >&5
2284 cat conftest.$ac_ext >&5
2286 ac_cv_header_stdc=no
2294 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2295 if test $ac_cv_header_stdc = yes; then
2296 cat >> confdefs.h <<\EOF
2297 #define STDC_HEADERS 1
2302 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2303 echo "configure:2304: checking whether time.h and sys/time.h may both be included" >&5
2304 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2305 echo $ac_n "(cached) $ac_c" 1>&6
2307 cat > conftest.$ac_ext <<EOF
2308 #line 2309 "configure"
2309 #include "confdefs.h"
2310 #include <sys/types.h>
2311 #include <sys/time.h>
2317 if { (eval echo configure:2318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2319 ac_cv_header_time=yes
2321 echo "configure: failed program was:" >&5
2322 cat conftest.$ac_ext >&5
2324 ac_cv_header_time=no
2329 echo "$ac_t""$ac_cv_header_time" 1>&6
2330 if test $ac_cv_header_time = yes; then
2331 cat >> confdefs.h <<\EOF
2332 #define TIME_WITH_SYS_TIME 1
2337 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2338 echo "configure:2339: checking for sys/wait.h that is POSIX.1 compatible" >&5
2339 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2340 echo $ac_n "(cached) $ac_c" 1>&6
2342 cat > conftest.$ac_ext <<EOF
2343 #line 2344 "configure"
2344 #include "confdefs.h"
2345 #include <sys/types.h>
2346 #include <sys/wait.h>
2348 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2351 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2356 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2359 if { (eval echo configure:2360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2361 ac_cv_header_sys_wait_h=yes
2363 echo "configure: failed program was:" >&5
2364 cat conftest.$ac_ext >&5
2366 ac_cv_header_sys_wait_h=no
2371 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2372 if test $ac_cv_header_sys_wait_h = yes; then
2373 cat >> confdefs.h <<\EOF
2374 #define HAVE_SYS_WAIT_H 1
2379 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
2380 echo "configure:2381: checking whether stat file-mode macros are broken" >&5
2381 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
2382 echo $ac_n "(cached) $ac_c" 1>&6
2384 cat > conftest.$ac_ext <<EOF
2385 #line 2386 "configure"
2386 #include "confdefs.h"
2387 #include <sys/types.h>
2388 #include <sys/stat.h>
2390 #if defined(S_ISBLK) && defined(S_IFDIR)
2391 # if S_ISBLK (S_IFDIR)
2396 #if defined(S_ISBLK) && defined(S_IFCHR)
2397 # if S_ISBLK (S_IFCHR)
2402 #if defined(S_ISLNK) && defined(S_IFREG)
2403 # if S_ISLNK (S_IFREG)
2408 #if defined(S_ISSOCK) && defined(S_IFREG)
2409 # if S_ISSOCK (S_IFREG)
2415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2416 egrep "You lose" >/dev/null 2>&1; then
2418 ac_cv_header_stat_broken=yes
2421 ac_cv_header_stat_broken=no
2427 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
2428 if test $ac_cv_header_stat_broken = yes; then
2429 cat >> confdefs.h <<\EOF
2430 #define STAT_MACROS_BROKEN 1
2435 for ac_hdr in string.h memory.h stdlib.h unistd.h errno.h fcntl.h \
2436 limits.h crypt.h termcap.h termio.h termios.h locale.h \
2437 netdb.h sys/param.h sys/time.h sys/utsname.h arpa/inet.h \
2440 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2441 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2442 echo "configure:2443: checking for $ac_hdr" >&5
2443 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2444 echo $ac_n "(cached) $ac_c" 1>&6
2446 cat > conftest.$ac_ext <<EOF
2447 #line 2448 "configure"
2448 #include "confdefs.h"
2451 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2452 { (eval echo configure:2453: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2453 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2454 if test -z "$ac_err"; then
2456 eval "ac_cv_header_$ac_safe=yes"
2459 echo "configure: failed program was:" >&5
2460 cat conftest.$ac_ext >&5
2462 eval "ac_cv_header_$ac_safe=no"
2466 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2467 echo "$ac_t""yes" 1>&6
2468 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2469 cat >> confdefs.h <<EOF
2470 #define $ac_tr_hdr 1
2474 echo "$ac_t""no" 1>&6
2480 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
2481 echo "configure:2482: checking POSIX termios" >&5
2482 if eval "test \"`echo '$''{'nmh_cv_sys_posix_termios'+set}'`\" = set"; then
2483 echo $ac_n "(cached) $ac_c" 1>&6
2485 cat > conftest.$ac_ext <<EOF
2486 #line 2487 "configure"
2487 #include "confdefs.h"
2488 #include <sys/types.h>
2490 #include <termios.h>
2492 /* SunOS 4.0.3 has termios.h but not the library calls. */
2496 if { (eval echo configure:2497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2498 nmh_cv_sys_posix_termios=yes
2500 echo "configure: failed program was:" >&5
2501 cat conftest.$ac_ext >&5
2503 nmh_cv_sys_posix_termios=no
2508 echo "$ac_t""$nmh_cv_sys_posix_termios" 1>&6
2510 if test $nmh_cv_sys_posix_termios = yes; then
2511 echo $ac_n "checking TIOCGWINSZ in termios.h""... $ac_c" 1>&6
2512 echo "configure:2513: checking TIOCGWINSZ in termios.h" >&5
2513 if eval "test \"`echo '$''{'nmh_cv_header_termios_h_tiocgwinsz'+set}'`\" = set"; then
2514 echo $ac_n "(cached) $ac_c" 1>&6
2516 cat > conftest.$ac_ext <<EOF
2517 #line 2518 "configure"
2518 #include "confdefs.h"
2519 #include <sys/types.h>
2520 #include <termios.h>
2525 if { (eval echo configure:2526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2527 nmh_cv_header_termios_h_tiocgwinsz=yes
2529 echo "configure: failed program was:" >&5
2530 cat conftest.$ac_ext >&5
2532 nmh_cv_header_termios_h_tiocgwinsz=no
2537 echo "$ac_t""$nmh_cv_header_termios_h_tiocgwinsz" 1>&6
2539 nmh_cv_header_termios_h_tiocgwinsz=no
2542 if test $nmh_cv_header_termios_h_tiocgwinsz = no; then
2543 echo $ac_n "checking TIOCGWINSZ in sys/ioctl.h""... $ac_c" 1>&6
2544 echo "configure:2545: checking TIOCGWINSZ in sys/ioctl.h" >&5
2545 if eval "test \"`echo '$''{'nmh_cv_header_sys_ioctl_h_tiocgwinsz'+set}'`\" = set"; then
2546 echo $ac_n "(cached) $ac_c" 1>&6
2548 cat > conftest.$ac_ext <<EOF
2549 #line 2550 "configure"
2550 #include "confdefs.h"
2551 #include <sys/types.h>
2552 #include <sys/ioctl.h>
2557 if { (eval echo configure:2558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2559 nmh_cv_header_sys_ioctl_h_tiocgwinsz=yes
2561 echo "configure: failed program was:" >&5
2562 cat conftest.$ac_ext >&5
2564 nmh_cv_header_sys_ioctl_h_tiocgwinsz=no
2569 echo "$ac_t""$nmh_cv_header_sys_ioctl_h_tiocgwinsz" 1>&6
2570 if test $nmh_cv_header_sys_ioctl_h_tiocgwinsz = yes; then
2571 cat >> confdefs.h <<\EOF
2572 #define GWINSZ_IN_SYS_IOCTL 1
2578 ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2579 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2580 echo "configure:2581: checking for libio.h" >&5
2581 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2582 echo $ac_n "(cached) $ac_c" 1>&6
2584 cat > conftest.$ac_ext <<EOF
2585 #line 2586 "configure"
2586 #include "confdefs.h"
2589 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2590 { (eval echo configure:2591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2591 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2592 if test -z "$ac_err"; then
2594 eval "ac_cv_header_$ac_safe=yes"
2597 echo "configure: failed program was:" >&5
2598 cat conftest.$ac_ext >&5
2600 eval "ac_cv_header_$ac_safe=no"
2604 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2605 echo "$ac_t""yes" 1>&6
2607 cat > conftest.$ac_ext <<EOF
2608 #line 2609 "configure"
2609 #include "confdefs.h"
2612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2613 egrep "_IO_write_ptr" >/dev/null 2>&1; then
2616 cat >> confdefs.h <<\EOF
2617 #define LINUX_STDIO 1
2624 echo "$ac_t""no" 1>&6
2628 ac_safe=`echo "sys/ptem.h" | sed 'y%./+-%__p_%'`
2629 echo $ac_n "checking for sys/ptem.h""... $ac_c" 1>&6
2630 echo "configure:2631: checking for sys/ptem.h" >&5
2631 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2632 echo $ac_n "(cached) $ac_c" 1>&6
2634 cat > conftest.$ac_ext <<EOF
2635 #line 2636 "configure"
2636 #include "confdefs.h"
2637 #include <sys/ptem.h>
2639 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2640 { (eval echo configure:2641: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2641 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2642 if test -z "$ac_err"; then
2644 eval "ac_cv_header_$ac_safe=yes"
2647 echo "configure: failed program was:" >&5
2648 cat conftest.$ac_ext >&5
2650 eval "ac_cv_header_$ac_safe=no"
2654 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2655 echo "$ac_t""yes" 1>&6
2656 cat >> confdefs.h <<\EOF
2657 #define WINSIZE_IN_PTEM 1
2661 echo "$ac_t""no" 1>&6
2665 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2666 echo "configure:2667: checking for pid_t" >&5
2667 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2668 echo $ac_n "(cached) $ac_c" 1>&6
2670 cat > conftest.$ac_ext <<EOF
2671 #line 2672 "configure"
2672 #include "confdefs.h"
2673 #include <sys/types.h>
2679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2680 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2682 ac_cv_type_pid_t=yes
2690 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2691 if test $ac_cv_type_pid_t = no; then
2692 cat >> confdefs.h <<\EOF
2698 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2699 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2700 echo "configure:2701: checking for vfork.h" >&5
2701 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2702 echo $ac_n "(cached) $ac_c" 1>&6
2704 cat > conftest.$ac_ext <<EOF
2705 #line 2706 "configure"
2706 #include "confdefs.h"
2709 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2710 { (eval echo configure:2711: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2711 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2712 if test -z "$ac_err"; then
2714 eval "ac_cv_header_$ac_safe=yes"
2717 echo "configure: failed program was:" >&5
2718 cat conftest.$ac_ext >&5
2720 eval "ac_cv_header_$ac_safe=no"
2724 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2725 echo "$ac_t""yes" 1>&6
2726 cat >> confdefs.h <<\EOF
2727 #define HAVE_VFORK_H 1
2731 echo "$ac_t""no" 1>&6
2734 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2735 echo "configure:2736: checking for working vfork" >&5
2736 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2737 echo $ac_n "(cached) $ac_c" 1>&6
2739 if test "$cross_compiling" = yes; then
2740 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2741 echo "configure:2742: checking for vfork" >&5
2742 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2743 echo $ac_n "(cached) $ac_c" 1>&6
2745 cat > conftest.$ac_ext <<EOF
2746 #line 2747 "configure"
2747 #include "confdefs.h"
2748 /* System header to define __stub macros and hopefully few prototypes,
2749 which can conflict with char vfork(); below. */
2751 /* Override any gcc2 internal prototype to avoid an error. */
2752 /* We use char because int might match the return type of a gcc2
2753 builtin and then its argument prototype would still apply. */
2758 /* The GNU C library defines this for functions which it implements
2759 to always fail with ENOSYS. Some functions are actually named
2760 something starting with __ and the normal name is an alias. */
2761 #if defined (__stub_vfork) || defined (__stub___vfork)
2769 if { (eval echo configure:2770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2771 eval "ac_cv_func_vfork=yes"
2773 echo "configure: failed program was:" >&5
2774 cat conftest.$ac_ext >&5
2776 eval "ac_cv_func_vfork=no"
2781 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2782 echo "$ac_t""yes" 1>&6
2785 echo "$ac_t""no" 1>&6
2788 ac_cv_func_vfork_works=$ac_cv_func_vfork
2790 cat > conftest.$ac_ext <<EOF
2791 #line 2792 "configure"
2792 #include "confdefs.h"
2793 /* Thanks to Paul Eggert for this test. */
2795 #include <sys/types.h>
2796 #include <sys/stat.h>
2797 #ifdef HAVE_UNISTD_H
2803 /* On some sparc systems, changes by the child to local and incoming
2804 argument registers are propagated back to the parent.
2805 The compiler is told about this with #include <vfork.h>,
2806 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2807 Test for this by using a static variable whose address
2808 is put into a register that is clobbered by the vfork. */
2811 sparc_address_test (int arg)
2813 sparc_address_test (arg) int arg;
2831 pid_t parent = getpid ();
2834 sparc_address_test ();
2839 /* Here is another test for sparc vfork register problems.
2840 This test uses lots of local variables, at least
2841 as many local variables as main has allocated so far
2842 including compiler temporaries. 4 locals are enough for
2843 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2844 A buggy compiler should reuse the register of parent
2845 for one of the local variables, since it will think that
2846 parent can't possibly be used any more in this routine.
2847 Assigning to the local variable will thus munge parent
2848 in the parent process. */
2850 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2851 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2852 /* Convince the compiler that p..p7 are live; otherwise, it might
2853 use the same hardware register for all 8 local variables. */
2854 if (p != p1 || p != p2 || p != p3 || p != p4
2855 || p != p5 || p != p6 || p != p7)
2858 /* On some systems (e.g. IRIX 3.3),
2859 vfork doesn't separate parent from child file descriptors.
2860 If the child closes a descriptor before it execs or exits,
2861 this munges the parent's descriptor as well.
2862 Test for this by closing stdout in the child. */
2863 _exit(close(fileno(stdout)) != 0);
2868 while (wait(&status) != child)
2871 /* Was there some problem with vforking? */
2874 /* Did the child fail? (This shouldn't happen.) */
2877 /* Did the vfork/compiler bug occur? */
2878 || parent != getpid()
2880 /* Did the file descriptor bug occur? */
2881 || fstat(fileno(stdout), &st) != 0
2886 if { (eval echo configure:2887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2888 ac_cv_func_vfork_works=yes
2890 echo "configure: failed program was:" >&5
2891 cat conftest.$ac_ext >&5
2893 ac_cv_func_vfork_works=no
2900 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2901 if test $ac_cv_func_vfork_works = no; then
2902 cat >> confdefs.h <<\EOF
2908 echo $ac_n "checking for mkstemp in -lmkstemp""... $ac_c" 1>&6
2909 echo "configure:2910: checking for mkstemp in -lmkstemp" >&5
2910 ac_lib_var=`echo mkstemp'_'mkstemp | sed 'y%./+-%__p_%'`
2911 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2912 echo $ac_n "(cached) $ac_c" 1>&6
2914 ac_save_LIBS="$LIBS"
2915 LIBS="-lmkstemp $LIBS"
2916 cat > conftest.$ac_ext <<EOF
2917 #line 2918 "configure"
2918 #include "confdefs.h"
2919 /* Override any gcc2 internal prototype to avoid an error. */
2920 /* We use char because int might match the return type of a gcc2
2921 builtin and then its argument prototype would still apply. */
2928 if { (eval echo configure:2929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2930 eval "ac_cv_lib_$ac_lib_var=yes"
2932 echo "configure: failed program was:" >&5
2933 cat conftest.$ac_ext >&5
2935 eval "ac_cv_lib_$ac_lib_var=no"
2938 LIBS="$ac_save_LIBS"
2941 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2942 echo "$ac_t""yes" 1>&6
2943 ac_tr_lib=HAVE_LIB`echo mkstemp | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2944 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2945 cat >> confdefs.h <<EOF
2946 #define $ac_tr_lib 1
2949 LIBS="-lmkstemp $LIBS"
2952 echo "$ac_t""no" 1>&6
2955 for ac_func in waitpid wait3 sigaction sigprocmask sigblock sigsetmask \
2956 sighold sigrelse writev lstat uname tzset killpg mkstemp \
2959 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2960 echo "configure:2961: checking for $ac_func" >&5
2961 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2962 echo $ac_n "(cached) $ac_c" 1>&6
2964 cat > conftest.$ac_ext <<EOF
2965 #line 2966 "configure"
2966 #include "confdefs.h"
2967 /* System header to define __stub macros and hopefully few prototypes,
2968 which can conflict with char $ac_func(); below. */
2970 /* Override any gcc2 internal prototype to avoid an error. */
2971 /* We use char because int might match the return type of a gcc2
2972 builtin and then its argument prototype would still apply. */
2977 /* The GNU C library defines this for functions which it implements
2978 to always fail with ENOSYS. Some functions are actually named
2979 something starting with __ and the normal name is an alias. */
2980 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2988 if { (eval echo configure:2989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2990 eval "ac_cv_func_$ac_func=yes"
2992 echo "configure: failed program was:" >&5
2993 cat conftest.$ac_ext >&5
2995 eval "ac_cv_func_$ac_func=no"
3000 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3001 echo "$ac_t""yes" 1>&6
3002 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3003 cat >> confdefs.h <<EOF
3004 #define $ac_tr_func 1
3008 echo "$ac_t""no" 1>&6
3013 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3014 echo "configure:3015: checking for gethostbyname" >&5
3015 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3016 echo $ac_n "(cached) $ac_c" 1>&6
3018 cat > conftest.$ac_ext <<EOF
3019 #line 3020 "configure"
3020 #include "confdefs.h"
3021 /* System header to define __stub macros and hopefully few prototypes,
3022 which can conflict with char gethostbyname(); below. */
3024 /* Override any gcc2 internal prototype to avoid an error. */
3025 /* We use char because int might match the return type of a gcc2
3026 builtin and then its argument prototype would still apply. */
3027 char gethostbyname();
3031 /* The GNU C library defines this for functions which it implements
3032 to always fail with ENOSYS. Some functions are actually named
3033 something starting with __ and the normal name is an alias. */
3034 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3042 if { (eval echo configure:3043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3044 eval "ac_cv_func_gethostbyname=yes"
3046 echo "configure: failed program was:" >&5
3047 cat conftest.$ac_ext >&5
3049 eval "ac_cv_func_gethostbyname=no"
3054 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3055 echo "$ac_t""yes" 1>&6
3056 cat >> confdefs.h <<\EOF
3057 #define HAVE_GETHOSTBYNAME 1
3061 echo "$ac_t""no" 1>&6
3062 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3063 echo "configure:3064: checking for gethostbyname in -lnsl" >&5
3064 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3065 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3066 echo $ac_n "(cached) $ac_c" 1>&6
3068 ac_save_LIBS="$LIBS"
3070 cat > conftest.$ac_ext <<EOF
3071 #line 3072 "configure"
3072 #include "confdefs.h"
3073 /* Override any gcc2 internal prototype to avoid an error. */
3074 /* We use char because int might match the return type of a gcc2
3075 builtin and then its argument prototype would still apply. */
3076 char gethostbyname();
3082 if { (eval echo configure:3083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3084 eval "ac_cv_lib_$ac_lib_var=yes"
3086 echo "configure: failed program was:" >&5
3087 cat conftest.$ac_ext >&5
3089 eval "ac_cv_lib_$ac_lib_var=no"
3092 LIBS="$ac_save_LIBS"
3095 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3096 echo "$ac_t""yes" 1>&6
3097 cat >> confdefs.h <<\EOF
3098 #define HAVE_GETHOSTBYNAME 1
3102 echo "$ac_t""no" 1>&6
3108 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
3109 echo "configure:3110: checking for sigsetjmp" >&5
3110 cat > conftest.$ac_ext <<EOF
3111 #line 3112 "configure"
3112 #include "confdefs.h"
3115 sigsetjmp((void *)0, 0);
3118 if { (eval echo configure:3119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3120 cat >> confdefs.h <<\EOF
3121 #define HAVE_SIGSETJMP 1
3123 echo "$ac_t""yes" 1>&6
3125 echo "configure: failed program was:" >&5
3126 cat conftest.$ac_ext >&5
3128 echo "$ac_t""no" 1>&6
3132 for ac_func in snprintf strerror strdup
3134 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3135 echo "configure:3136: checking for $ac_func" >&5
3136 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3137 echo $ac_n "(cached) $ac_c" 1>&6
3139 cat > conftest.$ac_ext <<EOF
3140 #line 3141 "configure"
3141 #include "confdefs.h"
3142 /* System header to define __stub macros and hopefully few prototypes,
3143 which can conflict with char $ac_func(); below. */
3145 /* Override any gcc2 internal prototype to avoid an error. */
3146 /* We use char because int might match the return type of a gcc2
3147 builtin and then its argument prototype would still apply. */
3152 /* The GNU C library defines this for functions which it implements
3153 to always fail with ENOSYS. Some functions are actually named
3154 something starting with __ and the normal name is an alias. */
3155 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3163 if { (eval echo configure:3164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3165 eval "ac_cv_func_$ac_func=yes"
3167 echo "configure: failed program was:" >&5
3168 cat conftest.$ac_ext >&5
3170 eval "ac_cv_func_$ac_func=no"
3175 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3176 echo "$ac_t""yes" 1>&6
3177 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3178 cat >> confdefs.h <<EOF
3179 #define $ac_tr_func 1
3183 echo "$ac_t""no" 1>&6
3184 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
3190 cat > conftest.$ac_ext <<EOF
3191 #line 3192 "configure"
3192 #include "confdefs.h"
3195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3196 egrep "initgroups" >/dev/null 2>&1; then
3198 cat >> confdefs.h <<\EOF
3199 #define INITGROUPS_HEADER <grp.h>
3204 cat > conftest.$ac_ext <<EOF
3205 #line 3206 "configure"
3206 #include "confdefs.h"
3209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3210 egrep "initgroups" >/dev/null 2>&1; then
3212 cat >> confdefs.h <<\EOF
3213 #define INITGROUPS_HEADER <unistd.h>
3223 cat > conftest.$ac_ext <<EOF
3224 #line 3225 "configure"
3225 #include "confdefs.h"
3228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3229 egrep "snprintf" >/dev/null 2>&1; then
3231 cat >> confdefs.h <<\EOF
3232 #define HAVE_SNPRINTF_PROTOTYPE 1
3239 echo $ac_n "checking for modf""... $ac_c" 1>&6
3240 echo "configure:3241: checking for modf" >&5
3241 if eval "test \"`echo '$''{'ac_cv_func_modf'+set}'`\" = set"; then
3242 echo $ac_n "(cached) $ac_c" 1>&6
3244 cat > conftest.$ac_ext <<EOF
3245 #line 3246 "configure"
3246 #include "confdefs.h"
3247 /* System header to define __stub macros and hopefully few prototypes,
3248 which can conflict with char modf(); below. */
3250 /* Override any gcc2 internal prototype to avoid an error. */
3251 /* We use char because int might match the return type of a gcc2
3252 builtin and then its argument prototype would still apply. */
3257 /* The GNU C library defines this for functions which it implements
3258 to always fail with ENOSYS. Some functions are actually named
3259 something starting with __ and the normal name is an alias. */
3260 #if defined (__stub_modf) || defined (__stub___modf)
3268 if { (eval echo configure:3269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3270 eval "ac_cv_func_modf=yes"
3272 echo "configure: failed program was:" >&5
3273 cat conftest.$ac_ext >&5
3275 eval "ac_cv_func_modf=no"
3280 if eval "test \"`echo '$ac_cv_func_'modf`\" = yes"; then
3281 echo "$ac_t""yes" 1>&6
3284 echo "$ac_t""no" 1>&6
3285 echo $ac_n "checking for modf in -lm""... $ac_c" 1>&6
3286 echo "configure:3287: checking for modf in -lm" >&5
3287 ac_lib_var=`echo m'_'modf | sed 'y%./+-%__p_%'`
3288 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3289 echo $ac_n "(cached) $ac_c" 1>&6
3291 ac_save_LIBS="$LIBS"
3293 cat > conftest.$ac_ext <<EOF
3294 #line 3295 "configure"
3295 #include "confdefs.h"
3296 /* Override any gcc2 internal prototype to avoid an error. */
3297 /* We use char because int might match the return type of a gcc2
3298 builtin and then its argument prototype would still apply. */
3305 if { (eval echo configure:3306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3307 eval "ac_cv_lib_$ac_lib_var=yes"
3309 echo "configure: failed program was:" >&5
3310 cat conftest.$ac_ext >&5
3312 eval "ac_cv_lib_$ac_lib_var=no"
3315 LIBS="$ac_save_LIBS"
3318 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3319 echo "$ac_t""yes" 1>&6
3320 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
3321 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3322 cat >> confdefs.h <<EOF
3323 #define $ac_tr_lib 1
3329 echo "$ac_t""no" 1>&6
3335 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3336 echo "configure:3337: checking for gethostbyname" >&5
3337 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3338 echo $ac_n "(cached) $ac_c" 1>&6
3340 cat > conftest.$ac_ext <<EOF
3341 #line 3342 "configure"
3342 #include "confdefs.h"
3343 /* System header to define __stub macros and hopefully few prototypes,
3344 which can conflict with char gethostbyname(); below. */
3346 /* Override any gcc2 internal prototype to avoid an error. */
3347 /* We use char because int might match the return type of a gcc2
3348 builtin and then its argument prototype would still apply. */
3349 char gethostbyname();
3353 /* The GNU C library defines this for functions which it implements
3354 to always fail with ENOSYS. Some functions are actually named
3355 something starting with __ and the normal name is an alias. */
3356 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3364 if { (eval echo configure:3365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3366 eval "ac_cv_func_gethostbyname=yes"
3368 echo "configure: failed program was:" >&5
3369 cat conftest.$ac_ext >&5
3371 eval "ac_cv_func_gethostbyname=no"
3376 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3377 echo "$ac_t""yes" 1>&6
3380 echo "$ac_t""no" 1>&6
3381 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3382 echo "configure:3383: checking for gethostbyname in -lnsl" >&5
3383 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3384 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3385 echo $ac_n "(cached) $ac_c" 1>&6
3387 ac_save_LIBS="$LIBS"
3389 cat > conftest.$ac_ext <<EOF
3390 #line 3391 "configure"
3391 #include "confdefs.h"
3392 /* Override any gcc2 internal prototype to avoid an error. */
3393 /* We use char because int might match the return type of a gcc2
3394 builtin and then its argument prototype would still apply. */
3395 char gethostbyname();
3401 if { (eval echo configure:3402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3403 eval "ac_cv_lib_$ac_lib_var=yes"
3405 echo "configure: failed program was:" >&5
3406 cat conftest.$ac_ext >&5
3408 eval "ac_cv_lib_$ac_lib_var=no"
3411 LIBS="$ac_save_LIBS"
3414 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3415 echo "$ac_t""yes" 1>&6
3416 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
3417 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3418 cat >> confdefs.h <<EOF
3419 #define $ac_tr_lib 1
3425 echo "$ac_t""no" 1>&6
3426 echo $ac_n "checking for gethostbyname in -lresolv""... $ac_c" 1>&6
3427 echo "configure:3428: checking for gethostbyname in -lresolv" >&5
3428 ac_lib_var=`echo resolv'_'gethostbyname | sed 'y%./+-%__p_%'`
3429 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3430 echo $ac_n "(cached) $ac_c" 1>&6
3432 ac_save_LIBS="$LIBS"
3433 LIBS="-lresolv $LIBS"
3434 cat > conftest.$ac_ext <<EOF
3435 #line 3436 "configure"
3436 #include "confdefs.h"
3437 /* Override any gcc2 internal prototype to avoid an error. */
3438 /* We use char because int might match the return type of a gcc2
3439 builtin and then its argument prototype would still apply. */
3440 char gethostbyname();
3446 if { (eval echo configure:3447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3448 eval "ac_cv_lib_$ac_lib_var=yes"
3450 echo "configure: failed program was:" >&5
3451 cat conftest.$ac_ext >&5
3453 eval "ac_cv_lib_$ac_lib_var=no"
3456 LIBS="$ac_save_LIBS"
3459 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3460 echo "$ac_t""yes" 1>&6
3461 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
3462 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3463 cat >> confdefs.h <<EOF
3464 #define $ac_tr_lib 1
3467 LIBS="-lresolv $LIBS"
3470 echo "$ac_t""no" 1>&6
3477 echo $ac_n "checking for socket""... $ac_c" 1>&6
3478 echo "configure:3479: checking for socket" >&5
3479 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
3480 echo $ac_n "(cached) $ac_c" 1>&6
3482 cat > conftest.$ac_ext <<EOF
3483 #line 3484 "configure"
3484 #include "confdefs.h"
3485 /* System header to define __stub macros and hopefully few prototypes,
3486 which can conflict with char socket(); below. */
3488 /* Override any gcc2 internal prototype to avoid an error. */
3489 /* We use char because int might match the return type of a gcc2
3490 builtin and then its argument prototype would still apply. */
3495 /* The GNU C library defines this for functions which it implements
3496 to always fail with ENOSYS. Some functions are actually named
3497 something starting with __ and the normal name is an alias. */
3498 #if defined (__stub_socket) || defined (__stub___socket)
3506 if { (eval echo configure:3507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3508 eval "ac_cv_func_socket=yes"
3510 echo "configure: failed program was:" >&5
3511 cat conftest.$ac_ext >&5
3513 eval "ac_cv_func_socket=no"
3518 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
3519 echo "$ac_t""yes" 1>&6
3522 echo "$ac_t""no" 1>&6
3523 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
3524 echo "configure:3525: checking for socket in -lsocket" >&5
3525 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
3526 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3527 echo $ac_n "(cached) $ac_c" 1>&6
3529 ac_save_LIBS="$LIBS"
3530 LIBS="-lsocket $LIBS"
3531 cat > conftest.$ac_ext <<EOF
3532 #line 3533 "configure"
3533 #include "confdefs.h"
3534 /* Override any gcc2 internal prototype to avoid an error. */
3535 /* We use char because int might match the return type of a gcc2
3536 builtin and then its argument prototype would still apply. */
3543 if { (eval echo configure:3544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3545 eval "ac_cv_lib_$ac_lib_var=yes"
3547 echo "configure: failed program was:" >&5
3548 cat conftest.$ac_ext >&5
3550 eval "ac_cv_lib_$ac_lib_var=no"
3553 LIBS="$ac_save_LIBS"
3556 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3557 echo "$ac_t""yes" 1>&6
3558 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
3559 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3560 cat >> confdefs.h <<EOF
3561 #define $ac_tr_lib 1
3564 LIBS="-lsocket $LIBS"
3567 echo "$ac_t""no" 1>&6
3574 termcap_curses_order="termcap curses ncurses"
3575 for lib in $termcap_curses_order; do
3576 echo $ac_n "checking for tgetent in -l${lib}""... $ac_c" 1>&6
3577 echo "configure:3578: checking for tgetent in -l${lib}" >&5
3578 ac_lib_var=`echo ${lib}'_'tgetent | sed 'y%./+-%__p_%'`
3579 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3580 echo $ac_n "(cached) $ac_c" 1>&6
3582 ac_save_LIBS="$LIBS"
3583 LIBS="-l${lib} $LIBS"
3584 cat > conftest.$ac_ext <<EOF
3585 #line 3586 "configure"
3586 #include "confdefs.h"
3587 /* Override any gcc2 internal prototype to avoid an error. */
3588 /* We use char because int might match the return type of a gcc2
3589 builtin and then its argument prototype would still apply. */
3596 if { (eval echo configure:3597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3598 eval "ac_cv_lib_$ac_lib_var=yes"
3600 echo "configure: failed program was:" >&5
3601 cat conftest.$ac_ext >&5
3603 eval "ac_cv_lib_$ac_lib_var=no"
3606 LIBS="$ac_save_LIBS"
3609 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3610 echo "$ac_t""yes" 1>&6
3611 TERMLIB="-l$lib"; break
3613 echo "$ac_t""no" 1>&6
3618 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
3619 echo "configure:3620: checking for dbm_open" >&5
3620 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
3621 echo $ac_n "(cached) $ac_c" 1>&6
3623 cat > conftest.$ac_ext <<EOF
3624 #line 3625 "configure"
3625 #include "confdefs.h"
3626 /* System header to define __stub macros and hopefully few prototypes,
3627 which can conflict with char dbm_open(); below. */
3629 /* Override any gcc2 internal prototype to avoid an error. */
3630 /* We use char because int might match the return type of a gcc2
3631 builtin and then its argument prototype would still apply. */
3636 /* The GNU C library defines this for functions which it implements
3637 to always fail with ENOSYS. Some functions are actually named
3638 something starting with __ and the normal name is an alias. */
3639 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
3647 if { (eval echo configure:3648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3649 eval "ac_cv_func_dbm_open=yes"
3651 echo "configure: failed program was:" >&5
3652 cat conftest.$ac_ext >&5
3654 eval "ac_cv_func_dbm_open=no"
3659 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
3660 echo "$ac_t""yes" 1>&6
3663 echo "$ac_t""no" 1>&6
3664 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
3665 echo "configure:3666: checking for dbm_open in -lndbm" >&5
3666 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
3667 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3668 echo $ac_n "(cached) $ac_c" 1>&6
3670 ac_save_LIBS="$LIBS"
3672 cat > conftest.$ac_ext <<EOF
3673 #line 3674 "configure"
3674 #include "confdefs.h"
3675 /* Override any gcc2 internal prototype to avoid an error. */
3676 /* We use char because int might match the return type of a gcc2
3677 builtin and then its argument prototype would still apply. */
3684 if { (eval echo configure:3685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3686 eval "ac_cv_lib_$ac_lib_var=yes"
3688 echo "configure: failed program was:" >&5
3689 cat conftest.$ac_ext >&5
3691 eval "ac_cv_lib_$ac_lib_var=no"
3694 LIBS="$ac_save_LIBS"
3697 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3698 echo "$ac_t""yes" 1>&6
3699 ac_tr_lib=HAVE_LIB`echo ndbm | sed -e 's/^a-zA-Z0-9_/_/g' \
3700 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3701 cat >> confdefs.h <<EOF
3702 #define $ac_tr_lib 1
3708 echo "$ac_t""no" 1>&6
3709 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
3710 echo "configure:3711: checking for dbm_open in -ldbm" >&5
3711 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
3712 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3713 echo $ac_n "(cached) $ac_c" 1>&6
3715 ac_save_LIBS="$LIBS"
3717 cat > conftest.$ac_ext <<EOF
3718 #line 3719 "configure"
3719 #include "confdefs.h"
3720 /* Override any gcc2 internal prototype to avoid an error. */
3721 /* We use char because int might match the return type of a gcc2
3722 builtin and then its argument prototype would still apply. */
3729 if { (eval echo configure:3730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3731 eval "ac_cv_lib_$ac_lib_var=yes"
3733 echo "configure: failed program was:" >&5
3734 cat conftest.$ac_ext >&5
3736 eval "ac_cv_lib_$ac_lib_var=no"
3739 LIBS="$ac_save_LIBS"
3742 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3743 echo "$ac_t""yes" 1>&6
3744 ac_tr_lib=HAVE_LIB`echo dbm | sed -e 's/^a-zA-Z0-9_/_/g' \
3745 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3746 cat >> confdefs.h <<EOF
3747 #define $ac_tr_lib 1
3753 echo "$ac_t""no" 1>&6
3761 for ac_hdr in db1/ndbm.h
3763 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3764 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3765 echo "configure:3766: checking for $ac_hdr" >&5
3766 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3767 echo $ac_n "(cached) $ac_c" 1>&6
3769 cat > conftest.$ac_ext <<EOF
3770 #line 3771 "configure"
3771 #include "confdefs.h"
3774 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3775 { (eval echo configure:3776: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3776 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3777 if test -z "$ac_err"; then
3779 eval "ac_cv_header_$ac_safe=yes"
3782 echo "configure: failed program was:" >&5
3783 cat conftest.$ac_ext >&5
3785 eval "ac_cv_header_$ac_safe=no"
3789 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3790 echo "$ac_t""yes" 1>&6
3791 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3792 cat >> confdefs.h <<EOF
3793 #define $ac_tr_hdr 1
3797 echo "$ac_t""no" 1>&6
3802 if test x"$with_hesiod" != x -a x"$with_hesiod" != x"no"; then
3803 if test x"$with_hesiod" != x"yes"; then
3804 HESIOD_INCLUDES="-I$with_hesiod/include"
3805 HESIOD_LIBS="-L$with_hesiod/lib"
3807 echo $ac_n "checking for res_send""... $ac_c" 1>&6
3808 echo "configure:3809: checking for res_send" >&5
3809 if eval "test \"`echo '$''{'ac_cv_func_res_send'+set}'`\" = set"; then
3810 echo $ac_n "(cached) $ac_c" 1>&6
3812 cat > conftest.$ac_ext <<EOF
3813 #line 3814 "configure"
3814 #include "confdefs.h"
3815 /* System header to define __stub macros and hopefully few prototypes,
3816 which can conflict with char res_send(); below. */
3818 /* Override any gcc2 internal prototype to avoid an error. */
3819 /* We use char because int might match the return type of a gcc2
3820 builtin and then its argument prototype would still apply. */
3825 /* The GNU C library defines this for functions which it implements
3826 to always fail with ENOSYS. Some functions are actually named
3827 something starting with __ and the normal name is an alias. */
3828 #if defined (__stub_res_send) || defined (__stub___res_send)
3836 if { (eval echo configure:3837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3838 eval "ac_cv_func_res_send=yes"
3840 echo "configure: failed program was:" >&5
3841 cat conftest.$ac_ext >&5
3843 eval "ac_cv_func_res_send=no"
3848 if eval "test \"`echo '$ac_cv_func_'res_send`\" = yes"; then
3849 echo "$ac_t""yes" 1>&6
3852 echo "$ac_t""no" 1>&6
3853 echo $ac_n "checking for res_send in -lresolv""... $ac_c" 1>&6
3854 echo "configure:3855: checking for res_send in -lresolv" >&5
3855 ac_lib_var=`echo resolv'_'res_send | sed 'y%./+-%__p_%'`
3856 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3857 echo $ac_n "(cached) $ac_c" 1>&6
3859 ac_save_LIBS="$LIBS"
3860 LIBS="-lresolv $LIBS"
3861 cat > conftest.$ac_ext <<EOF
3862 #line 3863 "configure"
3863 #include "confdefs.h"
3864 /* Override any gcc2 internal prototype to avoid an error. */
3865 /* We use char because int might match the return type of a gcc2
3866 builtin and then its argument prototype would still apply. */
3873 if { (eval echo configure:3874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3875 eval "ac_cv_lib_$ac_lib_var=yes"
3877 echo "configure: failed program was:" >&5
3878 cat conftest.$ac_ext >&5
3880 eval "ac_cv_lib_$ac_lib_var=no"
3883 LIBS="$ac_save_LIBS"
3886 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3887 echo "$ac_t""yes" 1>&6
3888 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
3889 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3890 cat >> confdefs.h <<EOF
3891 #define $ac_tr_lib 1
3894 LIBS="-lresolv $LIBS"
3897 echo "$ac_t""no" 1>&6
3902 echo $ac_n "checking for hes_resolve in -lhesiod""... $ac_c" 1>&6
3903 echo "configure:3904: checking for hes_resolve in -lhesiod" >&5
3904 ac_lib_var=`echo hesiod'_'hes_resolve | sed 'y%./+-%__p_%'`
3905 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3906 echo $ac_n "(cached) $ac_c" 1>&6
3908 ac_save_LIBS="$LIBS"
3909 LIBS="-lhesiod $HESIOD_LIBS $LIBS"
3910 cat > conftest.$ac_ext <<EOF
3911 #line 3912 "configure"
3912 #include "confdefs.h"
3913 /* Override any gcc2 internal prototype to avoid an error. */
3914 /* We use char because int might match the return type of a gcc2
3915 builtin and then its argument prototype would still apply. */
3922 if { (eval echo configure:3923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3924 eval "ac_cv_lib_$ac_lib_var=yes"
3926 echo "configure: failed program was:" >&5
3927 cat conftest.$ac_ext >&5
3929 eval "ac_cv_lib_$ac_lib_var=no"
3932 LIBS="$ac_save_LIBS"
3935 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3936 echo "$ac_t""yes" 1>&6
3937 HESIOD_LIBS="$HESIOD_LIBS -lhesiod"
3939 echo "$ac_t""no" 1>&6
3940 { echo "configure: error: Hesiod library not found" 1>&2; exit 1; }
3945 if test x"$with_krb4" != x -a x"$with_krb4" != x"no"; then
3946 if test x"$with_krb4" != x"yes"; then
3947 KRB4_INCLUDES="-I$with_krb4/include"
3948 if test -d "$with_krb4/include/kerberosIV"; then
3949 KRB4_INCLUDES="$KRB4_INCLUDES -I$with_krb4/include/kerberosIV"
3951 KRB4_LIBS="-L$with_krb4/lib"
3952 elif test -d /usr/include/kerberosIV; then
3953 KRB4_INCLUDES="-I/usr/include/kerberosIV"
3955 echo $ac_n "checking for krb_rd_req in -lkrb4""... $ac_c" 1>&6
3956 echo "configure:3957: checking for krb_rd_req in -lkrb4" >&5
3957 ac_lib_var=`echo krb4'_'krb_rd_req | sed 'y%./+-%__p_%'`
3958 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3959 echo $ac_n "(cached) $ac_c" 1>&6
3961 ac_save_LIBS="$LIBS"
3962 LIBS="-lkrb4 $KRB4_LIBS -ldes425 -lkrb5 -lcrypto -lcom_err $LIBS"
3963 cat > conftest.$ac_ext <<EOF
3964 #line 3965 "configure"
3965 #include "confdefs.h"
3966 /* Override any gcc2 internal prototype to avoid an error. */
3967 /* We use char because int might match the return type of a gcc2
3968 builtin and then its argument prototype would still apply. */
3975 if { (eval echo configure:3976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3977 eval "ac_cv_lib_$ac_lib_var=yes"
3979 echo "configure: failed program was:" >&5
3980 cat conftest.$ac_ext >&5
3982 eval "ac_cv_lib_$ac_lib_var=no"
3985 LIBS="$ac_save_LIBS"
3988 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3989 echo "$ac_t""yes" 1>&6
3990 KRB4_LIBS="$KRB4_LIBS -lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err"
3992 echo "$ac_t""no" 1>&6
3993 echo $ac_n "checking for krb_rd_req in -lkrb""... $ac_c" 1>&6
3994 echo "configure:3995: checking for krb_rd_req in -lkrb" >&5
3995 ac_lib_var=`echo krb'_'krb_rd_req | sed 'y%./+-%__p_%'`
3996 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3997 echo $ac_n "(cached) $ac_c" 1>&6
3999 ac_save_LIBS="$LIBS"
4000 LIBS="-lkrb $KRB4_LIBS -ldes $LIBS"
4001 cat > conftest.$ac_ext <<EOF
4002 #line 4003 "configure"
4003 #include "confdefs.h"
4004 /* Override any gcc2 internal prototype to avoid an error. */
4005 /* We use char because int might match the return type of a gcc2
4006 builtin and then its argument prototype would still apply. */
4013 if { (eval echo configure:4014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4015 eval "ac_cv_lib_$ac_lib_var=yes"
4017 echo "configure: failed program was:" >&5
4018 cat conftest.$ac_ext >&5
4020 eval "ac_cv_lib_$ac_lib_var=no"
4023 LIBS="$ac_save_LIBS"
4026 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4027 echo "$ac_t""yes" 1>&6
4028 KRB4_LIBS="$KRB4_LIBS -lkrb -ldes"
4030 echo "$ac_t""no" 1>&6
4031 { echo "configure: error: Kerberos 4 libraries not found" 1>&2; exit 1; }
4038 if test x"$with_cyrus_sasl" != x -a x"$with_cyrus_sasl" != "no"; then
4039 if test x"$with_cyrus_sasl" != x"yes"; then
4040 SASL_INCLUDES="-I$with_cyrus_sasl/include"
4041 SASL_LIBS="-L$with_cyrus_sasl/lib"
4043 save_LDFLAGS="$LDFLAGS"
4044 LDFLAGS="$LDFLAGS $SASL_LIBS"
4045 echo $ac_n "checking for sasl_client_new in -lsasl""... $ac_c" 1>&6
4046 echo "configure:4047: checking for sasl_client_new in -lsasl" >&5
4047 ac_lib_var=`echo sasl'_'sasl_client_new | sed 'y%./+-%__p_%'`
4048 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4049 echo $ac_n "(cached) $ac_c" 1>&6
4051 ac_save_LIBS="$LIBS"
4053 cat > conftest.$ac_ext <<EOF
4054 #line 4055 "configure"
4055 #include "confdefs.h"
4056 /* Override any gcc2 internal prototype to avoid an error. */
4057 /* We use char because int might match the return type of a gcc2
4058 builtin and then its argument prototype would still apply. */
4059 char sasl_client_new();
4065 if { (eval echo configure:4066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4067 eval "ac_cv_lib_$ac_lib_var=yes"
4069 echo "configure: failed program was:" >&5
4070 cat conftest.$ac_ext >&5
4072 eval "ac_cv_lib_$ac_lib_var=no"
4075 LIBS="$ac_save_LIBS"
4078 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4079 echo "$ac_t""yes" 1>&6
4080 SASL_LIBS="$SASL_LIBS -lsasl"
4082 echo "$ac_t""no" 1>&6
4083 { echo "configure: error: Cyrus SASL library not found" 1>&2; exit 1; }
4086 LDFLAGS="$save_LDFLAGS"
4090 nmh_save_LIBS="$LIBS"
4091 LIBS="$TERMLIB $LIBS"
4093 echo $ac_n "checking if an include file defines ospeed""... $ac_c" 1>&6
4094 echo "configure:4095: checking if an include file defines ospeed" >&5
4095 if eval "test \"`echo '$''{'nmh_cv_decl_ospeed_include_defines'+set}'`\" = set"; then
4096 echo $ac_n "(cached) $ac_c" 1>&6
4098 cat > conftest.$ac_ext <<EOF
4099 #line 4100 "configure"
4100 #include "confdefs.h"
4101 #include <sys/types.h>
4103 #include <termios.h>
4106 #include <termcap.h>
4112 if { (eval echo configure:4113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4114 nmh_cv_decl_ospeed_include_defines=yes
4116 echo "configure: failed program was:" >&5
4117 cat conftest.$ac_ext >&5
4119 nmh_cv_decl_ospeed_include_defines=no
4124 echo "$ac_t""$nmh_cv_decl_ospeed_include_defines" 1>&6
4126 if test $nmh_cv_decl_ospeed_include_defines = no; then
4127 echo $ac_n "checking if you must define ospeed""... $ac_c" 1>&6
4128 echo "configure:4129: checking if you must define ospeed" >&5
4129 if eval "test \"`echo '$''{'nmh_cv_decl_ospeed_must_define'+set}'`\" = set"; then
4130 echo $ac_n "(cached) $ac_c" 1>&6
4132 cat > conftest.$ac_ext <<EOF
4133 #line 4134 "configure"
4134 #include "confdefs.h"
4137 extern short ospeed; ospeed = 0;
4140 if { (eval echo configure:4141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4142 nmh_cv_decl_ospeed_must_define=yes
4144 echo "configure: failed program was:" >&5
4145 cat conftest.$ac_ext >&5
4147 nmh_cv_decl_ospeed_must_define=no
4152 echo "$ac_t""$nmh_cv_decl_ospeed_must_define" 1>&6
4155 if test $nmh_cv_decl_ospeed_include_defines = yes; then
4156 cat >> confdefs.h <<\EOF
4157 #define HAVE_OSPEED 1
4160 elif test $nmh_cv_decl_ospeed_must_define = yes; then
4161 cat >> confdefs.h <<\EOF
4162 #define HAVE_OSPEED 1
4165 cat >> confdefs.h <<\EOF
4166 #define MUST_DEFINE_OSPEED 1
4172 LIBS="$nmh_save_LIBS"
4174 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4175 echo "configure:4176: checking return type of signal handlers" >&5
4176 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4177 echo $ac_n "(cached) $ac_c" 1>&6
4179 cat > conftest.$ac_ext <<EOF
4180 #line 4181 "configure"
4181 #include "confdefs.h"
4182 #include <sys/types.h>
4188 extern "C" void (*signal (int, void (*)(int)))(int);
4190 void (*signal ()) ();
4197 if { (eval echo configure:4198: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4199 ac_cv_type_signal=void
4201 echo "configure: failed program was:" >&5
4202 cat conftest.$ac_ext >&5
4204 ac_cv_type_signal=int
4209 echo "$ac_t""$ac_cv_type_signal" 1>&6
4210 cat >> confdefs.h <<EOF
4211 #define RETSIGTYPE $ac_cv_type_signal
4215 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
4216 echo "configure:4217: checking for pid_t" >&5
4217 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
4218 echo $ac_n "(cached) $ac_c" 1>&6
4220 cat > conftest.$ac_ext <<EOF
4221 #line 4222 "configure"
4222 #include "confdefs.h"
4223 #include <sys/types.h>
4229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4230 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4232 ac_cv_type_pid_t=yes
4240 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
4241 if test $ac_cv_type_pid_t = no; then
4242 cat >> confdefs.h <<\EOF
4248 echo $ac_n "checking for off_t""... $ac_c" 1>&6
4249 echo "configure:4250: checking for off_t" >&5
4250 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
4251 echo $ac_n "(cached) $ac_c" 1>&6
4253 cat > conftest.$ac_ext <<EOF
4254 #line 4255 "configure"
4255 #include "confdefs.h"
4256 #include <sys/types.h>
4262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4263 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4265 ac_cv_type_off_t=yes
4273 echo "$ac_t""$ac_cv_type_off_t" 1>&6
4274 if test $ac_cv_type_off_t = no; then
4275 cat >> confdefs.h <<\EOF
4281 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
4282 echo "configure:4283: checking for uid_t in sys/types.h" >&5
4283 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
4284 echo $ac_n "(cached) $ac_c" 1>&6
4286 cat > conftest.$ac_ext <<EOF
4287 #line 4288 "configure"
4288 #include "confdefs.h"
4289 #include <sys/types.h>
4291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4292 egrep "uid_t" >/dev/null 2>&1; then
4294 ac_cv_type_uid_t=yes
4303 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
4304 if test $ac_cv_type_uid_t = no; then
4305 cat >> confdefs.h <<\EOF
4309 cat >> confdefs.h <<\EOF
4315 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
4316 echo "configure:4317: checking for mode_t" >&5
4317 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
4318 echo $ac_n "(cached) $ac_c" 1>&6
4320 cat > conftest.$ac_ext <<EOF
4321 #line 4322 "configure"
4322 #include "confdefs.h"
4323 #include <sys/types.h>
4329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4330 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4332 ac_cv_type_mode_t=yes
4335 ac_cv_type_mode_t=no
4340 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
4341 if test $ac_cv_type_mode_t = no; then
4342 cat >> confdefs.h <<\EOF
4348 echo $ac_n "checking for size_t""... $ac_c" 1>&6
4349 echo "configure:4350: checking for size_t" >&5
4350 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
4351 echo $ac_n "(cached) $ac_c" 1>&6
4353 cat > conftest.$ac_ext <<EOF
4354 #line 4355 "configure"
4355 #include "confdefs.h"
4356 #include <sys/types.h>
4362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4363 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4365 ac_cv_type_size_t=yes
4368 ac_cv_type_size_t=no
4373 echo "$ac_t""$ac_cv_type_size_t" 1>&6
4374 if test $ac_cv_type_size_t = no; then
4375 cat >> confdefs.h <<\EOF
4376 #define size_t unsigned
4382 echo $ac_n "checking for sigset_t""... $ac_c" 1>&6
4383 echo "configure:4384: checking for sigset_t" >&5
4384 if eval "test \"`echo '$''{'nmh_cv_type_sigset_t'+set}'`\" = set"; then
4385 echo $ac_n "(cached) $ac_c" 1>&6
4387 cat > conftest.$ac_ext <<EOF
4388 #line 4389 "configure"
4389 #include "confdefs.h"
4390 #include <sys/types.h>
4393 sigset_t tempsigset;
4396 if { (eval echo configure:4397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4398 nmh_cv_type_sigset_t=yes
4400 echo "configure: failed program was:" >&5
4401 cat conftest.$ac_ext >&5
4403 nmh_cv_type_sigset_t=no
4408 echo "$ac_t""$nmh_cv_type_sigset_t" 1>&6
4409 if test $nmh_cv_type_sigset_t = no; then
4410 cat >> confdefs.h <<\EOF
4411 #define sigset_t unsigned int
4416 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
4417 echo "configure:4418: checking for st_blksize in struct stat" >&5
4418 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
4419 echo $ac_n "(cached) $ac_c" 1>&6
4421 cat > conftest.$ac_ext <<EOF
4422 #line 4423 "configure"
4423 #include "confdefs.h"
4424 #include <sys/types.h>
4425 #include <sys/stat.h>
4427 struct stat s; s.st_blksize;
4430 if { (eval echo configure:4431: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4432 ac_cv_struct_st_blksize=yes
4434 echo "configure: failed program was:" >&5
4435 cat conftest.$ac_ext >&5
4437 ac_cv_struct_st_blksize=no
4442 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
4443 if test $ac_cv_struct_st_blksize = yes; then
4444 cat >> confdefs.h <<\EOF
4445 #define HAVE_ST_BLKSIZE 1
4451 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
4452 echo "configure:4453: checking for tm_gmtoff in struct tm" >&5
4453 if eval "test \"`echo '$''{'nmh_cv_struct_tm_gmtoff'+set}'`\" = set"; then
4454 echo $ac_n "(cached) $ac_c" 1>&6
4456 cat > conftest.$ac_ext <<EOF
4457 #line 4458 "configure"
4458 #include "confdefs.h"
4459 #ifdef TIME_WITH_SYS_TIME
4460 # include <sys/time.h>
4463 # ifdef TM_IN_SYS_TIME
4464 # include <sys/time.h>
4470 struct tm temptm; temptm.tm_gmtoff = 0;
4473 if { (eval echo configure:4474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4475 nmh_cv_struct_tm_gmtoff=yes
4477 echo "configure: failed program was:" >&5
4478 cat conftest.$ac_ext >&5
4480 nmh_cv_struct_tm_gmtoff=no
4485 echo "$ac_t""$nmh_cv_struct_tm_gmtoff" 1>&6
4486 if test $nmh_cv_struct_tm_gmtoff = yes; then
4487 cat >> confdefs.h <<\EOF
4488 #define HAVE_TM_GMTOFF 1
4493 echo $ac_n "checking what style of signals to use""... $ac_c" 1>&6
4494 echo "configure:4495: checking what style of signals to use" >&5
4495 if test $ac_cv_func_sigaction = yes -a $ac_cv_func_sigprocmask = yes; then
4496 signals_style=POSIX_SIGNALS
4497 cat >> confdefs.h <<\EOF
4498 #define POSIX_SIGNALS 1
4501 cat >> confdefs.h <<\EOF
4502 #define RELIABLE_SIGNALS 1
4505 elif test $ac_cv_func_sigblock = yes -a $ac_cv_func_sigsetmask = yes; then
4506 signals_style=BSD_SIGNALS
4507 cat >> confdefs.h <<\EOF
4508 #define BSD_SIGNALS 1
4511 cat >> confdefs.h <<\EOF
4512 #define RELIABLE_SIGNALS 1
4515 elif test $ac_cv_func_sighold = yes -a $ac_cv_func_sigrelse = yes; then
4516 signals_style=SYSV_SIGNALS
4517 cat >> confdefs.h <<\EOF
4518 #define SYSV_SIGNALS 1
4522 signals_style=NO_SIGNAL_BLOCKING
4523 cat >> confdefs.h <<\EOF
4524 #define NO_SIGNAL_BLOCKING 1
4529 echo "$ac_t""$signals_style" 1>&6
4531 echo $ac_n "checking where signal.h is located""... $ac_c" 1>&6
4532 echo "configure:4533: checking where signal.h is located" >&5
4533 if eval "test \"`echo '$''{'nmh_cv_path_signal_h'+set}'`\" = set"; then
4534 echo $ac_n "(cached) $ac_c" 1>&6
4536 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
4537 test -f $SIGNAL_H && \
4538 grep '#[ ]*define[ ][ ]*SIG[0-9A-Z]*[ ]*[0-9][0-9]*' $SIGNAL_H > /dev/null && \
4541 nmh_cv_path_signal_h=$SIGNAL_H
4545 echo "$ac_t""$nmh_cv_path_signal_h" 1>&6
4546 SIGNAL_H=$nmh_cv_path_signal_h
4548 case "$target_os" in
4551 cat >> confdefs.h <<\EOF
4555 cat >> confdefs.h <<\EOF
4561 cat >> confdefs.h <<\EOF
4565 cat >> confdefs.h <<\EOF
4571 cat >> confdefs.h <<\EOF
4575 cat >> confdefs.h <<\EOF
4581 cat >> confdefs.h <<\EOF
4585 cat >> confdefs.h <<\EOF
4591 cat >> confdefs.h <<\EOF
4597 cat >> confdefs.h <<\EOF
4601 cat >> confdefs.h <<\EOF
4607 cat >> confdefs.h <<\EOF
4611 cat >> confdefs.h <<\EOF
4617 cat >> confdefs.h <<\EOF
4621 cat >> confdefs.h <<\EOF
4627 cat >> confdefs.h <<\EOF
4631 cat >> confdefs.h <<\EOF
4637 cat >> confdefs.h <<\EOF
4641 cat >> confdefs.h <<\EOF
4642 #define SCO_5_STDIO 1
4650 cat > confcache <<\EOF
4651 # This file is a shell script that caches the results of configure
4652 # tests run on this system so they can be shared between configure
4653 # scripts and configure runs. It is not useful on other systems.
4654 # If it contains results you don't want to keep, you may remove or edit it.
4656 # By default, configure uses ./config.cache as the cache file,
4657 # creating it if it does not exist already. You can give configure
4658 # the --cache-file=FILE option to use a different cache file; that is
4659 # what configure does when it calls configure scripts in
4660 # subdirectories, so they share the cache.
4661 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4662 # config.status only pays attention to the cache file if you give it the
4663 # --recheck option to rerun configure.
4666 # The following way of writing the cache mishandles newlines in values,
4667 # but we know of no workaround that is simple, portable, and efficient.
4668 # So, don't put newlines in cache variables' values.
4669 # Ultrix sh set writes to stderr and can't be redirected directly,
4670 # and sets the high bit in the cache file unless we assign to the vars.
4672 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4674 # `set' does not quote correctly, so add quotes (double-quote substitution
4675 # turns \\\\ into \\, and sed turns \\ into \).
4677 -e "s/'/'\\\\''/g" \
4678 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4681 # `set' quotes correctly as required by POSIX, so do not add quotes.
4682 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4685 if cmp -s $cache_file confcache; then
4688 if test -w $cache_file; then
4689 echo "updating cache $cache_file"
4690 cat confcache > $cache_file
4692 echo "not updating unwritable cache $cache_file"
4697 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4699 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4700 # Let make expand exec_prefix.
4701 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4703 # Any assignment to VPATH causes Sun make to only execute
4704 # the first set of double-colon rules, so remove it if not needed.
4705 # If there is a colon in the path, we need to keep it.
4706 if test "x$srcdir" = x.; then
4707 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4710 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4712 DEFS=-DHAVE_CONFIG_H
4714 # Without the "./", some shells look in PATH for config.status.
4715 : ${CONFIG_STATUS=./config.status}
4717 echo creating $CONFIG_STATUS
4718 rm -f $CONFIG_STATUS
4719 cat > $CONFIG_STATUS <<EOF
4721 # Generated automatically by configure.
4722 # Run this file to recreate the current configuration.
4723 # This directory was configured as follows,
4724 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4726 # $0 $ac_configure_args
4728 # Compiler output produced by configure, useful for debugging
4729 # configure, is in ./config.log if it exists.
4731 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4734 case "\$ac_option" in
4735 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4736 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4737 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4738 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4739 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4741 -help | --help | --hel | --he | --h)
4742 echo "\$ac_cs_usage"; exit 0 ;;
4743 *) echo "\$ac_cs_usage"; exit 1 ;;
4747 ac_given_srcdir=$srcdir
4748 ac_given_INSTALL="$INSTALL"
4750 trap 'rm -fr `echo "Makefile config/Makefile h/Makefile sbr/Makefile uip/Makefile \
4751 zotnet/Makefile zotnet/mts/Makefile \
4752 mts/Makefile mts/smtp/Makefile \
4753 mts/sendmail/Makefile mts/mmdf/Makefile etc/Makefile \
4754 docs/Makefile man/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4756 cat >> $CONFIG_STATUS <<EOF
4758 # Protect against being on the right side of a sed subst in config.status.
4759 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4760 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4764 s%@CFLAGS@%$CFLAGS%g
4765 s%@CPPFLAGS@%$CPPFLAGS%g
4766 s%@CXXFLAGS@%$CXXFLAGS%g
4767 s%@FFLAGS@%$FFLAGS%g
4769 s%@LDFLAGS@%$LDFLAGS%g
4771 s%@exec_prefix@%$exec_prefix%g
4772 s%@prefix@%$prefix%g
4773 s%@program_transform_name@%$program_transform_name%g
4774 s%@bindir@%$bindir%g
4775 s%@sbindir@%$sbindir%g
4776 s%@libexecdir@%$libexecdir%g
4777 s%@datadir@%$datadir%g
4778 s%@sysconfdir@%$sysconfdir%g
4779 s%@sharedstatedir@%$sharedstatedir%g
4780 s%@localstatedir@%$localstatedir%g
4781 s%@libdir@%$libdir%g
4782 s%@includedir@%$includedir%g
4783 s%@oldincludedir@%$oldincludedir%g
4784 s%@infodir@%$infodir%g
4785 s%@mandir@%$mandir%g
4787 s%@host_alias@%$host_alias%g
4788 s%@host_cpu@%$host_cpu%g
4789 s%@host_vendor@%$host_vendor%g
4790 s%@host_os@%$host_os%g
4791 s%@target@%$target%g
4792 s%@target_alias@%$target_alias%g
4793 s%@target_cpu@%$target_cpu%g
4794 s%@target_vendor@%$target_vendor%g
4795 s%@target_os@%$target_os%g
4797 s%@build_alias@%$build_alias%g
4798 s%@build_cpu@%$build_cpu%g
4799 s%@build_vendor@%$build_vendor%g
4800 s%@build_os@%$build_os%g
4801 s%@VERSION@%$VERSION%g
4802 s%@APOPLIB@%$APOPLIB%g
4803 s%@masquerade@%$masquerade%g
4804 s%@POPLIB@%$POPLIB%g
4805 s%@POPSED@%$POPSED%g
4807 s%@smtpservers@%$smtpservers%g
4809 s%@SET_MAKE@%$SET_MAKE%g
4810 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4811 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4812 s%@INSTALL_DATA@%$INSTALL_DATA%g
4813 s%@RANLIB@%$RANLIB%g
4816 s%@LEXLIB@%$LEXLIB%g
4817 s%@cutpath@%$cutpath%g
4818 s%@linttmp1@%$linttmp1%g
4819 s%@linttmp2@%$linttmp2%g
4821 s%@LINTFLAGS@%$LINTFLAGS%g
4822 s%@LIBTOOL@%$LIBTOOL%g
4823 s%@GNU_LIBTOOL@%$GNU_LIBTOOL%g
4824 s%@LORDER@%$LORDER%g
4826 s%@lspath@%$lspath%g
4827 s%@morepath@%$morepath%g
4828 s%@pagerpath@%$pagerpath%g
4829 s%@sendmailpath@%$sendmailpath%g
4830 s%@vipath@%$vipath%g
4831 s%@editorpath@%$editorpath%g
4832 s%@mailspool@%$mailspool%g
4834 s%@dotlockfilepath@%$dotlockfilepath%g
4835 s%@SETGID_MAIL@%$SETGID_MAIL%g
4836 s%@MAIL_SPOOL_GRP@%$MAIL_SPOOL_GRP%g
4837 s%@LIBOBJS@%$LIBOBJS%g
4838 s%@TERMLIB@%$TERMLIB%g
4839 s%@HESIOD_INCLUDES@%$HESIOD_INCLUDES%g
4840 s%@HESIOD_LIBS@%$HESIOD_LIBS%g
4841 s%@KRB4_INCLUDES@%$KRB4_INCLUDES%g
4842 s%@KRB4_LIBS@%$KRB4_LIBS%g
4843 s%@SASL_INCLUDES@%$SASL_INCLUDES%g
4844 s%@SASL_LIBS@%$SASL_LIBS%g
4845 s%@SIGNAL_H@%$SIGNAL_H%g
4850 cat >> $CONFIG_STATUS <<\EOF
4852 # Split the substitutions into bite-sized pieces for seds with
4853 # small command number limits, like on Digital OSF/1 and HP-UX.
4854 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4855 ac_file=1 # Number of current file.
4856 ac_beg=1 # First line for current file.
4857 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4860 while $ac_more_lines; do
4861 if test $ac_beg -gt 1; then
4862 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4864 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4866 if test ! -s conftest.s$ac_file; then
4868 rm -f conftest.s$ac_file
4870 if test -z "$ac_sed_cmds"; then
4871 ac_sed_cmds="sed -f conftest.s$ac_file"
4873 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4875 ac_file=`expr $ac_file + 1`
4877 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4880 if test -z "$ac_sed_cmds"; then
4885 cat >> $CONFIG_STATUS <<EOF
4887 CONFIG_FILES=\${CONFIG_FILES-"Makefile config/Makefile h/Makefile sbr/Makefile uip/Makefile \
4888 zotnet/Makefile zotnet/mts/Makefile \
4889 mts/Makefile mts/smtp/Makefile \
4890 mts/sendmail/Makefile mts/mmdf/Makefile etc/Makefile \
4891 docs/Makefile man/Makefile"}
4893 cat >> $CONFIG_STATUS <<\EOF
4894 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4895 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4897 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4898 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4899 *) ac_file_in="${ac_file}.in" ;;
4902 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4904 # Remove last slash and all that follows it. Not all systems have dirname.
4905 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4906 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4907 # The file is in a subdirectory.
4908 test ! -d "$ac_dir" && mkdir "$ac_dir"
4909 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4910 # A "../" for each directory in $ac_dir_suffix.
4911 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4913 ac_dir_suffix= ac_dots=
4916 case "$ac_given_srcdir" in
4918 if test -z "$ac_dots"; then top_srcdir=.
4919 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4920 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4922 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4923 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4926 case "$ac_given_INSTALL" in
4927 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4928 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4931 echo creating "$ac_file"
4933 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4935 *Makefile*) ac_comsub="1i\\
4936 # $configure_input" ;;
4940 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4942 s%@configure_input@%$configure_input%g
4943 s%@srcdir@%$srcdir%g
4944 s%@top_srcdir@%$top_srcdir%g
4945 s%@INSTALL@%$INSTALL%g
4946 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4950 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4951 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4953 # ac_d sets the value in "#define NAME VALUE" lines.
4954 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4955 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4958 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4959 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4960 ac_uB='\([ ]\)%\1#\2define\3'
4963 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4964 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4965 ac_eB='$%\1#\2define\3'
4969 if test "${CONFIG_HEADERS+set}" != set; then
4971 cat >> $CONFIG_STATUS <<EOF
4972 CONFIG_HEADERS="config.h"
4974 cat >> $CONFIG_STATUS <<\EOF
4976 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4977 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4979 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4980 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4981 *) ac_file_in="${ac_file}.in" ;;
4984 echo creating $ac_file
4986 rm -f conftest.frag conftest.in conftest.out
4987 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4988 cat $ac_file_inputs > conftest.in
4992 # Transform confdefs.h into a sed script conftest.vals that substitutes
4993 # the proper values into config.h.in to produce config.h. And first:
4994 # Protect against being on the right side of a sed subst in config.status.
4995 # Protect against being in an unquoted here document in config.status.
4997 cat > conftest.hdr <<\EOF
5000 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5004 sed -n -f conftest.hdr confdefs.h > conftest.vals
5007 # This sed command replaces #undef with comments. This is necessary, for
5008 # example, in the case of _POSIX_SOURCE, which is predefined and required
5009 # on some systems where configure will not decide to define it.
5010 cat >> conftest.vals <<\EOF
5011 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5014 # Break up conftest.vals because some shells have a limit on
5015 # the size of here documents, and old seds have small limits too.
5020 ac_lines=`grep -c . conftest.vals`
5021 # grep -c gives empty output for an empty file on some AIX systems.
5022 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5023 # Write a limited-size here document to conftest.frag.
5024 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5025 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5027 sed -f conftest.frag conftest.in > conftest.out
5029 mv conftest.out conftest.in
5031 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5033 mv conftest.tail conftest.vals
5037 cat >> $CONFIG_STATUS <<\EOF
5038 rm -f conftest.frag conftest.h
5039 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5040 cat conftest.in >> conftest.h
5042 if cmp -s $ac_file conftest.h 2>/dev/null; then
5043 echo "$ac_file is unchanged"
5046 # Remove last slash and all that follows it. Not all systems have dirname.
5047 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5048 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5049 # The file is in a subdirectory.
5050 test ! -d "$ac_dir" && mkdir "$ac_dir"
5053 mv conftest.h $ac_file
5058 cat >> $CONFIG_STATUS <<EOF
5061 cat >> $CONFIG_STATUS <<\EOF
5063 test -z "$CONFIG_HEADERS" || echo > stamp-h
5066 chmod +x $CONFIG_STATUS
5067 rm -fr confdefs* $ac_clean_files
5068 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5071 eval "nmhbin=${bindir}"; eval "nmhbin2=${nmhbin}"
5072 eval "nmhsysconf=${sysconfdir}"; eval "nmhsysconf2=${nmhsysconf}"
5073 eval "nmhlib=${libdir}"; eval "nmhlib2=${nmhlib}"
5074 eval "nmhman=${mandir}"
5077 if test x"$enable_pop" = x"yes"; then
5080 if test x"$enable_apop" = x"yes"; then
5081 pop_kinds="${pop_kinds}APOP "
5084 if test x"$with_krb4" != x -a x"$with_krb4" != x"no"; then
5085 pop_kinds="${pop_kinds}KPOP "
5088 pop_kinds="${pop_kinds}POP3)"
5094 nmh version : ${VERSION}
5095 target os : ${target}
5097 compiler flags : ${CFLAGS}
5098 linker flags : ${LDFLAGS}
5099 source code location : ${srcdir}
5100 binary install path : ${nmhbin2}
5101 libary install path : ${nmhlib2}
5102 config files install path : ${nmhsysconf2}
5103 man page install path : ${nmhman}
5104 transport system : ${MTS}
5105 default smtp servers : ${smtpservers}
5106 default editor : ${editorpath}
5107 default pager : ${pagerpath}
5108 email address masquerading : ${masquerade}
5109 pop is enabled : ${pop_kinds}"