3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
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 --with-mts=MTS specify the mail transport agent"
17 --with-editor=EDITOR specify the default editor"
19 --with-pager=PAGER specify the default pager"
21 --enable-nmh-mhe enable mhe support (DEFAULT)"
23 --enable-nmh-pop enable client-side support for pop"
25 --with-krb4=PREFIX specify location of Kerberos V4 for kpop support"
27 --with-hesiod=PREFIX specify location of Hesiod"
29 --enable-nmh-debug enable nmh code debugging"
30 ac_default_prefix=/usr/local/nmh
32 # Initialize some variables set by options.
33 # The variables have the same names as the options, with
34 # dashes changed to underlines.
36 cache_file=./config.cache
45 program_transform_name=s,x,x,
53 bindir='${exec_prefix}/bin'
54 sbindir='${exec_prefix}/sbin'
55 libexecdir='${exec_prefix}/libexec'
56 datadir='${prefix}/share'
57 sysconfdir='${prefix}/etc'
58 sharedstatedir='${prefix}/com'
59 localstatedir='${prefix}/var'
60 libdir='${exec_prefix}/lib'
61 includedir='${prefix}/include'
62 oldincludedir='/usr/include'
63 infodir='${prefix}/info'
64 mandir='${prefix}/man'
66 # Initialize some other variables.
69 # Maximum number of lines to put in a shell here document.
76 # If the previous option needs an argument, assign it.
77 if test -n "$ac_prev"; then
78 eval "$ac_prev=\$ac_option"
84 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
88 # Accept the important Cygnus configure options, so we can diagnose typos.
92 -bindir | --bindir | --bindi | --bind | --bin | --bi)
94 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
95 bindir="$ac_optarg" ;;
97 -build | --build | --buil | --bui | --bu)
99 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
100 build="$ac_optarg" ;;
102 -cache-file | --cache-file | --cache-fil | --cache-fi \
103 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
104 ac_prev=cache_file ;;
105 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
106 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
107 cache_file="$ac_optarg" ;;
109 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
111 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
113 datadir="$ac_optarg" ;;
115 -disable-* | --disable-*)
116 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
117 # Reject names that are not valid shell variable names.
118 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
119 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
121 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
122 eval "enable_${ac_feature}=no" ;;
124 -enable-* | --enable-*)
125 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
126 # Reject names that are not valid shell variable names.
127 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
128 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
130 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
135 eval "enable_${ac_feature}='$ac_optarg'" ;;
137 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
138 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
139 | --exec | --exe | --ex)
140 ac_prev=exec_prefix ;;
141 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
142 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
143 | --exec=* | --exe=* | --ex=*)
144 exec_prefix="$ac_optarg" ;;
146 -gas | --gas | --ga | --g)
147 # Obsolete; use --with-gas.
150 -help | --help | --hel | --he)
151 # Omit some internal or obsolete options to make the list less imposing.
152 # This message is too long to be a string in the A/UX 3.1 sh.
154 Usage: configure [options] [host]
155 Options: [defaults in brackets after descriptions]
157 --cache-file=FILE cache test results in FILE
158 --help print this message
159 --no-create do not create output files
160 --quiet, --silent do not print \`checking...' messages
161 --version print the version of autoconf that created configure
162 Directory and file names:
163 --prefix=PREFIX install architecture-independent files in PREFIX
165 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
167 --bindir=DIR user executables in DIR [EPREFIX/bin]
168 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
169 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
170 --datadir=DIR read-only architecture-independent data in DIR
172 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
173 --sharedstatedir=DIR modifiable architecture-independent data in DIR
175 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
176 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
177 --includedir=DIR C header files in DIR [PREFIX/include]
178 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
179 --infodir=DIR info documentation in DIR [PREFIX/info]
180 --mandir=DIR man documentation in DIR [PREFIX/man]
181 --srcdir=DIR find the sources in DIR [configure dir or ..]
182 --program-prefix=PREFIX prepend PREFIX to installed program names
183 --program-suffix=SUFFIX append SUFFIX to installed program names
184 --program-transform-name=PROGRAM
185 run sed PROGRAM on installed program names
189 --build=BUILD configure for building on BUILD [BUILD=HOST]
190 --host=HOST configure for HOST [guessed]
191 --target=TARGET configure for TARGET [TARGET=HOST]
192 Features and packages:
193 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
194 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
195 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
196 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
197 --x-includes=DIR X include files are in DIR
198 --x-libraries=DIR X library files are in DIR
200 if test -n "$ac_help"; then
201 echo "--enable and --with options recognized:$ac_help"
205 -host | --host | --hos | --ho)
207 -host=* | --host=* | --hos=* | --ho=*)
210 -includedir | --includedir | --includedi | --included | --include \
211 | --includ | --inclu | --incl | --inc)
212 ac_prev=includedir ;;
213 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
214 | --includ=* | --inclu=* | --incl=* | --inc=*)
215 includedir="$ac_optarg" ;;
217 -infodir | --infodir | --infodi | --infod | --info | --inf)
219 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
220 infodir="$ac_optarg" ;;
222 -libdir | --libdir | --libdi | --libd)
224 -libdir=* | --libdir=* | --libdi=* | --libd=*)
225 libdir="$ac_optarg" ;;
227 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
228 | --libexe | --libex | --libe)
229 ac_prev=libexecdir ;;
230 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
231 | --libexe=* | --libex=* | --libe=*)
232 libexecdir="$ac_optarg" ;;
234 -localstatedir | --localstatedir | --localstatedi | --localstated \
235 | --localstate | --localstat | --localsta | --localst \
236 | --locals | --local | --loca | --loc | --lo)
237 ac_prev=localstatedir ;;
238 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
239 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
240 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
241 localstatedir="$ac_optarg" ;;
243 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
245 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
246 mandir="$ac_optarg" ;;
249 # Obsolete; use --without-fp.
252 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
256 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
257 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
260 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
261 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
262 | --oldin | --oldi | --old | --ol | --o)
263 ac_prev=oldincludedir ;;
264 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
265 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
266 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
267 oldincludedir="$ac_optarg" ;;
269 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
271 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
272 prefix="$ac_optarg" ;;
274 -program-prefix | --program-prefix | --program-prefi | --program-pref \
275 | --program-pre | --program-pr | --program-p)
276 ac_prev=program_prefix ;;
277 -program-prefix=* | --program-prefix=* | --program-prefi=* \
278 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
279 program_prefix="$ac_optarg" ;;
281 -program-suffix | --program-suffix | --program-suffi | --program-suff \
282 | --program-suf | --program-su | --program-s)
283 ac_prev=program_suffix ;;
284 -program-suffix=* | --program-suffix=* | --program-suffi=* \
285 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
286 program_suffix="$ac_optarg" ;;
288 -program-transform-name | --program-transform-name \
289 | --program-transform-nam | --program-transform-na \
290 | --program-transform-n | --program-transform- \
291 | --program-transform | --program-transfor \
292 | --program-transfo | --program-transf \
293 | --program-trans | --program-tran \
294 | --progr-tra | --program-tr | --program-t)
295 ac_prev=program_transform_name ;;
296 -program-transform-name=* | --program-transform-name=* \
297 | --program-transform-nam=* | --program-transform-na=* \
298 | --program-transform-n=* | --program-transform-=* \
299 | --program-transform=* | --program-transfor=* \
300 | --program-transfo=* | --program-transf=* \
301 | --program-trans=* | --program-tran=* \
302 | --progr-tra=* | --program-tr=* | --program-t=*)
303 program_transform_name="$ac_optarg" ;;
305 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
306 | -silent | --silent | --silen | --sile | --sil)
309 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
311 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
313 sbindir="$ac_optarg" ;;
315 -sharedstatedir | --sharedstatedir | --sharedstatedi \
316 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
317 | --sharedst | --shareds | --shared | --share | --shar \
319 ac_prev=sharedstatedir ;;
320 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
321 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
322 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
324 sharedstatedir="$ac_optarg" ;;
326 -site | --site | --sit)
328 -site=* | --site=* | --sit=*)
331 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
333 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
334 srcdir="$ac_optarg" ;;
336 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
337 | --syscon | --sysco | --sysc | --sys | --sy)
338 ac_prev=sysconfdir ;;
339 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
340 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
341 sysconfdir="$ac_optarg" ;;
343 -target | --target | --targe | --targ | --tar | --ta | --t)
345 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
346 target="$ac_optarg" ;;
348 -v | -verbose | --verbose | --verbos | --verbo | --verb)
351 -version | --version | --versio | --versi | --vers)
352 echo "configure generated by autoconf version 2.12"
356 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
357 # Reject names that are not valid shell variable names.
358 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
359 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
361 ac_package=`echo $ac_package| sed 's/-/_/g'`
366 eval "with_${ac_package}='$ac_optarg'" ;;
368 -without-* | --without-*)
369 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
370 # Reject names that are not valid shell variable names.
371 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
372 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
374 ac_package=`echo $ac_package| sed 's/-/_/g'`
375 eval "with_${ac_package}=no" ;;
378 # Obsolete; use --with-x.
381 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
382 | --x-incl | --x-inc | --x-in | --x-i)
383 ac_prev=x_includes ;;
384 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
385 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
386 x_includes="$ac_optarg" ;;
388 -x-libraries | --x-libraries | --x-librarie | --x-librari \
389 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
390 ac_prev=x_libraries ;;
391 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
392 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
393 x_libraries="$ac_optarg" ;;
395 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
399 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
400 echo "configure: warning: $ac_option: invalid host type" 1>&2
402 if test "x$nonopt" != xNONE; then
403 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
411 if test -n "$ac_prev"; then
412 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
415 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
417 # File descriptor usage:
420 # 2 errors and warnings
421 # 3 some systems may open it to /dev/tty
422 # 4 used on the Kubota Titan
423 # 6 checking for... messages and results
424 # 5 compiler messages saved in config.log
425 if test "$silent" = yes; then
433 This file contains any messages produced by compilers while
434 running configure, to aid debugging if configure makes a mistake.
437 # Strip out --no-create and --no-recursion so they do not pile up.
438 # Also quote any args containing shell metacharacters.
443 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
444 | --no-cr | --no-c) ;;
445 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
446 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
447 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
448 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
449 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
454 # Only set these to C if already set. These must not be set unconditionally
455 # because not all systems understand e.g. LANG=C (notably SCO).
456 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
457 # Non-C LC_CTYPE values break the ctype check.
458 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
459 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
460 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
461 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
463 # confdefs.h avoids OS command line length limits that DEFS can exceed.
464 rm -rf conftest* confdefs.h
465 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
468 # A filename unique to this package, relative to the directory that
469 # configure is in, which we can look for to find out if srcdir is correct.
470 ac_unique_file=h/nmh.h
472 # Find the source files, if location was not specified.
473 if test -z "$srcdir"; then
474 ac_srcdir_defaulted=yes
475 # Try the directory containing this script, then its parent.
477 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
478 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
480 if test ! -r $srcdir/$ac_unique_file; then
484 ac_srcdir_defaulted=no
486 if test ! -r $srcdir/$ac_unique_file; then
487 if test "$ac_srcdir_defaulted" = yes; then
488 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
490 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
493 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
495 # Prefer explicitly selected file to automatically selected ones.
496 if test -z "$CONFIG_SITE"; then
497 if test "x$prefix" != xNONE; then
498 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
500 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
503 for ac_site_file in $CONFIG_SITE; do
504 if test -r "$ac_site_file"; then
505 echo "loading site script $ac_site_file"
510 if test -r "$cache_file"; then
511 echo "loading cache $cache_file"
514 echo "creating cache $cache_file"
519 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
520 ac_cpp='$CPP $CPPFLAGS'
521 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
522 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
523 cross_compiling=$ac_cv_prog_cc_cross
525 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
526 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
527 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
534 ac_n= ac_c='\c' ac_t=
541 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
542 if test -f $ac_dir/install-sh; then
544 ac_install_sh="$ac_aux_dir/install-sh -c"
546 elif test -f $ac_dir/install.sh; then
548 ac_install_sh="$ac_aux_dir/install.sh -c"
552 if test -z "$ac_aux_dir"; then
553 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
555 ac_config_guess=$ac_aux_dir/config.guess
556 ac_config_sub=$ac_aux_dir/config.sub
557 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
560 # Do some error checking and defaulting for the host and target type.
562 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
565 # 1. You are not allowed to specify --host, --target, and nonopt at the
567 # 2. Host defaults to nonopt.
568 # 3. If nonopt is not specified, then host defaults to the current host,
569 # as determined by config.guess.
570 # 4. Target and build default to nonopt.
571 # 5. If nonopt is not specified, then target and build default to host.
573 # The aliases save the names the user supplied, while $host etc.
574 # will get canonicalized.
575 case $host---$target---$nonopt in
576 NONE---*---* | *---NONE---* | *---*---NONE) ;;
577 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
581 # Make sure we can run config.sub.
582 if $ac_config_sub sun4 >/dev/null 2>&1; then :
583 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
586 echo $ac_n "checking host system type""... $ac_c" 1>&6
587 echo "configure:588: checking host system type" >&5
590 case "$host_alias" in
594 if host_alias=`$ac_config_guess`; then :
595 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
597 *) host_alias=$nonopt ;;
601 host=`$ac_config_sub $host_alias`
602 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
603 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
604 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
605 echo "$ac_t""$host" 1>&6
607 echo $ac_n "checking target system type""... $ac_c" 1>&6
608 echo "configure:609: checking target system type" >&5
611 case "$target_alias" in
614 NONE) target_alias=$host_alias ;;
615 *) target_alias=$nonopt ;;
619 target=`$ac_config_sub $target_alias`
620 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
621 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
622 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
623 echo "$ac_t""$target" 1>&6
625 echo $ac_n "checking build system type""... $ac_c" 1>&6
626 echo "configure:627: checking build system type" >&5
629 case "$build_alias" in
632 NONE) build_alias=$host_alias ;;
633 *) build_alias=$nonopt ;;
637 build=`$ac_config_sub $build_alias`
638 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
639 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
640 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
641 echo "$ac_t""$build" 1>&6
643 test "$host_alias" != "$target_alias" &&
644 test "$program_prefix$program_suffix$program_transform_name" = \
646 program_prefix=${target_alias}-
649 VERSION=`sed -e 's/nmh-//' ${srcdir}/VERSION`
650 echo "configuring for nmh-$VERSION"
652 # Check whether --with-mts or --without-mts was given.
653 if test "${with_mts+set}" = set; then
659 if test x$with_mts = xsmtp; then
661 MTSLIB="mts/smtp/libsmtp.a"
662 cat >> confdefs.h <<\EOF
665 elif test x$with_mts = xsendmail; then
667 MTSLIB="mts/sendmail/libsend.a"
668 cat >> confdefs.h <<\EOF
673 MTSLIB="mts/smtp/libsmtp.a"
674 cat >> confdefs.h <<\EOF
682 # Check whether --with-editor or --without-editor was given.
683 if test "${with_editor+set}" = set; then
684 withval="$with_editor"
689 if test -n "$with_editor"; then
690 editorpath="$with_editor"
693 # Check whether --with-pager or --without-pager was given.
694 if test "${with_pager+set}" = set; then
695 withval="$with_pager"
700 if test -n "$with_pager"; then
701 pagerpath="$with_pager"
704 # Check whether --enable-nmh-mhe or --disable-nmh-mhe was given.
705 if test "${enable_nmh_mhe+set}" = set; then
706 enableval="$enable_nmh_mhe"
711 if test x$enable_nmh_mhe != xno; then
712 cat >> confdefs.h <<\EOF
717 # Check whether --enable-nmh-pop or --disable-nmh-pop was given.
718 if test "${enable_nmh_pop+set}" = set; then
719 enableval="$enable_nmh_pop"
723 if test x$enable_nmh_pop = xyes; then
724 cat >> confdefs.h <<\EOF
728 POPSED='/^%nmhbeginpop%/d;/^%nmhendpop%/d'
730 POPSED='/^%nmhbeginpop%/,/^%nmhendpop%/d'
733 # Check whether --with-krb4 or --without-krb4 was given.
734 if test "${with_krb4+set}" = set; then
739 if test x$with_krb4 != x -a x$with_krb4 != xno; then
740 cat >> confdefs.h <<\EOF
743 cat >> confdefs.h <<\EOF
744 #define KPOP_PRINCIPAL "pop"
748 # Check whether --with-hesiod or --without-hesiod was given.
749 if test "${with_hesiod+set}" = set; then
750 withval="$with_hesiod"
754 if test x$with_hesiod != x -a x$with_hesiod != xno; then
755 cat >> confdefs.h <<\EOF
760 # Check whether --enable-nmh-debug or --disable-nmh-debug was given.
761 if test "${enable_nmh_debug+set}" = set; then
762 enableval="$enable_nmh_debug"
769 test -z "$CFLAGS" && CFLAGS= auto_cflags=1
770 if test x$enable_nmh_debug = xyes; then
771 test -z "$LDFLAGS" && LDFLAGS=-g
774 # Extract the first word of "gcc", so it can be a program name with args.
775 set dummy gcc; ac_word=$2
776 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
777 echo "configure:778: checking for $ac_word" >&5
778 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
779 echo $ac_n "(cached) $ac_c" 1>&6
781 if test -n "$CC"; then
782 ac_cv_prog_CC="$CC" # Let the user override the test.
784 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
785 for ac_dir in $PATH; do
786 test -z "$ac_dir" && ac_dir=.
787 if test -f $ac_dir/$ac_word; then
796 if test -n "$CC"; then
797 echo "$ac_t""$CC" 1>&6
799 echo "$ac_t""no" 1>&6
802 if test -z "$CC"; then
803 # Extract the first word of "cc", so it can be a program name with args.
804 set dummy cc; ac_word=$2
805 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
806 echo "configure:807: checking for $ac_word" >&5
807 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
808 echo $ac_n "(cached) $ac_c" 1>&6
810 if test -n "$CC"; then
811 ac_cv_prog_CC="$CC" # Let the user override the test.
813 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
815 for ac_dir in $PATH; do
816 test -z "$ac_dir" && ac_dir=.
817 if test -f $ac_dir/$ac_word; then
818 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
827 if test $ac_prog_rejected = yes; then
828 # We found a bogon in the path, so make sure we never use it.
829 set dummy $ac_cv_prog_CC
831 if test $# -gt 0; then
832 # We chose a different compiler from the bogus one.
833 # However, it has the same basename, so the bogon will be chosen
834 # first if we set CC to just the basename; use the full file name.
836 set dummy "$ac_dir/$ac_word" "$@"
844 if test -n "$CC"; then
845 echo "$ac_t""$CC" 1>&6
847 echo "$ac_t""no" 1>&6
850 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
853 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
854 echo "configure:855: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
857 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
858 ac_cpp='$CPP $CPPFLAGS'
859 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
860 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
861 cross_compiling=$ac_cv_prog_cc_cross
863 cat > conftest.$ac_ext <<EOF
864 #line 865 "configure"
865 #include "confdefs.h"
868 if { (eval echo configure:869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
869 ac_cv_prog_cc_works=yes
870 # If we can't run a trivial program, we are probably using a cross compiler.
871 if (./conftest; exit) 2>/dev/null; then
872 ac_cv_prog_cc_cross=no
874 ac_cv_prog_cc_cross=yes
877 echo "configure: failed program was:" >&5
878 cat conftest.$ac_ext >&5
879 ac_cv_prog_cc_works=no
883 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
884 if test $ac_cv_prog_cc_works = no; then
885 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
887 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
888 echo "configure:889: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
889 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
890 cross_compiling=$ac_cv_prog_cc_cross
892 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
893 echo "configure:894: checking whether we are using GNU C" >&5
894 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
895 echo $ac_n "(cached) $ac_c" 1>&6
897 cat > conftest.c <<EOF
902 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:903: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
909 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
911 if test $ac_cv_prog_gcc = yes; then
913 ac_test_CFLAGS="${CFLAGS+set}"
914 ac_save_CFLAGS="$CFLAGS"
916 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
917 echo "configure:918: checking whether ${CC-cc} accepts -g" >&5
918 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
919 echo $ac_n "(cached) $ac_c" 1>&6
921 echo 'void f(){}' > conftest.c
922 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
931 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
932 if test "$ac_test_CFLAGS" = set; then
933 CFLAGS="$ac_save_CFLAGS"
934 elif test $ac_cv_prog_cc_g = yes; then
941 test "${CFLAGS+set}" = set || CFLAGS="-g"
945 if test -n "$auto_cflags"; then
946 if test x$enable_nmh_debug = xyes; then
947 if test -n "$GCC"; then
948 test -z "$CFLAGS" && CFLAGS="-Wall -g" || CFLAGS="$CFLAGS -Wall -g"
950 test -z "$CFLAGS" && CFLAGS=-g || CFLAGS="$CFLAGS -g"
953 test -z "$LDFLAGS" && LDFLAGS=-s
954 if test -n "$GCC"; then
955 test -z "$CFLAGS" && CFLAGS=-O2 || CFLAGS="$CFLAGS -O2"
957 test -z "$CFLAGS" && CFLAGS=-O || CFLAGS="$CFLAGS -O"
962 echo $ac_n "checking for working const""... $ac_c" 1>&6
963 echo "configure:964: checking for working const" >&5
964 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
965 echo $ac_n "(cached) $ac_c" 1>&6
967 cat > conftest.$ac_ext <<EOF
968 #line 969 "configure"
969 #include "confdefs.h"
973 /* Ultrix mips cc rejects this. */
974 typedef int charset[2]; const charset x;
975 /* SunOS 4.1.1 cc rejects this. */
976 char const *const *ccp;
978 /* NEC SVR4.0.2 mips cc rejects this. */
979 struct point {int x, y;};
980 static struct point const zero = {0,0};
981 /* AIX XL C 1.02.0.0 rejects this.
982 It does not let you subtract one const X* pointer from another in an arm
983 of an if-expression whose if-part is not a constant expression */
984 const char *g = "string";
985 ccp = &g + (g ? g-g : 0);
986 /* HPUX 7.0 cc rejects these. */
989 ccp = (char const *const *) p;
990 { /* SCO 3.2v4 cc rejects this. */
992 char const *s = 0 ? (char *) 0 : (char const *) 0;
996 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
998 const int *foo = &x[0];
1001 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1002 typedef const int *iptr;
1006 { /* AIX XL C 1.02.0.0 rejects this saying
1007 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1008 struct s { int j; const int *ap[3]; };
1009 struct s *b; b->j = 5;
1011 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1017 if { (eval echo configure:1018: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1021 echo "configure: failed program was:" >&5
1022 cat conftest.$ac_ext >&5
1029 echo "$ac_t""$ac_cv_c_const" 1>&6
1030 if test $ac_cv_c_const = no; then
1031 cat >> confdefs.h <<\EOF
1037 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1038 echo "configure:1039: checking whether ${MAKE-make} sets \${MAKE}" >&5
1039 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1040 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1041 echo $ac_n "(cached) $ac_c" 1>&6
1043 cat > conftestmake <<\EOF
1045 @echo 'ac_maketemp="${MAKE}"'
1047 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1048 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1049 if test -n "$ac_maketemp"; then
1050 eval ac_cv_prog_make_${ac_make}_set=yes
1052 eval ac_cv_prog_make_${ac_make}_set=no
1056 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1057 echo "$ac_t""yes" 1>&6
1060 echo "$ac_t""no" 1>&6
1061 SET_MAKE="MAKE=${MAKE-make}"
1063 # Find a good install program. We prefer a C program (faster),
1064 # so one script is as good as another. But avoid the broken or
1065 # incompatible versions:
1066 # SysV /etc/install, /usr/sbin/install
1067 # SunOS /usr/etc/install
1068 # IRIX /sbin/install
1070 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1071 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1072 # ./install, which can be erroneously created by make from ./install.sh.
1073 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1074 echo "configure:1075: checking for a BSD compatible install" >&5
1075 if test -z "$INSTALL"; then
1076 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1077 echo $ac_n "(cached) $ac_c" 1>&6
1079 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1080 for ac_dir in $PATH; do
1081 # Account for people who put trailing slashes in PATH elements.
1083 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1085 # OSF1 and SCO ODT 3.0 have their own names for install.
1086 for ac_prog in ginstall installbsd scoinst install; do
1087 if test -f $ac_dir/$ac_prog; then
1088 if test $ac_prog = install &&
1089 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1090 # AIX install. It has an incompatible calling convention.
1091 # OSF/1 installbsd also uses dspmsg, but is usable.
1094 ac_cv_path_install="$ac_dir/$ac_prog -c"
1105 if test "${ac_cv_path_install+set}" = set; then
1106 INSTALL="$ac_cv_path_install"
1108 # As a last resort, use the slow shell script. We don't cache a
1109 # path for INSTALL within a source directory, because that will
1110 # break other packages using the cache if that directory is
1111 # removed, or if the path is relative.
1112 INSTALL="$ac_install_sh"
1115 echo "$ac_t""$INSTALL" 1>&6
1117 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1118 # It thinks the first close brace ends the variable substitution.
1119 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1121 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1122 # Extract the first word of "ranlib", so it can be a program name with args.
1123 set dummy ranlib; ac_word=$2
1124 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1125 echo "configure:1126: checking for $ac_word" >&5
1126 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1127 echo $ac_n "(cached) $ac_c" 1>&6
1129 if test -n "$RANLIB"; then
1130 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1132 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1133 for ac_dir in $PATH; do
1134 test -z "$ac_dir" && ac_dir=.
1135 if test -f $ac_dir/$ac_word; then
1136 ac_cv_prog_RANLIB="ranlib"
1141 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1144 RANLIB="$ac_cv_prog_RANLIB"
1145 if test -n "$RANLIB"; then
1146 echo "$ac_t""$RANLIB" 1>&6
1148 echo "$ac_t""no" 1>&6
1150 for ac_prog in mawk gawk nawk awk
1152 # Extract the first word of "$ac_prog", so it can be a program name with args.
1153 set dummy $ac_prog; ac_word=$2
1154 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1155 echo "configure:1156: checking for $ac_word" >&5
1156 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1157 echo $ac_n "(cached) $ac_c" 1>&6
1159 if test -n "$AWK"; then
1160 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1162 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1163 for ac_dir in $PATH; do
1164 test -z "$ac_dir" && ac_dir=.
1165 if test -f $ac_dir/$ac_word; then
1166 ac_cv_prog_AWK="$ac_prog"
1173 AWK="$ac_cv_prog_AWK"
1174 if test -n "$AWK"; then
1175 echo "$ac_t""$AWK" 1>&6
1177 echo "$ac_t""no" 1>&6
1180 test -n "$AWK" && break
1182 # Extract the first word of "flex", so it can be a program name with args.
1183 set dummy flex; ac_word=$2
1184 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1185 echo "configure:1186: checking for $ac_word" >&5
1186 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1187 echo $ac_n "(cached) $ac_c" 1>&6
1189 if test -n "$LEX"; then
1190 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1192 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1193 for ac_dir in $PATH; do
1194 test -z "$ac_dir" && ac_dir=.
1195 if test -f $ac_dir/$ac_word; then
1196 ac_cv_prog_LEX="flex"
1201 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1204 LEX="$ac_cv_prog_LEX"
1205 if test -n "$LEX"; then
1206 echo "$ac_t""$LEX" 1>&6
1208 echo "$ac_t""no" 1>&6
1211 if test -z "$LEXLIB"
1217 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1218 echo "configure:1219: checking for yywrap in -l$ac_lib" >&5
1219 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1220 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1221 echo $ac_n "(cached) $ac_c" 1>&6
1223 ac_save_LIBS="$LIBS"
1224 LIBS="-l$ac_lib $LIBS"
1225 cat > conftest.$ac_ext <<EOF
1226 #line 1227 "configure"
1227 #include "confdefs.h"
1228 /* Override any gcc2 internal prototype to avoid an error. */
1229 /* We use char because int might match the return type of a gcc2
1230 builtin and then its argument prototype would still apply. */
1237 if { (eval echo configure:1238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1239 eval "ac_cv_lib_$ac_lib_var=yes"
1241 echo "configure: failed program was:" >&5
1242 cat conftest.$ac_ext >&5
1244 eval "ac_cv_lib_$ac_lib_var=no"
1247 LIBS="$ac_save_LIBS"
1250 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1251 echo "$ac_t""yes" 1>&6
1254 echo "$ac_t""no" 1>&6
1259 # Extract the first word of "lorder", so it can be a program name with args.
1260 set dummy lorder; ac_word=$2
1261 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1262 echo "configure:1263: checking for $ac_word" >&5
1263 if eval "test \"`echo '$''{'ac_cv_prog_LORDER'+set}'`\" = set"; then
1264 echo $ac_n "(cached) $ac_c" 1>&6
1266 if test -n "$LORDER"; then
1267 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
1269 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1270 for ac_dir in $PATH; do
1271 test -z "$ac_dir" && ac_dir=.
1272 if test -f $ac_dir/$ac_word; then
1273 ac_cv_prog_LORDER="lorder"
1278 test -z "$ac_cv_prog_LORDER" && ac_cv_prog_LORDER="no"
1281 LORDER="$ac_cv_prog_LORDER"
1282 if test -n "$LORDER"; then
1283 echo "$ac_t""$LORDER" 1>&6
1285 echo "$ac_t""no" 1>&6
1287 # Extract the first word of "tsort", so it can be a program name with args.
1288 set dummy tsort; ac_word=$2
1289 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1290 echo "configure:1291: checking for $ac_word" >&5
1291 if eval "test \"`echo '$''{'ac_cv_prog_TSORT'+set}'`\" = set"; then
1292 echo $ac_n "(cached) $ac_c" 1>&6
1294 if test -n "$TSORT"; then
1295 ac_cv_prog_TSORT="$TSORT" # Let the user override the test.
1297 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1298 for ac_dir in $PATH; do
1299 test -z "$ac_dir" && ac_dir=.
1300 if test -f $ac_dir/$ac_word; then
1301 ac_cv_prog_TSORT="tsort"
1306 test -z "$ac_cv_prog_TSORT" && ac_cv_prog_TSORT="no"
1309 TSORT="$ac_cv_prog_TSORT"
1310 if test -n "$TSORT"; then
1311 echo "$ac_t""$TSORT" 1>&6
1313 echo "$ac_t""no" 1>&6
1316 if test x$ac_cv_prog_LORDER != xlorder -o x$ac_cv_prog_TSORT != xtsort; then
1321 pathtmp=/usr/lib:/usr/sbin:/usr/etc:/usr/ucblib:/usr/bin:/bin
1322 # Extract the first word of "sendmail", so it can be a program name with args.
1323 set dummy sendmail; ac_word=$2
1324 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1325 echo "configure:1326: checking for $ac_word" >&5
1326 if eval "test \"`echo '$''{'ac_cv_path_sendmailpath'+set}'`\" = set"; then
1327 echo $ac_n "(cached) $ac_c" 1>&6
1329 case "$sendmailpath" in
1331 ac_cv_path_sendmailpath="$sendmailpath" # Let the user override the test with a path.
1334 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1335 for ac_dir in $pathtmp$ac_dummy; do
1336 test -z "$ac_dir" && ac_dir=.
1337 if test -f $ac_dir/$ac_word; then
1338 ac_cv_path_sendmailpath="$ac_dir/$ac_word"
1343 test -z "$ac_cv_path_sendmailpath" && ac_cv_path_sendmailpath="no"
1347 sendmailpath="$ac_cv_path_sendmailpath"
1348 if test -n "$sendmailpath"; then
1349 echo "$ac_t""$sendmailpath" 1>&6
1351 echo "$ac_t""no" 1>&6
1355 pathtmp=/usr/bin:/bin:/usr/ucb:/usr/local/bin
1356 # Extract the first word of "more", so it can be a program name with args.
1357 set dummy more; ac_word=$2
1358 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1359 echo "configure:1360: checking for $ac_word" >&5
1360 if eval "test \"`echo '$''{'ac_cv_path_morepath'+set}'`\" = set"; then
1361 echo $ac_n "(cached) $ac_c" 1>&6
1365 ac_cv_path_morepath="$morepath" # Let the user override the test with a path.
1368 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1369 for ac_dir in $pathtmp$ac_dummy; do
1370 test -z "$ac_dir" && ac_dir=.
1371 if test -f $ac_dir/$ac_word; then
1372 ac_cv_path_morepath="$ac_dir/$ac_word"
1377 test -z "$ac_cv_path_morepath" && ac_cv_path_morepath="no"
1381 morepath="$ac_cv_path_morepath"
1382 if test -n "$morepath"; then
1383 echo "$ac_t""$morepath" 1>&6
1385 echo "$ac_t""no" 1>&6
1389 if test -z "$pagerpath"; then
1390 pagerpath="$morepath"
1393 pathtmp=/usr/bin:/bin:/usr/ucb:/usr/local/bin
1394 # Extract the first word of "vi", so it can be a program name with args.
1395 set dummy vi; ac_word=$2
1396 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1397 echo "configure:1398: checking for $ac_word" >&5
1398 if eval "test \"`echo '$''{'ac_cv_path_vipath'+set}'`\" = set"; then
1399 echo $ac_n "(cached) $ac_c" 1>&6
1403 ac_cv_path_vipath="$vipath" # Let the user override the test with a path.
1406 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1407 for ac_dir in $pathtmp$ac_dummy; do
1408 test -z "$ac_dir" && ac_dir=.
1409 if test -f $ac_dir/$ac_word; then
1410 ac_cv_path_vipath="$ac_dir/$ac_word"
1415 test -z "$ac_cv_path_vipath" && ac_cv_path_vipath="no"
1419 vipath="$ac_cv_path_vipath"
1420 if test -n "$vipath"; then
1421 echo "$ac_t""$vipath" 1>&6
1423 echo "$ac_t""no" 1>&6
1427 if test -z "$editorpath"; then
1428 editorpath="$vipath"
1431 echo $ac_n "checking for broken vi""... $ac_c" 1>&6
1432 echo "configure:1433: checking for broken vi" >&5
1433 if eval "test \"`echo '$''{'nmh_cv_attvibug'+set}'`\" = set"; then
1434 echo $ac_n "(cached) $ac_c" 1>&6
1436 if echo 'r /nonexist-file
1437 q' | ex > /dev/null 2>&1
1445 echo "$ac_t""$nmh_cv_attvibug" 1>&6
1447 if test "$nmh_cv_attvibug" = yes; then
1448 cat >> confdefs.h <<\EOF
1454 echo $ac_n "checking where mail spool is located""... $ac_c" 1>&6
1455 echo "configure:1456: checking where mail spool is located" >&5
1456 if eval "test \"`echo '$''{'nmh_cv_mailspool'+set}'`\" = set"; then
1457 echo $ac_n "(cached) $ac_c" 1>&6
1459 for mailspool in /var/mail /var/spool/mail /usr/spool/mail /dev/null; do
1460 test -d $mailspool && break
1462 nmh_cv_mailspool=$mailspool
1466 echo "$ac_t""$nmh_cv_mailspool" 1>&6
1467 mailspool=$nmh_cv_mailspool
1470 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1472 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1473 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1474 echo "configure:1475: checking for $ac_hdr that defines DIR" >&5
1475 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1476 echo $ac_n "(cached) $ac_c" 1>&6
1478 cat > conftest.$ac_ext <<EOF
1479 #line 1480 "configure"
1480 #include "confdefs.h"
1481 #include <sys/types.h>
1487 if { (eval echo configure:1488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1489 eval "ac_cv_header_dirent_$ac_safe=yes"
1491 echo "configure: failed program was:" >&5
1492 cat conftest.$ac_ext >&5
1494 eval "ac_cv_header_dirent_$ac_safe=no"
1498 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1499 echo "$ac_t""yes" 1>&6
1500 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1501 cat >> confdefs.h <<EOF
1502 #define $ac_tr_hdr 1
1504 ac_header_dirent=$ac_hdr; break
1506 echo "$ac_t""no" 1>&6
1509 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1510 if test $ac_header_dirent = dirent.h; then
1511 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1512 echo "configure:1513: checking for opendir in -ldir" >&5
1513 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1514 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1515 echo $ac_n "(cached) $ac_c" 1>&6
1517 ac_save_LIBS="$LIBS"
1519 cat > conftest.$ac_ext <<EOF
1520 #line 1521 "configure"
1521 #include "confdefs.h"
1522 /* Override any gcc2 internal prototype to avoid an error. */
1523 /* We use char because int might match the return type of a gcc2
1524 builtin and then its argument prototype would still apply. */
1531 if { (eval echo configure:1532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1533 eval "ac_cv_lib_$ac_lib_var=yes"
1535 echo "configure: failed program was:" >&5
1536 cat conftest.$ac_ext >&5
1538 eval "ac_cv_lib_$ac_lib_var=no"
1541 LIBS="$ac_save_LIBS"
1544 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1545 echo "$ac_t""yes" 1>&6
1548 echo "$ac_t""no" 1>&6
1552 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1553 echo "configure:1554: checking for opendir in -lx" >&5
1554 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1555 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1556 echo $ac_n "(cached) $ac_c" 1>&6
1558 ac_save_LIBS="$LIBS"
1560 cat > conftest.$ac_ext <<EOF
1561 #line 1562 "configure"
1562 #include "confdefs.h"
1563 /* Override any gcc2 internal prototype to avoid an error. */
1564 /* We use char because int might match the return type of a gcc2
1565 builtin and then its argument prototype would still apply. */
1572 if { (eval echo configure:1573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1574 eval "ac_cv_lib_$ac_lib_var=yes"
1576 echo "configure: failed program was:" >&5
1577 cat conftest.$ac_ext >&5
1579 eval "ac_cv_lib_$ac_lib_var=no"
1582 LIBS="$ac_save_LIBS"
1585 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1586 echo "$ac_t""yes" 1>&6
1589 echo "$ac_t""no" 1>&6
1594 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1595 echo "configure:1596: checking how to run the C preprocessor" >&5
1596 # On Suns, sometimes $CPP names a directory.
1597 if test -n "$CPP" && test -d "$CPP"; then
1600 if test -z "$CPP"; then
1601 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1602 echo $ac_n "(cached) $ac_c" 1>&6
1604 # This must be in double quotes, not single quotes, because CPP may get
1605 # substituted into the Makefile and "${CC-cc}" will confuse make.
1607 # On the NeXT, cc -E runs the code through the compiler's parser,
1608 # not just through cpp.
1609 cat > conftest.$ac_ext <<EOF
1610 #line 1611 "configure"
1611 #include "confdefs.h"
1615 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1616 { (eval echo configure:1617: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1617 ac_err=`grep -v '^ *+' conftest.out`
1618 if test -z "$ac_err"; then
1622 echo "configure: failed program was:" >&5
1623 cat conftest.$ac_ext >&5
1625 CPP="${CC-cc} -E -traditional-cpp"
1626 cat > conftest.$ac_ext <<EOF
1627 #line 1628 "configure"
1628 #include "confdefs.h"
1632 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1633 { (eval echo configure:1634: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1634 ac_err=`grep -v '^ *+' conftest.out`
1635 if test -z "$ac_err"; then
1639 echo "configure: failed program was:" >&5
1640 cat conftest.$ac_ext >&5
1647 ac_cv_prog_CPP="$CPP"
1649 CPP="$ac_cv_prog_CPP"
1651 ac_cv_prog_CPP="$CPP"
1653 echo "$ac_t""$CPP" 1>&6
1655 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1656 echo "configure:1657: checking for ANSI C header files" >&5
1657 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1658 echo $ac_n "(cached) $ac_c" 1>&6
1660 cat > conftest.$ac_ext <<EOF
1661 #line 1662 "configure"
1662 #include "confdefs.h"
1668 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1669 { (eval echo configure:1670: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1670 ac_err=`grep -v '^ *+' conftest.out`
1671 if test -z "$ac_err"; then
1673 ac_cv_header_stdc=yes
1676 echo "configure: failed program was:" >&5
1677 cat conftest.$ac_ext >&5
1679 ac_cv_header_stdc=no
1683 if test $ac_cv_header_stdc = yes; then
1684 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1685 cat > conftest.$ac_ext <<EOF
1686 #line 1687 "configure"
1687 #include "confdefs.h"
1690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1691 egrep "memchr" >/dev/null 2>&1; then
1695 ac_cv_header_stdc=no
1701 if test $ac_cv_header_stdc = yes; then
1702 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1703 cat > conftest.$ac_ext <<EOF
1704 #line 1705 "configure"
1705 #include "confdefs.h"
1708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1709 egrep "free" >/dev/null 2>&1; then
1713 ac_cv_header_stdc=no
1719 if test $ac_cv_header_stdc = yes; then
1720 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1721 if test "$cross_compiling" = yes; then
1724 cat > conftest.$ac_ext <<EOF
1725 #line 1726 "configure"
1726 #include "confdefs.h"
1728 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1729 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1730 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1731 int main () { int i; for (i = 0; i < 256; i++)
1732 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1736 if { (eval echo configure:1737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1740 echo "configure: failed program was:" >&5
1741 cat conftest.$ac_ext >&5
1743 ac_cv_header_stdc=no
1751 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1752 if test $ac_cv_header_stdc = yes; then
1753 cat >> confdefs.h <<\EOF
1754 #define STDC_HEADERS 1
1759 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1760 echo "configure:1761: checking whether time.h and sys/time.h may both be included" >&5
1761 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1762 echo $ac_n "(cached) $ac_c" 1>&6
1764 cat > conftest.$ac_ext <<EOF
1765 #line 1766 "configure"
1766 #include "confdefs.h"
1767 #include <sys/types.h>
1768 #include <sys/time.h>
1774 if { (eval echo configure:1775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1776 ac_cv_header_time=yes
1778 echo "configure: failed program was:" >&5
1779 cat conftest.$ac_ext >&5
1781 ac_cv_header_time=no
1786 echo "$ac_t""$ac_cv_header_time" 1>&6
1787 if test $ac_cv_header_time = yes; then
1788 cat >> confdefs.h <<\EOF
1789 #define TIME_WITH_SYS_TIME 1
1794 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1795 echo "configure:1796: checking for sys/wait.h that is POSIX.1 compatible" >&5
1796 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1797 echo $ac_n "(cached) $ac_c" 1>&6
1799 cat > conftest.$ac_ext <<EOF
1800 #line 1801 "configure"
1801 #include "confdefs.h"
1802 #include <sys/types.h>
1803 #include <sys/wait.h>
1805 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1808 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1813 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1816 if { (eval echo configure:1817: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1818 ac_cv_header_sys_wait_h=yes
1820 echo "configure: failed program was:" >&5
1821 cat conftest.$ac_ext >&5
1823 ac_cv_header_sys_wait_h=no
1828 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1829 if test $ac_cv_header_sys_wait_h = yes; then
1830 cat >> confdefs.h <<\EOF
1831 #define HAVE_SYS_WAIT_H 1
1836 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
1837 echo "configure:1838: checking whether stat file-mode macros are broken" >&5
1838 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
1839 echo $ac_n "(cached) $ac_c" 1>&6
1841 cat > conftest.$ac_ext <<EOF
1842 #line 1843 "configure"
1843 #include "confdefs.h"
1844 #include <sys/types.h>
1845 #include <sys/stat.h>
1847 #if defined(S_ISBLK) && defined(S_IFDIR)
1848 # if S_ISBLK (S_IFDIR)
1853 #if defined(S_ISBLK) && defined(S_IFCHR)
1854 # if S_ISBLK (S_IFCHR)
1859 #if defined(S_ISLNK) && defined(S_IFREG)
1860 # if S_ISLNK (S_IFREG)
1865 #if defined(S_ISSOCK) && defined(S_IFREG)
1866 # if S_ISSOCK (S_IFREG)
1872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1873 egrep "You lose" >/dev/null 2>&1; then
1875 ac_cv_header_stat_broken=yes
1878 ac_cv_header_stat_broken=no
1884 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
1885 if test $ac_cv_header_stat_broken = yes; then
1886 cat >> confdefs.h <<\EOF
1887 #define STAT_MACROS_BROKEN 1
1892 for ac_hdr in string.h memory.h stdlib.h unistd.h errno.h fcntl.h \
1893 limits.h crypt.h termcap.h termio.h termios.h locale.h \
1894 sys/param.h sys/time.h sys/utsname.h arpa/inet.h \
1897 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1898 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1899 echo "configure:1900: checking for $ac_hdr" >&5
1900 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1901 echo $ac_n "(cached) $ac_c" 1>&6
1903 cat > conftest.$ac_ext <<EOF
1904 #line 1905 "configure"
1905 #include "confdefs.h"
1908 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1909 { (eval echo configure:1910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1910 ac_err=`grep -v '^ *+' conftest.out`
1911 if test -z "$ac_err"; then
1913 eval "ac_cv_header_$ac_safe=yes"
1916 echo "configure: failed program was:" >&5
1917 cat conftest.$ac_ext >&5
1919 eval "ac_cv_header_$ac_safe=no"
1923 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1924 echo "$ac_t""yes" 1>&6
1925 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1926 cat >> confdefs.h <<EOF
1927 #define $ac_tr_hdr 1
1931 echo "$ac_t""no" 1>&6
1936 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
1937 echo "configure:1938: checking POSIX termios" >&5
1938 if eval "test \"`echo '$''{'nmh_cv_sys_posix_termios'+set}'`\" = set"; then
1939 echo $ac_n "(cached) $ac_c" 1>&6
1941 cat > conftest.$ac_ext <<EOF
1942 #line 1943 "configure"
1943 #include "confdefs.h"
1944 #include <sys/types.h>
1946 #include <termios.h>
1948 /* SunOS 4.0.3 has termios.h but not the library calls. */
1952 if { (eval echo configure:1953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1954 nmh_cv_sys_posix_termios=yes
1956 echo "configure: failed program was:" >&5
1957 cat conftest.$ac_ext >&5
1959 nmh_cv_sys_posix_termios=no
1964 echo "$ac_t""$nmh_cv_sys_posix_termios" 1>&6
1966 if test $nmh_cv_sys_posix_termios = yes; then
1967 echo $ac_n "checking TIOCGWINSZ in termios.h""... $ac_c" 1>&6
1968 echo "configure:1969: checking TIOCGWINSZ in termios.h" >&5
1969 if eval "test \"`echo '$''{'nmh_cv_header_termios_h_tiocgwinsz'+set}'`\" = set"; then
1970 echo $ac_n "(cached) $ac_c" 1>&6
1972 cat > conftest.$ac_ext <<EOF
1973 #line 1974 "configure"
1974 #include "confdefs.h"
1975 #include <sys/types.h>
1976 #include <termios.h>
1981 if { (eval echo configure:1982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1983 nmh_cv_header_termios_h_tiocgwinsz=yes
1985 echo "configure: failed program was:" >&5
1986 cat conftest.$ac_ext >&5
1988 nmh_cv_header_termios_h_tiocgwinsz=no
1993 echo "$ac_t""$nmh_cv_header_termios_h_tiocgwinsz" 1>&6
1995 nmh_cv_header_termios_h_tiocgwinsz=no
1998 if test $nmh_cv_header_termios_h_tiocgwinsz = no; then
1999 echo $ac_n "checking TIOCGWINSZ in sys/ioctl.h""... $ac_c" 1>&6
2000 echo "configure:2001: checking TIOCGWINSZ in sys/ioctl.h" >&5
2001 if eval "test \"`echo '$''{'nmh_cv_header_sys_ioctl_h_tiocgwinsz'+set}'`\" = set"; then
2002 echo $ac_n "(cached) $ac_c" 1>&6
2004 cat > conftest.$ac_ext <<EOF
2005 #line 2006 "configure"
2006 #include "confdefs.h"
2007 #include <sys/types.h>
2008 #include <sys/ioctl.h>
2013 if { (eval echo configure:2014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2015 nmh_cv_header_sys_ioctl_h_tiocgwinsz=yes
2017 echo "configure: failed program was:" >&5
2018 cat conftest.$ac_ext >&5
2020 nmh_cv_header_sys_ioctl_h_tiocgwinsz=no
2025 echo "$ac_t""$nmh_cv_header_sys_ioctl_h_tiocgwinsz" 1>&6
2026 if test $nmh_cv_header_sys_ioctl_h_tiocgwinsz = yes; then
2027 cat >> confdefs.h <<\EOF
2028 #define GWINSZ_IN_SYS_IOCTL 1
2034 ac_safe=`echo "sys/ptem.h" | sed 'y%./+-%__p_%'`
2035 echo $ac_n "checking for sys/ptem.h""... $ac_c" 1>&6
2036 echo "configure:2037: checking for sys/ptem.h" >&5
2037 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2038 echo $ac_n "(cached) $ac_c" 1>&6
2040 cat > conftest.$ac_ext <<EOF
2041 #line 2042 "configure"
2042 #include "confdefs.h"
2043 #include <sys/ptem.h>
2045 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2046 { (eval echo configure:2047: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2047 ac_err=`grep -v '^ *+' conftest.out`
2048 if test -z "$ac_err"; then
2050 eval "ac_cv_header_$ac_safe=yes"
2053 echo "configure: failed program was:" >&5
2054 cat conftest.$ac_ext >&5
2056 eval "ac_cv_header_$ac_safe=no"
2060 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2061 echo "$ac_t""yes" 1>&6
2062 cat >> confdefs.h <<\EOF
2063 #define WINSIZE_IN_PTEM 1
2067 echo "$ac_t""no" 1>&6
2071 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2072 echo "configure:2073: checking for pid_t" >&5
2073 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2074 echo $ac_n "(cached) $ac_c" 1>&6
2076 cat > conftest.$ac_ext <<EOF
2077 #line 2078 "configure"
2078 #include "confdefs.h"
2079 #include <sys/types.h>
2085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2086 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2088 ac_cv_type_pid_t=yes
2096 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2097 if test $ac_cv_type_pid_t = no; then
2098 cat >> confdefs.h <<\EOF
2104 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2105 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2106 echo "configure:2107: checking for vfork.h" >&5
2107 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2108 echo $ac_n "(cached) $ac_c" 1>&6
2110 cat > conftest.$ac_ext <<EOF
2111 #line 2112 "configure"
2112 #include "confdefs.h"
2115 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2116 { (eval echo configure:2117: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2117 ac_err=`grep -v '^ *+' conftest.out`
2118 if test -z "$ac_err"; then
2120 eval "ac_cv_header_$ac_safe=yes"
2123 echo "configure: failed program was:" >&5
2124 cat conftest.$ac_ext >&5
2126 eval "ac_cv_header_$ac_safe=no"
2130 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2131 echo "$ac_t""yes" 1>&6
2132 cat >> confdefs.h <<\EOF
2133 #define HAVE_VFORK_H 1
2137 echo "$ac_t""no" 1>&6
2140 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2141 echo "configure:2142: checking for working vfork" >&5
2142 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2143 echo $ac_n "(cached) $ac_c" 1>&6
2145 if test "$cross_compiling" = yes; then
2146 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2147 echo "configure:2148: checking for vfork" >&5
2148 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2149 echo $ac_n "(cached) $ac_c" 1>&6
2151 cat > conftest.$ac_ext <<EOF
2152 #line 2153 "configure"
2153 #include "confdefs.h"
2154 /* System header to define __stub macros and hopefully few prototypes,
2155 which can conflict with char vfork(); below. */
2157 /* Override any gcc2 internal prototype to avoid an error. */
2158 /* We use char because int might match the return type of a gcc2
2159 builtin and then its argument prototype would still apply. */
2164 /* The GNU C library defines this for functions which it implements
2165 to always fail with ENOSYS. Some functions are actually named
2166 something starting with __ and the normal name is an alias. */
2167 #if defined (__stub_vfork) || defined (__stub___vfork)
2175 if { (eval echo configure:2176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2177 eval "ac_cv_func_vfork=yes"
2179 echo "configure: failed program was:" >&5
2180 cat conftest.$ac_ext >&5
2182 eval "ac_cv_func_vfork=no"
2187 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2188 echo "$ac_t""yes" 1>&6
2191 echo "$ac_t""no" 1>&6
2195 cat > conftest.$ac_ext <<EOF
2196 #line 2197 "configure"
2197 #include "confdefs.h"
2198 /* Thanks to Paul Eggert for this test. */
2200 #include <sys/types.h>
2201 #include <sys/stat.h>
2202 #ifdef HAVE_UNISTD_H
2208 /* On some sparc systems, changes by the child to local and incoming
2209 argument registers are propagated back to the parent.
2210 The compiler is told about this with #include <vfork.h>,
2211 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2212 Test for this by using a static variable whose address
2213 is put into a register that is clobbered by the vfork. */
2216 sparc_address_test (int arg)
2218 sparc_address_test (arg) int arg;
2236 pid_t parent = getpid ();
2239 sparc_address_test ();
2244 /* Here is another test for sparc vfork register problems.
2245 This test uses lots of local variables, at least
2246 as many local variables as main has allocated so far
2247 including compiler temporaries. 4 locals are enough for
2248 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2249 A buggy compiler should reuse the register of parent
2250 for one of the local variables, since it will think that
2251 parent can't possibly be used any more in this routine.
2252 Assigning to the local variable will thus munge parent
2253 in the parent process. */
2255 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2256 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2257 /* Convince the compiler that p..p7 are live; otherwise, it might
2258 use the same hardware register for all 8 local variables. */
2259 if (p != p1 || p != p2 || p != p3 || p != p4
2260 || p != p5 || p != p6 || p != p7)
2263 /* On some systems (e.g. IRIX 3.3),
2264 vfork doesn't separate parent from child file descriptors.
2265 If the child closes a descriptor before it execs or exits,
2266 this munges the parent's descriptor as well.
2267 Test for this by closing stdout in the child. */
2268 _exit(close(fileno(stdout)) != 0);
2273 while (wait(&status) != child)
2276 /* Was there some problem with vforking? */
2279 /* Did the child fail? (This shouldn't happen.) */
2282 /* Did the vfork/compiler bug occur? */
2283 || parent != getpid()
2285 /* Did the file descriptor bug occur? */
2286 || fstat(fileno(stdout), &st) != 0
2291 if { (eval echo configure:2292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2293 ac_cv_func_vfork_works=yes
2295 echo "configure: failed program was:" >&5
2296 cat conftest.$ac_ext >&5
2298 ac_cv_func_vfork_works=no
2305 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2306 if test $ac_cv_func_vfork_works = no; then
2307 cat >> confdefs.h <<\EOF
2313 for ac_func in waitpid wait3 sigaction sigprocmask sigblock sigsetmask \
2314 sighold sigrelse writev lstat uname tzset killpg
2316 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2317 echo "configure:2318: checking for $ac_func" >&5
2318 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2319 echo $ac_n "(cached) $ac_c" 1>&6
2321 cat > conftest.$ac_ext <<EOF
2322 #line 2323 "configure"
2323 #include "confdefs.h"
2324 /* System header to define __stub macros and hopefully few prototypes,
2325 which can conflict with char $ac_func(); below. */
2327 /* Override any gcc2 internal prototype to avoid an error. */
2328 /* We use char because int might match the return type of a gcc2
2329 builtin and then its argument prototype would still apply. */
2334 /* The GNU C library defines this for functions which it implements
2335 to always fail with ENOSYS. Some functions are actually named
2336 something starting with __ and the normal name is an alias. */
2337 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2345 if { (eval echo configure:2346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2347 eval "ac_cv_func_$ac_func=yes"
2349 echo "configure: failed program was:" >&5
2350 cat conftest.$ac_ext >&5
2352 eval "ac_cv_func_$ac_func=no"
2357 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2358 echo "$ac_t""yes" 1>&6
2359 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2360 cat >> confdefs.h <<EOF
2361 #define $ac_tr_func 1
2365 echo "$ac_t""no" 1>&6
2370 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
2371 echo "configure:2372: checking for sigsetjmp" >&5
2372 cat > conftest.$ac_ext <<EOF
2373 #line 2374 "configure"
2374 #include "confdefs.h"
2377 sigsetjmp((void *)0, 0);
2380 if { (eval echo configure:2381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2382 cat >> confdefs.h <<\EOF
2383 #define HAVE_SIGSETJMP 1
2385 echo "$ac_t""yes" 1>&6
2387 echo "configure: failed program was:" >&5
2388 cat conftest.$ac_ext >&5
2390 echo "$ac_t""no" 1>&6
2394 for ac_func in snprintf strerror strdup
2396 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2397 echo "configure:2398: checking for $ac_func" >&5
2398 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2399 echo $ac_n "(cached) $ac_c" 1>&6
2401 cat > conftest.$ac_ext <<EOF
2402 #line 2403 "configure"
2403 #include "confdefs.h"
2404 /* System header to define __stub macros and hopefully few prototypes,
2405 which can conflict with char $ac_func(); below. */
2407 /* Override any gcc2 internal prototype to avoid an error. */
2408 /* We use char because int might match the return type of a gcc2
2409 builtin and then its argument prototype would still apply. */
2414 /* The GNU C library defines this for functions which it implements
2415 to always fail with ENOSYS. Some functions are actually named
2416 something starting with __ and the normal name is an alias. */
2417 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2425 if { (eval echo configure:2426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2427 eval "ac_cv_func_$ac_func=yes"
2429 echo "configure: failed program was:" >&5
2430 cat conftest.$ac_ext >&5
2432 eval "ac_cv_func_$ac_func=no"
2437 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2438 echo "$ac_t""yes" 1>&6
2439 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2440 cat >> confdefs.h <<EOF
2441 #define $ac_tr_func 1
2445 echo "$ac_t""no" 1>&6
2446 LIBOBJS="$LIBOBJS ${ac_func}.o"
2452 echo $ac_n "checking for modf""... $ac_c" 1>&6
2453 echo "configure:2454: checking for modf" >&5
2454 if eval "test \"`echo '$''{'ac_cv_func_modf'+set}'`\" = set"; then
2455 echo $ac_n "(cached) $ac_c" 1>&6
2457 cat > conftest.$ac_ext <<EOF
2458 #line 2459 "configure"
2459 #include "confdefs.h"
2460 /* System header to define __stub macros and hopefully few prototypes,
2461 which can conflict with char modf(); below. */
2463 /* Override any gcc2 internal prototype to avoid an error. */
2464 /* We use char because int might match the return type of a gcc2
2465 builtin and then its argument prototype would still apply. */
2470 /* The GNU C library defines this for functions which it implements
2471 to always fail with ENOSYS. Some functions are actually named
2472 something starting with __ and the normal name is an alias. */
2473 #if defined (__stub_modf) || defined (__stub___modf)
2481 if { (eval echo configure:2482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2483 eval "ac_cv_func_modf=yes"
2485 echo "configure: failed program was:" >&5
2486 cat conftest.$ac_ext >&5
2488 eval "ac_cv_func_modf=no"
2493 if eval "test \"`echo '$ac_cv_func_'modf`\" = yes"; then
2494 echo "$ac_t""yes" 1>&6
2497 echo "$ac_t""no" 1>&6
2498 echo $ac_n "checking for modf in -lm""... $ac_c" 1>&6
2499 echo "configure:2500: checking for modf in -lm" >&5
2500 ac_lib_var=`echo m'_'modf | sed 'y%./+-%__p_%'`
2501 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2502 echo $ac_n "(cached) $ac_c" 1>&6
2504 ac_save_LIBS="$LIBS"
2506 cat > conftest.$ac_ext <<EOF
2507 #line 2508 "configure"
2508 #include "confdefs.h"
2509 /* Override any gcc2 internal prototype to avoid an error. */
2510 /* We use char because int might match the return type of a gcc2
2511 builtin and then its argument prototype would still apply. */
2518 if { (eval echo configure:2519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2520 eval "ac_cv_lib_$ac_lib_var=yes"
2522 echo "configure: failed program was:" >&5
2523 cat conftest.$ac_ext >&5
2525 eval "ac_cv_lib_$ac_lib_var=no"
2528 LIBS="$ac_save_LIBS"
2531 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2532 echo "$ac_t""yes" 1>&6
2533 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
2534 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2535 cat >> confdefs.h <<EOF
2536 #define $ac_tr_lib 1
2542 echo "$ac_t""no" 1>&6
2548 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2549 echo "configure:2550: checking for gethostbyname" >&5
2550 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2551 echo $ac_n "(cached) $ac_c" 1>&6
2553 cat > conftest.$ac_ext <<EOF
2554 #line 2555 "configure"
2555 #include "confdefs.h"
2556 /* System header to define __stub macros and hopefully few prototypes,
2557 which can conflict with char gethostbyname(); below. */
2559 /* Override any gcc2 internal prototype to avoid an error. */
2560 /* We use char because int might match the return type of a gcc2
2561 builtin and then its argument prototype would still apply. */
2562 char gethostbyname();
2566 /* The GNU C library defines this for functions which it implements
2567 to always fail with ENOSYS. Some functions are actually named
2568 something starting with __ and the normal name is an alias. */
2569 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2577 if { (eval echo configure:2578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2579 eval "ac_cv_func_gethostbyname=yes"
2581 echo "configure: failed program was:" >&5
2582 cat conftest.$ac_ext >&5
2584 eval "ac_cv_func_gethostbyname=no"
2589 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
2590 echo "$ac_t""yes" 1>&6
2593 echo "$ac_t""no" 1>&6
2594 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2595 echo "configure:2596: checking for gethostbyname in -lnsl" >&5
2596 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2597 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2598 echo $ac_n "(cached) $ac_c" 1>&6
2600 ac_save_LIBS="$LIBS"
2602 cat > conftest.$ac_ext <<EOF
2603 #line 2604 "configure"
2604 #include "confdefs.h"
2605 /* Override any gcc2 internal prototype to avoid an error. */
2606 /* We use char because int might match the return type of a gcc2
2607 builtin and then its argument prototype would still apply. */
2608 char gethostbyname();
2614 if { (eval echo configure:2615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2616 eval "ac_cv_lib_$ac_lib_var=yes"
2618 echo "configure: failed program was:" >&5
2619 cat conftest.$ac_ext >&5
2621 eval "ac_cv_lib_$ac_lib_var=no"
2624 LIBS="$ac_save_LIBS"
2627 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2628 echo "$ac_t""yes" 1>&6
2629 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
2630 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2631 cat >> confdefs.h <<EOF
2632 #define $ac_tr_lib 1
2638 echo "$ac_t""no" 1>&6
2639 echo $ac_n "checking for gethostbyname in -lresolv""... $ac_c" 1>&6
2640 echo "configure:2641: checking for gethostbyname in -lresolv" >&5
2641 ac_lib_var=`echo resolv'_'gethostbyname | sed 'y%./+-%__p_%'`
2642 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2643 echo $ac_n "(cached) $ac_c" 1>&6
2645 ac_save_LIBS="$LIBS"
2646 LIBS="-lresolv $LIBS"
2647 cat > conftest.$ac_ext <<EOF
2648 #line 2649 "configure"
2649 #include "confdefs.h"
2650 /* Override any gcc2 internal prototype to avoid an error. */
2651 /* We use char because int might match the return type of a gcc2
2652 builtin and then its argument prototype would still apply. */
2653 char gethostbyname();
2659 if { (eval echo configure:2660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2661 eval "ac_cv_lib_$ac_lib_var=yes"
2663 echo "configure: failed program was:" >&5
2664 cat conftest.$ac_ext >&5
2666 eval "ac_cv_lib_$ac_lib_var=no"
2669 LIBS="$ac_save_LIBS"
2672 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2673 echo "$ac_t""yes" 1>&6
2674 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
2675 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2676 cat >> confdefs.h <<EOF
2677 #define $ac_tr_lib 1
2680 LIBS="-lresolv $LIBS"
2683 echo "$ac_t""no" 1>&6
2690 echo $ac_n "checking for socket""... $ac_c" 1>&6
2691 echo "configure:2692: checking for socket" >&5
2692 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
2693 echo $ac_n "(cached) $ac_c" 1>&6
2695 cat > conftest.$ac_ext <<EOF
2696 #line 2697 "configure"
2697 #include "confdefs.h"
2698 /* System header to define __stub macros and hopefully few prototypes,
2699 which can conflict with char socket(); below. */
2701 /* Override any gcc2 internal prototype to avoid an error. */
2702 /* We use char because int might match the return type of a gcc2
2703 builtin and then its argument prototype would still apply. */
2708 /* The GNU C library defines this for functions which it implements
2709 to always fail with ENOSYS. Some functions are actually named
2710 something starting with __ and the normal name is an alias. */
2711 #if defined (__stub_socket) || defined (__stub___socket)
2719 if { (eval echo configure:2720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2721 eval "ac_cv_func_socket=yes"
2723 echo "configure: failed program was:" >&5
2724 cat conftest.$ac_ext >&5
2726 eval "ac_cv_func_socket=no"
2731 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
2732 echo "$ac_t""yes" 1>&6
2735 echo "$ac_t""no" 1>&6
2736 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
2737 echo "configure:2738: checking for socket in -lsocket" >&5
2738 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
2739 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2740 echo $ac_n "(cached) $ac_c" 1>&6
2742 ac_save_LIBS="$LIBS"
2743 LIBS="-lsocket $LIBS"
2744 cat > conftest.$ac_ext <<EOF
2745 #line 2746 "configure"
2746 #include "confdefs.h"
2747 /* Override any gcc2 internal prototype to avoid an error. */
2748 /* We use char because int might match the return type of a gcc2
2749 builtin and then its argument prototype would still apply. */
2756 if { (eval echo configure:2757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2758 eval "ac_cv_lib_$ac_lib_var=yes"
2760 echo "configure: failed program was:" >&5
2761 cat conftest.$ac_ext >&5
2763 eval "ac_cv_lib_$ac_lib_var=no"
2766 LIBS="$ac_save_LIBS"
2769 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2770 echo "$ac_t""yes" 1>&6
2771 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
2772 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2773 cat >> confdefs.h <<EOF
2774 #define $ac_tr_lib 1
2777 LIBS="-lsocket $LIBS"
2780 echo "$ac_t""no" 1>&6
2787 echo $ac_n "checking for ruserpass""... $ac_c" 1>&6
2788 echo "configure:2789: checking for ruserpass" >&5
2789 if eval "test \"`echo '$''{'ac_cv_func_ruserpass'+set}'`\" = set"; then
2790 echo $ac_n "(cached) $ac_c" 1>&6
2792 cat > conftest.$ac_ext <<EOF
2793 #line 2794 "configure"
2794 #include "confdefs.h"
2795 /* System header to define __stub macros and hopefully few prototypes,
2796 which can conflict with char ruserpass(); below. */
2798 /* Override any gcc2 internal prototype to avoid an error. */
2799 /* We use char because int might match the return type of a gcc2
2800 builtin and then its argument prototype would still apply. */
2805 /* The GNU C library defines this for functions which it implements
2806 to always fail with ENOSYS. Some functions are actually named
2807 something starting with __ and the normal name is an alias. */
2808 #if defined (__stub_ruserpass) || defined (__stub___ruserpass)
2816 if { (eval echo configure:2817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2818 eval "ac_cv_func_ruserpass=yes"
2820 echo "configure: failed program was:" >&5
2821 cat conftest.$ac_ext >&5
2823 eval "ac_cv_func_ruserpass=no"
2828 if eval "test \"`echo '$ac_cv_func_'ruserpass`\" = yes"; then
2829 echo "$ac_t""yes" 1>&6
2832 echo "$ac_t""no" 1>&6
2833 echo $ac_n "checking for _ruserpass""... $ac_c" 1>&6
2834 echo "configure:2835: checking for _ruserpass" >&5
2835 if eval "test \"`echo '$''{'ac_cv_func__ruserpass'+set}'`\" = set"; then
2836 echo $ac_n "(cached) $ac_c" 1>&6
2838 cat > conftest.$ac_ext <<EOF
2839 #line 2840 "configure"
2840 #include "confdefs.h"
2841 /* System header to define __stub macros and hopefully few prototypes,
2842 which can conflict with char _ruserpass(); below. */
2844 /* Override any gcc2 internal prototype to avoid an error. */
2845 /* We use char because int might match the return type of a gcc2
2846 builtin and then its argument prototype would still apply. */
2851 /* The GNU C library defines this for functions which it implements
2852 to always fail with ENOSYS. Some functions are actually named
2853 something starting with __ and the normal name is an alias. */
2854 #if defined (__stub__ruserpass) || defined (__stub____ruserpass)
2862 if { (eval echo configure:2863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2864 eval "ac_cv_func__ruserpass=yes"
2866 echo "configure: failed program was:" >&5
2867 cat conftest.$ac_ext >&5
2869 eval "ac_cv_func__ruserpass=no"
2874 if eval "test \"`echo '$ac_cv_func_'_ruserpass`\" = yes"; then
2875 echo "$ac_t""yes" 1>&6
2878 echo "$ac_t""no" 1>&6
2879 echo $ac_n "checking for _ruserpass in -lsocket""... $ac_c" 1>&6
2880 echo "configure:2881: checking for _ruserpass in -lsocket" >&5
2881 ac_lib_var=`echo socket'_'_ruserpass | sed 'y%./+-%__p_%'`
2882 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2883 echo $ac_n "(cached) $ac_c" 1>&6
2885 ac_save_LIBS="$LIBS"
2886 LIBS="-lsocket $LIBS"
2887 cat > conftest.$ac_ext <<EOF
2888 #line 2889 "configure"
2889 #include "confdefs.h"
2890 /* Override any gcc2 internal prototype to avoid an error. */
2891 /* We use char because int might match the return type of a gcc2
2892 builtin and then its argument prototype would still apply. */
2899 if { (eval echo configure:2900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2901 eval "ac_cv_lib_$ac_lib_var=yes"
2903 echo "configure: failed program was:" >&5
2904 cat conftest.$ac_ext >&5
2906 eval "ac_cv_lib_$ac_lib_var=no"
2909 LIBS="$ac_save_LIBS"
2912 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2913 echo "$ac_t""yes" 1>&6
2914 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
2915 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2916 cat >> confdefs.h <<EOF
2917 #define $ac_tr_lib 1
2920 LIBS="-lsocket $LIBS"
2923 echo "$ac_t""no" 1>&6
2930 if test x$ac_cv_func_ruserpass = xno; then
2931 if test x$ac_cv_func__ruserpass = xyes -o x$ac_cv_lib_socket__ruserpass = xyes; then
2932 cat >> confdefs.h <<\EOF
2933 #define ruserpass _ruserpass
2937 LIBOBJS="$LIBOBJS ruserpass.o"
2942 termcap_curses_order="termcap curses ncurses"
2943 for lib in $termcap_curses_order; do
2944 echo $ac_n "checking for tgetent in -l${lib}""... $ac_c" 1>&6
2945 echo "configure:2946: checking for tgetent in -l${lib}" >&5
2946 ac_lib_var=`echo ${lib}'_'tgetent | sed 'y%./+-%__p_%'`
2947 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2948 echo $ac_n "(cached) $ac_c" 1>&6
2950 ac_save_LIBS="$LIBS"
2951 LIBS="-l${lib} $LIBS"
2952 cat > conftest.$ac_ext <<EOF
2953 #line 2954 "configure"
2954 #include "confdefs.h"
2955 /* Override any gcc2 internal prototype to avoid an error. */
2956 /* We use char because int might match the return type of a gcc2
2957 builtin and then its argument prototype would still apply. */
2964 if { (eval echo configure:2965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2966 eval "ac_cv_lib_$ac_lib_var=yes"
2968 echo "configure: failed program was:" >&5
2969 cat conftest.$ac_ext >&5
2971 eval "ac_cv_lib_$ac_lib_var=no"
2974 LIBS="$ac_save_LIBS"
2977 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2978 echo "$ac_t""yes" 1>&6
2979 TERMLIB="-l$lib"; break
2981 echo "$ac_t""no" 1>&6
2986 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
2987 echo "configure:2988: checking for dbm_open" >&5
2988 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
2989 echo $ac_n "(cached) $ac_c" 1>&6
2991 cat > conftest.$ac_ext <<EOF
2992 #line 2993 "configure"
2993 #include "confdefs.h"
2994 /* System header to define __stub macros and hopefully few prototypes,
2995 which can conflict with char dbm_open(); below. */
2997 /* Override any gcc2 internal prototype to avoid an error. */
2998 /* We use char because int might match the return type of a gcc2
2999 builtin and then its argument prototype would still apply. */
3004 /* The GNU C library defines this for functions which it implements
3005 to always fail with ENOSYS. Some functions are actually named
3006 something starting with __ and the normal name is an alias. */
3007 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
3015 if { (eval echo configure:3016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3017 eval "ac_cv_func_dbm_open=yes"
3019 echo "configure: failed program was:" >&5
3020 cat conftest.$ac_ext >&5
3022 eval "ac_cv_func_dbm_open=no"
3027 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
3028 echo "$ac_t""yes" 1>&6
3031 echo "$ac_t""no" 1>&6
3032 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
3033 echo "configure:3034: checking for dbm_open in -lndbm" >&5
3034 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
3035 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3036 echo $ac_n "(cached) $ac_c" 1>&6
3038 ac_save_LIBS="$LIBS"
3040 cat > conftest.$ac_ext <<EOF
3041 #line 3042 "configure"
3042 #include "confdefs.h"
3043 /* Override any gcc2 internal prototype to avoid an error. */
3044 /* We use char because int might match the return type of a gcc2
3045 builtin and then its argument prototype would still apply. */
3052 if { (eval echo configure:3053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3054 eval "ac_cv_lib_$ac_lib_var=yes"
3056 echo "configure: failed program was:" >&5
3057 cat conftest.$ac_ext >&5
3059 eval "ac_cv_lib_$ac_lib_var=no"
3062 LIBS="$ac_save_LIBS"
3065 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3066 echo "$ac_t""yes" 1>&6
3067 ac_tr_lib=HAVE_LIB`echo ndbm | sed -e 's/^a-zA-Z0-9_/_/g' \
3068 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3069 cat >> confdefs.h <<EOF
3070 #define $ac_tr_lib 1
3076 echo "$ac_t""no" 1>&6
3077 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
3078 echo "configure:3079: checking for dbm_open in -ldbm" >&5
3079 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
3080 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3081 echo $ac_n "(cached) $ac_c" 1>&6
3083 ac_save_LIBS="$LIBS"
3085 cat > conftest.$ac_ext <<EOF
3086 #line 3087 "configure"
3087 #include "confdefs.h"
3088 /* Override any gcc2 internal prototype to avoid an error. */
3089 /* We use char because int might match the return type of a gcc2
3090 builtin and then its argument prototype would still apply. */
3097 if { (eval echo configure:3098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3099 eval "ac_cv_lib_$ac_lib_var=yes"
3101 echo "configure: failed program was:" >&5
3102 cat conftest.$ac_ext >&5
3104 eval "ac_cv_lib_$ac_lib_var=no"
3107 LIBS="$ac_save_LIBS"
3110 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3111 echo "$ac_t""yes" 1>&6
3112 ac_tr_lib=HAVE_LIB`echo dbm | sed -e 's/^a-zA-Z0-9_/_/g' \
3113 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3114 cat >> confdefs.h <<EOF
3115 #define $ac_tr_lib 1
3121 echo "$ac_t""no" 1>&6
3129 if test x$with_hesiod != x -a x$with_hesiod != xno; then
3130 if test x$with_hesiod != xyes; then
3131 HESIOD_INCLUDES="-I$with_hesiod/include"
3132 HESIOD_LIBS="-L$with_hesiod/lib"
3134 echo $ac_n "checking for res_send""... $ac_c" 1>&6
3135 echo "configure:3136: checking for res_send" >&5
3136 if eval "test \"`echo '$''{'ac_cv_func_res_send'+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 res_send(); 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_res_send) || defined (__stub___res_send)
3163 if { (eval echo configure:3164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3165 eval "ac_cv_func_res_send=yes"
3167 echo "configure: failed program was:" >&5
3168 cat conftest.$ac_ext >&5
3170 eval "ac_cv_func_res_send=no"
3175 if eval "test \"`echo '$ac_cv_func_'res_send`\" = yes"; then
3176 echo "$ac_t""yes" 1>&6
3179 echo "$ac_t""no" 1>&6
3180 echo $ac_n "checking for res_send in -lresolv""... $ac_c" 1>&6
3181 echo "configure:3182: checking for res_send in -lresolv" >&5
3182 ac_lib_var=`echo resolv'_'res_send | sed 'y%./+-%__p_%'`
3183 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3184 echo $ac_n "(cached) $ac_c" 1>&6
3186 ac_save_LIBS="$LIBS"
3187 LIBS="-lresolv $LIBS"
3188 cat > conftest.$ac_ext <<EOF
3189 #line 3190 "configure"
3190 #include "confdefs.h"
3191 /* Override any gcc2 internal prototype to avoid an error. */
3192 /* We use char because int might match the return type of a gcc2
3193 builtin and then its argument prototype would still apply. */
3200 if { (eval echo configure:3201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3202 eval "ac_cv_lib_$ac_lib_var=yes"
3204 echo "configure: failed program was:" >&5
3205 cat conftest.$ac_ext >&5
3207 eval "ac_cv_lib_$ac_lib_var=no"
3210 LIBS="$ac_save_LIBS"
3213 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3214 echo "$ac_t""yes" 1>&6
3215 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
3216 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3217 cat >> confdefs.h <<EOF
3218 #define $ac_tr_lib 1
3221 LIBS="-lresolv $LIBS"
3224 echo "$ac_t""no" 1>&6
3229 echo $ac_n "checking for hes_resolve in -lhesiod""... $ac_c" 1>&6
3230 echo "configure:3231: checking for hes_resolve in -lhesiod" >&5
3231 ac_lib_var=`echo hesiod'_'hes_resolve | sed 'y%./+-%__p_%'`
3232 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3233 echo $ac_n "(cached) $ac_c" 1>&6
3235 ac_save_LIBS="$LIBS"
3236 LIBS="-lhesiod $HESIOD_LIBS $LIBS"
3237 cat > conftest.$ac_ext <<EOF
3238 #line 3239 "configure"
3239 #include "confdefs.h"
3240 /* Override any gcc2 internal prototype to avoid an error. */
3241 /* We use char because int might match the return type of a gcc2
3242 builtin and then its argument prototype would still apply. */
3249 if { (eval echo configure:3250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3251 eval "ac_cv_lib_$ac_lib_var=yes"
3253 echo "configure: failed program was:" >&5
3254 cat conftest.$ac_ext >&5
3256 eval "ac_cv_lib_$ac_lib_var=no"
3259 LIBS="$ac_save_LIBS"
3262 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3263 echo "$ac_t""yes" 1>&6
3264 HESIOD_LIBS="$HESIOD_LIBS -lhesiod"
3266 echo "$ac_t""no" 1>&6
3267 { echo "configure: error: Hesiod library not found" 1>&2; exit 1; }
3272 if test x$with_krb4 != x -a x$with_krb4 != xno; then
3273 if test x$with_krb4 != xyes; then
3274 KRB4_INCLUDES="-I$with_krb4/include"
3275 if test -d "$with_krb4/include/kerberosIV"; then
3276 KRB4_INCLUDES="$KRB4_INCLUDES -I$with_krb4/include/kerberosIV"
3278 KRB4_LIBS="-L$with_krb4/lib"
3279 elif test -d /usr/include/kerberosIV; then
3280 KRB4_INCLUDES="-I/usr/include/kerberosIV"
3282 echo $ac_n "checking for krb_rd_req in -lkrb4""... $ac_c" 1>&6
3283 echo "configure:3284: checking for krb_rd_req in -lkrb4" >&5
3284 ac_lib_var=`echo krb4'_'krb_rd_req | sed 'y%./+-%__p_%'`
3285 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3286 echo $ac_n "(cached) $ac_c" 1>&6
3288 ac_save_LIBS="$LIBS"
3289 LIBS="-lkrb4 $KRB4_LIBS -ldes425 -lkrb5 -lcrypto -lcom_err $LIBS"
3290 cat > conftest.$ac_ext <<EOF
3291 #line 3292 "configure"
3292 #include "confdefs.h"
3293 /* Override any gcc2 internal prototype to avoid an error. */
3294 /* We use char because int might match the return type of a gcc2
3295 builtin and then its argument prototype would still apply. */
3302 if { (eval echo configure:3303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3304 eval "ac_cv_lib_$ac_lib_var=yes"
3306 echo "configure: failed program was:" >&5
3307 cat conftest.$ac_ext >&5
3309 eval "ac_cv_lib_$ac_lib_var=no"
3312 LIBS="$ac_save_LIBS"
3315 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3316 echo "$ac_t""yes" 1>&6
3317 KRB4_LIBS="$KRB4_LIBS -lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err"
3319 echo "$ac_t""no" 1>&6
3320 echo $ac_n "checking for krb_rd_req in -lkrb""... $ac_c" 1>&6
3321 echo "configure:3322: checking for krb_rd_req in -lkrb" >&5
3322 ac_lib_var=`echo krb'_'krb_rd_req | sed 'y%./+-%__p_%'`
3323 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3324 echo $ac_n "(cached) $ac_c" 1>&6
3326 ac_save_LIBS="$LIBS"
3327 LIBS="-lkrb $KRB4_LIBS -ldes $LIBS"
3328 cat > conftest.$ac_ext <<EOF
3329 #line 3330 "configure"
3330 #include "confdefs.h"
3331 /* Override any gcc2 internal prototype to avoid an error. */
3332 /* We use char because int might match the return type of a gcc2
3333 builtin and then its argument prototype would still apply. */
3340 if { (eval echo configure:3341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3342 eval "ac_cv_lib_$ac_lib_var=yes"
3344 echo "configure: failed program was:" >&5
3345 cat conftest.$ac_ext >&5
3347 eval "ac_cv_lib_$ac_lib_var=no"
3350 LIBS="$ac_save_LIBS"
3353 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3354 echo "$ac_t""yes" 1>&6
3355 KRB4_LIBS="$KRB4_LIBS -lkrb -ldes"
3357 echo "$ac_t""no" 1>&6
3358 { echo "configure: error: Kerberos 4 libraries not found" 1>&2; exit 1; }
3366 nmh_save_LIBS="$LIBS"
3367 LIBS="$TERMLIB $LIBS"
3369 echo $ac_n "checking if an include file defines ospeed""... $ac_c" 1>&6
3370 echo "configure:3371: checking if an include file defines ospeed" >&5
3371 if eval "test \"`echo '$''{'nmh_cv_decl_ospeed_include_defines'+set}'`\" = set"; then
3372 echo $ac_n "(cached) $ac_c" 1>&6
3374 cat > conftest.$ac_ext <<EOF
3375 #line 3376 "configure"
3376 #include "confdefs.h"
3377 #include <sys/types.h>
3379 #include <termios.h>
3382 #include <termcap.h>
3388 if { (eval echo configure:3389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3390 nmh_cv_decl_ospeed_include_defines=yes
3392 echo "configure: failed program was:" >&5
3393 cat conftest.$ac_ext >&5
3395 nmh_cv_decl_ospeed_include_defines=no
3400 echo "$ac_t""$nmh_cv_decl_ospeed_include_defines" 1>&6
3402 if test $nmh_cv_decl_ospeed_include_defines = no; then
3403 echo $ac_n "checking if you must define ospeed""... $ac_c" 1>&6
3404 echo "configure:3405: checking if you must define ospeed" >&5
3405 if eval "test \"`echo '$''{'nmh_cv_decl_ospeed_must_define'+set}'`\" = set"; then
3406 echo $ac_n "(cached) $ac_c" 1>&6
3408 cat > conftest.$ac_ext <<EOF
3409 #line 3410 "configure"
3410 #include "confdefs.h"
3413 extern short ospeed; ospeed = 0;
3416 if { (eval echo configure:3417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3418 nmh_cv_decl_ospeed_must_define=yes
3420 echo "configure: failed program was:" >&5
3421 cat conftest.$ac_ext >&5
3423 nmh_cv_decl_ospeed_must_define=no
3428 echo "$ac_t""$nmh_cv_decl_ospeed_must_define" 1>&6
3431 if test $nmh_cv_decl_ospeed_include_defines = yes; then
3432 cat >> confdefs.h <<\EOF
3433 #define HAVE_OSPEED 1
3436 elif test $nmh_cv_decl_ospeed_must_define = yes; then
3437 cat >> confdefs.h <<\EOF
3438 #define HAVE_OSPEED 1
3441 cat >> confdefs.h <<\EOF
3442 #define MUST_DEFINE_OSPEED 1
3448 LIBS="$nmh_save_LIBS"
3450 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3451 echo "configure:3452: checking return type of signal handlers" >&5
3452 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3453 echo $ac_n "(cached) $ac_c" 1>&6
3455 cat > conftest.$ac_ext <<EOF
3456 #line 3457 "configure"
3457 #include "confdefs.h"
3458 #include <sys/types.h>
3464 extern "C" void (*signal (int, void (*)(int)))(int);
3466 void (*signal ()) ();
3473 if { (eval echo configure:3474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3475 ac_cv_type_signal=void
3477 echo "configure: failed program was:" >&5
3478 cat conftest.$ac_ext >&5
3480 ac_cv_type_signal=int
3485 echo "$ac_t""$ac_cv_type_signal" 1>&6
3486 cat >> confdefs.h <<EOF
3487 #define RETSIGTYPE $ac_cv_type_signal
3491 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3492 echo "configure:3493: checking for pid_t" >&5
3493 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3494 echo $ac_n "(cached) $ac_c" 1>&6
3496 cat > conftest.$ac_ext <<EOF
3497 #line 3498 "configure"
3498 #include "confdefs.h"
3499 #include <sys/types.h>
3505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3506 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3508 ac_cv_type_pid_t=yes
3516 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3517 if test $ac_cv_type_pid_t = no; then
3518 cat >> confdefs.h <<\EOF
3524 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3525 echo "configure:3526: checking for off_t" >&5
3526 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3527 echo $ac_n "(cached) $ac_c" 1>&6
3529 cat > conftest.$ac_ext <<EOF
3530 #line 3531 "configure"
3531 #include "confdefs.h"
3532 #include <sys/types.h>
3538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3539 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3541 ac_cv_type_off_t=yes
3549 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3550 if test $ac_cv_type_off_t = no; then
3551 cat >> confdefs.h <<\EOF
3557 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3558 echo "configure:3559: checking for uid_t in sys/types.h" >&5
3559 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3560 echo $ac_n "(cached) $ac_c" 1>&6
3562 cat > conftest.$ac_ext <<EOF
3563 #line 3564 "configure"
3564 #include "confdefs.h"
3565 #include <sys/types.h>
3567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3568 egrep "uid_t" >/dev/null 2>&1; then
3570 ac_cv_type_uid_t=yes
3579 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3580 if test $ac_cv_type_uid_t = no; then
3581 cat >> confdefs.h <<\EOF
3585 cat >> confdefs.h <<\EOF
3591 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3592 echo "configure:3593: checking for mode_t" >&5
3593 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3594 echo $ac_n "(cached) $ac_c" 1>&6
3596 cat > conftest.$ac_ext <<EOF
3597 #line 3598 "configure"
3598 #include "confdefs.h"
3599 #include <sys/types.h>
3605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3606 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3608 ac_cv_type_mode_t=yes
3611 ac_cv_type_mode_t=no
3616 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3617 if test $ac_cv_type_mode_t = no; then
3618 cat >> confdefs.h <<\EOF
3624 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3625 echo "configure:3626: checking for size_t" >&5
3626 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3627 echo $ac_n "(cached) $ac_c" 1>&6
3629 cat > conftest.$ac_ext <<EOF
3630 #line 3631 "configure"
3631 #include "confdefs.h"
3632 #include <sys/types.h>
3638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3639 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3641 ac_cv_type_size_t=yes
3644 ac_cv_type_size_t=no
3649 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3650 if test $ac_cv_type_size_t = no; then
3651 cat >> confdefs.h <<\EOF
3652 #define size_t unsigned
3658 echo $ac_n "checking for sigset_t""... $ac_c" 1>&6
3659 echo "configure:3660: checking for sigset_t" >&5
3660 if eval "test \"`echo '$''{'nmh_cv_type_sigset_t'+set}'`\" = set"; then
3661 echo $ac_n "(cached) $ac_c" 1>&6
3663 cat > conftest.$ac_ext <<EOF
3664 #line 3665 "configure"
3665 #include "confdefs.h"
3666 #include <sys/types.h>
3669 sigset_t tempsigset;
3672 if { (eval echo configure:3673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3674 nmh_cv_type_sigset_t=yes
3676 echo "configure: failed program was:" >&5
3677 cat conftest.$ac_ext >&5
3679 nmh_cv_type_sigset_t=no
3684 echo "$ac_t""$nmh_cv_type_sigset_t" 1>&6
3685 if test $nmh_cv_type_sigset_t = no; then
3686 cat >> confdefs.h <<\EOF
3687 #define sigset_t unsigned int
3692 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
3693 echo "configure:3694: checking for st_blksize in struct stat" >&5
3694 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
3695 echo $ac_n "(cached) $ac_c" 1>&6
3697 cat > conftest.$ac_ext <<EOF
3698 #line 3699 "configure"
3699 #include "confdefs.h"
3700 #include <sys/types.h>
3701 #include <sys/stat.h>
3703 struct stat s; s.st_blksize;
3706 if { (eval echo configure:3707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3708 ac_cv_struct_st_blksize=yes
3710 echo "configure: failed program was:" >&5
3711 cat conftest.$ac_ext >&5
3713 ac_cv_struct_st_blksize=no
3718 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
3719 if test $ac_cv_struct_st_blksize = yes; then
3720 cat >> confdefs.h <<\EOF
3721 #define HAVE_ST_BLKSIZE 1
3727 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
3728 echo "configure:3729: checking for tm_gmtoff in struct tm" >&5
3729 if eval "test \"`echo '$''{'nmh_cv_struct_tm_gmtoff'+set}'`\" = set"; then
3730 echo $ac_n "(cached) $ac_c" 1>&6
3732 cat > conftest.$ac_ext <<EOF
3733 #line 3734 "configure"
3734 #include "confdefs.h"
3735 #ifdef TIME_WITH_SYS_TIME
3736 # include <sys/time.h>
3739 # ifdef TM_IN_SYS_TIME
3740 # include <sys/time.h>
3746 struct tm temptm; temptm.tm_gmtoff = 0;
3749 if { (eval echo configure:3750: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3751 nmh_cv_struct_tm_gmtoff=yes
3753 echo "configure: failed program was:" >&5
3754 cat conftest.$ac_ext >&5
3756 nmh_cv_struct_tm_gmtoff=no
3761 echo "$ac_t""$nmh_cv_struct_tm_gmtoff" 1>&6
3762 if test $nmh_cv_struct_tm_gmtoff = yes; then
3763 cat >> confdefs.h <<\EOF
3764 #define HAVE_TM_GMTOFF 1
3769 echo $ac_n "checking what style of signals to use""... $ac_c" 1>&6
3770 echo "configure:3771: checking what style of signals to use" >&5
3771 if test $ac_cv_func_sigaction = yes -a $ac_cv_func_sigprocmask = yes; then
3772 signals_style=POSIX_SIGNALS
3773 cat >> confdefs.h <<\EOF
3774 #define POSIX_SIGNALS 1
3777 cat >> confdefs.h <<\EOF
3778 #define RELIABLE_SIGNALS 1
3781 elif test $ac_cv_func_sigblock = yes -a $ac_cv_func_sigsetmask = yes; then
3782 signals_style=BSD_SIGNALS
3783 cat >> confdefs.h <<\EOF
3784 #define BSD_SIGNALS 1
3787 cat >> confdefs.h <<\EOF
3788 #define RELIABLE_SIGNALS 1
3791 elif test $ac_cv_func_sighold = yes -a $ac_cv_func_sigrelse = yes; then
3792 signals_style=SYSV_SIGNALS
3793 cat >> confdefs.h <<\EOF
3794 #define SYSV_SIGNALS 1
3798 signals_style=NO_SIGNAL_BLOCKING
3799 cat >> confdefs.h <<\EOF
3800 #define NO_SIGNAL_BLOCKING 1
3805 echo "$ac_t""$signals_style" 1>&6
3807 echo $ac_n "checking where signal.h is located""... $ac_c" 1>&6
3808 echo "configure:3809: checking where signal.h is located" >&5
3809 if eval "test \"`echo '$''{'nmh_cv_path_signal_h'+set}'`\" = set"; then
3810 echo $ac_n "(cached) $ac_c" 1>&6
3812 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
3813 test -f $SIGNAL_H && \
3814 grep '#[ ]*define[ ][ ]*SIG[0-9A-Z]*[ ]*[0-9][0-9]*' $SIGNAL_H > /dev/null && \
3817 nmh_cv_path_signal_h=$SIGNAL_H
3821 echo "$ac_t""$nmh_cv_path_signal_h" 1>&6
3822 SIGNAL_H=$nmh_cv_path_signal_h
3824 case "$target_os" in
3827 cat >> confdefs.h <<\EOF
3831 cat >> confdefs.h <<\EOF
3837 cat >> confdefs.h <<\EOF
3841 cat >> confdefs.h <<\EOF
3847 cat >> confdefs.h <<\EOF
3851 cat >> confdefs.h <<\EOF
3857 cat >> confdefs.h <<\EOF
3861 cat >> confdefs.h <<\EOF
3867 cat >> confdefs.h <<\EOF
3871 cat >> confdefs.h <<\EOF
3877 cat >> confdefs.h <<\EOF
3878 #define LINUX_STDIO 1
3883 cat >> confdefs.h <<\EOF
3887 cat >> confdefs.h <<\EOF
3891 cat >> confdefs.h <<\EOF
3897 cat >> confdefs.h <<\EOF
3901 cat >> confdefs.h <<\EOF
3905 cat >> confdefs.h <<\EOF
3911 cat >> confdefs.h <<\EOF
3915 cat >> confdefs.h <<\EOF
3919 cat >> confdefs.h <<\EOF
3925 cat >> confdefs.h <<\EOF
3929 cat >> confdefs.h <<\EOF
3933 cat >> confdefs.h <<\EOF
3939 cat >> confdefs.h <<\EOF
3943 cat >> confdefs.h <<\EOF
3944 #define SCO_5_STDIO 1
3952 cat > confcache <<\EOF
3953 # This file is a shell script that caches the results of configure
3954 # tests run on this system so they can be shared between configure
3955 # scripts and configure runs. It is not useful on other systems.
3956 # If it contains results you don't want to keep, you may remove or edit it.
3958 # By default, configure uses ./config.cache as the cache file,
3959 # creating it if it does not exist already. You can give configure
3960 # the --cache-file=FILE option to use a different cache file; that is
3961 # what configure does when it calls configure scripts in
3962 # subdirectories, so they share the cache.
3963 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3964 # config.status only pays attention to the cache file if you give it the
3965 # --recheck option to rerun configure.
3968 # The following way of writing the cache mishandles newlines in values,
3969 # but we know of no workaround that is simple, portable, and efficient.
3970 # So, don't put newlines in cache variables' values.
3971 # Ultrix sh set writes to stderr and can't be redirected directly,
3972 # and sets the high bit in the cache file unless we assign to the vars.
3974 case `(ac_space=' '; set) 2>&1` in
3976 # `set' does not quote correctly, so add quotes (double-quote substitution
3977 # turns \\\\ into \\, and sed turns \\ into \).
3979 -e "s/'/'\\\\''/g" \
3980 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3983 # `set' quotes correctly as required by POSIX, so do not add quotes.
3984 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3987 if cmp -s $cache_file confcache; then
3990 if test -w $cache_file; then
3991 echo "updating cache $cache_file"
3992 cat confcache > $cache_file
3994 echo "not updating unwritable cache $cache_file"
3999 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4001 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4002 # Let make expand exec_prefix.
4003 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4005 # Any assignment to VPATH causes Sun make to only execute
4006 # the first set of double-colon rules, so remove it if not needed.
4007 # If there is a colon in the path, we need to keep it.
4008 if test "x$srcdir" = x.; then
4009 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4012 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4014 DEFS=-DHAVE_CONFIG_H
4016 # Without the "./", some shells look in PATH for config.status.
4017 : ${CONFIG_STATUS=./config.status}
4019 echo creating $CONFIG_STATUS
4020 rm -f $CONFIG_STATUS
4021 cat > $CONFIG_STATUS <<EOF
4023 # Generated automatically by configure.
4024 # Run this file to recreate the current configuration.
4025 # This directory was configured as follows,
4026 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4028 # $0 $ac_configure_args
4030 # Compiler output produced by configure, useful for debugging
4031 # configure, is in ./config.log if it exists.
4033 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4036 case "\$ac_option" in
4037 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4038 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4039 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4040 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4041 echo "$CONFIG_STATUS generated by autoconf version 2.12"
4043 -help | --help | --hel | --he | --h)
4044 echo "\$ac_cs_usage"; exit 0 ;;
4045 *) echo "\$ac_cs_usage"; exit 1 ;;
4049 ac_given_srcdir=$srcdir
4050 ac_given_INSTALL="$INSTALL"
4052 trap 'rm -fr `echo "Makefile config/Makefile h/Makefile sbr/Makefile uip/Makefile \
4053 zotnet/Makefile zotnet/mts/Makefile zotnet/tws/Makefile \
4054 zotnet/mf/Makefile zotnet/bboards/Makefile mts/Makefile \
4055 mts/smtp/Makefile mts/sendmail/Makefile mts/mmdf/Makefile \
4056 etc/Makefile man/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4058 cat >> $CONFIG_STATUS <<EOF
4060 # Protect against being on the right side of a sed subst in config.status.
4061 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4062 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4065 s%@CFLAGS@%$CFLAGS%g
4066 s%@CPPFLAGS@%$CPPFLAGS%g
4067 s%@CXXFLAGS@%$CXXFLAGS%g
4069 s%@LDFLAGS@%$LDFLAGS%g
4071 s%@exec_prefix@%$exec_prefix%g
4072 s%@prefix@%$prefix%g
4073 s%@program_transform_name@%$program_transform_name%g
4074 s%@bindir@%$bindir%g
4075 s%@sbindir@%$sbindir%g
4076 s%@libexecdir@%$libexecdir%g
4077 s%@datadir@%$datadir%g
4078 s%@sysconfdir@%$sysconfdir%g
4079 s%@sharedstatedir@%$sharedstatedir%g
4080 s%@localstatedir@%$localstatedir%g
4081 s%@libdir@%$libdir%g
4082 s%@includedir@%$includedir%g
4083 s%@oldincludedir@%$oldincludedir%g
4084 s%@infodir@%$infodir%g
4085 s%@mandir@%$mandir%g
4087 s%@host_alias@%$host_alias%g
4088 s%@host_cpu@%$host_cpu%g
4089 s%@host_vendor@%$host_vendor%g
4090 s%@host_os@%$host_os%g
4091 s%@target@%$target%g
4092 s%@target_alias@%$target_alias%g
4093 s%@target_cpu@%$target_cpu%g
4094 s%@target_vendor@%$target_vendor%g
4095 s%@target_os@%$target_os%g
4097 s%@build_alias@%$build_alias%g
4098 s%@build_cpu@%$build_cpu%g
4099 s%@build_vendor@%$build_vendor%g
4100 s%@build_os@%$build_os%g
4101 s%@VERSION@%$VERSION%g
4103 s%@MTSLIB@%$MTSLIB%g
4104 s%@POPLIB@%$POPLIB%g
4105 s%@POPSED@%$POPSED%g
4107 s%@SET_MAKE@%$SET_MAKE%g
4108 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4109 s%@INSTALL_DATA@%$INSTALL_DATA%g
4110 s%@RANLIB@%$RANLIB%g
4113 s%@LEXLIB@%$LEXLIB%g
4114 s%@LORDER@%$LORDER%g
4116 s%@sendmailpath@%$sendmailpath%g
4117 s%@morepath@%$morepath%g
4118 s%@pagerpath@%$pagerpath%g
4119 s%@vipath@%$vipath%g
4120 s%@editorpath@%$editorpath%g
4121 s%@mailspool@%$mailspool%g
4123 s%@LIBOBJS@%$LIBOBJS%g
4124 s%@TERMLIB@%$TERMLIB%g
4125 s%@HESIOD_INCLUDES@%$HESIOD_INCLUDES%g
4126 s%@HESIOD_LIBS@%$HESIOD_LIBS%g
4127 s%@KRB4_INCLUDES@%$KRB4_INCLUDES%g
4128 s%@KRB4_LIBS@%$KRB4_LIBS%g
4129 s%@SIGNAL_H@%$SIGNAL_H%g
4134 cat >> $CONFIG_STATUS <<\EOF
4136 # Split the substitutions into bite-sized pieces for seds with
4137 # small command number limits, like on Digital OSF/1 and HP-UX.
4138 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4139 ac_file=1 # Number of current file.
4140 ac_beg=1 # First line for current file.
4141 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4144 while $ac_more_lines; do
4145 if test $ac_beg -gt 1; then
4146 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4148 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4150 if test ! -s conftest.s$ac_file; then
4152 rm -f conftest.s$ac_file
4154 if test -z "$ac_sed_cmds"; then
4155 ac_sed_cmds="sed -f conftest.s$ac_file"
4157 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4159 ac_file=`expr $ac_file + 1`
4161 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4164 if test -z "$ac_sed_cmds"; then
4169 cat >> $CONFIG_STATUS <<EOF
4171 CONFIG_FILES=\${CONFIG_FILES-"Makefile config/Makefile h/Makefile sbr/Makefile uip/Makefile \
4172 zotnet/Makefile zotnet/mts/Makefile zotnet/tws/Makefile \
4173 zotnet/mf/Makefile zotnet/bboards/Makefile mts/Makefile \
4174 mts/smtp/Makefile mts/sendmail/Makefile mts/mmdf/Makefile \
4175 etc/Makefile man/Makefile"}
4177 cat >> $CONFIG_STATUS <<\EOF
4178 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4179 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4181 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4182 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4183 *) ac_file_in="${ac_file}.in" ;;
4186 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4188 # Remove last slash and all that follows it. Not all systems have dirname.
4189 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4190 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4191 # The file is in a subdirectory.
4192 test ! -d "$ac_dir" && mkdir "$ac_dir"
4193 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4194 # A "../" for each directory in $ac_dir_suffix.
4195 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4197 ac_dir_suffix= ac_dots=
4200 case "$ac_given_srcdir" in
4202 if test -z "$ac_dots"; then top_srcdir=.
4203 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4204 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4206 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4207 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4210 case "$ac_given_INSTALL" in
4211 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4212 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4215 echo creating "$ac_file"
4217 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4219 *Makefile*) ac_comsub="1i\\
4220 # $configure_input" ;;
4224 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4226 s%@configure_input@%$configure_input%g
4227 s%@srcdir@%$srcdir%g
4228 s%@top_srcdir@%$top_srcdir%g
4229 s%@INSTALL@%$INSTALL%g
4230 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4234 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4235 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4237 # ac_d sets the value in "#define NAME VALUE" lines.
4238 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4239 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4242 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4243 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4244 ac_uB='\([ ]\)%\1#\2define\3'
4247 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4248 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4249 ac_eB='$%\1#\2define\3'
4253 if test "${CONFIG_HEADERS+set}" != set; then
4255 cat >> $CONFIG_STATUS <<EOF
4256 CONFIG_HEADERS="config.h"
4258 cat >> $CONFIG_STATUS <<\EOF
4260 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4261 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4263 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4264 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4265 *) ac_file_in="${ac_file}.in" ;;
4268 echo creating $ac_file
4270 rm -f conftest.frag conftest.in conftest.out
4271 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4272 cat $ac_file_inputs > conftest.in
4276 # Transform confdefs.h into a sed script conftest.vals that substitutes
4277 # the proper values into config.h.in to produce config.h. And first:
4278 # Protect against being on the right side of a sed subst in config.status.
4279 # Protect against being in an unquoted here document in config.status.
4281 cat > conftest.hdr <<\EOF
4284 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4288 sed -n -f conftest.hdr confdefs.h > conftest.vals
4291 # This sed command replaces #undef with comments. This is necessary, for
4292 # example, in the case of _POSIX_SOURCE, which is predefined and required
4293 # on some systems where configure will not decide to define it.
4294 cat >> conftest.vals <<\EOF
4295 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4298 # Break up conftest.vals because some shells have a limit on
4299 # the size of here documents, and old seds have small limits too.
4304 ac_lines=`grep -c . conftest.vals`
4305 # grep -c gives empty output for an empty file on some AIX systems.
4306 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4307 # Write a limited-size here document to conftest.frag.
4308 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4309 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4311 sed -f conftest.frag conftest.in > conftest.out
4313 mv conftest.out conftest.in
4315 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4317 mv conftest.tail conftest.vals
4321 cat >> $CONFIG_STATUS <<\EOF
4322 rm -f conftest.frag conftest.h
4323 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4324 cat conftest.in >> conftest.h
4326 if cmp -s $ac_file conftest.h 2>/dev/null; then
4327 echo "$ac_file is unchanged"
4330 # Remove last slash and all that follows it. Not all systems have dirname.
4331 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4332 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4333 # The file is in a subdirectory.
4334 test ! -d "$ac_dir" && mkdir "$ac_dir"
4337 mv conftest.h $ac_file
4342 cat >> $CONFIG_STATUS <<EOF
4345 cat >> $CONFIG_STATUS <<\EOF
4347 test -z "$CONFIG_HEADERS" || echo > stamp-h
4350 chmod +x $CONFIG_STATUS
4351 rm -fr confdefs* $ac_clean_files
4352 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4355 eval "nmhbin=${bindir}"; eval "nmhbin2=${nmhbin}"
4356 eval "nmhsysconf=${sysconfdir}"; eval "nmhsysconf2=${nmhsysconf}"
4357 eval "nmhlib=${libdir}"; eval "nmhlib2=${nmhlib}"
4358 eval "nmhman=${mandir}"
4363 nmh version : ${VERSION}
4364 target os : ${target}
4366 compiler flags : ${CFLAGS}
4367 linker flags : ${LDFLAGS}
4368 source code location : ${srcdir}
4369 binary install path : ${nmhbin2}
4370 libary install path : ${nmhlib2}
4371 config files install path : ${nmhsysconf2}
4372 man page install path : ${nmhman}
4373 transport system : ${MTS}
4374 default editor : ${editorpath}
4375 default pager : ${pagerpath}"