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