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