3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --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 SHELL=${CONFIG_SHELL-/bin/sh}
70 # Maximum number of lines to put in a shell here document.
77 # If the previous option needs an argument, assign it.
78 if test -n "$ac_prev"; then
79 eval "$ac_prev=\$ac_option"
85 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
89 # Accept the important Cygnus configure options, so we can diagnose typos.
93 -bindir | --bindir | --bindi | --bind | --bin | --bi)
95 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
96 bindir="$ac_optarg" ;;
98 -build | --build | --buil | --bui | --bu)
100 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
101 build="$ac_optarg" ;;
103 -cache-file | --cache-file | --cache-fil | --cache-fi \
104 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
105 ac_prev=cache_file ;;
106 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
107 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
108 cache_file="$ac_optarg" ;;
110 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
112 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
114 datadir="$ac_optarg" ;;
116 -disable-* | --disable-*)
117 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
118 # Reject names that are not valid shell variable names.
119 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
120 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
122 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
123 eval "enable_${ac_feature}=no" ;;
125 -enable-* | --enable-*)
126 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
127 # Reject names that are not valid shell variable names.
128 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
129 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
131 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
136 eval "enable_${ac_feature}='$ac_optarg'" ;;
138 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
139 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
140 | --exec | --exe | --ex)
141 ac_prev=exec_prefix ;;
142 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
143 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
144 | --exec=* | --exe=* | --ex=*)
145 exec_prefix="$ac_optarg" ;;
147 -gas | --gas | --ga | --g)
148 # Obsolete; use --with-gas.
151 -help | --help | --hel | --he)
152 # Omit some internal or obsolete options to make the list less imposing.
153 # This message is too long to be a string in the A/UX 3.1 sh.
155 Usage: configure [options] [host]
156 Options: [defaults in brackets after descriptions]
158 --cache-file=FILE cache test results in FILE
159 --help print this message
160 --no-create do not create output files
161 --quiet, --silent do not print \`checking...' messages
162 --version print the version of autoconf that created configure
163 Directory and file names:
164 --prefix=PREFIX install architecture-independent files in PREFIX
166 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
168 --bindir=DIR user executables in DIR [EPREFIX/bin]
169 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
170 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
171 --datadir=DIR read-only architecture-independent data in DIR
173 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
174 --sharedstatedir=DIR modifiable architecture-independent data in DIR
176 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
177 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
178 --includedir=DIR C header files in DIR [PREFIX/include]
179 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
180 --infodir=DIR info documentation in DIR [PREFIX/info]
181 --mandir=DIR man documentation in DIR [PREFIX/man]
182 --srcdir=DIR find the sources in DIR [configure dir or ..]
183 --program-prefix=PREFIX prepend PREFIX to installed program names
184 --program-suffix=SUFFIX append SUFFIX to installed program names
185 --program-transform-name=PROGRAM
186 run sed PROGRAM on installed program names
190 --build=BUILD configure for building on BUILD [BUILD=HOST]
191 --host=HOST configure for HOST [guessed]
192 --target=TARGET configure for TARGET [TARGET=HOST]
193 Features and packages:
194 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
195 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
196 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
197 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
198 --x-includes=DIR X include files are in DIR
199 --x-libraries=DIR X library files are in DIR
201 if test -n "$ac_help"; then
202 echo "--enable and --with options recognized:$ac_help"
206 -host | --host | --hos | --ho)
208 -host=* | --host=* | --hos=* | --ho=*)
211 -includedir | --includedir | --includedi | --included | --include \
212 | --includ | --inclu | --incl | --inc)
213 ac_prev=includedir ;;
214 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
215 | --includ=* | --inclu=* | --incl=* | --inc=*)
216 includedir="$ac_optarg" ;;
218 -infodir | --infodir | --infodi | --infod | --info | --inf)
220 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
221 infodir="$ac_optarg" ;;
223 -libdir | --libdir | --libdi | --libd)
225 -libdir=* | --libdir=* | --libdi=* | --libd=*)
226 libdir="$ac_optarg" ;;
228 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
229 | --libexe | --libex | --libe)
230 ac_prev=libexecdir ;;
231 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
232 | --libexe=* | --libex=* | --libe=*)
233 libexecdir="$ac_optarg" ;;
235 -localstatedir | --localstatedir | --localstatedi | --localstated \
236 | --localstate | --localstat | --localsta | --localst \
237 | --locals | --local | --loca | --loc | --lo)
238 ac_prev=localstatedir ;;
239 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
240 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
241 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
242 localstatedir="$ac_optarg" ;;
244 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
246 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
247 mandir="$ac_optarg" ;;
250 # Obsolete; use --without-fp.
253 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
257 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
258 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
261 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
262 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
263 | --oldin | --oldi | --old | --ol | --o)
264 ac_prev=oldincludedir ;;
265 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
266 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
267 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
268 oldincludedir="$ac_optarg" ;;
270 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
272 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
273 prefix="$ac_optarg" ;;
275 -program-prefix | --program-prefix | --program-prefi | --program-pref \
276 | --program-pre | --program-pr | --program-p)
277 ac_prev=program_prefix ;;
278 -program-prefix=* | --program-prefix=* | --program-prefi=* \
279 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
280 program_prefix="$ac_optarg" ;;
282 -program-suffix | --program-suffix | --program-suffi | --program-suff \
283 | --program-suf | --program-su | --program-s)
284 ac_prev=program_suffix ;;
285 -program-suffix=* | --program-suffix=* | --program-suffi=* \
286 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
287 program_suffix="$ac_optarg" ;;
289 -program-transform-name | --program-transform-name \
290 | --program-transform-nam | --program-transform-na \
291 | --program-transform-n | --program-transform- \
292 | --program-transform | --program-transfor \
293 | --program-transfo | --program-transf \
294 | --program-trans | --program-tran \
295 | --progr-tra | --program-tr | --program-t)
296 ac_prev=program_transform_name ;;
297 -program-transform-name=* | --program-transform-name=* \
298 | --program-transform-nam=* | --program-transform-na=* \
299 | --program-transform-n=* | --program-transform-=* \
300 | --program-transform=* | --program-transfor=* \
301 | --program-transfo=* | --program-transf=* \
302 | --program-trans=* | --program-tran=* \
303 | --progr-tra=* | --program-tr=* | --program-t=*)
304 program_transform_name="$ac_optarg" ;;
306 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
307 | -silent | --silent | --silen | --sile | --sil)
310 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
312 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
314 sbindir="$ac_optarg" ;;
316 -sharedstatedir | --sharedstatedir | --sharedstatedi \
317 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
318 | --sharedst | --shareds | --shared | --share | --shar \
320 ac_prev=sharedstatedir ;;
321 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
322 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
323 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
325 sharedstatedir="$ac_optarg" ;;
327 -site | --site | --sit)
329 -site=* | --site=* | --sit=*)
332 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
334 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
335 srcdir="$ac_optarg" ;;
337 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
338 | --syscon | --sysco | --sysc | --sys | --sy)
339 ac_prev=sysconfdir ;;
340 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
341 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
342 sysconfdir="$ac_optarg" ;;
344 -target | --target | --targe | --targ | --tar | --ta | --t)
346 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
347 target="$ac_optarg" ;;
349 -v | -verbose | --verbose | --verbos | --verbo | --verb)
352 -version | --version | --versio | --versi | --vers)
353 echo "configure generated by autoconf version 2.13"
357 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
358 # Reject names that are not valid shell variable names.
359 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
360 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
362 ac_package=`echo $ac_package| sed 's/-/_/g'`
367 eval "with_${ac_package}='$ac_optarg'" ;;
369 -without-* | --without-*)
370 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
371 # Reject names that are not valid shell variable names.
372 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
373 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
375 ac_package=`echo $ac_package| sed 's/-/_/g'`
376 eval "with_${ac_package}=no" ;;
379 # Obsolete; use --with-x.
382 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
383 | --x-incl | --x-inc | --x-in | --x-i)
384 ac_prev=x_includes ;;
385 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
386 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
387 x_includes="$ac_optarg" ;;
389 -x-libraries | --x-libraries | --x-librarie | --x-librari \
390 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
391 ac_prev=x_libraries ;;
392 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
393 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
394 x_libraries="$ac_optarg" ;;
396 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
400 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
401 echo "configure: warning: $ac_option: invalid host type" 1>&2
403 if test "x$nonopt" != xNONE; then
404 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
412 if test -n "$ac_prev"; then
413 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
416 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
418 # File descriptor usage:
421 # 2 errors and warnings
422 # 3 some systems may open it to /dev/tty
423 # 4 used on the Kubota Titan
424 # 6 checking for... messages and results
425 # 5 compiler messages saved in config.log
426 if test "$silent" = yes; then
434 This file contains any messages produced by compilers while
435 running configure, to aid debugging if configure makes a mistake.
438 # Strip out --no-create and --no-recursion so they do not pile up.
439 # Also quote any args containing shell metacharacters.
444 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
445 | --no-cr | --no-c) ;;
446 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
447 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
448 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
449 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
450 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
455 # Only set these to C if already set. These must not be set unconditionally
456 # because not all systems understand e.g. LANG=C (notably SCO).
457 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
458 # Non-C LC_CTYPE values break the ctype check.
459 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
460 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
461 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
462 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
464 # confdefs.h avoids OS command line length limits that DEFS can exceed.
465 rm -rf conftest* confdefs.h
466 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
469 # A filename unique to this package, relative to the directory that
470 # configure is in, which we can look for to find out if srcdir is correct.
471 ac_unique_file=h/nmh.h
473 # Find the source files, if location was not specified.
474 if test -z "$srcdir"; then
475 ac_srcdir_defaulted=yes
476 # Try the directory containing this script, then its parent.
478 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
479 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
481 if test ! -r $srcdir/$ac_unique_file; then
485 ac_srcdir_defaulted=no
487 if test ! -r $srcdir/$ac_unique_file; then
488 if test "$ac_srcdir_defaulted" = yes; then
489 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
491 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
494 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
496 # Prefer explicitly selected file to automatically selected ones.
497 if test -z "$CONFIG_SITE"; then
498 if test "x$prefix" != xNONE; then
499 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
501 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
504 for ac_site_file in $CONFIG_SITE; do
505 if test -r "$ac_site_file"; then
506 echo "loading site script $ac_site_file"
511 if test -r "$cache_file"; then
512 echo "loading cache $cache_file"
515 echo "creating cache $cache_file"
520 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
521 ac_cpp='$CPP $CPPFLAGS'
522 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
523 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
524 cross_compiling=$ac_cv_prog_cc_cross
528 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
529 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
530 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
537 ac_n= ac_c='\c' ac_t=
543 VERSION=`sed -e 's/nmh-//' ${srcdir}/VERSION`
544 echo "configuring for nmh-$VERSION"
546 # Check whether --with-mts or --without-mts was given.
547 if test "${with_mts+set}" = set; then
553 if test x$with_mts = xsmtp; then
555 MTSLIB="mts/smtp/libsmtp.a"
556 cat >> confdefs.h <<\EOF
559 elif test x$with_mts = xsendmail; then
561 MTSLIB="mts/sendmail/libsend.a"
562 cat >> confdefs.h <<\EOF
567 MTSLIB="mts/smtp/libsmtp.a"
568 cat >> confdefs.h <<\EOF
576 # Check whether --with-editor or --without-editor was given.
577 if test "${with_editor+set}" = set; then
578 withval="$with_editor"
583 if test -n "$with_editor"; then
584 editorpath="$with_editor"
587 # Check whether --with-pager or --without-pager was given.
588 if test "${with_pager+set}" = set; then
589 withval="$with_pager"
594 if test -n "$with_pager"; then
595 pagerpath="$with_pager"
598 # Check whether --enable-nmh-mhe or --disable-nmh-mhe was given.
599 if test "${enable_nmh_mhe+set}" = set; then
600 enableval="$enable_nmh_mhe"
605 if test x$enable_nmh_mhe != xno; then
606 cat >> confdefs.h <<\EOF
611 # Check whether --enable-nmh-pop or --disable-nmh-pop was given.
612 if test "${enable_nmh_pop+set}" = set; then
613 enableval="$enable_nmh_pop"
617 if test x$enable_nmh_pop = xyes; then
618 cat >> confdefs.h <<\EOF
622 POPSED='/^%nmhbeginpop%/d;/^%nmhendpop%/d'
624 POPSED='/^%nmhbeginpop%/,/^%nmhendpop%/d'
627 # Check whether --with-krb4 or --without-krb4 was given.
628 if test "${with_krb4+set}" = set; then
633 if test x$with_krb4 != x -a x$with_krb4 != xno; then
634 cat >> confdefs.h <<\EOF
637 cat >> confdefs.h <<\EOF
638 #define KPOP_PRINCIPAL "pop"
642 # Check whether --with-hesiod or --without-hesiod was given.
643 if test "${with_hesiod+set}" = set; then
644 withval="$with_hesiod"
648 if test x$with_hesiod != x -a x$with_hesiod != xno; then
649 cat >> confdefs.h <<\EOF
654 # Check whether --enable-nmh-debug or --disable-nmh-debug was given.
655 if test "${enable_nmh_debug+set}" = set; then
656 enableval="$enable_nmh_debug"
663 test -z "$CFLAGS" && CFLAGS= auto_cflags=1
664 if test x$enable_nmh_debug = xyes; then
665 test -z "$LDFLAGS" && LDFLAGS=-g
668 # Extract the first word of "gcc", so it can be a program name with args.
669 set dummy gcc; ac_word=$2
670 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
671 echo "configure:672: checking for $ac_word" >&5
672 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
673 echo $ac_n "(cached) $ac_c" 1>&6
675 if test -n "$CC"; then
676 ac_cv_prog_CC="$CC" # Let the user override the test.
678 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
680 for ac_dir in $ac_dummy; do
681 test -z "$ac_dir" && ac_dir=.
682 if test -f $ac_dir/$ac_word; then
691 if test -n "$CC"; then
692 echo "$ac_t""$CC" 1>&6
694 echo "$ac_t""no" 1>&6
697 if test -z "$CC"; then
698 # Extract the first word of "cc", so it can be a program name with args.
699 set dummy cc; ac_word=$2
700 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
701 echo "configure:702: checking for $ac_word" >&5
702 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
703 echo $ac_n "(cached) $ac_c" 1>&6
705 if test -n "$CC"; then
706 ac_cv_prog_CC="$CC" # Let the user override the test.
708 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
711 for ac_dir in $ac_dummy; do
712 test -z "$ac_dir" && ac_dir=.
713 if test -f $ac_dir/$ac_word; then
714 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
723 if test $ac_prog_rejected = yes; then
724 # We found a bogon in the path, so make sure we never use it.
725 set dummy $ac_cv_prog_CC
727 if test $# -gt 0; then
728 # We chose a different compiler from the bogus one.
729 # However, it has the same basename, so the bogon will be chosen
730 # first if we set CC to just the basename; use the full file name.
732 set dummy "$ac_dir/$ac_word" "$@"
740 if test -n "$CC"; then
741 echo "$ac_t""$CC" 1>&6
743 echo "$ac_t""no" 1>&6
746 if test -z "$CC"; then
749 # Extract the first word of "cl", so it can be a program name with args.
750 set dummy cl; ac_word=$2
751 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
752 echo "configure:753: checking for $ac_word" >&5
753 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
754 echo $ac_n "(cached) $ac_c" 1>&6
756 if test -n "$CC"; then
757 ac_cv_prog_CC="$CC" # Let the user override the test.
759 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
761 for ac_dir in $ac_dummy; do
762 test -z "$ac_dir" && ac_dir=.
763 if test -f $ac_dir/$ac_word; then
772 if test -n "$CC"; then
773 echo "$ac_t""$CC" 1>&6
775 echo "$ac_t""no" 1>&6
780 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
783 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
784 echo "configure:785: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
787 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
788 ac_cpp='$CPP $CPPFLAGS'
789 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
790 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
791 cross_compiling=$ac_cv_prog_cc_cross
793 cat > conftest.$ac_ext << EOF
795 #line 796 "configure"
796 #include "confdefs.h"
800 if { (eval echo configure:801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
801 ac_cv_prog_cc_works=yes
802 # If we can't run a trivial program, we are probably using a cross compiler.
803 if (./conftest; exit) 2>/dev/null; then
804 ac_cv_prog_cc_cross=no
806 ac_cv_prog_cc_cross=yes
809 echo "configure: failed program was:" >&5
810 cat conftest.$ac_ext >&5
811 ac_cv_prog_cc_works=no
815 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
816 ac_cpp='$CPP $CPPFLAGS'
817 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
818 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
819 cross_compiling=$ac_cv_prog_cc_cross
821 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
822 if test $ac_cv_prog_cc_works = no; then
823 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
825 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
826 echo "configure:827: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
827 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
828 cross_compiling=$ac_cv_prog_cc_cross
830 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
831 echo "configure:832: checking whether we are using GNU C" >&5
832 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
833 echo $ac_n "(cached) $ac_c" 1>&6
835 cat > conftest.c <<EOF
840 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:841: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
847 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
849 if test $ac_cv_prog_gcc = yes; then
855 ac_test_CFLAGS="${CFLAGS+set}"
856 ac_save_CFLAGS="$CFLAGS"
858 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
859 echo "configure:860: checking whether ${CC-cc} accepts -g" >&5
860 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
861 echo $ac_n "(cached) $ac_c" 1>&6
863 echo 'void f(){}' > conftest.c
864 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
873 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
874 if test "$ac_test_CFLAGS" = set; then
875 CFLAGS="$ac_save_CFLAGS"
876 elif test $ac_cv_prog_cc_g = yes; then
877 if test "$GCC" = yes; then
883 if test "$GCC" = yes; then
891 if test -n "$auto_cflags"; then
892 if test x$enable_nmh_debug = xyes; then
893 if test -n "$GCC"; then
894 test -z "$CFLAGS" && CFLAGS="-Wall -g" || CFLAGS="$CFLAGS -Wall -g"
896 test -z "$CFLAGS" && CFLAGS=-g || CFLAGS="$CFLAGS -g"
899 test -z "$LDFLAGS" && LDFLAGS=-s
900 if test -n "$GCC"; then
901 test -z "$CFLAGS" && CFLAGS=-O2 || CFLAGS="$CFLAGS -O2"
903 test -z "$CFLAGS" && CFLAGS=-O || CFLAGS="$CFLAGS -O"
908 echo $ac_n "checking for working const""... $ac_c" 1>&6
909 echo "configure:910: checking for working const" >&5
910 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
911 echo $ac_n "(cached) $ac_c" 1>&6
913 cat > conftest.$ac_ext <<EOF
914 #line 915 "configure"
915 #include "confdefs.h"
919 /* Ultrix mips cc rejects this. */
920 typedef int charset[2]; const charset x;
921 /* SunOS 4.1.1 cc rejects this. */
922 char const *const *ccp;
924 /* NEC SVR4.0.2 mips cc rejects this. */
925 struct point {int x, y;};
926 static struct point const zero = {0,0};
927 /* AIX XL C 1.02.0.0 rejects this.
928 It does not let you subtract one const X* pointer from another in an arm
929 of an if-expression whose if-part is not a constant expression */
930 const char *g = "string";
931 ccp = &g + (g ? g-g : 0);
932 /* HPUX 7.0 cc rejects these. */
935 ccp = (char const *const *) p;
936 { /* SCO 3.2v4 cc rejects this. */
938 char const *s = 0 ? (char *) 0 : (char const *) 0;
942 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
944 const int *foo = &x[0];
947 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
948 typedef const int *iptr;
952 { /* AIX XL C 1.02.0.0 rejects this saying
953 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
954 struct s { int j; const int *ap[3]; };
955 struct s *b; b->j = 5;
957 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
963 if { (eval echo configure:964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
967 echo "configure: failed program was:" >&5
968 cat conftest.$ac_ext >&5
975 echo "$ac_t""$ac_cv_c_const" 1>&6
976 if test $ac_cv_c_const = no; then
977 cat >> confdefs.h <<\EOF
983 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
984 echo "configure:985: checking whether ${MAKE-make} sets \${MAKE}" >&5
985 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
986 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
987 echo $ac_n "(cached) $ac_c" 1>&6
989 cat > conftestmake <<\EOF
991 @echo 'ac_maketemp="${MAKE}"'
993 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
994 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
995 if test -n "$ac_maketemp"; then
996 eval ac_cv_prog_make_${ac_make}_set=yes
998 eval ac_cv_prog_make_${ac_make}_set=no
1002 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1003 echo "$ac_t""yes" 1>&6
1006 echo "$ac_t""no" 1>&6
1007 SET_MAKE="MAKE=${MAKE-make}"
1010 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1011 if test -f $ac_dir/install-sh; then
1013 ac_install_sh="$ac_aux_dir/install-sh -c"
1015 elif test -f $ac_dir/install.sh; then
1017 ac_install_sh="$ac_aux_dir/install.sh -c"
1021 if test -z "$ac_aux_dir"; then
1022 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1024 ac_config_guess=$ac_aux_dir/config.guess
1025 ac_config_sub=$ac_aux_dir/config.sub
1026 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1028 # Find a good install program. We prefer a C program (faster),
1029 # so one script is as good as another. But avoid the broken or
1030 # incompatible versions:
1031 # SysV /etc/install, /usr/sbin/install
1032 # SunOS /usr/etc/install
1033 # IRIX /sbin/install
1035 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1036 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1037 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1038 # ./install, which can be erroneously created by make from ./install.sh.
1039 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1040 echo "configure:1041: checking for a BSD compatible install" >&5
1041 if test -z "$INSTALL"; then
1042 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1043 echo $ac_n "(cached) $ac_c" 1>&6
1045 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1046 for ac_dir in $PATH; do
1047 # Account for people who put trailing slashes in PATH elements.
1049 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1051 # OSF1 and SCO ODT 3.0 have their own names for install.
1052 # Don't use installbsd from OSF since it installs stuff as root
1054 for ac_prog in ginstall scoinst install; do
1055 if test -f $ac_dir/$ac_prog; then
1056 if test $ac_prog = install &&
1057 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1058 # AIX install. It has an incompatible calling convention.
1061 ac_cv_path_install="$ac_dir/$ac_prog -c"
1072 if test "${ac_cv_path_install+set}" = set; then
1073 INSTALL="$ac_cv_path_install"
1075 # As a last resort, use the slow shell script. We don't cache a
1076 # path for INSTALL within a source directory, because that will
1077 # break other packages using the cache if that directory is
1078 # removed, or if the path is relative.
1079 INSTALL="$ac_install_sh"
1082 echo "$ac_t""$INSTALL" 1>&6
1084 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1085 # It thinks the first close brace ends the variable substitution.
1086 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1088 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1090 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1091 # Extract the first word of "ranlib", so it can be a program name with args.
1092 set dummy ranlib; ac_word=$2
1093 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1094 echo "configure:1095: checking for $ac_word" >&5
1095 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1096 echo $ac_n "(cached) $ac_c" 1>&6
1098 if test -n "$RANLIB"; then
1099 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1101 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1103 for ac_dir in $ac_dummy; do
1104 test -z "$ac_dir" && ac_dir=.
1105 if test -f $ac_dir/$ac_word; then
1106 ac_cv_prog_RANLIB="ranlib"
1111 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1114 RANLIB="$ac_cv_prog_RANLIB"
1115 if test -n "$RANLIB"; then
1116 echo "$ac_t""$RANLIB" 1>&6
1118 echo "$ac_t""no" 1>&6
1120 for ac_prog in mawk gawk nawk awk
1122 # Extract the first word of "$ac_prog", so it can be a program name with args.
1123 set dummy $ac_prog; 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_AWK'+set}'`\" = set"; then
1127 echo $ac_n "(cached) $ac_c" 1>&6
1129 if test -n "$AWK"; then
1130 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1132 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1134 for ac_dir in $ac_dummy; do
1135 test -z "$ac_dir" && ac_dir=.
1136 if test -f $ac_dir/$ac_word; then
1137 ac_cv_prog_AWK="$ac_prog"
1144 AWK="$ac_cv_prog_AWK"
1145 if test -n "$AWK"; then
1146 echo "$ac_t""$AWK" 1>&6
1148 echo "$ac_t""no" 1>&6
1151 test -n "$AWK" && break
1153 # Extract the first word of "flex", so it can be a program name with args.
1154 set dummy flex; ac_word=$2
1155 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1156 echo "configure:1157: checking for $ac_word" >&5
1157 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1158 echo $ac_n "(cached) $ac_c" 1>&6
1160 if test -n "$LEX"; then
1161 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1163 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1165 for ac_dir in $ac_dummy; do
1166 test -z "$ac_dir" && ac_dir=.
1167 if test -f $ac_dir/$ac_word; then
1168 ac_cv_prog_LEX="flex"
1173 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1176 LEX="$ac_cv_prog_LEX"
1177 if test -n "$LEX"; then
1178 echo "$ac_t""$LEX" 1>&6
1180 echo "$ac_t""no" 1>&6
1183 if test -z "$LEXLIB"
1189 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1190 echo "configure:1191: checking for yywrap in -l$ac_lib" >&5
1191 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1192 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1193 echo $ac_n "(cached) $ac_c" 1>&6
1195 ac_save_LIBS="$LIBS"
1196 LIBS="-l$ac_lib $LIBS"
1197 cat > conftest.$ac_ext <<EOF
1198 #line 1199 "configure"
1199 #include "confdefs.h"
1200 /* Override any gcc2 internal prototype to avoid an error. */
1201 /* We use char because int might match the return type of a gcc2
1202 builtin and then its argument prototype would still apply. */
1209 if { (eval echo configure:1210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1211 eval "ac_cv_lib_$ac_lib_var=yes"
1213 echo "configure: failed program was:" >&5
1214 cat conftest.$ac_ext >&5
1216 eval "ac_cv_lib_$ac_lib_var=no"
1219 LIBS="$ac_save_LIBS"
1222 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1223 echo "$ac_t""yes" 1>&6
1226 echo "$ac_t""no" 1>&6
1231 # Extract the first word of "lorder", so it can be a program name with args.
1232 set dummy lorder; ac_word=$2
1233 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1234 echo "configure:1235: checking for $ac_word" >&5
1235 if eval "test \"`echo '$''{'ac_cv_prog_LORDER'+set}'`\" = set"; then
1236 echo $ac_n "(cached) $ac_c" 1>&6
1238 if test -n "$LORDER"; then
1239 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
1241 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1243 for ac_dir in $ac_dummy; do
1244 test -z "$ac_dir" && ac_dir=.
1245 if test -f $ac_dir/$ac_word; then
1246 ac_cv_prog_LORDER="lorder"
1251 test -z "$ac_cv_prog_LORDER" && ac_cv_prog_LORDER="no"
1254 LORDER="$ac_cv_prog_LORDER"
1255 if test -n "$LORDER"; then
1256 echo "$ac_t""$LORDER" 1>&6
1258 echo "$ac_t""no" 1>&6
1260 # Extract the first word of "tsort", so it can be a program name with args.
1261 set dummy tsort; ac_word=$2
1262 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1263 echo "configure:1264: checking for $ac_word" >&5
1264 if eval "test \"`echo '$''{'ac_cv_prog_TSORT'+set}'`\" = set"; then
1265 echo $ac_n "(cached) $ac_c" 1>&6
1267 if test -n "$TSORT"; then
1268 ac_cv_prog_TSORT="$TSORT" # Let the user override the test.
1270 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1272 for ac_dir in $ac_dummy; do
1273 test -z "$ac_dir" && ac_dir=.
1274 if test -f $ac_dir/$ac_word; then
1275 ac_cv_prog_TSORT="tsort"
1280 test -z "$ac_cv_prog_TSORT" && ac_cv_prog_TSORT="no"
1283 TSORT="$ac_cv_prog_TSORT"
1284 if test -n "$TSORT"; then
1285 echo "$ac_t""$TSORT" 1>&6
1287 echo "$ac_t""no" 1>&6
1290 if test x$ac_cv_prog_LORDER != xlorder -o x$ac_cv_prog_TSORT != xtsort; then
1295 pathtmp=/usr/lib:/usr/sbin:/usr/etc:/usr/ucblib:/usr/bin:/bin
1296 # Extract the first word of "sendmail", so it can be a program name with args.
1297 set dummy sendmail; ac_word=$2
1298 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1299 echo "configure:1300: checking for $ac_word" >&5
1300 if eval "test \"`echo '$''{'ac_cv_path_sendmailpath'+set}'`\" = set"; then
1301 echo $ac_n "(cached) $ac_c" 1>&6
1303 case "$sendmailpath" in
1305 ac_cv_path_sendmailpath="$sendmailpath" # Let the user override the test with a path.
1308 ac_cv_path_sendmailpath="$sendmailpath" # Let the user override the test with a dos path.
1311 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1313 for ac_dir in $ac_dummy; do
1314 test -z "$ac_dir" && ac_dir=.
1315 if test -f $ac_dir/$ac_word; then
1316 ac_cv_path_sendmailpath="$ac_dir/$ac_word"
1321 test -z "$ac_cv_path_sendmailpath" && ac_cv_path_sendmailpath="no"
1325 sendmailpath="$ac_cv_path_sendmailpath"
1326 if test -n "$sendmailpath"; then
1327 echo "$ac_t""$sendmailpath" 1>&6
1329 echo "$ac_t""no" 1>&6
1333 pathtmp=/usr/bin:/bin:/usr/ucb:/usr/local/bin
1334 # Extract the first word of "more", so it can be a program name with args.
1335 set dummy more; ac_word=$2
1336 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1337 echo "configure:1338: checking for $ac_word" >&5
1338 if eval "test \"`echo '$''{'ac_cv_path_morepath'+set}'`\" = set"; then
1339 echo $ac_n "(cached) $ac_c" 1>&6
1343 ac_cv_path_morepath="$morepath" # Let the user override the test with a path.
1346 ac_cv_path_morepath="$morepath" # Let the user override the test with a dos path.
1349 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1351 for ac_dir in $ac_dummy; do
1352 test -z "$ac_dir" && ac_dir=.
1353 if test -f $ac_dir/$ac_word; then
1354 ac_cv_path_morepath="$ac_dir/$ac_word"
1359 test -z "$ac_cv_path_morepath" && ac_cv_path_morepath="no"
1363 morepath="$ac_cv_path_morepath"
1364 if test -n "$morepath"; then
1365 echo "$ac_t""$morepath" 1>&6
1367 echo "$ac_t""no" 1>&6
1371 if test -z "$pagerpath"; then
1372 pagerpath="$morepath"
1375 pathtmp=/usr/bin:/bin:/usr/ucb:/usr/local/bin
1376 # Extract the first word of "vi", so it can be a program name with args.
1377 set dummy vi; ac_word=$2
1378 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1379 echo "configure:1380: checking for $ac_word" >&5
1380 if eval "test \"`echo '$''{'ac_cv_path_vipath'+set}'`\" = set"; then
1381 echo $ac_n "(cached) $ac_c" 1>&6
1385 ac_cv_path_vipath="$vipath" # Let the user override the test with a path.
1388 ac_cv_path_vipath="$vipath" # Let the user override the test with a dos path.
1391 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1393 for ac_dir in $ac_dummy; do
1394 test -z "$ac_dir" && ac_dir=.
1395 if test -f $ac_dir/$ac_word; then
1396 ac_cv_path_vipath="$ac_dir/$ac_word"
1401 test -z "$ac_cv_path_vipath" && ac_cv_path_vipath="no"
1405 vipath="$ac_cv_path_vipath"
1406 if test -n "$vipath"; then
1407 echo "$ac_t""$vipath" 1>&6
1409 echo "$ac_t""no" 1>&6
1413 if test -z "$editorpath"; then
1414 editorpath="$vipath"
1417 echo $ac_n "checking for broken vi""... $ac_c" 1>&6
1418 echo "configure:1419: checking for broken vi" >&5
1419 if eval "test \"`echo '$''{'nmh_cv_attvibug'+set}'`\" = set"; then
1420 echo $ac_n "(cached) $ac_c" 1>&6
1422 if echo 'r /nonexist-file
1423 q' | ex > /dev/null 2>&1
1431 echo "$ac_t""$nmh_cv_attvibug" 1>&6
1433 if test "$nmh_cv_attvibug" = yes; then
1434 cat >> confdefs.h <<\EOF
1440 echo $ac_n "checking where mail spool is located""... $ac_c" 1>&6
1441 echo "configure:1442: checking where mail spool is located" >&5
1442 if eval "test \"`echo '$''{'nmh_cv_mailspool'+set}'`\" = set"; then
1443 echo $ac_n "(cached) $ac_c" 1>&6
1445 for mailspool in /var/mail /var/spool/mail /usr/spool/mail /dev/null; do
1446 test -d $mailspool && break
1448 nmh_cv_mailspool=$mailspool
1452 echo "$ac_t""$nmh_cv_mailspool" 1>&6
1453 mailspool=$nmh_cv_mailspool
1456 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1458 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1459 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1460 echo "configure:1461: checking for $ac_hdr that defines DIR" >&5
1461 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1462 echo $ac_n "(cached) $ac_c" 1>&6
1464 cat > conftest.$ac_ext <<EOF
1465 #line 1466 "configure"
1466 #include "confdefs.h"
1467 #include <sys/types.h>
1473 if { (eval echo configure:1474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1475 eval "ac_cv_header_dirent_$ac_safe=yes"
1477 echo "configure: failed program was:" >&5
1478 cat conftest.$ac_ext >&5
1480 eval "ac_cv_header_dirent_$ac_safe=no"
1484 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1485 echo "$ac_t""yes" 1>&6
1486 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1487 cat >> confdefs.h <<EOF
1488 #define $ac_tr_hdr 1
1490 ac_header_dirent=$ac_hdr; break
1492 echo "$ac_t""no" 1>&6
1495 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1496 if test $ac_header_dirent = dirent.h; then
1497 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1498 echo "configure:1499: checking for opendir in -ldir" >&5
1499 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1500 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1501 echo $ac_n "(cached) $ac_c" 1>&6
1503 ac_save_LIBS="$LIBS"
1505 cat > conftest.$ac_ext <<EOF
1506 #line 1507 "configure"
1507 #include "confdefs.h"
1508 /* Override any gcc2 internal prototype to avoid an error. */
1509 /* We use char because int might match the return type of a gcc2
1510 builtin and then its argument prototype would still apply. */
1517 if { (eval echo configure:1518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1519 eval "ac_cv_lib_$ac_lib_var=yes"
1521 echo "configure: failed program was:" >&5
1522 cat conftest.$ac_ext >&5
1524 eval "ac_cv_lib_$ac_lib_var=no"
1527 LIBS="$ac_save_LIBS"
1530 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1531 echo "$ac_t""yes" 1>&6
1534 echo "$ac_t""no" 1>&6
1538 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1539 echo "configure:1540: checking for opendir in -lx" >&5
1540 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1541 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1542 echo $ac_n "(cached) $ac_c" 1>&6
1544 ac_save_LIBS="$LIBS"
1546 cat > conftest.$ac_ext <<EOF
1547 #line 1548 "configure"
1548 #include "confdefs.h"
1549 /* Override any gcc2 internal prototype to avoid an error. */
1550 /* We use char because int might match the return type of a gcc2
1551 builtin and then its argument prototype would still apply. */
1558 if { (eval echo configure:1559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1560 eval "ac_cv_lib_$ac_lib_var=yes"
1562 echo "configure: failed program was:" >&5
1563 cat conftest.$ac_ext >&5
1565 eval "ac_cv_lib_$ac_lib_var=no"
1568 LIBS="$ac_save_LIBS"
1571 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1572 echo "$ac_t""yes" 1>&6
1575 echo "$ac_t""no" 1>&6
1580 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1581 echo "configure:1582: checking how to run the C preprocessor" >&5
1582 # On Suns, sometimes $CPP names a directory.
1583 if test -n "$CPP" && test -d "$CPP"; then
1586 if test -z "$CPP"; then
1587 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1588 echo $ac_n "(cached) $ac_c" 1>&6
1590 # This must be in double quotes, not single quotes, because CPP may get
1591 # substituted into the Makefile and "${CC-cc}" will confuse make.
1593 # On the NeXT, cc -E runs the code through the compiler's parser,
1594 # not just through cpp.
1595 cat > conftest.$ac_ext <<EOF
1596 #line 1597 "configure"
1597 #include "confdefs.h"
1601 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1602 { (eval echo configure:1603: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1603 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1604 if test -z "$ac_err"; then
1608 echo "configure: failed program was:" >&5
1609 cat conftest.$ac_ext >&5
1611 CPP="${CC-cc} -E -traditional-cpp"
1612 cat > conftest.$ac_ext <<EOF
1613 #line 1614 "configure"
1614 #include "confdefs.h"
1618 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1619 { (eval echo configure:1620: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1620 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1621 if test -z "$ac_err"; then
1625 echo "configure: failed program was:" >&5
1626 cat conftest.$ac_ext >&5
1628 CPP="${CC-cc} -nologo -E"
1629 cat > conftest.$ac_ext <<EOF
1630 #line 1631 "configure"
1631 #include "confdefs.h"
1635 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1636 { (eval echo configure:1637: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1637 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1638 if test -z "$ac_err"; then
1642 echo "configure: failed program was:" >&5
1643 cat conftest.$ac_ext >&5
1652 ac_cv_prog_CPP="$CPP"
1654 CPP="$ac_cv_prog_CPP"
1656 ac_cv_prog_CPP="$CPP"
1658 echo "$ac_t""$CPP" 1>&6
1660 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1661 echo "configure:1662: checking for ANSI C header files" >&5
1662 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1663 echo $ac_n "(cached) $ac_c" 1>&6
1665 cat > conftest.$ac_ext <<EOF
1666 #line 1667 "configure"
1667 #include "confdefs.h"
1673 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1674 { (eval echo configure:1675: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1675 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1676 if test -z "$ac_err"; then
1678 ac_cv_header_stdc=yes
1681 echo "configure: failed program was:" >&5
1682 cat conftest.$ac_ext >&5
1684 ac_cv_header_stdc=no
1688 if test $ac_cv_header_stdc = yes; then
1689 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1690 cat > conftest.$ac_ext <<EOF
1691 #line 1692 "configure"
1692 #include "confdefs.h"
1695 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1696 egrep "memchr" >/dev/null 2>&1; then
1700 ac_cv_header_stdc=no
1706 if test $ac_cv_header_stdc = yes; then
1707 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1708 cat > conftest.$ac_ext <<EOF
1709 #line 1710 "configure"
1710 #include "confdefs.h"
1713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1714 egrep "free" >/dev/null 2>&1; then
1718 ac_cv_header_stdc=no
1724 if test $ac_cv_header_stdc = yes; then
1725 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1726 if test "$cross_compiling" = yes; then
1729 cat > conftest.$ac_ext <<EOF
1730 #line 1731 "configure"
1731 #include "confdefs.h"
1733 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1734 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1735 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1736 int main () { int i; for (i = 0; i < 256; i++)
1737 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1741 if { (eval echo configure:1742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1745 echo "configure: failed program was:" >&5
1746 cat conftest.$ac_ext >&5
1748 ac_cv_header_stdc=no
1756 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1757 if test $ac_cv_header_stdc = yes; then
1758 cat >> confdefs.h <<\EOF
1759 #define STDC_HEADERS 1
1764 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1765 echo "configure:1766: checking whether time.h and sys/time.h may both be included" >&5
1766 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1767 echo $ac_n "(cached) $ac_c" 1>&6
1769 cat > conftest.$ac_ext <<EOF
1770 #line 1771 "configure"
1771 #include "confdefs.h"
1772 #include <sys/types.h>
1773 #include <sys/time.h>
1779 if { (eval echo configure:1780: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1781 ac_cv_header_time=yes
1783 echo "configure: failed program was:" >&5
1784 cat conftest.$ac_ext >&5
1786 ac_cv_header_time=no
1791 echo "$ac_t""$ac_cv_header_time" 1>&6
1792 if test $ac_cv_header_time = yes; then
1793 cat >> confdefs.h <<\EOF
1794 #define TIME_WITH_SYS_TIME 1
1799 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1800 echo "configure:1801: checking for sys/wait.h that is POSIX.1 compatible" >&5
1801 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1802 echo $ac_n "(cached) $ac_c" 1>&6
1804 cat > conftest.$ac_ext <<EOF
1805 #line 1806 "configure"
1806 #include "confdefs.h"
1807 #include <sys/types.h>
1808 #include <sys/wait.h>
1810 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1813 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1818 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1821 if { (eval echo configure:1822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1823 ac_cv_header_sys_wait_h=yes
1825 echo "configure: failed program was:" >&5
1826 cat conftest.$ac_ext >&5
1828 ac_cv_header_sys_wait_h=no
1833 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1834 if test $ac_cv_header_sys_wait_h = yes; then
1835 cat >> confdefs.h <<\EOF
1836 #define HAVE_SYS_WAIT_H 1
1841 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
1842 echo "configure:1843: checking whether stat file-mode macros are broken" >&5
1843 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
1844 echo $ac_n "(cached) $ac_c" 1>&6
1846 cat > conftest.$ac_ext <<EOF
1847 #line 1848 "configure"
1848 #include "confdefs.h"
1849 #include <sys/types.h>
1850 #include <sys/stat.h>
1852 #if defined(S_ISBLK) && defined(S_IFDIR)
1853 # if S_ISBLK (S_IFDIR)
1858 #if defined(S_ISBLK) && defined(S_IFCHR)
1859 # if S_ISBLK (S_IFCHR)
1864 #if defined(S_ISLNK) && defined(S_IFREG)
1865 # if S_ISLNK (S_IFREG)
1870 #if defined(S_ISSOCK) && defined(S_IFREG)
1871 # if S_ISSOCK (S_IFREG)
1877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1878 egrep "You lose" >/dev/null 2>&1; then
1880 ac_cv_header_stat_broken=yes
1883 ac_cv_header_stat_broken=no
1889 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
1890 if test $ac_cv_header_stat_broken = yes; then
1891 cat >> confdefs.h <<\EOF
1892 #define STAT_MACROS_BROKEN 1
1897 for ac_hdr in string.h memory.h stdlib.h unistd.h errno.h fcntl.h \
1898 limits.h crypt.h termcap.h termio.h termios.h locale.h \
1899 sys/param.h sys/time.h sys/utsname.h arpa/inet.h \
1902 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1903 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1904 echo "configure:1905: checking for $ac_hdr" >&5
1905 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1906 echo $ac_n "(cached) $ac_c" 1>&6
1908 cat > conftest.$ac_ext <<EOF
1909 #line 1910 "configure"
1910 #include "confdefs.h"
1913 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1914 { (eval echo configure:1915: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1915 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1916 if test -z "$ac_err"; then
1918 eval "ac_cv_header_$ac_safe=yes"
1921 echo "configure: failed program was:" >&5
1922 cat conftest.$ac_ext >&5
1924 eval "ac_cv_header_$ac_safe=no"
1928 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1929 echo "$ac_t""yes" 1>&6
1930 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1931 cat >> confdefs.h <<EOF
1932 #define $ac_tr_hdr 1
1936 echo "$ac_t""no" 1>&6
1941 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
1942 echo "configure:1943: checking POSIX termios" >&5
1943 if eval "test \"`echo '$''{'nmh_cv_sys_posix_termios'+set}'`\" = set"; then
1944 echo $ac_n "(cached) $ac_c" 1>&6
1946 cat > conftest.$ac_ext <<EOF
1947 #line 1948 "configure"
1948 #include "confdefs.h"
1949 #include <sys/types.h>
1951 #include <termios.h>
1953 /* SunOS 4.0.3 has termios.h but not the library calls. */
1957 if { (eval echo configure:1958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1959 nmh_cv_sys_posix_termios=yes
1961 echo "configure: failed program was:" >&5
1962 cat conftest.$ac_ext >&5
1964 nmh_cv_sys_posix_termios=no
1969 echo "$ac_t""$nmh_cv_sys_posix_termios" 1>&6
1971 if test $nmh_cv_sys_posix_termios = yes; then
1972 echo $ac_n "checking TIOCGWINSZ in termios.h""... $ac_c" 1>&6
1973 echo "configure:1974: checking TIOCGWINSZ in termios.h" >&5
1974 if eval "test \"`echo '$''{'nmh_cv_header_termios_h_tiocgwinsz'+set}'`\" = set"; then
1975 echo $ac_n "(cached) $ac_c" 1>&6
1977 cat > conftest.$ac_ext <<EOF
1978 #line 1979 "configure"
1979 #include "confdefs.h"
1980 #include <sys/types.h>
1981 #include <termios.h>
1986 if { (eval echo configure:1987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1988 nmh_cv_header_termios_h_tiocgwinsz=yes
1990 echo "configure: failed program was:" >&5
1991 cat conftest.$ac_ext >&5
1993 nmh_cv_header_termios_h_tiocgwinsz=no
1998 echo "$ac_t""$nmh_cv_header_termios_h_tiocgwinsz" 1>&6
2000 nmh_cv_header_termios_h_tiocgwinsz=no
2003 if test $nmh_cv_header_termios_h_tiocgwinsz = no; then
2004 echo $ac_n "checking TIOCGWINSZ in sys/ioctl.h""... $ac_c" 1>&6
2005 echo "configure:2006: checking TIOCGWINSZ in sys/ioctl.h" >&5
2006 if eval "test \"`echo '$''{'nmh_cv_header_sys_ioctl_h_tiocgwinsz'+set}'`\" = set"; then
2007 echo $ac_n "(cached) $ac_c" 1>&6
2009 cat > conftest.$ac_ext <<EOF
2010 #line 2011 "configure"
2011 #include "confdefs.h"
2012 #include <sys/types.h>
2013 #include <sys/ioctl.h>
2018 if { (eval echo configure:2019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2020 nmh_cv_header_sys_ioctl_h_tiocgwinsz=yes
2022 echo "configure: failed program was:" >&5
2023 cat conftest.$ac_ext >&5
2025 nmh_cv_header_sys_ioctl_h_tiocgwinsz=no
2030 echo "$ac_t""$nmh_cv_header_sys_ioctl_h_tiocgwinsz" 1>&6
2031 if test $nmh_cv_header_sys_ioctl_h_tiocgwinsz = yes; then
2032 cat >> confdefs.h <<\EOF
2033 #define GWINSZ_IN_SYS_IOCTL 1
2039 ac_safe=`echo "sys/ptem.h" | sed 'y%./+-%__p_%'`
2040 echo $ac_n "checking for sys/ptem.h""... $ac_c" 1>&6
2041 echo "configure:2042: checking for sys/ptem.h" >&5
2042 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2043 echo $ac_n "(cached) $ac_c" 1>&6
2045 cat > conftest.$ac_ext <<EOF
2046 #line 2047 "configure"
2047 #include "confdefs.h"
2048 #include <sys/ptem.h>
2050 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2051 { (eval echo configure:2052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2052 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2053 if test -z "$ac_err"; then
2055 eval "ac_cv_header_$ac_safe=yes"
2058 echo "configure: failed program was:" >&5
2059 cat conftest.$ac_ext >&5
2061 eval "ac_cv_header_$ac_safe=no"
2065 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2066 echo "$ac_t""yes" 1>&6
2067 cat >> confdefs.h <<\EOF
2068 #define WINSIZE_IN_PTEM 1
2072 echo "$ac_t""no" 1>&6
2076 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2077 echo "configure:2078: checking for pid_t" >&5
2078 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2079 echo $ac_n "(cached) $ac_c" 1>&6
2081 cat > conftest.$ac_ext <<EOF
2082 #line 2083 "configure"
2083 #include "confdefs.h"
2084 #include <sys/types.h>
2090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2091 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2093 ac_cv_type_pid_t=yes
2101 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2102 if test $ac_cv_type_pid_t = no; then
2103 cat >> confdefs.h <<\EOF
2109 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2110 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2111 echo "configure:2112: checking for vfork.h" >&5
2112 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2113 echo $ac_n "(cached) $ac_c" 1>&6
2115 cat > conftest.$ac_ext <<EOF
2116 #line 2117 "configure"
2117 #include "confdefs.h"
2120 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2121 { (eval echo configure:2122: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2122 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2123 if test -z "$ac_err"; then
2125 eval "ac_cv_header_$ac_safe=yes"
2128 echo "configure: failed program was:" >&5
2129 cat conftest.$ac_ext >&5
2131 eval "ac_cv_header_$ac_safe=no"
2135 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2136 echo "$ac_t""yes" 1>&6
2137 cat >> confdefs.h <<\EOF
2138 #define HAVE_VFORK_H 1
2142 echo "$ac_t""no" 1>&6
2145 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2146 echo "configure:2147: checking for working vfork" >&5
2147 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2148 echo $ac_n "(cached) $ac_c" 1>&6
2150 if test "$cross_compiling" = yes; then
2151 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2152 echo "configure:2153: checking for vfork" >&5
2153 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2154 echo $ac_n "(cached) $ac_c" 1>&6
2156 cat > conftest.$ac_ext <<EOF
2157 #line 2158 "configure"
2158 #include "confdefs.h"
2159 /* System header to define __stub macros and hopefully few prototypes,
2160 which can conflict with char vfork(); below. */
2162 /* Override any gcc2 internal prototype to avoid an error. */
2163 /* We use char because int might match the return type of a gcc2
2164 builtin and then its argument prototype would still apply. */
2169 /* The GNU C library defines this for functions which it implements
2170 to always fail with ENOSYS. Some functions are actually named
2171 something starting with __ and the normal name is an alias. */
2172 #if defined (__stub_vfork) || defined (__stub___vfork)
2180 if { (eval echo configure:2181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2182 eval "ac_cv_func_vfork=yes"
2184 echo "configure: failed program was:" >&5
2185 cat conftest.$ac_ext >&5
2187 eval "ac_cv_func_vfork=no"
2192 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2193 echo "$ac_t""yes" 1>&6
2196 echo "$ac_t""no" 1>&6
2199 ac_cv_func_vfork_works=$ac_cv_func_vfork
2201 cat > conftest.$ac_ext <<EOF
2202 #line 2203 "configure"
2203 #include "confdefs.h"
2204 /* Thanks to Paul Eggert for this test. */
2206 #include <sys/types.h>
2207 #include <sys/stat.h>
2208 #ifdef HAVE_UNISTD_H
2214 /* On some sparc systems, changes by the child to local and incoming
2215 argument registers are propagated back to the parent.
2216 The compiler is told about this with #include <vfork.h>,
2217 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2218 Test for this by using a static variable whose address
2219 is put into a register that is clobbered by the vfork. */
2222 sparc_address_test (int arg)
2224 sparc_address_test (arg) int arg;
2242 pid_t parent = getpid ();
2245 sparc_address_test ();
2250 /* Here is another test for sparc vfork register problems.
2251 This test uses lots of local variables, at least
2252 as many local variables as main has allocated so far
2253 including compiler temporaries. 4 locals are enough for
2254 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2255 A buggy compiler should reuse the register of parent
2256 for one of the local variables, since it will think that
2257 parent can't possibly be used any more in this routine.
2258 Assigning to the local variable will thus munge parent
2259 in the parent process. */
2261 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2262 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2263 /* Convince the compiler that p..p7 are live; otherwise, it might
2264 use the same hardware register for all 8 local variables. */
2265 if (p != p1 || p != p2 || p != p3 || p != p4
2266 || p != p5 || p != p6 || p != p7)
2269 /* On some systems (e.g. IRIX 3.3),
2270 vfork doesn't separate parent from child file descriptors.
2271 If the child closes a descriptor before it execs or exits,
2272 this munges the parent's descriptor as well.
2273 Test for this by closing stdout in the child. */
2274 _exit(close(fileno(stdout)) != 0);
2279 while (wait(&status) != child)
2282 /* Was there some problem with vforking? */
2285 /* Did the child fail? (This shouldn't happen.) */
2288 /* Did the vfork/compiler bug occur? */
2289 || parent != getpid()
2291 /* Did the file descriptor bug occur? */
2292 || fstat(fileno(stdout), &st) != 0
2297 if { (eval echo configure:2298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2299 ac_cv_func_vfork_works=yes
2301 echo "configure: failed program was:" >&5
2302 cat conftest.$ac_ext >&5
2304 ac_cv_func_vfork_works=no
2311 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2312 if test $ac_cv_func_vfork_works = no; then
2313 cat >> confdefs.h <<\EOF
2319 for ac_func in waitpid wait3 sigaction sigprocmask sigblock sigsetmask \
2320 sighold sigrelse writev lstat uname tzset killpg \
2323 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2324 echo "configure:2325: checking for $ac_func" >&5
2325 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2326 echo $ac_n "(cached) $ac_c" 1>&6
2328 cat > conftest.$ac_ext <<EOF
2329 #line 2330 "configure"
2330 #include "confdefs.h"
2331 /* System header to define __stub macros and hopefully few prototypes,
2332 which can conflict with char $ac_func(); below. */
2334 /* Override any gcc2 internal prototype to avoid an error. */
2335 /* We use char because int might match the return type of a gcc2
2336 builtin and then its argument prototype would still apply. */
2341 /* The GNU C library defines this for functions which it implements
2342 to always fail with ENOSYS. Some functions are actually named
2343 something starting with __ and the normal name is an alias. */
2344 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2352 if { (eval echo configure:2353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2354 eval "ac_cv_func_$ac_func=yes"
2356 echo "configure: failed program was:" >&5
2357 cat conftest.$ac_ext >&5
2359 eval "ac_cv_func_$ac_func=no"
2364 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2365 echo "$ac_t""yes" 1>&6
2366 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2367 cat >> confdefs.h <<EOF
2368 #define $ac_tr_func 1
2372 echo "$ac_t""no" 1>&6
2377 for ac_func in snprintf strerror strdup
2379 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2380 echo "configure:2381: checking for $ac_func" >&5
2381 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2382 echo $ac_n "(cached) $ac_c" 1>&6
2384 cat > conftest.$ac_ext <<EOF
2385 #line 2386 "configure"
2386 #include "confdefs.h"
2387 /* System header to define __stub macros and hopefully few prototypes,
2388 which can conflict with char $ac_func(); below. */
2390 /* Override any gcc2 internal prototype to avoid an error. */
2391 /* We use char because int might match the return type of a gcc2
2392 builtin and then its argument prototype would still apply. */
2397 /* The GNU C library defines this for functions which it implements
2398 to always fail with ENOSYS. Some functions are actually named
2399 something starting with __ and the normal name is an alias. */
2400 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2408 if { (eval echo configure:2409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2410 eval "ac_cv_func_$ac_func=yes"
2412 echo "configure: failed program was:" >&5
2413 cat conftest.$ac_ext >&5
2415 eval "ac_cv_func_$ac_func=no"
2420 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2421 echo "$ac_t""yes" 1>&6
2422 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2423 cat >> confdefs.h <<EOF
2424 #define $ac_tr_func 1
2428 echo "$ac_t""no" 1>&6
2429 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
2435 echo $ac_n "checking for modf""... $ac_c" 1>&6
2436 echo "configure:2437: checking for modf" >&5
2437 if eval "test \"`echo '$''{'ac_cv_func_modf'+set}'`\" = set"; then
2438 echo $ac_n "(cached) $ac_c" 1>&6
2440 cat > conftest.$ac_ext <<EOF
2441 #line 2442 "configure"
2442 #include "confdefs.h"
2443 /* System header to define __stub macros and hopefully few prototypes,
2444 which can conflict with char modf(); below. */
2446 /* Override any gcc2 internal prototype to avoid an error. */
2447 /* We use char because int might match the return type of a gcc2
2448 builtin and then its argument prototype would still apply. */
2453 /* The GNU C library defines this for functions which it implements
2454 to always fail with ENOSYS. Some functions are actually named
2455 something starting with __ and the normal name is an alias. */
2456 #if defined (__stub_modf) || defined (__stub___modf)
2464 if { (eval echo configure:2465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2466 eval "ac_cv_func_modf=yes"
2468 echo "configure: failed program was:" >&5
2469 cat conftest.$ac_ext >&5
2471 eval "ac_cv_func_modf=no"
2476 if eval "test \"`echo '$ac_cv_func_'modf`\" = yes"; then
2477 echo "$ac_t""yes" 1>&6
2480 echo "$ac_t""no" 1>&6
2481 echo $ac_n "checking for modf in -lm""... $ac_c" 1>&6
2482 echo "configure:2483: checking for modf in -lm" >&5
2483 ac_lib_var=`echo m'_'modf | sed 'y%./+-%__p_%'`
2484 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2485 echo $ac_n "(cached) $ac_c" 1>&6
2487 ac_save_LIBS="$LIBS"
2489 cat > conftest.$ac_ext <<EOF
2490 #line 2491 "configure"
2491 #include "confdefs.h"
2492 /* Override any gcc2 internal prototype to avoid an error. */
2493 /* We use char because int might match the return type of a gcc2
2494 builtin and then its argument prototype would still apply. */
2501 if { (eval echo configure:2502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2503 eval "ac_cv_lib_$ac_lib_var=yes"
2505 echo "configure: failed program was:" >&5
2506 cat conftest.$ac_ext >&5
2508 eval "ac_cv_lib_$ac_lib_var=no"
2511 LIBS="$ac_save_LIBS"
2514 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2515 echo "$ac_t""yes" 1>&6
2516 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
2517 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2518 cat >> confdefs.h <<EOF
2519 #define $ac_tr_lib 1
2525 echo "$ac_t""no" 1>&6
2531 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2532 echo "configure:2533: checking for gethostbyname" >&5
2533 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2534 echo $ac_n "(cached) $ac_c" 1>&6
2536 cat > conftest.$ac_ext <<EOF
2537 #line 2538 "configure"
2538 #include "confdefs.h"
2539 /* System header to define __stub macros and hopefully few prototypes,
2540 which can conflict with char gethostbyname(); below. */
2542 /* Override any gcc2 internal prototype to avoid an error. */
2543 /* We use char because int might match the return type of a gcc2
2544 builtin and then its argument prototype would still apply. */
2545 char gethostbyname();
2549 /* The GNU C library defines this for functions which it implements
2550 to always fail with ENOSYS. Some functions are actually named
2551 something starting with __ and the normal name is an alias. */
2552 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2560 if { (eval echo configure:2561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2562 eval "ac_cv_func_gethostbyname=yes"
2564 echo "configure: failed program was:" >&5
2565 cat conftest.$ac_ext >&5
2567 eval "ac_cv_func_gethostbyname=no"
2572 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
2573 echo "$ac_t""yes" 1>&6
2576 echo "$ac_t""no" 1>&6
2577 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2578 echo "configure:2579: checking for gethostbyname in -lnsl" >&5
2579 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2580 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2581 echo $ac_n "(cached) $ac_c" 1>&6
2583 ac_save_LIBS="$LIBS"
2585 cat > conftest.$ac_ext <<EOF
2586 #line 2587 "configure"
2587 #include "confdefs.h"
2588 /* Override any gcc2 internal prototype to avoid an error. */
2589 /* We use char because int might match the return type of a gcc2
2590 builtin and then its argument prototype would still apply. */
2591 char gethostbyname();
2597 if { (eval echo configure:2598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2599 eval "ac_cv_lib_$ac_lib_var=yes"
2601 echo "configure: failed program was:" >&5
2602 cat conftest.$ac_ext >&5
2604 eval "ac_cv_lib_$ac_lib_var=no"
2607 LIBS="$ac_save_LIBS"
2610 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2611 echo "$ac_t""yes" 1>&6
2612 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
2613 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2614 cat >> confdefs.h <<EOF
2615 #define $ac_tr_lib 1
2621 echo "$ac_t""no" 1>&6
2622 echo $ac_n "checking for gethostbyname in -lresolv""... $ac_c" 1>&6
2623 echo "configure:2624: checking for gethostbyname in -lresolv" >&5
2624 ac_lib_var=`echo resolv'_'gethostbyname | sed 'y%./+-%__p_%'`
2625 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2626 echo $ac_n "(cached) $ac_c" 1>&6
2628 ac_save_LIBS="$LIBS"
2629 LIBS="-lresolv $LIBS"
2630 cat > conftest.$ac_ext <<EOF
2631 #line 2632 "configure"
2632 #include "confdefs.h"
2633 /* Override any gcc2 internal prototype to avoid an error. */
2634 /* We use char because int might match the return type of a gcc2
2635 builtin and then its argument prototype would still apply. */
2636 char gethostbyname();
2642 if { (eval echo configure:2643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2644 eval "ac_cv_lib_$ac_lib_var=yes"
2646 echo "configure: failed program was:" >&5
2647 cat conftest.$ac_ext >&5
2649 eval "ac_cv_lib_$ac_lib_var=no"
2652 LIBS="$ac_save_LIBS"
2655 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2656 echo "$ac_t""yes" 1>&6
2657 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
2658 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2659 cat >> confdefs.h <<EOF
2660 #define $ac_tr_lib 1
2663 LIBS="-lresolv $LIBS"
2666 echo "$ac_t""no" 1>&6
2673 echo $ac_n "checking for socket""... $ac_c" 1>&6
2674 echo "configure:2675: checking for socket" >&5
2675 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
2676 echo $ac_n "(cached) $ac_c" 1>&6
2678 cat > conftest.$ac_ext <<EOF
2679 #line 2680 "configure"
2680 #include "confdefs.h"
2681 /* System header to define __stub macros and hopefully few prototypes,
2682 which can conflict with char socket(); below. */
2684 /* Override any gcc2 internal prototype to avoid an error. */
2685 /* We use char because int might match the return type of a gcc2
2686 builtin and then its argument prototype would still apply. */
2691 /* The GNU C library defines this for functions which it implements
2692 to always fail with ENOSYS. Some functions are actually named
2693 something starting with __ and the normal name is an alias. */
2694 #if defined (__stub_socket) || defined (__stub___socket)
2702 if { (eval echo configure:2703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2704 eval "ac_cv_func_socket=yes"
2706 echo "configure: failed program was:" >&5
2707 cat conftest.$ac_ext >&5
2709 eval "ac_cv_func_socket=no"
2714 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
2715 echo "$ac_t""yes" 1>&6
2718 echo "$ac_t""no" 1>&6
2719 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
2720 echo "configure:2721: checking for socket in -lsocket" >&5
2721 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
2722 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2723 echo $ac_n "(cached) $ac_c" 1>&6
2725 ac_save_LIBS="$LIBS"
2726 LIBS="-lsocket $LIBS"
2727 cat > conftest.$ac_ext <<EOF
2728 #line 2729 "configure"
2729 #include "confdefs.h"
2730 /* Override any gcc2 internal prototype to avoid an error. */
2731 /* We use char because int might match the return type of a gcc2
2732 builtin and then its argument prototype would still apply. */
2739 if { (eval echo configure:2740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2741 eval "ac_cv_lib_$ac_lib_var=yes"
2743 echo "configure: failed program was:" >&5
2744 cat conftest.$ac_ext >&5
2746 eval "ac_cv_lib_$ac_lib_var=no"
2749 LIBS="$ac_save_LIBS"
2752 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2753 echo "$ac_t""yes" 1>&6
2754 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
2755 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2756 cat >> confdefs.h <<EOF
2757 #define $ac_tr_lib 1
2760 LIBS="-lsocket $LIBS"
2763 echo "$ac_t""no" 1>&6
2770 echo $ac_n "checking for ruserpass""... $ac_c" 1>&6
2771 echo "configure:2772: checking for ruserpass" >&5
2772 if eval "test \"`echo '$''{'ac_cv_func_ruserpass'+set}'`\" = set"; then
2773 echo $ac_n "(cached) $ac_c" 1>&6
2775 cat > conftest.$ac_ext <<EOF
2776 #line 2777 "configure"
2777 #include "confdefs.h"
2778 /* System header to define __stub macros and hopefully few prototypes,
2779 which can conflict with char ruserpass(); below. */
2781 /* Override any gcc2 internal prototype to avoid an error. */
2782 /* We use char because int might match the return type of a gcc2
2783 builtin and then its argument prototype would still apply. */
2788 /* The GNU C library defines this for functions which it implements
2789 to always fail with ENOSYS. Some functions are actually named
2790 something starting with __ and the normal name is an alias. */
2791 #if defined (__stub_ruserpass) || defined (__stub___ruserpass)
2799 if { (eval echo configure:2800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2801 eval "ac_cv_func_ruserpass=yes"
2803 echo "configure: failed program was:" >&5
2804 cat conftest.$ac_ext >&5
2806 eval "ac_cv_func_ruserpass=no"
2811 if eval "test \"`echo '$ac_cv_func_'ruserpass`\" = yes"; then
2812 echo "$ac_t""yes" 1>&6
2815 echo "$ac_t""no" 1>&6
2816 echo $ac_n "checking for _ruserpass""... $ac_c" 1>&6
2817 echo "configure:2818: checking for _ruserpass" >&5
2818 if eval "test \"`echo '$''{'ac_cv_func__ruserpass'+set}'`\" = set"; then
2819 echo $ac_n "(cached) $ac_c" 1>&6
2821 cat > conftest.$ac_ext <<EOF
2822 #line 2823 "configure"
2823 #include "confdefs.h"
2824 /* System header to define __stub macros and hopefully few prototypes,
2825 which can conflict with char _ruserpass(); below. */
2827 /* Override any gcc2 internal prototype to avoid an error. */
2828 /* We use char because int might match the return type of a gcc2
2829 builtin and then its argument prototype would still apply. */
2834 /* The GNU C library defines this for functions which it implements
2835 to always fail with ENOSYS. Some functions are actually named
2836 something starting with __ and the normal name is an alias. */
2837 #if defined (__stub__ruserpass) || defined (__stub____ruserpass)
2845 if { (eval echo configure:2846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2847 eval "ac_cv_func__ruserpass=yes"
2849 echo "configure: failed program was:" >&5
2850 cat conftest.$ac_ext >&5
2852 eval "ac_cv_func__ruserpass=no"
2857 if eval "test \"`echo '$ac_cv_func_'_ruserpass`\" = yes"; then
2858 echo "$ac_t""yes" 1>&6
2861 echo "$ac_t""no" 1>&6
2862 echo $ac_n "checking for _ruserpass in -lsocket""... $ac_c" 1>&6
2863 echo "configure:2864: checking for _ruserpass in -lsocket" >&5
2864 ac_lib_var=`echo socket'_'_ruserpass | sed 'y%./+-%__p_%'`
2865 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2866 echo $ac_n "(cached) $ac_c" 1>&6
2868 ac_save_LIBS="$LIBS"
2869 LIBS="-lsocket $LIBS"
2870 cat > conftest.$ac_ext <<EOF
2871 #line 2872 "configure"
2872 #include "confdefs.h"
2873 /* Override any gcc2 internal prototype to avoid an error. */
2874 /* We use char because int might match the return type of a gcc2
2875 builtin and then its argument prototype would still apply. */
2882 if { (eval echo configure:2883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2884 eval "ac_cv_lib_$ac_lib_var=yes"
2886 echo "configure: failed program was:" >&5
2887 cat conftest.$ac_ext >&5
2889 eval "ac_cv_lib_$ac_lib_var=no"
2892 LIBS="$ac_save_LIBS"
2895 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2896 echo "$ac_t""yes" 1>&6
2897 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
2898 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2899 cat >> confdefs.h <<EOF
2900 #define $ac_tr_lib 1
2903 LIBS="-lsocket $LIBS"
2906 echo "$ac_t""no" 1>&6
2913 if test x$ac_cv_func_ruserpass = xno; then
2914 if test x$ac_cv_func__ruserpass = xyes -o x$ac_cv_lib_socket__ruserpass = xyes; then
2915 cat >> confdefs.h <<\EOF
2916 #define ruserpass _ruserpass
2920 LIBOBJS="$LIBOBJS ruserpass.o"
2925 termcap_curses_order="termcap curses ncurses"
2926 for lib in $termcap_curses_order; do
2927 echo $ac_n "checking for tgetent in -l${lib}""... $ac_c" 1>&6
2928 echo "configure:2929: checking for tgetent in -l${lib}" >&5
2929 ac_lib_var=`echo ${lib}'_'tgetent | sed 'y%./+-%__p_%'`
2930 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2931 echo $ac_n "(cached) $ac_c" 1>&6
2933 ac_save_LIBS="$LIBS"
2934 LIBS="-l${lib} $LIBS"
2935 cat > conftest.$ac_ext <<EOF
2936 #line 2937 "configure"
2937 #include "confdefs.h"
2938 /* Override any gcc2 internal prototype to avoid an error. */
2939 /* We use char because int might match the return type of a gcc2
2940 builtin and then its argument prototype would still apply. */
2947 if { (eval echo configure:2948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2949 eval "ac_cv_lib_$ac_lib_var=yes"
2951 echo "configure: failed program was:" >&5
2952 cat conftest.$ac_ext >&5
2954 eval "ac_cv_lib_$ac_lib_var=no"
2957 LIBS="$ac_save_LIBS"
2960 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2961 echo "$ac_t""yes" 1>&6
2962 TERMLIB="-l$lib"; break
2964 echo "$ac_t""no" 1>&6
2969 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
2970 echo "configure:2971: checking for dbm_open" >&5
2971 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
2972 echo $ac_n "(cached) $ac_c" 1>&6
2974 cat > conftest.$ac_ext <<EOF
2975 #line 2976 "configure"
2976 #include "confdefs.h"
2977 /* System header to define __stub macros and hopefully few prototypes,
2978 which can conflict with char dbm_open(); below. */
2980 /* Override any gcc2 internal prototype to avoid an error. */
2981 /* We use char because int might match the return type of a gcc2
2982 builtin and then its argument prototype would still apply. */
2987 /* The GNU C library defines this for functions which it implements
2988 to always fail with ENOSYS. Some functions are actually named
2989 something starting with __ and the normal name is an alias. */
2990 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
2998 if { (eval echo configure:2999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3000 eval "ac_cv_func_dbm_open=yes"
3002 echo "configure: failed program was:" >&5
3003 cat conftest.$ac_ext >&5
3005 eval "ac_cv_func_dbm_open=no"
3010 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
3011 echo "$ac_t""yes" 1>&6
3014 echo "$ac_t""no" 1>&6
3015 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
3016 echo "configure:3017: checking for dbm_open in -lndbm" >&5
3017 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
3018 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3019 echo $ac_n "(cached) $ac_c" 1>&6
3021 ac_save_LIBS="$LIBS"
3023 cat > conftest.$ac_ext <<EOF
3024 #line 3025 "configure"
3025 #include "confdefs.h"
3026 /* Override any gcc2 internal prototype to avoid an error. */
3027 /* We use char because int might match the return type of a gcc2
3028 builtin and then its argument prototype would still apply. */
3035 if { (eval echo configure:3036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3037 eval "ac_cv_lib_$ac_lib_var=yes"
3039 echo "configure: failed program was:" >&5
3040 cat conftest.$ac_ext >&5
3042 eval "ac_cv_lib_$ac_lib_var=no"
3045 LIBS="$ac_save_LIBS"
3048 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3049 echo "$ac_t""yes" 1>&6
3050 ac_tr_lib=HAVE_LIB`echo ndbm | sed -e 's/^a-zA-Z0-9_/_/g' \
3051 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3052 cat >> confdefs.h <<EOF
3053 #define $ac_tr_lib 1
3059 echo "$ac_t""no" 1>&6
3060 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
3061 echo "configure:3062: checking for dbm_open in -ldbm" >&5
3062 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
3063 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3064 echo $ac_n "(cached) $ac_c" 1>&6
3066 ac_save_LIBS="$LIBS"
3068 cat > conftest.$ac_ext <<EOF
3069 #line 3070 "configure"
3070 #include "confdefs.h"
3071 /* Override any gcc2 internal prototype to avoid an error. */
3072 /* We use char because int might match the return type of a gcc2
3073 builtin and then its argument prototype would still apply. */
3080 if { (eval echo configure:3081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3082 eval "ac_cv_lib_$ac_lib_var=yes"
3084 echo "configure: failed program was:" >&5
3085 cat conftest.$ac_ext >&5
3087 eval "ac_cv_lib_$ac_lib_var=no"
3090 LIBS="$ac_save_LIBS"
3093 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3094 echo "$ac_t""yes" 1>&6
3095 ac_tr_lib=HAVE_LIB`echo dbm | sed -e 's/^a-zA-Z0-9_/_/g' \
3096 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3097 cat >> confdefs.h <<EOF
3098 #define $ac_tr_lib 1
3104 echo "$ac_t""no" 1>&6
3112 if test x$with_hesiod != x -a x$with_hesiod != xno; then
3113 if test x$with_hesiod != xyes; then
3114 HESIOD_INCLUDES="-I$with_hesiod/include"
3115 HESIOD_LIBS="-L$with_hesiod/lib"
3117 echo $ac_n "checking for res_send""... $ac_c" 1>&6
3118 echo "configure:3119: checking for res_send" >&5
3119 if eval "test \"`echo '$''{'ac_cv_func_res_send'+set}'`\" = set"; then
3120 echo $ac_n "(cached) $ac_c" 1>&6
3122 cat > conftest.$ac_ext <<EOF
3123 #line 3124 "configure"
3124 #include "confdefs.h"
3125 /* System header to define __stub macros and hopefully few prototypes,
3126 which can conflict with char res_send(); below. */
3128 /* Override any gcc2 internal prototype to avoid an error. */
3129 /* We use char because int might match the return type of a gcc2
3130 builtin and then its argument prototype would still apply. */
3135 /* The GNU C library defines this for functions which it implements
3136 to always fail with ENOSYS. Some functions are actually named
3137 something starting with __ and the normal name is an alias. */
3138 #if defined (__stub_res_send) || defined (__stub___res_send)
3146 if { (eval echo configure:3147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3148 eval "ac_cv_func_res_send=yes"
3150 echo "configure: failed program was:" >&5
3151 cat conftest.$ac_ext >&5
3153 eval "ac_cv_func_res_send=no"
3158 if eval "test \"`echo '$ac_cv_func_'res_send`\" = yes"; then
3159 echo "$ac_t""yes" 1>&6
3162 echo "$ac_t""no" 1>&6
3163 echo $ac_n "checking for res_send in -lresolv""... $ac_c" 1>&6
3164 echo "configure:3165: checking for res_send in -lresolv" >&5
3165 ac_lib_var=`echo resolv'_'res_send | sed 'y%./+-%__p_%'`
3166 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3167 echo $ac_n "(cached) $ac_c" 1>&6
3169 ac_save_LIBS="$LIBS"
3170 LIBS="-lresolv $LIBS"
3171 cat > conftest.$ac_ext <<EOF
3172 #line 3173 "configure"
3173 #include "confdefs.h"
3174 /* Override any gcc2 internal prototype to avoid an error. */
3175 /* We use char because int might match the return type of a gcc2
3176 builtin and then its argument prototype would still apply. */
3183 if { (eval echo configure:3184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3185 eval "ac_cv_lib_$ac_lib_var=yes"
3187 echo "configure: failed program was:" >&5
3188 cat conftest.$ac_ext >&5
3190 eval "ac_cv_lib_$ac_lib_var=no"
3193 LIBS="$ac_save_LIBS"
3196 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3197 echo "$ac_t""yes" 1>&6
3198 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
3199 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3200 cat >> confdefs.h <<EOF
3201 #define $ac_tr_lib 1
3204 LIBS="-lresolv $LIBS"
3207 echo "$ac_t""no" 1>&6
3212 echo $ac_n "checking for hes_resolve in -lhesiod""... $ac_c" 1>&6
3213 echo "configure:3214: checking for hes_resolve in -lhesiod" >&5
3214 ac_lib_var=`echo hesiod'_'hes_resolve | sed 'y%./+-%__p_%'`
3215 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3216 echo $ac_n "(cached) $ac_c" 1>&6
3218 ac_save_LIBS="$LIBS"
3219 LIBS="-lhesiod $HESIOD_LIBS $LIBS"
3220 cat > conftest.$ac_ext <<EOF
3221 #line 3222 "configure"
3222 #include "confdefs.h"
3223 /* Override any gcc2 internal prototype to avoid an error. */
3224 /* We use char because int might match the return type of a gcc2
3225 builtin and then its argument prototype would still apply. */
3232 if { (eval echo configure:3233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3234 eval "ac_cv_lib_$ac_lib_var=yes"
3236 echo "configure: failed program was:" >&5
3237 cat conftest.$ac_ext >&5
3239 eval "ac_cv_lib_$ac_lib_var=no"
3242 LIBS="$ac_save_LIBS"
3245 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3246 echo "$ac_t""yes" 1>&6
3247 HESIOD_LIBS="$HESIOD_LIBS -lhesiod"
3249 echo "$ac_t""no" 1>&6
3250 { echo "configure: error: Hesiod library not found" 1>&2; exit 1; }
3255 if test x$with_krb4 != x -a x$with_krb4 != xno; then
3256 if test x$with_krb4 != xyes; then
3257 KRB4_INCLUDES="-I$with_krb4/include"
3258 if test -d "$with_krb4/include/kerberosIV"; then
3259 KRB4_INCLUDES="$KRB4_INCLUDES -I$with_krb4/include/kerberosIV"
3261 KRB4_LIBS="-L$with_krb4/lib"
3262 elif test -d /usr/include/kerberosIV; then
3263 KRB4_INCLUDES="-I/usr/include/kerberosIV"
3265 echo $ac_n "checking for krb_rd_req in -lkrb4""... $ac_c" 1>&6
3266 echo "configure:3267: checking for krb_rd_req in -lkrb4" >&5
3267 ac_lib_var=`echo krb4'_'krb_rd_req | sed 'y%./+-%__p_%'`
3268 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3269 echo $ac_n "(cached) $ac_c" 1>&6
3271 ac_save_LIBS="$LIBS"
3272 LIBS="-lkrb4 $KRB4_LIBS -ldes425 -lkrb5 -lcrypto -lcom_err $LIBS"
3273 cat > conftest.$ac_ext <<EOF
3274 #line 3275 "configure"
3275 #include "confdefs.h"
3276 /* Override any gcc2 internal prototype to avoid an error. */
3277 /* We use char because int might match the return type of a gcc2
3278 builtin and then its argument prototype would still apply. */
3285 if { (eval echo configure:3286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3287 eval "ac_cv_lib_$ac_lib_var=yes"
3289 echo "configure: failed program was:" >&5
3290 cat conftest.$ac_ext >&5
3292 eval "ac_cv_lib_$ac_lib_var=no"
3295 LIBS="$ac_save_LIBS"
3298 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3299 echo "$ac_t""yes" 1>&6
3300 KRB4_LIBS="$KRB4_LIBS -lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err"
3302 echo "$ac_t""no" 1>&6
3303 echo $ac_n "checking for krb_rd_req in -lkrb""... $ac_c" 1>&6
3304 echo "configure:3305: checking for krb_rd_req in -lkrb" >&5
3305 ac_lib_var=`echo krb'_'krb_rd_req | sed 'y%./+-%__p_%'`
3306 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3307 echo $ac_n "(cached) $ac_c" 1>&6
3309 ac_save_LIBS="$LIBS"
3310 LIBS="-lkrb $KRB4_LIBS -ldes $LIBS"
3311 cat > conftest.$ac_ext <<EOF
3312 #line 3313 "configure"
3313 #include "confdefs.h"
3314 /* Override any gcc2 internal prototype to avoid an error. */
3315 /* We use char because int might match the return type of a gcc2
3316 builtin and then its argument prototype would still apply. */
3323 if { (eval echo configure:3324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3325 eval "ac_cv_lib_$ac_lib_var=yes"
3327 echo "configure: failed program was:" >&5
3328 cat conftest.$ac_ext >&5
3330 eval "ac_cv_lib_$ac_lib_var=no"
3333 LIBS="$ac_save_LIBS"
3336 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3337 echo "$ac_t""yes" 1>&6
3338 KRB4_LIBS="$KRB4_LIBS -lkrb -ldes"
3340 echo "$ac_t""no" 1>&6
3341 { echo "configure: error: Kerberos 4 libraries not found" 1>&2; exit 1; }
3349 nmh_save_LIBS="$LIBS"
3350 LIBS="$TERMLIB $LIBS"
3352 echo $ac_n "checking if an include file defines ospeed""... $ac_c" 1>&6
3353 echo "configure:3354: checking if an include file defines ospeed" >&5
3354 if eval "test \"`echo '$''{'nmh_cv_decl_ospeed_include_defines'+set}'`\" = set"; then
3355 echo $ac_n "(cached) $ac_c" 1>&6
3357 cat > conftest.$ac_ext <<EOF
3358 #line 3359 "configure"
3359 #include "confdefs.h"
3360 #include <sys/types.h>
3362 #include <termios.h>
3365 #include <termcap.h>
3371 if { (eval echo configure:3372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3373 nmh_cv_decl_ospeed_include_defines=yes
3375 echo "configure: failed program was:" >&5
3376 cat conftest.$ac_ext >&5
3378 nmh_cv_decl_ospeed_include_defines=no
3383 echo "$ac_t""$nmh_cv_decl_ospeed_include_defines" 1>&6
3385 if test $nmh_cv_decl_ospeed_include_defines = no; then
3386 echo $ac_n "checking if you must define ospeed""... $ac_c" 1>&6
3387 echo "configure:3388: checking if you must define ospeed" >&5
3388 if eval "test \"`echo '$''{'nmh_cv_decl_ospeed_must_define'+set}'`\" = set"; then
3389 echo $ac_n "(cached) $ac_c" 1>&6
3391 cat > conftest.$ac_ext <<EOF
3392 #line 3393 "configure"
3393 #include "confdefs.h"
3396 extern short ospeed; ospeed = 0;
3399 if { (eval echo configure:3400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3401 nmh_cv_decl_ospeed_must_define=yes
3403 echo "configure: failed program was:" >&5
3404 cat conftest.$ac_ext >&5
3406 nmh_cv_decl_ospeed_must_define=no
3411 echo "$ac_t""$nmh_cv_decl_ospeed_must_define" 1>&6
3414 if test $nmh_cv_decl_ospeed_include_defines = yes; then
3415 cat >> confdefs.h <<\EOF
3416 #define HAVE_OSPEED 1
3419 elif test $nmh_cv_decl_ospeed_must_define = yes; then
3420 cat >> confdefs.h <<\EOF
3421 #define HAVE_OSPEED 1
3424 cat >> confdefs.h <<\EOF
3425 #define MUST_DEFINE_OSPEED 1
3431 LIBS="$nmh_save_LIBS"
3433 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3434 echo "configure:3435: checking return type of signal handlers" >&5
3435 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3436 echo $ac_n "(cached) $ac_c" 1>&6
3438 cat > conftest.$ac_ext <<EOF
3439 #line 3440 "configure"
3440 #include "confdefs.h"
3441 #include <sys/types.h>
3447 extern "C" void (*signal (int, void (*)(int)))(int);
3449 void (*signal ()) ();
3456 if { (eval echo configure:3457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3458 ac_cv_type_signal=void
3460 echo "configure: failed program was:" >&5
3461 cat conftest.$ac_ext >&5
3463 ac_cv_type_signal=int
3468 echo "$ac_t""$ac_cv_type_signal" 1>&6
3469 cat >> confdefs.h <<EOF
3470 #define RETSIGTYPE $ac_cv_type_signal
3474 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3475 echo "configure:3476: checking for pid_t" >&5
3476 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3477 echo $ac_n "(cached) $ac_c" 1>&6
3479 cat > conftest.$ac_ext <<EOF
3480 #line 3481 "configure"
3481 #include "confdefs.h"
3482 #include <sys/types.h>
3488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3489 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3491 ac_cv_type_pid_t=yes
3499 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3500 if test $ac_cv_type_pid_t = no; then
3501 cat >> confdefs.h <<\EOF
3507 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3508 echo "configure:3509: checking for off_t" >&5
3509 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3510 echo $ac_n "(cached) $ac_c" 1>&6
3512 cat > conftest.$ac_ext <<EOF
3513 #line 3514 "configure"
3514 #include "confdefs.h"
3515 #include <sys/types.h>
3521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3522 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3524 ac_cv_type_off_t=yes
3532 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3533 if test $ac_cv_type_off_t = no; then
3534 cat >> confdefs.h <<\EOF
3540 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3541 echo "configure:3542: checking for uid_t in sys/types.h" >&5
3542 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3543 echo $ac_n "(cached) $ac_c" 1>&6
3545 cat > conftest.$ac_ext <<EOF
3546 #line 3547 "configure"
3547 #include "confdefs.h"
3548 #include <sys/types.h>
3550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3551 egrep "uid_t" >/dev/null 2>&1; then
3553 ac_cv_type_uid_t=yes
3562 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3563 if test $ac_cv_type_uid_t = no; then
3564 cat >> confdefs.h <<\EOF
3568 cat >> confdefs.h <<\EOF
3574 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3575 echo "configure:3576: checking for mode_t" >&5
3576 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3577 echo $ac_n "(cached) $ac_c" 1>&6
3579 cat > conftest.$ac_ext <<EOF
3580 #line 3581 "configure"
3581 #include "confdefs.h"
3582 #include <sys/types.h>
3588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3589 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3591 ac_cv_type_mode_t=yes
3594 ac_cv_type_mode_t=no
3599 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3600 if test $ac_cv_type_mode_t = no; then
3601 cat >> confdefs.h <<\EOF
3607 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3608 echo "configure:3609: checking for size_t" >&5
3609 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3610 echo $ac_n "(cached) $ac_c" 1>&6
3612 cat > conftest.$ac_ext <<EOF
3613 #line 3614 "configure"
3614 #include "confdefs.h"
3615 #include <sys/types.h>
3621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3622 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3624 ac_cv_type_size_t=yes
3627 ac_cv_type_size_t=no
3632 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3633 if test $ac_cv_type_size_t = no; then
3634 cat >> confdefs.h <<\EOF
3635 #define size_t unsigned
3641 echo $ac_n "checking for sigset_t""... $ac_c" 1>&6
3642 echo "configure:3643: checking for sigset_t" >&5
3643 if eval "test \"`echo '$''{'nmh_cv_type_sigset_t'+set}'`\" = set"; then
3644 echo $ac_n "(cached) $ac_c" 1>&6
3646 cat > conftest.$ac_ext <<EOF
3647 #line 3648 "configure"
3648 #include "confdefs.h"
3649 #include <sys/types.h>
3652 sigset_t tempsigset;
3655 if { (eval echo configure:3656: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3657 nmh_cv_type_sigset_t=yes
3659 echo "configure: failed program was:" >&5
3660 cat conftest.$ac_ext >&5
3662 nmh_cv_type_sigset_t=no
3667 echo "$ac_t""$nmh_cv_type_sigset_t" 1>&6
3668 if test $nmh_cv_type_sigset_t = no; then
3669 cat >> confdefs.h <<\EOF
3670 #define sigset_t unsigned int
3675 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
3676 echo "configure:3677: checking for st_blksize in struct stat" >&5
3677 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
3678 echo $ac_n "(cached) $ac_c" 1>&6
3680 cat > conftest.$ac_ext <<EOF
3681 #line 3682 "configure"
3682 #include "confdefs.h"
3683 #include <sys/types.h>
3684 #include <sys/stat.h>
3686 struct stat s; s.st_blksize;
3689 if { (eval echo configure:3690: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3691 ac_cv_struct_st_blksize=yes
3693 echo "configure: failed program was:" >&5
3694 cat conftest.$ac_ext >&5
3696 ac_cv_struct_st_blksize=no
3701 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
3702 if test $ac_cv_struct_st_blksize = yes; then
3703 cat >> confdefs.h <<\EOF
3704 #define HAVE_ST_BLKSIZE 1
3710 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
3711 echo "configure:3712: checking for tm_gmtoff in struct tm" >&5
3712 if eval "test \"`echo '$''{'nmh_cv_struct_tm_gmtoff'+set}'`\" = set"; then
3713 echo $ac_n "(cached) $ac_c" 1>&6
3715 cat > conftest.$ac_ext <<EOF
3716 #line 3717 "configure"
3717 #include "confdefs.h"
3718 #ifdef TIME_WITH_SYS_TIME
3719 # include <sys/time.h>
3722 # ifdef TM_IN_SYS_TIME
3723 # include <sys/time.h>
3729 struct tm temptm; temptm.tm_gmtoff = 0;
3732 if { (eval echo configure:3733: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3734 nmh_cv_struct_tm_gmtoff=yes
3736 echo "configure: failed program was:" >&5
3737 cat conftest.$ac_ext >&5
3739 nmh_cv_struct_tm_gmtoff=no
3744 echo "$ac_t""$nmh_cv_struct_tm_gmtoff" 1>&6
3745 if test $nmh_cv_struct_tm_gmtoff = yes; then
3746 cat >> confdefs.h <<\EOF
3747 #define HAVE_TM_GMTOFF 1
3752 echo $ac_n "checking what style of signals to use""... $ac_c" 1>&6
3753 echo "configure:3754: checking what style of signals to use" >&5
3754 if test $ac_cv_func_sigaction = yes -a $ac_cv_func_sigprocmask = yes; then
3755 signals_style=POSIX_SIGNALS
3756 cat >> confdefs.h <<\EOF
3757 #define POSIX_SIGNALS 1
3760 cat >> confdefs.h <<\EOF
3761 #define RELIABLE_SIGNALS 1
3764 elif test $ac_cv_func_sigblock = yes -a $ac_cv_func_sigsetmask = yes; then
3765 signals_style=BSD_SIGNALS
3766 cat >> confdefs.h <<\EOF
3767 #define BSD_SIGNALS 1
3770 cat >> confdefs.h <<\EOF
3771 #define RELIABLE_SIGNALS 1
3774 elif test $ac_cv_func_sighold = yes -a $ac_cv_func_sigrelse = yes; then
3775 signals_style=SYSV_SIGNALS
3776 cat >> confdefs.h <<\EOF
3777 #define SYSV_SIGNALS 1
3781 signals_style=NO_SIGNAL_BLOCKING
3782 cat >> confdefs.h <<\EOF
3783 #define NO_SIGNAL_BLOCKING 1
3788 echo "$ac_t""$signals_style" 1>&6
3790 echo $ac_n "checking where signal.h is located""... $ac_c" 1>&6
3791 echo "configure:3792: checking where signal.h is located" >&5
3792 if eval "test \"`echo '$''{'nmh_cv_path_signal_h'+set}'`\" = set"; then
3793 echo $ac_n "(cached) $ac_c" 1>&6
3795 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
3796 test -f $SIGNAL_H && \
3797 grep '#[ ]*define[ ][ ]*SIG[0-9A-Z]*[ ]*[0-9][0-9]*' $SIGNAL_H > /dev/null && \
3800 nmh_cv_path_signal_h=$SIGNAL_H
3804 echo "$ac_t""$nmh_cv_path_signal_h" 1>&6
3805 SIGNAL_H=$nmh_cv_path_signal_h
3808 cat > confcache <<\EOF
3809 # This file is a shell script that caches the results of configure
3810 # tests run on this system so they can be shared between configure
3811 # scripts and configure runs. It is not useful on other systems.
3812 # If it contains results you don't want to keep, you may remove or edit it.
3814 # By default, configure uses ./config.cache as the cache file,
3815 # creating it if it does not exist already. You can give configure
3816 # the --cache-file=FILE option to use a different cache file; that is
3817 # what configure does when it calls configure scripts in
3818 # subdirectories, so they share the cache.
3819 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3820 # config.status only pays attention to the cache file if you give it the
3821 # --recheck option to rerun configure.
3824 # The following way of writing the cache mishandles newlines in values,
3825 # but we know of no workaround that is simple, portable, and efficient.
3826 # So, don't put newlines in cache variables' values.
3827 # Ultrix sh set writes to stderr and can't be redirected directly,
3828 # and sets the high bit in the cache file unless we assign to the vars.
3830 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3832 # `set' does not quote correctly, so add quotes (double-quote substitution
3833 # turns \\\\ into \\, and sed turns \\ into \).
3835 -e "s/'/'\\\\''/g" \
3836 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3839 # `set' quotes correctly as required by POSIX, so do not add quotes.
3840 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3843 if cmp -s $cache_file confcache; then
3846 if test -w $cache_file; then
3847 echo "updating cache $cache_file"
3848 cat confcache > $cache_file
3850 echo "not updating unwritable cache $cache_file"
3855 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3857 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3858 # Let make expand exec_prefix.
3859 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3861 # Any assignment to VPATH causes Sun make to only execute
3862 # the first set of double-colon rules, so remove it if not needed.
3863 # If there is a colon in the path, we need to keep it.
3864 if test "x$srcdir" = x.; then
3865 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3868 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3870 DEFS=-DHAVE_CONFIG_H
3872 # Without the "./", some shells look in PATH for config.status.
3873 : ${CONFIG_STATUS=./config.status}
3875 echo creating $CONFIG_STATUS
3876 rm -f $CONFIG_STATUS
3877 cat > $CONFIG_STATUS <<EOF
3879 # Generated automatically by configure.
3880 # Run this file to recreate the current configuration.
3881 # This directory was configured as follows,
3882 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3884 # $0 $ac_configure_args
3886 # Compiler output produced by configure, useful for debugging
3887 # configure, is in ./config.log if it exists.
3889 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3892 case "\$ac_option" in
3893 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3894 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3895 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3896 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3897 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3899 -help | --help | --hel | --he | --h)
3900 echo "\$ac_cs_usage"; exit 0 ;;
3901 *) echo "\$ac_cs_usage"; exit 1 ;;
3905 ac_given_srcdir=$srcdir
3906 ac_given_INSTALL="$INSTALL"
3908 trap 'rm -fr `echo "Makefile config/Makefile h/Makefile sbr/Makefile uip/Makefile \
3909 zotnet/Makefile zotnet/mts/Makefile zotnet/tws/Makefile \
3910 zotnet/mf/Makefile zotnet/bboards/Makefile mts/Makefile \
3911 mts/smtp/Makefile mts/sendmail/Makefile mts/mmdf/Makefile \
3912 etc/Makefile man/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3914 cat >> $CONFIG_STATUS <<EOF
3916 # Protect against being on the right side of a sed subst in config.status.
3917 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3918 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3922 s%@CFLAGS@%$CFLAGS%g
3923 s%@CPPFLAGS@%$CPPFLAGS%g
3924 s%@CXXFLAGS@%$CXXFLAGS%g
3925 s%@FFLAGS@%$FFLAGS%g
3927 s%@LDFLAGS@%$LDFLAGS%g
3929 s%@exec_prefix@%$exec_prefix%g
3930 s%@prefix@%$prefix%g
3931 s%@program_transform_name@%$program_transform_name%g
3932 s%@bindir@%$bindir%g
3933 s%@sbindir@%$sbindir%g
3934 s%@libexecdir@%$libexecdir%g
3935 s%@datadir@%$datadir%g
3936 s%@sysconfdir@%$sysconfdir%g
3937 s%@sharedstatedir@%$sharedstatedir%g
3938 s%@localstatedir@%$localstatedir%g
3939 s%@libdir@%$libdir%g
3940 s%@includedir@%$includedir%g
3941 s%@oldincludedir@%$oldincludedir%g
3942 s%@infodir@%$infodir%g
3943 s%@mandir@%$mandir%g
3944 s%@VERSION@%$VERSION%g
3946 s%@MTSLIB@%$MTSLIB%g
3947 s%@POPLIB@%$POPLIB%g
3948 s%@POPSED@%$POPSED%g
3950 s%@SET_MAKE@%$SET_MAKE%g
3951 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3952 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3953 s%@INSTALL_DATA@%$INSTALL_DATA%g
3954 s%@RANLIB@%$RANLIB%g
3957 s%@LEXLIB@%$LEXLIB%g
3958 s%@LORDER@%$LORDER%g
3960 s%@sendmailpath@%$sendmailpath%g
3961 s%@morepath@%$morepath%g
3962 s%@pagerpath@%$pagerpath%g
3963 s%@vipath@%$vipath%g
3964 s%@editorpath@%$editorpath%g
3965 s%@mailspool@%$mailspool%g
3967 s%@LIBOBJS@%$LIBOBJS%g
3968 s%@TERMLIB@%$TERMLIB%g
3969 s%@HESIOD_INCLUDES@%$HESIOD_INCLUDES%g
3970 s%@HESIOD_LIBS@%$HESIOD_LIBS%g
3971 s%@KRB4_INCLUDES@%$KRB4_INCLUDES%g
3972 s%@KRB4_LIBS@%$KRB4_LIBS%g
3973 s%@SIGNAL_H@%$SIGNAL_H%g
3978 cat >> $CONFIG_STATUS <<\EOF
3980 # Split the substitutions into bite-sized pieces for seds with
3981 # small command number limits, like on Digital OSF/1 and HP-UX.
3982 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3983 ac_file=1 # Number of current file.
3984 ac_beg=1 # First line for current file.
3985 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3988 while $ac_more_lines; do
3989 if test $ac_beg -gt 1; then
3990 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3992 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3994 if test ! -s conftest.s$ac_file; then
3996 rm -f conftest.s$ac_file
3998 if test -z "$ac_sed_cmds"; then
3999 ac_sed_cmds="sed -f conftest.s$ac_file"
4001 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4003 ac_file=`expr $ac_file + 1`
4005 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4008 if test -z "$ac_sed_cmds"; then
4013 cat >> $CONFIG_STATUS <<EOF
4015 CONFIG_FILES=\${CONFIG_FILES-"Makefile config/Makefile h/Makefile sbr/Makefile uip/Makefile \
4016 zotnet/Makefile zotnet/mts/Makefile zotnet/tws/Makefile \
4017 zotnet/mf/Makefile zotnet/bboards/Makefile mts/Makefile \
4018 mts/smtp/Makefile mts/sendmail/Makefile mts/mmdf/Makefile \
4019 etc/Makefile man/Makefile"}
4021 cat >> $CONFIG_STATUS <<\EOF
4022 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4023 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4025 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4026 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4027 *) ac_file_in="${ac_file}.in" ;;
4030 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4032 # Remove last slash and all that follows it. Not all systems have dirname.
4033 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4034 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4035 # The file is in a subdirectory.
4036 test ! -d "$ac_dir" && mkdir "$ac_dir"
4037 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4038 # A "../" for each directory in $ac_dir_suffix.
4039 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4041 ac_dir_suffix= ac_dots=
4044 case "$ac_given_srcdir" in
4046 if test -z "$ac_dots"; then top_srcdir=.
4047 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4048 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4050 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4051 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4054 case "$ac_given_INSTALL" in
4055 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4056 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4059 echo creating "$ac_file"
4061 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4063 *Makefile*) ac_comsub="1i\\
4064 # $configure_input" ;;
4068 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4070 s%@configure_input@%$configure_input%g
4071 s%@srcdir@%$srcdir%g
4072 s%@top_srcdir@%$top_srcdir%g
4073 s%@INSTALL@%$INSTALL%g
4074 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4078 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4079 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4081 # ac_d sets the value in "#define NAME VALUE" lines.
4082 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4083 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4086 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4087 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4088 ac_uB='\([ ]\)%\1#\2define\3'
4091 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4092 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4093 ac_eB='$%\1#\2define\3'
4097 if test "${CONFIG_HEADERS+set}" != set; then
4099 cat >> $CONFIG_STATUS <<EOF
4100 CONFIG_HEADERS="config.h"
4102 cat >> $CONFIG_STATUS <<\EOF
4104 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4105 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4107 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4108 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4109 *) ac_file_in="${ac_file}.in" ;;
4112 echo creating $ac_file
4114 rm -f conftest.frag conftest.in conftest.out
4115 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4116 cat $ac_file_inputs > conftest.in
4120 # Transform confdefs.h into a sed script conftest.vals that substitutes
4121 # the proper values into config.h.in to produce config.h. And first:
4122 # Protect against being on the right side of a sed subst in config.status.
4123 # Protect against being in an unquoted here document in config.status.
4125 cat > conftest.hdr <<\EOF
4128 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4132 sed -n -f conftest.hdr confdefs.h > conftest.vals
4135 # This sed command replaces #undef with comments. This is necessary, for
4136 # example, in the case of _POSIX_SOURCE, which is predefined and required
4137 # on some systems where configure will not decide to define it.
4138 cat >> conftest.vals <<\EOF
4139 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4142 # Break up conftest.vals because some shells have a limit on
4143 # the size of here documents, and old seds have small limits too.
4148 ac_lines=`grep -c . conftest.vals`
4149 # grep -c gives empty output for an empty file on some AIX systems.
4150 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4151 # Write a limited-size here document to conftest.frag.
4152 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4153 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4155 sed -f conftest.frag conftest.in > conftest.out
4157 mv conftest.out conftest.in
4159 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4161 mv conftest.tail conftest.vals
4165 cat >> $CONFIG_STATUS <<\EOF
4166 rm -f conftest.frag conftest.h
4167 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4168 cat conftest.in >> conftest.h
4170 if cmp -s $ac_file conftest.h 2>/dev/null; then
4171 echo "$ac_file is unchanged"
4174 # Remove last slash and all that follows it. Not all systems have dirname.
4175 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4176 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4177 # The file is in a subdirectory.
4178 test ! -d "$ac_dir" && mkdir "$ac_dir"
4181 mv conftest.h $ac_file
4186 cat >> $CONFIG_STATUS <<EOF
4189 cat >> $CONFIG_STATUS <<\EOF
4191 test -z "$CONFIG_HEADERS" || echo > stamp-h
4194 chmod +x $CONFIG_STATUS
4195 rm -fr confdefs* $ac_clean_files
4196 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4199 eval "nmhbin=${bindir}"; eval "nmhbin2=${nmhbin}"
4200 eval "nmhsysconf=${sysconfdir}"; eval "nmhsysconf2=${nmhsysconf}"
4201 eval "nmhlib=${libdir}"; eval "nmhlib2=${nmhlib}"
4202 eval "nmhman=${mandir}"
4207 nmh version : ${VERSION}
4209 compiler flags : ${CFLAGS}
4210 linker flags : ${LDFLAGS}
4211 source code location : ${srcdir}
4212 binary install path : ${nmhbin2}
4213 libary install path : ${nmhlib2}
4214 config files install path : ${nmhsysconf2}
4215 man page install path : ${nmhman}
4216 transport system : ${MTS}
4217 default editor : ${editorpath}
4218 default pager : ${pagerpath}"