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