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