]> diplodocus.org Git - nmh/blob - configure
Documented the minchars field of struct swit to the best of my understanding.
[nmh] / configure
1 #! /bin/sh
2
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.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --with-mts=MTS specify the mail transport agent"
16 ac_help="$ac_help
17 --with-editor=EDITOR specify the default editor"
18 ac_help="$ac_help
19 --with-pager=PAGER specify the default pager"
20 ac_help="$ac_help
21 --enable-nmh-mhe enable mhe support (DEFAULT)"
22 ac_help="$ac_help
23 --enable-nmh-pop enable client-side support for pop"
24 ac_help="$ac_help
25 --with-krb4=PREFIX specify location of Kerberos V4 for kpop support"
26 ac_help="$ac_help
27 --with-hesiod=PREFIX specify location of Hesiod"
28 ac_help="$ac_help
29 --enable-nmh-debug enable nmh code debugging"
30 ac_default_prefix=/usr/local/nmh
31
32 # Initialize some variables set by options.
33 # The variables have the same names as the options, with
34 # dashes changed to underlines.
35 build=NONE
36 cache_file=./config.cache
37 exec_prefix=NONE
38 host=NONE
39 no_create=
40 nonopt=NONE
41 no_recursion=
42 prefix=NONE
43 program_prefix=NONE
44 program_suffix=NONE
45 program_transform_name=s,x,x,
46 silent=
47 site=
48 srcdir=
49 target=NONE
50 verbose=
51 x_includes=NONE
52 x_libraries=NONE
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'
65
66 # Initialize some other variables.
67 subdirs=
68 MFLAGS= MAKEFLAGS=
69 SHELL=${CONFIG_SHELL-/bin/sh}
70 # Maximum number of lines to put in a shell here document.
71 ac_max_here_lines=12
72
73 ac_prev=
74 for ac_option
75 do
76
77 # If the previous option needs an argument, assign it.
78 if test -n "$ac_prev"; then
79 eval "$ac_prev=\$ac_option"
80 ac_prev=
81 continue
82 fi
83
84 case "$ac_option" in
85 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
86 *) ac_optarg= ;;
87 esac
88
89 # Accept the important Cygnus configure options, so we can diagnose typos.
90
91 case "$ac_option" in
92
93 -bindir | --bindir | --bindi | --bind | --bin | --bi)
94 ac_prev=bindir ;;
95 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
96 bindir="$ac_optarg" ;;
97
98 -build | --build | --buil | --bui | --bu)
99 ac_prev=build ;;
100 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
101 build="$ac_optarg" ;;
102
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" ;;
109
110 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
111 ac_prev=datadir ;;
112 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
113 | --da=*)
114 datadir="$ac_optarg" ;;
115
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; }
121 fi
122 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
123 eval "enable_${ac_feature}=no" ;;
124
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; }
130 fi
131 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
132 case "$ac_option" in
133 *=*) ;;
134 *) ac_optarg=yes ;;
135 esac
136 eval "enable_${ac_feature}='$ac_optarg'" ;;
137
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" ;;
146
147 -gas | --gas | --ga | --g)
148 # Obsolete; use --with-gas.
149 with_gas=yes ;;
150
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.
154 cat << EOF
155 Usage: configure [options] [host]
156 Options: [defaults in brackets after descriptions]
157 Configuration:
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
165 [$ac_default_prefix]
166 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
167 [same as prefix]
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
172 [PREFIX/share]
173 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
174 --sharedstatedir=DIR modifiable architecture-independent data in DIR
175 [PREFIX/com]
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
187 EOF
188 cat << EOF
189 Host type:
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
200 EOF
201 if test -n "$ac_help"; then
202 echo "--enable and --with options recognized:$ac_help"
203 fi
204 exit 0 ;;
205
206 -host | --host | --hos | --ho)
207 ac_prev=host ;;
208 -host=* | --host=* | --hos=* | --ho=*)
209 host="$ac_optarg" ;;
210
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" ;;
217
218 -infodir | --infodir | --infodi | --infod | --info | --inf)
219 ac_prev=infodir ;;
220 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
221 infodir="$ac_optarg" ;;
222
223 -libdir | --libdir | --libdi | --libd)
224 ac_prev=libdir ;;
225 -libdir=* | --libdir=* | --libdi=* | --libd=*)
226 libdir="$ac_optarg" ;;
227
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" ;;
234
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" ;;
243
244 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
245 ac_prev=mandir ;;
246 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
247 mandir="$ac_optarg" ;;
248
249 -nfp | --nfp | --nf)
250 # Obsolete; use --without-fp.
251 with_fp=no ;;
252
253 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
254 | --no-cr | --no-c)
255 no_create=yes ;;
256
257 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
258 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
259 no_recursion=yes ;;
260
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" ;;
269
270 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
271 ac_prev=prefix ;;
272 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
273 prefix="$ac_optarg" ;;
274
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" ;;
281
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" ;;
288
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" ;;
305
306 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
307 | -silent | --silent | --silen | --sile | --sil)
308 silent=yes ;;
309
310 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
311 ac_prev=sbindir ;;
312 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
313 | --sbi=* | --sb=*)
314 sbindir="$ac_optarg" ;;
315
316 -sharedstatedir | --sharedstatedir | --sharedstatedi \
317 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
318 | --sharedst | --shareds | --shared | --share | --shar \
319 | --sha | --sh)
320 ac_prev=sharedstatedir ;;
321 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
322 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
323 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
324 | --sha=* | --sh=*)
325 sharedstatedir="$ac_optarg" ;;
326
327 -site | --site | --sit)
328 ac_prev=site ;;
329 -site=* | --site=* | --sit=*)
330 site="$ac_optarg" ;;
331
332 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
333 ac_prev=srcdir ;;
334 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
335 srcdir="$ac_optarg" ;;
336
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" ;;
343
344 -target | --target | --targe | --targ | --tar | --ta | --t)
345 ac_prev=target ;;
346 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
347 target="$ac_optarg" ;;
348
349 -v | -verbose | --verbose | --verbos | --verbo | --verb)
350 verbose=yes ;;
351
352 -version | --version | --versio | --versi | --vers)
353 echo "configure generated by autoconf version 2.13"
354 exit 0 ;;
355
356 -with-* | --with-*)
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; }
361 fi
362 ac_package=`echo $ac_package| sed 's/-/_/g'`
363 case "$ac_option" in
364 *=*) ;;
365 *) ac_optarg=yes ;;
366 esac
367 eval "with_${ac_package}='$ac_optarg'" ;;
368
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; }
374 fi
375 ac_package=`echo $ac_package| sed 's/-/_/g'`
376 eval "with_${ac_package}=no" ;;
377
378 --x)
379 # Obsolete; use --with-x.
380 with_x=yes ;;
381
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" ;;
388
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" ;;
395
396 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
397 ;;
398
399 *)
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
402 fi
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; }
405 fi
406 nonopt="$ac_option"
407 ;;
408
409 esac
410 done
411
412 if test -n "$ac_prev"; then
413 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
414 fi
415
416 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
417
418 # File descriptor usage:
419 # 0 standard input
420 # 1 file creation
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
427 exec 6>/dev/null
428 else
429 exec 6>&1
430 fi
431 exec 5>./config.log
432
433 echo "\
434 This file contains any messages produced by compilers while
435 running configure, to aid debugging if configure makes a mistake.
436 " 1>&5
437
438 # Strip out --no-create and --no-recursion so they do not pile up.
439 # Also quote any args containing shell metacharacters.
440 ac_configure_args=
441 for ac_arg
442 do
443 case "$ac_arg" in
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" ;;
451 esac
452 done
453
454 # NLS nuisances.
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
463
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.
467 echo > confdefs.h
468
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
472
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.
477 ac_prog=$0
478 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
479 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
480 srcdir=$ac_confdir
481 if test ! -r $srcdir/$ac_unique_file; then
482 srcdir=..
483 fi
484 else
485 ac_srcdir_defaulted=no
486 fi
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; }
490 else
491 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
492 fi
493 fi
494 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
495
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"
500 else
501 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
502 fi
503 fi
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"
507 . "$ac_site_file"
508 fi
509 done
510
511 if test -r "$cache_file"; then
512 echo "loading cache $cache_file"
513 . $cache_file
514 else
515 echo "creating cache $cache_file"
516 > $cache_file
517 fi
518
519 ac_ext=c
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
525
526 ac_exeext=
527 ac_objext=o
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
531 ac_n= ac_c='
532 ' ac_t=' '
533 else
534 ac_n=-n ac_c= ac_t=
535 fi
536 else
537 ac_n= ac_c='\c' ac_t=
538 fi
539
540
541
542
543 ac_aux_dir=
544 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
545 if test -f $ac_dir/install-sh; then
546 ac_aux_dir=$ac_dir
547 ac_install_sh="$ac_aux_dir/install-sh -c"
548 break
549 elif test -f $ac_dir/install.sh; then
550 ac_aux_dir=$ac_dir
551 ac_install_sh="$ac_aux_dir/install.sh -c"
552 break
553 fi
554 done
555 if test -z "$ac_aux_dir"; then
556 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
557 fi
558 ac_config_guess=$ac_aux_dir/config.guess
559 ac_config_sub=$ac_aux_dir/config.sub
560 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
561
562
563 # Do some error checking and defaulting for the host and target type.
564 # The inputs are:
565 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
566 #
567 # The rules are:
568 # 1. You are not allowed to specify --host, --target, and nonopt at the
569 # same time.
570 # 2. Host defaults to nonopt.
571 # 3. If nonopt is not specified, then host defaults to the current host,
572 # as determined by config.guess.
573 # 4. Target and build default to nonopt.
574 # 5. If nonopt is not specified, then target and build default to host.
575
576 # The aliases save the names the user supplied, while $host etc.
577 # will get canonicalized.
578 case $host---$target---$nonopt in
579 NONE---*---* | *---NONE---* | *---*---NONE) ;;
580 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
581 esac
582
583
584 # Make sure we can run config.sub.
585 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
586 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
587 fi
588
589 echo $ac_n "checking host system type""... $ac_c" 1>&6
590 echo "configure:591: checking host system type" >&5
591
592 host_alias=$host
593 case "$host_alias" in
594 NONE)
595 case $nonopt in
596 NONE)
597 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
598 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
599 fi ;;
600 *) host_alias=$nonopt ;;
601 esac ;;
602 esac
603
604 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
605 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
606 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
607 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
608 echo "$ac_t""$host" 1>&6
609
610 echo $ac_n "checking target system type""... $ac_c" 1>&6
611 echo "configure:612: checking target system type" >&5
612
613 target_alias=$target
614 case "$target_alias" in
615 NONE)
616 case $nonopt in
617 NONE) target_alias=$host_alias ;;
618 *) target_alias=$nonopt ;;
619 esac ;;
620 esac
621
622 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
623 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
624 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
625 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
626 echo "$ac_t""$target" 1>&6
627
628 echo $ac_n "checking build system type""... $ac_c" 1>&6
629 echo "configure:630: checking build system type" >&5
630
631 build_alias=$build
632 case "$build_alias" in
633 NONE)
634 case $nonopt in
635 NONE) build_alias=$host_alias ;;
636 *) build_alias=$nonopt ;;
637 esac ;;
638 esac
639
640 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
641 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
642 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
643 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
644 echo "$ac_t""$build" 1>&6
645
646 test "$host_alias" != "$target_alias" &&
647 test "$program_prefix$program_suffix$program_transform_name" = \
648 NONENONEs,x,x, &&
649 program_prefix=${target_alias}-
650
651
652
653
654
655
656 VERSION=`sed -e 's/nmh-//' ${srcdir}/VERSION`
657 echo "configuring for nmh-$VERSION"
658
659 # Check whether --with-mts or --without-mts was given.
660 if test "${with_mts+set}" = set; then
661 withval="$with_mts"
662 :
663 fi
664
665
666 if test x$with_mts = xsmtp; then
667 MTS="smtp"
668 MTSLIB="mts/smtp/libsmtp.a"
669 cat >> confdefs.h <<\EOF
670 #define SMTPMTS 1
671 EOF
672 elif test x$with_mts = xsendmail; then
673 MTS="sendmail"
674 MTSLIB="mts/sendmail/libsend.a"
675 cat >> confdefs.h <<\EOF
676 #define SENDMTS 1
677 EOF
678 else
679 MTS="smtp"
680 MTSLIB="mts/smtp/libsmtp.a"
681 cat >> confdefs.h <<\EOF
682 #define SMTPMTS 1
683 EOF
684 fi
685
686
687
688
689 # Check whether --with-editor or --without-editor was given.
690 if test "${with_editor+set}" = set; then
691 withval="$with_editor"
692 :
693 fi
694
695
696 if test -n "$with_editor"; then
697 editorpath="$with_editor"
698 fi
699
700 # Check whether --with-pager or --without-pager was given.
701 if test "${with_pager+set}" = set; then
702 withval="$with_pager"
703 :
704 fi
705
706
707 if test -n "$with_pager"; then
708 pagerpath="$with_pager"
709 fi
710
711 # Check whether --enable-nmh-mhe or --disable-nmh-mhe was given.
712 if test "${enable_nmh_mhe+set}" = set; then
713 enableval="$enable_nmh_mhe"
714 :
715 fi
716
717
718 if test x$enable_nmh_mhe != xno; then
719 cat >> confdefs.h <<\EOF
720 #define MHE 1
721 EOF
722 fi
723
724 # Check whether --enable-nmh-pop or --disable-nmh-pop was given.
725 if test "${enable_nmh_pop+set}" = set; then
726 enableval="$enable_nmh_pop"
727 :
728 fi
729
730 if test x$enable_nmh_pop = xyes; then
731 cat >> confdefs.h <<\EOF
732 #define POP 1
733 EOF
734 POPLIB=popsbr.o
735 POPSED='/^%nmhbeginpop%/d;/^%nmhendpop%/d'
736 else
737 POPSED='/^%nmhbeginpop%/,/^%nmhendpop%/d'
738 fi
739
740 # Check whether --with-krb4 or --without-krb4 was given.
741 if test "${with_krb4+set}" = set; then
742 withval="$with_krb4"
743 :
744 fi
745
746 if test x$with_krb4 != x -a x$with_krb4 != xno; then
747 cat >> confdefs.h <<\EOF
748 #define KPOP 1
749 EOF
750 cat >> confdefs.h <<\EOF
751 #define KPOP_PRINCIPAL "pop"
752 EOF
753 fi
754
755 # Check whether --with-hesiod or --without-hesiod was given.
756 if test "${with_hesiod+set}" = set; then
757 withval="$with_hesiod"
758 :
759 fi
760
761 if test x$with_hesiod != x -a x$with_hesiod != xno; then
762 cat >> confdefs.h <<\EOF
763 #define HESIOD 1
764 EOF
765 fi
766
767 # Check whether --enable-nmh-debug or --disable-nmh-debug was given.
768 if test "${enable_nmh_debug+set}" = set; then
769 enableval="$enable_nmh_debug"
770 :
771 fi
772
773
774
775
776 test -z "$CFLAGS" && CFLAGS= auto_cflags=1
777 if test x$enable_nmh_debug = xyes; then
778 test -z "$LDFLAGS" && LDFLAGS=-g
779 fi
780
781 # Extract the first word of "gcc", so it can be a program name with args.
782 set dummy gcc; ac_word=$2
783 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
784 echo "configure:785: checking for $ac_word" >&5
785 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
786 echo $ac_n "(cached) $ac_c" 1>&6
787 else
788 if test -n "$CC"; then
789 ac_cv_prog_CC="$CC" # Let the user override the test.
790 else
791 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
792 ac_dummy="$PATH"
793 for ac_dir in $ac_dummy; do
794 test -z "$ac_dir" && ac_dir=.
795 if test -f $ac_dir/$ac_word; then
796 ac_cv_prog_CC="gcc"
797 break
798 fi
799 done
800 IFS="$ac_save_ifs"
801 fi
802 fi
803 CC="$ac_cv_prog_CC"
804 if test -n "$CC"; then
805 echo "$ac_t""$CC" 1>&6
806 else
807 echo "$ac_t""no" 1>&6
808 fi
809
810 if test -z "$CC"; then
811 # Extract the first word of "cc", so it can be a program name with args.
812 set dummy cc; ac_word=$2
813 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
814 echo "configure:815: checking for $ac_word" >&5
815 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
816 echo $ac_n "(cached) $ac_c" 1>&6
817 else
818 if test -n "$CC"; then
819 ac_cv_prog_CC="$CC" # Let the user override the test.
820 else
821 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
822 ac_prog_rejected=no
823 ac_dummy="$PATH"
824 for ac_dir in $ac_dummy; do
825 test -z "$ac_dir" && ac_dir=.
826 if test -f $ac_dir/$ac_word; then
827 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
828 ac_prog_rejected=yes
829 continue
830 fi
831 ac_cv_prog_CC="cc"
832 break
833 fi
834 done
835 IFS="$ac_save_ifs"
836 if test $ac_prog_rejected = yes; then
837 # We found a bogon in the path, so make sure we never use it.
838 set dummy $ac_cv_prog_CC
839 shift
840 if test $# -gt 0; then
841 # We chose a different compiler from the bogus one.
842 # However, it has the same basename, so the bogon will be chosen
843 # first if we set CC to just the basename; use the full file name.
844 shift
845 set dummy "$ac_dir/$ac_word" "$@"
846 shift
847 ac_cv_prog_CC="$@"
848 fi
849 fi
850 fi
851 fi
852 CC="$ac_cv_prog_CC"
853 if test -n "$CC"; then
854 echo "$ac_t""$CC" 1>&6
855 else
856 echo "$ac_t""no" 1>&6
857 fi
858
859 if test -z "$CC"; then
860 case "`uname -s`" in
861 *win32* | *WIN32*)
862 # Extract the first word of "cl", so it can be a program name with args.
863 set dummy cl; ac_word=$2
864 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
865 echo "configure:866: checking for $ac_word" >&5
866 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
867 echo $ac_n "(cached) $ac_c" 1>&6
868 else
869 if test -n "$CC"; then
870 ac_cv_prog_CC="$CC" # Let the user override the test.
871 else
872 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
873 ac_dummy="$PATH"
874 for ac_dir in $ac_dummy; do
875 test -z "$ac_dir" && ac_dir=.
876 if test -f $ac_dir/$ac_word; then
877 ac_cv_prog_CC="cl"
878 break
879 fi
880 done
881 IFS="$ac_save_ifs"
882 fi
883 fi
884 CC="$ac_cv_prog_CC"
885 if test -n "$CC"; then
886 echo "$ac_t""$CC" 1>&6
887 else
888 echo "$ac_t""no" 1>&6
889 fi
890 ;;
891 esac
892 fi
893 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
894 fi
895
896 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
897 echo "configure:898: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
898
899 ac_ext=c
900 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
901 ac_cpp='$CPP $CPPFLAGS'
902 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
903 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
904 cross_compiling=$ac_cv_prog_cc_cross
905
906 cat > conftest.$ac_ext << EOF
907
908 #line 909 "configure"
909 #include "confdefs.h"
910
911 main(){return(0);}
912 EOF
913 if { (eval echo configure:914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
914 ac_cv_prog_cc_works=yes
915 # If we can't run a trivial program, we are probably using a cross compiler.
916 if (./conftest; exit) 2>/dev/null; then
917 ac_cv_prog_cc_cross=no
918 else
919 ac_cv_prog_cc_cross=yes
920 fi
921 else
922 echo "configure: failed program was:" >&5
923 cat conftest.$ac_ext >&5
924 ac_cv_prog_cc_works=no
925 fi
926 rm -fr conftest*
927 ac_ext=c
928 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
929 ac_cpp='$CPP $CPPFLAGS'
930 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
931 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
932 cross_compiling=$ac_cv_prog_cc_cross
933
934 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
935 if test $ac_cv_prog_cc_works = no; then
936 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
937 fi
938 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
939 echo "configure:940: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
940 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
941 cross_compiling=$ac_cv_prog_cc_cross
942
943 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
944 echo "configure:945: checking whether we are using GNU C" >&5
945 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
946 echo $ac_n "(cached) $ac_c" 1>&6
947 else
948 cat > conftest.c <<EOF
949 #ifdef __GNUC__
950 yes;
951 #endif
952 EOF
953 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
954 ac_cv_prog_gcc=yes
955 else
956 ac_cv_prog_gcc=no
957 fi
958 fi
959
960 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
961
962 if test $ac_cv_prog_gcc = yes; then
963 GCC=yes
964 else
965 GCC=
966 fi
967
968 ac_test_CFLAGS="${CFLAGS+set}"
969 ac_save_CFLAGS="$CFLAGS"
970 CFLAGS=
971 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
972 echo "configure:973: checking whether ${CC-cc} accepts -g" >&5
973 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
974 echo $ac_n "(cached) $ac_c" 1>&6
975 else
976 echo 'void f(){}' > conftest.c
977 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
978 ac_cv_prog_cc_g=yes
979 else
980 ac_cv_prog_cc_g=no
981 fi
982 rm -f conftest*
983
984 fi
985
986 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
987 if test "$ac_test_CFLAGS" = set; then
988 CFLAGS="$ac_save_CFLAGS"
989 elif test $ac_cv_prog_cc_g = yes; then
990 if test "$GCC" = yes; then
991 CFLAGS="-g -O2"
992 else
993 CFLAGS="-g"
994 fi
995 else
996 if test "$GCC" = yes; then
997 CFLAGS="-O2"
998 else
999 CFLAGS=
1000 fi
1001 fi
1002
1003
1004 if test -n "$auto_cflags"; then
1005 if test x$enable_nmh_debug = xyes; then
1006 if test -n "$GCC"; then
1007 test -z "$CFLAGS" && CFLAGS="-Wall -g" || CFLAGS="$CFLAGS -Wall -g"
1008 else
1009 test -z "$CFLAGS" && CFLAGS=-g || CFLAGS="$CFLAGS -g"
1010 fi
1011 else
1012 test -z "$LDFLAGS" && LDFLAGS=-s
1013 if test -n "$GCC"; then
1014 test -z "$CFLAGS" && CFLAGS=-O2 || CFLAGS="$CFLAGS -O2"
1015 else
1016 test -z "$CFLAGS" && CFLAGS=-O || CFLAGS="$CFLAGS -O"
1017 fi
1018 fi
1019 fi
1020
1021 echo $ac_n "checking for working const""... $ac_c" 1>&6
1022 echo "configure:1023: checking for working const" >&5
1023 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1024 echo $ac_n "(cached) $ac_c" 1>&6
1025 else
1026 cat > conftest.$ac_ext <<EOF
1027 #line 1028 "configure"
1028 #include "confdefs.h"
1029
1030 int main() {
1031
1032 /* Ultrix mips cc rejects this. */
1033 typedef int charset[2]; const charset x;
1034 /* SunOS 4.1.1 cc rejects this. */
1035 char const *const *ccp;
1036 char **p;
1037 /* NEC SVR4.0.2 mips cc rejects this. */
1038 struct point {int x, y;};
1039 static struct point const zero = {0,0};
1040 /* AIX XL C 1.02.0.0 rejects this.
1041 It does not let you subtract one const X* pointer from another in an arm
1042 of an if-expression whose if-part is not a constant expression */
1043 const char *g = "string";
1044 ccp = &g + (g ? g-g : 0);
1045 /* HPUX 7.0 cc rejects these. */
1046 ++ccp;
1047 p = (char**) ccp;
1048 ccp = (char const *const *) p;
1049 { /* SCO 3.2v4 cc rejects this. */
1050 char *t;
1051 char const *s = 0 ? (char *) 0 : (char const *) 0;
1052
1053 *t++ = 0;
1054 }
1055 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1056 int x[] = {25, 17};
1057 const int *foo = &x[0];
1058 ++foo;
1059 }
1060 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1061 typedef const int *iptr;
1062 iptr p = 0;
1063 ++p;
1064 }
1065 { /* AIX XL C 1.02.0.0 rejects this saying
1066 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1067 struct s { int j; const int *ap[3]; };
1068 struct s *b; b->j = 5;
1069 }
1070 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1071 const int foo = 10;
1072 }
1073
1074 ; return 0; }
1075 EOF
1076 if { (eval echo configure:1077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1077 rm -rf conftest*
1078 ac_cv_c_const=yes
1079 else
1080 echo "configure: failed program was:" >&5
1081 cat conftest.$ac_ext >&5
1082 rm -rf conftest*
1083 ac_cv_c_const=no
1084 fi
1085 rm -f conftest*
1086 fi
1087
1088 echo "$ac_t""$ac_cv_c_const" 1>&6
1089 if test $ac_cv_c_const = no; then
1090 cat >> confdefs.h <<\EOF
1091 #define const
1092 EOF
1093
1094 fi
1095
1096 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1097 echo "configure:1098: checking whether ${MAKE-make} sets \${MAKE}" >&5
1098 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1099 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1100 echo $ac_n "(cached) $ac_c" 1>&6
1101 else
1102 cat > conftestmake <<\EOF
1103 all:
1104 @echo 'ac_maketemp="${MAKE}"'
1105 EOF
1106 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1107 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1108 if test -n "$ac_maketemp"; then
1109 eval ac_cv_prog_make_${ac_make}_set=yes
1110 else
1111 eval ac_cv_prog_make_${ac_make}_set=no
1112 fi
1113 rm -f conftestmake
1114 fi
1115 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1116 echo "$ac_t""yes" 1>&6
1117 SET_MAKE=
1118 else
1119 echo "$ac_t""no" 1>&6
1120 SET_MAKE="MAKE=${MAKE-make}"
1121 fi
1122 # Find a good install program. We prefer a C program (faster),
1123 # so one script is as good as another. But avoid the broken or
1124 # incompatible versions:
1125 # SysV /etc/install, /usr/sbin/install
1126 # SunOS /usr/etc/install
1127 # IRIX /sbin/install
1128 # AIX /bin/install
1129 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1130 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1131 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1132 # ./install, which can be erroneously created by make from ./install.sh.
1133 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1134 echo "configure:1135: checking for a BSD compatible install" >&5
1135 if test -z "$INSTALL"; then
1136 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1137 echo $ac_n "(cached) $ac_c" 1>&6
1138 else
1139 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1140 for ac_dir in $PATH; do
1141 # Account for people who put trailing slashes in PATH elements.
1142 case "$ac_dir/" in
1143 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1144 *)
1145 # OSF1 and SCO ODT 3.0 have their own names for install.
1146 # Don't use installbsd from OSF since it installs stuff as root
1147 # by default.
1148 for ac_prog in ginstall scoinst install; do
1149 if test -f $ac_dir/$ac_prog; then
1150 if test $ac_prog = install &&
1151 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1152 # AIX install. It has an incompatible calling convention.
1153 :
1154 else
1155 ac_cv_path_install="$ac_dir/$ac_prog -c"
1156 break 2
1157 fi
1158 fi
1159 done
1160 ;;
1161 esac
1162 done
1163 IFS="$ac_save_IFS"
1164
1165 fi
1166 if test "${ac_cv_path_install+set}" = set; then
1167 INSTALL="$ac_cv_path_install"
1168 else
1169 # As a last resort, use the slow shell script. We don't cache a
1170 # path for INSTALL within a source directory, because that will
1171 # break other packages using the cache if that directory is
1172 # removed, or if the path is relative.
1173 INSTALL="$ac_install_sh"
1174 fi
1175 fi
1176 echo "$ac_t""$INSTALL" 1>&6
1177
1178 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1179 # It thinks the first close brace ends the variable substitution.
1180 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1181
1182 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1183
1184 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1185 # Extract the first word of "ranlib", so it can be a program name with args.
1186 set dummy ranlib; ac_word=$2
1187 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1188 echo "configure:1189: checking for $ac_word" >&5
1189 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1190 echo $ac_n "(cached) $ac_c" 1>&6
1191 else
1192 if test -n "$RANLIB"; then
1193 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1194 else
1195 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1196 ac_dummy="$PATH"
1197 for ac_dir in $ac_dummy; do
1198 test -z "$ac_dir" && ac_dir=.
1199 if test -f $ac_dir/$ac_word; then
1200 ac_cv_prog_RANLIB="ranlib"
1201 break
1202 fi
1203 done
1204 IFS="$ac_save_ifs"
1205 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1206 fi
1207 fi
1208 RANLIB="$ac_cv_prog_RANLIB"
1209 if test -n "$RANLIB"; then
1210 echo "$ac_t""$RANLIB" 1>&6
1211 else
1212 echo "$ac_t""no" 1>&6
1213 fi
1214 for ac_prog in mawk gawk nawk awk
1215 do
1216 # Extract the first word of "$ac_prog", so it can be a program name with args.
1217 set dummy $ac_prog; ac_word=$2
1218 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1219 echo "configure:1220: checking for $ac_word" >&5
1220 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1221 echo $ac_n "(cached) $ac_c" 1>&6
1222 else
1223 if test -n "$AWK"; then
1224 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1225 else
1226 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1227 ac_dummy="$PATH"
1228 for ac_dir in $ac_dummy; do
1229 test -z "$ac_dir" && ac_dir=.
1230 if test -f $ac_dir/$ac_word; then
1231 ac_cv_prog_AWK="$ac_prog"
1232 break
1233 fi
1234 done
1235 IFS="$ac_save_ifs"
1236 fi
1237 fi
1238 AWK="$ac_cv_prog_AWK"
1239 if test -n "$AWK"; then
1240 echo "$ac_t""$AWK" 1>&6
1241 else
1242 echo "$ac_t""no" 1>&6
1243 fi
1244
1245 test -n "$AWK" && break
1246 done
1247 # Extract the first word of "flex", so it can be a program name with args.
1248 set dummy flex; ac_word=$2
1249 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1250 echo "configure:1251: checking for $ac_word" >&5
1251 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1252 echo $ac_n "(cached) $ac_c" 1>&6
1253 else
1254 if test -n "$LEX"; then
1255 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1256 else
1257 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1258 ac_dummy="$PATH"
1259 for ac_dir in $ac_dummy; do
1260 test -z "$ac_dir" && ac_dir=.
1261 if test -f $ac_dir/$ac_word; then
1262 ac_cv_prog_LEX="flex"
1263 break
1264 fi
1265 done
1266 IFS="$ac_save_ifs"
1267 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1268 fi
1269 fi
1270 LEX="$ac_cv_prog_LEX"
1271 if test -n "$LEX"; then
1272 echo "$ac_t""$LEX" 1>&6
1273 else
1274 echo "$ac_t""no" 1>&6
1275 fi
1276
1277 if test -z "$LEXLIB"
1278 then
1279 case "$LEX" in
1280 flex*) ac_lib=fl ;;
1281 *) ac_lib=l ;;
1282 esac
1283 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1284 echo "configure:1285: checking for yywrap in -l$ac_lib" >&5
1285 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1286 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1287 echo $ac_n "(cached) $ac_c" 1>&6
1288 else
1289 ac_save_LIBS="$LIBS"
1290 LIBS="-l$ac_lib $LIBS"
1291 cat > conftest.$ac_ext <<EOF
1292 #line 1293 "configure"
1293 #include "confdefs.h"
1294 /* Override any gcc2 internal prototype to avoid an error. */
1295 /* We use char because int might match the return type of a gcc2
1296 builtin and then its argument prototype would still apply. */
1297 char yywrap();
1298
1299 int main() {
1300 yywrap()
1301 ; return 0; }
1302 EOF
1303 if { (eval echo configure:1304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1304 rm -rf conftest*
1305 eval "ac_cv_lib_$ac_lib_var=yes"
1306 else
1307 echo "configure: failed program was:" >&5
1308 cat conftest.$ac_ext >&5
1309 rm -rf conftest*
1310 eval "ac_cv_lib_$ac_lib_var=no"
1311 fi
1312 rm -f conftest*
1313 LIBS="$ac_save_LIBS"
1314
1315 fi
1316 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1317 echo "$ac_t""yes" 1>&6
1318 LEXLIB="-l$ac_lib"
1319 else
1320 echo "$ac_t""no" 1>&6
1321 fi
1322
1323 fi
1324
1325 pathtmp=/usr/bin:/bin:/usr/local/bin:/usr/xpg4/bin:/usr/ucb
1326 # Extract the first word of "cut", so it can be a program name with args.
1327 set dummy cut; ac_word=$2
1328 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1329 echo "configure:1330: checking for $ac_word" >&5
1330 if eval "test \"`echo '$''{'ac_cv_path_cutpath'+set}'`\" = set"; then
1331 echo $ac_n "(cached) $ac_c" 1>&6
1332 else
1333 case "$cutpath" in
1334 /*)
1335 ac_cv_path_cutpath="$cutpath" # Let the user override the test with a path.
1336 ;;
1337 ?:/*)
1338 ac_cv_path_cutpath="$cutpath" # Let the user override the test with a dos path.
1339 ;;
1340 *)
1341 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1342 ac_dummy="$pathtmp"
1343 for ac_dir in $ac_dummy; do
1344 test -z "$ac_dir" && ac_dir=.
1345 if test -f $ac_dir/$ac_word; then
1346 ac_cv_path_cutpath="$ac_dir/$ac_word"
1347 break
1348 fi
1349 done
1350 IFS="$ac_save_ifs"
1351 test -z "$ac_cv_path_cutpath" && ac_cv_path_cutpath="no"
1352 ;;
1353 esac
1354 fi
1355 cutpath="$ac_cv_path_cutpath"
1356 if test -n "$cutpath"; then
1357 echo "$ac_t""$cutpath" 1>&6
1358 else
1359 echo "$ac_t""no" 1>&6
1360 fi
1361
1362
1363
1364 # Extract the first word of "libtool", so it can be a program name with args.
1365 set dummy libtool; ac_word=$2
1366 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1367 echo "configure:1368: checking for $ac_word" >&5
1368 if eval "test \"`echo '$''{'ac_cv_prog_LIBTOOL'+set}'`\" = set"; then
1369 echo $ac_n "(cached) $ac_c" 1>&6
1370 else
1371 if test -n "$LIBTOOL"; then
1372 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
1373 else
1374 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1375 ac_dummy="$pathtmp"
1376 for ac_dir in $ac_dummy; do
1377 test -z "$ac_dir" && ac_dir=.
1378 if test -f $ac_dir/$ac_word; then
1379 ac_cv_prog_LIBTOOL="libtool"
1380 break
1381 fi
1382 done
1383 IFS="$ac_save_ifs"
1384 fi
1385 fi
1386 LIBTOOL="$ac_cv_prog_LIBTOOL"
1387 if test -n "$LIBTOOL"; then
1388 echo "$ac_t""$LIBTOOL" 1>&6
1389 else
1390 echo "$ac_t""no" 1>&6
1391 fi
1392
1393
1394 tmptest=`$LIBTOOL --version 2>&1 | grep GNU`
1395 if test x"$tmptest" != x ; then
1396 GNU_LIBTOOL=1
1397 fi
1398
1399
1400 # Extract the first word of "lorder", so it can be a program name with args.
1401 set dummy lorder; ac_word=$2
1402 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1403 echo "configure:1404: checking for $ac_word" >&5
1404 if eval "test \"`echo '$''{'ac_cv_prog_LORDER'+set}'`\" = set"; then
1405 echo $ac_n "(cached) $ac_c" 1>&6
1406 else
1407 if test -n "$LORDER"; then
1408 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
1409 else
1410 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1411 ac_dummy="$PATH"
1412 for ac_dir in $ac_dummy; do
1413 test -z "$ac_dir" && ac_dir=.
1414 if test -f $ac_dir/$ac_word; then
1415 ac_cv_prog_LORDER="lorder"
1416 break
1417 fi
1418 done
1419 IFS="$ac_save_ifs"
1420 test -z "$ac_cv_prog_LORDER" && ac_cv_prog_LORDER="no"
1421 fi
1422 fi
1423 LORDER="$ac_cv_prog_LORDER"
1424 if test -n "$LORDER"; then
1425 echo "$ac_t""$LORDER" 1>&6
1426 else
1427 echo "$ac_t""no" 1>&6
1428 fi
1429 # Extract the first word of "tsort", so it can be a program name with args.
1430 set dummy tsort; ac_word=$2
1431 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1432 echo "configure:1433: checking for $ac_word" >&5
1433 if eval "test \"`echo '$''{'ac_cv_prog_TSORT'+set}'`\" = set"; then
1434 echo $ac_n "(cached) $ac_c" 1>&6
1435 else
1436 if test -n "$TSORT"; then
1437 ac_cv_prog_TSORT="$TSORT" # Let the user override the test.
1438 else
1439 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1440 ac_dummy="$PATH"
1441 for ac_dir in $ac_dummy; do
1442 test -z "$ac_dir" && ac_dir=.
1443 if test -f $ac_dir/$ac_word; then
1444 ac_cv_prog_TSORT="tsort"
1445 break
1446 fi
1447 done
1448 IFS="$ac_save_ifs"
1449 test -z "$ac_cv_prog_TSORT" && ac_cv_prog_TSORT="no"
1450 fi
1451 fi
1452 TSORT="$ac_cv_prog_TSORT"
1453 if test -n "$TSORT"; then
1454 echo "$ac_t""$TSORT" 1>&6
1455 else
1456 echo "$ac_t""no" 1>&6
1457 fi
1458
1459 if test x$ac_cv_prog_LORDER != xlorder -o x$ac_cv_prog_TSORT != xtsort; then
1460 LORDER=echo
1461 TSORT=cat
1462 fi
1463
1464 pathtmp=/usr/bin:/bin:/usr/local/bin:/usr/xpg4/bin:/usr/ucb
1465 # Extract the first word of "ls", so it can be a program name with args.
1466 set dummy ls; ac_word=$2
1467 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1468 echo "configure:1469: checking for $ac_word" >&5
1469 if eval "test \"`echo '$''{'ac_cv_path_lspath'+set}'`\" = set"; then
1470 echo $ac_n "(cached) $ac_c" 1>&6
1471 else
1472 case "$lspath" in
1473 /*)
1474 ac_cv_path_lspath="$lspath" # Let the user override the test with a path.
1475 ;;
1476 ?:/*)
1477 ac_cv_path_lspath="$lspath" # Let the user override the test with a dos path.
1478 ;;
1479 *)
1480 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1481 ac_dummy="$pathtmp"
1482 for ac_dir in $ac_dummy; do
1483 test -z "$ac_dir" && ac_dir=.
1484 if test -f $ac_dir/$ac_word; then
1485 ac_cv_path_lspath="$ac_dir/$ac_word"
1486 break
1487 fi
1488 done
1489 IFS="$ac_save_ifs"
1490 test -z "$ac_cv_path_lspath" && ac_cv_path_lspath="no"
1491 ;;
1492 esac
1493 fi
1494 lspath="$ac_cv_path_lspath"
1495 if test -n "$lspath"; then
1496 echo "$ac_t""$lspath" 1>&6
1497 else
1498 echo "$ac_t""no" 1>&6
1499 fi
1500
1501
1502 if test "$lspath" != "no"; then
1503 echo $ac_n "checking how to get ls to show us the group ownership of a file""... $ac_c" 1>&6
1504 echo "configure:1505: checking how to get ls to show us the group ownership of a file" >&5
1505 if eval "test \"`echo '$''{'nmh_cv_ls_grpopt'+set}'`\" = set"; then
1506 echo $ac_n "(cached) $ac_c" 1>&6
1507 else
1508 if test x"`$lspath -dl / | $AWK '{print $9}'`" = x"/"; then
1509 nmh_cv_ls_grpopt="-l"
1510 else
1511 nmh_cv_ls_grpopt="-lg"
1512 fi
1513 fi
1514
1515 echo "$ac_t""$nmh_cv_ls_grpopt" 1>&6
1516 fi
1517
1518 pathtmp=/usr/bin:/bin:/usr/ucb:/usr/local/bin
1519 # Extract the first word of "more", so it can be a program name with args.
1520 set dummy more; ac_word=$2
1521 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1522 echo "configure:1523: checking for $ac_word" >&5
1523 if eval "test \"`echo '$''{'ac_cv_path_morepath'+set}'`\" = set"; then
1524 echo $ac_n "(cached) $ac_c" 1>&6
1525 else
1526 case "$morepath" in
1527 /*)
1528 ac_cv_path_morepath="$morepath" # Let the user override the test with a path.
1529 ;;
1530 ?:/*)
1531 ac_cv_path_morepath="$morepath" # Let the user override the test with a dos path.
1532 ;;
1533 *)
1534 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1535 ac_dummy="$pathtmp"
1536 for ac_dir in $ac_dummy; do
1537 test -z "$ac_dir" && ac_dir=.
1538 if test -f $ac_dir/$ac_word; then
1539 ac_cv_path_morepath="$ac_dir/$ac_word"
1540 break
1541 fi
1542 done
1543 IFS="$ac_save_ifs"
1544 test -z "$ac_cv_path_morepath" && ac_cv_path_morepath="no"
1545 ;;
1546 esac
1547 fi
1548 morepath="$ac_cv_path_morepath"
1549 if test -n "$morepath"; then
1550 echo "$ac_t""$morepath" 1>&6
1551 else
1552 echo "$ac_t""no" 1>&6
1553 fi
1554
1555
1556 if test -z "$pagerpath"; then
1557 pagerpath="$morepath"
1558 fi
1559
1560 pathtmp=/usr/lib:/usr/sbin:/usr/etc:/usr/ucblib:/usr/bin:/bin
1561 # Extract the first word of "sendmail", so it can be a program name with args.
1562 set dummy sendmail; ac_word=$2
1563 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1564 echo "configure:1565: checking for $ac_word" >&5
1565 if eval "test \"`echo '$''{'ac_cv_path_sendmailpath'+set}'`\" = set"; then
1566 echo $ac_n "(cached) $ac_c" 1>&6
1567 else
1568 case "$sendmailpath" in
1569 /*)
1570 ac_cv_path_sendmailpath="$sendmailpath" # Let the user override the test with a path.
1571 ;;
1572 ?:/*)
1573 ac_cv_path_sendmailpath="$sendmailpath" # Let the user override the test with a dos path.
1574 ;;
1575 *)
1576 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1577 ac_dummy="$pathtmp"
1578 for ac_dir in $ac_dummy; do
1579 test -z "$ac_dir" && ac_dir=.
1580 if test -f $ac_dir/$ac_word; then
1581 ac_cv_path_sendmailpath="$ac_dir/$ac_word"
1582 break
1583 fi
1584 done
1585 IFS="$ac_save_ifs"
1586 test -z "$ac_cv_path_sendmailpath" && ac_cv_path_sendmailpath="no"
1587 ;;
1588 esac
1589 fi
1590 sendmailpath="$ac_cv_path_sendmailpath"
1591 if test -n "$sendmailpath"; then
1592 echo "$ac_t""$sendmailpath" 1>&6
1593 else
1594 echo "$ac_t""no" 1>&6
1595 fi
1596
1597
1598 pathtmp=/usr/bin:/bin:/usr/ucb:/usr/local/bin
1599 # Extract the first word of "vi", so it can be a program name with args.
1600 set dummy vi; ac_word=$2
1601 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1602 echo "configure:1603: checking for $ac_word" >&5
1603 if eval "test \"`echo '$''{'ac_cv_path_vipath'+set}'`\" = set"; then
1604 echo $ac_n "(cached) $ac_c" 1>&6
1605 else
1606 case "$vipath" in
1607 /*)
1608 ac_cv_path_vipath="$vipath" # Let the user override the test with a path.
1609 ;;
1610 ?:/*)
1611 ac_cv_path_vipath="$vipath" # Let the user override the test with a dos path.
1612 ;;
1613 *)
1614 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1615 ac_dummy="$pathtmp"
1616 for ac_dir in $ac_dummy; do
1617 test -z "$ac_dir" && ac_dir=.
1618 if test -f $ac_dir/$ac_word; then
1619 ac_cv_path_vipath="$ac_dir/$ac_word"
1620 break
1621 fi
1622 done
1623 IFS="$ac_save_ifs"
1624 test -z "$ac_cv_path_vipath" && ac_cv_path_vipath="no"
1625 ;;
1626 esac
1627 fi
1628 vipath="$ac_cv_path_vipath"
1629 if test -n "$vipath"; then
1630 echo "$ac_t""$vipath" 1>&6
1631 else
1632 echo "$ac_t""no" 1>&6
1633 fi
1634
1635
1636 if test -z "$editorpath"; then
1637 editorpath="$vipath"
1638 fi
1639
1640 echo $ac_n "checking for broken vi""... $ac_c" 1>&6
1641 echo "configure:1642: checking for broken vi" >&5
1642 if eval "test \"`echo '$''{'nmh_cv_attvibug'+set}'`\" = set"; then
1643 echo $ac_n "(cached) $ac_c" 1>&6
1644 else
1645 if echo 'r /nonexist-file
1646 q' | ex > /dev/null 2>&1
1647 then
1648 nmh_cv_attvibug=no
1649 else
1650 nmh_cv_attvibug=yes
1651 fi
1652 fi
1653
1654 echo "$ac_t""$nmh_cv_attvibug" 1>&6
1655
1656 if test "$nmh_cv_attvibug" = yes; then
1657 cat >> confdefs.h <<\EOF
1658 #define ATTVIBUG 1
1659 EOF
1660
1661 fi
1662
1663 echo $ac_n "checking where mail spool is located""... $ac_c" 1>&6
1664 echo "configure:1665: checking where mail spool is located" >&5
1665 if eval "test \"`echo '$''{'nmh_cv_mailspool'+set}'`\" = set"; then
1666 echo $ac_n "(cached) $ac_c" 1>&6
1667 else
1668 for mailspool in /var/mail /var/spool/mail /usr/spool/mail /dev/null; do
1669 test -d $mailspool && break
1670 done
1671 nmh_cv_mailspool=$mailspool
1672
1673 fi
1674
1675 echo "$ac_t""$nmh_cv_mailspool" 1>&6
1676 mailspool=$nmh_cv_mailspool
1677
1678 if test "$lspath" != "no" -a "$cutpath" != "no"; then
1679 echo $ac_n "checking whether the mail spool is world-writable""... $ac_c" 1>&6
1680 echo "configure:1681: checking whether the mail spool is world-writable" >&5
1681 if eval "test \"`echo '$''{'nmh_cv_mailspool_world_writable'+set}'`\" = set"; then
1682 echo $ac_n "(cached) $ac_c" 1>&6
1683 else
1684 if test "`$lspath -dlL $mailspool | $cutpath -c9`" = "-"; then
1685 nmh_cv_mailspool_world_writable=no
1686 else
1687 nmh_cv_mailspool_world_writable=yes
1688 fi
1689 fi
1690
1691 echo "$ac_t""$nmh_cv_mailspool_world_writable" 1>&6
1692 fi
1693
1694 if test x"$nmh_cv_mailspool_world_writable" = x"no"; then
1695 cat >> confdefs.h <<\EOF
1696 #define MAILGROUP 1
1697 EOF
1698 SETGID_MAIL=1
1699 fi
1700
1701 echo $ac_n "checking what group owns the mail spool""... $ac_c" 1>&6
1702 echo "configure:1703: checking what group owns the mail spool" >&5
1703 if eval "test \"`echo '$''{'nmh_cv_ls_mail_grp'+set}'`\" = set"; then
1704 echo $ac_n "(cached) $ac_c" 1>&6
1705 else
1706 nmh_cv_ls_mail_grp=`$lspath -dL $nmh_cv_ls_grpopt $mailspool|$AWK '{print $4}'`
1707 if test x$nmh_cv_ls_mail_grp = xmail; then
1708 MAIL_SPOOL_GRP="mail"
1709 elif test x$nmh_cv_ls_mail_grp = xwheel; then
1710 MAIL_SPOOL_GRP="wheel"
1711 else
1712 MAIL_SPOOL_GRP="'0'"
1713 fi
1714 fi
1715
1716 echo "$ac_t""$nmh_cv_ls_mail_grp" 1>&6
1717
1718 ac_header_dirent=no
1719 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1720 do
1721 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1722 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1723 echo "configure:1724: checking for $ac_hdr that defines DIR" >&5
1724 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1725 echo $ac_n "(cached) $ac_c" 1>&6
1726 else
1727 cat > conftest.$ac_ext <<EOF
1728 #line 1729 "configure"
1729 #include "confdefs.h"
1730 #include <sys/types.h>
1731 #include <$ac_hdr>
1732 int main() {
1733 DIR *dirp = 0;
1734 ; return 0; }
1735 EOF
1736 if { (eval echo configure:1737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1737 rm -rf conftest*
1738 eval "ac_cv_header_dirent_$ac_safe=yes"
1739 else
1740 echo "configure: failed program was:" >&5
1741 cat conftest.$ac_ext >&5
1742 rm -rf conftest*
1743 eval "ac_cv_header_dirent_$ac_safe=no"
1744 fi
1745 rm -f conftest*
1746 fi
1747 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1748 echo "$ac_t""yes" 1>&6
1749 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1750 cat >> confdefs.h <<EOF
1751 #define $ac_tr_hdr 1
1752 EOF
1753 ac_header_dirent=$ac_hdr; break
1754 else
1755 echo "$ac_t""no" 1>&6
1756 fi
1757 done
1758 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1759 if test $ac_header_dirent = dirent.h; then
1760 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1761 echo "configure:1762: checking for opendir in -ldir" >&5
1762 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1763 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1764 echo $ac_n "(cached) $ac_c" 1>&6
1765 else
1766 ac_save_LIBS="$LIBS"
1767 LIBS="-ldir $LIBS"
1768 cat > conftest.$ac_ext <<EOF
1769 #line 1770 "configure"
1770 #include "confdefs.h"
1771 /* Override any gcc2 internal prototype to avoid an error. */
1772 /* We use char because int might match the return type of a gcc2
1773 builtin and then its argument prototype would still apply. */
1774 char opendir();
1775
1776 int main() {
1777 opendir()
1778 ; return 0; }
1779 EOF
1780 if { (eval echo configure:1781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1781 rm -rf conftest*
1782 eval "ac_cv_lib_$ac_lib_var=yes"
1783 else
1784 echo "configure: failed program was:" >&5
1785 cat conftest.$ac_ext >&5
1786 rm -rf conftest*
1787 eval "ac_cv_lib_$ac_lib_var=no"
1788 fi
1789 rm -f conftest*
1790 LIBS="$ac_save_LIBS"
1791
1792 fi
1793 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1794 echo "$ac_t""yes" 1>&6
1795 LIBS="$LIBS -ldir"
1796 else
1797 echo "$ac_t""no" 1>&6
1798 fi
1799
1800 else
1801 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1802 echo "configure:1803: checking for opendir in -lx" >&5
1803 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1804 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1805 echo $ac_n "(cached) $ac_c" 1>&6
1806 else
1807 ac_save_LIBS="$LIBS"
1808 LIBS="-lx $LIBS"
1809 cat > conftest.$ac_ext <<EOF
1810 #line 1811 "configure"
1811 #include "confdefs.h"
1812 /* Override any gcc2 internal prototype to avoid an error. */
1813 /* We use char because int might match the return type of a gcc2
1814 builtin and then its argument prototype would still apply. */
1815 char opendir();
1816
1817 int main() {
1818 opendir()
1819 ; return 0; }
1820 EOF
1821 if { (eval echo configure:1822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1822 rm -rf conftest*
1823 eval "ac_cv_lib_$ac_lib_var=yes"
1824 else
1825 echo "configure: failed program was:" >&5
1826 cat conftest.$ac_ext >&5
1827 rm -rf conftest*
1828 eval "ac_cv_lib_$ac_lib_var=no"
1829 fi
1830 rm -f conftest*
1831 LIBS="$ac_save_LIBS"
1832
1833 fi
1834 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1835 echo "$ac_t""yes" 1>&6
1836 LIBS="$LIBS -lx"
1837 else
1838 echo "$ac_t""no" 1>&6
1839 fi
1840
1841 fi
1842
1843 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1844 echo "configure:1845: checking how to run the C preprocessor" >&5
1845 # On Suns, sometimes $CPP names a directory.
1846 if test -n "$CPP" && test -d "$CPP"; then
1847 CPP=
1848 fi
1849 if test -z "$CPP"; then
1850 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1851 echo $ac_n "(cached) $ac_c" 1>&6
1852 else
1853 # This must be in double quotes, not single quotes, because CPP may get
1854 # substituted into the Makefile and "${CC-cc}" will confuse make.
1855 CPP="${CC-cc} -E"
1856 # On the NeXT, cc -E runs the code through the compiler's parser,
1857 # not just through cpp.
1858 cat > conftest.$ac_ext <<EOF
1859 #line 1860 "configure"
1860 #include "confdefs.h"
1861 #include <assert.h>
1862 Syntax Error
1863 EOF
1864 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1865 { (eval echo configure:1866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1866 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1867 if test -z "$ac_err"; then
1868 :
1869 else
1870 echo "$ac_err" >&5
1871 echo "configure: failed program was:" >&5
1872 cat conftest.$ac_ext >&5
1873 rm -rf conftest*
1874 CPP="${CC-cc} -E -traditional-cpp"
1875 cat > conftest.$ac_ext <<EOF
1876 #line 1877 "configure"
1877 #include "confdefs.h"
1878 #include <assert.h>
1879 Syntax Error
1880 EOF
1881 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1882 { (eval echo configure:1883: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1883 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1884 if test -z "$ac_err"; then
1885 :
1886 else
1887 echo "$ac_err" >&5
1888 echo "configure: failed program was:" >&5
1889 cat conftest.$ac_ext >&5
1890 rm -rf conftest*
1891 CPP="${CC-cc} -nologo -E"
1892 cat > conftest.$ac_ext <<EOF
1893 #line 1894 "configure"
1894 #include "confdefs.h"
1895 #include <assert.h>
1896 Syntax Error
1897 EOF
1898 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1899 { (eval echo configure:1900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1900 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1901 if test -z "$ac_err"; then
1902 :
1903 else
1904 echo "$ac_err" >&5
1905 echo "configure: failed program was:" >&5
1906 cat conftest.$ac_ext >&5
1907 rm -rf conftest*
1908 CPP=/lib/cpp
1909 fi
1910 rm -f conftest*
1911 fi
1912 rm -f conftest*
1913 fi
1914 rm -f conftest*
1915 ac_cv_prog_CPP="$CPP"
1916 fi
1917 CPP="$ac_cv_prog_CPP"
1918 else
1919 ac_cv_prog_CPP="$CPP"
1920 fi
1921 echo "$ac_t""$CPP" 1>&6
1922
1923 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1924 echo "configure:1925: checking for ANSI C header files" >&5
1925 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1926 echo $ac_n "(cached) $ac_c" 1>&6
1927 else
1928 cat > conftest.$ac_ext <<EOF
1929 #line 1930 "configure"
1930 #include "confdefs.h"
1931 #include <stdlib.h>
1932 #include <stdarg.h>
1933 #include <string.h>
1934 #include <float.h>
1935 EOF
1936 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1937 { (eval echo configure:1938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1938 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1939 if test -z "$ac_err"; then
1940 rm -rf conftest*
1941 ac_cv_header_stdc=yes
1942 else
1943 echo "$ac_err" >&5
1944 echo "configure: failed program was:" >&5
1945 cat conftest.$ac_ext >&5
1946 rm -rf conftest*
1947 ac_cv_header_stdc=no
1948 fi
1949 rm -f conftest*
1950
1951 if test $ac_cv_header_stdc = yes; then
1952 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1953 cat > conftest.$ac_ext <<EOF
1954 #line 1955 "configure"
1955 #include "confdefs.h"
1956 #include <string.h>
1957 EOF
1958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1959 egrep "memchr" >/dev/null 2>&1; then
1960 :
1961 else
1962 rm -rf conftest*
1963 ac_cv_header_stdc=no
1964 fi
1965 rm -f conftest*
1966
1967 fi
1968
1969 if test $ac_cv_header_stdc = yes; then
1970 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1971 cat > conftest.$ac_ext <<EOF
1972 #line 1973 "configure"
1973 #include "confdefs.h"
1974 #include <stdlib.h>
1975 EOF
1976 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1977 egrep "free" >/dev/null 2>&1; then
1978 :
1979 else
1980 rm -rf conftest*
1981 ac_cv_header_stdc=no
1982 fi
1983 rm -f conftest*
1984
1985 fi
1986
1987 if test $ac_cv_header_stdc = yes; then
1988 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1989 if test "$cross_compiling" = yes; then
1990 :
1991 else
1992 cat > conftest.$ac_ext <<EOF
1993 #line 1994 "configure"
1994 #include "confdefs.h"
1995 #include <ctype.h>
1996 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1997 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1998 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1999 int main () { int i; for (i = 0; i < 256; i++)
2000 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2001 exit (0); }
2002
2003 EOF
2004 if { (eval echo configure:2005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2005 then
2006 :
2007 else
2008 echo "configure: failed program was:" >&5
2009 cat conftest.$ac_ext >&5
2010 rm -fr conftest*
2011 ac_cv_header_stdc=no
2012 fi
2013 rm -fr conftest*
2014 fi
2015
2016 fi
2017 fi
2018
2019 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2020 if test $ac_cv_header_stdc = yes; then
2021 cat >> confdefs.h <<\EOF
2022 #define STDC_HEADERS 1
2023 EOF
2024
2025 fi
2026
2027 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2028 echo "configure:2029: checking whether time.h and sys/time.h may both be included" >&5
2029 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2030 echo $ac_n "(cached) $ac_c" 1>&6
2031 else
2032 cat > conftest.$ac_ext <<EOF
2033 #line 2034 "configure"
2034 #include "confdefs.h"
2035 #include <sys/types.h>
2036 #include <sys/time.h>
2037 #include <time.h>
2038 int main() {
2039 struct tm *tp;
2040 ; return 0; }
2041 EOF
2042 if { (eval echo configure:2043: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2043 rm -rf conftest*
2044 ac_cv_header_time=yes
2045 else
2046 echo "configure: failed program was:" >&5
2047 cat conftest.$ac_ext >&5
2048 rm -rf conftest*
2049 ac_cv_header_time=no
2050 fi
2051 rm -f conftest*
2052 fi
2053
2054 echo "$ac_t""$ac_cv_header_time" 1>&6
2055 if test $ac_cv_header_time = yes; then
2056 cat >> confdefs.h <<\EOF
2057 #define TIME_WITH_SYS_TIME 1
2058 EOF
2059
2060 fi
2061
2062 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2063 echo "configure:2064: checking for sys/wait.h that is POSIX.1 compatible" >&5
2064 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2065 echo $ac_n "(cached) $ac_c" 1>&6
2066 else
2067 cat > conftest.$ac_ext <<EOF
2068 #line 2069 "configure"
2069 #include "confdefs.h"
2070 #include <sys/types.h>
2071 #include <sys/wait.h>
2072 #ifndef WEXITSTATUS
2073 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2074 #endif
2075 #ifndef WIFEXITED
2076 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2077 #endif
2078 int main() {
2079 int s;
2080 wait (&s);
2081 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2082 ; return 0; }
2083 EOF
2084 if { (eval echo configure:2085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2085 rm -rf conftest*
2086 ac_cv_header_sys_wait_h=yes
2087 else
2088 echo "configure: failed program was:" >&5
2089 cat conftest.$ac_ext >&5
2090 rm -rf conftest*
2091 ac_cv_header_sys_wait_h=no
2092 fi
2093 rm -f conftest*
2094 fi
2095
2096 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2097 if test $ac_cv_header_sys_wait_h = yes; then
2098 cat >> confdefs.h <<\EOF
2099 #define HAVE_SYS_WAIT_H 1
2100 EOF
2101
2102 fi
2103
2104 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
2105 echo "configure:2106: checking whether stat file-mode macros are broken" >&5
2106 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
2107 echo $ac_n "(cached) $ac_c" 1>&6
2108 else
2109 cat > conftest.$ac_ext <<EOF
2110 #line 2111 "configure"
2111 #include "confdefs.h"
2112 #include <sys/types.h>
2113 #include <sys/stat.h>
2114
2115 #if defined(S_ISBLK) && defined(S_IFDIR)
2116 # if S_ISBLK (S_IFDIR)
2117 You lose.
2118 # endif
2119 #endif
2120
2121 #if defined(S_ISBLK) && defined(S_IFCHR)
2122 # if S_ISBLK (S_IFCHR)
2123 You lose.
2124 # endif
2125 #endif
2126
2127 #if defined(S_ISLNK) && defined(S_IFREG)
2128 # if S_ISLNK (S_IFREG)
2129 You lose.
2130 # endif
2131 #endif
2132
2133 #if defined(S_ISSOCK) && defined(S_IFREG)
2134 # if S_ISSOCK (S_IFREG)
2135 You lose.
2136 # endif
2137 #endif
2138
2139 EOF
2140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2141 egrep "You lose" >/dev/null 2>&1; then
2142 rm -rf conftest*
2143 ac_cv_header_stat_broken=yes
2144 else
2145 rm -rf conftest*
2146 ac_cv_header_stat_broken=no
2147 fi
2148 rm -f conftest*
2149
2150 fi
2151
2152 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
2153 if test $ac_cv_header_stat_broken = yes; then
2154 cat >> confdefs.h <<\EOF
2155 #define STAT_MACROS_BROKEN 1
2156 EOF
2157
2158 fi
2159
2160 for ac_hdr in string.h memory.h stdlib.h unistd.h errno.h fcntl.h \
2161 limits.h crypt.h termcap.h termio.h termios.h locale.h \
2162 netdb.h sys/param.h sys/time.h sys/utsname.h arpa/inet.h \
2163 arpa/ftp.h
2164 do
2165 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2166 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2167 echo "configure:2168: checking for $ac_hdr" >&5
2168 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2169 echo $ac_n "(cached) $ac_c" 1>&6
2170 else
2171 cat > conftest.$ac_ext <<EOF
2172 #line 2173 "configure"
2173 #include "confdefs.h"
2174 #include <$ac_hdr>
2175 EOF
2176 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2177 { (eval echo configure:2178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2178 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2179 if test -z "$ac_err"; then
2180 rm -rf conftest*
2181 eval "ac_cv_header_$ac_safe=yes"
2182 else
2183 echo "$ac_err" >&5
2184 echo "configure: failed program was:" >&5
2185 cat conftest.$ac_ext >&5
2186 rm -rf conftest*
2187 eval "ac_cv_header_$ac_safe=no"
2188 fi
2189 rm -f conftest*
2190 fi
2191 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2192 echo "$ac_t""yes" 1>&6
2193 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2194 cat >> confdefs.h <<EOF
2195 #define $ac_tr_hdr 1
2196 EOF
2197
2198 else
2199 echo "$ac_t""no" 1>&6
2200 fi
2201 done
2202
2203
2204
2205 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
2206 echo "configure:2207: checking POSIX termios" >&5
2207 if eval "test \"`echo '$''{'nmh_cv_sys_posix_termios'+set}'`\" = set"; then
2208 echo $ac_n "(cached) $ac_c" 1>&6
2209 else
2210 cat > conftest.$ac_ext <<EOF
2211 #line 2212 "configure"
2212 #include "confdefs.h"
2213 #include <sys/types.h>
2214 #include <unistd.h>
2215 #include <termios.h>
2216 int main() {
2217 /* SunOS 4.0.3 has termios.h but not the library calls. */
2218 tcgetattr(0, 0);
2219 ; return 0; }
2220 EOF
2221 if { (eval echo configure:2222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2222 rm -rf conftest*
2223 nmh_cv_sys_posix_termios=yes
2224 else
2225 echo "configure: failed program was:" >&5
2226 cat conftest.$ac_ext >&5
2227 rm -rf conftest*
2228 nmh_cv_sys_posix_termios=no
2229 fi
2230 rm -f conftest*
2231 fi
2232
2233 echo "$ac_t""$nmh_cv_sys_posix_termios" 1>&6
2234
2235 if test $nmh_cv_sys_posix_termios = yes; then
2236 echo $ac_n "checking TIOCGWINSZ in termios.h""... $ac_c" 1>&6
2237 echo "configure:2238: checking TIOCGWINSZ in termios.h" >&5
2238 if eval "test \"`echo '$''{'nmh_cv_header_termios_h_tiocgwinsz'+set}'`\" = set"; then
2239 echo $ac_n "(cached) $ac_c" 1>&6
2240 else
2241 cat > conftest.$ac_ext <<EOF
2242 #line 2243 "configure"
2243 #include "confdefs.h"
2244 #include <sys/types.h>
2245 #include <termios.h>
2246 int main() {
2247 int x = TIOCGWINSZ;
2248 ; return 0; }
2249 EOF
2250 if { (eval echo configure:2251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2251 rm -rf conftest*
2252 nmh_cv_header_termios_h_tiocgwinsz=yes
2253 else
2254 echo "configure: failed program was:" >&5
2255 cat conftest.$ac_ext >&5
2256 rm -rf conftest*
2257 nmh_cv_header_termios_h_tiocgwinsz=no
2258 fi
2259 rm -f conftest*
2260 fi
2261
2262 echo "$ac_t""$nmh_cv_header_termios_h_tiocgwinsz" 1>&6
2263 else
2264 nmh_cv_header_termios_h_tiocgwinsz=no
2265 fi
2266
2267 if test $nmh_cv_header_termios_h_tiocgwinsz = no; then
2268 echo $ac_n "checking TIOCGWINSZ in sys/ioctl.h""... $ac_c" 1>&6
2269 echo "configure:2270: checking TIOCGWINSZ in sys/ioctl.h" >&5
2270 if eval "test \"`echo '$''{'nmh_cv_header_sys_ioctl_h_tiocgwinsz'+set}'`\" = set"; then
2271 echo $ac_n "(cached) $ac_c" 1>&6
2272 else
2273 cat > conftest.$ac_ext <<EOF
2274 #line 2275 "configure"
2275 #include "confdefs.h"
2276 #include <sys/types.h>
2277 #include <sys/ioctl.h>
2278 int main() {
2279 int x = TIOCGWINSZ;
2280 ; return 0; }
2281 EOF
2282 if { (eval echo configure:2283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2283 rm -rf conftest*
2284 nmh_cv_header_sys_ioctl_h_tiocgwinsz=yes
2285 else
2286 echo "configure: failed program was:" >&5
2287 cat conftest.$ac_ext >&5
2288 rm -rf conftest*
2289 nmh_cv_header_sys_ioctl_h_tiocgwinsz=no
2290 fi
2291 rm -f conftest*
2292 fi
2293
2294 echo "$ac_t""$nmh_cv_header_sys_ioctl_h_tiocgwinsz" 1>&6
2295 if test $nmh_cv_header_sys_ioctl_h_tiocgwinsz = yes; then
2296 cat >> confdefs.h <<\EOF
2297 #define GWINSZ_IN_SYS_IOCTL 1
2298 EOF
2299
2300 fi
2301 fi
2302
2303 ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2304 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2305 echo "configure:2306: checking for libio.h" >&5
2306 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2307 echo $ac_n "(cached) $ac_c" 1>&6
2308 else
2309 cat > conftest.$ac_ext <<EOF
2310 #line 2311 "configure"
2311 #include "confdefs.h"
2312 #include <libio.h>
2313 EOF
2314 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2315 { (eval echo configure:2316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2316 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2317 if test -z "$ac_err"; then
2318 rm -rf conftest*
2319 eval "ac_cv_header_$ac_safe=yes"
2320 else
2321 echo "$ac_err" >&5
2322 echo "configure: failed program was:" >&5
2323 cat conftest.$ac_ext >&5
2324 rm -rf conftest*
2325 eval "ac_cv_header_$ac_safe=no"
2326 fi
2327 rm -f conftest*
2328 fi
2329 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2330 echo "$ac_t""yes" 1>&6
2331
2332 cat > conftest.$ac_ext <<EOF
2333 #line 2334 "configure"
2334 #include "confdefs.h"
2335 #include <libio.h>
2336 EOF
2337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2338 egrep "_IO_write_ptr" >/dev/null 2>&1; then
2339 rm -rf conftest*
2340
2341 cat >> confdefs.h <<\EOF
2342 #define LINUX_STDIO 1
2343 EOF
2344
2345 fi
2346 rm -f conftest*
2347
2348 else
2349 echo "$ac_t""no" 1>&6
2350 fi
2351
2352
2353 ac_safe=`echo "sys/ptem.h" | sed 'y%./+-%__p_%'`
2354 echo $ac_n "checking for sys/ptem.h""... $ac_c" 1>&6
2355 echo "configure:2356: checking for sys/ptem.h" >&5
2356 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2357 echo $ac_n "(cached) $ac_c" 1>&6
2358 else
2359 cat > conftest.$ac_ext <<EOF
2360 #line 2361 "configure"
2361 #include "confdefs.h"
2362 #include <sys/ptem.h>
2363 EOF
2364 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2365 { (eval echo configure:2366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2366 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2367 if test -z "$ac_err"; then
2368 rm -rf conftest*
2369 eval "ac_cv_header_$ac_safe=yes"
2370 else
2371 echo "$ac_err" >&5
2372 echo "configure: failed program was:" >&5
2373 cat conftest.$ac_ext >&5
2374 rm -rf conftest*
2375 eval "ac_cv_header_$ac_safe=no"
2376 fi
2377 rm -f conftest*
2378 fi
2379 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2380 echo "$ac_t""yes" 1>&6
2381 cat >> confdefs.h <<\EOF
2382 #define WINSIZE_IN_PTEM 1
2383 EOF
2384
2385 else
2386 echo "$ac_t""no" 1>&6
2387 fi
2388
2389
2390 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2391 echo "configure:2392: checking for pid_t" >&5
2392 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2393 echo $ac_n "(cached) $ac_c" 1>&6
2394 else
2395 cat > conftest.$ac_ext <<EOF
2396 #line 2397 "configure"
2397 #include "confdefs.h"
2398 #include <sys/types.h>
2399 #if STDC_HEADERS
2400 #include <stdlib.h>
2401 #include <stddef.h>
2402 #endif
2403 EOF
2404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2405 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2406 rm -rf conftest*
2407 ac_cv_type_pid_t=yes
2408 else
2409 rm -rf conftest*
2410 ac_cv_type_pid_t=no
2411 fi
2412 rm -f conftest*
2413
2414 fi
2415 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2416 if test $ac_cv_type_pid_t = no; then
2417 cat >> confdefs.h <<\EOF
2418 #define pid_t int
2419 EOF
2420
2421 fi
2422
2423 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2424 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2425 echo "configure:2426: checking for vfork.h" >&5
2426 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2427 echo $ac_n "(cached) $ac_c" 1>&6
2428 else
2429 cat > conftest.$ac_ext <<EOF
2430 #line 2431 "configure"
2431 #include "confdefs.h"
2432 #include <vfork.h>
2433 EOF
2434 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2435 { (eval echo configure:2436: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2436 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2437 if test -z "$ac_err"; then
2438 rm -rf conftest*
2439 eval "ac_cv_header_$ac_safe=yes"
2440 else
2441 echo "$ac_err" >&5
2442 echo "configure: failed program was:" >&5
2443 cat conftest.$ac_ext >&5
2444 rm -rf conftest*
2445 eval "ac_cv_header_$ac_safe=no"
2446 fi
2447 rm -f conftest*
2448 fi
2449 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2450 echo "$ac_t""yes" 1>&6
2451 cat >> confdefs.h <<\EOF
2452 #define HAVE_VFORK_H 1
2453 EOF
2454
2455 else
2456 echo "$ac_t""no" 1>&6
2457 fi
2458
2459 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2460 echo "configure:2461: checking for working vfork" >&5
2461 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2462 echo $ac_n "(cached) $ac_c" 1>&6
2463 else
2464 if test "$cross_compiling" = yes; then
2465 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2466 echo "configure:2467: checking for vfork" >&5
2467 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2468 echo $ac_n "(cached) $ac_c" 1>&6
2469 else
2470 cat > conftest.$ac_ext <<EOF
2471 #line 2472 "configure"
2472 #include "confdefs.h"
2473 /* System header to define __stub macros and hopefully few prototypes,
2474 which can conflict with char vfork(); below. */
2475 #include <assert.h>
2476 /* Override any gcc2 internal prototype to avoid an error. */
2477 /* We use char because int might match the return type of a gcc2
2478 builtin and then its argument prototype would still apply. */
2479 char vfork();
2480
2481 int main() {
2482
2483 /* The GNU C library defines this for functions which it implements
2484 to always fail with ENOSYS. Some functions are actually named
2485 something starting with __ and the normal name is an alias. */
2486 #if defined (__stub_vfork) || defined (__stub___vfork)
2487 choke me
2488 #else
2489 vfork();
2490 #endif
2491
2492 ; return 0; }
2493 EOF
2494 if { (eval echo configure:2495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2495 rm -rf conftest*
2496 eval "ac_cv_func_vfork=yes"
2497 else
2498 echo "configure: failed program was:" >&5
2499 cat conftest.$ac_ext >&5
2500 rm -rf conftest*
2501 eval "ac_cv_func_vfork=no"
2502 fi
2503 rm -f conftest*
2504 fi
2505
2506 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2507 echo "$ac_t""yes" 1>&6
2508 :
2509 else
2510 echo "$ac_t""no" 1>&6
2511 fi
2512
2513 ac_cv_func_vfork_works=$ac_cv_func_vfork
2514 else
2515 cat > conftest.$ac_ext <<EOF
2516 #line 2517 "configure"
2517 #include "confdefs.h"
2518 /* Thanks to Paul Eggert for this test. */
2519 #include <stdio.h>
2520 #include <sys/types.h>
2521 #include <sys/stat.h>
2522 #ifdef HAVE_UNISTD_H
2523 #include <unistd.h>
2524 #endif
2525 #ifdef HAVE_VFORK_H
2526 #include <vfork.h>
2527 #endif
2528 /* On some sparc systems, changes by the child to local and incoming
2529 argument registers are propagated back to the parent.
2530 The compiler is told about this with #include <vfork.h>,
2531 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2532 Test for this by using a static variable whose address
2533 is put into a register that is clobbered by the vfork. */
2534 static
2535 #ifdef __cplusplus
2536 sparc_address_test (int arg)
2537 #else
2538 sparc_address_test (arg) int arg;
2539 #endif
2540 {
2541 static pid_t child;
2542 if (!child) {
2543 child = vfork ();
2544 if (child < 0) {
2545 perror ("vfork");
2546 _exit(2);
2547 }
2548 if (!child) {
2549 arg = getpid();
2550 write(-1, "", 0);
2551 _exit (arg);
2552 }
2553 }
2554 }
2555 main() {
2556 pid_t parent = getpid ();
2557 pid_t child;
2558
2559 sparc_address_test ();
2560
2561 child = vfork ();
2562
2563 if (child == 0) {
2564 /* Here is another test for sparc vfork register problems.
2565 This test uses lots of local variables, at least
2566 as many local variables as main has allocated so far
2567 including compiler temporaries. 4 locals are enough for
2568 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2569 A buggy compiler should reuse the register of parent
2570 for one of the local variables, since it will think that
2571 parent can't possibly be used any more in this routine.
2572 Assigning to the local variable will thus munge parent
2573 in the parent process. */
2574 pid_t
2575 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2576 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2577 /* Convince the compiler that p..p7 are live; otherwise, it might
2578 use the same hardware register for all 8 local variables. */
2579 if (p != p1 || p != p2 || p != p3 || p != p4
2580 || p != p5 || p != p6 || p != p7)
2581 _exit(1);
2582
2583 /* On some systems (e.g. IRIX 3.3),
2584 vfork doesn't separate parent from child file descriptors.
2585 If the child closes a descriptor before it execs or exits,
2586 this munges the parent's descriptor as well.
2587 Test for this by closing stdout in the child. */
2588 _exit(close(fileno(stdout)) != 0);
2589 } else {
2590 int status;
2591 struct stat st;
2592
2593 while (wait(&status) != child)
2594 ;
2595 exit(
2596 /* Was there some problem with vforking? */
2597 child < 0
2598
2599 /* Did the child fail? (This shouldn't happen.) */
2600 || status
2601
2602 /* Did the vfork/compiler bug occur? */
2603 || parent != getpid()
2604
2605 /* Did the file descriptor bug occur? */
2606 || fstat(fileno(stdout), &st) != 0
2607 );
2608 }
2609 }
2610 EOF
2611 if { (eval echo configure:2612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2612 then
2613 ac_cv_func_vfork_works=yes
2614 else
2615 echo "configure: failed program was:" >&5
2616 cat conftest.$ac_ext >&5
2617 rm -fr conftest*
2618 ac_cv_func_vfork_works=no
2619 fi
2620 rm -fr conftest*
2621 fi
2622
2623 fi
2624
2625 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2626 if test $ac_cv_func_vfork_works = no; then
2627 cat >> confdefs.h <<\EOF
2628 #define vfork fork
2629 EOF
2630
2631 fi
2632
2633 echo $ac_n "checking for mkstemp in -lmkstemp""... $ac_c" 1>&6
2634 echo "configure:2635: checking for mkstemp in -lmkstemp" >&5
2635 ac_lib_var=`echo mkstemp'_'mkstemp | sed 'y%./+-%__p_%'`
2636 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2637 echo $ac_n "(cached) $ac_c" 1>&6
2638 else
2639 ac_save_LIBS="$LIBS"
2640 LIBS="-lmkstemp $LIBS"
2641 cat > conftest.$ac_ext <<EOF
2642 #line 2643 "configure"
2643 #include "confdefs.h"
2644 /* Override any gcc2 internal prototype to avoid an error. */
2645 /* We use char because int might match the return type of a gcc2
2646 builtin and then its argument prototype would still apply. */
2647 char mkstemp();
2648
2649 int main() {
2650 mkstemp()
2651 ; return 0; }
2652 EOF
2653 if { (eval echo configure:2654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2654 rm -rf conftest*
2655 eval "ac_cv_lib_$ac_lib_var=yes"
2656 else
2657 echo "configure: failed program was:" >&5
2658 cat conftest.$ac_ext >&5
2659 rm -rf conftest*
2660 eval "ac_cv_lib_$ac_lib_var=no"
2661 fi
2662 rm -f conftest*
2663 LIBS="$ac_save_LIBS"
2664
2665 fi
2666 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2667 echo "$ac_t""yes" 1>&6
2668 ac_tr_lib=HAVE_LIB`echo mkstemp | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2669 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2670 cat >> confdefs.h <<EOF
2671 #define $ac_tr_lib 1
2672 EOF
2673
2674 LIBS="-lmkstemp $LIBS"
2675
2676 else
2677 echo "$ac_t""no" 1>&6
2678 fi
2679
2680 for ac_func in waitpid wait3 sigaction sigprocmask sigblock sigsetmask \
2681 sighold sigrelse writev lstat uname tzset killpg mkstemp \
2682 sethostent
2683 do
2684 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2685 echo "configure:2686: checking for $ac_func" >&5
2686 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2687 echo $ac_n "(cached) $ac_c" 1>&6
2688 else
2689 cat > conftest.$ac_ext <<EOF
2690 #line 2691 "configure"
2691 #include "confdefs.h"
2692 /* System header to define __stub macros and hopefully few prototypes,
2693 which can conflict with char $ac_func(); below. */
2694 #include <assert.h>
2695 /* Override any gcc2 internal prototype to avoid an error. */
2696 /* We use char because int might match the return type of a gcc2
2697 builtin and then its argument prototype would still apply. */
2698 char $ac_func();
2699
2700 int main() {
2701
2702 /* The GNU C library defines this for functions which it implements
2703 to always fail with ENOSYS. Some functions are actually named
2704 something starting with __ and the normal name is an alias. */
2705 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2706 choke me
2707 #else
2708 $ac_func();
2709 #endif
2710
2711 ; return 0; }
2712 EOF
2713 if { (eval echo configure:2714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2714 rm -rf conftest*
2715 eval "ac_cv_func_$ac_func=yes"
2716 else
2717 echo "configure: failed program was:" >&5
2718 cat conftest.$ac_ext >&5
2719 rm -rf conftest*
2720 eval "ac_cv_func_$ac_func=no"
2721 fi
2722 rm -f conftest*
2723 fi
2724
2725 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2726 echo "$ac_t""yes" 1>&6
2727 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2728 cat >> confdefs.h <<EOF
2729 #define $ac_tr_func 1
2730 EOF
2731
2732 else
2733 echo "$ac_t""no" 1>&6
2734 fi
2735 done
2736
2737
2738 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2739 echo "configure:2740: checking for gethostbyname" >&5
2740 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2741 echo $ac_n "(cached) $ac_c" 1>&6
2742 else
2743 cat > conftest.$ac_ext <<EOF
2744 #line 2745 "configure"
2745 #include "confdefs.h"
2746 /* System header to define __stub macros and hopefully few prototypes,
2747 which can conflict with char gethostbyname(); below. */
2748 #include <assert.h>
2749 /* Override any gcc2 internal prototype to avoid an error. */
2750 /* We use char because int might match the return type of a gcc2
2751 builtin and then its argument prototype would still apply. */
2752 char gethostbyname();
2753
2754 int main() {
2755
2756 /* The GNU C library defines this for functions which it implements
2757 to always fail with ENOSYS. Some functions are actually named
2758 something starting with __ and the normal name is an alias. */
2759 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2760 choke me
2761 #else
2762 gethostbyname();
2763 #endif
2764
2765 ; return 0; }
2766 EOF
2767 if { (eval echo configure:2768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2768 rm -rf conftest*
2769 eval "ac_cv_func_gethostbyname=yes"
2770 else
2771 echo "configure: failed program was:" >&5
2772 cat conftest.$ac_ext >&5
2773 rm -rf conftest*
2774 eval "ac_cv_func_gethostbyname=no"
2775 fi
2776 rm -f conftest*
2777 fi
2778
2779 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
2780 echo "$ac_t""yes" 1>&6
2781 cat >> confdefs.h <<\EOF
2782 #define HAVE_GETHOSTBYNAME 1
2783 EOF
2784
2785 else
2786 echo "$ac_t""no" 1>&6
2787 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2788 echo "configure:2789: checking for gethostbyname in -lnsl" >&5
2789 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2790 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2791 echo $ac_n "(cached) $ac_c" 1>&6
2792 else
2793 ac_save_LIBS="$LIBS"
2794 LIBS="-lnsl $LIBS"
2795 cat > conftest.$ac_ext <<EOF
2796 #line 2797 "configure"
2797 #include "confdefs.h"
2798 /* Override any gcc2 internal prototype to avoid an error. */
2799 /* We use char because int might match the return type of a gcc2
2800 builtin and then its argument prototype would still apply. */
2801 char gethostbyname();
2802
2803 int main() {
2804 gethostbyname()
2805 ; return 0; }
2806 EOF
2807 if { (eval echo configure:2808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2808 rm -rf conftest*
2809 eval "ac_cv_lib_$ac_lib_var=yes"
2810 else
2811 echo "configure: failed program was:" >&5
2812 cat conftest.$ac_ext >&5
2813 rm -rf conftest*
2814 eval "ac_cv_lib_$ac_lib_var=no"
2815 fi
2816 rm -f conftest*
2817 LIBS="$ac_save_LIBS"
2818
2819 fi
2820 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2821 echo "$ac_t""yes" 1>&6
2822 cat >> confdefs.h <<\EOF
2823 #define HAVE_GETHOSTBYNAME 1
2824 EOF
2825
2826 else
2827 echo "$ac_t""no" 1>&6
2828 fi
2829
2830 fi
2831
2832
2833 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
2834 echo "configure:2835: checking for sigsetjmp" >&5
2835 cat > conftest.$ac_ext <<EOF
2836 #line 2837 "configure"
2837 #include "confdefs.h"
2838 #include <setjmp.h>
2839 int main() {
2840 sigsetjmp((void *)0, 0);
2841 ; return 0; }
2842 EOF
2843 if { (eval echo configure:2844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2844 rm -rf conftest*
2845 cat >> confdefs.h <<\EOF
2846 #define HAVE_SIGSETJMP 1
2847 EOF
2848 echo "$ac_t""yes" 1>&6
2849 else
2850 echo "configure: failed program was:" >&5
2851 cat conftest.$ac_ext >&5
2852 rm -rf conftest*
2853 echo "$ac_t""no" 1>&6
2854 fi
2855 rm -f conftest*
2856
2857 for ac_func in snprintf strerror strdup
2858 do
2859 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2860 echo "configure:2861: checking for $ac_func" >&5
2861 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2862 echo $ac_n "(cached) $ac_c" 1>&6
2863 else
2864 cat > conftest.$ac_ext <<EOF
2865 #line 2866 "configure"
2866 #include "confdefs.h"
2867 /* System header to define __stub macros and hopefully few prototypes,
2868 which can conflict with char $ac_func(); below. */
2869 #include <assert.h>
2870 /* Override any gcc2 internal prototype to avoid an error. */
2871 /* We use char because int might match the return type of a gcc2
2872 builtin and then its argument prototype would still apply. */
2873 char $ac_func();
2874
2875 int main() {
2876
2877 /* The GNU C library defines this for functions which it implements
2878 to always fail with ENOSYS. Some functions are actually named
2879 something starting with __ and the normal name is an alias. */
2880 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2881 choke me
2882 #else
2883 $ac_func();
2884 #endif
2885
2886 ; return 0; }
2887 EOF
2888 if { (eval echo configure:2889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2889 rm -rf conftest*
2890 eval "ac_cv_func_$ac_func=yes"
2891 else
2892 echo "configure: failed program was:" >&5
2893 cat conftest.$ac_ext >&5
2894 rm -rf conftest*
2895 eval "ac_cv_func_$ac_func=no"
2896 fi
2897 rm -f conftest*
2898 fi
2899
2900 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2901 echo "$ac_t""yes" 1>&6
2902 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2903 cat >> confdefs.h <<EOF
2904 #define $ac_tr_func 1
2905 EOF
2906
2907 else
2908 echo "$ac_t""no" 1>&6
2909 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
2910 fi
2911 done
2912
2913
2914
2915 cat > conftest.$ac_ext <<EOF
2916 #line 2917 "configure"
2917 #include "confdefs.h"
2918 #include <stdio.h>
2919 EOF
2920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2921 egrep "snprintf" >/dev/null 2>&1; then
2922 rm -rf conftest*
2923 cat >> confdefs.h <<\EOF
2924 #define HAVE_SNPRINTF_PROTOTYPE 1
2925 EOF
2926
2927 fi
2928 rm -f conftest*
2929
2930
2931 echo $ac_n "checking for modf""... $ac_c" 1>&6
2932 echo "configure:2933: checking for modf" >&5
2933 if eval "test \"`echo '$''{'ac_cv_func_modf'+set}'`\" = set"; then
2934 echo $ac_n "(cached) $ac_c" 1>&6
2935 else
2936 cat > conftest.$ac_ext <<EOF
2937 #line 2938 "configure"
2938 #include "confdefs.h"
2939 /* System header to define __stub macros and hopefully few prototypes,
2940 which can conflict with char modf(); below. */
2941 #include <assert.h>
2942 /* Override any gcc2 internal prototype to avoid an error. */
2943 /* We use char because int might match the return type of a gcc2
2944 builtin and then its argument prototype would still apply. */
2945 char modf();
2946
2947 int main() {
2948
2949 /* The GNU C library defines this for functions which it implements
2950 to always fail with ENOSYS. Some functions are actually named
2951 something starting with __ and the normal name is an alias. */
2952 #if defined (__stub_modf) || defined (__stub___modf)
2953 choke me
2954 #else
2955 modf();
2956 #endif
2957
2958 ; return 0; }
2959 EOF
2960 if { (eval echo configure:2961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2961 rm -rf conftest*
2962 eval "ac_cv_func_modf=yes"
2963 else
2964 echo "configure: failed program was:" >&5
2965 cat conftest.$ac_ext >&5
2966 rm -rf conftest*
2967 eval "ac_cv_func_modf=no"
2968 fi
2969 rm -f conftest*
2970 fi
2971
2972 if eval "test \"`echo '$ac_cv_func_'modf`\" = yes"; then
2973 echo "$ac_t""yes" 1>&6
2974 :
2975 else
2976 echo "$ac_t""no" 1>&6
2977 echo $ac_n "checking for modf in -lm""... $ac_c" 1>&6
2978 echo "configure:2979: checking for modf in -lm" >&5
2979 ac_lib_var=`echo m'_'modf | sed 'y%./+-%__p_%'`
2980 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2981 echo $ac_n "(cached) $ac_c" 1>&6
2982 else
2983 ac_save_LIBS="$LIBS"
2984 LIBS="-lm $LIBS"
2985 cat > conftest.$ac_ext <<EOF
2986 #line 2987 "configure"
2987 #include "confdefs.h"
2988 /* Override any gcc2 internal prototype to avoid an error. */
2989 /* We use char because int might match the return type of a gcc2
2990 builtin and then its argument prototype would still apply. */
2991 char modf();
2992
2993 int main() {
2994 modf()
2995 ; return 0; }
2996 EOF
2997 if { (eval echo configure:2998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2998 rm -rf conftest*
2999 eval "ac_cv_lib_$ac_lib_var=yes"
3000 else
3001 echo "configure: failed program was:" >&5
3002 cat conftest.$ac_ext >&5
3003 rm -rf conftest*
3004 eval "ac_cv_lib_$ac_lib_var=no"
3005 fi
3006 rm -f conftest*
3007 LIBS="$ac_save_LIBS"
3008
3009 fi
3010 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3011 echo "$ac_t""yes" 1>&6
3012 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
3013 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3014 cat >> confdefs.h <<EOF
3015 #define $ac_tr_lib 1
3016 EOF
3017
3018 LIBS="-lm $LIBS"
3019
3020 else
3021 echo "$ac_t""no" 1>&6
3022 fi
3023
3024 fi
3025
3026
3027 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3028 echo "configure:3029: checking for gethostbyname" >&5
3029 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3030 echo $ac_n "(cached) $ac_c" 1>&6
3031 else
3032 cat > conftest.$ac_ext <<EOF
3033 #line 3034 "configure"
3034 #include "confdefs.h"
3035 /* System header to define __stub macros and hopefully few prototypes,
3036 which can conflict with char gethostbyname(); below. */
3037 #include <assert.h>
3038 /* Override any gcc2 internal prototype to avoid an error. */
3039 /* We use char because int might match the return type of a gcc2
3040 builtin and then its argument prototype would still apply. */
3041 char gethostbyname();
3042
3043 int main() {
3044
3045 /* The GNU C library defines this for functions which it implements
3046 to always fail with ENOSYS. Some functions are actually named
3047 something starting with __ and the normal name is an alias. */
3048 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3049 choke me
3050 #else
3051 gethostbyname();
3052 #endif
3053
3054 ; return 0; }
3055 EOF
3056 if { (eval echo configure:3057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3057 rm -rf conftest*
3058 eval "ac_cv_func_gethostbyname=yes"
3059 else
3060 echo "configure: failed program was:" >&5
3061 cat conftest.$ac_ext >&5
3062 rm -rf conftest*
3063 eval "ac_cv_func_gethostbyname=no"
3064 fi
3065 rm -f conftest*
3066 fi
3067
3068 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3069 echo "$ac_t""yes" 1>&6
3070 :
3071 else
3072 echo "$ac_t""no" 1>&6
3073 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3074 echo "configure:3075: checking for gethostbyname in -lnsl" >&5
3075 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3076 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3077 echo $ac_n "(cached) $ac_c" 1>&6
3078 else
3079 ac_save_LIBS="$LIBS"
3080 LIBS="-lnsl $LIBS"
3081 cat > conftest.$ac_ext <<EOF
3082 #line 3083 "configure"
3083 #include "confdefs.h"
3084 /* Override any gcc2 internal prototype to avoid an error. */
3085 /* We use char because int might match the return type of a gcc2
3086 builtin and then its argument prototype would still apply. */
3087 char gethostbyname();
3088
3089 int main() {
3090 gethostbyname()
3091 ; return 0; }
3092 EOF
3093 if { (eval echo configure:3094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3094 rm -rf conftest*
3095 eval "ac_cv_lib_$ac_lib_var=yes"
3096 else
3097 echo "configure: failed program was:" >&5
3098 cat conftest.$ac_ext >&5
3099 rm -rf conftest*
3100 eval "ac_cv_lib_$ac_lib_var=no"
3101 fi
3102 rm -f conftest*
3103 LIBS="$ac_save_LIBS"
3104
3105 fi
3106 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3107 echo "$ac_t""yes" 1>&6
3108 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
3109 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3110 cat >> confdefs.h <<EOF
3111 #define $ac_tr_lib 1
3112 EOF
3113
3114 LIBS="-lnsl $LIBS"
3115
3116 else
3117 echo "$ac_t""no" 1>&6
3118 echo $ac_n "checking for gethostbyname in -lresolv""... $ac_c" 1>&6
3119 echo "configure:3120: checking for gethostbyname in -lresolv" >&5
3120 ac_lib_var=`echo resolv'_'gethostbyname | sed 'y%./+-%__p_%'`
3121 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3122 echo $ac_n "(cached) $ac_c" 1>&6
3123 else
3124 ac_save_LIBS="$LIBS"
3125 LIBS="-lresolv $LIBS"
3126 cat > conftest.$ac_ext <<EOF
3127 #line 3128 "configure"
3128 #include "confdefs.h"
3129 /* Override any gcc2 internal prototype to avoid an error. */
3130 /* We use char because int might match the return type of a gcc2
3131 builtin and then its argument prototype would still apply. */
3132 char gethostbyname();
3133
3134 int main() {
3135 gethostbyname()
3136 ; return 0; }
3137 EOF
3138 if { (eval echo configure:3139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3139 rm -rf conftest*
3140 eval "ac_cv_lib_$ac_lib_var=yes"
3141 else
3142 echo "configure: failed program was:" >&5
3143 cat conftest.$ac_ext >&5
3144 rm -rf conftest*
3145 eval "ac_cv_lib_$ac_lib_var=no"
3146 fi
3147 rm -f conftest*
3148 LIBS="$ac_save_LIBS"
3149
3150 fi
3151 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3152 echo "$ac_t""yes" 1>&6
3153 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
3154 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3155 cat >> confdefs.h <<EOF
3156 #define $ac_tr_lib 1
3157 EOF
3158
3159 LIBS="-lresolv $LIBS"
3160
3161 else
3162 echo "$ac_t""no" 1>&6
3163 fi
3164
3165 fi
3166
3167 fi
3168
3169 echo $ac_n "checking for socket""... $ac_c" 1>&6
3170 echo "configure:3171: checking for socket" >&5
3171 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
3172 echo $ac_n "(cached) $ac_c" 1>&6
3173 else
3174 cat > conftest.$ac_ext <<EOF
3175 #line 3176 "configure"
3176 #include "confdefs.h"
3177 /* System header to define __stub macros and hopefully few prototypes,
3178 which can conflict with char socket(); below. */
3179 #include <assert.h>
3180 /* Override any gcc2 internal prototype to avoid an error. */
3181 /* We use char because int might match the return type of a gcc2
3182 builtin and then its argument prototype would still apply. */
3183 char socket();
3184
3185 int main() {
3186
3187 /* The GNU C library defines this for functions which it implements
3188 to always fail with ENOSYS. Some functions are actually named
3189 something starting with __ and the normal name is an alias. */
3190 #if defined (__stub_socket) || defined (__stub___socket)
3191 choke me
3192 #else
3193 socket();
3194 #endif
3195
3196 ; return 0; }
3197 EOF
3198 if { (eval echo configure:3199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3199 rm -rf conftest*
3200 eval "ac_cv_func_socket=yes"
3201 else
3202 echo "configure: failed program was:" >&5
3203 cat conftest.$ac_ext >&5
3204 rm -rf conftest*
3205 eval "ac_cv_func_socket=no"
3206 fi
3207 rm -f conftest*
3208 fi
3209
3210 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
3211 echo "$ac_t""yes" 1>&6
3212 :
3213 else
3214 echo "$ac_t""no" 1>&6
3215 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
3216 echo "configure:3217: checking for socket in -lsocket" >&5
3217 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
3218 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3219 echo $ac_n "(cached) $ac_c" 1>&6
3220 else
3221 ac_save_LIBS="$LIBS"
3222 LIBS="-lsocket $LIBS"
3223 cat > conftest.$ac_ext <<EOF
3224 #line 3225 "configure"
3225 #include "confdefs.h"
3226 /* Override any gcc2 internal prototype to avoid an error. */
3227 /* We use char because int might match the return type of a gcc2
3228 builtin and then its argument prototype would still apply. */
3229 char socket();
3230
3231 int main() {
3232 socket()
3233 ; return 0; }
3234 EOF
3235 if { (eval echo configure:3236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3236 rm -rf conftest*
3237 eval "ac_cv_lib_$ac_lib_var=yes"
3238 else
3239 echo "configure: failed program was:" >&5
3240 cat conftest.$ac_ext >&5
3241 rm -rf conftest*
3242 eval "ac_cv_lib_$ac_lib_var=no"
3243 fi
3244 rm -f conftest*
3245 LIBS="$ac_save_LIBS"
3246
3247 fi
3248 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3249 echo "$ac_t""yes" 1>&6
3250 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
3251 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3252 cat >> confdefs.h <<EOF
3253 #define $ac_tr_lib 1
3254 EOF
3255
3256 LIBS="-lsocket $LIBS"
3257
3258 else
3259 echo "$ac_t""no" 1>&6
3260 fi
3261
3262 fi
3263
3264
3265
3266 echo $ac_n "checking for ruserpass""... $ac_c" 1>&6
3267 echo "configure:3268: checking for ruserpass" >&5
3268 if eval "test \"`echo '$''{'ac_cv_func_ruserpass'+set}'`\" = set"; then
3269 echo $ac_n "(cached) $ac_c" 1>&6
3270 else
3271 cat > conftest.$ac_ext <<EOF
3272 #line 3273 "configure"
3273 #include "confdefs.h"
3274 /* System header to define __stub macros and hopefully few prototypes,
3275 which can conflict with char ruserpass(); below. */
3276 #include <assert.h>
3277 /* Override any gcc2 internal prototype to avoid an error. */
3278 /* We use char because int might match the return type of a gcc2
3279 builtin and then its argument prototype would still apply. */
3280 char ruserpass();
3281
3282 int main() {
3283
3284 /* The GNU C library defines this for functions which it implements
3285 to always fail with ENOSYS. Some functions are actually named
3286 something starting with __ and the normal name is an alias. */
3287 #if defined (__stub_ruserpass) || defined (__stub___ruserpass)
3288 choke me
3289 #else
3290 ruserpass();
3291 #endif
3292
3293 ; return 0; }
3294 EOF
3295 if { (eval echo configure:3296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3296 rm -rf conftest*
3297 eval "ac_cv_func_ruserpass=yes"
3298 else
3299 echo "configure: failed program was:" >&5
3300 cat conftest.$ac_ext >&5
3301 rm -rf conftest*
3302 eval "ac_cv_func_ruserpass=no"
3303 fi
3304 rm -f conftest*
3305 fi
3306
3307 if eval "test \"`echo '$ac_cv_func_'ruserpass`\" = yes"; then
3308 echo "$ac_t""yes" 1>&6
3309 :
3310 else
3311 echo "$ac_t""no" 1>&6
3312 echo $ac_n "checking for _ruserpass""... $ac_c" 1>&6
3313 echo "configure:3314: checking for _ruserpass" >&5
3314 if eval "test \"`echo '$''{'ac_cv_func__ruserpass'+set}'`\" = set"; then
3315 echo $ac_n "(cached) $ac_c" 1>&6
3316 else
3317 cat > conftest.$ac_ext <<EOF
3318 #line 3319 "configure"
3319 #include "confdefs.h"
3320 /* System header to define __stub macros and hopefully few prototypes,
3321 which can conflict with char _ruserpass(); below. */
3322 #include <assert.h>
3323 /* Override any gcc2 internal prototype to avoid an error. */
3324 /* We use char because int might match the return type of a gcc2
3325 builtin and then its argument prototype would still apply. */
3326 char _ruserpass();
3327
3328 int main() {
3329
3330 /* The GNU C library defines this for functions which it implements
3331 to always fail with ENOSYS. Some functions are actually named
3332 something starting with __ and the normal name is an alias. */
3333 #if defined (__stub__ruserpass) || defined (__stub____ruserpass)
3334 choke me
3335 #else
3336 _ruserpass();
3337 #endif
3338
3339 ; return 0; }
3340 EOF
3341 if { (eval echo configure:3342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3342 rm -rf conftest*
3343 eval "ac_cv_func__ruserpass=yes"
3344 else
3345 echo "configure: failed program was:" >&5
3346 cat conftest.$ac_ext >&5
3347 rm -rf conftest*
3348 eval "ac_cv_func__ruserpass=no"
3349 fi
3350 rm -f conftest*
3351 fi
3352
3353 if eval "test \"`echo '$ac_cv_func_'_ruserpass`\" = yes"; then
3354 echo "$ac_t""yes" 1>&6
3355 :
3356 else
3357 echo "$ac_t""no" 1>&6
3358 echo $ac_n "checking for _ruserpass in -lsocket""... $ac_c" 1>&6
3359 echo "configure:3360: checking for _ruserpass in -lsocket" >&5
3360 ac_lib_var=`echo socket'_'_ruserpass | sed 'y%./+-%__p_%'`
3361 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3362 echo $ac_n "(cached) $ac_c" 1>&6
3363 else
3364 ac_save_LIBS="$LIBS"
3365 LIBS="-lsocket $LIBS"
3366 cat > conftest.$ac_ext <<EOF
3367 #line 3368 "configure"
3368 #include "confdefs.h"
3369 /* Override any gcc2 internal prototype to avoid an error. */
3370 /* We use char because int might match the return type of a gcc2
3371 builtin and then its argument prototype would still apply. */
3372 char _ruserpass();
3373
3374 int main() {
3375 _ruserpass()
3376 ; return 0; }
3377 EOF
3378 if { (eval echo configure:3379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3379 rm -rf conftest*
3380 eval "ac_cv_lib_$ac_lib_var=yes"
3381 else
3382 echo "configure: failed program was:" >&5
3383 cat conftest.$ac_ext >&5
3384 rm -rf conftest*
3385 eval "ac_cv_lib_$ac_lib_var=no"
3386 fi
3387 rm -f conftest*
3388 LIBS="$ac_save_LIBS"
3389
3390 fi
3391 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3392 echo "$ac_t""yes" 1>&6
3393 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
3394 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3395 cat >> confdefs.h <<EOF
3396 #define $ac_tr_lib 1
3397 EOF
3398
3399 LIBS="-lsocket $LIBS"
3400
3401 else
3402 echo "$ac_t""no" 1>&6
3403 fi
3404
3405 fi
3406
3407 fi
3408
3409 if test x$ac_cv_func_ruserpass = xno; then
3410 if test x$ac_cv_func__ruserpass = xyes -o x$ac_cv_lib_socket__ruserpass = xyes; then
3411 cat >> confdefs.h <<\EOF
3412 #define ruserpass _ruserpass
3413 EOF
3414
3415 else
3416 LIBOBJS="$LIBOBJS ruserpass.o"
3417 fi
3418 fi
3419
3420
3421 termcap_curses_order="termcap curses ncurses"
3422 for lib in $termcap_curses_order; do
3423 echo $ac_n "checking for tgetent in -l${lib}""... $ac_c" 1>&6
3424 echo "configure:3425: checking for tgetent in -l${lib}" >&5
3425 ac_lib_var=`echo ${lib}'_'tgetent | sed 'y%./+-%__p_%'`
3426 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3427 echo $ac_n "(cached) $ac_c" 1>&6
3428 else
3429 ac_save_LIBS="$LIBS"
3430 LIBS="-l${lib} $LIBS"
3431 cat > conftest.$ac_ext <<EOF
3432 #line 3433 "configure"
3433 #include "confdefs.h"
3434 /* Override any gcc2 internal prototype to avoid an error. */
3435 /* We use char because int might match the return type of a gcc2
3436 builtin and then its argument prototype would still apply. */
3437 char tgetent();
3438
3439 int main() {
3440 tgetent()
3441 ; return 0; }
3442 EOF
3443 if { (eval echo configure:3444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3444 rm -rf conftest*
3445 eval "ac_cv_lib_$ac_lib_var=yes"
3446 else
3447 echo "configure: failed program was:" >&5
3448 cat conftest.$ac_ext >&5
3449 rm -rf conftest*
3450 eval "ac_cv_lib_$ac_lib_var=no"
3451 fi
3452 rm -f conftest*
3453 LIBS="$ac_save_LIBS"
3454
3455 fi
3456 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3457 echo "$ac_t""yes" 1>&6
3458 TERMLIB="-l$lib"; break
3459 else
3460 echo "$ac_t""no" 1>&6
3461 fi
3462
3463 done
3464
3465
3466 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
3467 echo "configure:3468: checking for dbm_open" >&5
3468 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
3469 echo $ac_n "(cached) $ac_c" 1>&6
3470 else
3471 cat > conftest.$ac_ext <<EOF
3472 #line 3473 "configure"
3473 #include "confdefs.h"
3474 /* System header to define __stub macros and hopefully few prototypes,
3475 which can conflict with char dbm_open(); below. */
3476 #include <assert.h>
3477 /* Override any gcc2 internal prototype to avoid an error. */
3478 /* We use char because int might match the return type of a gcc2
3479 builtin and then its argument prototype would still apply. */
3480 char dbm_open();
3481
3482 int main() {
3483
3484 /* The GNU C library defines this for functions which it implements
3485 to always fail with ENOSYS. Some functions are actually named
3486 something starting with __ and the normal name is an alias. */
3487 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
3488 choke me
3489 #else
3490 dbm_open();
3491 #endif
3492
3493 ; return 0; }
3494 EOF
3495 if { (eval echo configure:3496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3496 rm -rf conftest*
3497 eval "ac_cv_func_dbm_open=yes"
3498 else
3499 echo "configure: failed program was:" >&5
3500 cat conftest.$ac_ext >&5
3501 rm -rf conftest*
3502 eval "ac_cv_func_dbm_open=no"
3503 fi
3504 rm -f conftest*
3505 fi
3506
3507 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
3508 echo "$ac_t""yes" 1>&6
3509 :
3510 else
3511 echo "$ac_t""no" 1>&6
3512 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
3513 echo "configure:3514: checking for dbm_open in -lndbm" >&5
3514 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
3515 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3516 echo $ac_n "(cached) $ac_c" 1>&6
3517 else
3518 ac_save_LIBS="$LIBS"
3519 LIBS="-lndbm $LIBS"
3520 cat > conftest.$ac_ext <<EOF
3521 #line 3522 "configure"
3522 #include "confdefs.h"
3523 /* Override any gcc2 internal prototype to avoid an error. */
3524 /* We use char because int might match the return type of a gcc2
3525 builtin and then its argument prototype would still apply. */
3526 char dbm_open();
3527
3528 int main() {
3529 dbm_open()
3530 ; return 0; }
3531 EOF
3532 if { (eval echo configure:3533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3533 rm -rf conftest*
3534 eval "ac_cv_lib_$ac_lib_var=yes"
3535 else
3536 echo "configure: failed program was:" >&5
3537 cat conftest.$ac_ext >&5
3538 rm -rf conftest*
3539 eval "ac_cv_lib_$ac_lib_var=no"
3540 fi
3541 rm -f conftest*
3542 LIBS="$ac_save_LIBS"
3543
3544 fi
3545 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3546 echo "$ac_t""yes" 1>&6
3547 ac_tr_lib=HAVE_LIB`echo ndbm | sed -e 's/^a-zA-Z0-9_/_/g' \
3548 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3549 cat >> confdefs.h <<EOF
3550 #define $ac_tr_lib 1
3551 EOF
3552
3553 LIBS="-lndbm $LIBS"
3554
3555 else
3556 echo "$ac_t""no" 1>&6
3557 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
3558 echo "configure:3559: checking for dbm_open in -ldbm" >&5
3559 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
3560 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3561 echo $ac_n "(cached) $ac_c" 1>&6
3562 else
3563 ac_save_LIBS="$LIBS"
3564 LIBS="-ldbm $LIBS"
3565 cat > conftest.$ac_ext <<EOF
3566 #line 3567 "configure"
3567 #include "confdefs.h"
3568 /* Override any gcc2 internal prototype to avoid an error. */
3569 /* We use char because int might match the return type of a gcc2
3570 builtin and then its argument prototype would still apply. */
3571 char dbm_open();
3572
3573 int main() {
3574 dbm_open()
3575 ; return 0; }
3576 EOF
3577 if { (eval echo configure:3578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3578 rm -rf conftest*
3579 eval "ac_cv_lib_$ac_lib_var=yes"
3580 else
3581 echo "configure: failed program was:" >&5
3582 cat conftest.$ac_ext >&5
3583 rm -rf conftest*
3584 eval "ac_cv_lib_$ac_lib_var=no"
3585 fi
3586 rm -f conftest*
3587 LIBS="$ac_save_LIBS"
3588
3589 fi
3590 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3591 echo "$ac_t""yes" 1>&6
3592 ac_tr_lib=HAVE_LIB`echo dbm | sed -e 's/^a-zA-Z0-9_/_/g' \
3593 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3594 cat >> confdefs.h <<EOF
3595 #define $ac_tr_lib 1
3596 EOF
3597
3598 LIBS="-ldbm $LIBS"
3599
3600 else
3601 echo "$ac_t""no" 1>&6
3602 fi
3603
3604 fi
3605
3606 fi
3607
3608
3609 for ac_hdr in db1/ndbm.h
3610 do
3611 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3612 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3613 echo "configure:3614: checking for $ac_hdr" >&5
3614 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3615 echo $ac_n "(cached) $ac_c" 1>&6
3616 else
3617 cat > conftest.$ac_ext <<EOF
3618 #line 3619 "configure"
3619 #include "confdefs.h"
3620 #include <$ac_hdr>
3621 EOF
3622 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3623 { (eval echo configure:3624: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3624 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3625 if test -z "$ac_err"; then
3626 rm -rf conftest*
3627 eval "ac_cv_header_$ac_safe=yes"
3628 else
3629 echo "$ac_err" >&5
3630 echo "configure: failed program was:" >&5
3631 cat conftest.$ac_ext >&5
3632 rm -rf conftest*
3633 eval "ac_cv_header_$ac_safe=no"
3634 fi
3635 rm -f conftest*
3636 fi
3637 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3638 echo "$ac_t""yes" 1>&6
3639 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3640 cat >> confdefs.h <<EOF
3641 #define $ac_tr_hdr 1
3642 EOF
3643
3644 else
3645 echo "$ac_t""no" 1>&6
3646 fi
3647 done
3648
3649
3650 if test x$with_hesiod != x -a x$with_hesiod != xno; then
3651 if test x$with_hesiod != xyes; then
3652 HESIOD_INCLUDES="-I$with_hesiod/include"
3653 HESIOD_LIBS="-L$with_hesiod/lib"
3654 fi
3655 echo $ac_n "checking for res_send""... $ac_c" 1>&6
3656 echo "configure:3657: checking for res_send" >&5
3657 if eval "test \"`echo '$''{'ac_cv_func_res_send'+set}'`\" = set"; then
3658 echo $ac_n "(cached) $ac_c" 1>&6
3659 else
3660 cat > conftest.$ac_ext <<EOF
3661 #line 3662 "configure"
3662 #include "confdefs.h"
3663 /* System header to define __stub macros and hopefully few prototypes,
3664 which can conflict with char res_send(); below. */
3665 #include <assert.h>
3666 /* Override any gcc2 internal prototype to avoid an error. */
3667 /* We use char because int might match the return type of a gcc2
3668 builtin and then its argument prototype would still apply. */
3669 char res_send();
3670
3671 int main() {
3672
3673 /* The GNU C library defines this for functions which it implements
3674 to always fail with ENOSYS. Some functions are actually named
3675 something starting with __ and the normal name is an alias. */
3676 #if defined (__stub_res_send) || defined (__stub___res_send)
3677 choke me
3678 #else
3679 res_send();
3680 #endif
3681
3682 ; return 0; }
3683 EOF
3684 if { (eval echo configure:3685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3685 rm -rf conftest*
3686 eval "ac_cv_func_res_send=yes"
3687 else
3688 echo "configure: failed program was:" >&5
3689 cat conftest.$ac_ext >&5
3690 rm -rf conftest*
3691 eval "ac_cv_func_res_send=no"
3692 fi
3693 rm -f conftest*
3694 fi
3695
3696 if eval "test \"`echo '$ac_cv_func_'res_send`\" = yes"; then
3697 echo "$ac_t""yes" 1>&6
3698 :
3699 else
3700 echo "$ac_t""no" 1>&6
3701 echo $ac_n "checking for res_send in -lresolv""... $ac_c" 1>&6
3702 echo "configure:3703: checking for res_send in -lresolv" >&5
3703 ac_lib_var=`echo resolv'_'res_send | sed 'y%./+-%__p_%'`
3704 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3705 echo $ac_n "(cached) $ac_c" 1>&6
3706 else
3707 ac_save_LIBS="$LIBS"
3708 LIBS="-lresolv $LIBS"
3709 cat > conftest.$ac_ext <<EOF
3710 #line 3711 "configure"
3711 #include "confdefs.h"
3712 /* Override any gcc2 internal prototype to avoid an error. */
3713 /* We use char because int might match the return type of a gcc2
3714 builtin and then its argument prototype would still apply. */
3715 char res_send();
3716
3717 int main() {
3718 res_send()
3719 ; return 0; }
3720 EOF
3721 if { (eval echo configure:3722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3722 rm -rf conftest*
3723 eval "ac_cv_lib_$ac_lib_var=yes"
3724 else
3725 echo "configure: failed program was:" >&5
3726 cat conftest.$ac_ext >&5
3727 rm -rf conftest*
3728 eval "ac_cv_lib_$ac_lib_var=no"
3729 fi
3730 rm -f conftest*
3731 LIBS="$ac_save_LIBS"
3732
3733 fi
3734 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3735 echo "$ac_t""yes" 1>&6
3736 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
3737 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3738 cat >> confdefs.h <<EOF
3739 #define $ac_tr_lib 1
3740 EOF
3741
3742 LIBS="-lresolv $LIBS"
3743
3744 else
3745 echo "$ac_t""no" 1>&6
3746 fi
3747
3748 fi
3749
3750 echo $ac_n "checking for hes_resolve in -lhesiod""... $ac_c" 1>&6
3751 echo "configure:3752: checking for hes_resolve in -lhesiod" >&5
3752 ac_lib_var=`echo hesiod'_'hes_resolve | sed 'y%./+-%__p_%'`
3753 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3754 echo $ac_n "(cached) $ac_c" 1>&6
3755 else
3756 ac_save_LIBS="$LIBS"
3757 LIBS="-lhesiod $HESIOD_LIBS $LIBS"
3758 cat > conftest.$ac_ext <<EOF
3759 #line 3760 "configure"
3760 #include "confdefs.h"
3761 /* Override any gcc2 internal prototype to avoid an error. */
3762 /* We use char because int might match the return type of a gcc2
3763 builtin and then its argument prototype would still apply. */
3764 char hes_resolve();
3765
3766 int main() {
3767 hes_resolve()
3768 ; return 0; }
3769 EOF
3770 if { (eval echo configure:3771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3771 rm -rf conftest*
3772 eval "ac_cv_lib_$ac_lib_var=yes"
3773 else
3774 echo "configure: failed program was:" >&5
3775 cat conftest.$ac_ext >&5
3776 rm -rf conftest*
3777 eval "ac_cv_lib_$ac_lib_var=no"
3778 fi
3779 rm -f conftest*
3780 LIBS="$ac_save_LIBS"
3781
3782 fi
3783 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3784 echo "$ac_t""yes" 1>&6
3785 HESIOD_LIBS="$HESIOD_LIBS -lhesiod"
3786 else
3787 echo "$ac_t""no" 1>&6
3788 { echo "configure: error: Hesiod library not found" 1>&2; exit 1; }
3789 fi
3790
3791 fi
3792
3793 if test x$with_krb4 != x -a x$with_krb4 != xno; then
3794 if test x$with_krb4 != xyes; then
3795 KRB4_INCLUDES="-I$with_krb4/include"
3796 if test -d "$with_krb4/include/kerberosIV"; then
3797 KRB4_INCLUDES="$KRB4_INCLUDES -I$with_krb4/include/kerberosIV"
3798 fi
3799 KRB4_LIBS="-L$with_krb4/lib"
3800 elif test -d /usr/include/kerberosIV; then
3801 KRB4_INCLUDES="-I/usr/include/kerberosIV"
3802 fi
3803 echo $ac_n "checking for krb_rd_req in -lkrb4""... $ac_c" 1>&6
3804 echo "configure:3805: checking for krb_rd_req in -lkrb4" >&5
3805 ac_lib_var=`echo krb4'_'krb_rd_req | sed 'y%./+-%__p_%'`
3806 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3807 echo $ac_n "(cached) $ac_c" 1>&6
3808 else
3809 ac_save_LIBS="$LIBS"
3810 LIBS="-lkrb4 $KRB4_LIBS -ldes425 -lkrb5 -lcrypto -lcom_err $LIBS"
3811 cat > conftest.$ac_ext <<EOF
3812 #line 3813 "configure"
3813 #include "confdefs.h"
3814 /* Override any gcc2 internal prototype to avoid an error. */
3815 /* We use char because int might match the return type of a gcc2
3816 builtin and then its argument prototype would still apply. */
3817 char krb_rd_req();
3818
3819 int main() {
3820 krb_rd_req()
3821 ; return 0; }
3822 EOF
3823 if { (eval echo configure:3824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3824 rm -rf conftest*
3825 eval "ac_cv_lib_$ac_lib_var=yes"
3826 else
3827 echo "configure: failed program was:" >&5
3828 cat conftest.$ac_ext >&5
3829 rm -rf conftest*
3830 eval "ac_cv_lib_$ac_lib_var=no"
3831 fi
3832 rm -f conftest*
3833 LIBS="$ac_save_LIBS"
3834
3835 fi
3836 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3837 echo "$ac_t""yes" 1>&6
3838 KRB4_LIBS="$KRB4_LIBS -lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err"
3839 else
3840 echo "$ac_t""no" 1>&6
3841 echo $ac_n "checking for krb_rd_req in -lkrb""... $ac_c" 1>&6
3842 echo "configure:3843: checking for krb_rd_req in -lkrb" >&5
3843 ac_lib_var=`echo krb'_'krb_rd_req | sed 'y%./+-%__p_%'`
3844 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3845 echo $ac_n "(cached) $ac_c" 1>&6
3846 else
3847 ac_save_LIBS="$LIBS"
3848 LIBS="-lkrb $KRB4_LIBS -ldes $LIBS"
3849 cat > conftest.$ac_ext <<EOF
3850 #line 3851 "configure"
3851 #include "confdefs.h"
3852 /* Override any gcc2 internal prototype to avoid an error. */
3853 /* We use char because int might match the return type of a gcc2
3854 builtin and then its argument prototype would still apply. */
3855 char krb_rd_req();
3856
3857 int main() {
3858 krb_rd_req()
3859 ; return 0; }
3860 EOF
3861 if { (eval echo configure:3862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3862 rm -rf conftest*
3863 eval "ac_cv_lib_$ac_lib_var=yes"
3864 else
3865 echo "configure: failed program was:" >&5
3866 cat conftest.$ac_ext >&5
3867 rm -rf conftest*
3868 eval "ac_cv_lib_$ac_lib_var=no"
3869 fi
3870 rm -f conftest*
3871 LIBS="$ac_save_LIBS"
3872
3873 fi
3874 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3875 echo "$ac_t""yes" 1>&6
3876 KRB4_LIBS="$KRB4_LIBS -lkrb -ldes"
3877 else
3878 echo "$ac_t""no" 1>&6
3879 { echo "configure: error: Kerberos 4 libraries not found" 1>&2; exit 1; }
3880 fi
3881
3882 fi
3883
3884 fi
3885
3886
3887 nmh_save_LIBS="$LIBS"
3888 LIBS="$TERMLIB $LIBS"
3889
3890 echo $ac_n "checking if an include file defines ospeed""... $ac_c" 1>&6
3891 echo "configure:3892: checking if an include file defines ospeed" >&5
3892 if eval "test \"`echo '$''{'nmh_cv_decl_ospeed_include_defines'+set}'`\" = set"; then
3893 echo $ac_n "(cached) $ac_c" 1>&6
3894 else
3895 cat > conftest.$ac_ext <<EOF
3896 #line 3897 "configure"
3897 #include "confdefs.h"
3898 #include <sys/types.h>
3899 #if HAVE_TERMIOS_H
3900 #include <termios.h>
3901 #endif
3902 #if HAVE_TERMCAP_H
3903 #include <termcap.h>
3904 #endif
3905 int main() {
3906 ospeed = 0;
3907 ; return 0; }
3908 EOF
3909 if { (eval echo configure:3910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3910 rm -rf conftest*
3911 nmh_cv_decl_ospeed_include_defines=yes
3912 else
3913 echo "configure: failed program was:" >&5
3914 cat conftest.$ac_ext >&5
3915 rm -rf conftest*
3916 nmh_cv_decl_ospeed_include_defines=no
3917 fi
3918 rm -f conftest*
3919 fi
3920
3921 echo "$ac_t""$nmh_cv_decl_ospeed_include_defines" 1>&6
3922
3923 if test $nmh_cv_decl_ospeed_include_defines = no; then
3924 echo $ac_n "checking if you must define ospeed""... $ac_c" 1>&6
3925 echo "configure:3926: checking if you must define ospeed" >&5
3926 if eval "test \"`echo '$''{'nmh_cv_decl_ospeed_must_define'+set}'`\" = set"; then
3927 echo $ac_n "(cached) $ac_c" 1>&6
3928 else
3929 cat > conftest.$ac_ext <<EOF
3930 #line 3931 "configure"
3931 #include "confdefs.h"
3932
3933 int main() {
3934 extern short ospeed; ospeed = 0;
3935 ; return 0; }
3936 EOF
3937 if { (eval echo configure:3938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3938 rm -rf conftest*
3939 nmh_cv_decl_ospeed_must_define=yes
3940 else
3941 echo "configure: failed program was:" >&5
3942 cat conftest.$ac_ext >&5
3943 rm -rf conftest*
3944 nmh_cv_decl_ospeed_must_define=no
3945 fi
3946 rm -f conftest*
3947 fi
3948
3949 echo "$ac_t""$nmh_cv_decl_ospeed_must_define" 1>&6
3950 fi
3951
3952 if test $nmh_cv_decl_ospeed_include_defines = yes; then
3953 cat >> confdefs.h <<\EOF
3954 #define HAVE_OSPEED 1
3955 EOF
3956
3957 elif test $nmh_cv_decl_ospeed_must_define = yes; then
3958 cat >> confdefs.h <<\EOF
3959 #define HAVE_OSPEED 1
3960 EOF
3961
3962 cat >> confdefs.h <<\EOF
3963 #define MUST_DEFINE_OSPEED 1
3964 EOF
3965
3966 fi
3967
3968
3969 LIBS="$nmh_save_LIBS"
3970
3971 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3972 echo "configure:3973: checking return type of signal handlers" >&5
3973 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3974 echo $ac_n "(cached) $ac_c" 1>&6
3975 else
3976 cat > conftest.$ac_ext <<EOF
3977 #line 3978 "configure"
3978 #include "confdefs.h"
3979 #include <sys/types.h>
3980 #include <signal.h>
3981 #ifdef signal
3982 #undef signal
3983 #endif
3984 #ifdef __cplusplus
3985 extern "C" void (*signal (int, void (*)(int)))(int);
3986 #else
3987 void (*signal ()) ();
3988 #endif
3989
3990 int main() {
3991 int i;
3992 ; return 0; }
3993 EOF
3994 if { (eval echo configure:3995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3995 rm -rf conftest*
3996 ac_cv_type_signal=void
3997 else
3998 echo "configure: failed program was:" >&5
3999 cat conftest.$ac_ext >&5
4000 rm -rf conftest*
4001 ac_cv_type_signal=int
4002 fi
4003 rm -f conftest*
4004 fi
4005
4006 echo "$ac_t""$ac_cv_type_signal" 1>&6
4007 cat >> confdefs.h <<EOF
4008 #define RETSIGTYPE $ac_cv_type_signal
4009 EOF
4010
4011
4012 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
4013 echo "configure:4014: checking for pid_t" >&5
4014 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
4015 echo $ac_n "(cached) $ac_c" 1>&6
4016 else
4017 cat > conftest.$ac_ext <<EOF
4018 #line 4019 "configure"
4019 #include "confdefs.h"
4020 #include <sys/types.h>
4021 #if STDC_HEADERS
4022 #include <stdlib.h>
4023 #include <stddef.h>
4024 #endif
4025 EOF
4026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4027 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4028 rm -rf conftest*
4029 ac_cv_type_pid_t=yes
4030 else
4031 rm -rf conftest*
4032 ac_cv_type_pid_t=no
4033 fi
4034 rm -f conftest*
4035
4036 fi
4037 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
4038 if test $ac_cv_type_pid_t = no; then
4039 cat >> confdefs.h <<\EOF
4040 #define pid_t int
4041 EOF
4042
4043 fi
4044
4045 echo $ac_n "checking for off_t""... $ac_c" 1>&6
4046 echo "configure:4047: checking for off_t" >&5
4047 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
4048 echo $ac_n "(cached) $ac_c" 1>&6
4049 else
4050 cat > conftest.$ac_ext <<EOF
4051 #line 4052 "configure"
4052 #include "confdefs.h"
4053 #include <sys/types.h>
4054 #if STDC_HEADERS
4055 #include <stdlib.h>
4056 #include <stddef.h>
4057 #endif
4058 EOF
4059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4060 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4061 rm -rf conftest*
4062 ac_cv_type_off_t=yes
4063 else
4064 rm -rf conftest*
4065 ac_cv_type_off_t=no
4066 fi
4067 rm -f conftest*
4068
4069 fi
4070 echo "$ac_t""$ac_cv_type_off_t" 1>&6
4071 if test $ac_cv_type_off_t = no; then
4072 cat >> confdefs.h <<\EOF
4073 #define off_t long
4074 EOF
4075
4076 fi
4077
4078 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
4079 echo "configure:4080: checking for uid_t in sys/types.h" >&5
4080 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
4081 echo $ac_n "(cached) $ac_c" 1>&6
4082 else
4083 cat > conftest.$ac_ext <<EOF
4084 #line 4085 "configure"
4085 #include "confdefs.h"
4086 #include <sys/types.h>
4087 EOF
4088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4089 egrep "uid_t" >/dev/null 2>&1; then
4090 rm -rf conftest*
4091 ac_cv_type_uid_t=yes
4092 else
4093 rm -rf conftest*
4094 ac_cv_type_uid_t=no
4095 fi
4096 rm -f conftest*
4097
4098 fi
4099
4100 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
4101 if test $ac_cv_type_uid_t = no; then
4102 cat >> confdefs.h <<\EOF
4103 #define uid_t int
4104 EOF
4105
4106 cat >> confdefs.h <<\EOF
4107 #define gid_t int
4108 EOF
4109
4110 fi
4111
4112 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
4113 echo "configure:4114: checking for mode_t" >&5
4114 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
4115 echo $ac_n "(cached) $ac_c" 1>&6
4116 else
4117 cat > conftest.$ac_ext <<EOF
4118 #line 4119 "configure"
4119 #include "confdefs.h"
4120 #include <sys/types.h>
4121 #if STDC_HEADERS
4122 #include <stdlib.h>
4123 #include <stddef.h>
4124 #endif
4125 EOF
4126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4127 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4128 rm -rf conftest*
4129 ac_cv_type_mode_t=yes
4130 else
4131 rm -rf conftest*
4132 ac_cv_type_mode_t=no
4133 fi
4134 rm -f conftest*
4135
4136 fi
4137 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
4138 if test $ac_cv_type_mode_t = no; then
4139 cat >> confdefs.h <<\EOF
4140 #define mode_t int
4141 EOF
4142
4143 fi
4144
4145 echo $ac_n "checking for size_t""... $ac_c" 1>&6
4146 echo "configure:4147: checking for size_t" >&5
4147 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
4148 echo $ac_n "(cached) $ac_c" 1>&6
4149 else
4150 cat > conftest.$ac_ext <<EOF
4151 #line 4152 "configure"
4152 #include "confdefs.h"
4153 #include <sys/types.h>
4154 #if STDC_HEADERS
4155 #include <stdlib.h>
4156 #include <stddef.h>
4157 #endif
4158 EOF
4159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4160 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4161 rm -rf conftest*
4162 ac_cv_type_size_t=yes
4163 else
4164 rm -rf conftest*
4165 ac_cv_type_size_t=no
4166 fi
4167 rm -f conftest*
4168
4169 fi
4170 echo "$ac_t""$ac_cv_type_size_t" 1>&6
4171 if test $ac_cv_type_size_t = no; then
4172 cat >> confdefs.h <<\EOF
4173 #define size_t unsigned
4174 EOF
4175
4176 fi
4177
4178
4179 echo $ac_n "checking for sigset_t""... $ac_c" 1>&6
4180 echo "configure:4181: checking for sigset_t" >&5
4181 if eval "test \"`echo '$''{'nmh_cv_type_sigset_t'+set}'`\" = set"; then
4182 echo $ac_n "(cached) $ac_c" 1>&6
4183 else
4184 cat > conftest.$ac_ext <<EOF
4185 #line 4186 "configure"
4186 #include "confdefs.h"
4187 #include <sys/types.h>
4188 #include <signal.h>
4189 int main() {
4190 sigset_t tempsigset;
4191 ; return 0; }
4192 EOF
4193 if { (eval echo configure:4194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4194 rm -rf conftest*
4195 nmh_cv_type_sigset_t=yes
4196 else
4197 echo "configure: failed program was:" >&5
4198 cat conftest.$ac_ext >&5
4199 rm -rf conftest*
4200 nmh_cv_type_sigset_t=no
4201 fi
4202 rm -f conftest*
4203 fi
4204
4205 echo "$ac_t""$nmh_cv_type_sigset_t" 1>&6
4206 if test $nmh_cv_type_sigset_t = no; then
4207 cat >> confdefs.h <<\EOF
4208 #define sigset_t unsigned int
4209 EOF
4210
4211 fi
4212
4213 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
4214 echo "configure:4215: checking for st_blksize in struct stat" >&5
4215 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
4216 echo $ac_n "(cached) $ac_c" 1>&6
4217 else
4218 cat > conftest.$ac_ext <<EOF
4219 #line 4220 "configure"
4220 #include "confdefs.h"
4221 #include <sys/types.h>
4222 #include <sys/stat.h>
4223 int main() {
4224 struct stat s; s.st_blksize;
4225 ; return 0; }
4226 EOF
4227 if { (eval echo configure:4228: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4228 rm -rf conftest*
4229 ac_cv_struct_st_blksize=yes
4230 else
4231 echo "configure: failed program was:" >&5
4232 cat conftest.$ac_ext >&5
4233 rm -rf conftest*
4234 ac_cv_struct_st_blksize=no
4235 fi
4236 rm -f conftest*
4237 fi
4238
4239 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
4240 if test $ac_cv_struct_st_blksize = yes; then
4241 cat >> confdefs.h <<\EOF
4242 #define HAVE_ST_BLKSIZE 1
4243 EOF
4244
4245 fi
4246
4247
4248 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
4249 echo "configure:4250: checking for tm_gmtoff in struct tm" >&5
4250 if eval "test \"`echo '$''{'nmh_cv_struct_tm_gmtoff'+set}'`\" = set"; then
4251 echo $ac_n "(cached) $ac_c" 1>&6
4252 else
4253 cat > conftest.$ac_ext <<EOF
4254 #line 4255 "configure"
4255 #include "confdefs.h"
4256 #ifdef TIME_WITH_SYS_TIME
4257 # include <sys/time.h>
4258 # include <time.h>
4259 #else
4260 # ifdef TM_IN_SYS_TIME
4261 # include <sys/time.h>
4262 # else
4263 # include <time.h>
4264 # endif
4265 #endif
4266 int main() {
4267 struct tm temptm; temptm.tm_gmtoff = 0;
4268 ; return 0; }
4269 EOF
4270 if { (eval echo configure:4271: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4271 rm -rf conftest*
4272 nmh_cv_struct_tm_gmtoff=yes
4273 else
4274 echo "configure: failed program was:" >&5
4275 cat conftest.$ac_ext >&5
4276 rm -rf conftest*
4277 nmh_cv_struct_tm_gmtoff=no
4278 fi
4279 rm -f conftest*
4280 fi
4281
4282 echo "$ac_t""$nmh_cv_struct_tm_gmtoff" 1>&6
4283 if test $nmh_cv_struct_tm_gmtoff = yes; then
4284 cat >> confdefs.h <<\EOF
4285 #define HAVE_TM_GMTOFF 1
4286 EOF
4287
4288 fi
4289
4290 echo $ac_n "checking what style of signals to use""... $ac_c" 1>&6
4291 echo "configure:4292: checking what style of signals to use" >&5
4292 if test $ac_cv_func_sigaction = yes -a $ac_cv_func_sigprocmask = yes; then
4293 signals_style=POSIX_SIGNALS
4294 cat >> confdefs.h <<\EOF
4295 #define POSIX_SIGNALS 1
4296 EOF
4297
4298 cat >> confdefs.h <<\EOF
4299 #define RELIABLE_SIGNALS 1
4300 EOF
4301
4302 elif test $ac_cv_func_sigblock = yes -a $ac_cv_func_sigsetmask = yes; then
4303 signals_style=BSD_SIGNALS
4304 cat >> confdefs.h <<\EOF
4305 #define BSD_SIGNALS 1
4306 EOF
4307
4308 cat >> confdefs.h <<\EOF
4309 #define RELIABLE_SIGNALS 1
4310 EOF
4311
4312 elif test $ac_cv_func_sighold = yes -a $ac_cv_func_sigrelse = yes; then
4313 signals_style=SYSV_SIGNALS
4314 cat >> confdefs.h <<\EOF
4315 #define SYSV_SIGNALS 1
4316 EOF
4317
4318 else
4319 signals_style=NO_SIGNAL_BLOCKING
4320 cat >> confdefs.h <<\EOF
4321 #define NO_SIGNAL_BLOCKING 1
4322 EOF
4323
4324 fi
4325
4326 echo "$ac_t""$signals_style" 1>&6
4327
4328 echo $ac_n "checking where signal.h is located""... $ac_c" 1>&6
4329 echo "configure:4330: checking where signal.h is located" >&5
4330 if eval "test \"`echo '$''{'nmh_cv_path_signal_h'+set}'`\" = set"; then
4331 echo $ac_n "(cached) $ac_c" 1>&6
4332 else
4333 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
4334 test -f $SIGNAL_H && \
4335 grep '#[ ]*define[ ][ ]*SIG[0-9A-Z]*[ ]*[0-9][0-9]*' $SIGNAL_H > /dev/null && \
4336 break
4337 done
4338 nmh_cv_path_signal_h=$SIGNAL_H
4339
4340 fi
4341
4342 echo "$ac_t""$nmh_cv_path_signal_h" 1>&6
4343 SIGNAL_H=$nmh_cv_path_signal_h
4344
4345 case "$target_os" in
4346
4347 solaris2*)
4348 cat >> confdefs.h <<\EOF
4349 #define SYS5 1
4350 EOF
4351
4352 cat >> confdefs.h <<\EOF
4353 #define SVR4 1
4354 EOF
4355
4356 ;;
4357 irix*)
4358 cat >> confdefs.h <<\EOF
4359 #define SYS5 1
4360 EOF
4361
4362 cat >> confdefs.h <<\EOF
4363 #define SVR4 1
4364 EOF
4365
4366 ;;
4367 osf*)
4368 cat >> confdefs.h <<\EOF
4369 #define SYS5 1
4370 EOF
4371
4372 cat >> confdefs.h <<\EOF
4373 #define SVR4 1
4374 EOF
4375
4376 ;;
4377 aix*)
4378 cat >> confdefs.h <<\EOF
4379 #define SYS5 1
4380 EOF
4381
4382 cat >> confdefs.h <<\EOF
4383 #define SVR4 1
4384 EOF
4385
4386 ;;
4387 sunos4*)
4388 cat >> confdefs.h <<\EOF
4389 #define BSD42 1
4390 EOF
4391
4392 ;;
4393 freebsd*)
4394 cat >> confdefs.h <<\EOF
4395 #define BSD42 1
4396 EOF
4397
4398 cat >> confdefs.h <<\EOF
4399 #define BSD44 1
4400 EOF
4401
4402 ;;
4403 netbsd*)
4404 cat >> confdefs.h <<\EOF
4405 #define BSD42 1
4406 EOF
4407
4408 cat >> confdefs.h <<\EOF
4409 #define BSD44 1
4410 EOF
4411
4412 ;;
4413 openbsd*)
4414 cat >> confdefs.h <<\EOF
4415 #define BSD42 1
4416 EOF
4417
4418 cat >> confdefs.h <<\EOF
4419 #define BSD44 1
4420 EOF
4421
4422 ;;
4423 bsd/os*)
4424 cat >> confdefs.h <<\EOF
4425 #define BSD42 1
4426 EOF
4427
4428 cat >> confdefs.h <<\EOF
4429 #define BSD44 1
4430 EOF
4431
4432 ;;
4433 sco5*)
4434 cat >> confdefs.h <<\EOF
4435 #define SYS5 1
4436 EOF
4437
4438 cat >> confdefs.h <<\EOF
4439 #define SCO_5_STDIO 1
4440 EOF
4441
4442 ;;
4443 esac
4444
4445
4446 trap '' 1 2 15
4447 cat > confcache <<\EOF
4448 # This file is a shell script that caches the results of configure
4449 # tests run on this system so they can be shared between configure
4450 # scripts and configure runs. It is not useful on other systems.
4451 # If it contains results you don't want to keep, you may remove or edit it.
4452 #
4453 # By default, configure uses ./config.cache as the cache file,
4454 # creating it if it does not exist already. You can give configure
4455 # the --cache-file=FILE option to use a different cache file; that is
4456 # what configure does when it calls configure scripts in
4457 # subdirectories, so they share the cache.
4458 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4459 # config.status only pays attention to the cache file if you give it the
4460 # --recheck option to rerun configure.
4461 #
4462 EOF
4463 # The following way of writing the cache mishandles newlines in values,
4464 # but we know of no workaround that is simple, portable, and efficient.
4465 # So, don't put newlines in cache variables' values.
4466 # Ultrix sh set writes to stderr and can't be redirected directly,
4467 # and sets the high bit in the cache file unless we assign to the vars.
4468 (set) 2>&1 |
4469 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4470 *ac_space=\ *)
4471 # `set' does not quote correctly, so add quotes (double-quote substitution
4472 # turns \\\\ into \\, and sed turns \\ into \).
4473 sed -n \
4474 -e "s/'/'\\\\''/g" \
4475 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4476 ;;
4477 *)
4478 # `set' quotes correctly as required by POSIX, so do not add quotes.
4479 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4480 ;;
4481 esac >> confcache
4482 if cmp -s $cache_file confcache; then
4483 :
4484 else
4485 if test -w $cache_file; then
4486 echo "updating cache $cache_file"
4487 cat confcache > $cache_file
4488 else
4489 echo "not updating unwritable cache $cache_file"
4490 fi
4491 fi
4492 rm -f confcache
4493
4494 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4495
4496 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4497 # Let make expand exec_prefix.
4498 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4499
4500 # Any assignment to VPATH causes Sun make to only execute
4501 # the first set of double-colon rules, so remove it if not needed.
4502 # If there is a colon in the path, we need to keep it.
4503 if test "x$srcdir" = x.; then
4504 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4505 fi
4506
4507 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4508
4509 DEFS=-DHAVE_CONFIG_H
4510
4511 # Without the "./", some shells look in PATH for config.status.
4512 : ${CONFIG_STATUS=./config.status}
4513
4514 echo creating $CONFIG_STATUS
4515 rm -f $CONFIG_STATUS
4516 cat > $CONFIG_STATUS <<EOF
4517 #! /bin/sh
4518 # Generated automatically by configure.
4519 # Run this file to recreate the current configuration.
4520 # This directory was configured as follows,
4521 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4522 #
4523 # $0 $ac_configure_args
4524 #
4525 # Compiler output produced by configure, useful for debugging
4526 # configure, is in ./config.log if it exists.
4527
4528 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4529 for ac_option
4530 do
4531 case "\$ac_option" in
4532 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4533 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4534 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4535 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4536 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4537 exit 0 ;;
4538 -help | --help | --hel | --he | --h)
4539 echo "\$ac_cs_usage"; exit 0 ;;
4540 *) echo "\$ac_cs_usage"; exit 1 ;;
4541 esac
4542 done
4543
4544 ac_given_srcdir=$srcdir
4545 ac_given_INSTALL="$INSTALL"
4546
4547 trap 'rm -fr `echo "Makefile config/Makefile h/Makefile sbr/Makefile uip/Makefile \
4548 zotnet/Makefile zotnet/mts/Makefile zotnet/tws/Makefile \
4549 zotnet/mf/Makefile zotnet/bboards/Makefile mts/Makefile \
4550 mts/smtp/Makefile mts/sendmail/Makefile mts/mmdf/Makefile \
4551 etc/Makefile man/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4552 EOF
4553 cat >> $CONFIG_STATUS <<EOF
4554
4555 # Protect against being on the right side of a sed subst in config.status.
4556 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4557 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4558 $ac_vpsub
4559 $extrasub
4560 s%@SHELL@%$SHELL%g
4561 s%@CFLAGS@%$CFLAGS%g
4562 s%@CPPFLAGS@%$CPPFLAGS%g
4563 s%@CXXFLAGS@%$CXXFLAGS%g
4564 s%@FFLAGS@%$FFLAGS%g
4565 s%@DEFS@%$DEFS%g
4566 s%@LDFLAGS@%$LDFLAGS%g
4567 s%@LIBS@%$LIBS%g
4568 s%@exec_prefix@%$exec_prefix%g
4569 s%@prefix@%$prefix%g
4570 s%@program_transform_name@%$program_transform_name%g
4571 s%@bindir@%$bindir%g
4572 s%@sbindir@%$sbindir%g
4573 s%@libexecdir@%$libexecdir%g
4574 s%@datadir@%$datadir%g
4575 s%@sysconfdir@%$sysconfdir%g
4576 s%@sharedstatedir@%$sharedstatedir%g
4577 s%@localstatedir@%$localstatedir%g
4578 s%@libdir@%$libdir%g
4579 s%@includedir@%$includedir%g
4580 s%@oldincludedir@%$oldincludedir%g
4581 s%@infodir@%$infodir%g
4582 s%@mandir@%$mandir%g
4583 s%@host@%$host%g
4584 s%@host_alias@%$host_alias%g
4585 s%@host_cpu@%$host_cpu%g
4586 s%@host_vendor@%$host_vendor%g
4587 s%@host_os@%$host_os%g
4588 s%@target@%$target%g
4589 s%@target_alias@%$target_alias%g
4590 s%@target_cpu@%$target_cpu%g
4591 s%@target_vendor@%$target_vendor%g
4592 s%@target_os@%$target_os%g
4593 s%@build@%$build%g
4594 s%@build_alias@%$build_alias%g
4595 s%@build_cpu@%$build_cpu%g
4596 s%@build_vendor@%$build_vendor%g
4597 s%@build_os@%$build_os%g
4598 s%@VERSION@%$VERSION%g
4599 s%@MTS@%$MTS%g
4600 s%@MTSLIB@%$MTSLIB%g
4601 s%@POPLIB@%$POPLIB%g
4602 s%@POPSED@%$POPSED%g
4603 s%@CC@%$CC%g
4604 s%@SET_MAKE@%$SET_MAKE%g
4605 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4606 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4607 s%@INSTALL_DATA@%$INSTALL_DATA%g
4608 s%@RANLIB@%$RANLIB%g
4609 s%@AWK@%$AWK%g
4610 s%@LEX@%$LEX%g
4611 s%@LEXLIB@%$LEXLIB%g
4612 s%@cutpath@%$cutpath%g
4613 s%@LIBTOOL@%$LIBTOOL%g
4614 s%@GNU_LIBTOOL@%$GNU_LIBTOOL%g
4615 s%@LORDER@%$LORDER%g
4616 s%@TSORT@%$TSORT%g
4617 s%@lspath@%$lspath%g
4618 s%@morepath@%$morepath%g
4619 s%@pagerpath@%$pagerpath%g
4620 s%@sendmailpath@%$sendmailpath%g
4621 s%@vipath@%$vipath%g
4622 s%@editorpath@%$editorpath%g
4623 s%@mailspool@%$mailspool%g
4624 s%@SETGID_MAIL@%$SETGID_MAIL%g
4625 s%@MAIL_SPOOL_GRP@%$MAIL_SPOOL_GRP%g
4626 s%@CPP@%$CPP%g
4627 s%@LIBOBJS@%$LIBOBJS%g
4628 s%@TERMLIB@%$TERMLIB%g
4629 s%@HESIOD_INCLUDES@%$HESIOD_INCLUDES%g
4630 s%@HESIOD_LIBS@%$HESIOD_LIBS%g
4631 s%@KRB4_INCLUDES@%$KRB4_INCLUDES%g
4632 s%@KRB4_LIBS@%$KRB4_LIBS%g
4633 s%@SIGNAL_H@%$SIGNAL_H%g
4634
4635 CEOF
4636 EOF
4637
4638 cat >> $CONFIG_STATUS <<\EOF
4639
4640 # Split the substitutions into bite-sized pieces for seds with
4641 # small command number limits, like on Digital OSF/1 and HP-UX.
4642 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4643 ac_file=1 # Number of current file.
4644 ac_beg=1 # First line for current file.
4645 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4646 ac_more_lines=:
4647 ac_sed_cmds=""
4648 while $ac_more_lines; do
4649 if test $ac_beg -gt 1; then
4650 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4651 else
4652 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4653 fi
4654 if test ! -s conftest.s$ac_file; then
4655 ac_more_lines=false
4656 rm -f conftest.s$ac_file
4657 else
4658 if test -z "$ac_sed_cmds"; then
4659 ac_sed_cmds="sed -f conftest.s$ac_file"
4660 else
4661 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4662 fi
4663 ac_file=`expr $ac_file + 1`
4664 ac_beg=$ac_end
4665 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4666 fi
4667 done
4668 if test -z "$ac_sed_cmds"; then
4669 ac_sed_cmds=cat
4670 fi
4671 EOF
4672
4673 cat >> $CONFIG_STATUS <<EOF
4674
4675 CONFIG_FILES=\${CONFIG_FILES-"Makefile config/Makefile h/Makefile sbr/Makefile uip/Makefile \
4676 zotnet/Makefile zotnet/mts/Makefile zotnet/tws/Makefile \
4677 zotnet/mf/Makefile zotnet/bboards/Makefile mts/Makefile \
4678 mts/smtp/Makefile mts/sendmail/Makefile mts/mmdf/Makefile \
4679 etc/Makefile man/Makefile"}
4680 EOF
4681 cat >> $CONFIG_STATUS <<\EOF
4682 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4683 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4684 case "$ac_file" in
4685 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4686 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4687 *) ac_file_in="${ac_file}.in" ;;
4688 esac
4689
4690 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4691
4692 # Remove last slash and all that follows it. Not all systems have dirname.
4693 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4694 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4695 # The file is in a subdirectory.
4696 test ! -d "$ac_dir" && mkdir "$ac_dir"
4697 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4698 # A "../" for each directory in $ac_dir_suffix.
4699 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4700 else
4701 ac_dir_suffix= ac_dots=
4702 fi
4703
4704 case "$ac_given_srcdir" in
4705 .) srcdir=.
4706 if test -z "$ac_dots"; then top_srcdir=.
4707 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4708 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4709 *) # Relative path.
4710 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4711 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4712 esac
4713
4714 case "$ac_given_INSTALL" in
4715 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4716 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4717 esac
4718
4719 echo creating "$ac_file"
4720 rm -f "$ac_file"
4721 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4722 case "$ac_file" in
4723 *Makefile*) ac_comsub="1i\\
4724 # $configure_input" ;;
4725 *) ac_comsub= ;;
4726 esac
4727
4728 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4729 sed -e "$ac_comsub
4730 s%@configure_input@%$configure_input%g
4731 s%@srcdir@%$srcdir%g
4732 s%@top_srcdir@%$top_srcdir%g
4733 s%@INSTALL@%$INSTALL%g
4734 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4735 fi; done
4736 rm -f conftest.s*
4737
4738 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4739 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4740 #
4741 # ac_d sets the value in "#define NAME VALUE" lines.
4742 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4743 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4744 ac_dC='\3'
4745 ac_dD='%g'
4746 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4747 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4748 ac_uB='\([ ]\)%\1#\2define\3'
4749 ac_uC=' '
4750 ac_uD='\4%g'
4751 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4752 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4753 ac_eB='$%\1#\2define\3'
4754 ac_eC=' '
4755 ac_eD='%g'
4756
4757 if test "${CONFIG_HEADERS+set}" != set; then
4758 EOF
4759 cat >> $CONFIG_STATUS <<EOF
4760 CONFIG_HEADERS="config.h"
4761 EOF
4762 cat >> $CONFIG_STATUS <<\EOF
4763 fi
4764 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4765 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4766 case "$ac_file" in
4767 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4768 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4769 *) ac_file_in="${ac_file}.in" ;;
4770 esac
4771
4772 echo creating $ac_file
4773
4774 rm -f conftest.frag conftest.in conftest.out
4775 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4776 cat $ac_file_inputs > conftest.in
4777
4778 EOF
4779
4780 # Transform confdefs.h into a sed script conftest.vals that substitutes
4781 # the proper values into config.h.in to produce config.h. And first:
4782 # Protect against being on the right side of a sed subst in config.status.
4783 # Protect against being in an unquoted here document in config.status.
4784 rm -f conftest.vals
4785 cat > conftest.hdr <<\EOF
4786 s/[\\&%]/\\&/g
4787 s%[\\$`]%\\&%g
4788 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4789 s%ac_d%ac_u%gp
4790 s%ac_u%ac_e%gp
4791 EOF
4792 sed -n -f conftest.hdr confdefs.h > conftest.vals
4793 rm -f conftest.hdr
4794
4795 # This sed command replaces #undef with comments. This is necessary, for
4796 # example, in the case of _POSIX_SOURCE, which is predefined and required
4797 # on some systems where configure will not decide to define it.
4798 cat >> conftest.vals <<\EOF
4799 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4800 EOF
4801
4802 # Break up conftest.vals because some shells have a limit on
4803 # the size of here documents, and old seds have small limits too.
4804
4805 rm -f conftest.tail
4806 while :
4807 do
4808 ac_lines=`grep -c . conftest.vals`
4809 # grep -c gives empty output for an empty file on some AIX systems.
4810 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4811 # Write a limited-size here document to conftest.frag.
4812 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4813 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4814 echo 'CEOF
4815 sed -f conftest.frag conftest.in > conftest.out
4816 rm -f conftest.in
4817 mv conftest.out conftest.in
4818 ' >> $CONFIG_STATUS
4819 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4820 rm -f conftest.vals
4821 mv conftest.tail conftest.vals
4822 done
4823 rm -f conftest.vals
4824
4825 cat >> $CONFIG_STATUS <<\EOF
4826 rm -f conftest.frag conftest.h
4827 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4828 cat conftest.in >> conftest.h
4829 rm -f conftest.in
4830 if cmp -s $ac_file conftest.h 2>/dev/null; then
4831 echo "$ac_file is unchanged"
4832 rm -f conftest.h
4833 else
4834 # Remove last slash and all that follows it. Not all systems have dirname.
4835 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4836 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4837 # The file is in a subdirectory.
4838 test ! -d "$ac_dir" && mkdir "$ac_dir"
4839 fi
4840 rm -f $ac_file
4841 mv conftest.h $ac_file
4842 fi
4843 fi; done
4844
4845 EOF
4846 cat >> $CONFIG_STATUS <<EOF
4847
4848 EOF
4849 cat >> $CONFIG_STATUS <<\EOF
4850 \
4851 test -z "$CONFIG_HEADERS" || echo > stamp-h
4852 exit 0
4853 EOF
4854 chmod +x $CONFIG_STATUS
4855 rm -fr confdefs* $ac_clean_files
4856 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4857
4858
4859 eval "nmhbin=${bindir}"; eval "nmhbin2=${nmhbin}"
4860 eval "nmhsysconf=${sysconfdir}"; eval "nmhsysconf2=${nmhsysconf}"
4861 eval "nmhlib=${libdir}"; eval "nmhlib2=${nmhlib}"
4862 eval "nmhman=${mandir}"
4863
4864 echo "
4865 nmh configuration
4866 -----------------
4867 nmh version : ${VERSION}
4868 target os : ${target}
4869 compiler : ${CC}
4870 compiler flags : ${CFLAGS}
4871 linker flags : ${LDFLAGS}
4872 source code location : ${srcdir}
4873 binary install path : ${nmhbin2}
4874 libary install path : ${nmhlib2}
4875 config files install path : ${nmhsysconf2}
4876 man page install path : ${nmhman}
4877 transport system : ${MTS}
4878 default editor : ${editorpath}
4879 default pager : ${pagerpath}"
4880 echo ""