Deleted Added
full compact
configure (57419) configure (57422)
1#! /bin/sh
2
1#! /bin/sh
2
3# From configure.in Revision: 1.217
3# From configure.in Revision: 1.218
4
5
6
7
8
9# Like AC_CONFIG_HEADER, but automatically create stamp file.
10
11
12
13# Do all the work for Automake. This macro actually does too much --
14# some checks are only needed if your package does certain things.
15# But this isn't really a big deal.
16
17# serial 1
18
19
20
21
22#
23# Check to make sure that the build environment is sane.
24#
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46# serial 25 AM_PROG_LIBTOOL
47
48
49# AM_ENABLE_SHARED - implement the --enable-shared flag
50# Usage: AM_ENABLE_SHARED[(DEFAULT)]
51# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
52# `yes'.
53
54
55# AM_DISABLE_SHARED - set the default shared flag to --disable-shared
56
57
58# AM_DISABLE_STATIC - set the default static flag to --disable-static
59
60
61# AM_ENABLE_STATIC - implement the --enable-static flag
62# Usage: AM_ENABLE_STATIC[(DEFAULT)]
63# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
64# `yes'.
65
66
67
68# AM_PROG_LD - find the path to the GNU or non-GNU linker
69
70
71
72
73# AM_PROG_NM - find the path to a BSD-compatible name lister
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92# Define a conditional.
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172# Guess values for system-dependent variables and create Makefiles.
173# Generated automatically using autoconf version 2.13
174# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
175#
176# This configure script is free software; the Free Software Foundation
177# gives unlimited permission to copy, distribute and modify it.
178
179# Defaults:
180ac_help=
181ac_default_prefix=/usr/local
182# Any additions from configure.in:
183ac_default_prefix=/usr/heimdal
184ac_help="$ac_help
185 --with-mips-abi=abi ABI to use for IRIX (32, n32, or 64)"
186ac_help="$ac_help
187 --enable-shared[=PKGS] build shared libraries [default=no]"
188ac_help="$ac_help
189 --enable-static[=PKGS] build static libraries [default=yes]"
190ac_help="$ac_help
191 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
192ac_help="$ac_help
193 --without-berkeley-db if you don't want berkeley db"
194ac_help="$ac_help
195 --with-krb4=dir use krb4 in dir"
196ac_help="$ac_help
197 --with-krb4-lib=dir use krb4 libraries in dir"
198ac_help="$ac_help
199 --with-krb4-include=dir use krb4 headers in dir"
200ac_help="$ac_help
201 --enable-kaserver if you want the KDC to try to emulate a kaserver"
202ac_help="$ac_help
203 --enable-kaserver-db if you want support for reading kaserver databases in hprop"
204ac_help="$ac_help
205 --disable-otp if you don't want OTP support"
206ac_help="$ac_help
207 --enable-osfc2 enable some OSF C2 support"
208ac_help="$ac_help
209 --with-readline=dir use readline in dir"
210ac_help="$ac_help
211 --with-readline-lib=dir use readline libraries in dir"
212ac_help="$ac_help
213 --with-readline-include=dir use readline headers in dir"
214ac_help="$ac_help
215 --with-hesiod=dir use hesiod in dir"
216ac_help="$ac_help
217 --with-hesiod-lib=dir use hesiod libraries in dir"
218ac_help="$ac_help
219 --with-hesiod-include=dir use hesiod headers in dir"
220ac_help="$ac_help
221 --enable-bigendian the target is big endian"
222ac_help="$ac_help
223 --enable-littleendian the target is little endian"
224ac_help="$ac_help
225 --with-x use the X Window System"
226ac_help="$ac_help
227 --enable-netinfo enable netinfo for configuration lookup"
228ac_help="$ac_help
229 --without-ipv6 do not enable IPv6 support"
230
231# Initialize some variables set by options.
232# The variables have the same names as the options, with
233# dashes changed to underlines.
234build=NONE
235cache_file=./config.cache
236exec_prefix=NONE
237host=NONE
238no_create=
239nonopt=NONE
240no_recursion=
241prefix=NONE
242program_prefix=NONE
243program_suffix=NONE
244program_transform_name=s,x,x,
245silent=
246site=
247srcdir=
248target=NONE
249verbose=
250x_includes=NONE
251x_libraries=NONE
252bindir='${exec_prefix}/bin'
253sbindir='${exec_prefix}/sbin'
254libexecdir='${exec_prefix}/libexec'
255datadir='${prefix}/share'
256sysconfdir='${prefix}/etc'
257sharedstatedir='${prefix}/com'
258localstatedir='${prefix}/var'
259libdir='${exec_prefix}/lib'
260includedir='${prefix}/include'
261oldincludedir='/usr/include'
262infodir='${prefix}/info'
263mandir='${prefix}/man'
264
265# Initialize some other variables.
266subdirs=
267MFLAGS= MAKEFLAGS=
268SHELL=${CONFIG_SHELL-/bin/sh}
269# Maximum number of lines to put in a shell here document.
270ac_max_here_lines=12
271
272ac_prev=
273for ac_option
274do
275
276 # If the previous option needs an argument, assign it.
277 if test -n "$ac_prev"; then
278 eval "$ac_prev=\$ac_option"
279 ac_prev=
280 continue
281 fi
282
283 case "$ac_option" in
284 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
285 *) ac_optarg= ;;
286 esac
287
288 # Accept the important Cygnus configure options, so we can diagnose typos.
289
290 case "$ac_option" in
291
292 -bindir | --bindir | --bindi | --bind | --bin | --bi)
293 ac_prev=bindir ;;
294 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
295 bindir="$ac_optarg" ;;
296
297 -build | --build | --buil | --bui | --bu)
298 ac_prev=build ;;
299 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
300 build="$ac_optarg" ;;
301
302 -cache-file | --cache-file | --cache-fil | --cache-fi \
303 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
304 ac_prev=cache_file ;;
305 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
306 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
307 cache_file="$ac_optarg" ;;
308
309 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
310 ac_prev=datadir ;;
311 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
312 | --da=*)
313 datadir="$ac_optarg" ;;
314
315 -disable-* | --disable-*)
316 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
317 # Reject names that are not valid shell variable names.
318 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
319 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
320 fi
321 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
322 eval "enable_${ac_feature}=no" ;;
323
324 -enable-* | --enable-*)
325 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
326 # Reject names that are not valid shell variable names.
327 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
328 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
329 fi
330 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
331 case "$ac_option" in
332 *=*) ;;
333 *) ac_optarg=yes ;;
334 esac
335 eval "enable_${ac_feature}='$ac_optarg'" ;;
336
337 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
338 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
339 | --exec | --exe | --ex)
340 ac_prev=exec_prefix ;;
341 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
342 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
343 | --exec=* | --exe=* | --ex=*)
344 exec_prefix="$ac_optarg" ;;
345
346 -gas | --gas | --ga | --g)
347 # Obsolete; use --with-gas.
348 with_gas=yes ;;
349
350 -help | --help | --hel | --he)
351 # Omit some internal or obsolete options to make the list less imposing.
352 # This message is too long to be a string in the A/UX 3.1 sh.
353 cat << EOF
354Usage: configure [options] [host]
355Options: [defaults in brackets after descriptions]
356Configuration:
357 --cache-file=FILE cache test results in FILE
358 --help print this message
359 --no-create do not create output files
360 --quiet, --silent do not print \`checking...' messages
361 --version print the version of autoconf that created configure
362Directory and file names:
363 --prefix=PREFIX install architecture-independent files in PREFIX
364 [$ac_default_prefix]
365 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
366 [same as prefix]
367 --bindir=DIR user executables in DIR [EPREFIX/bin]
368 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
369 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
370 --datadir=DIR read-only architecture-independent data in DIR
371 [PREFIX/share]
372 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
373 --sharedstatedir=DIR modifiable architecture-independent data in DIR
374 [PREFIX/com]
375 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
376 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
377 --includedir=DIR C header files in DIR [PREFIX/include]
378 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
379 --infodir=DIR info documentation in DIR [PREFIX/info]
380 --mandir=DIR man documentation in DIR [PREFIX/man]
381 --srcdir=DIR find the sources in DIR [configure dir or ..]
382 --program-prefix=PREFIX prepend PREFIX to installed program names
383 --program-suffix=SUFFIX append SUFFIX to installed program names
384 --program-transform-name=PROGRAM
385 run sed PROGRAM on installed program names
386EOF
387 cat << EOF
388Host type:
389 --build=BUILD configure for building on BUILD [BUILD=HOST]
390 --host=HOST configure for HOST [guessed]
391 --target=TARGET configure for TARGET [TARGET=HOST]
392Features and packages:
393 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
394 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
395 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
396 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
397 --x-includes=DIR X include files are in DIR
398 --x-libraries=DIR X library files are in DIR
399EOF
400 if test -n "$ac_help"; then
401 echo "--enable and --with options recognized:$ac_help"
402 fi
403 exit 0 ;;
404
405 -host | --host | --hos | --ho)
406 ac_prev=host ;;
407 -host=* | --host=* | --hos=* | --ho=*)
408 host="$ac_optarg" ;;
409
410 -includedir | --includedir | --includedi | --included | --include \
411 | --includ | --inclu | --incl | --inc)
412 ac_prev=includedir ;;
413 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
414 | --includ=* | --inclu=* | --incl=* | --inc=*)
415 includedir="$ac_optarg" ;;
416
417 -infodir | --infodir | --infodi | --infod | --info | --inf)
418 ac_prev=infodir ;;
419 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
420 infodir="$ac_optarg" ;;
421
422 -libdir | --libdir | --libdi | --libd)
423 ac_prev=libdir ;;
424 -libdir=* | --libdir=* | --libdi=* | --libd=*)
425 libdir="$ac_optarg" ;;
426
427 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
428 | --libexe | --libex | --libe)
429 ac_prev=libexecdir ;;
430 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
431 | --libexe=* | --libex=* | --libe=*)
432 libexecdir="$ac_optarg" ;;
433
434 -localstatedir | --localstatedir | --localstatedi | --localstated \
435 | --localstate | --localstat | --localsta | --localst \
436 | --locals | --local | --loca | --loc | --lo)
437 ac_prev=localstatedir ;;
438 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
439 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
440 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
441 localstatedir="$ac_optarg" ;;
442
443 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
444 ac_prev=mandir ;;
445 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
446 mandir="$ac_optarg" ;;
447
448 -nfp | --nfp | --nf)
449 # Obsolete; use --without-fp.
450 with_fp=no ;;
451
452 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
453 | --no-cr | --no-c)
454 no_create=yes ;;
455
456 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
457 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
458 no_recursion=yes ;;
459
460 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
461 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
462 | --oldin | --oldi | --old | --ol | --o)
463 ac_prev=oldincludedir ;;
464 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
465 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
466 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
467 oldincludedir="$ac_optarg" ;;
468
469 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
470 ac_prev=prefix ;;
471 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
472 prefix="$ac_optarg" ;;
473
474 -program-prefix | --program-prefix | --program-prefi | --program-pref \
475 | --program-pre | --program-pr | --program-p)
476 ac_prev=program_prefix ;;
477 -program-prefix=* | --program-prefix=* | --program-prefi=* \
478 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
479 program_prefix="$ac_optarg" ;;
480
481 -program-suffix | --program-suffix | --program-suffi | --program-suff \
482 | --program-suf | --program-su | --program-s)
483 ac_prev=program_suffix ;;
484 -program-suffix=* | --program-suffix=* | --program-suffi=* \
485 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
486 program_suffix="$ac_optarg" ;;
487
488 -program-transform-name | --program-transform-name \
489 | --program-transform-nam | --program-transform-na \
490 | --program-transform-n | --program-transform- \
491 | --program-transform | --program-transfor \
492 | --program-transfo | --program-transf \
493 | --program-trans | --program-tran \
494 | --progr-tra | --program-tr | --program-t)
495 ac_prev=program_transform_name ;;
496 -program-transform-name=* | --program-transform-name=* \
497 | --program-transform-nam=* | --program-transform-na=* \
498 | --program-transform-n=* | --program-transform-=* \
499 | --program-transform=* | --program-transfor=* \
500 | --program-transfo=* | --program-transf=* \
501 | --program-trans=* | --program-tran=* \
502 | --progr-tra=* | --program-tr=* | --program-t=*)
503 program_transform_name="$ac_optarg" ;;
504
505 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
506 | -silent | --silent | --silen | --sile | --sil)
507 silent=yes ;;
508
509 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
510 ac_prev=sbindir ;;
511 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
512 | --sbi=* | --sb=*)
513 sbindir="$ac_optarg" ;;
514
515 -sharedstatedir | --sharedstatedir | --sharedstatedi \
516 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
517 | --sharedst | --shareds | --shared | --share | --shar \
518 | --sha | --sh)
519 ac_prev=sharedstatedir ;;
520 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
521 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
522 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
523 | --sha=* | --sh=*)
524 sharedstatedir="$ac_optarg" ;;
525
526 -site | --site | --sit)
527 ac_prev=site ;;
528 -site=* | --site=* | --sit=*)
529 site="$ac_optarg" ;;
530
531 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
532 ac_prev=srcdir ;;
533 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
534 srcdir="$ac_optarg" ;;
535
536 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
537 | --syscon | --sysco | --sysc | --sys | --sy)
538 ac_prev=sysconfdir ;;
539 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
540 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
541 sysconfdir="$ac_optarg" ;;
542
543 -target | --target | --targe | --targ | --tar | --ta | --t)
544 ac_prev=target ;;
545 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
546 target="$ac_optarg" ;;
547
548 -v | -verbose | --verbose | --verbos | --verbo | --verb)
549 verbose=yes ;;
550
551 -version | --version | --versio | --versi | --vers)
552 echo "configure generated by autoconf version 2.13"
553 exit 0 ;;
554
555 -with-* | --with-*)
556 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
557 # Reject names that are not valid shell variable names.
558 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
559 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
560 fi
561 ac_package=`echo $ac_package| sed 's/-/_/g'`
562 case "$ac_option" in
563 *=*) ;;
564 *) ac_optarg=yes ;;
565 esac
566 eval "with_${ac_package}='$ac_optarg'" ;;
567
568 -without-* | --without-*)
569 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
570 # Reject names that are not valid shell variable names.
571 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
572 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
573 fi
574 ac_package=`echo $ac_package| sed 's/-/_/g'`
575 eval "with_${ac_package}=no" ;;
576
577 --x)
578 # Obsolete; use --with-x.
579 with_x=yes ;;
580
581 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
582 | --x-incl | --x-inc | --x-in | --x-i)
583 ac_prev=x_includes ;;
584 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
585 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
586 x_includes="$ac_optarg" ;;
587
588 -x-libraries | --x-libraries | --x-librarie | --x-librari \
589 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
590 ac_prev=x_libraries ;;
591 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
592 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
593 x_libraries="$ac_optarg" ;;
594
595 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
596 ;;
597
598 *)
599 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
600 echo "configure: warning: $ac_option: invalid host type" 1>&2
601 fi
602 if test "x$nonopt" != xNONE; then
603 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
604 fi
605 nonopt="$ac_option"
606 ;;
607
608 esac
609done
610
611if test -n "$ac_prev"; then
612 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
613fi
614
615trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
616
617# File descriptor usage:
618# 0 standard input
619# 1 file creation
620# 2 errors and warnings
621# 3 some systems may open it to /dev/tty
622# 4 used on the Kubota Titan
623# 6 checking for... messages and results
624# 5 compiler messages saved in config.log
625if test "$silent" = yes; then
626 exec 6>/dev/null
627else
628 exec 6>&1
629fi
630exec 5>./config.log
631
632echo "\
633This file contains any messages produced by compilers while
634running configure, to aid debugging if configure makes a mistake.
635" 1>&5
636
637# Strip out --no-create and --no-recursion so they do not pile up.
638# Also quote any args containing shell metacharacters.
639ac_configure_args=
640for ac_arg
641do
642 case "$ac_arg" in
643 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
644 | --no-cr | --no-c) ;;
645 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
646 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
647 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
648 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
649 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
650 esac
651done
652
653# NLS nuisances.
654# Only set these to C if already set. These must not be set unconditionally
655# because not all systems understand e.g. LANG=C (notably SCO).
656# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
657# Non-C LC_CTYPE values break the ctype check.
658if test "${LANG+set}" = set; then LANG=C; export LANG; fi
659if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
660if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
661if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
662
663# confdefs.h avoids OS command line length limits that DEFS can exceed.
664rm -rf conftest* confdefs.h
665# AIX cpp loses on an empty file, so make sure it contains at least a newline.
666echo > confdefs.h
667
668# A filename unique to this package, relative to the directory that
669# configure is in, which we can look for to find out if srcdir is correct.
670ac_unique_file=lib/krb5/send_to_kdc.c
671
672# Find the source files, if location was not specified.
673if test -z "$srcdir"; then
674 ac_srcdir_defaulted=yes
675 # Try the directory containing this script, then its parent.
676 ac_prog=$0
677 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
678 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
679 srcdir=$ac_confdir
680 if test ! -r $srcdir/$ac_unique_file; then
681 srcdir=..
682 fi
683else
684 ac_srcdir_defaulted=no
685fi
686if test ! -r $srcdir/$ac_unique_file; then
687 if test "$ac_srcdir_defaulted" = yes; then
688 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
689 else
690 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
691 fi
692fi
693srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
694
695# Prefer explicitly selected file to automatically selected ones.
696if test -z "$CONFIG_SITE"; then
697 if test "x$prefix" != xNONE; then
698 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
699 else
700 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
701 fi
702fi
703for ac_site_file in $CONFIG_SITE; do
704 if test -r "$ac_site_file"; then
705 echo "loading site script $ac_site_file"
706 . "$ac_site_file"
707 fi
708done
709
710if test -r "$cache_file"; then
711 echo "loading cache $cache_file"
712 . $cache_file
713else
714 echo "creating cache $cache_file"
715 > $cache_file
716fi
717
718ac_ext=c
719# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
720ac_cpp='$CPP $CPPFLAGS'
721ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
722ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
723cross_compiling=$ac_cv_prog_cc_cross
724
725ac_exeext=
726ac_objext=o
727if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
728 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
729 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
730 ac_n= ac_c='
731' ac_t=' '
732 else
733 ac_n=-n ac_c= ac_t=
734 fi
735else
736 ac_n= ac_c='\c' ac_t=
737fi
738
739
740
741
742
743
744ac_aux_dir=
745for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
746 if test -f $ac_dir/install-sh; then
747 ac_aux_dir=$ac_dir
748 ac_install_sh="$ac_aux_dir/install-sh -c"
749 break
750 elif test -f $ac_dir/install.sh; then
751 ac_aux_dir=$ac_dir
752 ac_install_sh="$ac_aux_dir/install.sh -c"
753 break
754 fi
755done
756if test -z "$ac_aux_dir"; then
757 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
758fi
759ac_config_guess=$ac_aux_dir/config.guess
760ac_config_sub=$ac_aux_dir/config.sub
761ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
762
763# Find a good install program. We prefer a C program (faster),
764# so one script is as good as another. But avoid the broken or
765# incompatible versions:
766# SysV /etc/install, /usr/sbin/install
767# SunOS /usr/etc/install
768# IRIX /sbin/install
769# AIX /bin/install
770# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
771# AFS /usr/afsws/bin/install, which mishandles nonexistent args
772# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
773# ./install, which can be erroneously created by make from ./install.sh.
774echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
775echo "configure:776: checking for a BSD compatible install" >&5
776if test -z "$INSTALL"; then
777if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
778 echo $ac_n "(cached) $ac_c" 1>&6
779else
780 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
781 for ac_dir in $PATH; do
782 # Account for people who put trailing slashes in PATH elements.
783 case "$ac_dir/" in
784 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
785 *)
786 # OSF1 and SCO ODT 3.0 have their own names for install.
787 # Don't use installbsd from OSF since it installs stuff as root
788 # by default.
789 for ac_prog in ginstall scoinst install; do
790 if test -f $ac_dir/$ac_prog; then
791 if test $ac_prog = install &&
792 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
793 # AIX install. It has an incompatible calling convention.
794 :
795 else
796 ac_cv_path_install="$ac_dir/$ac_prog -c"
797 break 2
798 fi
799 fi
800 done
801 ;;
802 esac
803 done
804 IFS="$ac_save_IFS"
805
806fi
807 if test "${ac_cv_path_install+set}" = set; then
808 INSTALL="$ac_cv_path_install"
809 else
810 # As a last resort, use the slow shell script. We don't cache a
811 # path for INSTALL within a source directory, because that will
812 # break other packages using the cache if that directory is
813 # removed, or if the path is relative.
814 INSTALL="$ac_install_sh"
815 fi
816fi
817echo "$ac_t""$INSTALL" 1>&6
818
819# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
820# It thinks the first close brace ends the variable substitution.
821test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
822
823test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
824
825test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
826
827echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
828echo "configure:829: checking whether build environment is sane" >&5
829# Just in case
830sleep 1
831echo timestamp > conftestfile
832# Do `set' in a subshell so we don't clobber the current shell's
833# arguments. Must try -L first in case configure is actually a
834# symlink; some systems play weird games with the mod time of symlinks
835# (eg FreeBSD returns the mod time of the symlink's containing
836# directory).
837if (
838 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
839 if test "$*" = "X"; then
840 # -L didn't work.
841 set X `ls -t $srcdir/configure conftestfile`
842 fi
843 if test "$*" != "X $srcdir/configure conftestfile" \
844 && test "$*" != "X conftestfile $srcdir/configure"; then
845
846 # If neither matched, then we have a broken ls. This can happen
847 # if, for instance, CONFIG_SHELL is bash and it inherits a
848 # broken ls alias from the environment. This has actually
849 # happened. Such a system could not be considered "sane".
850 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
851alias in your environment" 1>&2; exit 1; }
852 fi
853
854 test "$2" = conftestfile
855 )
856then
857 # Ok.
858 :
859else
860 { echo "configure: error: newly created file is older than distributed files!
861Check your system clock" 1>&2; exit 1; }
862fi
863rm -f conftest*
864echo "$ac_t""yes" 1>&6
865if test "$program_transform_name" = s,x,x,; then
866 program_transform_name=
867else
868 # Double any \ or $. echo might interpret backslashes.
869 cat <<\EOF_SED > conftestsed
870s,\\,\\\\,g; s,\$,$$,g
871EOF_SED
872 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
873 rm -f conftestsed
874fi
875test "$program_prefix" != NONE &&
876 program_transform_name="s,^,${program_prefix},; $program_transform_name"
877# Use a double $ so make ignores it.
878test "$program_suffix" != NONE &&
879 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
880
881# sed with no file args requires a program.
882test "$program_transform_name" = "" && program_transform_name="s,x,x,"
883
884echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
885echo "configure:886: checking whether ${MAKE-make} sets \${MAKE}" >&5
886set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
887if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
888 echo $ac_n "(cached) $ac_c" 1>&6
889else
890 cat > conftestmake <<\EOF
891all:
892 @echo 'ac_maketemp="${MAKE}"'
893EOF
894# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
895eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
896if test -n "$ac_maketemp"; then
897 eval ac_cv_prog_make_${ac_make}_set=yes
898else
899 eval ac_cv_prog_make_${ac_make}_set=no
900fi
901rm -f conftestmake
902fi
903if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
904 echo "$ac_t""yes" 1>&6
905 SET_MAKE=
906else
907 echo "$ac_t""no" 1>&6
908 SET_MAKE="MAKE=${MAKE-make}"
909fi
910
911
912PACKAGE=heimdal
913
4
5
6
7
8
9# Like AC_CONFIG_HEADER, but automatically create stamp file.
10
11
12
13# Do all the work for Automake. This macro actually does too much --
14# some checks are only needed if your package does certain things.
15# But this isn't really a big deal.
16
17# serial 1
18
19
20
21
22#
23# Check to make sure that the build environment is sane.
24#
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46# serial 25 AM_PROG_LIBTOOL
47
48
49# AM_ENABLE_SHARED - implement the --enable-shared flag
50# Usage: AM_ENABLE_SHARED[(DEFAULT)]
51# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
52# `yes'.
53
54
55# AM_DISABLE_SHARED - set the default shared flag to --disable-shared
56
57
58# AM_DISABLE_STATIC - set the default static flag to --disable-static
59
60
61# AM_ENABLE_STATIC - implement the --enable-static flag
62# Usage: AM_ENABLE_STATIC[(DEFAULT)]
63# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
64# `yes'.
65
66
67
68# AM_PROG_LD - find the path to the GNU or non-GNU linker
69
70
71
72
73# AM_PROG_NM - find the path to a BSD-compatible name lister
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92# Define a conditional.
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172# Guess values for system-dependent variables and create Makefiles.
173# Generated automatically using autoconf version 2.13
174# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
175#
176# This configure script is free software; the Free Software Foundation
177# gives unlimited permission to copy, distribute and modify it.
178
179# Defaults:
180ac_help=
181ac_default_prefix=/usr/local
182# Any additions from configure.in:
183ac_default_prefix=/usr/heimdal
184ac_help="$ac_help
185 --with-mips-abi=abi ABI to use for IRIX (32, n32, or 64)"
186ac_help="$ac_help
187 --enable-shared[=PKGS] build shared libraries [default=no]"
188ac_help="$ac_help
189 --enable-static[=PKGS] build static libraries [default=yes]"
190ac_help="$ac_help
191 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
192ac_help="$ac_help
193 --without-berkeley-db if you don't want berkeley db"
194ac_help="$ac_help
195 --with-krb4=dir use krb4 in dir"
196ac_help="$ac_help
197 --with-krb4-lib=dir use krb4 libraries in dir"
198ac_help="$ac_help
199 --with-krb4-include=dir use krb4 headers in dir"
200ac_help="$ac_help
201 --enable-kaserver if you want the KDC to try to emulate a kaserver"
202ac_help="$ac_help
203 --enable-kaserver-db if you want support for reading kaserver databases in hprop"
204ac_help="$ac_help
205 --disable-otp if you don't want OTP support"
206ac_help="$ac_help
207 --enable-osfc2 enable some OSF C2 support"
208ac_help="$ac_help
209 --with-readline=dir use readline in dir"
210ac_help="$ac_help
211 --with-readline-lib=dir use readline libraries in dir"
212ac_help="$ac_help
213 --with-readline-include=dir use readline headers in dir"
214ac_help="$ac_help
215 --with-hesiod=dir use hesiod in dir"
216ac_help="$ac_help
217 --with-hesiod-lib=dir use hesiod libraries in dir"
218ac_help="$ac_help
219 --with-hesiod-include=dir use hesiod headers in dir"
220ac_help="$ac_help
221 --enable-bigendian the target is big endian"
222ac_help="$ac_help
223 --enable-littleendian the target is little endian"
224ac_help="$ac_help
225 --with-x use the X Window System"
226ac_help="$ac_help
227 --enable-netinfo enable netinfo for configuration lookup"
228ac_help="$ac_help
229 --without-ipv6 do not enable IPv6 support"
230
231# Initialize some variables set by options.
232# The variables have the same names as the options, with
233# dashes changed to underlines.
234build=NONE
235cache_file=./config.cache
236exec_prefix=NONE
237host=NONE
238no_create=
239nonopt=NONE
240no_recursion=
241prefix=NONE
242program_prefix=NONE
243program_suffix=NONE
244program_transform_name=s,x,x,
245silent=
246site=
247srcdir=
248target=NONE
249verbose=
250x_includes=NONE
251x_libraries=NONE
252bindir='${exec_prefix}/bin'
253sbindir='${exec_prefix}/sbin'
254libexecdir='${exec_prefix}/libexec'
255datadir='${prefix}/share'
256sysconfdir='${prefix}/etc'
257sharedstatedir='${prefix}/com'
258localstatedir='${prefix}/var'
259libdir='${exec_prefix}/lib'
260includedir='${prefix}/include'
261oldincludedir='/usr/include'
262infodir='${prefix}/info'
263mandir='${prefix}/man'
264
265# Initialize some other variables.
266subdirs=
267MFLAGS= MAKEFLAGS=
268SHELL=${CONFIG_SHELL-/bin/sh}
269# Maximum number of lines to put in a shell here document.
270ac_max_here_lines=12
271
272ac_prev=
273for ac_option
274do
275
276 # If the previous option needs an argument, assign it.
277 if test -n "$ac_prev"; then
278 eval "$ac_prev=\$ac_option"
279 ac_prev=
280 continue
281 fi
282
283 case "$ac_option" in
284 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
285 *) ac_optarg= ;;
286 esac
287
288 # Accept the important Cygnus configure options, so we can diagnose typos.
289
290 case "$ac_option" in
291
292 -bindir | --bindir | --bindi | --bind | --bin | --bi)
293 ac_prev=bindir ;;
294 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
295 bindir="$ac_optarg" ;;
296
297 -build | --build | --buil | --bui | --bu)
298 ac_prev=build ;;
299 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
300 build="$ac_optarg" ;;
301
302 -cache-file | --cache-file | --cache-fil | --cache-fi \
303 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
304 ac_prev=cache_file ;;
305 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
306 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
307 cache_file="$ac_optarg" ;;
308
309 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
310 ac_prev=datadir ;;
311 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
312 | --da=*)
313 datadir="$ac_optarg" ;;
314
315 -disable-* | --disable-*)
316 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
317 # Reject names that are not valid shell variable names.
318 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
319 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
320 fi
321 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
322 eval "enable_${ac_feature}=no" ;;
323
324 -enable-* | --enable-*)
325 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
326 # Reject names that are not valid shell variable names.
327 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
328 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
329 fi
330 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
331 case "$ac_option" in
332 *=*) ;;
333 *) ac_optarg=yes ;;
334 esac
335 eval "enable_${ac_feature}='$ac_optarg'" ;;
336
337 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
338 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
339 | --exec | --exe | --ex)
340 ac_prev=exec_prefix ;;
341 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
342 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
343 | --exec=* | --exe=* | --ex=*)
344 exec_prefix="$ac_optarg" ;;
345
346 -gas | --gas | --ga | --g)
347 # Obsolete; use --with-gas.
348 with_gas=yes ;;
349
350 -help | --help | --hel | --he)
351 # Omit some internal or obsolete options to make the list less imposing.
352 # This message is too long to be a string in the A/UX 3.1 sh.
353 cat << EOF
354Usage: configure [options] [host]
355Options: [defaults in brackets after descriptions]
356Configuration:
357 --cache-file=FILE cache test results in FILE
358 --help print this message
359 --no-create do not create output files
360 --quiet, --silent do not print \`checking...' messages
361 --version print the version of autoconf that created configure
362Directory and file names:
363 --prefix=PREFIX install architecture-independent files in PREFIX
364 [$ac_default_prefix]
365 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
366 [same as prefix]
367 --bindir=DIR user executables in DIR [EPREFIX/bin]
368 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
369 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
370 --datadir=DIR read-only architecture-independent data in DIR
371 [PREFIX/share]
372 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
373 --sharedstatedir=DIR modifiable architecture-independent data in DIR
374 [PREFIX/com]
375 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
376 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
377 --includedir=DIR C header files in DIR [PREFIX/include]
378 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
379 --infodir=DIR info documentation in DIR [PREFIX/info]
380 --mandir=DIR man documentation in DIR [PREFIX/man]
381 --srcdir=DIR find the sources in DIR [configure dir or ..]
382 --program-prefix=PREFIX prepend PREFIX to installed program names
383 --program-suffix=SUFFIX append SUFFIX to installed program names
384 --program-transform-name=PROGRAM
385 run sed PROGRAM on installed program names
386EOF
387 cat << EOF
388Host type:
389 --build=BUILD configure for building on BUILD [BUILD=HOST]
390 --host=HOST configure for HOST [guessed]
391 --target=TARGET configure for TARGET [TARGET=HOST]
392Features and packages:
393 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
394 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
395 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
396 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
397 --x-includes=DIR X include files are in DIR
398 --x-libraries=DIR X library files are in DIR
399EOF
400 if test -n "$ac_help"; then
401 echo "--enable and --with options recognized:$ac_help"
402 fi
403 exit 0 ;;
404
405 -host | --host | --hos | --ho)
406 ac_prev=host ;;
407 -host=* | --host=* | --hos=* | --ho=*)
408 host="$ac_optarg" ;;
409
410 -includedir | --includedir | --includedi | --included | --include \
411 | --includ | --inclu | --incl | --inc)
412 ac_prev=includedir ;;
413 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
414 | --includ=* | --inclu=* | --incl=* | --inc=*)
415 includedir="$ac_optarg" ;;
416
417 -infodir | --infodir | --infodi | --infod | --info | --inf)
418 ac_prev=infodir ;;
419 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
420 infodir="$ac_optarg" ;;
421
422 -libdir | --libdir | --libdi | --libd)
423 ac_prev=libdir ;;
424 -libdir=* | --libdir=* | --libdi=* | --libd=*)
425 libdir="$ac_optarg" ;;
426
427 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
428 | --libexe | --libex | --libe)
429 ac_prev=libexecdir ;;
430 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
431 | --libexe=* | --libex=* | --libe=*)
432 libexecdir="$ac_optarg" ;;
433
434 -localstatedir | --localstatedir | --localstatedi | --localstated \
435 | --localstate | --localstat | --localsta | --localst \
436 | --locals | --local | --loca | --loc | --lo)
437 ac_prev=localstatedir ;;
438 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
439 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
440 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
441 localstatedir="$ac_optarg" ;;
442
443 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
444 ac_prev=mandir ;;
445 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
446 mandir="$ac_optarg" ;;
447
448 -nfp | --nfp | --nf)
449 # Obsolete; use --without-fp.
450 with_fp=no ;;
451
452 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
453 | --no-cr | --no-c)
454 no_create=yes ;;
455
456 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
457 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
458 no_recursion=yes ;;
459
460 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
461 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
462 | --oldin | --oldi | --old | --ol | --o)
463 ac_prev=oldincludedir ;;
464 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
465 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
466 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
467 oldincludedir="$ac_optarg" ;;
468
469 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
470 ac_prev=prefix ;;
471 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
472 prefix="$ac_optarg" ;;
473
474 -program-prefix | --program-prefix | --program-prefi | --program-pref \
475 | --program-pre | --program-pr | --program-p)
476 ac_prev=program_prefix ;;
477 -program-prefix=* | --program-prefix=* | --program-prefi=* \
478 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
479 program_prefix="$ac_optarg" ;;
480
481 -program-suffix | --program-suffix | --program-suffi | --program-suff \
482 | --program-suf | --program-su | --program-s)
483 ac_prev=program_suffix ;;
484 -program-suffix=* | --program-suffix=* | --program-suffi=* \
485 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
486 program_suffix="$ac_optarg" ;;
487
488 -program-transform-name | --program-transform-name \
489 | --program-transform-nam | --program-transform-na \
490 | --program-transform-n | --program-transform- \
491 | --program-transform | --program-transfor \
492 | --program-transfo | --program-transf \
493 | --program-trans | --program-tran \
494 | --progr-tra | --program-tr | --program-t)
495 ac_prev=program_transform_name ;;
496 -program-transform-name=* | --program-transform-name=* \
497 | --program-transform-nam=* | --program-transform-na=* \
498 | --program-transform-n=* | --program-transform-=* \
499 | --program-transform=* | --program-transfor=* \
500 | --program-transfo=* | --program-transf=* \
501 | --program-trans=* | --program-tran=* \
502 | --progr-tra=* | --program-tr=* | --program-t=*)
503 program_transform_name="$ac_optarg" ;;
504
505 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
506 | -silent | --silent | --silen | --sile | --sil)
507 silent=yes ;;
508
509 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
510 ac_prev=sbindir ;;
511 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
512 | --sbi=* | --sb=*)
513 sbindir="$ac_optarg" ;;
514
515 -sharedstatedir | --sharedstatedir | --sharedstatedi \
516 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
517 | --sharedst | --shareds | --shared | --share | --shar \
518 | --sha | --sh)
519 ac_prev=sharedstatedir ;;
520 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
521 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
522 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
523 | --sha=* | --sh=*)
524 sharedstatedir="$ac_optarg" ;;
525
526 -site | --site | --sit)
527 ac_prev=site ;;
528 -site=* | --site=* | --sit=*)
529 site="$ac_optarg" ;;
530
531 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
532 ac_prev=srcdir ;;
533 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
534 srcdir="$ac_optarg" ;;
535
536 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
537 | --syscon | --sysco | --sysc | --sys | --sy)
538 ac_prev=sysconfdir ;;
539 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
540 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
541 sysconfdir="$ac_optarg" ;;
542
543 -target | --target | --targe | --targ | --tar | --ta | --t)
544 ac_prev=target ;;
545 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
546 target="$ac_optarg" ;;
547
548 -v | -verbose | --verbose | --verbos | --verbo | --verb)
549 verbose=yes ;;
550
551 -version | --version | --versio | --versi | --vers)
552 echo "configure generated by autoconf version 2.13"
553 exit 0 ;;
554
555 -with-* | --with-*)
556 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
557 # Reject names that are not valid shell variable names.
558 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
559 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
560 fi
561 ac_package=`echo $ac_package| sed 's/-/_/g'`
562 case "$ac_option" in
563 *=*) ;;
564 *) ac_optarg=yes ;;
565 esac
566 eval "with_${ac_package}='$ac_optarg'" ;;
567
568 -without-* | --without-*)
569 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
570 # Reject names that are not valid shell variable names.
571 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
572 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
573 fi
574 ac_package=`echo $ac_package| sed 's/-/_/g'`
575 eval "with_${ac_package}=no" ;;
576
577 --x)
578 # Obsolete; use --with-x.
579 with_x=yes ;;
580
581 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
582 | --x-incl | --x-inc | --x-in | --x-i)
583 ac_prev=x_includes ;;
584 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
585 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
586 x_includes="$ac_optarg" ;;
587
588 -x-libraries | --x-libraries | --x-librarie | --x-librari \
589 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
590 ac_prev=x_libraries ;;
591 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
592 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
593 x_libraries="$ac_optarg" ;;
594
595 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
596 ;;
597
598 *)
599 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
600 echo "configure: warning: $ac_option: invalid host type" 1>&2
601 fi
602 if test "x$nonopt" != xNONE; then
603 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
604 fi
605 nonopt="$ac_option"
606 ;;
607
608 esac
609done
610
611if test -n "$ac_prev"; then
612 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
613fi
614
615trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
616
617# File descriptor usage:
618# 0 standard input
619# 1 file creation
620# 2 errors and warnings
621# 3 some systems may open it to /dev/tty
622# 4 used on the Kubota Titan
623# 6 checking for... messages and results
624# 5 compiler messages saved in config.log
625if test "$silent" = yes; then
626 exec 6>/dev/null
627else
628 exec 6>&1
629fi
630exec 5>./config.log
631
632echo "\
633This file contains any messages produced by compilers while
634running configure, to aid debugging if configure makes a mistake.
635" 1>&5
636
637# Strip out --no-create and --no-recursion so they do not pile up.
638# Also quote any args containing shell metacharacters.
639ac_configure_args=
640for ac_arg
641do
642 case "$ac_arg" in
643 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
644 | --no-cr | --no-c) ;;
645 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
646 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
647 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
648 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
649 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
650 esac
651done
652
653# NLS nuisances.
654# Only set these to C if already set. These must not be set unconditionally
655# because not all systems understand e.g. LANG=C (notably SCO).
656# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
657# Non-C LC_CTYPE values break the ctype check.
658if test "${LANG+set}" = set; then LANG=C; export LANG; fi
659if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
660if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
661if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
662
663# confdefs.h avoids OS command line length limits that DEFS can exceed.
664rm -rf conftest* confdefs.h
665# AIX cpp loses on an empty file, so make sure it contains at least a newline.
666echo > confdefs.h
667
668# A filename unique to this package, relative to the directory that
669# configure is in, which we can look for to find out if srcdir is correct.
670ac_unique_file=lib/krb5/send_to_kdc.c
671
672# Find the source files, if location was not specified.
673if test -z "$srcdir"; then
674 ac_srcdir_defaulted=yes
675 # Try the directory containing this script, then its parent.
676 ac_prog=$0
677 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
678 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
679 srcdir=$ac_confdir
680 if test ! -r $srcdir/$ac_unique_file; then
681 srcdir=..
682 fi
683else
684 ac_srcdir_defaulted=no
685fi
686if test ! -r $srcdir/$ac_unique_file; then
687 if test "$ac_srcdir_defaulted" = yes; then
688 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
689 else
690 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
691 fi
692fi
693srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
694
695# Prefer explicitly selected file to automatically selected ones.
696if test -z "$CONFIG_SITE"; then
697 if test "x$prefix" != xNONE; then
698 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
699 else
700 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
701 fi
702fi
703for ac_site_file in $CONFIG_SITE; do
704 if test -r "$ac_site_file"; then
705 echo "loading site script $ac_site_file"
706 . "$ac_site_file"
707 fi
708done
709
710if test -r "$cache_file"; then
711 echo "loading cache $cache_file"
712 . $cache_file
713else
714 echo "creating cache $cache_file"
715 > $cache_file
716fi
717
718ac_ext=c
719# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
720ac_cpp='$CPP $CPPFLAGS'
721ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
722ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
723cross_compiling=$ac_cv_prog_cc_cross
724
725ac_exeext=
726ac_objext=o
727if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
728 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
729 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
730 ac_n= ac_c='
731' ac_t=' '
732 else
733 ac_n=-n ac_c= ac_t=
734 fi
735else
736 ac_n= ac_c='\c' ac_t=
737fi
738
739
740
741
742
743
744ac_aux_dir=
745for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
746 if test -f $ac_dir/install-sh; then
747 ac_aux_dir=$ac_dir
748 ac_install_sh="$ac_aux_dir/install-sh -c"
749 break
750 elif test -f $ac_dir/install.sh; then
751 ac_aux_dir=$ac_dir
752 ac_install_sh="$ac_aux_dir/install.sh -c"
753 break
754 fi
755done
756if test -z "$ac_aux_dir"; then
757 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
758fi
759ac_config_guess=$ac_aux_dir/config.guess
760ac_config_sub=$ac_aux_dir/config.sub
761ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
762
763# Find a good install program. We prefer a C program (faster),
764# so one script is as good as another. But avoid the broken or
765# incompatible versions:
766# SysV /etc/install, /usr/sbin/install
767# SunOS /usr/etc/install
768# IRIX /sbin/install
769# AIX /bin/install
770# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
771# AFS /usr/afsws/bin/install, which mishandles nonexistent args
772# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
773# ./install, which can be erroneously created by make from ./install.sh.
774echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
775echo "configure:776: checking for a BSD compatible install" >&5
776if test -z "$INSTALL"; then
777if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
778 echo $ac_n "(cached) $ac_c" 1>&6
779else
780 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
781 for ac_dir in $PATH; do
782 # Account for people who put trailing slashes in PATH elements.
783 case "$ac_dir/" in
784 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
785 *)
786 # OSF1 and SCO ODT 3.0 have their own names for install.
787 # Don't use installbsd from OSF since it installs stuff as root
788 # by default.
789 for ac_prog in ginstall scoinst install; do
790 if test -f $ac_dir/$ac_prog; then
791 if test $ac_prog = install &&
792 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
793 # AIX install. It has an incompatible calling convention.
794 :
795 else
796 ac_cv_path_install="$ac_dir/$ac_prog -c"
797 break 2
798 fi
799 fi
800 done
801 ;;
802 esac
803 done
804 IFS="$ac_save_IFS"
805
806fi
807 if test "${ac_cv_path_install+set}" = set; then
808 INSTALL="$ac_cv_path_install"
809 else
810 # As a last resort, use the slow shell script. We don't cache a
811 # path for INSTALL within a source directory, because that will
812 # break other packages using the cache if that directory is
813 # removed, or if the path is relative.
814 INSTALL="$ac_install_sh"
815 fi
816fi
817echo "$ac_t""$INSTALL" 1>&6
818
819# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
820# It thinks the first close brace ends the variable substitution.
821test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
822
823test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
824
825test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
826
827echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
828echo "configure:829: checking whether build environment is sane" >&5
829# Just in case
830sleep 1
831echo timestamp > conftestfile
832# Do `set' in a subshell so we don't clobber the current shell's
833# arguments. Must try -L first in case configure is actually a
834# symlink; some systems play weird games with the mod time of symlinks
835# (eg FreeBSD returns the mod time of the symlink's containing
836# directory).
837if (
838 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
839 if test "$*" = "X"; then
840 # -L didn't work.
841 set X `ls -t $srcdir/configure conftestfile`
842 fi
843 if test "$*" != "X $srcdir/configure conftestfile" \
844 && test "$*" != "X conftestfile $srcdir/configure"; then
845
846 # If neither matched, then we have a broken ls. This can happen
847 # if, for instance, CONFIG_SHELL is bash and it inherits a
848 # broken ls alias from the environment. This has actually
849 # happened. Such a system could not be considered "sane".
850 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
851alias in your environment" 1>&2; exit 1; }
852 fi
853
854 test "$2" = conftestfile
855 )
856then
857 # Ok.
858 :
859else
860 { echo "configure: error: newly created file is older than distributed files!
861Check your system clock" 1>&2; exit 1; }
862fi
863rm -f conftest*
864echo "$ac_t""yes" 1>&6
865if test "$program_transform_name" = s,x,x,; then
866 program_transform_name=
867else
868 # Double any \ or $. echo might interpret backslashes.
869 cat <<\EOF_SED > conftestsed
870s,\\,\\\\,g; s,\$,$$,g
871EOF_SED
872 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
873 rm -f conftestsed
874fi
875test "$program_prefix" != NONE &&
876 program_transform_name="s,^,${program_prefix},; $program_transform_name"
877# Use a double $ so make ignores it.
878test "$program_suffix" != NONE &&
879 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
880
881# sed with no file args requires a program.
882test "$program_transform_name" = "" && program_transform_name="s,x,x,"
883
884echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
885echo "configure:886: checking whether ${MAKE-make} sets \${MAKE}" >&5
886set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
887if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
888 echo $ac_n "(cached) $ac_c" 1>&6
889else
890 cat > conftestmake <<\EOF
891all:
892 @echo 'ac_maketemp="${MAKE}"'
893EOF
894# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
895eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
896if test -n "$ac_maketemp"; then
897 eval ac_cv_prog_make_${ac_make}_set=yes
898else
899 eval ac_cv_prog_make_${ac_make}_set=no
900fi
901rm -f conftestmake
902fi
903if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
904 echo "$ac_t""yes" 1>&6
905 SET_MAKE=
906else
907 echo "$ac_t""no" 1>&6
908 SET_MAKE="MAKE=${MAKE-make}"
909fi
910
911
912PACKAGE=heimdal
913
914VERSION=0.2o
914VERSION=0.2p
915
916if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
917 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
918fi
919cat >> confdefs.h <<EOF
920#define PACKAGE "$PACKAGE"
921EOF
922
923cat >> confdefs.h <<EOF
924#define VERSION "$VERSION"
925EOF
926
927
928
929missing_dir=`cd $ac_aux_dir && pwd`
930echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
931echo "configure:932: checking for working aclocal" >&5
932# Run test in a subshell; some versions of sh will print an error if
933# an executable is not found, even if stderr is redirected.
934# Redirect stdin to placate older versions of autoconf. Sigh.
935if (aclocal --version) < /dev/null > /dev/null 2>&1; then
936 ACLOCAL=aclocal
937 echo "$ac_t""found" 1>&6
938else
939 ACLOCAL="$missing_dir/missing aclocal"
940 echo "$ac_t""missing" 1>&6
941fi
942
943echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
944echo "configure:945: checking for working autoconf" >&5
945# Run test in a subshell; some versions of sh will print an error if
946# an executable is not found, even if stderr is redirected.
947# Redirect stdin to placate older versions of autoconf. Sigh.
948if (autoconf --version) < /dev/null > /dev/null 2>&1; then
949 AUTOCONF=autoconf
950 echo "$ac_t""found" 1>&6
951else
952 AUTOCONF="$missing_dir/missing autoconf"
953 echo "$ac_t""missing" 1>&6
954fi
955
956echo $ac_n "checking for working automake""... $ac_c" 1>&6
957echo "configure:958: checking for working automake" >&5
958# Run test in a subshell; some versions of sh will print an error if
959# an executable is not found, even if stderr is redirected.
960# Redirect stdin to placate older versions of autoconf. Sigh.
961if (automake --version) < /dev/null > /dev/null 2>&1; then
962 AUTOMAKE=automake
963 echo "$ac_t""found" 1>&6
964else
965 AUTOMAKE="$missing_dir/missing automake"
966 echo "$ac_t""missing" 1>&6
967fi
968
969echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
970echo "configure:971: checking for working autoheader" >&5
971# Run test in a subshell; some versions of sh will print an error if
972# an executable is not found, even if stderr is redirected.
973# Redirect stdin to placate older versions of autoconf. Sigh.
974if (autoheader --version) < /dev/null > /dev/null 2>&1; then
975 AUTOHEADER=autoheader
976 echo "$ac_t""found" 1>&6
977else
978 AUTOHEADER="$missing_dir/missing autoheader"
979 echo "$ac_t""missing" 1>&6
980fi
981
982echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
983echo "configure:984: checking for working makeinfo" >&5
984# Run test in a subshell; some versions of sh will print an error if
985# an executable is not found, even if stderr is redirected.
986# Redirect stdin to placate older versions of autoconf. Sigh.
987if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
988 MAKEINFO=makeinfo
989 echo "$ac_t""found" 1>&6
990else
991 MAKEINFO="$missing_dir/missing makeinfo"
992 echo "$ac_t""missing" 1>&6
993fi
994
995
996
997
998
999
1000# Make sure we can run config.sub.
1001if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1002else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1003fi
1004
1005echo $ac_n "checking host system type""... $ac_c" 1>&6
1006echo "configure:1007: checking host system type" >&5
1007
1008host_alias=$host
1009case "$host_alias" in
1010NONE)
1011 case $nonopt in
1012 NONE)
1013 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1014 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1015 fi ;;
1016 *) host_alias=$nonopt ;;
1017 esac ;;
1018esac
1019
1020host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1021host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1022host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1023host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1024echo "$ac_t""$host" 1>&6
1025
1026CANONICAL_HOST=$host
1027
1028
1029sunos=no
1030case "$host" in
1031*-*-sunos4*)
1032 sunos=40
1033 ;;
1034*-*-solaris2.7)
1035 sunos=57
1036 ;;
1037*-*-solaris2*)
1038 sunos=50
1039 ;;
1040esac
1041if test "$sunos" != no; then
1042 cat >> confdefs.h <<EOF
1043#define SunOS $sunos
1044EOF
1045
1046fi
1047
1048aix=no
1049case "$host" in
1050*-*-aix3*)
1051 aix=3
1052 ;;
1053*-*-aix4*)
1054 aix=4
1055 ;;
1056esac
1057
1058#test -z "$CFLAGS" && CFLAGS="-g"
1059
1060# Extract the first word of "gcc", so it can be a program name with args.
1061set dummy gcc; ac_word=$2
1062echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1063echo "configure:1064: checking for $ac_word" >&5
1064if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1065 echo $ac_n "(cached) $ac_c" 1>&6
1066else
1067 if test -n "$CC"; then
1068 ac_cv_prog_CC="$CC" # Let the user override the test.
1069else
1070 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1071 ac_dummy="$PATH"
1072 for ac_dir in $ac_dummy; do
1073 test -z "$ac_dir" && ac_dir=.
1074 if test -f $ac_dir/$ac_word; then
1075 ac_cv_prog_CC="gcc"
1076 break
1077 fi
1078 done
1079 IFS="$ac_save_ifs"
1080fi
1081fi
1082CC="$ac_cv_prog_CC"
1083if test -n "$CC"; then
1084 echo "$ac_t""$CC" 1>&6
1085else
1086 echo "$ac_t""no" 1>&6
1087fi
1088
1089if test -z "$CC"; then
1090 # Extract the first word of "cc", so it can be a program name with args.
1091set dummy cc; ac_word=$2
1092echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1093echo "configure:1094: checking for $ac_word" >&5
1094if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1095 echo $ac_n "(cached) $ac_c" 1>&6
1096else
1097 if test -n "$CC"; then
1098 ac_cv_prog_CC="$CC" # Let the user override the test.
1099else
1100 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1101 ac_prog_rejected=no
1102 ac_dummy="$PATH"
1103 for ac_dir in $ac_dummy; do
1104 test -z "$ac_dir" && ac_dir=.
1105 if test -f $ac_dir/$ac_word; then
1106 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1107 ac_prog_rejected=yes
1108 continue
1109 fi
1110 ac_cv_prog_CC="cc"
1111 break
1112 fi
1113 done
1114 IFS="$ac_save_ifs"
1115if test $ac_prog_rejected = yes; then
1116 # We found a bogon in the path, so make sure we never use it.
1117 set dummy $ac_cv_prog_CC
1118 shift
1119 if test $# -gt 0; then
1120 # We chose a different compiler from the bogus one.
1121 # However, it has the same basename, so the bogon will be chosen
1122 # first if we set CC to just the basename; use the full file name.
1123 shift
1124 set dummy "$ac_dir/$ac_word" "$@"
1125 shift
1126 ac_cv_prog_CC="$@"
1127 fi
1128fi
1129fi
1130fi
1131CC="$ac_cv_prog_CC"
1132if test -n "$CC"; then
1133 echo "$ac_t""$CC" 1>&6
1134else
1135 echo "$ac_t""no" 1>&6
1136fi
1137
1138 if test -z "$CC"; then
1139 case "`uname -s`" in
1140 *win32* | *WIN32*)
1141 # Extract the first word of "cl", so it can be a program name with args.
1142set dummy cl; ac_word=$2
1143echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1144echo "configure:1145: checking for $ac_word" >&5
1145if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1146 echo $ac_n "(cached) $ac_c" 1>&6
1147else
1148 if test -n "$CC"; then
1149 ac_cv_prog_CC="$CC" # Let the user override the test.
1150else
1151 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1152 ac_dummy="$PATH"
1153 for ac_dir in $ac_dummy; do
1154 test -z "$ac_dir" && ac_dir=.
1155 if test -f $ac_dir/$ac_word; then
1156 ac_cv_prog_CC="cl"
1157 break
1158 fi
1159 done
1160 IFS="$ac_save_ifs"
1161fi
1162fi
1163CC="$ac_cv_prog_CC"
1164if test -n "$CC"; then
1165 echo "$ac_t""$CC" 1>&6
1166else
1167 echo "$ac_t""no" 1>&6
1168fi
1169 ;;
1170 esac
1171 fi
1172 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1173fi
1174
1175echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1176echo "configure:1177: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1177
1178ac_ext=c
1179# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1180ac_cpp='$CPP $CPPFLAGS'
1181ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1182ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1183cross_compiling=$ac_cv_prog_cc_cross
1184
1185cat > conftest.$ac_ext << EOF
1186
1187#line 1188 "configure"
1188#include "confdefs.h"
1189
1190main(){return(0);}
1191EOF
1192if { (eval echo configure:1193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1193 ac_cv_prog_cc_works=yes
1194 # If we can't run a trivial program, we are probably using a cross compiler.
1195 if (./conftest; exit) 2>/dev/null; then
1196 ac_cv_prog_cc_cross=no
1197 else
1198 ac_cv_prog_cc_cross=yes
1199 fi
1200else
1201 echo "configure: failed program was:" >&5
1202 cat conftest.$ac_ext >&5
1203 ac_cv_prog_cc_works=no
1204fi
1205rm -fr conftest*
1206ac_ext=c
1207# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1208ac_cpp='$CPP $CPPFLAGS'
1209ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1210ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1211cross_compiling=$ac_cv_prog_cc_cross
1212
1213echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1214if test $ac_cv_prog_cc_works = no; then
1215 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1216fi
1217echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1218echo "configure:1219: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1219echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1220cross_compiling=$ac_cv_prog_cc_cross
1221
1222echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1223echo "configure:1224: checking whether we are using GNU C" >&5
1224if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1225 echo $ac_n "(cached) $ac_c" 1>&6
1226else
1227 cat > conftest.c <<EOF
1228#ifdef __GNUC__
1229 yes;
1230#endif
1231EOF
1232if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1233 ac_cv_prog_gcc=yes
1234else
1235 ac_cv_prog_gcc=no
1236fi
1237fi
1238
1239echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1240
1241if test $ac_cv_prog_gcc = yes; then
1242 GCC=yes
1243else
1244 GCC=
1245fi
1246
1247ac_test_CFLAGS="${CFLAGS+set}"
1248ac_save_CFLAGS="$CFLAGS"
1249CFLAGS=
1250echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1251echo "configure:1252: checking whether ${CC-cc} accepts -g" >&5
1252if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1253 echo $ac_n "(cached) $ac_c" 1>&6
1254else
1255 echo 'void f(){}' > conftest.c
1256if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1257 ac_cv_prog_cc_g=yes
1258else
1259 ac_cv_prog_cc_g=no
1260fi
1261rm -f conftest*
1262
1263fi
1264
1265echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1266if test "$ac_test_CFLAGS" = set; then
1267 CFLAGS="$ac_save_CFLAGS"
1268elif test $ac_cv_prog_cc_g = yes; then
1269 if test "$GCC" = yes; then
1270 CFLAGS="-g -O2"
1271 else
1272 CFLAGS="-g"
1273 fi
1274else
1275 if test "$GCC" = yes; then
1276 CFLAGS="-O2"
1277 else
1278 CFLAGS=
1279 fi
1280fi
1281
1282
1283echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1284echo "configure:1285: checking for Cygwin environment" >&5
1285if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1286 echo $ac_n "(cached) $ac_c" 1>&6
1287else
1288 cat > conftest.$ac_ext <<EOF
1289#line 1290 "configure"
1290#include "confdefs.h"
1291
1292int main() {
1293
1294#ifndef __CYGWIN__
1295#define __CYGWIN__ __CYGWIN32__
1296#endif
1297return __CYGWIN__;
1298; return 0; }
1299EOF
1300if { (eval echo configure:1301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1301 rm -rf conftest*
1302 ac_cv_cygwin=yes
1303else
1304 echo "configure: failed program was:" >&5
1305 cat conftest.$ac_ext >&5
1306 rm -rf conftest*
1307 ac_cv_cygwin=no
1308fi
1309rm -f conftest*
1310rm -f conftest*
1311fi
1312
1313echo "$ac_t""$ac_cv_cygwin" 1>&6
1314CYGWIN=
1315test "$ac_cv_cygwin" = yes && CYGWIN=yes
1316echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1317echo "configure:1318: checking for object suffix" >&5
1318if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1319 echo $ac_n "(cached) $ac_c" 1>&6
1320else
1321 rm -f conftest*
1322echo 'int i = 1;' > conftest.$ac_ext
1323if { (eval echo configure:1324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1324 for ac_file in conftest.*; do
1325 case $ac_file in
1326 *.c) ;;
1327 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1328 esac
1329 done
1330else
1331 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1332fi
1333rm -f conftest*
1334fi
1335
1336echo "$ac_t""$ac_cv_objext" 1>&6
1337OBJEXT=$ac_cv_objext
1338ac_objext=$ac_cv_objext
1339
1340echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1341echo "configure:1342: checking for mingw32 environment" >&5
1342if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1343 echo $ac_n "(cached) $ac_c" 1>&6
1344else
1345 cat > conftest.$ac_ext <<EOF
1346#line 1347 "configure"
1347#include "confdefs.h"
1348
1349int main() {
1350return __MINGW32__;
1351; return 0; }
1352EOF
1353if { (eval echo configure:1354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1354 rm -rf conftest*
1355 ac_cv_mingw32=yes
1356else
1357 echo "configure: failed program was:" >&5
1358 cat conftest.$ac_ext >&5
1359 rm -rf conftest*
1360 ac_cv_mingw32=no
1361fi
1362rm -f conftest*
1363rm -f conftest*
1364fi
1365
1366echo "$ac_t""$ac_cv_mingw32" 1>&6
1367MINGW32=
1368test "$ac_cv_mingw32" = yes && MINGW32=yes
1369
1370
1371echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1372echo "configure:1373: checking for executable suffix" >&5
1373if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1374 echo $ac_n "(cached) $ac_c" 1>&6
1375else
1376 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1377 ac_cv_exeext=.exe
1378else
1379 rm -f conftest*
1380 echo 'int main () { return 0; }' > conftest.$ac_ext
1381 ac_cv_exeext=
1382 if { (eval echo configure:1383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1383 for file in conftest.*; do
1384 case $file in
1385 *.c | *.o | *.obj) ;;
1386 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1387 esac
1388 done
1389 else
1390 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1391 fi
1392 rm -f conftest*
1393 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1394fi
1395fi
1396
1397EXEEXT=""
1398test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1399echo "$ac_t""${ac_cv_exeext}" 1>&6
1400ac_exeext=$EXEEXT
1401
1402
1403for ac_prog in 'bison -y' byacc
1404do
1405# Extract the first word of "$ac_prog", so it can be a program name with args.
1406set dummy $ac_prog; ac_word=$2
1407echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1408echo "configure:1409: checking for $ac_word" >&5
1409if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1410 echo $ac_n "(cached) $ac_c" 1>&6
1411else
1412 if test -n "$YACC"; then
1413 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1414else
1415 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1416 ac_dummy="$PATH"
1417 for ac_dir in $ac_dummy; do
1418 test -z "$ac_dir" && ac_dir=.
1419 if test -f $ac_dir/$ac_word; then
1420 ac_cv_prog_YACC="$ac_prog"
1421 break
1422 fi
1423 done
1424 IFS="$ac_save_ifs"
1425fi
1426fi
1427YACC="$ac_cv_prog_YACC"
1428if test -n "$YACC"; then
1429 echo "$ac_t""$YACC" 1>&6
1430else
1431 echo "$ac_t""no" 1>&6
1432fi
1433
1434test -n "$YACC" && break
1435done
1436test -n "$YACC" || YACC="yacc"
1437
1438echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1439echo "configure:1440: checking how to run the C preprocessor" >&5
1440# On Suns, sometimes $CPP names a directory.
1441if test -n "$CPP" && test -d "$CPP"; then
1442 CPP=
1443fi
1444if test -z "$CPP"; then
1445if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1446 echo $ac_n "(cached) $ac_c" 1>&6
1447else
1448 # This must be in double quotes, not single quotes, because CPP may get
1449 # substituted into the Makefile and "${CC-cc}" will confuse make.
1450 CPP="${CC-cc} -E"
1451 # On the NeXT, cc -E runs the code through the compiler's parser,
1452 # not just through cpp.
1453 cat > conftest.$ac_ext <<EOF
1454#line 1455 "configure"
1455#include "confdefs.h"
1456#include <assert.h>
1457Syntax Error
1458EOF
1459ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1460{ (eval echo configure:1461: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1461ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1462if test -z "$ac_err"; then
1463 :
1464else
1465 echo "$ac_err" >&5
1466 echo "configure: failed program was:" >&5
1467 cat conftest.$ac_ext >&5
1468 rm -rf conftest*
1469 CPP="${CC-cc} -E -traditional-cpp"
1470 cat > conftest.$ac_ext <<EOF
1471#line 1472 "configure"
1472#include "confdefs.h"
1473#include <assert.h>
1474Syntax Error
1475EOF
1476ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1477{ (eval echo configure:1478: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1478ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1479if test -z "$ac_err"; then
1480 :
1481else
1482 echo "$ac_err" >&5
1483 echo "configure: failed program was:" >&5
1484 cat conftest.$ac_ext >&5
1485 rm -rf conftest*
1486 CPP="${CC-cc} -nologo -E"
1487 cat > conftest.$ac_ext <<EOF
1488#line 1489 "configure"
1489#include "confdefs.h"
1490#include <assert.h>
1491Syntax Error
1492EOF
1493ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1494{ (eval echo configure:1495: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1495ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1496if test -z "$ac_err"; then
1497 :
1498else
1499 echo "$ac_err" >&5
1500 echo "configure: failed program was:" >&5
1501 cat conftest.$ac_ext >&5
1502 rm -rf conftest*
1503 CPP=/lib/cpp
1504fi
1505rm -f conftest*
1506fi
1507rm -f conftest*
1508fi
1509rm -f conftest*
1510 ac_cv_prog_CPP="$CPP"
1511fi
1512 CPP="$ac_cv_prog_CPP"
1513else
1514 ac_cv_prog_CPP="$CPP"
1515fi
1516echo "$ac_t""$CPP" 1>&6
1517
1518missing_dir=`cd $ac_aux_dir && pwd`
1519for ac_prog in flex lex
1520do
1521# Extract the first word of "$ac_prog", so it can be a program name with args.
1522set dummy $ac_prog; ac_word=$2
1523echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1524echo "configure:1525: checking for $ac_word" >&5
1525if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1526 echo $ac_n "(cached) $ac_c" 1>&6
1527else
1528 if test -n "$LEX"; then
1529 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1530else
1531 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1532 ac_dummy="$PATH"
1533 for ac_dir in $ac_dummy; do
1534 test -z "$ac_dir" && ac_dir=.
1535 if test -f $ac_dir/$ac_word; then
1536 ac_cv_prog_LEX="$ac_prog"
1537 break
1538 fi
1539 done
1540 IFS="$ac_save_ifs"
1541fi
1542fi
1543LEX="$ac_cv_prog_LEX"
1544if test -n "$LEX"; then
1545 echo "$ac_t""$LEX" 1>&6
1546else
1547 echo "$ac_t""no" 1>&6
1548fi
1549
1550test -n "$LEX" && break
1551done
1552test -n "$LEX" || LEX=""$missing_dir/missing flex""
1553
1554# Extract the first word of "flex", so it can be a program name with args.
1555set dummy flex; ac_word=$2
1556echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1557echo "configure:1558: checking for $ac_word" >&5
1558if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1559 echo $ac_n "(cached) $ac_c" 1>&6
1560else
1561 if test -n "$LEX"; then
1562 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1563else
1564 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1565 ac_dummy="$PATH"
1566 for ac_dir in $ac_dummy; do
1567 test -z "$ac_dir" && ac_dir=.
1568 if test -f $ac_dir/$ac_word; then
1569 ac_cv_prog_LEX="flex"
1570 break
1571 fi
1572 done
1573 IFS="$ac_save_ifs"
1574 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1575fi
1576fi
1577LEX="$ac_cv_prog_LEX"
1578if test -n "$LEX"; then
1579 echo "$ac_t""$LEX" 1>&6
1580else
1581 echo "$ac_t""no" 1>&6
1582fi
1583
1584if test -z "$LEXLIB"
1585then
1586 case "$LEX" in
1587 flex*) ac_lib=fl ;;
1588 *) ac_lib=l ;;
1589 esac
1590 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1591echo "configure:1592: checking for yywrap in -l$ac_lib" >&5
1592ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1593if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1594 echo $ac_n "(cached) $ac_c" 1>&6
1595else
1596 ac_save_LIBS="$LIBS"
1597LIBS="-l$ac_lib $LIBS"
1598cat > conftest.$ac_ext <<EOF
1599#line 1600 "configure"
1600#include "confdefs.h"
1601/* Override any gcc2 internal prototype to avoid an error. */
1602/* We use char because int might match the return type of a gcc2
1603 builtin and then its argument prototype would still apply. */
1604char yywrap();
1605
1606int main() {
1607yywrap()
1608; return 0; }
1609EOF
1610if { (eval echo configure:1611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1611 rm -rf conftest*
1612 eval "ac_cv_lib_$ac_lib_var=yes"
1613else
1614 echo "configure: failed program was:" >&5
1615 cat conftest.$ac_ext >&5
1616 rm -rf conftest*
1617 eval "ac_cv_lib_$ac_lib_var=no"
1618fi
1619rm -f conftest*
1620LIBS="$ac_save_LIBS"
1621
1622fi
1623if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1624 echo "$ac_t""yes" 1>&6
1625 LEXLIB="-l$ac_lib"
1626else
1627 echo "$ac_t""no" 1>&6
1628fi
1629
1630fi
1631
1632echo $ac_n "checking lex output file root""... $ac_c" 1>&6
1633echo "configure:1634: checking lex output file root" >&5
1634if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
1635 echo $ac_n "(cached) $ac_c" 1>&6
1636else
1637 # The minimal lex program is just a single line: %%. But some broken lexes
1638# (Solaris, I think it was) want two %% lines, so accommodate them.
1639echo '%%
1640%%' | $LEX
1641if test -f lex.yy.c; then
1642 ac_cv_prog_lex_root=lex.yy
1643elif test -f lexyy.c; then
1644 ac_cv_prog_lex_root=lexyy
1645else
1646 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
1647fi
1648fi
1649
1650echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
1651LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
1652
1653echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
1654echo "configure:1655: checking whether yytext is a pointer" >&5
1655if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
1656 echo $ac_n "(cached) $ac_c" 1>&6
1657else
1658 # POSIX says lex can declare yytext either as a pointer or an array; the
1659# default is implementation-dependent. Figure out which it is, since
1660# not all implementations provide the %pointer and %array declarations.
1661ac_cv_prog_lex_yytext_pointer=no
1662echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
1663ac_save_LIBS="$LIBS"
1664LIBS="$LIBS $LEXLIB"
1665cat > conftest.$ac_ext <<EOF
1666#line 1667 "configure"
1667#include "confdefs.h"
1668`cat $LEX_OUTPUT_ROOT.c`
1669int main() {
1670
1671; return 0; }
1672EOF
1673if { (eval echo configure:1674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1674 rm -rf conftest*
1675 ac_cv_prog_lex_yytext_pointer=yes
1676else
1677 echo "configure: failed program was:" >&5
1678 cat conftest.$ac_ext >&5
1679fi
1680rm -f conftest*
1681LIBS="$ac_save_LIBS"
1682rm -f "${LEX_OUTPUT_ROOT}.c"
1683
1684fi
1685
1686echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
1687if test $ac_cv_prog_lex_yytext_pointer = yes; then
1688 cat >> confdefs.h <<\EOF
1689#define YYTEXT_POINTER 1
1690EOF
1691
1692fi
1693
1694# Extract the first word of "ranlib", so it can be a program name with args.
1695set dummy ranlib; ac_word=$2
1696echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1697echo "configure:1698: checking for $ac_word" >&5
1698if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1699 echo $ac_n "(cached) $ac_c" 1>&6
1700else
1701 if test -n "$RANLIB"; then
1702 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1703else
1704 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1705 ac_dummy="$PATH"
1706 for ac_dir in $ac_dummy; do
1707 test -z "$ac_dir" && ac_dir=.
1708 if test -f $ac_dir/$ac_word; then
1709 ac_cv_prog_RANLIB="ranlib"
1710 break
1711 fi
1712 done
1713 IFS="$ac_save_ifs"
1714 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1715fi
1716fi
1717RANLIB="$ac_cv_prog_RANLIB"
1718if test -n "$RANLIB"; then
1719 echo "$ac_t""$RANLIB" 1>&6
1720else
1721 echo "$ac_t""no" 1>&6
1722fi
1723
1724for ac_prog in mawk gawk nawk awk
1725do
1726# Extract the first word of "$ac_prog", so it can be a program name with args.
1727set dummy $ac_prog; ac_word=$2
1728echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1729echo "configure:1730: checking for $ac_word" >&5
1730if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1731 echo $ac_n "(cached) $ac_c" 1>&6
1732else
1733 if test -n "$AWK"; then
1734 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1735else
1736 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1737 ac_dummy="$PATH"
1738 for ac_dir in $ac_dummy; do
1739 test -z "$ac_dir" && ac_dir=.
1740 if test -f $ac_dir/$ac_word; then
1741 ac_cv_prog_AWK="$ac_prog"
1742 break
1743 fi
1744 done
1745 IFS="$ac_save_ifs"
1746fi
1747fi
1748AWK="$ac_cv_prog_AWK"
1749if test -n "$AWK"; then
1750 echo "$ac_t""$AWK" 1>&6
1751else
1752 echo "$ac_t""no" 1>&6
1753fi
1754
1755test -n "$AWK" && break
1756done
1757
1758echo $ac_n "checking for ln -s or something else""... $ac_c" 1>&6
1759echo "configure:1760: checking for ln -s or something else" >&5
1760if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1761 echo $ac_n "(cached) $ac_c" 1>&6
1762else
1763 rm -f conftestdata
1764if ln -s X conftestdata 2>/dev/null
1765then
1766 rm -f conftestdata
1767 ac_cv_prog_LN_S="ln -s"
1768else
1769 touch conftestdata1
1770 if ln conftestdata1 conftestdata2; then
1771 rm -f conftestdata*
1772 ac_cv_prog_LN_S=ln
1773 else
1774 ac_cv_prog_LN_S=cp
1775 fi
1776fi
1777fi
1778LN_S="$ac_cv_prog_LN_S"
1779echo "$ac_t""$ac_cv_prog_LN_S" 1>&6
1780
1781
1782
1783# Check whether --with-mips_abi or --without-mips_abi was given.
1784if test "${with_mips_abi+set}" = set; then
1785 withval="$with_mips_abi"
1786 :
1787fi
1788
1789
1790case "$host_os" in
1791irix*)
1792with_mips_abi="${with_mips_abi:-yes}"
1793if test -n "$GCC"; then
1794
1795# GCC < 2.8 only supports the O32 ABI. GCC >= 2.8 has a flag to select
1796# which ABI to use, but only supports (as of 2.8.1) the N32 and 64 ABIs.
1797#
1798# Default to N32, but if GCC doesn't grok -mabi=n32, we assume an old
1799# GCC and revert back to O32. The same goes if O32 is asked for - old
1800# GCCs doesn't like the -mabi option, and new GCCs can't output O32.
1801#
1802# Don't you just love *all* the different SGI ABIs?
1803
1804case "${with_mips_abi}" in
1805 32|o32) abi='-mabi=32'; abilibdirext='' ;;
1806 n32|yes) abi='-mabi=n32'; abilibdirext='32' ;;
1807 64) abi='-mabi=64'; abilibdirext='64' ;;
1808 no) abi=''; abilibdirext='';;
1809 *) { echo "configure: error: "Invalid ABI specified"" 1>&2; exit 1; } ;;
1810esac
1811if test -n "$abi" ; then
1812ac_foo=krb_cv_gcc_`echo $abi | tr =- __`
1813echo $ac_n "checking if $CC supports the $abi option""... $ac_c" 1>&6
1814echo "configure:1815: checking if $CC supports the $abi option" >&5
1815if eval "test \"`echo '$''{'$ac_foo'+set}'`\" = set"; then
1816 echo $ac_n "(cached) $ac_c" 1>&6
1817else
1818
1819save_CFLAGS="$CFLAGS"
1820CFLAGS="$CFLAGS $abi"
1821cat > conftest.$ac_ext <<EOF
1822#line 1823 "configure"
1823#include "confdefs.h"
1824
1825int main() {
1826int x;
1827; return 0; }
1828EOF
1829if { (eval echo configure:1830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1830 rm -rf conftest*
1831 eval $ac_foo=yes
1832else
1833 echo "configure: failed program was:" >&5
1834 cat conftest.$ac_ext >&5
1835 rm -rf conftest*
1836 eval $ac_foo=no
1837fi
1838rm -f conftest*
1839CFLAGS="$save_CFLAGS"
1840
1841fi
1842
1843ac_res=`eval echo \\\$$ac_foo`
1844echo "$ac_t""$ac_res" 1>&6
1845if test $ac_res = no; then
1846# Try to figure out why that failed...
1847case $abi in
1848 -mabi=32)
1849 save_CFLAGS="$CFLAGS"
1850 CFLAGS="$CFLAGS -mabi=n32"
1851 cat > conftest.$ac_ext <<EOF
1852#line 1853 "configure"
1853#include "confdefs.h"
1854
1855int main() {
1856int x;
1857; return 0; }
1858EOF
1859if { (eval echo configure:1860: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1860 rm -rf conftest*
1861 ac_res=yes
1862else
1863 echo "configure: failed program was:" >&5
1864 cat conftest.$ac_ext >&5
1865 rm -rf conftest*
1866 ac_res=no
1867fi
1868rm -f conftest*
1869 CLAGS="$save_CFLAGS"
1870 if test $ac_res = yes; then
1871 # New GCC
1872 { echo "configure: error: $CC does not support the $with_mips_abi ABI" 1>&2; exit 1; }
1873 fi
1874 # Old GCC
1875 abi=''
1876 abilibdirext=''
1877 ;;
1878 -mabi=n32|-mabi=64)
1879 if test $with_mips_abi = yes; then
1880 # Old GCC, default to O32
1881 abi=''
1882 abilibdirext=''
1883 else
1884 # Some broken GCC
1885 { echo "configure: error: $CC does not support the $with_mips_abi ABI" 1>&2; exit 1; }
1886 fi
1887 ;;
1888esac
1889fi #if test $ac_res = no; then
1890fi #if test -n "$abi" ; then
1891else
1892case "${with_mips_abi}" in
1893 32|o32) abi='-32'; abilibdirext='' ;;
1894 n32|yes) abi='-n32'; abilibdirext='32' ;;
1895 64) abi='-64'; abilibdirext='64' ;;
1896 no) abi=''; abilibdirext='';;
1897 *) { echo "configure: error: "Invalid ABI specified"" 1>&2; exit 1; } ;;
1898esac
1899fi #if test -n "$GCC"; then
1900;;
1901esac
1902
1903CC="$CC $abi"
1904libdir="$libdir$abilibdirext"
1905
1906
1907echo $ac_n "checking for __attribute__""... $ac_c" 1>&6
1908echo "configure:1909: checking for __attribute__" >&5
1909if eval "test \"`echo '$''{'ac_cv___attribute__'+set}'`\" = set"; then
1910 echo $ac_n "(cached) $ac_c" 1>&6
1911else
1912
1913cat > conftest.$ac_ext <<EOF
1914#line 1915 "configure"
1915#include "confdefs.h"
1916
1917#include <stdlib.h>
1918
1919int main() {
1920
1921static void foo(void) __attribute__ ((noreturn));
1922
1923static void
1924foo(void)
1925{
1926 exit(1);
1927}
1928
1929; return 0; }
1930EOF
1931if { (eval echo configure:1932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1932 rm -rf conftest*
1933 ac_cv___attribute__=yes
1934else
1935 echo "configure: failed program was:" >&5
1936 cat conftest.$ac_ext >&5
1937 rm -rf conftest*
1938 ac_cv___attribute__=no
1939fi
1940rm -f conftest*
1941fi
1942
1943if test "$ac_cv___attribute__" = "yes"; then
1944 cat >> confdefs.h <<\EOF
1945#define HAVE___ATTRIBUTE__ 1
1946EOF
1947
1948fi
1949echo "$ac_t""$ac_cv___attribute__" 1>&6
1950
1951
1952# Check whether --enable-shared or --disable-shared was given.
1953if test "${enable_shared+set}" = set; then
1954 enableval="$enable_shared"
1955 p=${PACKAGE-default}
1956case "$enableval" in
1957yes) enable_shared=yes ;;
1958no) enable_shared=no ;;
1959*)
1960 enable_shared=no
1961 # Look at the argument we got. We use all the common list separators.
1962 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1963 for pkg in $enableval; do
1964 if test "X$pkg" = "X$p"; then
1965 enable_shared=yes
1966 fi
1967 done
1968 IFS="$ac_save_ifs"
1969 ;;
1970esac
1971else
1972 enable_shared=no
1973fi
1974
1975# Check whether --enable-static or --disable-static was given.
1976if test "${enable_static+set}" = set; then
1977 enableval="$enable_static"
1978 p=${PACKAGE-default}
1979case "$enableval" in
1980yes) enable_static=yes ;;
1981no) enable_static=no ;;
1982*)
1983 enable_static=no
1984 # Look at the argument we got. We use all the common list separators.
1985 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1986 for pkg in $enableval; do
1987 if test "X$pkg" = "X$p"; then
1988 enable_static=yes
1989 fi
1990 done
1991 IFS="$ac_save_ifs"
1992 ;;
1993esac
1994else
1995 enable_static=yes
1996fi
1997
1998# Check whether --with-gnu-ld or --without-gnu-ld was given.
1999if test "${with_gnu_ld+set}" = set; then
2000 withval="$with_gnu_ld"
2001 test "$withval" = no || with_gnu_ld=yes
2002else
2003 with_gnu_ld=no
2004fi
2005
2006
2007ac_prog=ld
2008if test "$ac_cv_prog_gcc" = yes; then
2009 # Check if gcc -print-prog-name=ld gives a path.
2010 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2011echo "configure:2012: checking for ld used by GCC" >&5
2012 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2013 case "$ac_prog" in
2014 # Accept absolute paths.
2015 /* | [A-Za-z]:\\*)
2016 test -z "$LD" && LD="$ac_prog"
2017 ;;
2018 "")
2019 # If it fails, then pretend we aren't using GCC.
2020 ac_prog=ld
2021 ;;
2022 *)
2023 # If it is relative, then search for the first ld in PATH.
2024 with_gnu_ld=unknown
2025 ;;
2026 esac
2027elif test "$with_gnu_ld" = yes; then
2028 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2029echo "configure:2030: checking for GNU ld" >&5
2030else
2031 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2032echo "configure:2033: checking for non-GNU ld" >&5
2033fi
2034if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
2035 echo $ac_n "(cached) $ac_c" 1>&6
2036else
2037 if test -z "$LD"; then
2038 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2039 for ac_dir in $PATH; do
2040 test -z "$ac_dir" && ac_dir=.
2041 if test -f "$ac_dir/$ac_prog"; then
2042 ac_cv_path_LD="$ac_dir/$ac_prog"
2043 # Check to see if the program is GNU ld. I'd rather use --version,
2044 # but apparently some GNU ld's only accept -v.
2045 # Break only if it was the GNU/non-GNU ld that we prefer.
2046 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2047 test "$with_gnu_ld" != no && break
2048 else
2049 test "$with_gnu_ld" != yes && break
2050 fi
2051 fi
2052 done
2053 IFS="$ac_save_ifs"
2054else
2055 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2056fi
2057fi
2058
2059LD="$ac_cv_path_LD"
2060if test -n "$LD"; then
2061 echo "$ac_t""$LD" 1>&6
2062else
2063 echo "$ac_t""no" 1>&6
2064fi
2065test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2066
2067echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2068echo "configure:2069: checking if the linker ($LD) is GNU ld" >&5
2069if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
2070 echo $ac_n "(cached) $ac_c" 1>&6
2071else
2072 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2073if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2074 ac_cv_prog_gnu_ld=yes
2075else
2076 ac_cv_prog_gnu_ld=no
2077fi
2078fi
2079
2080echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2081
2082
2083echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2084echo "configure:2085: checking for BSD-compatible nm" >&5
2085if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
2086 echo $ac_n "(cached) $ac_c" 1>&6
2087else
2088 if test -n "$NM"; then
2089 # Let the user override the test.
2090 ac_cv_path_NM="$NM"
2091else
2092 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2093 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
2094 test -z "$ac_dir" && ac_dir=.
2095 if test -f $ac_dir/nm; then
2096 # Check to see if the nm accepts a BSD-compat flag.
2097 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2098 # nm: unknown option "B" ignored
2099 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2100 ac_cv_path_NM="$ac_dir/nm -B"
2101 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2102 ac_cv_path_NM="$ac_dir/nm -p"
2103 else
2104 ac_cv_path_NM="$ac_dir/nm"
2105 fi
2106 break
2107 fi
2108 done
2109 IFS="$ac_save_ifs"
2110 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2111fi
2112fi
2113
2114NM="$ac_cv_path_NM"
2115echo "$ac_t""$NM" 1>&6
2116
2117
2118echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2119echo "configure:2120: checking whether ln -s works" >&5
2120if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2121 echo $ac_n "(cached) $ac_c" 1>&6
2122else
2123 rm -f conftestdata
2124if ln -s X conftestdata 2>/dev/null
2125then
2126 rm -f conftestdata
2127 ac_cv_prog_LN_S="ln -s"
2128else
2129 ac_cv_prog_LN_S=ln
2130fi
2131fi
2132LN_S="$ac_cv_prog_LN_S"
2133if test "$ac_cv_prog_LN_S" = "ln -s"; then
2134 echo "$ac_t""yes" 1>&6
2135else
2136 echo "$ac_t""no" 1>&6
2137fi
2138
2139# Always use our own libtool.
2140LIBTOOL='$(top_builddir)/libtool'
2141
2142# Check for any special flags to pass to ltconfig.
2143libtool_flags=
2144test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2145test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2146test "$silent" = yes && libtool_flags="$libtool_flags --silent"
2147test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2148test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2149
2150# Some flags need to be propagated to the compiler or linker for good
2151# libtool support.
2152case "$host" in
2153*-*-irix6*)
2154 # Find out which ABI we are using.
2155 echo '#line 2156 "configure"' > conftest.$ac_ext
2156 if { (eval echo configure:2157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2157 case "`/usr/bin/file conftest.o`" in
2158 *32-bit*)
2159 LD="${LD-ld} -32"
2160 ;;
2161 *N32*)
2162 LD="${LD-ld} -n32"
2163 ;;
2164 *64-bit*)
2165 LD="${LD-ld} -64"
2166 ;;
2167 esac
2168 fi
2169 rm -rf conftest*
2170 ;;
2171
2172*-*-sco3.2v5*)
2173 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2174 CFLAGS="$CFLAGS -belf"
2175 ;;
2176esac
2177
2178# Actually configure libtool. ac_aux_dir is where install-sh is found.
2179CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2180LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
2181${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2182$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2183|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2184
2185# Redirect the config.log output again, so that the ltconfig log is not
2186# clobbered by the next message.
2187exec 5>>./config.log
2188
2189
2190
2191WFLAGS_NOUNUSED=""
2192WFLAGS_NOIMPLICITINT=""
2193if test -z "$WFLAGS" -a "$GCC" = "yes"; then
2194 # -Wno-implicit-int for broken X11 headers
2195 # leave these out for now:
2196 # -Wcast-align doesn't work well on alpha osf/1
2197 # -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
2198 # -Wmissing-declarations -Wnested-externs
2199 WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs"
2200 WFLAGS_NOUNUSED="-Wno-unused"
2201 WFLAGS_NOIMPLICITINT="-Wno-implicit-int"
2202fi
2203
2204
2205berkeley_db=db
2206# Check whether --with-berkeley-db or --without-berkeley-db was given.
2207if test "${with_berkeley_db+set}" = set; then
2208 withval="$with_berkeley_db"
2209
2210if test "$withval" = no; then
2211 berkeley_db=""
2212fi
2213
2214fi
2215
2216
2217
2218# Check whether --with-krb4 or --without-krb4 was given.
2219if test "${with_krb4+set}" = set; then
2220 withval="$with_krb4"
2221 :
2222fi
2223
2224# Check whether --with-krb4-lib or --without-krb4-lib was given.
2225if test "${with_krb4_lib+set}" = set; then
2226 withval="$with_krb4_lib"
2227 if test "$withval" = "yes" -o "$withval" = "no"; then
2228 { echo "configure: error: No argument for --with-krb4-lib" 1>&2; exit 1; }
2229elif test "X$with_krb4" = "X"; then
2230 with_krb4=yes
2231fi
2232fi
2233
2234# Check whether --with-krb4-include or --without-krb4-include was given.
2235if test "${with_krb4_include+set}" = set; then
2236 withval="$with_krb4_include"
2237 if test "$withval" = "yes" -o "$withval" = "no"; then
2238 { echo "configure: error: No argument for --with-krb4-include" 1>&2; exit 1; }
2239elif test "X$with_krb4" = "X"; then
2240 with_krb4=yes
2241fi
2242fi
2243
2244
2245echo $ac_n "checking for krb4""... $ac_c" 1>&6
2246echo "configure:2247: checking for krb4" >&5
2247
2248case "$with_krb4" in
2249yes) ;;
2250no) ;;
2251"") ;;
2252*) if test "$with_krb4_include" = ""; then
2253 with_krb4_include="$with_krb4/include"
2254 fi
2255 if test "$with_krb4_lib" = ""; then
2256 with_krb4_lib="$with_krb4/lib$abilibdirext"
2257 fi
2258 ;;
2259esac
2260header_dirs=
2261lib_dirs=
2262d='/usr/athena'
2263for i in $d; do
2264 header_dirs="$header_dirs $i/include"
2265 lib_dirs="$lib_dirs $i/lib$abilibdirext"
2266done
2267
2268case "$with_krb4_include" in
2269yes) ;;
2270no) ;;
2271*) header_dirs="$with_krb4_include $header_dirs";;
2272esac
2273case "$with_krb4_lib" in
2274yes) ;;
2275no) ;;
2276*) lib_dirs="$with_krb4_lib $lib_dirs";;
2277esac
2278
2279save_CFLAGS="$CFLAGS"
2280save_LIBS="$LIBS"
2281ires= lres=
2282for i in $header_dirs; do
2283 CFLAGS="-I$i $save_CFLAGS"
2284 cat > conftest.$ac_ext <<EOF
2285#line 2286 "configure"
2286#include "confdefs.h"
2287#include <krb.h>
2288int main() {
2289
2290; return 0; }
2291EOF
2292if { (eval echo configure:2293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2293 rm -rf conftest*
2294 ires=$i;break
2295else
2296 echo "configure: failed program was:" >&5
2297 cat conftest.$ac_ext >&5
2298fi
2299rm -f conftest*
2300done
2301for i in $lib_dirs; do
2302 LIBS="-L$i -lkrb -ldes $save_LIBS"
2303 cat > conftest.$ac_ext <<EOF
2304#line 2305 "configure"
2305#include "confdefs.h"
2306#include <krb.h>
2307int main() {
2308
2309; return 0; }
2310EOF
2311if { (eval echo configure:2312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2312 rm -rf conftest*
2313 lres=$i;break
2314else
2315 echo "configure: failed program was:" >&5
2316 cat conftest.$ac_ext >&5
2317fi
2318rm -f conftest*
2319done
2320CFLAGS="$save_CFLAGS"
2321LIBS="$save_LIBS"
2322
2323if test "$ires" -a "$lres" -a "$with_krb4" != "no"; then
2324 krb4_includedir="$ires"
2325 krb4_libdir="$lres"
2326 INCLUDE_krb4="-I$krb4_includedir"
2327 LIB_krb4="-L$krb4_libdir -lkrb"
2328 cat >> confdefs.h <<EOF
2329#define `echo krb4 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` 1
2330EOF
2331
2332 with_krb4=yes
2333 echo "$ac_t""headers $ires, libraries $lres" 1>&6
2334else
2335 INCLUDE_krb4=
2336 LIB_krb4=
2337 with_krb4=no
2338 echo "$ac_t""$with_krb4" 1>&6
2339fi
2340
2341
2342
2343
2344LIB_kdb=
2345if test "$with_krb4" != "no"; then
2346 save_CFLAGS="$CFLAGS"
2347 CFLAGS="$CFLAGS $INCLUDE_krb4"
2348 save_LIBS="$LIBS"
2349 LIBS="$LIB_krb4 -ldes $LIBS"
2350 EXTRA_LIB45=lib45.a
2351
2352 echo $ac_n "checking for four valued krb_put_int""... $ac_c" 1>&6
2353echo "configure:2354: checking for four valued krb_put_int" >&5
2354if eval "test \"`echo '$''{'ac_cv_func_krb_put_int_four'+set}'`\" = set"; then
2355 echo $ac_n "(cached) $ac_c" 1>&6
2356else
2357 cat > conftest.$ac_ext <<EOF
2358#line 2359 "configure"
2359#include "confdefs.h"
2360#include <krb.h>
2361int main() {
2362
2363 char tmp[4];
2364 krb_put_int(17, tmp, 4, sizeof(tmp));
2365; return 0; }
2366EOF
2367if { (eval echo configure:2368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2368 rm -rf conftest*
2369 ac_cv_func_krb_put_int_four=yes
2370else
2371 echo "configure: failed program was:" >&5
2372 cat conftest.$ac_ext >&5
2373 rm -rf conftest*
2374 ac_cv_func_krb_put_int_four=no
2375fi
2376rm -f conftest*
2377
2378fi
2379
2380echo "$ac_t""$ac_cv_func_krb_put_int_four" 1>&6
2381 if test "$ac_cv_func_krb_put_int_four" = yes; then
2382 cat >> confdefs.h <<\EOF
2383#define HAVE_FOUR_VALUED_KRB_PUT_INT 1
2384EOF
2385
2386 fi
2387 echo $ac_n "checking for KRB_VERIFY_SECURE""... $ac_c" 1>&6
2388echo "configure:2389: checking for KRB_VERIFY_SECURE" >&5
2389if eval "test \"`echo '$''{'ac_cv_func_krb_verify_secure'+set}'`\" = set"; then
2390 echo $ac_n "(cached) $ac_c" 1>&6
2391else
2392 cat > conftest.$ac_ext <<EOF
2393#line 2394 "configure"
2394#include "confdefs.h"
2395#include <krb.h>
2396int main() {
2397
2398 int x = KRB_VERIFY_SECURE
2399; return 0; }
2400EOF
2401if { (eval echo configure:2402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2402 rm -rf conftest*
2403 ac_cv_func_krb_verify_secure=yes
2404else
2405 echo "configure: failed program was:" >&5
2406 cat conftest.$ac_ext >&5
2407 rm -rf conftest*
2408 ac_cv_func_krb_verify_secure=no
2409fi
2410rm -f conftest*
2411
2412fi
2413
2414echo "$ac_t""$ac_cv_func_krb_verify_secure" 1>&6
2415 if test "$ac_cv_func_krb_verify_secure" != yes; then
2416 cat >> confdefs.h <<\EOF
2417#define KRB_VERIFY_SECURE 1
2418EOF
2419
2420 cat >> confdefs.h <<\EOF
2421#define KRB_VERIFY_SECURE_FAIL 2
2422EOF
2423
2424 fi
2425 echo $ac_n "checking for KRB_VERIFY_NOT_SECURE""... $ac_c" 1>&6
2426echo "configure:2427: checking for KRB_VERIFY_NOT_SECURE" >&5
2427if eval "test \"`echo '$''{'ac_cv_func_krb_verify_not_secure'+set}'`\" = set"; then
2428 echo $ac_n "(cached) $ac_c" 1>&6
2429else
2430 cat > conftest.$ac_ext <<EOF
2431#line 2432 "configure"
2432#include "confdefs.h"
2433#include <krb.h>
2434int main() {
2435
2436 int x = KRB_VERIFY_NOT_SECURE
2437; return 0; }
2438EOF
2439if { (eval echo configure:2440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2440 rm -rf conftest*
2441 ac_cv_func_krb_verify_not_secure=yes
2442else
2443 echo "configure: failed program was:" >&5
2444 cat conftest.$ac_ext >&5
2445 rm -rf conftest*
2446 ac_cv_func_krb_verify_not_secure=no
2447fi
2448rm -f conftest*
2449
2450fi
2451
2452echo "$ac_t""$ac_cv_func_krb_verify_not_secure" 1>&6
2453 if test "$ac_cv_func_krb_verify_not_secure" != yes; then
2454 cat >> confdefs.h <<\EOF
2455#define KRB_VERIFY_NOT_SECURE 0
2456EOF
2457
2458 fi
2459
2460
2461
2462
2463echo $ac_n "checking for krb_enable_debug""... $ac_c" 1>&6
2464echo "configure:2465: checking for krb_enable_debug" >&5
2465if eval "test \"`echo '$''{'ac_cv_funclib_krb_enable_debug'+set}'`\" = set"; then
2466 echo $ac_n "(cached) $ac_c" 1>&6
2467else
2468
2469if eval "test \"\$ac_cv_func_krb_enable_debug\" != yes" ; then
2470 ac_save_LIBS="$LIBS"
2471 for ac_lib in "" ; do
2472 if test -n "$ac_lib"; then
2473 ac_lib="-l$ac_lib"
2474 else
2475 ac_lib=""
2476 fi
2477 LIBS=" $ac_lib $ac_save_LIBS"
2478 cat > conftest.$ac_ext <<EOF
2479#line 2480 "configure"
2480#include "confdefs.h"
2481
2482int main() {
2483krb_enable_debug()
2484; return 0; }
2485EOF
2486if { (eval echo configure:2487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2487 rm -rf conftest*
2488 eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_enable_debug=$ac_lib; else ac_cv_funclib_krb_enable_debug=yes; fi";break
2489else
2490 echo "configure: failed program was:" >&5
2491 cat conftest.$ac_ext >&5
2492fi
2493rm -f conftest*
2494 done
2495 eval "ac_cv_funclib_krb_enable_debug=\${ac_cv_funclib_krb_enable_debug-no}"
2496 LIBS="$ac_save_LIBS"
2497fi
2498
2499fi
2500
2501
2502eval "ac_res=\$ac_cv_funclib_krb_enable_debug"
2503
2504: << END
2505@@@funcs="$funcs krb_enable_debug"@@@
2506@@@libs="$libs "" "@@@
2507END
2508
2509# krb_enable_debug
2510eval "ac_tr_func=HAVE_`echo krb_enable_debug | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
2511eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
2512eval "LIB_krb_enable_debug=$ac_res"
2513
2514case "$ac_res" in
2515 yes)
2516 eval "ac_cv_func_krb_enable_debug=yes"
2517 eval "LIB_krb_enable_debug="
2518 cat >> confdefs.h <<EOF
2519#define $ac_tr_func 1
2520EOF
2521
2522 echo "$ac_t""yes" 1>&6
2523 ;;
2524 no)
2525 eval "ac_cv_func_krb_enable_debug=no"
2526 eval "LIB_krb_enable_debug="
2527 echo "$ac_t""no" 1>&6
2528 ;;
2529 *)
2530 eval "ac_cv_func_krb_enable_debug=yes"
2531 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
2532 cat >> confdefs.h <<EOF
2533#define $ac_tr_func 1
2534EOF
2535
2536 cat >> confdefs.h <<EOF
2537#define $ac_tr_lib 1
2538EOF
2539
2540 echo "$ac_t""yes, in $ac_res" 1>&6
2541 ;;
2542esac
2543
2544
2545if test -n "$LIB_krb_enable_debug"; then
2546 LIBS="$LIB_krb_enable_debug $LIBS"
2547fi
2548
2549
2550
2551
2552
2553echo $ac_n "checking for krb_disable_debug""... $ac_c" 1>&6
2554echo "configure:2555: checking for krb_disable_debug" >&5
2555if eval "test \"`echo '$''{'ac_cv_funclib_krb_disable_debug'+set}'`\" = set"; then
2556 echo $ac_n "(cached) $ac_c" 1>&6
2557else
2558
2559if eval "test \"\$ac_cv_func_krb_disable_debug\" != yes" ; then
2560 ac_save_LIBS="$LIBS"
2561 for ac_lib in "" ; do
2562 if test -n "$ac_lib"; then
2563 ac_lib="-l$ac_lib"
2564 else
2565 ac_lib=""
2566 fi
2567 LIBS=" $ac_lib $ac_save_LIBS"
2568 cat > conftest.$ac_ext <<EOF
2569#line 2570 "configure"
2570#include "confdefs.h"
2571
2572int main() {
2573krb_disable_debug()
2574; return 0; }
2575EOF
2576if { (eval echo configure:2577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2577 rm -rf conftest*
2578 eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_disable_debug=$ac_lib; else ac_cv_funclib_krb_disable_debug=yes; fi";break
2579else
2580 echo "configure: failed program was:" >&5
2581 cat conftest.$ac_ext >&5
2582fi
2583rm -f conftest*
2584 done
2585 eval "ac_cv_funclib_krb_disable_debug=\${ac_cv_funclib_krb_disable_debug-no}"
2586 LIBS="$ac_save_LIBS"
2587fi
2588
2589fi
2590
2591
2592eval "ac_res=\$ac_cv_funclib_krb_disable_debug"
2593
2594: << END
2595@@@funcs="$funcs krb_disable_debug"@@@
2596@@@libs="$libs "" "@@@
2597END
2598
2599# krb_disable_debug
2600eval "ac_tr_func=HAVE_`echo krb_disable_debug | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
2601eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
2602eval "LIB_krb_disable_debug=$ac_res"
2603
2604case "$ac_res" in
2605 yes)
2606 eval "ac_cv_func_krb_disable_debug=yes"
2607 eval "LIB_krb_disable_debug="
2608 cat >> confdefs.h <<EOF
2609#define $ac_tr_func 1
2610EOF
2611
2612 echo "$ac_t""yes" 1>&6
2613 ;;
2614 no)
2615 eval "ac_cv_func_krb_disable_debug=no"
2616 eval "LIB_krb_disable_debug="
2617 echo "$ac_t""no" 1>&6
2618 ;;
2619 *)
2620 eval "ac_cv_func_krb_disable_debug=yes"
2621 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
2622 cat >> confdefs.h <<EOF
2623#define $ac_tr_func 1
2624EOF
2625
2626 cat >> confdefs.h <<EOF
2627#define $ac_tr_lib 1
2628EOF
2629
2630 echo "$ac_t""yes, in $ac_res" 1>&6
2631 ;;
2632esac
2633
2634
2635if test -n "$LIB_krb_disable_debug"; then
2636 LIBS="$LIB_krb_disable_debug $LIBS"
2637fi
2638
2639
2640
2641
2642
2643echo $ac_n "checking for krb_get_our_ip_for_realm""... $ac_c" 1>&6
2644echo "configure:2645: checking for krb_get_our_ip_for_realm" >&5
2645if eval "test \"`echo '$''{'ac_cv_funclib_krb_get_our_ip_for_realm'+set}'`\" = set"; then
2646 echo $ac_n "(cached) $ac_c" 1>&6
2647else
2648
2649if eval "test \"\$ac_cv_func_krb_get_our_ip_for_realm\" != yes" ; then
2650 ac_save_LIBS="$LIBS"
2651 for ac_lib in "" ; do
2652 if test -n "$ac_lib"; then
2653 ac_lib="-l$ac_lib"
2654 else
2655 ac_lib=""
2656 fi
2657 LIBS=" $ac_lib $ac_save_LIBS"
2658 cat > conftest.$ac_ext <<EOF
2659#line 2660 "configure"
2660#include "confdefs.h"
2661
2662int main() {
2663krb_get_our_ip_for_realm()
2664; return 0; }
2665EOF
2666if { (eval echo configure:2667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2667 rm -rf conftest*
2668 eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_get_our_ip_for_realm=$ac_lib; else ac_cv_funclib_krb_get_our_ip_for_realm=yes; fi";break
2669else
2670 echo "configure: failed program was:" >&5
2671 cat conftest.$ac_ext >&5
2672fi
2673rm -f conftest*
2674 done
2675 eval "ac_cv_funclib_krb_get_our_ip_for_realm=\${ac_cv_funclib_krb_get_our_ip_for_realm-no}"
2676 LIBS="$ac_save_LIBS"
2677fi
2678
2679fi
2680
2681
2682eval "ac_res=\$ac_cv_funclib_krb_get_our_ip_for_realm"
2683
2684: << END
2685@@@funcs="$funcs krb_get_our_ip_for_realm"@@@
2686@@@libs="$libs "" "@@@
2687END
2688
2689# krb_get_our_ip_for_realm
2690eval "ac_tr_func=HAVE_`echo krb_get_our_ip_for_realm | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
2691eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
2692eval "LIB_krb_get_our_ip_for_realm=$ac_res"
2693
2694case "$ac_res" in
2695 yes)
2696 eval "ac_cv_func_krb_get_our_ip_for_realm=yes"
2697 eval "LIB_krb_get_our_ip_for_realm="
2698 cat >> confdefs.h <<EOF
2699#define $ac_tr_func 1
2700EOF
2701
2702 echo "$ac_t""yes" 1>&6
2703 ;;
2704 no)
2705 eval "ac_cv_func_krb_get_our_ip_for_realm=no"
2706 eval "LIB_krb_get_our_ip_for_realm="
2707 echo "$ac_t""no" 1>&6
2708 ;;
2709 *)
2710 eval "ac_cv_func_krb_get_our_ip_for_realm=yes"
2711 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
2712 cat >> confdefs.h <<EOF
2713#define $ac_tr_func 1
2714EOF
2715
2716 cat >> confdefs.h <<EOF
2717#define $ac_tr_lib 1
2718EOF
2719
2720 echo "$ac_t""yes, in $ac_res" 1>&6
2721 ;;
2722esac
2723
2724
2725if test -n "$LIB_krb_get_our_ip_for_realm"; then
2726 LIBS="$LIB_krb_get_our_ip_for_realm $LIBS"
2727fi
2728
2729 LIBS="$save_LIBS"
2730 CFLAGS="$save_CFLAGS"
2731 LIB_kdb="-lkdb -lkrb"
2732 if test "$krb4_libdir"; then
2733 LIB_krb4="-rpath $krb4_libdir $LIB_krb4"
2734 LIB_kdb="-rpath $krb4_libdir -L$krb4_libdir $LIB_kdb"
2735 fi
2736fi
2737
2738
2739if test "$with_krb4" != "no"; then
2740 KRB4_TRUE=
2741 KRB4_FALSE='#'
2742else
2743 KRB4_TRUE='#'
2744 KRB4_FALSE=
2745fi
2746
2747
2748if true; then
2749 KRB5_TRUE=
2750 KRB5_FALSE='#'
2751else
2752 KRB5_TRUE='#'
2753 KRB5_FALSE=
2754fi
2755cat >> confdefs.h <<\EOF
2756#define KRB5 1
2757EOF
2758
2759
2760if test "$aix" != no; then
2761 AIX_TRUE=
2762 AIX_FALSE='#'
2763else
2764 AIX_TRUE='#'
2765 AIX_FALSE=
2766fi
2767
2768if test "$aix" = 4; then
2769 AIX4_TRUE=
2770 AIX4_FALSE='#'
2771else
2772 AIX4_TRUE='#'
2773 AIX4_FALSE=
2774fi
2775aix_dynamic_afs=yes
2776
2777
2778if test "$aix_dynamic_afs" = yes; then
2779 AIX_DYNAMIC_AFS_TRUE=
2780 AIX_DYNAMIC_AFS_FALSE='#'
2781else
2782 AIX_DYNAMIC_AFS_TRUE='#'
2783 AIX_DYNAMIC_AFS_FALSE=
2784fi
2785
2786
2787
2788echo $ac_n "checking for dlopen""... $ac_c" 1>&6
2789echo "configure:2790: checking for dlopen" >&5
2790if eval "test \"`echo '$''{'ac_cv_funclib_dlopen'+set}'`\" = set"; then
2791 echo $ac_n "(cached) $ac_c" 1>&6
2792else
2793
2794if eval "test \"\$ac_cv_func_dlopen\" != yes" ; then
2795 ac_save_LIBS="$LIBS"
2796 for ac_lib in "" dl; do
2797 if test -n "$ac_lib"; then
2798 ac_lib="-l$ac_lib"
2799 else
2800 ac_lib=""
2801 fi
2802 LIBS=" $ac_lib $ac_save_LIBS"
2803 cat > conftest.$ac_ext <<EOF
2804#line 2805 "configure"
2805#include "confdefs.h"
2806
2807int main() {
2808dlopen()
2809; return 0; }
2810EOF
2811if { (eval echo configure:2812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2812 rm -rf conftest*
2813 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dlopen=$ac_lib; else ac_cv_funclib_dlopen=yes; fi";break
2814else
2815 echo "configure: failed program was:" >&5
2816 cat conftest.$ac_ext >&5
2817fi
2818rm -f conftest*
2819 done
2820 eval "ac_cv_funclib_dlopen=\${ac_cv_funclib_dlopen-no}"
2821 LIBS="$ac_save_LIBS"
2822fi
2823
2824fi
2825
2826
2827eval "ac_res=\$ac_cv_funclib_dlopen"
2828
2829: << END
2830@@@funcs="$funcs dlopen"@@@
2831@@@libs="$libs "" dl"@@@
2832END
2833
2834# dlopen
2835eval "ac_tr_func=HAVE_`echo dlopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
2836eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
2837eval "LIB_dlopen=$ac_res"
2838
2839case "$ac_res" in
2840 yes)
2841 eval "ac_cv_func_dlopen=yes"
2842 eval "LIB_dlopen="
2843 cat >> confdefs.h <<EOF
2844#define $ac_tr_func 1
2845EOF
2846
2847 echo "$ac_t""yes" 1>&6
2848 ;;
2849 no)
2850 eval "ac_cv_func_dlopen=no"
2851 eval "LIB_dlopen="
2852 echo "$ac_t""no" 1>&6
2853 ;;
2854 *)
2855 eval "ac_cv_func_dlopen=yes"
2856 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
2857 cat >> confdefs.h <<EOF
2858#define $ac_tr_func 1
2859EOF
2860
2861 cat >> confdefs.h <<EOF
2862#define $ac_tr_lib 1
2863EOF
2864
2865 echo "$ac_t""yes, in $ac_res" 1>&6
2866 ;;
2867esac
2868
2869
2870
2871if test "$aix" != no; then
2872 if test "$aix_dynamic_afs" = yes; then
2873 if test "$ac_cv_funclib_dlopen" = yes; then
2874 AIX_EXTRA_KAFS=
2875 elif test "$ac_cv_funclib_dlopen" != no; then
2876 AIX_EXTRA_KAFS="$ac_cv_funclib_dlopen"
2877 else
2878 AIX_EXTRA_KAFS=-lld
2879 fi
2880 else
2881 AIX_EXTRA_KAFS=
2882 fi
2883fi
2884
2885
2886
2887if test "$ac_cv_funclib_dlopen" != no; then
2888 HAVE_DLOPEN_TRUE=
2889 HAVE_DLOPEN_FALSE='#'
2890else
2891 HAVE_DLOPEN_TRUE='#'
2892 HAVE_DLOPEN_FALSE=
2893fi
2894# Check whether --enable-kaserver or --disable-kaserver was given.
2895if test "${enable_kaserver+set}" = set; then
2896 enableval="$enable_kaserver"
2897 :
2898fi
2899
2900if test "$enable_kaserver" = yes; then
2901 cat >> confdefs.h <<\EOF
2902#define KASERVER 1
2903EOF
2904
2905 if test "$with_krb4" = "no"; then
2906 { echo "configure: error: kaserver requires krb4" 1>&2; exit 1; }
2907 exit 1
2908 fi
2909fi
2910
2911# Check whether --enable-kaserver-db or --disable-kaserver-db was given.
2912if test "${enable_kaserver_db+set}" = set; then
2913 enableval="$enable_kaserver_db"
2914 :
2915fi
2916
2917if test "$enable_kaserver_db" = yes; then
2918 cat >> confdefs.h <<\EOF
2919#define KASERVER_DB 1
2920EOF
2921
2922 if test "$with_krb4" = "no"; then
2923 { echo "configure: error: kaserver-db requires krb4" 1>&2; exit 1; }
2924 exit 1
2925 fi
2926fi
2927
2928otp=yes
2929# Check whether --enable-otp or --disable-otp was given.
2930if test "${enable_otp+set}" = set; then
2931 enableval="$enable_otp"
2932
2933if test "$enableval" = "no"; then
2934 otp=no
2935fi
2936
2937fi
2938
2939if test "$otp" = "yes"; then
2940 cat >> confdefs.h <<\EOF
2941#define OTP 1
2942EOF
2943
2944 LIB_otp='$(top_builddir)/lib/otp/libotp.la'
2945fi
2946
2947
2948
2949if test "$otp" = yes; then
2950 OTP_TRUE=
2951 OTP_FALSE='#'
2952else
2953 OTP_TRUE='#'
2954 OTP_FALSE=
2955fi
2956
2957# Check whether --enable-osfc2 or --disable-osfc2 was given.
2958if test "${enable_osfc2+set}" = set; then
2959 enableval="$enable_osfc2"
2960 :
2961fi
2962
2963LIB_security=
2964if test "$enable_osfc2" = yes; then
2965 cat >> confdefs.h <<\EOF
2966#define HAVE_OSFC2 1
2967EOF
2968
2969 LIB_security=-lsecurity
2970fi
2971
2972
2973
2974# Extract the first word of "nroff", so it can be a program name with args.
2975set dummy nroff; ac_word=$2
2976echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2977echo "configure:2978: checking for $ac_word" >&5
2978if eval "test \"`echo '$''{'ac_cv_path_NROFF'+set}'`\" = set"; then
2979 echo $ac_n "(cached) $ac_c" 1>&6
2980else
2981 case "$NROFF" in
2982 /*)
2983 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
2984 ;;
2985 ?:/*)
2986 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a dos path.
2987 ;;
2988 *)
2989 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2990 ac_dummy="$PATH"
2991 for ac_dir in $ac_dummy; do
2992 test -z "$ac_dir" && ac_dir=.
2993 if test -f $ac_dir/$ac_word; then
2994 ac_cv_path_NROFF="$ac_dir/$ac_word"
2995 break
2996 fi
2997 done
2998 IFS="$ac_save_ifs"
2999 ;;
3000esac
3001fi
3002NROFF="$ac_cv_path_NROFF"
3003if test -n "$NROFF"; then
3004 echo "$ac_t""$NROFF" 1>&6
3005else
3006 echo "$ac_t""no" 1>&6
3007fi
3008
3009# Extract the first word of "groff", so it can be a program name with args.
3010set dummy groff; ac_word=$2
3011echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3012echo "configure:3013: checking for $ac_word" >&5
3013if eval "test \"`echo '$''{'ac_cv_path_GROFF'+set}'`\" = set"; then
3014 echo $ac_n "(cached) $ac_c" 1>&6
3015else
3016 case "$GROFF" in
3017 /*)
3018 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
3019 ;;
3020 ?:/*)
3021 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a dos path.
3022 ;;
3023 *)
3024 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3025 ac_dummy="$PATH"
3026 for ac_dir in $ac_dummy; do
3027 test -z "$ac_dir" && ac_dir=.
3028 if test -f $ac_dir/$ac_word; then
3029 ac_cv_path_GROFF="$ac_dir/$ac_word"
3030 break
3031 fi
3032 done
3033 IFS="$ac_save_ifs"
3034 ;;
3035esac
3036fi
3037GROFF="$ac_cv_path_GROFF"
3038if test -n "$GROFF"; then
3039 echo "$ac_t""$GROFF" 1>&6
3040else
3041 echo "$ac_t""no" 1>&6
3042fi
3043
3044echo $ac_n "checking how to format man pages""... $ac_c" 1>&6
3045echo "configure:3046: checking how to format man pages" >&5
3046if eval "test \"`echo '$''{'ac_cv_sys_man_format'+set}'`\" = set"; then
3047 echo $ac_n "(cached) $ac_c" 1>&6
3048else
3049 cat > conftest.1 << END
3050.Dd January 1, 1970
3051.Dt CONFTEST 1
3052.Sh NAME
3053.Nm conftest
3054.Nd
3055foobar
3056END
3057
3058if test "$NROFF" ; then
3059 for i in "-mdoc" "-mandoc"; do
3060 if "$NROFF" $i conftest.1 2> /dev/null | \
3061 grep Jan > /dev/null 2>&1 ; then
3062 ac_cv_sys_man_format="$NROFF $i"
3063 break
3064 fi
3065 done
3066fi
3067if test "$ac_cv_sys_man_format" = "" -a "$GROFF" ; then
3068 for i in "-mdoc" "-mandoc"; do
3069 if "$GROFF" -Tascii $i conftest.1 2> /dev/null | \
3070 grep Jan > /dev/null 2>&1 ; then
3071 ac_cv_sys_man_format="$GROFF -Tascii $i"
3072 break
3073 fi
3074 done
3075fi
3076if test "$ac_cv_sys_man_format"; then
3077 ac_cv_sys_man_format="$ac_cv_sys_man_format \$< > \$@"
3078fi
3079
3080fi
3081
3082echo "$ac_t""$ac_cv_sys_man_format" 1>&6
3083if test "$ac_cv_sys_man_format"; then
3084 CATMAN="$ac_cv_sys_man_format"
3085
3086fi
3087
3088
3089if test "$CATMAN"; then
3090 CATMAN_TRUE=
3091 CATMAN_FALSE='#'
3092else
3093 CATMAN_TRUE='#'
3094 CATMAN_FALSE=
3095fi
3096echo $ac_n "checking extension of pre-formatted manual pages""... $ac_c" 1>&6
3097echo "configure:3098: checking extension of pre-formatted manual pages" >&5
3098if eval "test \"`echo '$''{'ac_cv_sys_catman_ext'+set}'`\" = set"; then
3099 echo $ac_n "(cached) $ac_c" 1>&6
3100else
3101 if grep _suffix /etc/man.conf > /dev/null 2>&1; then
3102 ac_cv_sys_catman_ext=0
3103else
3104 ac_cv_sys_catman_ext=number
3105fi
3106
3107fi
3108
3109echo "$ac_t""$ac_cv_sys_catman_ext" 1>&6
3110if test "$ac_cv_sys_catman_ext" = number; then
3111 CATMANEXT='$$ext'
3112else
3113 CATMANEXT=0
3114fi
3115
3116
3117
3118
3119
3120# Check whether --with-readline or --without-readline was given.
3121if test "${with_readline+set}" = set; then
3122 withval="$with_readline"
3123 :
3124fi
3125
3126# Check whether --with-readline-lib or --without-readline-lib was given.
3127if test "${with_readline_lib+set}" = set; then
3128 withval="$with_readline_lib"
3129 if test "$withval" = "yes" -o "$withval" = "no"; then
3130 { echo "configure: error: No argument for --with-readline-lib" 1>&2; exit 1; }
3131elif test "X$with_readline" = "X"; then
3132 with_readline=yes
3133fi
3134fi
3135
3136# Check whether --with-readline-include or --without-readline-include was given.
3137if test "${with_readline_include+set}" = set; then
3138 withval="$with_readline_include"
3139 if test "$withval" = "yes" -o "$withval" = "no"; then
3140 { echo "configure: error: No argument for --with-readline-include" 1>&2; exit 1; }
3141elif test "X$with_readline" = "X"; then
3142 with_readline=yes
3143fi
3144fi
3145
3146
3147echo $ac_n "checking for readline""... $ac_c" 1>&6
3148echo "configure:3149: checking for readline" >&5
3149
3150case "$with_readline" in
3151yes) ;;
3152no) ;;
3153"") ;;
3154*) if test "$with_readline_include" = ""; then
3155 with_readline_include="$with_readline/include"
3156 fi
3157 if test "$with_readline_lib" = ""; then
3158 with_readline_lib="$with_readline/lib$abilibdirext"
3159 fi
3160 ;;
3161esac
3162header_dirs=
3163lib_dirs=
3164d=''
3165for i in $d; do
3166 header_dirs="$header_dirs $i/include"
3167 lib_dirs="$lib_dirs $i/lib$abilibdirext"
3168done
3169
3170case "$with_readline_include" in
3171yes) ;;
3172no) ;;
3173*) header_dirs="$with_readline_include $header_dirs";;
3174esac
3175case "$with_readline_lib" in
3176yes) ;;
3177no) ;;
3178*) lib_dirs="$with_readline_lib $lib_dirs";;
3179esac
3180
3181save_CFLAGS="$CFLAGS"
3182save_LIBS="$LIBS"
3183ires= lres=
3184for i in $header_dirs; do
3185 CFLAGS="-I$i $save_CFLAGS"
3186 cat > conftest.$ac_ext <<EOF
3187#line 3188 "configure"
3188#include "confdefs.h"
3189#include <stdio.h>
3190 #include <readline.h>
3191int main() {
3192
3193; return 0; }
3194EOF
3195if { (eval echo configure:3196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3196 rm -rf conftest*
3197 ires=$i;break
3198else
3199 echo "configure: failed program was:" >&5
3200 cat conftest.$ac_ext >&5
3201fi
3202rm -f conftest*
3203done
3204for i in $lib_dirs; do
3205 LIBS="-L$i -lreadline $save_LIBS"
3206 cat > conftest.$ac_ext <<EOF
3207#line 3208 "configure"
3208#include "confdefs.h"
3209#include <stdio.h>
3210 #include <readline.h>
3211int main() {
3212
3213; return 0; }
3214EOF
3215if { (eval echo configure:3216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3216 rm -rf conftest*
3217 lres=$i;break
3218else
3219 echo "configure: failed program was:" >&5
3220 cat conftest.$ac_ext >&5
3221fi
3222rm -f conftest*
3223done
3224CFLAGS="$save_CFLAGS"
3225LIBS="$save_LIBS"
3226
3227if test "$ires" -a "$lres" -a "$with_readline" != "no"; then
3228 readline_includedir="$ires"
3229 readline_libdir="$lres"
3230 INCLUDE_readline="-I$readline_includedir"
3231 LIB_readline="-L$readline_libdir -lreadline"
3232 cat >> confdefs.h <<EOF
3233#define `echo readline | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` 1
3234EOF
3235
3236 with_readline=yes
3237 echo "$ac_t""headers $ires, libraries $lres" 1>&6
3238else
3239 INCLUDE_readline=
3240 LIB_readline=
3241 with_readline=no
3242 echo "$ac_t""$with_readline" 1>&6
3243fi
3244
3245
3246
3247
3248
3249# Check whether --with-hesiod or --without-hesiod was given.
3250if test "${with_hesiod+set}" = set; then
3251 withval="$with_hesiod"
3252 :
3253fi
3254
3255# Check whether --with-hesiod-lib or --without-hesiod-lib was given.
3256if test "${with_hesiod_lib+set}" = set; then
3257 withval="$with_hesiod_lib"
3258 if test "$withval" = "yes" -o "$withval" = "no"; then
3259 { echo "configure: error: No argument for --with-hesiod-lib" 1>&2; exit 1; }
3260elif test "X$with_hesiod" = "X"; then
3261 with_hesiod=yes
3262fi
3263fi
3264
3265# Check whether --with-hesiod-include or --without-hesiod-include was given.
3266if test "${with_hesiod_include+set}" = set; then
3267 withval="$with_hesiod_include"
3268 if test "$withval" = "yes" -o "$withval" = "no"; then
3269 { echo "configure: error: No argument for --with-hesiod-include" 1>&2; exit 1; }
3270elif test "X$with_hesiod" = "X"; then
3271 with_hesiod=yes
3272fi
3273fi
3274
3275
3276echo $ac_n "checking for hesiod""... $ac_c" 1>&6
3277echo "configure:3278: checking for hesiod" >&5
3278
3279case "$with_hesiod" in
3280yes) ;;
3281no) ;;
3282"") ;;
3283*) if test "$with_hesiod_include" = ""; then
3284 with_hesiod_include="$with_hesiod/include"
3285 fi
3286 if test "$with_hesiod_lib" = ""; then
3287 with_hesiod_lib="$with_hesiod/lib$abilibdirext"
3288 fi
3289 ;;
3290esac
3291header_dirs=
3292lib_dirs=
3293d=''
3294for i in $d; do
3295 header_dirs="$header_dirs $i/include"
3296 lib_dirs="$lib_dirs $i/lib$abilibdirext"
3297done
3298
3299case "$with_hesiod_include" in
3300yes) ;;
3301no) ;;
3302*) header_dirs="$with_hesiod_include $header_dirs";;
3303esac
3304case "$with_hesiod_lib" in
3305yes) ;;
3306no) ;;
3307*) lib_dirs="$with_hesiod_lib $lib_dirs";;
3308esac
3309
3310save_CFLAGS="$CFLAGS"
3311save_LIBS="$LIBS"
3312ires= lres=
3313for i in $header_dirs; do
3314 CFLAGS="-I$i $save_CFLAGS"
3315 cat > conftest.$ac_ext <<EOF
3316#line 3317 "configure"
3317#include "confdefs.h"
3318#include <hesiod.h>
3319int main() {
3320
3321; return 0; }
3322EOF
3323if { (eval echo configure:3324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3324 rm -rf conftest*
3325 ires=$i;break
3326else
3327 echo "configure: failed program was:" >&5
3328 cat conftest.$ac_ext >&5
3329fi
3330rm -f conftest*
3331done
3332for i in $lib_dirs; do
3333 LIBS="-L$i -lhesiod $save_LIBS"
3334 cat > conftest.$ac_ext <<EOF
3335#line 3336 "configure"
3336#include "confdefs.h"
3337#include <hesiod.h>
3338int main() {
3339
3340; return 0; }
3341EOF
3342if { (eval echo configure:3343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3343 rm -rf conftest*
3344 lres=$i;break
3345else
3346 echo "configure: failed program was:" >&5
3347 cat conftest.$ac_ext >&5
3348fi
3349rm -f conftest*
3350done
3351CFLAGS="$save_CFLAGS"
3352LIBS="$save_LIBS"
3353
3354if test "$ires" -a "$lres" -a "$with_hesiod" != "no"; then
3355 hesiod_includedir="$ires"
3356 hesiod_libdir="$lres"
3357 INCLUDE_hesiod="-I$hesiod_includedir"
3358 LIB_hesiod="-L$hesiod_libdir -lhesiod"
3359 cat >> confdefs.h <<EOF
3360#define `echo hesiod | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` 1
3361EOF
3362
3363 with_hesiod=yes
3364 echo "$ac_t""headers $ires, libraries $lres" 1>&6
3365else
3366 INCLUDE_hesiod=
3367 LIB_hesiod=
3368 with_hesiod=no
3369 echo "$ac_t""$with_hesiod" 1>&6
3370fi
3371
3372
3373
3374
3375
3376# Check whether --enable-bigendian or --disable-bigendian was given.
3377if test "${enable_bigendian+set}" = set; then
3378 enableval="$enable_bigendian"
3379 krb_cv_c_bigendian=yes
3380fi
3381
3382# Check whether --enable-littleendian or --disable-littleendian was given.
3383if test "${enable_littleendian+set}" = set; then
3384 enableval="$enable_littleendian"
3385 krb_cv_c_bigendian=no
3386fi
3387
3388echo $ac_n "checking whether byte order is known at compile time""... $ac_c" 1>&6
3389echo "configure:3390: checking whether byte order is known at compile time" >&5
3390if eval "test \"`echo '$''{'krb_cv_c_bigendian_compile'+set}'`\" = set"; then
3391 echo $ac_n "(cached) $ac_c" 1>&6
3392else
3393 cat > conftest.$ac_ext <<EOF
3394#line 3395 "configure"
3395#include "confdefs.h"
3396
3397#include <sys/types.h>
3398#include <sys/param.h>
3399int main() {
3400
3401#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3402 bogus endian macros
3403#endif
3404; return 0; }
3405EOF
3406if { (eval echo configure:3407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3407 rm -rf conftest*
3408 krb_cv_c_bigendian_compile=yes
3409else
3410 echo "configure: failed program was:" >&5
3411 cat conftest.$ac_ext >&5
3412 rm -rf conftest*
3413 krb_cv_c_bigendian_compile=no
3414fi
3415rm -f conftest*
3416fi
3417
3418echo "$ac_t""$krb_cv_c_bigendian_compile" 1>&6
3419if test "$krb_cv_c_bigendian_compile" = "no"; then
3420 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3421echo "configure:3422: checking whether byte ordering is bigendian" >&5
3422if eval "test \"`echo '$''{'krb_cv_c_bigendian'+set}'`\" = set"; then
3423 echo $ac_n "(cached) $ac_c" 1>&6
3424else
3425
3426 if test "$krb_cv_c_bigendian" = ""; then
3427 krb_cv_c_bigendian=unknown
3428 fi
3429 cat > conftest.$ac_ext <<EOF
3430#line 3431 "configure"
3431#include "confdefs.h"
3432
3433#include <sys/types.h>
3434#include <sys/param.h>
3435int main() {
3436
3437#if BYTE_ORDER != BIG_ENDIAN
3438 not big endian
3439#endif
3440; return 0; }
3441EOF
3442if { (eval echo configure:3443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3443 rm -rf conftest*
3444 krb_cv_c_bigendian=yes
3445else
3446 echo "configure: failed program was:" >&5
3447 cat conftest.$ac_ext >&5
3448 rm -rf conftest*
3449 krb_cv_c_bigendian=no
3450fi
3451rm -f conftest*
3452 if test "$krb_cv_c_bigendian" = "unknown"; then
3453 if test "$cross_compiling" = yes; then
3454 { echo "configure: error: specify either --enable-bigendian or --enable-littleendian" 1>&2; exit 1; }
3455else
3456 cat > conftest.$ac_ext <<EOF
3457#line 3458 "configure"
3458#include "confdefs.h"
3459main () {
3460 /* Are we little or big endian? From Harbison&Steele. */
3461 union
3462 {
3463 long l;
3464 char c[sizeof (long)];
3465 } u;
3466 u.l = 1;
3467 exit (u.c[sizeof (long) - 1] == 1);
3468 }
3469EOF
3470if { (eval echo configure:3471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3471then
3472 krb_cv_c_bigendian=no
3473else
3474 echo "configure: failed program was:" >&5
3475 cat conftest.$ac_ext >&5
3476 rm -fr conftest*
3477 krb_cv_c_bigendian=yes
3478fi
3479rm -fr conftest*
3480fi
3481
3482 fi
3483
3484fi
3485
3486echo "$ac_t""$krb_cv_c_bigendian" 1>&6
3487 if test "$krb_cv_c_bigendian" = "yes"; then
3488 cat >> confdefs.h <<\EOF
3489#define WORDS_BIGENDIAN 1
3490EOF
3491 fi
3492fi
3493if test "$krb_cv_c_bigendian_compile" = "yes"; then
3494 cat >> confdefs.h <<\EOF
3495#define ENDIANESS_IN_SYS_PARAM_H 1
3496EOF
3497fi
3498
3499echo $ac_n "checking for inline""... $ac_c" 1>&6
3500echo "configure:3501: checking for inline" >&5
3501if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3502 echo $ac_n "(cached) $ac_c" 1>&6
3503else
3504 ac_cv_c_inline=no
3505for ac_kw in inline __inline__ __inline; do
3506 cat > conftest.$ac_ext <<EOF
3507#line 3508 "configure"
3508#include "confdefs.h"
3509
3510int main() {
3511} $ac_kw foo() {
3512; return 0; }
3513EOF
3514if { (eval echo configure:3515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3515 rm -rf conftest*
3516 ac_cv_c_inline=$ac_kw; break
3517else
3518 echo "configure: failed program was:" >&5
3519 cat conftest.$ac_ext >&5
3520fi
3521rm -f conftest*
3522done
3523
3524fi
3525
3526echo "$ac_t""$ac_cv_c_inline" 1>&6
3527case "$ac_cv_c_inline" in
3528 inline | yes) ;;
3529 no) cat >> confdefs.h <<\EOF
3530#define inline
3531EOF
3532 ;;
3533 *) cat >> confdefs.h <<EOF
3534#define inline $ac_cv_c_inline
3535EOF
3536 ;;
3537esac
3538
3539
3540# If we find X, set shell vars x_includes and x_libraries to the
3541# paths, otherwise set no_x=yes.
3542# Uses ac_ vars as temps to allow command line to override cache and checks.
3543# --without-x overrides everything else, but does not touch the cache.
3544echo $ac_n "checking for X""... $ac_c" 1>&6
3545echo "configure:3546: checking for X" >&5
3546
3547# Check whether --with-x or --without-x was given.
3548if test "${with_x+set}" = set; then
3549 withval="$with_x"
3550 :
3551fi
3552
3553# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3554if test "x$with_x" = xno; then
3555 # The user explicitly disabled X.
3556 have_x=disabled
3557else
3558 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3559 # Both variables are already set.
3560 have_x=yes
3561 else
3562if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
3563 echo $ac_n "(cached) $ac_c" 1>&6
3564else
3565 # One or both of the vars are not set, and there is no cached value.
3566ac_x_includes=NO ac_x_libraries=NO
3567rm -fr conftestdir
3568if mkdir conftestdir; then
3569 cd conftestdir
3570 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3571 cat > Imakefile <<'EOF'
3572acfindx:
3573 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3574EOF
3575 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3576 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3577 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3578 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3579 for ac_extension in a so sl; do
3580 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3581 test -f $ac_im_libdir/libX11.$ac_extension; then
3582 ac_im_usrlibdir=$ac_im_libdir; break
3583 fi
3584 done
3585 # Screen out bogus values from the imake configuration. They are
3586 # bogus both because they are the default anyway, and because
3587 # using them would break gcc on systems where it needs fixed includes.
3588 case "$ac_im_incroot" in
3589 /usr/include) ;;
3590 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
3591 esac
3592 case "$ac_im_usrlibdir" in
3593 /usr/lib | /lib) ;;
3594 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
3595 esac
3596 fi
3597 cd ..
3598 rm -fr conftestdir
3599fi
3600
3601if test "$ac_x_includes" = NO; then
3602 # Guess where to find include files, by looking for this one X11 .h file.
3603 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
3604
3605 # First, try using that file with no special directory specified.
3606cat > conftest.$ac_ext <<EOF
3607#line 3608 "configure"
3608#include "confdefs.h"
3609#include <$x_direct_test_include>
3610EOF
3611ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3612{ (eval echo configure:3613: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3613ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3614if test -z "$ac_err"; then
3615 rm -rf conftest*
3616 # We can compile using X headers with no special include directory.
3617ac_x_includes=
3618else
3619 echo "$ac_err" >&5
3620 echo "configure: failed program was:" >&5
3621 cat conftest.$ac_ext >&5
3622 rm -rf conftest*
3623 # Look for the header file in a standard set of common directories.
3624# Check X11 before X11Rn because it is often a symlink to the current release.
3625 for ac_dir in \
3626 /usr/X11/include \
3627 /usr/X11R6/include \
3628 /usr/X11R5/include \
3629 /usr/X11R4/include \
3630 \
3631 /usr/include/X11 \
3632 /usr/include/X11R6 \
3633 /usr/include/X11R5 \
3634 /usr/include/X11R4 \
3635 \
3636 /usr/local/X11/include \
3637 /usr/local/X11R6/include \
3638 /usr/local/X11R5/include \
3639 /usr/local/X11R4/include \
3640 \
3641 /usr/local/include/X11 \
3642 /usr/local/include/X11R6 \
3643 /usr/local/include/X11R5 \
3644 /usr/local/include/X11R4 \
3645 \
3646 /usr/X386/include \
3647 /usr/x386/include \
3648 /usr/XFree86/include/X11 \
3649 \
3650 /usr/include \
3651 /usr/local/include \
3652 /usr/unsupported/include \
3653 /usr/athena/include \
3654 /usr/local/x11r5/include \
3655 /usr/lpp/Xamples/include \
3656 \
3657 /usr/openwin/include \
3658 /usr/openwin/share/include \
3659 ; \
3660 do
3661 if test -r "$ac_dir/$x_direct_test_include"; then
3662 ac_x_includes=$ac_dir
3663 break
3664 fi
3665 done
3666fi
3667rm -f conftest*
3668fi # $ac_x_includes = NO
3669
3670if test "$ac_x_libraries" = NO; then
3671 # Check for the libraries.
3672
3673 test -z "$x_direct_test_library" && x_direct_test_library=Xt
3674 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
3675
3676 # See if we find them without any special options.
3677 # Don't add to $LIBS permanently.
3678 ac_save_LIBS="$LIBS"
3679 LIBS="-l$x_direct_test_library $LIBS"
3680cat > conftest.$ac_ext <<EOF
3681#line 3682 "configure"
3682#include "confdefs.h"
3683
3684int main() {
3685${x_direct_test_function}()
3686; return 0; }
3687EOF
3688if { (eval echo configure:3689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3689 rm -rf conftest*
3690 LIBS="$ac_save_LIBS"
3691# We can link X programs with no special library path.
3692ac_x_libraries=
3693else
3694 echo "configure: failed program was:" >&5
3695 cat conftest.$ac_ext >&5
3696 rm -rf conftest*
3697 LIBS="$ac_save_LIBS"
3698# First see if replacing the include by lib works.
3699# Check X11 before X11Rn because it is often a symlink to the current release.
3700for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
3701 /usr/X11/lib \
3702 /usr/X11R6/lib \
3703 /usr/X11R5/lib \
3704 /usr/X11R4/lib \
3705 \
3706 /usr/lib/X11 \
3707 /usr/lib/X11R6 \
3708 /usr/lib/X11R5 \
3709 /usr/lib/X11R4 \
3710 \
3711 /usr/local/X11/lib \
3712 /usr/local/X11R6/lib \
3713 /usr/local/X11R5/lib \
3714 /usr/local/X11R4/lib \
3715 \
3716 /usr/local/lib/X11 \
3717 /usr/local/lib/X11R6 \
3718 /usr/local/lib/X11R5 \
3719 /usr/local/lib/X11R4 \
3720 \
3721 /usr/X386/lib \
3722 /usr/x386/lib \
3723 /usr/XFree86/lib/X11 \
3724 \
3725 /usr/lib \
3726 /usr/local/lib \
3727 /usr/unsupported/lib \
3728 /usr/athena/lib \
3729 /usr/local/x11r5/lib \
3730 /usr/lpp/Xamples/lib \
3731 /lib/usr/lib/X11 \
3732 \
3733 /usr/openwin/lib \
3734 /usr/openwin/share/lib \
3735 ; \
3736do
3737 for ac_extension in a so sl; do
3738 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
3739 ac_x_libraries=$ac_dir
3740 break 2
3741 fi
3742 done
3743done
3744fi
3745rm -f conftest*
3746fi # $ac_x_libraries = NO
3747
3748if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
3749 # Didn't find X anywhere. Cache the known absence of X.
3750 ac_cv_have_x="have_x=no"
3751else
3752 # Record where we found X for the cache.
3753 ac_cv_have_x="have_x=yes \
3754 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3755fi
3756fi
3757 fi
3758 eval "$ac_cv_have_x"
3759fi # $with_x != no
3760
3761if test "$have_x" != yes; then
3762 echo "$ac_t""$have_x" 1>&6
3763 no_x=yes
3764else
3765 # If each of the values was on the command line, it overrides each guess.
3766 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3767 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3768 # Update the cache value to reflect the command line values.
3769 ac_cv_have_x="have_x=yes \
3770 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3771 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
3772fi
3773
3774
3775if test "$no_x" = yes; then
3776 # Not all programs may use this symbol, but it does not hurt to define it.
3777 cat >> confdefs.h <<\EOF
3778#define X_DISPLAY_MISSING 1
3779EOF
3780
3781 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3782else
3783 if test -n "$x_includes"; then
3784 X_CFLAGS="$X_CFLAGS -I$x_includes"
3785 fi
3786
3787 # It would also be nice to do this for all -L options, not just this one.
3788 if test -n "$x_libraries"; then
3789 X_LIBS="$X_LIBS -L$x_libraries"
3790 # For Solaris; some versions of Sun CC require a space after -R and
3791 # others require no space. Words are not sufficient . . . .
3792 case "`(uname -sr) 2>/dev/null`" in
3793 "SunOS 5"*)
3794 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
3795echo "configure:3796: checking whether -R must be followed by a space" >&5
3796 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
3797 cat > conftest.$ac_ext <<EOF
3798#line 3799 "configure"
3799#include "confdefs.h"
3800
3801int main() {
3802
3803; return 0; }
3804EOF
3805if { (eval echo configure:3806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3806 rm -rf conftest*
3807 ac_R_nospace=yes
3808else
3809 echo "configure: failed program was:" >&5
3810 cat conftest.$ac_ext >&5
3811 rm -rf conftest*
3812 ac_R_nospace=no
3813fi
3814rm -f conftest*
3815 if test $ac_R_nospace = yes; then
3816 echo "$ac_t""no" 1>&6
3817 X_LIBS="$X_LIBS -R$x_libraries"
3818 else
3819 LIBS="$ac_xsave_LIBS -R $x_libraries"
3820 cat > conftest.$ac_ext <<EOF
3821#line 3822 "configure"
3822#include "confdefs.h"
3823
3824int main() {
3825
3826; return 0; }
3827EOF
3828if { (eval echo configure:3829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3829 rm -rf conftest*
3830 ac_R_space=yes
3831else
3832 echo "configure: failed program was:" >&5
3833 cat conftest.$ac_ext >&5
3834 rm -rf conftest*
3835 ac_R_space=no
3836fi
3837rm -f conftest*
3838 if test $ac_R_space = yes; then
3839 echo "$ac_t""yes" 1>&6
3840 X_LIBS="$X_LIBS -R $x_libraries"
3841 else
3842 echo "$ac_t""neither works" 1>&6
3843 fi
3844 fi
3845 LIBS="$ac_xsave_LIBS"
3846 esac
3847 fi
3848
3849 # Check for system-dependent libraries X programs must link with.
3850 # Do this before checking for the system-independent R6 libraries
3851 # (-lICE), since we may need -lsocket or whatever for X linking.
3852
3853 if test "$ISC" = yes; then
3854 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3855 else
3856 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
3857 # libraries were built with DECnet support. And karl@cs.umb.edu says
3858 # the Alpha needs dnet_stub (dnet does not exist).
3859 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3860echo "configure:3861: checking for dnet_ntoa in -ldnet" >&5
3861ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3862if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3863 echo $ac_n "(cached) $ac_c" 1>&6
3864else
3865 ac_save_LIBS="$LIBS"
3866LIBS="-ldnet $LIBS"
3867cat > conftest.$ac_ext <<EOF
3868#line 3869 "configure"
3869#include "confdefs.h"
3870/* Override any gcc2 internal prototype to avoid an error. */
3871/* We use char because int might match the return type of a gcc2
3872 builtin and then its argument prototype would still apply. */
3873char dnet_ntoa();
3874
3875int main() {
3876dnet_ntoa()
3877; return 0; }
3878EOF
3879if { (eval echo configure:3880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3880 rm -rf conftest*
3881 eval "ac_cv_lib_$ac_lib_var=yes"
3882else
3883 echo "configure: failed program was:" >&5
3884 cat conftest.$ac_ext >&5
3885 rm -rf conftest*
3886 eval "ac_cv_lib_$ac_lib_var=no"
3887fi
3888rm -f conftest*
3889LIBS="$ac_save_LIBS"
3890
3891fi
3892if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3893 echo "$ac_t""yes" 1>&6
3894 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3895else
3896 echo "$ac_t""no" 1>&6
3897fi
3898
3899 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3900 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
3901echo "configure:3902: checking for dnet_ntoa in -ldnet_stub" >&5
3902ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3903if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3904 echo $ac_n "(cached) $ac_c" 1>&6
3905else
3906 ac_save_LIBS="$LIBS"
3907LIBS="-ldnet_stub $LIBS"
3908cat > conftest.$ac_ext <<EOF
3909#line 3910 "configure"
3910#include "confdefs.h"
3911/* Override any gcc2 internal prototype to avoid an error. */
3912/* We use char because int might match the return type of a gcc2
3913 builtin and then its argument prototype would still apply. */
3914char dnet_ntoa();
3915
3916int main() {
3917dnet_ntoa()
3918; return 0; }
3919EOF
3920if { (eval echo configure:3921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3921 rm -rf conftest*
3922 eval "ac_cv_lib_$ac_lib_var=yes"
3923else
3924 echo "configure: failed program was:" >&5
3925 cat conftest.$ac_ext >&5
3926 rm -rf conftest*
3927 eval "ac_cv_lib_$ac_lib_var=no"
3928fi
3929rm -f conftest*
3930LIBS="$ac_save_LIBS"
3931
3932fi
3933if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3934 echo "$ac_t""yes" 1>&6
3935 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3936else
3937 echo "$ac_t""no" 1>&6
3938fi
3939
3940 fi
3941
3942 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3943 # to get the SysV transport functions.
3944 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
3945 # needs -lnsl.
3946 # The nsl library prevents programs from opening the X display
3947 # on Irix 5.2, according to dickey@clark.net.
3948 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3949echo "configure:3950: checking for gethostbyname" >&5
3950if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3951 echo $ac_n "(cached) $ac_c" 1>&6
3952else
3953 cat > conftest.$ac_ext <<EOF
3954#line 3955 "configure"
3955#include "confdefs.h"
3956/* System header to define __stub macros and hopefully few prototypes,
3957 which can conflict with char gethostbyname(); below. */
3958#include <assert.h>
3959/* Override any gcc2 internal prototype to avoid an error. */
3960/* We use char because int might match the return type of a gcc2
3961 builtin and then its argument prototype would still apply. */
3962char gethostbyname();
3963
3964int main() {
3965
3966/* The GNU C library defines this for functions which it implements
3967 to always fail with ENOSYS. Some functions are actually named
3968 something starting with __ and the normal name is an alias. */
3969#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3970choke me
3971#else
3972gethostbyname();
3973#endif
3974
3975; return 0; }
3976EOF
3977if { (eval echo configure:3978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3978 rm -rf conftest*
3979 eval "ac_cv_func_gethostbyname=yes"
3980else
3981 echo "configure: failed program was:" >&5
3982 cat conftest.$ac_ext >&5
3983 rm -rf conftest*
3984 eval "ac_cv_func_gethostbyname=no"
3985fi
3986rm -f conftest*
3987fi
3988
3989if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3990 echo "$ac_t""yes" 1>&6
3991 :
3992else
3993 echo "$ac_t""no" 1>&6
3994fi
3995
3996 if test $ac_cv_func_gethostbyname = no; then
3997 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3998echo "configure:3999: checking for gethostbyname in -lnsl" >&5
3999ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
4000if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4001 echo $ac_n "(cached) $ac_c" 1>&6
4002else
4003 ac_save_LIBS="$LIBS"
4004LIBS="-lnsl $LIBS"
4005cat > conftest.$ac_ext <<EOF
4006#line 4007 "configure"
4007#include "confdefs.h"
4008/* Override any gcc2 internal prototype to avoid an error. */
4009/* We use char because int might match the return type of a gcc2
4010 builtin and then its argument prototype would still apply. */
4011char gethostbyname();
4012
4013int main() {
4014gethostbyname()
4015; return 0; }
4016EOF
4017if { (eval echo configure:4018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4018 rm -rf conftest*
4019 eval "ac_cv_lib_$ac_lib_var=yes"
4020else
4021 echo "configure: failed program was:" >&5
4022 cat conftest.$ac_ext >&5
4023 rm -rf conftest*
4024 eval "ac_cv_lib_$ac_lib_var=no"
4025fi
4026rm -f conftest*
4027LIBS="$ac_save_LIBS"
4028
4029fi
4030if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4031 echo "$ac_t""yes" 1>&6
4032 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4033else
4034 echo "$ac_t""no" 1>&6
4035fi
4036
4037 fi
4038
4039 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4040 # socket/setsockopt and other routines are undefined under SCO ODT
4041 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4042 # on later versions), says simon@lia.di.epfl.ch: it contains
4043 # gethostby* variants that don't use the nameserver (or something).
4044 # -lsocket must be given before -lnsl if both are needed.
4045 # We assume that if connect needs -lnsl, so does gethostbyname.
4046 echo $ac_n "checking for connect""... $ac_c" 1>&6
4047echo "configure:4048: checking for connect" >&5
4048if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
4049 echo $ac_n "(cached) $ac_c" 1>&6
4050else
4051 cat > conftest.$ac_ext <<EOF
4052#line 4053 "configure"
4053#include "confdefs.h"
4054/* System header to define __stub macros and hopefully few prototypes,
4055 which can conflict with char connect(); below. */
4056#include <assert.h>
4057/* Override any gcc2 internal prototype to avoid an error. */
4058/* We use char because int might match the return type of a gcc2
4059 builtin and then its argument prototype would still apply. */
4060char connect();
4061
4062int main() {
4063
4064/* The GNU C library defines this for functions which it implements
4065 to always fail with ENOSYS. Some functions are actually named
4066 something starting with __ and the normal name is an alias. */
4067#if defined (__stub_connect) || defined (__stub___connect)
4068choke me
4069#else
4070connect();
4071#endif
4072
4073; return 0; }
4074EOF
4075if { (eval echo configure:4076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4076 rm -rf conftest*
4077 eval "ac_cv_func_connect=yes"
4078else
4079 echo "configure: failed program was:" >&5
4080 cat conftest.$ac_ext >&5
4081 rm -rf conftest*
4082 eval "ac_cv_func_connect=no"
4083fi
4084rm -f conftest*
4085fi
4086
4087if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
4088 echo "$ac_t""yes" 1>&6
4089 :
4090else
4091 echo "$ac_t""no" 1>&6
4092fi
4093
4094 if test $ac_cv_func_connect = no; then
4095 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4096echo "configure:4097: checking for connect in -lsocket" >&5
4097ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4098if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4099 echo $ac_n "(cached) $ac_c" 1>&6
4100else
4101 ac_save_LIBS="$LIBS"
4102LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4103cat > conftest.$ac_ext <<EOF
4104#line 4105 "configure"
4105#include "confdefs.h"
4106/* Override any gcc2 internal prototype to avoid an error. */
4107/* We use char because int might match the return type of a gcc2
4108 builtin and then its argument prototype would still apply. */
4109char connect();
4110
4111int main() {
4112connect()
4113; return 0; }
4114EOF
4115if { (eval echo configure:4116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4116 rm -rf conftest*
4117 eval "ac_cv_lib_$ac_lib_var=yes"
4118else
4119 echo "configure: failed program was:" >&5
4120 cat conftest.$ac_ext >&5
4121 rm -rf conftest*
4122 eval "ac_cv_lib_$ac_lib_var=no"
4123fi
4124rm -f conftest*
4125LIBS="$ac_save_LIBS"
4126
4127fi
4128if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4129 echo "$ac_t""yes" 1>&6
4130 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4131else
4132 echo "$ac_t""no" 1>&6
4133fi
4134
4135 fi
4136
4137 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
4138 echo $ac_n "checking for remove""... $ac_c" 1>&6
4139echo "configure:4140: checking for remove" >&5
4140if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
4141 echo $ac_n "(cached) $ac_c" 1>&6
4142else
4143 cat > conftest.$ac_ext <<EOF
4144#line 4145 "configure"
4145#include "confdefs.h"
4146/* System header to define __stub macros and hopefully few prototypes,
4147 which can conflict with char remove(); below. */
4148#include <assert.h>
4149/* Override any gcc2 internal prototype to avoid an error. */
4150/* We use char because int might match the return type of a gcc2
4151 builtin and then its argument prototype would still apply. */
4152char remove();
4153
4154int main() {
4155
4156/* The GNU C library defines this for functions which it implements
4157 to always fail with ENOSYS. Some functions are actually named
4158 something starting with __ and the normal name is an alias. */
4159#if defined (__stub_remove) || defined (__stub___remove)
4160choke me
4161#else
4162remove();
4163#endif
4164
4165; return 0; }
4166EOF
4167if { (eval echo configure:4168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4168 rm -rf conftest*
4169 eval "ac_cv_func_remove=yes"
4170else
4171 echo "configure: failed program was:" >&5
4172 cat conftest.$ac_ext >&5
4173 rm -rf conftest*
4174 eval "ac_cv_func_remove=no"
4175fi
4176rm -f conftest*
4177fi
4178
4179if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
4180 echo "$ac_t""yes" 1>&6
4181 :
4182else
4183 echo "$ac_t""no" 1>&6
4184fi
4185
4186 if test $ac_cv_func_remove = no; then
4187 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
4188echo "configure:4189: checking for remove in -lposix" >&5
4189ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
4190if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4191 echo $ac_n "(cached) $ac_c" 1>&6
4192else
4193 ac_save_LIBS="$LIBS"
4194LIBS="-lposix $LIBS"
4195cat > conftest.$ac_ext <<EOF
4196#line 4197 "configure"
4197#include "confdefs.h"
4198/* Override any gcc2 internal prototype to avoid an error. */
4199/* We use char because int might match the return type of a gcc2
4200 builtin and then its argument prototype would still apply. */
4201char remove();
4202
4203int main() {
4204remove()
4205; return 0; }
4206EOF
4207if { (eval echo configure:4208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4208 rm -rf conftest*
4209 eval "ac_cv_lib_$ac_lib_var=yes"
4210else
4211 echo "configure: failed program was:" >&5
4212 cat conftest.$ac_ext >&5
4213 rm -rf conftest*
4214 eval "ac_cv_lib_$ac_lib_var=no"
4215fi
4216rm -f conftest*
4217LIBS="$ac_save_LIBS"
4218
4219fi
4220if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4221 echo "$ac_t""yes" 1>&6
4222 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4223else
4224 echo "$ac_t""no" 1>&6
4225fi
4226
4227 fi
4228
4229 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4230 echo $ac_n "checking for shmat""... $ac_c" 1>&6
4231echo "configure:4232: checking for shmat" >&5
4232if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
4233 echo $ac_n "(cached) $ac_c" 1>&6
4234else
4235 cat > conftest.$ac_ext <<EOF
4236#line 4237 "configure"
4237#include "confdefs.h"
4238/* System header to define __stub macros and hopefully few prototypes,
4239 which can conflict with char shmat(); below. */
4240#include <assert.h>
4241/* Override any gcc2 internal prototype to avoid an error. */
4242/* We use char because int might match the return type of a gcc2
4243 builtin and then its argument prototype would still apply. */
4244char shmat();
4245
4246int main() {
4247
4248/* The GNU C library defines this for functions which it implements
4249 to always fail with ENOSYS. Some functions are actually named
4250 something starting with __ and the normal name is an alias. */
4251#if defined (__stub_shmat) || defined (__stub___shmat)
4252choke me
4253#else
4254shmat();
4255#endif
4256
4257; return 0; }
4258EOF
4259if { (eval echo configure:4260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4260 rm -rf conftest*
4261 eval "ac_cv_func_shmat=yes"
4262else
4263 echo "configure: failed program was:" >&5
4264 cat conftest.$ac_ext >&5
4265 rm -rf conftest*
4266 eval "ac_cv_func_shmat=no"
4267fi
4268rm -f conftest*
4269fi
4270
4271if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
4272 echo "$ac_t""yes" 1>&6
4273 :
4274else
4275 echo "$ac_t""no" 1>&6
4276fi
4277
4278 if test $ac_cv_func_shmat = no; then
4279 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
4280echo "configure:4281: checking for shmat in -lipc" >&5
4281ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
4282if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4283 echo $ac_n "(cached) $ac_c" 1>&6
4284else
4285 ac_save_LIBS="$LIBS"
4286LIBS="-lipc $LIBS"
4287cat > conftest.$ac_ext <<EOF
4288#line 4289 "configure"
4289#include "confdefs.h"
4290/* Override any gcc2 internal prototype to avoid an error. */
4291/* We use char because int might match the return type of a gcc2
4292 builtin and then its argument prototype would still apply. */
4293char shmat();
4294
4295int main() {
4296shmat()
4297; return 0; }
4298EOF
4299if { (eval echo configure:4300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4300 rm -rf conftest*
4301 eval "ac_cv_lib_$ac_lib_var=yes"
4302else
4303 echo "configure: failed program was:" >&5
4304 cat conftest.$ac_ext >&5
4305 rm -rf conftest*
4306 eval "ac_cv_lib_$ac_lib_var=no"
4307fi
4308rm -f conftest*
4309LIBS="$ac_save_LIBS"
4310
4311fi
4312if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4313 echo "$ac_t""yes" 1>&6
4314 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4315else
4316 echo "$ac_t""no" 1>&6
4317fi
4318
4319 fi
4320 fi
4321
4322 # Check for libraries that X11R6 Xt/Xaw programs need.
4323 ac_save_LDFLAGS="$LDFLAGS"
4324 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4325 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4326 # check for ICE first), but we must link in the order -lSM -lICE or
4327 # we get undefined symbols. So assume we have SM if we have ICE.
4328 # These have to be linked with before -lX11, unlike the other
4329 # libraries we check for below, so use a different variable.
4330 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
4331 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
4332echo "configure:4333: checking for IceConnectionNumber in -lICE" >&5
4333ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
4334if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4335 echo $ac_n "(cached) $ac_c" 1>&6
4336else
4337 ac_save_LIBS="$LIBS"
4338LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4339cat > conftest.$ac_ext <<EOF
4340#line 4341 "configure"
4341#include "confdefs.h"
4342/* Override any gcc2 internal prototype to avoid an error. */
4343/* We use char because int might match the return type of a gcc2
4344 builtin and then its argument prototype would still apply. */
4345char IceConnectionNumber();
4346
4347int main() {
4348IceConnectionNumber()
4349; return 0; }
4350EOF
4351if { (eval echo configure:4352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4352 rm -rf conftest*
4353 eval "ac_cv_lib_$ac_lib_var=yes"
4354else
4355 echo "configure: failed program was:" >&5
4356 cat conftest.$ac_ext >&5
4357 rm -rf conftest*
4358 eval "ac_cv_lib_$ac_lib_var=no"
4359fi
4360rm -f conftest*
4361LIBS="$ac_save_LIBS"
4362
4363fi
4364if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4365 echo "$ac_t""yes" 1>&6
4366 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4367else
4368 echo "$ac_t""no" 1>&6
4369fi
4370
4371 LDFLAGS="$ac_save_LDFLAGS"
4372
4373fi
4374
4375
4376# try to figure out if we need any additional ld flags, like -R
4377# and yes, the autoconf X test is utterly broken
4378if test "$no_x" != yes; then
4379 echo $ac_n "checking for special X linker flags""... $ac_c" 1>&6
4380echo "configure:4381: checking for special X linker flags" >&5
4381if eval "test \"`echo '$''{'krb_cv_sys_x_libs_rpath'+set}'`\" = set"; then
4382 echo $ac_n "(cached) $ac_c" 1>&6
4383else
4384
4385 ac_save_libs="$LIBS"
4386 ac_save_cflags="$CFLAGS"
4387 CFLAGS="$CFLAGS $X_CFLAGS"
4388 krb_cv_sys_x_libs_rpath=""
4389 krb_cv_sys_x_libs=""
4390 for rflag in "" "-R" "-R " "-rpath "; do
4391 if test "$rflag" = ""; then
4392 foo="$X_LIBS"
4393 else
4394 foo=""
4395 for flag in $X_LIBS; do
4396 case $flag in
4397 -L*)
4398 foo="$foo $flag `echo $flag | sed \"s/-L/$rflag/\"`"
4399 ;;
4400 *)
4401 foo="$foo $flag"
4402 ;;
4403 esac
4404 done
4405 fi
4406 LIBS="$ac_save_libs $foo $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
4407 if test "$cross_compiling" = yes; then
4408 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4409else
4410 cat > conftest.$ac_ext <<EOF
4411#line 4412 "configure"
4412#include "confdefs.h"
4413
4414 #include <X11/Xlib.h>
4415 foo()
4416 {
4417 XOpenDisplay(NULL);
4418 }
4419 main()
4420 {
4421 return 0;
4422 }
4423
4424EOF
4425if { (eval echo configure:4426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4426then
4427 krb_cv_sys_x_libs_rpath="$rflag"; krb_cv_sys_x_libs="$foo"; break
4428else
4429 echo "configure: failed program was:" >&5
4430 cat conftest.$ac_ext >&5
4431 rm -fr conftest*
4432 :
4433fi
4434rm -fr conftest*
4435fi
4436
4437 done
4438 LIBS="$ac_save_libs"
4439 CFLAGS="$ac_save_cflags"
4440
4441fi
4442
4443echo "$ac_t""$krb_cv_sys_x_libs_rpath" 1>&6
4444 X_LIBS="$krb_cv_sys_x_libs"
4445fi
4446
4447
4448if test "$no_x" = "yes" ; then
4449 MAKE_X_PROGS_BIN_PROGS=""
4450 MAKE_X_PROGS_BIN_SCRPTS=""
4451 MAKE_X_PROGS_LIBEXEC_PROGS=""
4452else
4453 MAKE_X_PROGS_BIN_PROGS='$(X_PROGS_BIN_PROGS)'
4454 MAKE_X_PROGS_BIN_SCRPTS='$(X_PROGS_BIN_SCRPTS)'
4455 MAKE_X_PROGS_LIBEXEC_PROGS='$(X_PROGS_LIBEXEC_PROGS)'
4456fi
4457
4458
4459save_CFLAGS="$CFLAGS"
4460CFLAGS="$X_CFLAGS $CFLAGS"
4461save_LIBS="$LIBS"
4462LIBS="$X_PRE_LIBS $X_EXTRA_LIBS $LIBS"
4463save_LDFLAGS="$LDFLAGS"
4464LDFLAGS="$LDFLAGS $X_LIBS"
4465
4466
4467
4468
4469
4470echo $ac_n "checking for XauWriteAuth""... $ac_c" 1>&6
4471echo "configure:4472: checking for XauWriteAuth" >&5
4472if eval "test \"`echo '$''{'ac_cv_funclib_XauWriteAuth'+set}'`\" = set"; then
4473 echo $ac_n "(cached) $ac_c" 1>&6
4474else
4475
4476if eval "test \"\$ac_cv_func_XauWriteAuth\" != yes" ; then
4477 ac_save_LIBS="$LIBS"
4478 for ac_lib in "" X11 Xau; do
4479 if test -n "$ac_lib"; then
4480 ac_lib="-l$ac_lib"
4481 else
4482 ac_lib=""
4483 fi
4484 LIBS=" $ac_lib $ac_save_LIBS"
4485 cat > conftest.$ac_ext <<EOF
4486#line 4487 "configure"
4487#include "confdefs.h"
4488
4489int main() {
4490XauWriteAuth()
4491; return 0; }
4492EOF
4493if { (eval echo configure:4494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4494 rm -rf conftest*
4495 eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauWriteAuth=$ac_lib; else ac_cv_funclib_XauWriteAuth=yes; fi";break
4496else
4497 echo "configure: failed program was:" >&5
4498 cat conftest.$ac_ext >&5
4499fi
4500rm -f conftest*
4501 done
4502 eval "ac_cv_funclib_XauWriteAuth=\${ac_cv_funclib_XauWriteAuth-no}"
4503 LIBS="$ac_save_LIBS"
4504fi
4505
4506fi
4507
4508
4509eval "ac_res=\$ac_cv_funclib_XauWriteAuth"
4510
4511: << END
4512@@@funcs="$funcs XauWriteAuth"@@@
4513@@@libs="$libs "" X11 Xau"@@@
4514END
4515
4516# XauWriteAuth
4517eval "ac_tr_func=HAVE_`echo XauWriteAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
4518eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
4519eval "LIB_XauWriteAuth=$ac_res"
4520
4521case "$ac_res" in
4522 yes)
4523 eval "ac_cv_func_XauWriteAuth=yes"
4524 eval "LIB_XauWriteAuth="
4525 cat >> confdefs.h <<EOF
4526#define $ac_tr_func 1
4527EOF
4528
4529 echo "$ac_t""yes" 1>&6
4530 ;;
4531 no)
4532 eval "ac_cv_func_XauWriteAuth=no"
4533 eval "LIB_XauWriteAuth="
4534 echo "$ac_t""no" 1>&6
4535 ;;
4536 *)
4537 eval "ac_cv_func_XauWriteAuth=yes"
4538 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
4539 cat >> confdefs.h <<EOF
4540#define $ac_tr_func 1
4541EOF
4542
4543 cat >> confdefs.h <<EOF
4544#define $ac_tr_lib 1
4545EOF
4546
4547 echo "$ac_t""yes, in $ac_res" 1>&6
4548 ;;
4549esac
4550
4551
4552ac_xxx="$LIBS"
4553LIBS="$LIB_XauWriteAuth $LIBS"
4554
4555
4556
4557echo $ac_n "checking for XauReadAuth""... $ac_c" 1>&6
4558echo "configure:4559: checking for XauReadAuth" >&5
4559if eval "test \"`echo '$''{'ac_cv_funclib_XauReadAuth'+set}'`\" = set"; then
4560 echo $ac_n "(cached) $ac_c" 1>&6
4561else
4562
4563if eval "test \"\$ac_cv_func_XauReadAuth\" != yes" ; then
4564 ac_save_LIBS="$LIBS"
4565 for ac_lib in "" X11 Xau; do
4566 if test -n "$ac_lib"; then
4567 ac_lib="-l$ac_lib"
4568 else
4569 ac_lib=""
4570 fi
4571 LIBS=" $ac_lib $ac_save_LIBS"
4572 cat > conftest.$ac_ext <<EOF
4573#line 4574 "configure"
4574#include "confdefs.h"
4575
4576int main() {
4577XauReadAuth()
4578; return 0; }
4579EOF
4580if { (eval echo configure:4581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4581 rm -rf conftest*
4582 eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauReadAuth=$ac_lib; else ac_cv_funclib_XauReadAuth=yes; fi";break
4583else
4584 echo "configure: failed program was:" >&5
4585 cat conftest.$ac_ext >&5
4586fi
4587rm -f conftest*
4588 done
4589 eval "ac_cv_funclib_XauReadAuth=\${ac_cv_funclib_XauReadAuth-no}"
4590 LIBS="$ac_save_LIBS"
4591fi
4592
4593fi
4594
4595
4596eval "ac_res=\$ac_cv_funclib_XauReadAuth"
4597
4598: << END
4599@@@funcs="$funcs XauReadAuth"@@@
4600@@@libs="$libs "" X11 Xau"@@@
4601END
4602
4603# XauReadAuth
4604eval "ac_tr_func=HAVE_`echo XauReadAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
4605eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
4606eval "LIB_XauReadAuth=$ac_res"
4607
4608case "$ac_res" in
4609 yes)
4610 eval "ac_cv_func_XauReadAuth=yes"
4611 eval "LIB_XauReadAuth="
4612 cat >> confdefs.h <<EOF
4613#define $ac_tr_func 1
4614EOF
4615
4616 echo "$ac_t""yes" 1>&6
4617 ;;
4618 no)
4619 eval "ac_cv_func_XauReadAuth=no"
4620 eval "LIB_XauReadAuth="
4621 echo "$ac_t""no" 1>&6
4622 ;;
4623 *)
4624 eval "ac_cv_func_XauReadAuth=yes"
4625 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
4626 cat >> confdefs.h <<EOF
4627#define $ac_tr_func 1
4628EOF
4629
4630 cat >> confdefs.h <<EOF
4631#define $ac_tr_lib 1
4632EOF
4633
4634 echo "$ac_t""yes, in $ac_res" 1>&6
4635 ;;
4636esac
4637
4638
4639LIBS="$LIB_XauReadAauth $LIBS"
4640
4641
4642
4643echo $ac_n "checking for XauFileName""... $ac_c" 1>&6
4644echo "configure:4645: checking for XauFileName" >&5
4645if eval "test \"`echo '$''{'ac_cv_funclib_XauFileName'+set}'`\" = set"; then
4646 echo $ac_n "(cached) $ac_c" 1>&6
4647else
4648
4649if eval "test \"\$ac_cv_func_XauFileName\" != yes" ; then
4650 ac_save_LIBS="$LIBS"
4651 for ac_lib in "" X11 Xau; do
4652 if test -n "$ac_lib"; then
4653 ac_lib="-l$ac_lib"
4654 else
4655 ac_lib=""
4656 fi
4657 LIBS=" $ac_lib $ac_save_LIBS"
4658 cat > conftest.$ac_ext <<EOF
4659#line 4660 "configure"
4660#include "confdefs.h"
4661
4662int main() {
4663XauFileName()
4664; return 0; }
4665EOF
4666if { (eval echo configure:4667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4667 rm -rf conftest*
4668 eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauFileName=$ac_lib; else ac_cv_funclib_XauFileName=yes; fi";break
4669else
4670 echo "configure: failed program was:" >&5
4671 cat conftest.$ac_ext >&5
4672fi
4673rm -f conftest*
4674 done
4675 eval "ac_cv_funclib_XauFileName=\${ac_cv_funclib_XauFileName-no}"
4676 LIBS="$ac_save_LIBS"
4677fi
4678
4679fi
4680
4681
4682eval "ac_res=\$ac_cv_funclib_XauFileName"
4683
4684: << END
4685@@@funcs="$funcs XauFileName"@@@
4686@@@libs="$libs "" X11 Xau"@@@
4687END
4688
4689# XauFileName
4690eval "ac_tr_func=HAVE_`echo XauFileName | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
4691eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
4692eval "LIB_XauFileName=$ac_res"
4693
4694case "$ac_res" in
4695 yes)
4696 eval "ac_cv_func_XauFileName=yes"
4697 eval "LIB_XauFileName="
4698 cat >> confdefs.h <<EOF
4699#define $ac_tr_func 1
4700EOF
4701
4702 echo "$ac_t""yes" 1>&6
4703 ;;
4704 no)
4705 eval "ac_cv_func_XauFileName=no"
4706 eval "LIB_XauFileName="
4707 echo "$ac_t""no" 1>&6
4708 ;;
4709 *)
4710 eval "ac_cv_func_XauFileName=yes"
4711 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
4712 cat >> confdefs.h <<EOF
4713#define $ac_tr_func 1
4714EOF
4715
4716 cat >> confdefs.h <<EOF
4717#define $ac_tr_lib 1
4718EOF
4719
4720 echo "$ac_t""yes, in $ac_res" 1>&6
4721 ;;
4722esac
4723
4724
4725LIBS="$ac_xxx"
4726
4727case "$ac_cv_funclib_XauWriteAuth" in
4728yes) ;;
4729no) ;;
4730*) if test "$ac_cv_funclib_XauReadAuth" = yes; then
4731 if test "$ac_cv_funclib_XauFileName" = yes; then
4732 LIB_XauReadAuth="$LIB_XauWriteAuth"
4733 else
4734 LIB_XauReadAuth="$LIB_XauWriteAuth $LIB_XauFileName"
4735 fi
4736 else
4737 if test "$ac_cv_funclib_XauFileName" = yes; then
4738 LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth"
4739 else
4740 LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth $LIB_XauFileName"
4741 fi
4742 fi
4743 ;;
4744esac
4745
4746if test "$AUTOMAKE" != ""; then
4747
4748
4749if test "$ac_cv_func_XauWriteAuth" != "yes"; then
4750 NEED_WRITEAUTH_TRUE=
4751 NEED_WRITEAUTH_FALSE='#'
4752else
4753 NEED_WRITEAUTH_TRUE='#'
4754 NEED_WRITEAUTH_FALSE=
4755fi
4756else
4757
4758
4759 if test "$ac_cv_func_XauWriteAuth" != "yes"; then
4760 NEED_WRITEAUTH_TRUE=
4761 NEED_WRITEAUTH_FALSE='#'
4762 else
4763 NEED_WRITEAUTH_TRUE='#'
4764 NEED_WRITEAUTH_FALSE=
4765 fi
4766fi
4767CFLAGS=$save_CFLAGS
4768LIBS=$save_LIBS
4769LDFLAGS=$save_LDFLAGS
4770
4771
4772
4773echo $ac_n "checking for working const""... $ac_c" 1>&6
4774echo "configure:4775: checking for working const" >&5
4775if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
4776 echo $ac_n "(cached) $ac_c" 1>&6
4777else
4778 cat > conftest.$ac_ext <<EOF
4779#line 4780 "configure"
4780#include "confdefs.h"
4781
4782int main() {
4783
4784/* Ultrix mips cc rejects this. */
4785typedef int charset[2]; const charset x;
4786/* SunOS 4.1.1 cc rejects this. */
4787char const *const *ccp;
4788char **p;
4789/* NEC SVR4.0.2 mips cc rejects this. */
4790struct point {int x, y;};
4791static struct point const zero = {0,0};
4792/* AIX XL C 1.02.0.0 rejects this.
4793 It does not let you subtract one const X* pointer from another in an arm
4794 of an if-expression whose if-part is not a constant expression */
4795const char *g = "string";
4796ccp = &g + (g ? g-g : 0);
4797/* HPUX 7.0 cc rejects these. */
4798++ccp;
4799p = (char**) ccp;
4800ccp = (char const *const *) p;
4801{ /* SCO 3.2v4 cc rejects this. */
4802 char *t;
4803 char const *s = 0 ? (char *) 0 : (char const *) 0;
4804
4805 *t++ = 0;
4806}
4807{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4808 int x[] = {25, 17};
4809 const int *foo = &x[0];
4810 ++foo;
4811}
4812{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4813 typedef const int *iptr;
4814 iptr p = 0;
4815 ++p;
4816}
4817{ /* AIX XL C 1.02.0.0 rejects this saying
4818 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4819 struct s { int j; const int *ap[3]; };
4820 struct s *b; b->j = 5;
4821}
4822{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4823 const int foo = 10;
4824}
4825
4826; return 0; }
4827EOF
4828if { (eval echo configure:4829: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4829 rm -rf conftest*
4830 ac_cv_c_const=yes
4831else
4832 echo "configure: failed program was:" >&5
4833 cat conftest.$ac_ext >&5
4834 rm -rf conftest*
4835 ac_cv_c_const=no
4836fi
4837rm -f conftest*
4838fi
4839
4840echo "$ac_t""$ac_cv_c_const" 1>&6
4841if test $ac_cv_c_const = no; then
4842 cat >> confdefs.h <<\EOF
4843#define const
4844EOF
4845
4846fi
4847
4848echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4849echo "configure:4850: checking for ANSI C header files" >&5
4850if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
4851 echo $ac_n "(cached) $ac_c" 1>&6
4852else
4853 cat > conftest.$ac_ext <<EOF
4854#line 4855 "configure"
4855#include "confdefs.h"
4856#include <stdlib.h>
4857#include <stdarg.h>
4858#include <string.h>
4859#include <float.h>
4860EOF
4861ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4862{ (eval echo configure:4863: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4863ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4864if test -z "$ac_err"; then
4865 rm -rf conftest*
4866 ac_cv_header_stdc=yes
4867else
4868 echo "$ac_err" >&5
4869 echo "configure: failed program was:" >&5
4870 cat conftest.$ac_ext >&5
4871 rm -rf conftest*
4872 ac_cv_header_stdc=no
4873fi
4874rm -f conftest*
4875
4876if test $ac_cv_header_stdc = yes; then
4877 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4878cat > conftest.$ac_ext <<EOF
4879#line 4880 "configure"
4880#include "confdefs.h"
4881#include <string.h>
4882EOF
4883if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4884 egrep "memchr" >/dev/null 2>&1; then
4885 :
4886else
4887 rm -rf conftest*
4888 ac_cv_header_stdc=no
4889fi
4890rm -f conftest*
4891
4892fi
4893
4894if test $ac_cv_header_stdc = yes; then
4895 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4896cat > conftest.$ac_ext <<EOF
4897#line 4898 "configure"
4898#include "confdefs.h"
4899#include <stdlib.h>
4900EOF
4901if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4902 egrep "free" >/dev/null 2>&1; then
4903 :
4904else
4905 rm -rf conftest*
4906 ac_cv_header_stdc=no
4907fi
4908rm -f conftest*
4909
4910fi
4911
4912if test $ac_cv_header_stdc = yes; then
4913 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4914if test "$cross_compiling" = yes; then
4915 :
4916else
4917 cat > conftest.$ac_ext <<EOF
4918#line 4919 "configure"
4919#include "confdefs.h"
4920#include <ctype.h>
4921#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4922#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4923#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4924int main () { int i; for (i = 0; i < 256; i++)
4925if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4926exit (0); }
4927
4928EOF
4929if { (eval echo configure:4930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4930then
4931 :
4932else
4933 echo "configure: failed program was:" >&5
4934 cat conftest.$ac_ext >&5
4935 rm -fr conftest*
4936 ac_cv_header_stdc=no
4937fi
4938rm -fr conftest*
4939fi
4940
4941fi
4942fi
4943
4944echo "$ac_t""$ac_cv_header_stdc" 1>&6
4945if test $ac_cv_header_stdc = yes; then
4946 cat >> confdefs.h <<\EOF
4947#define STDC_HEADERS 1
4948EOF
4949
4950fi
4951
4952echo $ac_n "checking for off_t""... $ac_c" 1>&6
4953echo "configure:4954: checking for off_t" >&5
4954if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
4955 echo $ac_n "(cached) $ac_c" 1>&6
4956else
4957 cat > conftest.$ac_ext <<EOF
4958#line 4959 "configure"
4959#include "confdefs.h"
4960#include <sys/types.h>
4961#if STDC_HEADERS
4962#include <stdlib.h>
4963#include <stddef.h>
4964#endif
4965EOF
4966if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4967 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4968 rm -rf conftest*
4969 ac_cv_type_off_t=yes
4970else
4971 rm -rf conftest*
4972 ac_cv_type_off_t=no
4973fi
4974rm -f conftest*
4975
4976fi
4977echo "$ac_t""$ac_cv_type_off_t" 1>&6
4978if test $ac_cv_type_off_t = no; then
4979 cat >> confdefs.h <<\EOF
4980#define off_t long
4981EOF
4982
4983fi
4984
4985echo $ac_n "checking for size_t""... $ac_c" 1>&6
4986echo "configure:4987: checking for size_t" >&5
4987if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
4988 echo $ac_n "(cached) $ac_c" 1>&6
4989else
4990 cat > conftest.$ac_ext <<EOF
4991#line 4992 "configure"
4992#include "confdefs.h"
4993#include <sys/types.h>
4994#if STDC_HEADERS
4995#include <stdlib.h>
4996#include <stddef.h>
4997#endif
4998EOF
4999if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5000 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5001 rm -rf conftest*
5002 ac_cv_type_size_t=yes
5003else
5004 rm -rf conftest*
5005 ac_cv_type_size_t=no
5006fi
5007rm -f conftest*
5008
5009fi
5010echo "$ac_t""$ac_cv_type_size_t" 1>&6
5011if test $ac_cv_type_size_t = no; then
5012 cat >> confdefs.h <<\EOF
5013#define size_t unsigned
5014EOF
5015
5016fi
5017
5018echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
5019echo "configure:5020: checking for ssize_t" >&5
5020if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
5021 echo $ac_n "(cached) $ac_c" 1>&6
5022else
5023 cat > conftest.$ac_ext <<EOF
5024#line 5025 "configure"
5025#include "confdefs.h"
5026#include <sys/types.h>
5027#if STDC_HEADERS
5028#include <stdlib.h>
5029#include <stddef.h>
5030#endif
5031#include <unistd.h>
5032EOF
5033if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5034 egrep "ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5035 rm -rf conftest*
5036 ac_cv_type_ssize_t=yes
5037else
5038 rm -rf conftest*
5039 ac_cv_type_ssize_t=no
5040fi
5041rm -f conftest*
5042
5043fi
5044echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
5045if test $ac_cv_type_ssize_t = no; then
5046 cat >> confdefs.h <<\EOF
5047#define ssize_t int
5048EOF
5049
5050fi
5051
5052echo $ac_n "checking for pid_t""... $ac_c" 1>&6
5053echo "configure:5054: checking for pid_t" >&5
5054if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
5055 echo $ac_n "(cached) $ac_c" 1>&6
5056else
5057 cat > conftest.$ac_ext <<EOF
5058#line 5059 "configure"
5059#include "confdefs.h"
5060#include <sys/types.h>
5061#if STDC_HEADERS
5062#include <stdlib.h>
5063#include <stddef.h>
5064#endif
5065EOF
5066if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5067 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5068 rm -rf conftest*
5069 ac_cv_type_pid_t=yes
5070else
5071 rm -rf conftest*
5072 ac_cv_type_pid_t=no
5073fi
5074rm -f conftest*
5075
5076fi
5077echo "$ac_t""$ac_cv_type_pid_t" 1>&6
5078if test $ac_cv_type_pid_t = no; then
5079 cat >> confdefs.h <<\EOF
5080#define pid_t int
5081EOF
5082
5083fi
5084
5085echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
5086echo "configure:5087: checking for uid_t in sys/types.h" >&5
5087if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
5088 echo $ac_n "(cached) $ac_c" 1>&6
5089else
5090 cat > conftest.$ac_ext <<EOF
5091#line 5092 "configure"
5092#include "confdefs.h"
5093#include <sys/types.h>
5094EOF
5095if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5096 egrep "uid_t" >/dev/null 2>&1; then
5097 rm -rf conftest*
5098 ac_cv_type_uid_t=yes
5099else
5100 rm -rf conftest*
5101 ac_cv_type_uid_t=no
5102fi
5103rm -f conftest*
5104
5105fi
5106
5107echo "$ac_t""$ac_cv_type_uid_t" 1>&6
5108if test $ac_cv_type_uid_t = no; then
5109 cat >> confdefs.h <<\EOF
5110#define uid_t int
5111EOF
5112
5113 cat >> confdefs.h <<\EOF
5114#define gid_t int
5115EOF
5116
5117fi
5118
5119echo $ac_n "checking for mode_t""... $ac_c" 1>&6
5120echo "configure:5121: checking for mode_t" >&5
5121if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
5122 echo $ac_n "(cached) $ac_c" 1>&6
5123else
5124 cat > conftest.$ac_ext <<EOF
5125#line 5126 "configure"
5126#include "confdefs.h"
5127#include <sys/types.h>
5128#if STDC_HEADERS
5129#include <stdlib.h>
5130#include <stddef.h>
5131#endif
5132
5133EOF
5134if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5135 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5136 rm -rf conftest*
5137 ac_cv_type_mode_t=yes
5138else
5139 rm -rf conftest*
5140 ac_cv_type_mode_t=no
5141fi
5142rm -f conftest*
5143
5144fi
5145echo "$ac_t""$ac_cv_type_mode_t" 1>&6
5146if test $ac_cv_type_mode_t = no; then
5147 cat >> confdefs.h <<\EOF
5148#define mode_t unsigned short
5149EOF
5150
5151fi
5152
5153echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
5154echo "configure:5155: checking for sig_atomic_t" >&5
5155if eval "test \"`echo '$''{'ac_cv_type_sig_atomic_t'+set}'`\" = set"; then
5156 echo $ac_n "(cached) $ac_c" 1>&6
5157else
5158 cat > conftest.$ac_ext <<EOF
5159#line 5160 "configure"
5160#include "confdefs.h"
5161#include <sys/types.h>
5162#if STDC_HEADERS
5163#include <stdlib.h>
5164#include <stddef.h>
5165#endif
5166#include <signal.h>
5167EOF
5168if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5169 egrep "sig_atomic_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5170 rm -rf conftest*
5171 ac_cv_type_sig_atomic_t=yes
5172else
5173 rm -rf conftest*
5174 ac_cv_type_sig_atomic_t=no
5175fi
5176rm -f conftest*
5177
5178fi
5179echo "$ac_t""$ac_cv_type_sig_atomic_t" 1>&6
5180if test $ac_cv_type_sig_atomic_t = no; then
5181 cat >> confdefs.h <<\EOF
5182#define sig_atomic_t int
5183EOF
5184
5185fi
5186
5187
5188
5189cv=`echo "long long" | sed 'y%./+- %__p__%'`
5190echo $ac_n "checking for long long""... $ac_c" 1>&6
5191echo "configure:5192: checking for long long" >&5
5192if eval "test \"`echo '$''{'ac_cv_type_$cv'+set}'`\" = set"; then
5193 echo $ac_n "(cached) $ac_c" 1>&6
5194else
5195 cat > conftest.$ac_ext <<EOF
5196#line 5197 "configure"
5197#include "confdefs.h"
5198#include <sys/types.h>
5199#if STDC_HEADERS
5200#include <stdlib.h>
5201#include <stddef.h>
5202#endif
5203
5204int main() {
5205long long foo;
5206; return 0; }
5207EOF
5208if { (eval echo configure:5209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5209 rm -rf conftest*
5210 eval "ac_cv_type_$cv=yes"
5211else
5212 echo "configure: failed program was:" >&5
5213 cat conftest.$ac_ext >&5
5214 rm -rf conftest*
5215 eval "ac_cv_type_$cv=no"
5216fi
5217rm -f conftest*
5218fi
5219echo "$ac_t""`eval echo \\$ac_cv_type_$cv`" 1>&6
5220if test `eval echo \\$ac_cv_type_$cv` = yes; then
5221 ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
5222
5223: << END
5224@@@funcs="$funcs long_long"@@@
5225END
5226
5227 cat >> confdefs.h <<EOF
5228#define $ac_tr_hdr 1
5229EOF
5230
5231fi
5232
5233echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
5234echo "configure:5235: checking whether time.h and sys/time.h may both be included" >&5
5235if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
5236 echo $ac_n "(cached) $ac_c" 1>&6
5237else
5238 cat > conftest.$ac_ext <<EOF
5239#line 5240 "configure"
5240#include "confdefs.h"
5241#include <sys/types.h>
5242#include <sys/time.h>
5243#include <time.h>
5244int main() {
5245struct tm *tp;
5246; return 0; }
5247EOF
5248if { (eval echo configure:5249: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5249 rm -rf conftest*
5250 ac_cv_header_time=yes
5251else
5252 echo "configure: failed program was:" >&5
5253 cat conftest.$ac_ext >&5
5254 rm -rf conftest*
5255 ac_cv_header_time=no
5256fi
5257rm -f conftest*
5258fi
5259
5260echo "$ac_t""$ac_cv_header_time" 1>&6
5261if test $ac_cv_header_time = yes; then
5262 cat >> confdefs.h <<\EOF
5263#define TIME_WITH_SYS_TIME 1
5264EOF
5265
5266fi
5267
5268echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
5269echo "configure:5270: checking whether struct tm is in sys/time.h or time.h" >&5
5270if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
5271 echo $ac_n "(cached) $ac_c" 1>&6
5272else
5273 cat > conftest.$ac_ext <<EOF
5274#line 5275 "configure"
5275#include "confdefs.h"
5276#include <sys/types.h>
5277#include <time.h>
5278int main() {
5279struct tm *tp; tp->tm_sec;
5280; return 0; }
5281EOF
5282if { (eval echo configure:5283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5283 rm -rf conftest*
5284 ac_cv_struct_tm=time.h
5285else
5286 echo "configure: failed program was:" >&5
5287 cat conftest.$ac_ext >&5
5288 rm -rf conftest*
5289 ac_cv_struct_tm=sys/time.h
5290fi
5291rm -f conftest*
5292fi
5293
5294echo "$ac_t""$ac_cv_struct_tm" 1>&6
5295if test $ac_cv_struct_tm = sys/time.h; then
5296 cat >> confdefs.h <<\EOF
5297#define TM_IN_SYS_TIME 1
5298EOF
5299
5300fi
5301
5302
5303echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5304echo "configure:5305: checking for ANSI C header files" >&5
5305if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5306 echo $ac_n "(cached) $ac_c" 1>&6
5307else
5308 cat > conftest.$ac_ext <<EOF
5309#line 5310 "configure"
5310#include "confdefs.h"
5311#include <stdlib.h>
5312#include <stdarg.h>
5313#include <string.h>
5314#include <float.h>
5315EOF
5316ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5317{ (eval echo configure:5318: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5318ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5319if test -z "$ac_err"; then
5320 rm -rf conftest*
5321 ac_cv_header_stdc=yes
5322else
5323 echo "$ac_err" >&5
5324 echo "configure: failed program was:" >&5
5325 cat conftest.$ac_ext >&5
5326 rm -rf conftest*
5327 ac_cv_header_stdc=no
5328fi
5329rm -f conftest*
5330
5331if test $ac_cv_header_stdc = yes; then
5332 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5333cat > conftest.$ac_ext <<EOF
5334#line 5335 "configure"
5335#include "confdefs.h"
5336#include <string.h>
5337EOF
5338if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5339 egrep "memchr" >/dev/null 2>&1; then
5340 :
5341else
5342 rm -rf conftest*
5343 ac_cv_header_stdc=no
5344fi
5345rm -f conftest*
5346
5347fi
5348
5349if test $ac_cv_header_stdc = yes; then
5350 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5351cat > conftest.$ac_ext <<EOF
5352#line 5353 "configure"
5353#include "confdefs.h"
5354#include <stdlib.h>
5355EOF
5356if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5357 egrep "free" >/dev/null 2>&1; then
5358 :
5359else
5360 rm -rf conftest*
5361 ac_cv_header_stdc=no
5362fi
5363rm -f conftest*
5364
5365fi
5366
5367if test $ac_cv_header_stdc = yes; then
5368 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5369if test "$cross_compiling" = yes; then
5370 :
5371else
5372 cat > conftest.$ac_ext <<EOF
5373#line 5374 "configure"
5374#include "confdefs.h"
5375#include <ctype.h>
5376#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5377#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5378#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5379int main () { int i; for (i = 0; i < 256; i++)
5380if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5381exit (0); }
5382
5383EOF
5384if { (eval echo configure:5385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5385then
5386 :
5387else
5388 echo "configure: failed program was:" >&5
5389 cat conftest.$ac_ext >&5
5390 rm -fr conftest*
5391 ac_cv_header_stdc=no
5392fi
5393rm -fr conftest*
5394fi
5395
5396fi
5397fi
5398
5399echo "$ac_t""$ac_cv_header_stdc" 1>&6
5400if test $ac_cv_header_stdc = yes; then
5401 cat >> confdefs.h <<\EOF
5402#define STDC_HEADERS 1
5403EOF
5404
5405fi
5406
5407
5408if test "$berkeley_db"; then
5409 for ac_hdr in \
5410 db.h \
5411 db_185.h \
5412
5413do
5414ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5415echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5416echo "configure:5417: checking for $ac_hdr" >&5
5417if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5418 echo $ac_n "(cached) $ac_c" 1>&6
5419else
5420 cat > conftest.$ac_ext <<EOF
5421#line 5422 "configure"
5422#include "confdefs.h"
5423#include <$ac_hdr>
5424EOF
5425ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5426{ (eval echo configure:5427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5427ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5428if test -z "$ac_err"; then
5429 rm -rf conftest*
5430 eval "ac_cv_header_$ac_safe=yes"
5431else
5432 echo "$ac_err" >&5
5433 echo "configure: failed program was:" >&5
5434 cat conftest.$ac_ext >&5
5435 rm -rf conftest*
5436 eval "ac_cv_header_$ac_safe=no"
5437fi
5438rm -f conftest*
5439fi
5440if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5441 echo "$ac_t""yes" 1>&6
5442 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5443 cat >> confdefs.h <<EOF
5444#define $ac_tr_hdr 1
5445EOF
5446
5447else
5448 echo "$ac_t""no" 1>&6
5449fi
5450done
5451
5452fi
5453
5454for ac_hdr in \
5455 arpa/ftp.h \
5456 arpa/inet.h \
5457 arpa/nameser.h \
5458 arpa/telnet.h \
5459 bind/bitypes.h \
5460 bsdsetjmp.h \
5461 crypt.h \
5462 curses.h \
5463 dbm.h \
5464 dirent.h \
5465 dlfcn.h \
5466 err.h \
5467 errno.h \
5468 fcntl.h \
5469 fnmatch.h \
5470 grp.h \
5471 inttypes.h \
5472 io.h \
5473 limits.h \
5474 maillock.h \
5475 ndbm.h \
5476 net/if.h \
5477 netdb.h \
5478 netinet/in.h \
5479 netinet/in6.h \
5480 netinet/in6_machtypes.h \
5481 netinet/in6_var.h \
5482 netinet/in_systm.h \
5483 netinet6/in6.h \
5484 netinfo/ni.h \
5485 paths.h \
5486 pthread.h \
5487 pty.h \
5488 pwd.h \
5489 resolv.h \
5490 rpcsvc/dbm.h \
5491 sac.h \
5492 security/pam_modules.h \
5493 sgtty.h \
5494 shadow.h \
5495 siad.h \
5496 signal.h \
5497 stropts.h \
5498 sys/bitypes.h \
5499 sys/category.h \
5500 sys/file.h \
5501 sys/filio.h \
5502 sys/ioccom.h \
5503 sys/ioctl.h \
5504 sys/param.h \
5505 sys/proc.h \
5506 sys/pty.h \
5507 sys/ptyio.h \
5508 sys/ptyvar.h \
5509 sys/resource.h \
5510 sys/select.h \
5511 sys/socket.h \
5512 sys/sockio.h \
5513 sys/stat.h \
5514 sys/str_tty.h \
5515 sys/stream.h \
5516 sys/stropts.h \
5517 sys/strtty.h \
5518 sys/syscall.h \
5519 sys/sysctl.h \
5520 sys/termio.h \
5521 sys/time.h \
5522 sys/timeb.h \
5523 sys/times.h \
5524 sys/tty.h \
5525 sys/types.h \
5526 sys/uio.h \
5527 sys/un.h \
5528 sys/utsname.h \
5529 sys/wait.h \
5530 syslog.h \
5531 term.h \
5532 termio.h \
5533 termios.h \
5534 time.h \
5535 tmpdir.h \
5536 udb.h \
5537 unistd.h \
5538 util.h \
5539 utmp.h \
5540 utmpx.h \
5541
5542do
5543ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5544echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5545echo "configure:5546: checking for $ac_hdr" >&5
5546if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5547 echo $ac_n "(cached) $ac_c" 1>&6
5548else
5549 cat > conftest.$ac_ext <<EOF
5550#line 5551 "configure"
5551#include "confdefs.h"
5552#include <$ac_hdr>
5553EOF
5554ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5555{ (eval echo configure:5556: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5556ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5557if test -z "$ac_err"; then
5558 rm -rf conftest*
5559 eval "ac_cv_header_$ac_safe=yes"
5560else
5561 echo "$ac_err" >&5
5562 echo "configure: failed program was:" >&5
5563 cat conftest.$ac_ext >&5
5564 rm -rf conftest*
5565 eval "ac_cv_header_$ac_safe=no"
5566fi
5567rm -f conftest*
5568fi
5569if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5570 echo "$ac_t""yes" 1>&6
5571 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5572 cat >> confdefs.h <<EOF
5573#define $ac_tr_hdr 1
5574EOF
5575
5576else
5577 echo "$ac_t""no" 1>&6
5578fi
5579done
5580
5581
5582
5583for ac_hdr in standards.h
5584do
5585ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5586echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5587echo "configure:5588: checking for $ac_hdr" >&5
5588if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5589 echo $ac_n "(cached) $ac_c" 1>&6
5590else
5591 cat > conftest.$ac_ext <<EOF
5592#line 5593 "configure"
5593#include "confdefs.h"
5594#include <$ac_hdr>
5595EOF
5596ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5597{ (eval echo configure:5598: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5598ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5599if test -z "$ac_err"; then
5600 rm -rf conftest*
5601 eval "ac_cv_header_$ac_safe=yes"
5602else
5603 echo "$ac_err" >&5
5604 echo "configure: failed program was:" >&5
5605 cat conftest.$ac_ext >&5
5606 rm -rf conftest*
5607 eval "ac_cv_header_$ac_safe=no"
5608fi
5609rm -f conftest*
5610fi
5611if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5612 echo "$ac_t""yes" 1>&6
5613 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5614 cat >> confdefs.h <<EOF
5615#define $ac_tr_hdr 1
5616EOF
5617
5618else
5619 echo "$ac_t""no" 1>&6
5620fi
5621done
5622
5623for i in netinet/ip.h netinet/tcp.h; do
5624
5625cv=`echo "$i" | sed 'y%./+-%__p_%'`
5626
5627echo $ac_n "checking for $i""... $ac_c" 1>&6
5628echo "configure:5629: checking for $i" >&5
5629if eval "test \"`echo '$''{'ac_cv_header_$cv'+set}'`\" = set"; then
5630 echo $ac_n "(cached) $ac_c" 1>&6
5631else
5632 cat > conftest.$ac_ext <<EOF
5633#line 5634 "configure"
5634#include "confdefs.h"
5635\
5636#ifdef HAVE_STANDARDS_H
5637#include <standards.h>
5638#endif
5639#include <$i>
5640
5641EOF
5642ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5643{ (eval echo configure:5644: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5644ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5645if test -z "$ac_err"; then
5646 rm -rf conftest*
5647 eval "ac_cv_header_$cv=yes"
5648else
5649 echo "$ac_err" >&5
5650 echo "configure: failed program was:" >&5
5651 cat conftest.$ac_ext >&5
5652 rm -rf conftest*
5653 eval "ac_cv_header_$cv=no"
5654fi
5655rm -f conftest*
5656fi
5657
5658echo "$ac_t""`eval echo \\$ac_cv_header_$cv`" 1>&6
5659if test `eval echo \\$ac_cv_header_$cv` = yes; then
5660 ac_tr_hdr=HAVE_`echo $i | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5661 cat >> confdefs.h <<EOF
5662#define $ac_tr_hdr 1
5663EOF
5664
5665fi
5666done
5667: << END
5668@@@headers="$headers netinet/ip.h netinet/tcp.h"@@@
5669END
5670
5671
5672
5673
5674# Check whether --enable-netinfo or --disable-netinfo was given.
5675if test "${enable_netinfo+set}" = set; then
5676 enableval="$enable_netinfo"
5677 :
5678fi
5679
5680
5681if test "$ac_cv_header_netinfo_ni_h" = yes -a "$enable_netinfo" = yes; then
5682 cat >> confdefs.h <<\EOF
5683#define HAVE_NETINFO 1
5684EOF
5685
5686fi
5687
5688
5689
5690if test "$ac_cv_header_err_h" = yes; then
5691 have_err_h_TRUE=
5692 have_err_h_FALSE='#'
5693else
5694 have_err_h_TRUE='#'
5695 have_err_h_FALSE=
5696fi
5697
5698
5699if test "$ac_cv_header_fnmatch_h" = yes; then
5700 have_fnmatch_h_TRUE=
5701 have_fnmatch_h_FALSE='#'
5702else
5703 have_fnmatch_h_TRUE='#'
5704 have_fnmatch_h_FALSE=
5705fi
5706
5707
5708# Check whether --with-ipv6 or --without-ipv6 was given.
5709if test "${with_ipv6+set}" = set; then
5710 withval="$with_ipv6"
5711
5712if test "$withval" = "no"; then
5713 ac_cv_lib_ipv6=no
5714fi
5715fi
5716
5717if eval "test \"`echo '$''{'ac_cv_lib_ipv6'+set}'`\" = set"; then
5718 echo $ac_n "(cached) $ac_c" 1>&6
5719else
5720 v6type=unknown
5721v6lib=none
5722
5723echo $ac_n "checking ipv6 stack type""... $ac_c" 1>&6
5724echo "configure:5725: checking ipv6 stack type" >&5
5725for i in v6d toshiba kame inria zeta linux; do
5726 case $i in
5727 v6d)
5728 cat > conftest.$ac_ext <<EOF
5729#line 5730 "configure"
5730#include "confdefs.h"
5731dnl
5732#include </usr/local/v6/include/sys/types.h>
5733#ifdef __V6D__
5734yes
5735#endif
5736EOF
5737if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5738 egrep "yes" >/dev/null 2>&1; then
5739 rm -rf conftest*
5740 v6type=$i; v6lib=v6;
5741 v6libdir=/usr/local/v6/lib;
5742 CFLAGS="-I/usr/local/v6/include $CFLAGS"
5743fi
5744rm -f conftest*
5745
5746 ;;
5747 toshiba)
5748 cat > conftest.$ac_ext <<EOF
5749#line 5750 "configure"
5750#include "confdefs.h"
5751dnl
5752#include <sys/param.h>
5753#ifdef _TOSHIBA_INET6
5754yes
5755#endif
5756EOF
5757if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5758 egrep "yes" >/dev/null 2>&1; then
5759 rm -rf conftest*
5760 v6type=$i; v6lib=inet6;
5761 v6libdir=/usr/local/v6/lib;
5762 CFLAGS="-DINET6 $CFLAGS"
5763fi
5764rm -f conftest*
5765
5766 ;;
5767 kame)
5768 cat > conftest.$ac_ext <<EOF
5769#line 5770 "configure"
5770#include "confdefs.h"
5771dnl
5772#include <netinet/in.h>
5773#ifdef __KAME__
5774yes
5775#endif
5776EOF
5777if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5778 egrep "yes" >/dev/null 2>&1; then
5779 rm -rf conftest*
5780 v6type=$i; v6lib=inet6;
5781 v6libdir=/usr/local/v6/lib;
5782 CFLAGS="-DINET6 $CFLAGS"
5783fi
5784rm -f conftest*
5785
5786 ;;
5787 inria)
5788 cat > conftest.$ac_ext <<EOF
5789#line 5790 "configure"
5790#include "confdefs.h"
5791dnl
5792#include <netinet/in.h>
5793#ifdef IPV6_INRIA_VERSION
5794yes
5795#endif
5796EOF
5797if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5798 egrep "yes" >/dev/null 2>&1; then
5799 rm -rf conftest*
5800 v6type=$i; CFLAGS="-DINET6 $CFLAGS"
5801fi
5802rm -f conftest*
5803
5804 ;;
5805 zeta)
5806 cat > conftest.$ac_ext <<EOF
5807#line 5808 "configure"
5808#include "confdefs.h"
5809dnl
5810#include <sys/param.h>
5811#ifdef _ZETA_MINAMI_INET6
5812yes
5813#endif
5814EOF
5815if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5816 egrep "yes" >/dev/null 2>&1; then
5817 rm -rf conftest*
5818 v6type=$i; v6lib=inet6;
5819 v6libdir=/usr/local/v6/lib;
5820 CFLAGS="-DINET6 $CFLAGS"
5821fi
5822rm -f conftest*
5823
5824 ;;
5825 linux)
5826 if test -d /usr/inet6; then
5827 v6type=$i
5828 v6lib=inet6
5829 v6libdir=/usr/inet6
5830 CFLAGS="-DINET6 $CFLAGS"
5831 fi
5832 ;;
5833 esac
5834 if test "$v6type" != "unknown"; then
5835 break
5836 fi
5837done
5838echo "$ac_t""$v6type" 1>&6
5839
5840if test "$v6lib" != "none"; then
5841 for dir in $v6libdir /usr/local/v6/lib /usr/local/lib; do
5842 if test -d $dir -a -f $dir/lib$v6lib.a; then
5843 LIBS="-L$dir -l$v6lib $LIBS"
5844 break
5845 fi
5846 done
5847fi
5848cat > conftest.$ac_ext <<EOF
5849#line 5850 "configure"
5850#include "confdefs.h"
5851
5852#ifdef HAVE_SYS_TYPES_H
5853#include <sys/types.h>
5854#endif
5855#ifdef HAVE_SYS_SOCKET_H
5856#include <sys/socket.h>
5857#endif
5858#ifdef HAVE_NETINET_IN_H
5859#include <netinet/in.h>
5860#endif
5861#ifdef HAVE_NETINET_IN6_H
5862#include <netinet/in6.h>
5863#endif
5864
5865int main() {
5866
5867 struct sockaddr_in6 sin6;
5868 int s;
5869
5870 s = socket(AF_INET6, SOCK_DGRAM, 0);
5871
5872 sin6.sin6_family = AF_INET6;
5873 sin6.sin6_port = htons(17);
5874 sin6.sin6_addr = in6addr_any;
5875 bind(s, (struct sockaddr *)&sin6, sizeof(sin6));
5876
5877; return 0; }
5878EOF
5879if { (eval echo configure:5880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5880 rm -rf conftest*
5881 ac_cv_lib_ipv6=yes
5882else
5883 echo "configure: failed program was:" >&5
5884 cat conftest.$ac_ext >&5
5885 rm -rf conftest*
5886 ac_cv_lib_ipv6=no
5887fi
5888rm -f conftest*
5889fi
5890
5891echo $ac_n "checking for IPv6""... $ac_c" 1>&6
5892echo "configure:5893: checking for IPv6" >&5
5893echo "$ac_t""$ac_cv_lib_ipv6" 1>&6
5894if test "$ac_cv_lib_ipv6" = yes; then
5895 cat >> confdefs.h <<\EOF
5896#define HAVE_IPV6 1
5897EOF
5898
5899fi
5900
5901
5902
5903
5904
5905
5906
5907echo $ac_n "checking for socket""... $ac_c" 1>&6
5908echo "configure:5909: checking for socket" >&5
5909if eval "test \"`echo '$''{'ac_cv_funclib_socket'+set}'`\" = set"; then
5910 echo $ac_n "(cached) $ac_c" 1>&6
5911else
5912
5913if eval "test \"\$ac_cv_func_socket\" != yes" ; then
5914 ac_save_LIBS="$LIBS"
5915 for ac_lib in "" socket; do
5916 if test -n "$ac_lib"; then
5917 ac_lib="-l$ac_lib"
5918 else
5919 ac_lib=""
5920 fi
5921 LIBS=" $ac_lib $ac_save_LIBS"
5922 cat > conftest.$ac_ext <<EOF
5923#line 5924 "configure"
5924#include "confdefs.h"
5925
5926int main() {
5927socket()
5928; return 0; }
5929EOF
5930if { (eval echo configure:5931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5931 rm -rf conftest*
5932 eval "if test -n \"$ac_lib\";then ac_cv_funclib_socket=$ac_lib; else ac_cv_funclib_socket=yes; fi";break
5933else
5934 echo "configure: failed program was:" >&5
5935 cat conftest.$ac_ext >&5
5936fi
5937rm -f conftest*
5938 done
5939 eval "ac_cv_funclib_socket=\${ac_cv_funclib_socket-no}"
5940 LIBS="$ac_save_LIBS"
5941fi
5942
5943fi
5944
5945
5946eval "ac_res=\$ac_cv_funclib_socket"
5947
5948: << END
5949@@@funcs="$funcs socket"@@@
5950@@@libs="$libs "" socket"@@@
5951END
5952
5953# socket
5954eval "ac_tr_func=HAVE_`echo socket | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
5955eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
5956eval "LIB_socket=$ac_res"
5957
5958case "$ac_res" in
5959 yes)
5960 eval "ac_cv_func_socket=yes"
5961 eval "LIB_socket="
5962 cat >> confdefs.h <<EOF
5963#define $ac_tr_func 1
5964EOF
5965
5966 echo "$ac_t""yes" 1>&6
5967 ;;
5968 no)
5969 eval "ac_cv_func_socket=no"
5970 eval "LIB_socket="
5971 echo "$ac_t""no" 1>&6
5972 ;;
5973 *)
5974 eval "ac_cv_func_socket=yes"
5975 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
5976 cat >> confdefs.h <<EOF
5977#define $ac_tr_func 1
5978EOF
5979
5980 cat >> confdefs.h <<EOF
5981#define $ac_tr_lib 1
5982EOF
5983
5984 echo "$ac_t""yes, in $ac_res" 1>&6
5985 ;;
5986esac
5987
5988
5989if test -n "$LIB_socket"; then
5990 LIBS="$LIB_socket $LIBS"
5991fi
5992
5993
5994
5995
5996
5997echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5998echo "configure:5999: checking for gethostbyname" >&5
5999if eval "test \"`echo '$''{'ac_cv_funclib_gethostbyname'+set}'`\" = set"; then
6000 echo $ac_n "(cached) $ac_c" 1>&6
6001else
6002
6003if eval "test \"\$ac_cv_func_gethostbyname\" != yes" ; then
6004 ac_save_LIBS="$LIBS"
6005 for ac_lib in "" nsl; do
6006 if test -n "$ac_lib"; then
6007 ac_lib="-l$ac_lib"
6008 else
6009 ac_lib=""
6010 fi
6011 LIBS=" $ac_lib $ac_save_LIBS"
6012 cat > conftest.$ac_ext <<EOF
6013#line 6014 "configure"
6014#include "confdefs.h"
6015
6016int main() {
6017gethostbyname()
6018; return 0; }
6019EOF
6020if { (eval echo configure:6021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6021 rm -rf conftest*
6022 eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname=$ac_lib; else ac_cv_funclib_gethostbyname=yes; fi";break
6023else
6024 echo "configure: failed program was:" >&5
6025 cat conftest.$ac_ext >&5
6026fi
6027rm -f conftest*
6028 done
6029 eval "ac_cv_funclib_gethostbyname=\${ac_cv_funclib_gethostbyname-no}"
6030 LIBS="$ac_save_LIBS"
6031fi
6032
6033fi
6034
6035
6036eval "ac_res=\$ac_cv_funclib_gethostbyname"
6037
6038: << END
6039@@@funcs="$funcs gethostbyname"@@@
6040@@@libs="$libs "" nsl"@@@
6041END
6042
6043# gethostbyname
6044eval "ac_tr_func=HAVE_`echo gethostbyname | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
6045eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
6046eval "LIB_gethostbyname=$ac_res"
6047
6048case "$ac_res" in
6049 yes)
6050 eval "ac_cv_func_gethostbyname=yes"
6051 eval "LIB_gethostbyname="
6052 cat >> confdefs.h <<EOF
6053#define $ac_tr_func 1
6054EOF
6055
6056 echo "$ac_t""yes" 1>&6
6057 ;;
6058 no)
6059 eval "ac_cv_func_gethostbyname=no"
6060 eval "LIB_gethostbyname="
6061 echo "$ac_t""no" 1>&6
6062 ;;
6063 *)
6064 eval "ac_cv_func_gethostbyname=yes"
6065 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
6066 cat >> confdefs.h <<EOF
6067#define $ac_tr_func 1
6068EOF
6069
6070 cat >> confdefs.h <<EOF
6071#define $ac_tr_lib 1
6072EOF
6073
6074 echo "$ac_t""yes, in $ac_res" 1>&6
6075 ;;
6076esac
6077
6078
6079if test -n "$LIB_gethostbyname"; then
6080 LIBS="$LIB_gethostbyname $LIBS"
6081fi
6082
6083
6084
6085
6086
6087echo $ac_n "checking for syslog""... $ac_c" 1>&6
6088echo "configure:6089: checking for syslog" >&5
6089if eval "test \"`echo '$''{'ac_cv_funclib_syslog'+set}'`\" = set"; then
6090 echo $ac_n "(cached) $ac_c" 1>&6
6091else
6092
6093if eval "test \"\$ac_cv_func_syslog\" != yes" ; then
6094 ac_save_LIBS="$LIBS"
6095 for ac_lib in "" syslog; do
6096 if test -n "$ac_lib"; then
6097 ac_lib="-l$ac_lib"
6098 else
6099 ac_lib=""
6100 fi
6101 LIBS=" $ac_lib $ac_save_LIBS"
6102 cat > conftest.$ac_ext <<EOF
6103#line 6104 "configure"
6104#include "confdefs.h"
6105
6106int main() {
6107syslog()
6108; return 0; }
6109EOF
6110if { (eval echo configure:6111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6111 rm -rf conftest*
6112 eval "if test -n \"$ac_lib\";then ac_cv_funclib_syslog=$ac_lib; else ac_cv_funclib_syslog=yes; fi";break
6113else
6114 echo "configure: failed program was:" >&5
6115 cat conftest.$ac_ext >&5
6116fi
6117rm -f conftest*
6118 done
6119 eval "ac_cv_funclib_syslog=\${ac_cv_funclib_syslog-no}"
6120 LIBS="$ac_save_LIBS"
6121fi
6122
6123fi
6124
6125
6126eval "ac_res=\$ac_cv_funclib_syslog"
6127
6128: << END
6129@@@funcs="$funcs syslog"@@@
6130@@@libs="$libs "" syslog"@@@
6131END
6132
6133# syslog
6134eval "ac_tr_func=HAVE_`echo syslog | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
6135eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
6136eval "LIB_syslog=$ac_res"
6137
6138case "$ac_res" in
6139 yes)
6140 eval "ac_cv_func_syslog=yes"
6141 eval "LIB_syslog="
6142 cat >> confdefs.h <<EOF
6143#define $ac_tr_func 1
6144EOF
6145
6146 echo "$ac_t""yes" 1>&6
6147 ;;
6148 no)
6149 eval "ac_cv_func_syslog=no"
6150 eval "LIB_syslog="
6151 echo "$ac_t""no" 1>&6
6152 ;;
6153 *)
6154 eval "ac_cv_func_syslog=yes"
6155 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
6156 cat >> confdefs.h <<EOF
6157#define $ac_tr_func 1
6158EOF
6159
6160 cat >> confdefs.h <<EOF
6161#define $ac_tr_lib 1
6162EOF
6163
6164 echo "$ac_t""yes, in $ac_res" 1>&6
6165 ;;
6166esac
6167
6168
6169if test -n "$LIB_syslog"; then
6170 LIBS="$LIB_syslog $LIBS"
6171fi
6172
6173
6174
6175
6176
6177echo $ac_n "checking for logwtmp""... $ac_c" 1>&6
6178echo "configure:6179: checking for logwtmp" >&5
6179if eval "test \"`echo '$''{'ac_cv_funclib_logwtmp'+set}'`\" = set"; then
6180 echo $ac_n "(cached) $ac_c" 1>&6
6181else
6182
6183if eval "test \"\$ac_cv_func_logwtmp\" != yes" ; then
6184 ac_save_LIBS="$LIBS"
6185 for ac_lib in "" util; do
6186 if test -n "$ac_lib"; then
6187 ac_lib="-l$ac_lib"
6188 else
6189 ac_lib=""
6190 fi
6191 LIBS=" $ac_lib $ac_save_LIBS"
6192 cat > conftest.$ac_ext <<EOF
6193#line 6194 "configure"
6194#include "confdefs.h"
6195
6196int main() {
6197logwtmp()
6198; return 0; }
6199EOF
6200if { (eval echo configure:6201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6201 rm -rf conftest*
6202 eval "if test -n \"$ac_lib\";then ac_cv_funclib_logwtmp=$ac_lib; else ac_cv_funclib_logwtmp=yes; fi";break
6203else
6204 echo "configure: failed program was:" >&5
6205 cat conftest.$ac_ext >&5
6206fi
6207rm -f conftest*
6208 done
6209 eval "ac_cv_funclib_logwtmp=\${ac_cv_funclib_logwtmp-no}"
6210 LIBS="$ac_save_LIBS"
6211fi
6212
6213fi
6214
6215
6216eval "ac_res=\$ac_cv_funclib_logwtmp"
6217
6218: << END
6219@@@funcs="$funcs logwtmp"@@@
6220@@@libs="$libs "" util"@@@
6221END
6222
6223# logwtmp
6224eval "ac_tr_func=HAVE_`echo logwtmp | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
6225eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
6226eval "LIB_logwtmp=$ac_res"
6227
6228case "$ac_res" in
6229 yes)
6230 eval "ac_cv_func_logwtmp=yes"
6231 eval "LIB_logwtmp="
6232 cat >> confdefs.h <<EOF
6233#define $ac_tr_func 1
6234EOF
6235
6236 echo "$ac_t""yes" 1>&6
6237 ;;
6238 no)
6239 eval "ac_cv_func_logwtmp=no"
6240 eval "LIB_logwtmp="
6241 echo "$ac_t""no" 1>&6
6242 ;;
6243 *)
6244 eval "ac_cv_func_logwtmp=yes"
6245 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
6246 cat >> confdefs.h <<EOF
6247#define $ac_tr_func 1
6248EOF
6249
6250 cat >> confdefs.h <<EOF
6251#define $ac_tr_lib 1
6252EOF
6253
6254 echo "$ac_t""yes, in $ac_res" 1>&6
6255 ;;
6256esac
6257
6258
6259
6260
6261
6262echo $ac_n "checking for tgetent""... $ac_c" 1>&6
6263echo "configure:6264: checking for tgetent" >&5
6264if eval "test \"`echo '$''{'ac_cv_funclib_tgetent'+set}'`\" = set"; then
6265 echo $ac_n "(cached) $ac_c" 1>&6
6266else
6267
6268if eval "test \"\$ac_cv_func_tgetent\" != yes" ; then
6269 ac_save_LIBS="$LIBS"
6270 for ac_lib in "" termcap ncurses curses; do
6271 if test -n "$ac_lib"; then
6272 ac_lib="-l$ac_lib"
6273 else
6274 ac_lib=""
6275 fi
6276 LIBS=" $ac_lib $ac_save_LIBS"
6277 cat > conftest.$ac_ext <<EOF
6278#line 6279 "configure"
6279#include "confdefs.h"
6280
6281int main() {
6282tgetent()
6283; return 0; }
6284EOF
6285if { (eval echo configure:6286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6286 rm -rf conftest*
6287 eval "if test -n \"$ac_lib\";then ac_cv_funclib_tgetent=$ac_lib; else ac_cv_funclib_tgetent=yes; fi";break
6288else
6289 echo "configure: failed program was:" >&5
6290 cat conftest.$ac_ext >&5
6291fi
6292rm -f conftest*
6293 done
6294 eval "ac_cv_funclib_tgetent=\${ac_cv_funclib_tgetent-no}"
6295 LIBS="$ac_save_LIBS"
6296fi
6297
6298fi
6299
6300
6301eval "ac_res=\$ac_cv_funclib_tgetent"
6302
6303: << END
6304@@@funcs="$funcs tgetent"@@@
6305@@@libs="$libs "" termcap ncurses curses"@@@
6306END
6307
6308# tgetent
6309eval "ac_tr_func=HAVE_`echo tgetent | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
6310eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
6311eval "LIB_tgetent=$ac_res"
6312
6313case "$ac_res" in
6314 yes)
6315 eval "ac_cv_func_tgetent=yes"
6316 eval "LIB_tgetent="
6317 cat >> confdefs.h <<EOF
6318#define $ac_tr_func 1
6319EOF
6320
6321 echo "$ac_t""yes" 1>&6
6322 ;;
6323 no)
6324 eval "ac_cv_func_tgetent=no"
6325 eval "LIB_tgetent="
6326 echo "$ac_t""no" 1>&6
6327 ;;
6328 *)
6329 eval "ac_cv_func_tgetent=yes"
6330 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
6331 cat >> confdefs.h <<EOF
6332#define $ac_tr_func 1
6333EOF
6334
6335 cat >> confdefs.h <<EOF
6336#define $ac_tr_lib 1
6337EOF
6338
6339 echo "$ac_t""yes, in $ac_res" 1>&6
6340 ;;
6341esac
6342
6343
6344
6345
6346
6347
6348echo $ac_n "checking for gethostbyname2""... $ac_c" 1>&6
6349echo "configure:6350: checking for gethostbyname2" >&5
6350if eval "test \"`echo '$''{'ac_cv_funclib_gethostbyname2'+set}'`\" = set"; then
6351 echo $ac_n "(cached) $ac_c" 1>&6
6352else
6353
6354if eval "test \"\$ac_cv_func_gethostbyname2\" != yes" ; then
6355 ac_save_LIBS="$LIBS"
6356 for ac_lib in "" inet6 ip6; do
6357 if test -n "$ac_lib"; then
6358 ac_lib="-l$ac_lib"
6359 else
6360 ac_lib=""
6361 fi
6362 LIBS=" $ac_lib $ac_save_LIBS"
6363 cat > conftest.$ac_ext <<EOF
6364#line 6365 "configure"
6365#include "confdefs.h"
6366
6367int main() {
6368gethostbyname2()
6369; return 0; }
6370EOF
6371if { (eval echo configure:6372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6372 rm -rf conftest*
6373 eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname2=$ac_lib; else ac_cv_funclib_gethostbyname2=yes; fi";break
6374else
6375 echo "configure: failed program was:" >&5
6376 cat conftest.$ac_ext >&5
6377fi
6378rm -f conftest*
6379 done
6380 eval "ac_cv_funclib_gethostbyname2=\${ac_cv_funclib_gethostbyname2-no}"
6381 LIBS="$ac_save_LIBS"
6382fi
6383
6384fi
6385
6386
6387eval "ac_res=\$ac_cv_funclib_gethostbyname2"
6388
6389: << END
6390@@@funcs="$funcs gethostbyname2"@@@
6391@@@libs="$libs "" inet6 ip6"@@@
6392END
6393
6394# gethostbyname2
6395eval "ac_tr_func=HAVE_`echo gethostbyname2 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
6396eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
6397eval "LIB_gethostbyname2=$ac_res"
6398
6399case "$ac_res" in
6400 yes)
6401 eval "ac_cv_func_gethostbyname2=yes"
6402 eval "LIB_gethostbyname2="
6403 cat >> confdefs.h <<EOF
6404#define $ac_tr_func 1
6405EOF
6406
6407 echo "$ac_t""yes" 1>&6
6408 ;;
6409 no)
6410 eval "ac_cv_func_gethostbyname2=no"
6411 eval "LIB_gethostbyname2="
6412 echo "$ac_t""no" 1>&6
6413 ;;
6414 *)
6415 eval "ac_cv_func_gethostbyname2=yes"
6416 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
6417 cat >> confdefs.h <<EOF
6418#define $ac_tr_func 1
6419EOF
6420
6421 cat >> confdefs.h <<EOF
6422#define $ac_tr_lib 1
6423EOF
6424
6425 echo "$ac_t""yes, in $ac_res" 1>&6
6426 ;;
6427esac
6428
6429
6430if test -n "$LIB_gethostbyname2"; then
6431 LIBS="$LIB_gethostbyname2 $LIBS"
6432fi
6433
6434
6435
6436
6437
6438
6439echo $ac_n "checking for res_search""... $ac_c" 1>&6
6440echo "configure:6441: checking for res_search" >&5
6441if eval "test \"`echo '$''{'ac_cv_funclib_res_search'+set}'`\" = set"; then
6442 echo $ac_n "(cached) $ac_c" 1>&6
6443else
6444
6445if eval "test \"\$ac_cv_func_res_search\" != yes" ; then
6446 ac_save_LIBS="$LIBS"
6447 for ac_lib in "" resolv; do
6448 if test -n "$ac_lib"; then
6449 ac_lib="-l$ac_lib"
6450 else
6451 ac_lib=""
6452 fi
6453 LIBS=" $ac_lib $ac_save_LIBS"
6454 cat > conftest.$ac_ext <<EOF
6455#line 6456 "configure"
6456#include "confdefs.h"
6457
6458#include <stdio.h>
6459#ifdef HAVE_SYS_TYPES_H
6460#include <sys/types.h>
6461#endif
6462#ifdef HAVE_NETINET_IN_H
6463#include <netinet/in.h>
6464#endif
6465#ifdef HAVE_ARPA_NAMESER_H
6466#include <arpa/nameser.h>
6467#endif
6468#ifdef HAVE_RESOLV_H
6469#include <resolv.h>
6470#endif
6471
6472int main() {
6473res_search(0,0,0,0,0)
6474; return 0; }
6475EOF
6476if { (eval echo configure:6477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6477 rm -rf conftest*
6478 eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_search=$ac_lib; else ac_cv_funclib_res_search=yes; fi";break
6479else
6480 echo "configure: failed program was:" >&5
6481 cat conftest.$ac_ext >&5
6482fi
6483rm -f conftest*
6484 done
6485 eval "ac_cv_funclib_res_search=\${ac_cv_funclib_res_search-no}"
6486 LIBS="$ac_save_LIBS"
6487fi
6488
6489fi
6490
6491
6492eval "ac_res=\$ac_cv_funclib_res_search"
6493
6494: << END
6495@@@funcs="$funcs res_search"@@@
6496@@@libs="$libs "" resolv"@@@
6497END
6498
6499# res_search
6500eval "ac_tr_func=HAVE_`echo res_search | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
6501eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
6502eval "LIB_res_search=$ac_res"
6503
6504case "$ac_res" in
6505 yes)
6506 eval "ac_cv_func_res_search=yes"
6507 eval "LIB_res_search="
6508 cat >> confdefs.h <<EOF
6509#define $ac_tr_func 1
6510EOF
6511
6512 echo "$ac_t""yes" 1>&6
6513 ;;
6514 no)
6515 eval "ac_cv_func_res_search=no"
6516 eval "LIB_res_search="
6517 echo "$ac_t""no" 1>&6
6518 ;;
6519 *)
6520 eval "ac_cv_func_res_search=yes"
6521 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
6522 cat >> confdefs.h <<EOF
6523#define $ac_tr_func 1
6524EOF
6525
6526 cat >> confdefs.h <<EOF
6527#define $ac_tr_lib 1
6528EOF
6529
6530 echo "$ac_t""yes, in $ac_res" 1>&6
6531 ;;
6532esac
6533
6534
6535if test -n "$LIB_res_search"; then
6536 LIBS="$LIB_res_search $LIBS"
6537fi
6538
6539
6540
6541
6542
6543
6544echo $ac_n "checking for dn_expand""... $ac_c" 1>&6
6545echo "configure:6546: checking for dn_expand" >&5
6546if eval "test \"`echo '$''{'ac_cv_funclib_dn_expand'+set}'`\" = set"; then
6547 echo $ac_n "(cached) $ac_c" 1>&6
6548else
6549
6550if eval "test \"\$ac_cv_func_dn_expand\" != yes" ; then
6551 ac_save_LIBS="$LIBS"
6552 for ac_lib in "" resolv; do
6553 if test -n "$ac_lib"; then
6554 ac_lib="-l$ac_lib"
6555 else
6556 ac_lib=""
6557 fi
6558 LIBS=" $ac_lib $ac_save_LIBS"
6559 cat > conftest.$ac_ext <<EOF
6560#line 6561 "configure"
6561#include "confdefs.h"
6562
6563#include <stdio.h>
6564#ifdef HAVE_SYS_TYPES_H
6565#include <sys/types.h>
6566#endif
6567#ifdef HAVE_NETINET_IN_H
6568#include <netinet/in.h>
6569#endif
6570#ifdef HAVE_ARPA_NAMESER_H
6571#include <arpa/nameser.h>
6572#endif
6573#ifdef HAVE_RESOLV_H
6574#include <resolv.h>
6575#endif
6576
6577int main() {
6578dn_expand(0,0,0,0,0)
6579; return 0; }
6580EOF
6581if { (eval echo configure:6582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6582 rm -rf conftest*
6583 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dn_expand=$ac_lib; else ac_cv_funclib_dn_expand=yes; fi";break
6584else
6585 echo "configure: failed program was:" >&5
6586 cat conftest.$ac_ext >&5
6587fi
6588rm -f conftest*
6589 done
6590 eval "ac_cv_funclib_dn_expand=\${ac_cv_funclib_dn_expand-no}"
6591 LIBS="$ac_save_LIBS"
6592fi
6593
6594fi
6595
6596
6597eval "ac_res=\$ac_cv_funclib_dn_expand"
6598
6599: << END
6600@@@funcs="$funcs dn_expand"@@@
6601@@@libs="$libs "" resolv"@@@
6602END
6603
6604# dn_expand
6605eval "ac_tr_func=HAVE_`echo dn_expand | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
6606eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
6607eval "LIB_dn_expand=$ac_res"
6608
6609case "$ac_res" in
6610 yes)
6611 eval "ac_cv_func_dn_expand=yes"
6612 eval "LIB_dn_expand="
6613 cat >> confdefs.h <<EOF
6614#define $ac_tr_func 1
6615EOF
6616
6617 echo "$ac_t""yes" 1>&6
6618 ;;
6619 no)
6620 eval "ac_cv_func_dn_expand=no"
6621 eval "LIB_dn_expand="
6622 echo "$ac_t""no" 1>&6
6623 ;;
6624 *)
6625 eval "ac_cv_func_dn_expand=yes"
6626 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
6627 cat >> confdefs.h <<EOF
6628#define $ac_tr_func 1
6629EOF
6630
6631 cat >> confdefs.h <<EOF
6632#define $ac_tr_lib 1
6633EOF
6634
6635 echo "$ac_t""yes, in $ac_res" 1>&6
6636 ;;
6637esac
6638
6639
6640if test -n "$LIB_dn_expand"; then
6641 LIBS="$LIB_dn_expand $LIBS"
6642fi
6643
6644
6645
6646
6647echo $ac_n "checking for working snprintf""... $ac_c" 1>&6
6648echo "configure:6649: checking for working snprintf" >&5
6649if eval "test \"`echo '$''{'ac_cv_func_snprintf_working'+set}'`\" = set"; then
6650 echo $ac_n "(cached) $ac_c" 1>&6
6651else
6652 ac_cv_func_snprintf_working=yes
6653if test "$cross_compiling" = yes; then
6654 :
6655else
6656 cat > conftest.$ac_ext <<EOF
6657#line 6658 "configure"
6658#include "confdefs.h"
6659
6660#include <stdio.h>
6661#include <string.h>
6662int main()
6663{
6664 char foo[3];
6665 snprintf(foo, 2, "12");
6666 return strcmp(foo, "1");
6667}
6668EOF
6669if { (eval echo configure:6670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6670then
6671 :
6672else
6673 echo "configure: failed program was:" >&5
6674 cat conftest.$ac_ext >&5
6675 rm -fr conftest*
6676 ac_cv_func_snprintf_working=no
6677fi
6678rm -fr conftest*
6679fi
6680
6681fi
6682
6683echo "$ac_t""$ac_cv_func_snprintf_working" 1>&6
6684
6685if test "$ac_cv_func_snprintf_working" = yes; then
6686 cat >> confdefs.h <<EOF
6687#define HAVE_SNPRINTF 1
6688EOF
6689
6690fi
6691if test "$ac_cv_func_snprintf_working" = yes; then
6692
6693if test "$ac_cv_func_snprintf+set" != set -o "$ac_cv_func_snprintf" = yes; then
6694echo $ac_n "checking if snprintf needs a prototype""... $ac_c" 1>&6
6695echo "configure:6696: checking if snprintf needs a prototype" >&5
6696if eval "test \"`echo '$''{'ac_cv_func_snprintf_noproto'+set}'`\" = set"; then
6697 echo $ac_n "(cached) $ac_c" 1>&6
6698else
6699 cat > conftest.$ac_ext <<EOF
6700#line 6701 "configure"
6701#include "confdefs.h"
6702#include <stdio.h>
6703int main() {
6704struct foo { int foo; } xx;
6705extern int snprintf (struct foo*);
6706snprintf(&xx);
6707
6708; return 0; }
6709EOF
6710if { (eval echo configure:6711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6711 rm -rf conftest*
6712 eval "ac_cv_func_snprintf_noproto=yes"
6713else
6714 echo "configure: failed program was:" >&5
6715 cat conftest.$ac_ext >&5
6716 rm -rf conftest*
6717 eval "ac_cv_func_snprintf_noproto=no"
6718fi
6719rm -f conftest*
6720fi
6721
6722echo "$ac_t""$ac_cv_func_snprintf_noproto" 1>&6
6723
6724if test "$ac_cv_func_snprintf_noproto" = yes; then
6725 cat >> confdefs.h <<\EOF
6726#define NEED_SNPRINTF_PROTO 1
6727EOF
6728
6729fi
6730
6731fi
6732
6733fi
6734
6735
6736echo $ac_n "checking for working vsnprintf""... $ac_c" 1>&6
6737echo "configure:6738: checking for working vsnprintf" >&5
6738if eval "test \"`echo '$''{'ac_cv_func_vsnprintf_working'+set}'`\" = set"; then
6739 echo $ac_n "(cached) $ac_c" 1>&6
6740else
6741 ac_cv_func_vsnprintf_working=yes
6742if test "$cross_compiling" = yes; then
6743 :
6744else
6745 cat > conftest.$ac_ext <<EOF
6746#line 6747 "configure"
6747#include "confdefs.h"
6748
6749#include <stdio.h>
6750#include <string.h>
6751#include <stdarg.h>
6752
6753int foo(int num, ...)
6754{
6755 char bar[3];
6756 va_list arg;
6757 va_start(arg, num);
6758 vsnprintf(bar, 2, "%s", arg);
6759 va_end(arg);
6760 return strcmp(bar, "1");
6761}
6762
6763
6764int main()
6765{
6766 return foo(0, "12");
6767}
6768EOF
6769if { (eval echo configure:6770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6770then
6771 :
6772else
6773 echo "configure: failed program was:" >&5
6774 cat conftest.$ac_ext >&5
6775 rm -fr conftest*
6776 ac_cv_func_vsnprintf_working=no
6777fi
6778rm -fr conftest*
6779fi
6780
6781fi
6782
6783echo "$ac_t""$ac_cv_func_vsnprintf_working" 1>&6
6784
6785if test "$ac_cv_func_vsnprintf_working" = yes; then
6786 cat >> confdefs.h <<EOF
6787#define HAVE_VSNPRINTF 1
6788EOF
6789
6790fi
6791if test "$ac_cv_func_vsnprintf_working" = yes; then
6792
6793if test "$ac_cv_func_vsnprintf+set" != set -o "$ac_cv_func_vsnprintf" = yes; then
6794echo $ac_n "checking if vsnprintf needs a prototype""... $ac_c" 1>&6
6795echo "configure:6796: checking if vsnprintf needs a prototype" >&5
6796if eval "test \"`echo '$''{'ac_cv_func_vsnprintf_noproto'+set}'`\" = set"; then
6797 echo $ac_n "(cached) $ac_c" 1>&6
6798else
6799 cat > conftest.$ac_ext <<EOF
6800#line 6801 "configure"
6801#include "confdefs.h"
6802#include <stdio.h>
6803int main() {
6804struct foo { int foo; } xx;
6805extern int vsnprintf (struct foo*);
6806vsnprintf(&xx);
6807
6808; return 0; }
6809EOF
6810if { (eval echo configure:6811: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6811 rm -rf conftest*
6812 eval "ac_cv_func_vsnprintf_noproto=yes"
6813else
6814 echo "configure: failed program was:" >&5
6815 cat conftest.$ac_ext >&5
6816 rm -rf conftest*
6817 eval "ac_cv_func_vsnprintf_noproto=no"
6818fi
6819rm -f conftest*
6820fi
6821
6822echo "$ac_t""$ac_cv_func_vsnprintf_noproto" 1>&6
6823
6824if test "$ac_cv_func_vsnprintf_noproto" = yes; then
6825 cat >> confdefs.h <<\EOF
6826#define NEED_VSNPRINTF_PROTO 1
6827EOF
6828
6829fi
6830
6831fi
6832
6833fi
6834
6835
6836
6837echo $ac_n "checking for working glob""... $ac_c" 1>&6
6838echo "configure:6839: checking for working glob" >&5
6839if eval "test \"`echo '$''{'ac_cv_func_glob_working'+set}'`\" = set"; then
6840 echo $ac_n "(cached) $ac_c" 1>&6
6841else
6842 ac_cv_func_glob_working=yes
6843cat > conftest.$ac_ext <<EOF
6844#line 6845 "configure"
6845#include "confdefs.h"
6846
6847#include <stdio.h>
6848#include <glob.h>
6849int main() {
6850
6851glob(NULL, GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE, NULL, NULL);
6852
6853; return 0; }
6854EOF
6855if { (eval echo configure:6856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6856 rm -rf conftest*
6857 :
6858else
6859 echo "configure: failed program was:" >&5
6860 cat conftest.$ac_ext >&5
6861 rm -rf conftest*
6862 ac_cv_func_glob_working=no
6863fi
6864rm -f conftest*
6865fi
6866
6867echo "$ac_t""$ac_cv_func_glob_working" 1>&6
6868
6869if test "$ac_cv_func_glob_working" = yes; then
6870 cat >> confdefs.h <<\EOF
6871#define HAVE_GLOB 1
6872EOF
6873
6874fi
6875if test "$ac_cv_func_glob_working" = yes; then
6876
6877if test "$ac_cv_func_glob+set" != set -o "$ac_cv_func_glob" = yes; then
6878echo $ac_n "checking if glob needs a prototype""... $ac_c" 1>&6
6879echo "configure:6880: checking if glob needs a prototype" >&5
6880if eval "test \"`echo '$''{'ac_cv_func_glob_noproto'+set}'`\" = set"; then
6881 echo $ac_n "(cached) $ac_c" 1>&6
6882else
6883 cat > conftest.$ac_ext <<EOF
6884#line 6885 "configure"
6885#include "confdefs.h"
6886#include <stdio.h>
6887#include <glob.h>
6888int main() {
6889struct foo { int foo; } xx;
6890extern int glob (struct foo*);
6891glob(&xx);
6892
6893; return 0; }
6894EOF
6895if { (eval echo configure:6896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6896 rm -rf conftest*
6897 eval "ac_cv_func_glob_noproto=yes"
6898else
6899 echo "configure: failed program was:" >&5
6900 cat conftest.$ac_ext >&5
6901 rm -rf conftest*
6902 eval "ac_cv_func_glob_noproto=no"
6903fi
6904rm -f conftest*
6905fi
6906
6907echo "$ac_t""$ac_cv_func_glob_noproto" 1>&6
6908
6909if test "$ac_cv_func_glob_noproto" = yes; then
6910 cat >> confdefs.h <<\EOF
6911#define NEED_GLOB_PROTO 1
6912EOF
6913
6914fi
6915
6916fi
6917
6918fi
6919
6920
6921if test "$ac_cv_func_glob_working" != yes; then
6922 LIBOBJS="$LIBOBJS glob.o"
6923fi
6924
6925
6926if test "$ac_cv_func_glob_working" = yes; then
6927 have_glob_h_TRUE=
6928 have_glob_h_FALSE='#'
6929else
6930 have_glob_h_TRUE='#'
6931 have_glob_h_FALSE=
6932fi
6933
6934
6935
6936
6937
6938echo $ac_n "checking for dbopen""... $ac_c" 1>&6
6939echo "configure:6940: checking for dbopen" >&5
6940if eval "test \"`echo '$''{'ac_cv_funclib_dbopen'+set}'`\" = set"; then
6941 echo $ac_n "(cached) $ac_c" 1>&6
6942else
6943
6944if eval "test \"\$ac_cv_func_dbopen\" != yes" ; then
6945 ac_save_LIBS="$LIBS"
6946 for ac_lib in "" $berkeley_db; do
6947 if test -n "$ac_lib"; then
6948 ac_lib="-l$ac_lib"
6949 else
6950 ac_lib=""
6951 fi
6952 LIBS=" $ac_lib $ac_save_LIBS"
6953 cat > conftest.$ac_ext <<EOF
6954#line 6955 "configure"
6955#include "confdefs.h"
6956
6957int main() {
6958dbopen()
6959; return 0; }
6960EOF
6961if { (eval echo configure:6962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6962 rm -rf conftest*
6963 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbopen=$ac_lib; else ac_cv_funclib_dbopen=yes; fi";break
6964else
6965 echo "configure: failed program was:" >&5
6966 cat conftest.$ac_ext >&5
6967fi
6968rm -f conftest*
6969 done
6970 eval "ac_cv_funclib_dbopen=\${ac_cv_funclib_dbopen-no}"
6971 LIBS="$ac_save_LIBS"
6972fi
6973
6974fi
6975
6976
6977eval "ac_res=\$ac_cv_funclib_dbopen"
6978
6979: << END
6980@@@funcs="$funcs dbopen"@@@
6981@@@libs="$libs "" $berkeley_db"@@@
6982END
6983
6984# dbopen
6985eval "ac_tr_func=HAVE_`echo dbopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
6986eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
6987eval "LIB_dbopen=$ac_res"
6988
6989case "$ac_res" in
6990 yes)
6991 eval "ac_cv_func_dbopen=yes"
6992 eval "LIB_dbopen="
6993 cat >> confdefs.h <<EOF
6994#define $ac_tr_func 1
6995EOF
6996
6997 echo "$ac_t""yes" 1>&6
6998 ;;
6999 no)
7000 eval "ac_cv_func_dbopen=no"
7001 eval "LIB_dbopen="
7002 echo "$ac_t""no" 1>&6
7003 ;;
7004 *)
7005 eval "ac_cv_func_dbopen=yes"
7006 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
7007 cat >> confdefs.h <<EOF
7008#define $ac_tr_func 1
7009EOF
7010
7011 cat >> confdefs.h <<EOF
7012#define $ac_tr_lib 1
7013EOF
7014
7015 echo "$ac_t""yes, in $ac_res" 1>&6
7016 ;;
7017esac
7018
7019
7020
7021
7022
7023echo $ac_n "checking for dbm_firstkey""... $ac_c" 1>&6
7024echo "configure:7025: checking for dbm_firstkey" >&5
7025if eval "test \"`echo '$''{'ac_cv_funclib_dbm_firstkey'+set}'`\" = set"; then
7026 echo $ac_n "(cached) $ac_c" 1>&6
7027else
7028
7029if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
7030 ac_save_LIBS="$LIBS"
7031 for ac_lib in "" $berkeley_db gdbm ndbm; do
7032 if test -n "$ac_lib"; then
7033 ac_lib="-l$ac_lib"
7034 else
7035 ac_lib=""
7036 fi
7037 LIBS=" $ac_lib $ac_save_LIBS"
7038 cat > conftest.$ac_ext <<EOF
7039#line 7040 "configure"
7040#include "confdefs.h"
7041
7042int main() {
7043dbm_firstkey()
7044; return 0; }
7045EOF
7046if { (eval echo configure:7047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7047 rm -rf conftest*
7048 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
7049else
7050 echo "configure: failed program was:" >&5
7051 cat conftest.$ac_ext >&5
7052fi
7053rm -f conftest*
7054 done
7055 eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
7056 LIBS="$ac_save_LIBS"
7057fi
7058
7059fi
7060
7061
7062eval "ac_res=\$ac_cv_funclib_dbm_firstkey"
7063
7064: << END
7065@@@funcs="$funcs dbm_firstkey"@@@
7066@@@libs="$libs "" $berkeley_db gdbm ndbm"@@@
7067END
7068
7069# dbm_firstkey
7070eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
7071eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
7072eval "LIB_dbm_firstkey=$ac_res"
7073
7074case "$ac_res" in
7075 yes)
7076 eval "ac_cv_func_dbm_firstkey=yes"
7077 eval "LIB_dbm_firstkey="
7078 cat >> confdefs.h <<EOF
7079#define $ac_tr_func 1
7080EOF
7081
7082 echo "$ac_t""yes" 1>&6
7083 ;;
7084 no)
7085 eval "ac_cv_func_dbm_firstkey=no"
7086 eval "LIB_dbm_firstkey="
7087 echo "$ac_t""no" 1>&6
7088 ;;
7089 *)
7090 eval "ac_cv_func_dbm_firstkey=yes"
7091 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
7092 cat >> confdefs.h <<EOF
7093#define $ac_tr_func 1
7094EOF
7095
7096 cat >> confdefs.h <<EOF
7097#define $ac_tr_lib 1
7098EOF
7099
7100 echo "$ac_t""yes, in $ac_res" 1>&6
7101 ;;
7102esac
7103
7104
7105
7106DBLIB="$LIB_dbopen"
7107if test "$LIB_dbopen" != "$LIB_dbm_firstkey"; then
7108 DBLIB="$DBLIB $LIB_dbm_firstkey"
7109fi
7110
7111for ac_func in _getpty _scrsize asnprintf asprintf cgetent fcntl
7112do
7113echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7114echo "configure:7115: checking for $ac_func" >&5
7115if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7116 echo $ac_n "(cached) $ac_c" 1>&6
7117else
7118 cat > conftest.$ac_ext <<EOF
7119#line 7120 "configure"
7120#include "confdefs.h"
7121/* System header to define __stub macros and hopefully few prototypes,
7122 which can conflict with char $ac_func(); below. */
7123#include <assert.h>
7124/* Override any gcc2 internal prototype to avoid an error. */
7125/* We use char because int might match the return type of a gcc2
7126 builtin and then its argument prototype would still apply. */
7127char $ac_func();
7128
7129int main() {
7130
7131/* The GNU C library defines this for functions which it implements
7132 to always fail with ENOSYS. Some functions are actually named
7133 something starting with __ and the normal name is an alias. */
7134#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7135choke me
7136#else
7137$ac_func();
7138#endif
7139
7140; return 0; }
7141EOF
7142if { (eval echo configure:7143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7143 rm -rf conftest*
7144 eval "ac_cv_func_$ac_func=yes"
7145else
7146 echo "configure: failed program was:" >&5
7147 cat conftest.$ac_ext >&5
7148 rm -rf conftest*
7149 eval "ac_cv_func_$ac_func=no"
7150fi
7151rm -f conftest*
7152fi
7153
7154if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7155 echo "$ac_t""yes" 1>&6
7156 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7157 cat >> confdefs.h <<EOF
7158#define $ac_tr_func 1
7159EOF
7160
7161else
7162 echo "$ac_t""no" 1>&6
7163fi
7164done
7165
7166for ac_func in getmsg getrlimit getspnam gettimeofday getuid
7167do
7168echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7169echo "configure:7170: checking for $ac_func" >&5
7170if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7171 echo $ac_n "(cached) $ac_c" 1>&6
7172else
7173 cat > conftest.$ac_ext <<EOF
7174#line 7175 "configure"
7175#include "confdefs.h"
7176/* System header to define __stub macros and hopefully few prototypes,
7177 which can conflict with char $ac_func(); below. */
7178#include <assert.h>
7179/* Override any gcc2 internal prototype to avoid an error. */
7180/* We use char because int might match the return type of a gcc2
7181 builtin and then its argument prototype would still apply. */
7182char $ac_func();
7183
7184int main() {
7185
7186/* The GNU C library defines this for functions which it implements
7187 to always fail with ENOSYS. Some functions are actually named
7188 something starting with __ and the normal name is an alias. */
7189#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7190choke me
7191#else
7192$ac_func();
7193#endif
7194
7195; return 0; }
7196EOF
7197if { (eval echo configure:7198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7198 rm -rf conftest*
7199 eval "ac_cv_func_$ac_func=yes"
7200else
7201 echo "configure: failed program was:" >&5
7202 cat conftest.$ac_ext >&5
7203 rm -rf conftest*
7204 eval "ac_cv_func_$ac_func=no"
7205fi
7206rm -f conftest*
7207fi
7208
7209if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7210 echo "$ac_t""yes" 1>&6
7211 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7212 cat >> confdefs.h <<EOF
7213#define $ac_tr_func 1
7214EOF
7215
7216else
7217 echo "$ac_t""no" 1>&6
7218fi
7219done
7220
7221for ac_func in grantpt mktime ptsname rand random setproctitle
7222do
7223echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7224echo "configure:7225: checking for $ac_func" >&5
7225if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7226 echo $ac_n "(cached) $ac_c" 1>&6
7227else
7228 cat > conftest.$ac_ext <<EOF
7229#line 7230 "configure"
7230#include "confdefs.h"
7231/* System header to define __stub macros and hopefully few prototypes,
7232 which can conflict with char $ac_func(); below. */
7233#include <assert.h>
7234/* Override any gcc2 internal prototype to avoid an error. */
7235/* We use char because int might match the return type of a gcc2
7236 builtin and then its argument prototype would still apply. */
7237char $ac_func();
7238
7239int main() {
7240
7241/* The GNU C library defines this for functions which it implements
7242 to always fail with ENOSYS. Some functions are actually named
7243 something starting with __ and the normal name is an alias. */
7244#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7245choke me
7246#else
7247$ac_func();
7248#endif
7249
7250; return 0; }
7251EOF
7252if { (eval echo configure:7253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7253 rm -rf conftest*
7254 eval "ac_cv_func_$ac_func=yes"
7255else
7256 echo "configure: failed program was:" >&5
7257 cat conftest.$ac_ext >&5
7258 rm -rf conftest*
7259 eval "ac_cv_func_$ac_func=no"
7260fi
7261rm -f conftest*
7262fi
7263
7264if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7265 echo "$ac_t""yes" 1>&6
7266 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7267 cat >> confdefs.h <<EOF
7268#define $ac_tr_func 1
7269EOF
7270
7271else
7272 echo "$ac_t""no" 1>&6
7273fi
7274done
7275
7276for ac_func in revoke select setitimer setpcred setpgid
7277do
7278echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7279echo "configure:7280: checking for $ac_func" >&5
7280if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7281 echo $ac_n "(cached) $ac_c" 1>&6
7282else
7283 cat > conftest.$ac_ext <<EOF
7284#line 7285 "configure"
7285#include "confdefs.h"
7286/* System header to define __stub macros and hopefully few prototypes,
7287 which can conflict with char $ac_func(); below. */
7288#include <assert.h>
7289/* Override any gcc2 internal prototype to avoid an error. */
7290/* We use char because int might match the return type of a gcc2
7291 builtin and then its argument prototype would still apply. */
7292char $ac_func();
7293
7294int main() {
7295
7296/* The GNU C library defines this for functions which it implements
7297 to always fail with ENOSYS. Some functions are actually named
7298 something starting with __ and the normal name is an alias. */
7299#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7300choke me
7301#else
7302$ac_func();
7303#endif
7304
7305; return 0; }
7306EOF
7307if { (eval echo configure:7308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7308 rm -rf conftest*
7309 eval "ac_cv_func_$ac_func=yes"
7310else
7311 echo "configure: failed program was:" >&5
7312 cat conftest.$ac_ext >&5
7313 rm -rf conftest*
7314 eval "ac_cv_func_$ac_func=no"
7315fi
7316rm -f conftest*
7317fi
7318
7319if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7320 echo "$ac_t""yes" 1>&6
7321 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7322 cat >> confdefs.h <<EOF
7323#define $ac_tr_func 1
7324EOF
7325
7326else
7327 echo "$ac_t""no" 1>&6
7328fi
7329done
7330
7331for ac_func in setregid setresgid setresuid setreuid setutent
7332do
7333echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7334echo "configure:7335: checking for $ac_func" >&5
7335if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7336 echo $ac_n "(cached) $ac_c" 1>&6
7337else
7338 cat > conftest.$ac_ext <<EOF
7339#line 7340 "configure"
7340#include "confdefs.h"
7341/* System header to define __stub macros and hopefully few prototypes,
7342 which can conflict with char $ac_func(); below. */
7343#include <assert.h>
7344/* Override any gcc2 internal prototype to avoid an error. */
7345/* We use char because int might match the return type of a gcc2
7346 builtin and then its argument prototype would still apply. */
7347char $ac_func();
7348
7349int main() {
7350
7351/* The GNU C library defines this for functions which it implements
7352 to always fail with ENOSYS. Some functions are actually named
7353 something starting with __ and the normal name is an alias. */
7354#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7355choke me
7356#else
7357$ac_func();
7358#endif
7359
7360; return 0; }
7361EOF
7362if { (eval echo configure:7363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7363 rm -rf conftest*
7364 eval "ac_cv_func_$ac_func=yes"
7365else
7366 echo "configure: failed program was:" >&5
7367 cat conftest.$ac_ext >&5
7368 rm -rf conftest*
7369 eval "ac_cv_func_$ac_func=no"
7370fi
7371rm -f conftest*
7372fi
7373
7374if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7375 echo "$ac_t""yes" 1>&6
7376 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7377 cat >> confdefs.h <<EOF
7378#define $ac_tr_func 1
7379EOF
7380
7381else
7382 echo "$ac_t""no" 1>&6
7383fi
7384done
7385
7386for ac_func in setsid sigaction strstr
7387do
7388echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7389echo "configure:7390: checking for $ac_func" >&5
7390if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7391 echo $ac_n "(cached) $ac_c" 1>&6
7392else
7393 cat > conftest.$ac_ext <<EOF
7394#line 7395 "configure"
7395#include "confdefs.h"
7396/* System header to define __stub macros and hopefully few prototypes,
7397 which can conflict with char $ac_func(); below. */
7398#include <assert.h>
7399/* Override any gcc2 internal prototype to avoid an error. */
7400/* We use char because int might match the return type of a gcc2
7401 builtin and then its argument prototype would still apply. */
7402char $ac_func();
7403
7404int main() {
7405
7406/* The GNU C library defines this for functions which it implements
7407 to always fail with ENOSYS. Some functions are actually named
7408 something starting with __ and the normal name is an alias. */
7409#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7410choke me
7411#else
7412$ac_func();
7413#endif
7414
7415; return 0; }
7416EOF
7417if { (eval echo configure:7418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7418 rm -rf conftest*
7419 eval "ac_cv_func_$ac_func=yes"
7420else
7421 echo "configure: failed program was:" >&5
7422 cat conftest.$ac_ext >&5
7423 rm -rf conftest*
7424 eval "ac_cv_func_$ac_func=no"
7425fi
7426rm -f conftest*
7427fi
7428
7429if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7430 echo "$ac_t""yes" 1>&6
7431 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7432 cat >> confdefs.h <<EOF
7433#define $ac_tr_func 1
7434EOF
7435
7436else
7437 echo "$ac_t""no" 1>&6
7438fi
7439done
7440
7441for ac_func in sysconf sysctl timegm ttyname ttyslot umask uname
7442do
7443echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7444echo "configure:7445: checking for $ac_func" >&5
7445if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7446 echo $ac_n "(cached) $ac_c" 1>&6
7447else
7448 cat > conftest.$ac_ext <<EOF
7449#line 7450 "configure"
7450#include "confdefs.h"
7451/* System header to define __stub macros and hopefully few prototypes,
7452 which can conflict with char $ac_func(); below. */
7453#include <assert.h>
7454/* Override any gcc2 internal prototype to avoid an error. */
7455/* We use char because int might match the return type of a gcc2
7456 builtin and then its argument prototype would still apply. */
7457char $ac_func();
7458
7459int main() {
7460
7461/* The GNU C library defines this for functions which it implements
7462 to always fail with ENOSYS. Some functions are actually named
7463 something starting with __ and the normal name is an alias. */
7464#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7465choke me
7466#else
7467$ac_func();
7468#endif
7469
7470; return 0; }
7471EOF
7472if { (eval echo configure:7473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7473 rm -rf conftest*
7474 eval "ac_cv_func_$ac_func=yes"
7475else
7476 echo "configure: failed program was:" >&5
7477 cat conftest.$ac_ext >&5
7478 rm -rf conftest*
7479 eval "ac_cv_func_$ac_func=no"
7480fi
7481rm -f conftest*
7482fi
7483
7484if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7485 echo "$ac_t""yes" 1>&6
7486 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7487 cat >> confdefs.h <<EOF
7488#define $ac_tr_func 1
7489EOF
7490
7491else
7492 echo "$ac_t""no" 1>&6
7493fi
7494done
7495
7496for ac_func in unlockpt vasnprintf vasprintf vhangup
7497do
7498echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7499echo "configure:7500: checking for $ac_func" >&5
7500if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7501 echo $ac_n "(cached) $ac_c" 1>&6
7502else
7503 cat > conftest.$ac_ext <<EOF
7504#line 7505 "configure"
7505#include "confdefs.h"
7506/* System header to define __stub macros and hopefully few prototypes,
7507 which can conflict with char $ac_func(); below. */
7508#include <assert.h>
7509/* Override any gcc2 internal prototype to avoid an error. */
7510/* We use char because int might match the return type of a gcc2
7511 builtin and then its argument prototype would still apply. */
7512char $ac_func();
7513
7514int main() {
7515
7516/* The GNU C library defines this for functions which it implements
7517 to always fail with ENOSYS. Some functions are actually named
7518 something starting with __ and the normal name is an alias. */
7519#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7520choke me
7521#else
7522$ac_func();
7523#endif
7524
7525; return 0; }
7526EOF
7527if { (eval echo configure:7528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7528 rm -rf conftest*
7529 eval "ac_cv_func_$ac_func=yes"
7530else
7531 echo "configure: failed program was:" >&5
7532 cat conftest.$ac_ext >&5
7533 rm -rf conftest*
7534 eval "ac_cv_func_$ac_func=no"
7535fi
7536rm -f conftest*
7537fi
7538
7539if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7540 echo "$ac_t""yes" 1>&6
7541 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7542 cat >> confdefs.h <<EOF
7543#define $ac_tr_func 1
7544EOF
7545
7546else
7547 echo "$ac_t""no" 1>&6
7548fi
7549done
7550
7551for ac_func in yp_get_default_domain
7552do
7553echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7554echo "configure:7555: checking for $ac_func" >&5
7555if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7556 echo $ac_n "(cached) $ac_c" 1>&6
7557else
7558 cat > conftest.$ac_ext <<EOF
7559#line 7560 "configure"
7560#include "confdefs.h"
7561/* System header to define __stub macros and hopefully few prototypes,
7562 which can conflict with char $ac_func(); below. */
7563#include <assert.h>
7564/* Override any gcc2 internal prototype to avoid an error. */
7565/* We use char because int might match the return type of a gcc2
7566 builtin and then its argument prototype would still apply. */
7567char $ac_func();
7568
7569int main() {
7570
7571/* The GNU C library defines this for functions which it implements
7572 to always fail with ENOSYS. Some functions are actually named
7573 something starting with __ and the normal name is an alias. */
7574#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7575choke me
7576#else
7577$ac_func();
7578#endif
7579
7580; return 0; }
7581EOF
7582if { (eval echo configure:7583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7583 rm -rf conftest*
7584 eval "ac_cv_func_$ac_func=yes"
7585else
7586 echo "configure: failed program was:" >&5
7587 cat conftest.$ac_ext >&5
7588 rm -rf conftest*
7589 eval "ac_cv_func_$ac_func=no"
7590fi
7591rm -f conftest*
7592fi
7593
7594if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7595 echo "$ac_t""yes" 1>&6
7596 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7597 cat >> confdefs.h <<EOF
7598#define $ac_tr_func 1
7599EOF
7600
7601else
7602 echo "$ac_t""no" 1>&6
7603fi
7604done
7605
7606
7607if test "$ac_cv_func_cgetent" = no; then
7608 LIBOBJS="$LIBOBJS getcap.o"
7609fi
7610
7611
7612for ac_func in getlogin setlogin
7613do
7614echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7615echo "configure:7616: checking for $ac_func" >&5
7616if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7617 echo $ac_n "(cached) $ac_c" 1>&6
7618else
7619 cat > conftest.$ac_ext <<EOF
7620#line 7621 "configure"
7621#include "confdefs.h"
7622/* System header to define __stub macros and hopefully few prototypes,
7623 which can conflict with char $ac_func(); below. */
7624#include <assert.h>
7625/* Override any gcc2 internal prototype to avoid an error. */
7626/* We use char because int might match the return type of a gcc2
7627 builtin and then its argument prototype would still apply. */
7628char $ac_func();
7629
7630int main() {
7631
7632/* The GNU C library defines this for functions which it implements
7633 to always fail with ENOSYS. Some functions are actually named
7634 something starting with __ and the normal name is an alias. */
7635#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7636choke me
7637#else
7638$ac_func();
7639#endif
7640
7641; return 0; }
7642EOF
7643if { (eval echo configure:7644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7644 rm -rf conftest*
7645 eval "ac_cv_func_$ac_func=yes"
7646else
7647 echo "configure: failed program was:" >&5
7648 cat conftest.$ac_ext >&5
7649 rm -rf conftest*
7650 eval "ac_cv_func_$ac_func=no"
7651fi
7652rm -f conftest*
7653fi
7654
7655if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7656 echo "$ac_t""yes" 1>&6
7657 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7658 cat >> confdefs.h <<EOF
7659#define $ac_tr_func 1
7660EOF
7661
7662else
7663 echo "$ac_t""no" 1>&6
7664fi
7665done
7666
7667if test "$ac_cv_func_getlogin" = yes; then
7668echo $ac_n "checking if getlogin is posix""... $ac_c" 1>&6
7669echo "configure:7670: checking if getlogin is posix" >&5
7670if eval "test \"`echo '$''{'ac_cv_func_getlogin_posix'+set}'`\" = set"; then
7671 echo $ac_n "(cached) $ac_c" 1>&6
7672else
7673
7674if test "$ac_cv_func_getlogin" = yes -a "$ac_cv_func_setlogin" = yes; then
7675 ac_cv_func_getlogin_posix=no
7676else
7677 ac_cv_func_getlogin_posix=yes
7678fi
7679
7680fi
7681
7682echo "$ac_t""$ac_cv_func_getlogin_posix" 1>&6
7683if test "$ac_cv_func_getlogin_posix" = yes; then
7684 cat >> confdefs.h <<\EOF
7685#define POSIX_GETLOGIN 1
7686EOF
7687
7688fi
7689fi
7690
7691
7692
7693
7694for ac_hdr in capability.h sys/capability.h
7695do
7696ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7697echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7698echo "configure:7699: checking for $ac_hdr" >&5
7699if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7700 echo $ac_n "(cached) $ac_c" 1>&6
7701else
7702 cat > conftest.$ac_ext <<EOF
7703#line 7704 "configure"
7704#include "confdefs.h"
7705#include <$ac_hdr>
7706EOF
7707ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7708{ (eval echo configure:7709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7709ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7710if test -z "$ac_err"; then
7711 rm -rf conftest*
7712 eval "ac_cv_header_$ac_safe=yes"
7713else
7714 echo "$ac_err" >&5
7715 echo "configure: failed program was:" >&5
7716 cat conftest.$ac_ext >&5
7717 rm -rf conftest*
7718 eval "ac_cv_header_$ac_safe=no"
7719fi
7720rm -f conftest*
7721fi
7722if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7723 echo "$ac_t""yes" 1>&6
7724 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7725 cat >> confdefs.h <<EOF
7726#define $ac_tr_hdr 1
7727EOF
7728
7729else
7730 echo "$ac_t""no" 1>&6
7731fi
7732done
7733
7734
7735for ac_func in sgi_getcapabilitybyname cap_set_proc
7736do
7737echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7738echo "configure:7739: checking for $ac_func" >&5
7739if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7740 echo $ac_n "(cached) $ac_c" 1>&6
7741else
7742 cat > conftest.$ac_ext <<EOF
7743#line 7744 "configure"
7744#include "confdefs.h"
7745/* System header to define __stub macros and hopefully few prototypes,
7746 which can conflict with char $ac_func(); below. */
7747#include <assert.h>
7748/* Override any gcc2 internal prototype to avoid an error. */
7749/* We use char because int might match the return type of a gcc2
7750 builtin and then its argument prototype would still apply. */
7751char $ac_func();
7752
7753int main() {
7754
7755/* The GNU C library defines this for functions which it implements
7756 to always fail with ENOSYS. Some functions are actually named
7757 something starting with __ and the normal name is an alias. */
7758#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7759choke me
7760#else
7761$ac_func();
7762#endif
7763
7764; return 0; }
7765EOF
7766if { (eval echo configure:7767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7767 rm -rf conftest*
7768 eval "ac_cv_func_$ac_func=yes"
7769else
7770 echo "configure: failed program was:" >&5
7771 cat conftest.$ac_ext >&5
7772 rm -rf conftest*
7773 eval "ac_cv_func_$ac_func=no"
7774fi
7775rm -f conftest*
7776fi
7777
7778if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7779 echo "$ac_t""yes" 1>&6
7780 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7781 cat >> confdefs.h <<EOF
7782#define $ac_tr_func 1
7783EOF
7784
7785else
7786 echo "$ac_t""no" 1>&6
7787fi
7788done
7789
7790
7791
7792
7793
7794
7795
7796echo $ac_n "checking for getpwnam_r""... $ac_c" 1>&6
7797echo "configure:7798: checking for getpwnam_r" >&5
7798if eval "test \"`echo '$''{'ac_cv_funclib_getpwnam_r'+set}'`\" = set"; then
7799 echo $ac_n "(cached) $ac_c" 1>&6
7800else
7801
7802if eval "test \"\$ac_cv_func_getpwnam_r\" != yes" ; then
7803 ac_save_LIBS="$LIBS"
7804 for ac_lib in "" c_r; do
7805 if test -n "$ac_lib"; then
7806 ac_lib="-l$ac_lib"
7807 else
7808 ac_lib=""
7809 fi
7810 LIBS=" $ac_lib $ac_save_LIBS"
7811 cat > conftest.$ac_ext <<EOF
7812#line 7813 "configure"
7813#include "confdefs.h"
7814
7815int main() {
7816getpwnam_r()
7817; return 0; }
7818EOF
7819if { (eval echo configure:7820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7820 rm -rf conftest*
7821 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getpwnam_r=$ac_lib; else ac_cv_funclib_getpwnam_r=yes; fi";break
7822else
7823 echo "configure: failed program was:" >&5
7824 cat conftest.$ac_ext >&5
7825fi
7826rm -f conftest*
7827 done
7828 eval "ac_cv_funclib_getpwnam_r=\${ac_cv_funclib_getpwnam_r-no}"
7829 LIBS="$ac_save_LIBS"
7830fi
7831
7832fi
7833
7834
7835eval "ac_res=\$ac_cv_funclib_getpwnam_r"
7836
7837: << END
7838@@@funcs="$funcs getpwnam_r"@@@
7839@@@libs="$libs "" c_r"@@@
7840END
7841
7842# getpwnam_r
7843eval "ac_tr_func=HAVE_`echo getpwnam_r | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
7844eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
7845eval "LIB_getpwnam_r=$ac_res"
7846
7847case "$ac_res" in
7848 yes)
7849 eval "ac_cv_func_getpwnam_r=yes"
7850 eval "LIB_getpwnam_r="
7851 cat >> confdefs.h <<EOF
7852#define $ac_tr_func 1
7853EOF
7854
7855 echo "$ac_t""yes" 1>&6
7856 ;;
7857 no)
7858 eval "ac_cv_func_getpwnam_r=no"
7859 eval "LIB_getpwnam_r="
7860 echo "$ac_t""no" 1>&6
7861 ;;
7862 *)
7863 eval "ac_cv_func_getpwnam_r=yes"
7864 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
7865 cat >> confdefs.h <<EOF
7866#define $ac_tr_func 1
7867EOF
7868
7869 cat >> confdefs.h <<EOF
7870#define $ac_tr_lib 1
7871EOF
7872
7873 echo "$ac_t""yes, in $ac_res" 1>&6
7874 ;;
7875esac
7876
7877
7878if test "$ac_cv_func_getpwnam_r" = yes; then
7879 echo $ac_n "checking if getpwnam_r is posix""... $ac_c" 1>&6
7880echo "configure:7881: checking if getpwnam_r is posix" >&5
7881if eval "test \"`echo '$''{'ac_cv_func_getpwnam_r_posix'+set}'`\" = set"; then
7882 echo $ac_n "(cached) $ac_c" 1>&6
7883else
7884 ac_libs="$LIBS"
7885 LIBS="$LIBS $LIB_getpwnam_r"
7886 if test "$cross_compiling" = yes; then
7887 :
7888else
7889 cat > conftest.$ac_ext <<EOF
7890#line 7891 "configure"
7891#include "confdefs.h"
7892
7893#include <pwd.h>
7894int main()
7895{
7896 struct passwd pw, *pwd;
7897 return getpwnam_r("", &pw, NULL, 0, &pwd) < 0;
7898}
7899
7900EOF
7901if { (eval echo configure:7902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7902then
7903 ac_cv_func_getpwnam_r_posix=yes
7904else
7905 echo "configure: failed program was:" >&5
7906 cat conftest.$ac_ext >&5
7907 rm -fr conftest*
7908 ac_cv_func_getpwnam_r_posix=no
7909fi
7910rm -fr conftest*
7911fi
7912
7913LIBS="$ac_libs"
7914fi
7915
7916echo "$ac_t""$ac_cv_func_getpwnam_r_posix" 1>&6
7917if test "$ac_cv_func_getpwnam_r_posix" = yes; then
7918 cat >> confdefs.h <<\EOF
7919#define POSIX_GETPWNAM_R 1
7920EOF
7921
7922fi
7923fi
7924
7925
7926
7927
7928
7929echo $ac_n "checking for getsockopt""... $ac_c" 1>&6
7930echo "configure:7931: checking for getsockopt" >&5
7931if eval "test \"`echo '$''{'ac_cv_funclib_getsockopt'+set}'`\" = set"; then
7932 echo $ac_n "(cached) $ac_c" 1>&6
7933else
7934
7935if eval "test \"\$ac_cv_func_getsockopt\" != yes" ; then
7936 ac_save_LIBS="$LIBS"
7937 for ac_lib in "" ; do
7938 if test -n "$ac_lib"; then
7939 ac_lib="-l$ac_lib"
7940 else
7941 ac_lib=""
7942 fi
7943 LIBS=" $ac_lib $ac_save_LIBS"
7944 cat > conftest.$ac_ext <<EOF
7945#line 7946 "configure"
7946#include "confdefs.h"
7947#ifdef HAVE_SYS_TYPES_H
7948#include <sys/types.h>
7949#endif
7950#ifdef HAVE_SYS_SOCKET_H
7951#include <sys/socket.h>
7952#endif
7953int main() {
7954getsockopt(0,0,0,0,0)
7955; return 0; }
7956EOF
7957if { (eval echo configure:7958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7958 rm -rf conftest*
7959 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getsockopt=$ac_lib; else ac_cv_funclib_getsockopt=yes; fi";break
7960else
7961 echo "configure: failed program was:" >&5
7962 cat conftest.$ac_ext >&5
7963fi
7964rm -f conftest*
7965 done
7966 eval "ac_cv_funclib_getsockopt=\${ac_cv_funclib_getsockopt-no}"
7967 LIBS="$ac_save_LIBS"
7968fi
7969
7970fi
7971
7972
7973eval "ac_res=\$ac_cv_funclib_getsockopt"
7974
7975: << END
7976@@@funcs="$funcs getsockopt"@@@
7977@@@libs="$libs "" "@@@
7978END
7979
7980# getsockopt
7981eval "ac_tr_func=HAVE_`echo getsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
7982eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
7983eval "LIB_getsockopt=$ac_res"
7984
7985case "$ac_res" in
7986 yes)
7987 eval "ac_cv_func_getsockopt=yes"
7988 eval "LIB_getsockopt="
7989 cat >> confdefs.h <<EOF
7990#define $ac_tr_func 1
7991EOF
7992
7993 echo "$ac_t""yes" 1>&6
7994 ;;
7995 no)
7996 eval "ac_cv_func_getsockopt=no"
7997 eval "LIB_getsockopt="
7998 echo "$ac_t""no" 1>&6
7999 ;;
8000 *)
8001 eval "ac_cv_func_getsockopt=yes"
8002 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
8003 cat >> confdefs.h <<EOF
8004#define $ac_tr_func 1
8005EOF
8006
8007 cat >> confdefs.h <<EOF
8008#define $ac_tr_lib 1
8009EOF
8010
8011 echo "$ac_t""yes, in $ac_res" 1>&6
8012 ;;
8013esac
8014
8015
8016
8017
8018
8019echo $ac_n "checking for setsockopt""... $ac_c" 1>&6
8020echo "configure:8021: checking for setsockopt" >&5
8021if eval "test \"`echo '$''{'ac_cv_funclib_setsockopt'+set}'`\" = set"; then
8022 echo $ac_n "(cached) $ac_c" 1>&6
8023else
8024
8025if eval "test \"\$ac_cv_func_setsockopt\" != yes" ; then
8026 ac_save_LIBS="$LIBS"
8027 for ac_lib in "" ; do
8028 if test -n "$ac_lib"; then
8029 ac_lib="-l$ac_lib"
8030 else
8031 ac_lib=""
8032 fi
8033 LIBS=" $ac_lib $ac_save_LIBS"
8034 cat > conftest.$ac_ext <<EOF
8035#line 8036 "configure"
8036#include "confdefs.h"
8037#ifdef HAVE_SYS_TYPES_H
8038#include <sys/types.h>
8039#endif
8040#ifdef HAVE_SYS_SOCKET_H
8041#include <sys/socket.h>
8042#endif
8043int main() {
8044setsockopt(0,0,0,0,0)
8045; return 0; }
8046EOF
8047if { (eval echo configure:8048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8048 rm -rf conftest*
8049 eval "if test -n \"$ac_lib\";then ac_cv_funclib_setsockopt=$ac_lib; else ac_cv_funclib_setsockopt=yes; fi";break
8050else
8051 echo "configure: failed program was:" >&5
8052 cat conftest.$ac_ext >&5
8053fi
8054rm -f conftest*
8055 done
8056 eval "ac_cv_funclib_setsockopt=\${ac_cv_funclib_setsockopt-no}"
8057 LIBS="$ac_save_LIBS"
8058fi
8059
8060fi
8061
8062
8063eval "ac_res=\$ac_cv_funclib_setsockopt"
8064
8065: << END
8066@@@funcs="$funcs setsockopt"@@@
8067@@@libs="$libs "" "@@@
8068END
8069
8070# setsockopt
8071eval "ac_tr_func=HAVE_`echo setsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
8072eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
8073eval "LIB_setsockopt=$ac_res"
8074
8075case "$ac_res" in
8076 yes)
8077 eval "ac_cv_func_setsockopt=yes"
8078 eval "LIB_setsockopt="
8079 cat >> confdefs.h <<EOF
8080#define $ac_tr_func 1
8081EOF
8082
8083 echo "$ac_t""yes" 1>&6
8084 ;;
8085 no)
8086 eval "ac_cv_func_setsockopt=no"
8087 eval "LIB_setsockopt="
8088 echo "$ac_t""no" 1>&6
8089 ;;
8090 *)
8091 eval "ac_cv_func_setsockopt=yes"
8092 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
8093 cat >> confdefs.h <<EOF
8094#define $ac_tr_func 1
8095EOF
8096
8097 cat >> confdefs.h <<EOF
8098#define $ac_tr_lib 1
8099EOF
8100
8101 echo "$ac_t""yes, in $ac_res" 1>&6
8102 ;;
8103esac
8104
8105
8106
8107for ac_func in getudbnam setlim
8108do
8109echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8110echo "configure:8111: checking for $ac_func" >&5
8111if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8112 echo $ac_n "(cached) $ac_c" 1>&6
8113else
8114 cat > conftest.$ac_ext <<EOF
8115#line 8116 "configure"
8116#include "confdefs.h"
8117/* System header to define __stub macros and hopefully few prototypes,
8118 which can conflict with char $ac_func(); below. */
8119#include <assert.h>
8120/* Override any gcc2 internal prototype to avoid an error. */
8121/* We use char because int might match the return type of a gcc2
8122 builtin and then its argument prototype would still apply. */
8123char $ac_func();
8124
8125int main() {
8126
8127/* The GNU C library defines this for functions which it implements
8128 to always fail with ENOSYS. Some functions are actually named
8129 something starting with __ and the normal name is an alias. */
8130#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8131choke me
8132#else
8133$ac_func();
8134#endif
8135
8136; return 0; }
8137EOF
8138if { (eval echo configure:8139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8139 rm -rf conftest*
8140 eval "ac_cv_func_$ac_func=yes"
8141else
8142 echo "configure: failed program was:" >&5
8143 cat conftest.$ac_ext >&5
8144 rm -rf conftest*
8145 eval "ac_cv_func_$ac_func=no"
8146fi
8147rm -f conftest*
8148fi
8149
8150if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8151 echo "$ac_t""yes" 1>&6
8152 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8153 cat >> confdefs.h <<EOF
8154#define $ac_tr_func 1
8155EOF
8156
8157else
8158 echo "$ac_t""no" 1>&6
8159fi
8160done
8161
8162
8163echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
8164echo "configure:8165: checking return type of signal handlers" >&5
8165if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
8166 echo $ac_n "(cached) $ac_c" 1>&6
8167else
8168 cat > conftest.$ac_ext <<EOF
8169#line 8170 "configure"
8170#include "confdefs.h"
8171#include <sys/types.h>
8172#include <signal.h>
8173#ifdef signal
8174#undef signal
8175#endif
8176#ifdef __cplusplus
8177extern "C" void (*signal (int, void (*)(int)))(int);
8178#else
8179void (*signal ()) ();
8180#endif
8181
8182int main() {
8183int i;
8184; return 0; }
8185EOF
8186if { (eval echo configure:8187: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8187 rm -rf conftest*
8188 ac_cv_type_signal=void
8189else
8190 echo "configure: failed program was:" >&5
8191 cat conftest.$ac_ext >&5
8192 rm -rf conftest*
8193 ac_cv_type_signal=int
8194fi
8195rm -f conftest*
8196fi
8197
8198echo "$ac_t""$ac_cv_type_signal" 1>&6
8199cat >> confdefs.h <<EOF
8200#define RETSIGTYPE $ac_cv_type_signal
8201EOF
8202
8203
8204if test "$ac_cv_type_signal" = "void" ; then
8205 cat >> confdefs.h <<\EOF
8206#define VOID_RETSIGTYPE 1
8207EOF
8208
8209fi
8210
8211
8212
8213
8214
8215
8216echo $ac_n "checking for hstrerror""... $ac_c" 1>&6
8217echo "configure:8218: checking for hstrerror" >&5
8218if eval "test \"`echo '$''{'ac_cv_funclib_hstrerror'+set}'`\" = set"; then
8219 echo $ac_n "(cached) $ac_c" 1>&6
8220else
8221
8222if eval "test \"\$ac_cv_func_hstrerror\" != yes" ; then
8223 ac_save_LIBS="$LIBS"
8224 for ac_lib in "" resolv; do
8225 if test -n "$ac_lib"; then
8226 ac_lib="-l$ac_lib"
8227 else
8228 ac_lib=""
8229 fi
8230 LIBS=" $ac_lib $ac_save_LIBS"
8231 cat > conftest.$ac_ext <<EOF
8232#line 8233 "configure"
8233#include "confdefs.h"
8234#ifdef HAVE_NETDB_H
8235#include <netdb.h>
8236#endif
8237int main() {
8238hstrerror(17)
8239; return 0; }
8240EOF
8241if { (eval echo configure:8242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8242 rm -rf conftest*
8243 eval "if test -n \"$ac_lib\";then ac_cv_funclib_hstrerror=$ac_lib; else ac_cv_funclib_hstrerror=yes; fi";break
8244else
8245 echo "configure: failed program was:" >&5
8246 cat conftest.$ac_ext >&5
8247fi
8248rm -f conftest*
8249 done
8250 eval "ac_cv_funclib_hstrerror=\${ac_cv_funclib_hstrerror-no}"
8251 LIBS="$ac_save_LIBS"
8252fi
8253
8254fi
8255
8256
8257eval "ac_res=\$ac_cv_funclib_hstrerror"
8258
8259: << END
8260@@@funcs="$funcs hstrerror"@@@
8261@@@libs="$libs "" resolv"@@@
8262END
8263
8264# hstrerror
8265eval "ac_tr_func=HAVE_`echo hstrerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
8266eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
8267eval "LIB_hstrerror=$ac_res"
8268
8269case "$ac_res" in
8270 yes)
8271 eval "ac_cv_func_hstrerror=yes"
8272 eval "LIB_hstrerror="
8273 cat >> confdefs.h <<EOF
8274#define $ac_tr_func 1
8275EOF
8276
8277 echo "$ac_t""yes" 1>&6
8278 ;;
8279 no)
8280 eval "ac_cv_func_hstrerror=no"
8281 eval "LIB_hstrerror="
8282 echo "$ac_t""no" 1>&6
8283 ;;
8284 *)
8285 eval "ac_cv_func_hstrerror=yes"
8286 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
8287 cat >> confdefs.h <<EOF
8288#define $ac_tr_func 1
8289EOF
8290
8291 cat >> confdefs.h <<EOF
8292#define $ac_tr_lib 1
8293EOF
8294
8295 echo "$ac_t""yes, in $ac_res" 1>&6
8296 ;;
8297esac
8298
8299
8300if test -n "$LIB_hstrerror"; then
8301 LIBS="$LIB_hstrerror $LIBS"
8302fi
8303
8304if eval "test \"$ac_cv_func_hstrerror\" != yes"; then
8305LIBOBJS="$LIBOBJS hstrerror.o"
8306fi
8307
8308if test "$ac_cv_func_hstrerror" = yes; then
8309
8310if test "$ac_cv_func_hstrerror+set" != set -o "$ac_cv_func_hstrerror" = yes; then
8311echo $ac_n "checking if hstrerror needs a prototype""... $ac_c" 1>&6
8312echo "configure:8313: checking if hstrerror needs a prototype" >&5
8313if eval "test \"`echo '$''{'ac_cv_func_hstrerror_noproto'+set}'`\" = set"; then
8314 echo $ac_n "(cached) $ac_c" 1>&6
8315else
8316 cat > conftest.$ac_ext <<EOF
8317#line 8318 "configure"
8318#include "confdefs.h"
8319
8320#ifdef HAVE_NETDB_H
8321#include <netdb.h>
8322#endif
8323int main() {
8324struct foo { int foo; } xx;
8325extern int hstrerror (struct foo*);
8326hstrerror(&xx);
8327
8328; return 0; }
8329EOF
8330if { (eval echo configure:8331: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8331 rm -rf conftest*
8332 eval "ac_cv_func_hstrerror_noproto=yes"
8333else
8334 echo "configure: failed program was:" >&5
8335 cat conftest.$ac_ext >&5
8336 rm -rf conftest*
8337 eval "ac_cv_func_hstrerror_noproto=no"
8338fi
8339rm -f conftest*
8340fi
8341
8342echo "$ac_t""$ac_cv_func_hstrerror_noproto" 1>&6
8343
8344if test "$ac_cv_func_hstrerror_noproto" = yes; then
8345 cat >> confdefs.h <<\EOF
8346#define NEED_HSTRERROR_PROTO 1
8347EOF
8348
8349fi
8350
8351fi
8352
8353fi
8354
8355if test "$ac_cv_func_asprintf" = yes; then
8356
8357if test "$ac_cv_func_asprintf+set" != set -o "$ac_cv_func_asprintf" = yes; then
8358echo $ac_n "checking if asprintf needs a prototype""... $ac_c" 1>&6
8359echo "configure:8360: checking if asprintf needs a prototype" >&5
8360if eval "test \"`echo '$''{'ac_cv_func_asprintf_noproto'+set}'`\" = set"; then
8361 echo $ac_n "(cached) $ac_c" 1>&6
8362else
8363 cat > conftest.$ac_ext <<EOF
8364#line 8365 "configure"
8365#include "confdefs.h"
8366
8367#include <stdio.h>
8368#include <string.h>
8369int main() {
8370struct foo { int foo; } xx;
8371extern int asprintf (struct foo*);
8372asprintf(&xx);
8373
8374; return 0; }
8375EOF
8376if { (eval echo configure:8377: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8377 rm -rf conftest*
8378 eval "ac_cv_func_asprintf_noproto=yes"
8379else
8380 echo "configure: failed program was:" >&5
8381 cat conftest.$ac_ext >&5
8382 rm -rf conftest*
8383 eval "ac_cv_func_asprintf_noproto=no"
8384fi
8385rm -f conftest*
8386fi
8387
8388echo "$ac_t""$ac_cv_func_asprintf_noproto" 1>&6
8389
8390if test "$ac_cv_func_asprintf_noproto" = yes; then
8391 cat >> confdefs.h <<\EOF
8392#define NEED_ASPRINTF_PROTO 1
8393EOF
8394
8395fi
8396
8397fi
8398fi
8399if test "$ac_cv_func_vasprintf" = yes; then
8400
8401if test "$ac_cv_func_vasprintf+set" != set -o "$ac_cv_func_vasprintf" = yes; then
8402echo $ac_n "checking if vasprintf needs a prototype""... $ac_c" 1>&6
8403echo "configure:8404: checking if vasprintf needs a prototype" >&5
8404if eval "test \"`echo '$''{'ac_cv_func_vasprintf_noproto'+set}'`\" = set"; then
8405 echo $ac_n "(cached) $ac_c" 1>&6
8406else
8407 cat > conftest.$ac_ext <<EOF
8408#line 8409 "configure"
8409#include "confdefs.h"
8410
8411#include <stdio.h>
8412#include <string.h>
8413int main() {
8414struct foo { int foo; } xx;
8415extern int vasprintf (struct foo*);
8416vasprintf(&xx);
8417
8418; return 0; }
8419EOF
8420if { (eval echo configure:8421: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8421 rm -rf conftest*
8422 eval "ac_cv_func_vasprintf_noproto=yes"
8423else
8424 echo "configure: failed program was:" >&5
8425 cat conftest.$ac_ext >&5
8426 rm -rf conftest*
8427 eval "ac_cv_func_vasprintf_noproto=no"
8428fi
8429rm -f conftest*
8430fi
8431
8432echo "$ac_t""$ac_cv_func_vasprintf_noproto" 1>&6
8433
8434if test "$ac_cv_func_vasprintf_noproto" = yes; then
8435 cat >> confdefs.h <<\EOF
8436#define NEED_VASPRINTF_PROTO 1
8437EOF
8438
8439fi
8440
8441fi
8442fi
8443if test "$ac_cv_func_asnprintf" = yes; then
8444
8445if test "$ac_cv_func_asnprintf+set" != set -o "$ac_cv_func_asnprintf" = yes; then
8446echo $ac_n "checking if asnprintf needs a prototype""... $ac_c" 1>&6
8447echo "configure:8448: checking if asnprintf needs a prototype" >&5
8448if eval "test \"`echo '$''{'ac_cv_func_asnprintf_noproto'+set}'`\" = set"; then
8449 echo $ac_n "(cached) $ac_c" 1>&6
8450else
8451 cat > conftest.$ac_ext <<EOF
8452#line 8453 "configure"
8453#include "confdefs.h"
8454
8455#include <stdio.h>
8456#include <string.h>
8457int main() {
8458struct foo { int foo; } xx;
8459extern int asnprintf (struct foo*);
8460asnprintf(&xx);
8461
8462; return 0; }
8463EOF
8464if { (eval echo configure:8465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8465 rm -rf conftest*
8466 eval "ac_cv_func_asnprintf_noproto=yes"
8467else
8468 echo "configure: failed program was:" >&5
8469 cat conftest.$ac_ext >&5
8470 rm -rf conftest*
8471 eval "ac_cv_func_asnprintf_noproto=no"
8472fi
8473rm -f conftest*
8474fi
8475
8476echo "$ac_t""$ac_cv_func_asnprintf_noproto" 1>&6
8477
8478if test "$ac_cv_func_asnprintf_noproto" = yes; then
8479 cat >> confdefs.h <<\EOF
8480#define NEED_ASNPRINTF_PROTO 1
8481EOF
8482
8483fi
8484
8485fi
8486fi
8487if test "$ac_cv_func_vasnprintf" = yes; then
8488
8489if test "$ac_cv_func_vasnprintf+set" != set -o "$ac_cv_func_vasnprintf" = yes; then
8490echo $ac_n "checking if vasnprintf needs a prototype""... $ac_c" 1>&6
8491echo "configure:8492: checking if vasnprintf needs a prototype" >&5
8492if eval "test \"`echo '$''{'ac_cv_func_vasnprintf_noproto'+set}'`\" = set"; then
8493 echo $ac_n "(cached) $ac_c" 1>&6
8494else
8495 cat > conftest.$ac_ext <<EOF
8496#line 8497 "configure"
8497#include "confdefs.h"
8498
8499#include <stdio.h>
8500#include <string.h>
8501int main() {
8502struct foo { int foo; } xx;
8503extern int vasnprintf (struct foo*);
8504vasnprintf(&xx);
8505
8506; return 0; }
8507EOF
8508if { (eval echo configure:8509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8509 rm -rf conftest*
8510 eval "ac_cv_func_vasnprintf_noproto=yes"
8511else
8512 echo "configure: failed program was:" >&5
8513 cat conftest.$ac_ext >&5
8514 rm -rf conftest*
8515 eval "ac_cv_func_vasnprintf_noproto=no"
8516fi
8517rm -f conftest*
8518fi
8519
8520echo "$ac_t""$ac_cv_func_vasnprintf_noproto" 1>&6
8521
8522if test "$ac_cv_func_vasnprintf_noproto" = yes; then
8523 cat >> confdefs.h <<\EOF
8524#define NEED_VASNPRINTF_PROTO 1
8525EOF
8526
8527fi
8528
8529fi
8530fi
8531
8532for ac_func in chown copyhostent daemon err errx fchown flock fnmatch
8533do
8534echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8535echo "configure:8536: checking for $ac_func" >&5
8536if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8537 echo $ac_n "(cached) $ac_c" 1>&6
8538else
8539 cat > conftest.$ac_ext <<EOF
8540#line 8541 "configure"
8541#include "confdefs.h"
8542/* System header to define __stub macros and hopefully few prototypes,
8543 which can conflict with char $ac_func(); below. */
8544#include <assert.h>
8545/* Override any gcc2 internal prototype to avoid an error. */
8546/* We use char because int might match the return type of a gcc2
8547 builtin and then its argument prototype would still apply. */
8548char $ac_func();
8549
8550int main() {
8551
8552/* The GNU C library defines this for functions which it implements
8553 to always fail with ENOSYS. Some functions are actually named
8554 something starting with __ and the normal name is an alias. */
8555#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8556choke me
8557#else
8558$ac_func();
8559#endif
8560
8561; return 0; }
8562EOF
8563if { (eval echo configure:8564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8564 rm -rf conftest*
8565 eval "ac_cv_func_$ac_func=yes"
8566else
8567 echo "configure: failed program was:" >&5
8568 cat conftest.$ac_ext >&5
8569 rm -rf conftest*
8570 eval "ac_cv_func_$ac_func=no"
8571fi
8572rm -f conftest*
8573fi
8574
8575if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8576 echo "$ac_t""yes" 1>&6
8577
8578ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
8579cat >> confdefs.h <<EOF
8580#define $ac_tr_func 1
8581EOF
8582
8583else
8584 echo "$ac_t""no" 1>&6
8585LIBOBJS="$LIBOBJS ${ac_func}.o"
8586fi
8587
8588: << END
8589@@@funcs="$funcs chown copyhostent daemon err errx fchown flock fnmatch"@@@
8590END
8591done
8592
8593for ac_func in freeaddrinfo freehostent gai_strerror getaddrinfo
8594do
8595echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8596echo "configure:8597: checking for $ac_func" >&5
8597if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8598 echo $ac_n "(cached) $ac_c" 1>&6
8599else
8600 cat > conftest.$ac_ext <<EOF
8601#line 8602 "configure"
8602#include "confdefs.h"
8603/* System header to define __stub macros and hopefully few prototypes,
8604 which can conflict with char $ac_func(); below. */
8605#include <assert.h>
8606/* Override any gcc2 internal prototype to avoid an error. */
8607/* We use char because int might match the return type of a gcc2
8608 builtin and then its argument prototype would still apply. */
8609char $ac_func();
8610
8611int main() {
8612
8613/* The GNU C library defines this for functions which it implements
8614 to always fail with ENOSYS. Some functions are actually named
8615 something starting with __ and the normal name is an alias. */
8616#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8617choke me
8618#else
8619$ac_func();
8620#endif
8621
8622; return 0; }
8623EOF
8624if { (eval echo configure:8625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8625 rm -rf conftest*
8626 eval "ac_cv_func_$ac_func=yes"
8627else
8628 echo "configure: failed program was:" >&5
8629 cat conftest.$ac_ext >&5
8630 rm -rf conftest*
8631 eval "ac_cv_func_$ac_func=no"
8632fi
8633rm -f conftest*
8634fi
8635
8636if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8637 echo "$ac_t""yes" 1>&6
8638
8639ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
8640cat >> confdefs.h <<EOF
8641#define $ac_tr_func 1
8642EOF
8643
8644else
8645 echo "$ac_t""no" 1>&6
8646LIBOBJS="$LIBOBJS ${ac_func}.o"
8647fi
8648
8649: << END
8650@@@funcs="$funcs freeaddrinfo freehostent gai_strerror getaddrinfo"@@@
8651END
8652done
8653
8654for ac_func in getcwd getdtablesize gethostname getipnodebyaddr getipnodebyname
8655do
8656echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8657echo "configure:8658: checking for $ac_func" >&5
8658if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8659 echo $ac_n "(cached) $ac_c" 1>&6
8660else
8661 cat > conftest.$ac_ext <<EOF
8662#line 8663 "configure"
8663#include "confdefs.h"
8664/* System header to define __stub macros and hopefully few prototypes,
8665 which can conflict with char $ac_func(); below. */
8666#include <assert.h>
8667/* Override any gcc2 internal prototype to avoid an error. */
8668/* We use char because int might match the return type of a gcc2
8669 builtin and then its argument prototype would still apply. */
8670char $ac_func();
8671
8672int main() {
8673
8674/* The GNU C library defines this for functions which it implements
8675 to always fail with ENOSYS. Some functions are actually named
8676 something starting with __ and the normal name is an alias. */
8677#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8678choke me
8679#else
8680$ac_func();
8681#endif
8682
8683; return 0; }
8684EOF
8685if { (eval echo configure:8686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8686 rm -rf conftest*
8687 eval "ac_cv_func_$ac_func=yes"
8688else
8689 echo "configure: failed program was:" >&5
8690 cat conftest.$ac_ext >&5
8691 rm -rf conftest*
8692 eval "ac_cv_func_$ac_func=no"
8693fi
8694rm -f conftest*
8695fi
8696
8697if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8698 echo "$ac_t""yes" 1>&6
8699
8700ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
8701cat >> confdefs.h <<EOF
8702#define $ac_tr_func 1
8703EOF
8704
8705else
8706 echo "$ac_t""no" 1>&6
8707LIBOBJS="$LIBOBJS ${ac_func}.o"
8708fi
8709
8710: << END
8711@@@funcs="$funcs getcwd getdtablesize gethostname getipnodebyaddr getipnodebyname"@@@
8712END
8713done
8714
8715for ac_func in geteuid getgid getegid
8716do
8717echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8718echo "configure:8719: checking for $ac_func" >&5
8719if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8720 echo $ac_n "(cached) $ac_c" 1>&6
8721else
8722 cat > conftest.$ac_ext <<EOF
8723#line 8724 "configure"
8724#include "confdefs.h"
8725/* System header to define __stub macros and hopefully few prototypes,
8726 which can conflict with char $ac_func(); below. */
8727#include <assert.h>
8728/* Override any gcc2 internal prototype to avoid an error. */
8729/* We use char because int might match the return type of a gcc2
8730 builtin and then its argument prototype would still apply. */
8731char $ac_func();
8732
8733int main() {
8734
8735/* The GNU C library defines this for functions which it implements
8736 to always fail with ENOSYS. Some functions are actually named
8737 something starting with __ and the normal name is an alias. */
8738#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8739choke me
8740#else
8741$ac_func();
8742#endif
8743
8744; return 0; }
8745EOF
8746if { (eval echo configure:8747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8747 rm -rf conftest*
8748 eval "ac_cv_func_$ac_func=yes"
8749else
8750 echo "configure: failed program was:" >&5
8751 cat conftest.$ac_ext >&5
8752 rm -rf conftest*
8753 eval "ac_cv_func_$ac_func=no"
8754fi
8755rm -f conftest*
8756fi
8757
8758if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8759 echo "$ac_t""yes" 1>&6
8760
8761ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
8762cat >> confdefs.h <<EOF
8763#define $ac_tr_func 1
8764EOF
8765
8766else
8767 echo "$ac_t""no" 1>&6
8768LIBOBJS="$LIBOBJS ${ac_func}.o"
8769fi
8770
8771: << END
8772@@@funcs="$funcs geteuid getgid getegid"@@@
8773END
8774done
8775
8776for ac_func in getnameinfo getopt getusershell
8777do
8778echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8779echo "configure:8780: checking for $ac_func" >&5
8780if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8781 echo $ac_n "(cached) $ac_c" 1>&6
8782else
8783 cat > conftest.$ac_ext <<EOF
8784#line 8785 "configure"
8785#include "confdefs.h"
8786/* System header to define __stub macros and hopefully few prototypes,
8787 which can conflict with char $ac_func(); below. */
8788#include <assert.h>
8789/* Override any gcc2 internal prototype to avoid an error. */
8790/* We use char because int might match the return type of a gcc2
8791 builtin and then its argument prototype would still apply. */
8792char $ac_func();
8793
8794int main() {
8795
8796/* The GNU C library defines this for functions which it implements
8797 to always fail with ENOSYS. Some functions are actually named
8798 something starting with __ and the normal name is an alias. */
8799#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8800choke me
8801#else
8802$ac_func();
8803#endif
8804
8805; return 0; }
8806EOF
8807if { (eval echo configure:8808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8808 rm -rf conftest*
8809 eval "ac_cv_func_$ac_func=yes"
8810else
8811 echo "configure: failed program was:" >&5
8812 cat conftest.$ac_ext >&5
8813 rm -rf conftest*
8814 eval "ac_cv_func_$ac_func=no"
8815fi
8816rm -f conftest*
8817fi
8818
8819if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8820 echo "$ac_t""yes" 1>&6
8821
8822ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
8823cat >> confdefs.h <<EOF
8824#define $ac_tr_func 1
8825EOF
8826
8827else
8828 echo "$ac_t""no" 1>&6
8829LIBOBJS="$LIBOBJS ${ac_func}.o"
8830fi
8831
8832: << END
8833@@@funcs="$funcs getnameinfo getopt getusershell"@@@
8834END
8835done
8836
8837for ac_func in inet_aton inet_ntop inet_pton initgroups innetgr iruserok lstat
8838do
8839echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8840echo "configure:8841: checking for $ac_func" >&5
8841if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8842 echo $ac_n "(cached) $ac_c" 1>&6
8843else
8844 cat > conftest.$ac_ext <<EOF
8845#line 8846 "configure"
8846#include "confdefs.h"
8847/* System header to define __stub macros and hopefully few prototypes,
8848 which can conflict with char $ac_func(); below. */
8849#include <assert.h>
8850/* Override any gcc2 internal prototype to avoid an error. */
8851/* We use char because int might match the return type of a gcc2
8852 builtin and then its argument prototype would still apply. */
8853char $ac_func();
8854
8855int main() {
8856
8857/* The GNU C library defines this for functions which it implements
8858 to always fail with ENOSYS. Some functions are actually named
8859 something starting with __ and the normal name is an alias. */
8860#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8861choke me
8862#else
8863$ac_func();
8864#endif
8865
8866; return 0; }
8867EOF
8868if { (eval echo configure:8869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8869 rm -rf conftest*
8870 eval "ac_cv_func_$ac_func=yes"
8871else
8872 echo "configure: failed program was:" >&5
8873 cat conftest.$ac_ext >&5
8874 rm -rf conftest*
8875 eval "ac_cv_func_$ac_func=no"
8876fi
8877rm -f conftest*
8878fi
8879
8880if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8881 echo "$ac_t""yes" 1>&6
8882
8883ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
8884cat >> confdefs.h <<EOF
8885#define $ac_tr_func 1
8886EOF
8887
8888else
8889 echo "$ac_t""no" 1>&6
8890LIBOBJS="$LIBOBJS ${ac_func}.o"
8891fi
8892
8893: << END
8894@@@funcs="$funcs inet_aton inet_ntop inet_pton initgroups innetgr iruserok lstat"@@@
8895END
8896done
8897
8898for ac_func in memmove
8899do
8900echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8901echo "configure:8902: checking for $ac_func" >&5
8902if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8903 echo $ac_n "(cached) $ac_c" 1>&6
8904else
8905 cat > conftest.$ac_ext <<EOF
8906#line 8907 "configure"
8907#include "confdefs.h"
8908/* System header to define __stub macros and hopefully few prototypes,
8909 which can conflict with char $ac_func(); below. */
8910#include <assert.h>
8911/* Override any gcc2 internal prototype to avoid an error. */
8912/* We use char because int might match the return type of a gcc2
8913 builtin and then its argument prototype would still apply. */
8914char $ac_func();
8915
8916int main() {
8917
8918/* The GNU C library defines this for functions which it implements
8919 to always fail with ENOSYS. Some functions are actually named
8920 something starting with __ and the normal name is an alias. */
8921#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8922choke me
8923#else
8924$ac_func();
8925#endif
8926
8927; return 0; }
8928EOF
8929if { (eval echo configure:8930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8930 rm -rf conftest*
8931 eval "ac_cv_func_$ac_func=yes"
8932else
8933 echo "configure: failed program was:" >&5
8934 cat conftest.$ac_ext >&5
8935 rm -rf conftest*
8936 eval "ac_cv_func_$ac_func=no"
8937fi
8938rm -f conftest*
8939fi
8940
8941if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8942 echo "$ac_t""yes" 1>&6
8943
8944ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
8945cat >> confdefs.h <<EOF
8946#define $ac_tr_func 1
8947EOF
8948
8949else
8950 echo "$ac_t""no" 1>&6
8951LIBOBJS="$LIBOBJS ${ac_func}.o"
8952fi
8953
8954: << END
8955@@@funcs="$funcs memmove"@@@
8956END
8957done
8958
8959for ac_func in mkstemp putenv rcmd readv recvmsg sendmsg setegid setenv seteuid
8960do
8961echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8962echo "configure:8963: checking for $ac_func" >&5
8963if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8964 echo $ac_n "(cached) $ac_c" 1>&6
8965else
8966 cat > conftest.$ac_ext <<EOF
8967#line 8968 "configure"
8968#include "confdefs.h"
8969/* System header to define __stub macros and hopefully few prototypes,
8970 which can conflict with char $ac_func(); below. */
8971#include <assert.h>
8972/* Override any gcc2 internal prototype to avoid an error. */
8973/* We use char because int might match the return type of a gcc2
8974 builtin and then its argument prototype would still apply. */
8975char $ac_func();
8976
8977int main() {
8978
8979/* The GNU C library defines this for functions which it implements
8980 to always fail with ENOSYS. Some functions are actually named
8981 something starting with __ and the normal name is an alias. */
8982#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8983choke me
8984#else
8985$ac_func();
8986#endif
8987
8988; return 0; }
8989EOF
8990if { (eval echo configure:8991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8991 rm -rf conftest*
8992 eval "ac_cv_func_$ac_func=yes"
8993else
8994 echo "configure: failed program was:" >&5
8995 cat conftest.$ac_ext >&5
8996 rm -rf conftest*
8997 eval "ac_cv_func_$ac_func=no"
8998fi
8999rm -f conftest*
9000fi
9001
9002if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9003 echo "$ac_t""yes" 1>&6
9004
9005ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
9006cat >> confdefs.h <<EOF
9007#define $ac_tr_func 1
9008EOF
9009
9010else
9011 echo "$ac_t""no" 1>&6
9012LIBOBJS="$LIBOBJS ${ac_func}.o"
9013fi
9014
9015: << END
9016@@@funcs="$funcs mkstemp putenv rcmd readv recvmsg sendmsg setegid setenv seteuid"@@@
9017END
9018done
9019
9020for ac_func in strcasecmp strncasecmp strdup strerror strftime
9021do
9022echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9023echo "configure:9024: checking for $ac_func" >&5
9024if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9025 echo $ac_n "(cached) $ac_c" 1>&6
9026else
9027 cat > conftest.$ac_ext <<EOF
9028#line 9029 "configure"
9029#include "confdefs.h"
9030/* System header to define __stub macros and hopefully few prototypes,
9031 which can conflict with char $ac_func(); below. */
9032#include <assert.h>
9033/* Override any gcc2 internal prototype to avoid an error. */
9034/* We use char because int might match the return type of a gcc2
9035 builtin and then its argument prototype would still apply. */
9036char $ac_func();
9037
9038int main() {
9039
9040/* The GNU C library defines this for functions which it implements
9041 to always fail with ENOSYS. Some functions are actually named
9042 something starting with __ and the normal name is an alias. */
9043#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9044choke me
9045#else
9046$ac_func();
9047#endif
9048
9049; return 0; }
9050EOF
9051if { (eval echo configure:9052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9052 rm -rf conftest*
9053 eval "ac_cv_func_$ac_func=yes"
9054else
9055 echo "configure: failed program was:" >&5
9056 cat conftest.$ac_ext >&5
9057 rm -rf conftest*
9058 eval "ac_cv_func_$ac_func=no"
9059fi
9060rm -f conftest*
9061fi
9062
9063if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9064 echo "$ac_t""yes" 1>&6
9065
9066ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
9067cat >> confdefs.h <<EOF
9068#define $ac_tr_func 1
9069EOF
9070
9071else
9072 echo "$ac_t""no" 1>&6
9073LIBOBJS="$LIBOBJS ${ac_func}.o"
9074fi
9075
9076: << END
9077@@@funcs="$funcs strcasecmp strncasecmp strdup strerror strftime"@@@
9078END
9079done
9080
9081for ac_func in strlcat strlcpy strlwr
9082do
9083echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9084echo "configure:9085: checking for $ac_func" >&5
9085if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9086 echo $ac_n "(cached) $ac_c" 1>&6
9087else
9088 cat > conftest.$ac_ext <<EOF
9089#line 9090 "configure"
9090#include "confdefs.h"
9091/* System header to define __stub macros and hopefully few prototypes,
9092 which can conflict with char $ac_func(); below. */
9093#include <assert.h>
9094/* Override any gcc2 internal prototype to avoid an error. */
9095/* We use char because int might match the return type of a gcc2
9096 builtin and then its argument prototype would still apply. */
9097char $ac_func();
9098
9099int main() {
9100
9101/* The GNU C library defines this for functions which it implements
9102 to always fail with ENOSYS. Some functions are actually named
9103 something starting with __ and the normal name is an alias. */
9104#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9105choke me
9106#else
9107$ac_func();
9108#endif
9109
9110; return 0; }
9111EOF
9112if { (eval echo configure:9113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9113 rm -rf conftest*
9114 eval "ac_cv_func_$ac_func=yes"
9115else
9116 echo "configure: failed program was:" >&5
9117 cat conftest.$ac_ext >&5
9118 rm -rf conftest*
9119 eval "ac_cv_func_$ac_func=no"
9120fi
9121rm -f conftest*
9122fi
9123
9124if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9125 echo "$ac_t""yes" 1>&6
9126
9127ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
9128cat >> confdefs.h <<EOF
9129#define $ac_tr_func 1
9130EOF
9131
9132else
9133 echo "$ac_t""no" 1>&6
9134LIBOBJS="$LIBOBJS ${ac_func}.o"
9135fi
9136
9137: << END
9138@@@funcs="$funcs strlcat strlcpy strlwr"@@@
9139END
9140done
9141
9142for ac_func in strndup strnlen strptime strsep strtok_r strupr
9143do
9144echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9145echo "configure:9146: checking for $ac_func" >&5
9146if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9147 echo $ac_n "(cached) $ac_c" 1>&6
9148else
9149 cat > conftest.$ac_ext <<EOF
9150#line 9151 "configure"
9151#include "confdefs.h"
9152/* System header to define __stub macros and hopefully few prototypes,
9153 which can conflict with char $ac_func(); below. */
9154#include <assert.h>
9155/* Override any gcc2 internal prototype to avoid an error. */
9156/* We use char because int might match the return type of a gcc2
9157 builtin and then its argument prototype would still apply. */
9158char $ac_func();
9159
9160int main() {
9161
9162/* The GNU C library defines this for functions which it implements
9163 to always fail with ENOSYS. Some functions are actually named
9164 something starting with __ and the normal name is an alias. */
9165#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9166choke me
9167#else
9168$ac_func();
9169#endif
9170
9171; return 0; }
9172EOF
9173if { (eval echo configure:9174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9174 rm -rf conftest*
9175 eval "ac_cv_func_$ac_func=yes"
9176else
9177 echo "configure: failed program was:" >&5
9178 cat conftest.$ac_ext >&5
9179 rm -rf conftest*
9180 eval "ac_cv_func_$ac_func=no"
9181fi
9182rm -f conftest*
9183fi
9184
9185if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9186 echo "$ac_t""yes" 1>&6
9187
9188ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
9189cat >> confdefs.h <<EOF
9190#define $ac_tr_func 1
9191EOF
9192
9193else
9194 echo "$ac_t""no" 1>&6
9195LIBOBJS="$LIBOBJS ${ac_func}.o"
9196fi
9197
9198: << END
9199@@@funcs="$funcs strndup strnlen strptime strsep strtok_r strupr"@@@
9200END
9201done
9202
9203for ac_func in swab unsetenv verr verrx vsyslog
9204do
9205echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9206echo "configure:9207: checking for $ac_func" >&5
9207if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9208 echo $ac_n "(cached) $ac_c" 1>&6
9209else
9210 cat > conftest.$ac_ext <<EOF
9211#line 9212 "configure"
9212#include "confdefs.h"
9213/* System header to define __stub macros and hopefully few prototypes,
9214 which can conflict with char $ac_func(); below. */
9215#include <assert.h>
9216/* Override any gcc2 internal prototype to avoid an error. */
9217/* We use char because int might match the return type of a gcc2
9218 builtin and then its argument prototype would still apply. */
9219char $ac_func();
9220
9221int main() {
9222
9223/* The GNU C library defines this for functions which it implements
9224 to always fail with ENOSYS. Some functions are actually named
9225 something starting with __ and the normal name is an alias. */
9226#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9227choke me
9228#else
9229$ac_func();
9230#endif
9231
9232; return 0; }
9233EOF
9234if { (eval echo configure:9235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9235 rm -rf conftest*
9236 eval "ac_cv_func_$ac_func=yes"
9237else
9238 echo "configure: failed program was:" >&5
9239 cat conftest.$ac_ext >&5
9240 rm -rf conftest*
9241 eval "ac_cv_func_$ac_func=no"
9242fi
9243rm -f conftest*
9244fi
9245
9246if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9247 echo "$ac_t""yes" 1>&6
9248
9249ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
9250cat >> confdefs.h <<EOF
9251#define $ac_tr_func 1
9252EOF
9253
9254else
9255 echo "$ac_t""no" 1>&6
9256LIBOBJS="$LIBOBJS ${ac_func}.o"
9257fi
9258
9259: << END
9260@@@funcs="$funcs swab unsetenv verr verrx vsyslog"@@@
9261END
9262done
9263
9264for ac_func in vwarn vwarnx warn warnx writev
9265do
9266echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9267echo "configure:9268: checking for $ac_func" >&5
9268if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9269 echo $ac_n "(cached) $ac_c" 1>&6
9270else
9271 cat > conftest.$ac_ext <<EOF
9272#line 9273 "configure"
9273#include "confdefs.h"
9274/* System header to define __stub macros and hopefully few prototypes,
9275 which can conflict with char $ac_func(); below. */
9276#include <assert.h>
9277/* Override any gcc2 internal prototype to avoid an error. */
9278/* We use char because int might match the return type of a gcc2
9279 builtin and then its argument prototype would still apply. */
9280char $ac_func();
9281
9282int main() {
9283
9284/* The GNU C library defines this for functions which it implements
9285 to always fail with ENOSYS. Some functions are actually named
9286 something starting with __ and the normal name is an alias. */
9287#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9288choke me
9289#else
9290$ac_func();
9291#endif
9292
9293; return 0; }
9294EOF
9295if { (eval echo configure:9296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9296 rm -rf conftest*
9297 eval "ac_cv_func_$ac_func=yes"
9298else
9299 echo "configure: failed program was:" >&5
9300 cat conftest.$ac_ext >&5
9301 rm -rf conftest*
9302 eval "ac_cv_func_$ac_func=no"
9303fi
9304rm -f conftest*
9305fi
9306
9307if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9308 echo "$ac_t""yes" 1>&6
9309
9310ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
9311cat >> confdefs.h <<EOF
9312#define $ac_tr_func 1
9313EOF
9314
9315else
9316 echo "$ac_t""no" 1>&6
9317LIBOBJS="$LIBOBJS ${ac_func}.o"
9318fi
9319
9320: << END
9321@@@funcs="$funcs vwarn vwarnx warn warnx writev"@@@
9322END
9323done
9324
9325
9326
9327if test "$ac_cv_func_setenv+set" != set -o "$ac_cv_func_setenv" = yes; then
9328echo $ac_n "checking if setenv needs a prototype""... $ac_c" 1>&6
9329echo "configure:9330: checking if setenv needs a prototype" >&5
9330if eval "test \"`echo '$''{'ac_cv_func_setenv_noproto'+set}'`\" = set"; then
9331 echo $ac_n "(cached) $ac_c" 1>&6
9332else
9333 cat > conftest.$ac_ext <<EOF
9334#line 9335 "configure"
9335#include "confdefs.h"
9336#include <stdlib.h>
9337int main() {
9338struct foo { int foo; } xx;
9339extern int setenv (struct foo*);
9340setenv(&xx);
9341
9342; return 0; }
9343EOF
9344if { (eval echo configure:9345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9345 rm -rf conftest*
9346 eval "ac_cv_func_setenv_noproto=yes"
9347else
9348 echo "configure: failed program was:" >&5
9349 cat conftest.$ac_ext >&5
9350 rm -rf conftest*
9351 eval "ac_cv_func_setenv_noproto=no"
9352fi
9353rm -f conftest*
9354fi
9355
9356echo "$ac_t""$ac_cv_func_setenv_noproto" 1>&6
9357
9358if test "$ac_cv_func_setenv_noproto" = yes; then
9359 cat >> confdefs.h <<\EOF
9360#define NEED_SETENV_PROTO 1
9361EOF
9362
9363fi
9364
9365fi
9366
9367
9368if test "$ac_cv_func_unsetenv+set" != set -o "$ac_cv_func_unsetenv" = yes; then
9369echo $ac_n "checking if unsetenv needs a prototype""... $ac_c" 1>&6
9370echo "configure:9371: checking if unsetenv needs a prototype" >&5
9371if eval "test \"`echo '$''{'ac_cv_func_unsetenv_noproto'+set}'`\" = set"; then
9372 echo $ac_n "(cached) $ac_c" 1>&6
9373else
9374 cat > conftest.$ac_ext <<EOF
9375#line 9376 "configure"
9376#include "confdefs.h"
9377#include <stdlib.h>
9378int main() {
9379struct foo { int foo; } xx;
9380extern int unsetenv (struct foo*);
9381unsetenv(&xx);
9382
9383; return 0; }
9384EOF
9385if { (eval echo configure:9386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9386 rm -rf conftest*
9387 eval "ac_cv_func_unsetenv_noproto=yes"
9388else
9389 echo "configure: failed program was:" >&5
9390 cat conftest.$ac_ext >&5
9391 rm -rf conftest*
9392 eval "ac_cv_func_unsetenv_noproto=no"
9393fi
9394rm -f conftest*
9395fi
9396
9397echo "$ac_t""$ac_cv_func_unsetenv_noproto" 1>&6
9398
9399if test "$ac_cv_func_unsetenv_noproto" = yes; then
9400 cat >> confdefs.h <<\EOF
9401#define NEED_UNSETENV_PROTO 1
9402EOF
9403
9404fi
9405
9406fi
9407
9408
9409if test "$ac_cv_func_gethostname+set" != set -o "$ac_cv_func_gethostname" = yes; then
9410echo $ac_n "checking if gethostname needs a prototype""... $ac_c" 1>&6
9411echo "configure:9412: checking if gethostname needs a prototype" >&5
9412if eval "test \"`echo '$''{'ac_cv_func_gethostname_noproto'+set}'`\" = set"; then
9413 echo $ac_n "(cached) $ac_c" 1>&6
9414else
9415 cat > conftest.$ac_ext <<EOF
9416#line 9417 "configure"
9417#include "confdefs.h"
9418#include <unistd.h>
9419int main() {
9420struct foo { int foo; } xx;
9421extern int gethostname (struct foo*);
9422gethostname(&xx);
9423
9424; return 0; }
9425EOF
9426if { (eval echo configure:9427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9427 rm -rf conftest*
9428 eval "ac_cv_func_gethostname_noproto=yes"
9429else
9430 echo "configure: failed program was:" >&5
9431 cat conftest.$ac_ext >&5
9432 rm -rf conftest*
9433 eval "ac_cv_func_gethostname_noproto=no"
9434fi
9435rm -f conftest*
9436fi
9437
9438echo "$ac_t""$ac_cv_func_gethostname_noproto" 1>&6
9439
9440if test "$ac_cv_func_gethostname_noproto" = yes; then
9441 cat >> confdefs.h <<\EOF
9442#define NEED_GETHOSTNAME_PROTO 1
9443EOF
9444
9445fi
9446
9447fi
9448
9449
9450if test "$ac_cv_func_mkstemp+set" != set -o "$ac_cv_func_mkstemp" = yes; then
9451echo $ac_n "checking if mkstemp needs a prototype""... $ac_c" 1>&6
9452echo "configure:9453: checking if mkstemp needs a prototype" >&5
9453if eval "test \"`echo '$''{'ac_cv_func_mkstemp_noproto'+set}'`\" = set"; then
9454 echo $ac_n "(cached) $ac_c" 1>&6
9455else
9456 cat > conftest.$ac_ext <<EOF
9457#line 9458 "configure"
9458#include "confdefs.h"
9459#include <unistd.h>
9460int main() {
9461struct foo { int foo; } xx;
9462extern int mkstemp (struct foo*);
9463mkstemp(&xx);
9464
9465; return 0; }
9466EOF
9467if { (eval echo configure:9468: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9468 rm -rf conftest*
9469 eval "ac_cv_func_mkstemp_noproto=yes"
9470else
9471 echo "configure: failed program was:" >&5
9472 cat conftest.$ac_ext >&5
9473 rm -rf conftest*
9474 eval "ac_cv_func_mkstemp_noproto=no"
9475fi
9476rm -f conftest*
9477fi
9478
9479echo "$ac_t""$ac_cv_func_mkstemp_noproto" 1>&6
9480
9481if test "$ac_cv_func_mkstemp_noproto" = yes; then
9482 cat >> confdefs.h <<\EOF
9483#define NEED_MKSTEMP_PROTO 1
9484EOF
9485
9486fi
9487
9488fi
9489
9490
9491if test "$ac_cv_func_getusershell+set" != set -o "$ac_cv_func_getusershell" = yes; then
9492echo $ac_n "checking if getusershell needs a prototype""... $ac_c" 1>&6
9493echo "configure:9494: checking if getusershell needs a prototype" >&5
9494if eval "test \"`echo '$''{'ac_cv_func_getusershell_noproto'+set}'`\" = set"; then
9495 echo $ac_n "(cached) $ac_c" 1>&6
9496else
9497 cat > conftest.$ac_ext <<EOF
9498#line 9499 "configure"
9499#include "confdefs.h"
9500#include <unistd.h>
9501int main() {
9502struct foo { int foo; } xx;
9503extern int getusershell (struct foo*);
9504getusershell(&xx);
9505
9506; return 0; }
9507EOF
9508if { (eval echo configure:9509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9509 rm -rf conftest*
9510 eval "ac_cv_func_getusershell_noproto=yes"
9511else
9512 echo "configure: failed program was:" >&5
9513 cat conftest.$ac_ext >&5
9514 rm -rf conftest*
9515 eval "ac_cv_func_getusershell_noproto=no"
9516fi
9517rm -f conftest*
9518fi
9519
9520echo "$ac_t""$ac_cv_func_getusershell_noproto" 1>&6
9521
9522if test "$ac_cv_func_getusershell_noproto" = yes; then
9523 cat >> confdefs.h <<\EOF
9524#define NEED_GETUSERSHELL_PROTO 1
9525EOF
9526
9527fi
9528
9529fi
9530
9531
9532
9533if test "$ac_cv_func_inet_aton+set" != set -o "$ac_cv_func_inet_aton" = yes; then
9534echo $ac_n "checking if inet_aton needs a prototype""... $ac_c" 1>&6
9535echo "configure:9536: checking if inet_aton needs a prototype" >&5
9536if eval "test \"`echo '$''{'ac_cv_func_inet_aton_noproto'+set}'`\" = set"; then
9537 echo $ac_n "(cached) $ac_c" 1>&6
9538else
9539 cat > conftest.$ac_ext <<EOF
9540#line 9541 "configure"
9541#include "confdefs.h"
9542
9543#ifdef HAVE_SYS_TYPES_H
9544#include <sys/types.h>
9545#endif
9546#ifdef HAVE_SYS_SOCKET_H
9547#include <sys/socket.h>
9548#endif
9549#ifdef HAVE_NETINET_IN_H
9550#include <netinet/in.h>
9551#endif
9552#ifdef HAVE_ARPA_INET_H
9553#include <arpa/inet.h>
9554#endif
9555int main() {
9556struct foo { int foo; } xx;
9557extern int inet_aton (struct foo*);
9558inet_aton(&xx);
9559
9560; return 0; }
9561EOF
9562if { (eval echo configure:9563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9563 rm -rf conftest*
9564 eval "ac_cv_func_inet_aton_noproto=yes"
9565else
9566 echo "configure: failed program was:" >&5
9567 cat conftest.$ac_ext >&5
9568 rm -rf conftest*
9569 eval "ac_cv_func_inet_aton_noproto=no"
9570fi
9571rm -f conftest*
9572fi
9573
9574echo "$ac_t""$ac_cv_func_inet_aton_noproto" 1>&6
9575
9576if test "$ac_cv_func_inet_aton_noproto" = yes; then
9577 cat >> confdefs.h <<\EOF
9578#define NEED_INET_ATON_PROTO 1
9579EOF
9580
9581fi
9582
9583fi
9584
9585
9586
9587
9588
9589echo $ac_n "checking for crypt""... $ac_c" 1>&6
9590echo "configure:9591: checking for crypt" >&5
9591if eval "test \"`echo '$''{'ac_cv_funclib_crypt'+set}'`\" = set"; then
9592 echo $ac_n "(cached) $ac_c" 1>&6
9593else
9594
9595if eval "test \"\$ac_cv_func_crypt\" != yes" ; then
9596 ac_save_LIBS="$LIBS"
9597 for ac_lib in "" crypt; do
9598 if test -n "$ac_lib"; then
9599 ac_lib="-l$ac_lib"
9600 else
9601 ac_lib=""
9602 fi
9603 LIBS=" $ac_lib $ac_save_LIBS"
9604 cat > conftest.$ac_ext <<EOF
9605#line 9606 "configure"
9606#include "confdefs.h"
9607
9608int main() {
9609crypt()
9610; return 0; }
9611EOF
9612if { (eval echo configure:9613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9613 rm -rf conftest*
9614 eval "if test -n \"$ac_lib\";then ac_cv_funclib_crypt=$ac_lib; else ac_cv_funclib_crypt=yes; fi";break
9615else
9616 echo "configure: failed program was:" >&5
9617 cat conftest.$ac_ext >&5
9618fi
9619rm -f conftest*
9620 done
9621 eval "ac_cv_funclib_crypt=\${ac_cv_funclib_crypt-no}"
9622 LIBS="$ac_save_LIBS"
9623fi
9624
9625fi
9626
9627
9628eval "ac_res=\$ac_cv_funclib_crypt"
9629
9630: << END
9631@@@funcs="$funcs crypt"@@@
9632@@@libs="$libs "" crypt"@@@
9633END
9634
9635# crypt
9636eval "ac_tr_func=HAVE_`echo crypt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
9637eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
9638eval "LIB_crypt=$ac_res"
9639
9640case "$ac_res" in
9641 yes)
9642 eval "ac_cv_func_crypt=yes"
9643 eval "LIB_crypt="
9644 cat >> confdefs.h <<EOF
9645#define $ac_tr_func 1
9646EOF
9647
9648 echo "$ac_t""yes" 1>&6
9649 ;;
9650 no)
9651 eval "ac_cv_func_crypt=no"
9652 eval "LIB_crypt="
9653 echo "$ac_t""no" 1>&6
9654 ;;
9655 *)
9656 eval "ac_cv_func_crypt=yes"
9657 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
9658 cat >> confdefs.h <<EOF
9659#define $ac_tr_func 1
9660EOF
9661
9662 cat >> confdefs.h <<EOF
9663#define $ac_tr_lib 1
9664EOF
9665
9666 echo "$ac_t""yes, in $ac_res" 1>&6
9667 ;;
9668esac
9669
9670
9671
9672LIB_roken='$(top_builddir)/lib/roken/libroken.la $(LIB_crypt) $(LIB_dbopen)'
9673
9674echo $ac_n "checking if realloc if broken""... $ac_c" 1>&6
9675echo "configure:9676: checking if realloc if broken" >&5
9676if eval "test \"`echo '$''{'ac_cv_func_realloc_broken'+set}'`\" = set"; then
9677 echo $ac_n "(cached) $ac_c" 1>&6
9678else
9679
9680ac_cv_func_realloc_broken=no
9681if test "$cross_compiling" = yes; then
9682 :
9683else
9684 cat > conftest.$ac_ext <<EOF
9685#line 9686 "configure"
9686#include "confdefs.h"
9687
9688#include <stddef.h>
9689#include <stdlib.h>
9690
9691int main()
9692{
9693 return realloc(NULL, 17) == NULL;
9694}
9695
9696EOF
9697if { (eval echo configure:9698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9698then
9699 :
9700else
9701 echo "configure: failed program was:" >&5
9702 cat conftest.$ac_ext >&5
9703 rm -fr conftest*
9704 ac_cv_func_realloc_broken=yes
9705fi
9706rm -fr conftest*
9707fi
9708
9709
9710fi
9711
9712echo "$ac_t""$ac_cv_func_realloc_broken" 1>&6
9713if test "$ac_cv_func_realloc_broken" = yes ; then
9714 cat >> confdefs.h <<\EOF
9715#define BROKEN_REALLOC 1
9716EOF
9717
9718fi
9719
9720
9721
9722
9723echo $ac_n "checking if gethostbyname is compatible with system prototype""... $ac_c" 1>&6
9724echo "configure:9725: checking if gethostbyname is compatible with system prototype" >&5
9725if eval "test \"`echo '$''{'ac_cv_func_gethostbyname_proto_compat'+set}'`\" = set"; then
9726 echo $ac_n "(cached) $ac_c" 1>&6
9727else
9728 cat > conftest.$ac_ext <<EOF
9729#line 9730 "configure"
9730#include "confdefs.h"
9731
9732#ifdef HAVE_SYS_TYPES_H
9733#include <sys/types.h>
9734#endif
9735#ifdef HAVE_SYS_SOCKET_H
9736#include <sys/socket.h>
9737#endif
9738#ifdef HAVE_NETINET_IN_H
9739#include <netinet/in.h>
9740#endif
9741#ifdef HAVE_ARPA_INET_H
9742#include <arpa/inet.h>
9743#endif
9744#ifdef HAVE_NETDB_H
9745#include <netdb.h>
9746#endif
9747
9748int main() {
9749struct hostent *gethostbyname(const char *);
9750; return 0; }
9751EOF
9752if { (eval echo configure:9753: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9753 rm -rf conftest*
9754 eval "ac_cv_func_gethostbyname_proto_compat=yes"
9755else
9756 echo "configure: failed program was:" >&5
9757 cat conftest.$ac_ext >&5
9758 rm -rf conftest*
9759 eval "ac_cv_func_gethostbyname_proto_compat=no"
9760fi
9761rm -f conftest*
9762fi
9763
9764echo "$ac_t""$ac_cv_func_gethostbyname_proto_compat" 1>&6
9765
9766if test "$ac_cv_func_gethostbyname_proto_compat" = yes; then
9767 cat >> confdefs.h <<\EOF
9768#define GETHOSTBYNAME_PROTO_COMPATIBLE 1
9769EOF
9770
9771fi
9772
9773
9774
9775
9776echo $ac_n "checking if gethostbyaddr is compatible with system prototype""... $ac_c" 1>&6
9777echo "configure:9778: checking if gethostbyaddr is compatible with system prototype" >&5
9778if eval "test \"`echo '$''{'ac_cv_func_gethostbyaddr_proto_compat'+set}'`\" = set"; then
9779 echo $ac_n "(cached) $ac_c" 1>&6
9780else
9781 cat > conftest.$ac_ext <<EOF
9782#line 9783 "configure"
9783#include "confdefs.h"
9784
9785#ifdef HAVE_SYS_TYPES_H
9786#include <sys/types.h>
9787#endif
9788#ifdef HAVE_SYS_SOCKET_H
9789#include <sys/socket.h>
9790#endif
9791#ifdef HAVE_NETINET_IN_H
9792#include <netinet/in.h>
9793#endif
9794#ifdef HAVE_ARPA_INET_H
9795#include <arpa/inet.h>
9796#endif
9797#ifdef HAVE_NETDB_H
9798#include <netdb.h>
9799#endif
9800
9801int main() {
9802struct hostent *gethostbyaddr(const void *, size_t, int);
9803; return 0; }
9804EOF
9805if { (eval echo configure:9806: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9806 rm -rf conftest*
9807 eval "ac_cv_func_gethostbyaddr_proto_compat=yes"
9808else
9809 echo "configure: failed program was:" >&5
9810 cat conftest.$ac_ext >&5
9811 rm -rf conftest*
9812 eval "ac_cv_func_gethostbyaddr_proto_compat=no"
9813fi
9814rm -f conftest*
9815fi
9816
9817echo "$ac_t""$ac_cv_func_gethostbyaddr_proto_compat" 1>&6
9818
9819if test "$ac_cv_func_gethostbyaddr_proto_compat" = yes; then
9820 cat >> confdefs.h <<\EOF
9821#define GETHOSTBYADDR_PROTO_COMPATIBLE 1
9822EOF
9823
9824fi
9825
9826
9827
9828
9829echo $ac_n "checking if getservbyname is compatible with system prototype""... $ac_c" 1>&6
9830echo "configure:9831: checking if getservbyname is compatible with system prototype" >&5
9831if eval "test \"`echo '$''{'ac_cv_func_getservbyname_proto_compat'+set}'`\" = set"; then
9832 echo $ac_n "(cached) $ac_c" 1>&6
9833else
9834 cat > conftest.$ac_ext <<EOF
9835#line 9836 "configure"
9836#include "confdefs.h"
9837
9838#ifdef HAVE_SYS_TYPES_H
9839#include <sys/types.h>
9840#endif
9841#ifdef HAVE_SYS_SOCKET_H
9842#include <sys/socket.h>
9843#endif
9844#ifdef HAVE_NETINET_IN_H
9845#include <netinet/in.h>
9846#endif
9847#ifdef HAVE_ARPA_INET_H
9848#include <arpa/inet.h>
9849#endif
9850#ifdef HAVE_NETDB_H
9851#include <netdb.h>
9852#endif
9853
9854int main() {
9855struct servent *getservbyname(const char *, const char *);
9856; return 0; }
9857EOF
9858if { (eval echo configure:9859: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9859 rm -rf conftest*
9860 eval "ac_cv_func_getservbyname_proto_compat=yes"
9861else
9862 echo "configure: failed program was:" >&5
9863 cat conftest.$ac_ext >&5
9864 rm -rf conftest*
9865 eval "ac_cv_func_getservbyname_proto_compat=no"
9866fi
9867rm -f conftest*
9868fi
9869
9870echo "$ac_t""$ac_cv_func_getservbyname_proto_compat" 1>&6
9871
9872if test "$ac_cv_func_getservbyname_proto_compat" = yes; then
9873 cat >> confdefs.h <<\EOF
9874#define GETSERVBYNAME_PROTO_COMPATIBLE 1
9875EOF
9876
9877fi
9878
9879
9880
9881
9882echo $ac_n "checking if openlog is compatible with system prototype""... $ac_c" 1>&6
9883echo "configure:9884: checking if openlog is compatible with system prototype" >&5
9884if eval "test \"`echo '$''{'ac_cv_func_openlog_proto_compat'+set}'`\" = set"; then
9885 echo $ac_n "(cached) $ac_c" 1>&6
9886else
9887 cat > conftest.$ac_ext <<EOF
9888#line 9889 "configure"
9889#include "confdefs.h"
9890
9891#ifdef HAVE_SYSLOG_H
9892#include <syslog.h>
9893#endif
9894
9895int main() {
9896void openlog(const char *, int, int);
9897; return 0; }
9898EOF
9899if { (eval echo configure:9900: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9900 rm -rf conftest*
9901 eval "ac_cv_func_openlog_proto_compat=yes"
9902else
9903 echo "configure: failed program was:" >&5
9904 cat conftest.$ac_ext >&5
9905 rm -rf conftest*
9906 eval "ac_cv_func_openlog_proto_compat=no"
9907fi
9908rm -f conftest*
9909fi
9910
9911echo "$ac_t""$ac_cv_func_openlog_proto_compat" 1>&6
9912
9913if test "$ac_cv_func_openlog_proto_compat" = yes; then
9914 cat >> confdefs.h <<\EOF
9915#define OPENLOG_PROTO_COMPATIBLE 1
9916EOF
9917
9918fi
9919
9920
9921
9922
9923if test "$ac_cv_func_crypt+set" != set -o "$ac_cv_func_crypt" = yes; then
9924echo $ac_n "checking if crypt needs a prototype""... $ac_c" 1>&6
9925echo "configure:9926: checking if crypt needs a prototype" >&5
9926if eval "test \"`echo '$''{'ac_cv_func_crypt_noproto'+set}'`\" = set"; then
9927 echo $ac_n "(cached) $ac_c" 1>&6
9928else
9929 cat > conftest.$ac_ext <<EOF
9930#line 9931 "configure"
9931#include "confdefs.h"
9932
9933#ifdef HAVE_CRYPT_H
9934#include <crypt.h>
9935#endif
9936#ifdef HAVE_UNISTD_H
9937#include <unistd.h>
9938#endif
9939
9940int main() {
9941struct foo { int foo; } xx;
9942extern int crypt (struct foo*);
9943crypt(&xx);
9944
9945; return 0; }
9946EOF
9947if { (eval echo configure:9948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9948 rm -rf conftest*
9949 eval "ac_cv_func_crypt_noproto=yes"
9950else
9951 echo "configure: failed program was:" >&5
9952 cat conftest.$ac_ext >&5
9953 rm -rf conftest*
9954 eval "ac_cv_func_crypt_noproto=no"
9955fi
9956rm -f conftest*
9957fi
9958
9959echo "$ac_t""$ac_cv_func_crypt_noproto" 1>&6
9960
9961if test "$ac_cv_func_crypt_noproto" = yes; then
9962 cat >> confdefs.h <<\EOF
9963#define NEED_CRYPT_PROTO 1
9964EOF
9965
9966fi
9967
9968fi
9969
9970
9971
9972if test "$ac_cv_func_strtok_r+set" != set -o "$ac_cv_func_strtok_r" = yes; then
9973echo $ac_n "checking if strtok_r needs a prototype""... $ac_c" 1>&6
9974echo "configure:9975: checking if strtok_r needs a prototype" >&5
9975if eval "test \"`echo '$''{'ac_cv_func_strtok_r_noproto'+set}'`\" = set"; then
9976 echo $ac_n "(cached) $ac_c" 1>&6
9977else
9978 cat > conftest.$ac_ext <<EOF
9979#line 9980 "configure"
9980#include "confdefs.h"
9981
9982#include <string.h>
9983
9984int main() {
9985struct foo { int foo; } xx;
9986extern int strtok_r (struct foo*);
9987strtok_r(&xx);
9988
9989; return 0; }
9990EOF
9991if { (eval echo configure:9992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9992 rm -rf conftest*
9993 eval "ac_cv_func_strtok_r_noproto=yes"
9994else
9995 echo "configure: failed program was:" >&5
9996 cat conftest.$ac_ext >&5
9997 rm -rf conftest*
9998 eval "ac_cv_func_strtok_r_noproto=no"
9999fi
10000rm -f conftest*
10001fi
10002
10003echo "$ac_t""$ac_cv_func_strtok_r_noproto" 1>&6
10004
10005if test "$ac_cv_func_strtok_r_noproto" = yes; then
10006 cat >> confdefs.h <<\EOF
10007#define NEED_STRTOK_R_PROTO 1
10008EOF
10009
10010fi
10011
10012fi
10013
10014
10015
10016if test "$ac_cv_func_strsep+set" != set -o "$ac_cv_func_strsep" = yes; then
10017echo $ac_n "checking if strsep needs a prototype""... $ac_c" 1>&6
10018echo "configure:10019: checking if strsep needs a prototype" >&5
10019if eval "test \"`echo '$''{'ac_cv_func_strsep_noproto'+set}'`\" = set"; then
10020 echo $ac_n "(cached) $ac_c" 1>&6
10021else
10022 cat > conftest.$ac_ext <<EOF
10023#line 10024 "configure"
10024#include "confdefs.h"
10025
10026#include <string.h>
10027
10028int main() {
10029struct foo { int foo; } xx;
10030extern int strsep (struct foo*);
10031strsep(&xx);
10032
10033; return 0; }
10034EOF
10035if { (eval echo configure:10036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10036 rm -rf conftest*
10037 eval "ac_cv_func_strsep_noproto=yes"
10038else
10039 echo "configure: failed program was:" >&5
10040 cat conftest.$ac_ext >&5
10041 rm -rf conftest*
10042 eval "ac_cv_func_strsep_noproto=no"
10043fi
10044rm -f conftest*
10045fi
10046
10047echo "$ac_t""$ac_cv_func_strsep_noproto" 1>&6
10048
10049if test "$ac_cv_func_strsep_noproto" = yes; then
10050 cat >> confdefs.h <<\EOF
10051#define NEED_STRSEP_PROTO 1
10052EOF
10053
10054fi
10055
10056fi
10057
10058
10059
10060echo $ac_n "checking for h_errno""... $ac_c" 1>&6
10061echo "configure:10062: checking for h_errno" >&5
10062if eval "test \"`echo '$''{'ac_cv_var_h_errno'+set}'`\" = set"; then
10063 echo $ac_n "(cached) $ac_c" 1>&6
10064else
10065
10066cat > conftest.$ac_ext <<EOF
10067#line 10068 "configure"
10068#include "confdefs.h"
10069extern int h_errno;
10070int foo() { return h_errno; }
10071int main() {
10072foo()
10073; return 0; }
10074EOF
10075if { (eval echo configure:10076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10076 rm -rf conftest*
10077 ac_cv_var_h_errno=yes
10078else
10079 echo "configure: failed program was:" >&5
10080 cat conftest.$ac_ext >&5
10081 rm -rf conftest*
10082 ac_cv_var_h_errno=no
10083fi
10084rm -f conftest*
10085
10086fi
10087
10088
10089
10090echo "$ac_t""`eval echo \\$ac_cv_var_h_errno`" 1>&6
10091if test `eval echo \\$ac_cv_var_h_errno` = yes; then
10092 cat >> confdefs.h <<EOF
10093#define HAVE_H_ERRNO 1
10094EOF
10095
10096
10097echo $ac_n "checking if h_errno is properly declared""... $ac_c" 1>&6
10098echo "configure:10099: checking if h_errno is properly declared" >&5
10099if eval "test \"`echo '$''{'ac_cv_var_h_errno_declaration'+set}'`\" = set"; then
10100 echo $ac_n "(cached) $ac_c" 1>&6
10101else
10102
10103cat > conftest.$ac_ext <<EOF
10104#line 10105 "configure"
10105#include "confdefs.h"
10106#ifdef HAVE_SYS_TYPES_H
10107#include <sys/types.h>
10108#endif
10109#ifdef HAVE_NETDB_H
10110#include <netdb.h>
10111#endif
10112extern struct { int foo; } h_errno;
10113int main() {
10114h_errno.foo = 1;
10115; return 0; }
10116EOF
10117if { (eval echo configure:10118: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10118 rm -rf conftest*
10119 eval "ac_cv_var_h_errno_declaration=no"
10120else
10121 echo "configure: failed program was:" >&5
10122 cat conftest.$ac_ext >&5
10123 rm -rf conftest*
10124 eval "ac_cv_var_h_errno_declaration=yes"
10125fi
10126rm -f conftest*
10127
10128fi
10129
10130
10131
10132
10133echo "$ac_t""$ac_cv_var_h_errno_declaration" 1>&6
10134if eval "test \"\$ac_cv_var_h_errno_declaration\" = yes"; then
10135 cat >> confdefs.h <<\EOF
10136#define HAVE_H_ERRNO_DECLARATION 1
10137EOF
10138
10139fi
10140
10141
10142fi
10143
10144
10145
10146
10147echo $ac_n "checking for h_errlist""... $ac_c" 1>&6
10148echo "configure:10149: checking for h_errlist" >&5
10149if eval "test \"`echo '$''{'ac_cv_var_h_errlist'+set}'`\" = set"; then
10150 echo $ac_n "(cached) $ac_c" 1>&6
10151else
10152
10153cat > conftest.$ac_ext <<EOF
10154#line 10155 "configure"
10155#include "confdefs.h"
10156extern int h_errlist;
10157int foo() { return h_errlist; }
10158int main() {
10159foo()
10160; return 0; }
10161EOF
10162if { (eval echo configure:10163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10163 rm -rf conftest*
10164 ac_cv_var_h_errlist=yes
10165else
10166 echo "configure: failed program was:" >&5
10167 cat conftest.$ac_ext >&5
10168 rm -rf conftest*
10169 ac_cv_var_h_errlist=no
10170fi
10171rm -f conftest*
10172
10173fi
10174
10175
10176
10177echo "$ac_t""`eval echo \\$ac_cv_var_h_errlist`" 1>&6
10178if test `eval echo \\$ac_cv_var_h_errlist` = yes; then
10179 cat >> confdefs.h <<EOF
10180#define HAVE_H_ERRLIST 1
10181EOF
10182
10183
10184echo $ac_n "checking if h_errlist is properly declared""... $ac_c" 1>&6
10185echo "configure:10186: checking if h_errlist is properly declared" >&5
10186if eval "test \"`echo '$''{'ac_cv_var_h_errlist_declaration'+set}'`\" = set"; then
10187 echo $ac_n "(cached) $ac_c" 1>&6
10188else
10189
10190cat > conftest.$ac_ext <<EOF
10191#line 10192 "configure"
10192#include "confdefs.h"
10193#ifdef HAVE_NETDB_H
10194#include <netdb.h>
10195#endif
10196extern struct { int foo; } h_errlist;
10197int main() {
10198h_errlist.foo = 1;
10199; return 0; }
10200EOF
10201if { (eval echo configure:10202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10202 rm -rf conftest*
10203 eval "ac_cv_var_h_errlist_declaration=no"
10204else
10205 echo "configure: failed program was:" >&5
10206 cat conftest.$ac_ext >&5
10207 rm -rf conftest*
10208 eval "ac_cv_var_h_errlist_declaration=yes"
10209fi
10210rm -f conftest*
10211
10212fi
10213
10214
10215
10216
10217echo "$ac_t""$ac_cv_var_h_errlist_declaration" 1>&6
10218if eval "test \"\$ac_cv_var_h_errlist_declaration\" = yes"; then
10219 cat >> confdefs.h <<\EOF
10220#define HAVE_H_ERRLIST_DECLARATION 1
10221EOF
10222
10223fi
10224
10225
10226fi
10227
10228
10229
10230
10231echo $ac_n "checking for h_nerr""... $ac_c" 1>&6
10232echo "configure:10233: checking for h_nerr" >&5
10233if eval "test \"`echo '$''{'ac_cv_var_h_nerr'+set}'`\" = set"; then
10234 echo $ac_n "(cached) $ac_c" 1>&6
10235else
10236
10237cat > conftest.$ac_ext <<EOF
10238#line 10239 "configure"
10239#include "confdefs.h"
10240extern int h_nerr;
10241int foo() { return h_nerr; }
10242int main() {
10243foo()
10244; return 0; }
10245EOF
10246if { (eval echo configure:10247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10247 rm -rf conftest*
10248 ac_cv_var_h_nerr=yes
10249else
10250 echo "configure: failed program was:" >&5
10251 cat conftest.$ac_ext >&5
10252 rm -rf conftest*
10253 ac_cv_var_h_nerr=no
10254fi
10255rm -f conftest*
10256
10257fi
10258
10259
10260
10261echo "$ac_t""`eval echo \\$ac_cv_var_h_nerr`" 1>&6
10262if test `eval echo \\$ac_cv_var_h_nerr` = yes; then
10263 cat >> confdefs.h <<EOF
10264#define HAVE_H_NERR 1
10265EOF
10266
10267
10268echo $ac_n "checking if h_nerr is properly declared""... $ac_c" 1>&6
10269echo "configure:10270: checking if h_nerr is properly declared" >&5
10270if eval "test \"`echo '$''{'ac_cv_var_h_nerr_declaration'+set}'`\" = set"; then
10271 echo $ac_n "(cached) $ac_c" 1>&6
10272else
10273
10274cat > conftest.$ac_ext <<EOF
10275#line 10276 "configure"
10276#include "confdefs.h"
10277#ifdef HAVE_NETDB_H
10278#include <netdb.h>
10279#endif
10280extern struct { int foo; } h_nerr;
10281int main() {
10282h_nerr.foo = 1;
10283; return 0; }
10284EOF
10285if { (eval echo configure:10286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10286 rm -rf conftest*
10287 eval "ac_cv_var_h_nerr_declaration=no"
10288else
10289 echo "configure: failed program was:" >&5
10290 cat conftest.$ac_ext >&5
10291 rm -rf conftest*
10292 eval "ac_cv_var_h_nerr_declaration=yes"
10293fi
10294rm -f conftest*
10295
10296fi
10297
10298
10299
10300
10301echo "$ac_t""$ac_cv_var_h_nerr_declaration" 1>&6
10302if eval "test \"\$ac_cv_var_h_nerr_declaration\" = yes"; then
10303 cat >> confdefs.h <<\EOF
10304#define HAVE_H_NERR_DECLARATION 1
10305EOF
10306
10307fi
10308
10309
10310fi
10311
10312
10313
10314
10315echo $ac_n "checking for __progname""... $ac_c" 1>&6
10316echo "configure:10317: checking for __progname" >&5
10317if eval "test \"`echo '$''{'ac_cv_var___progname'+set}'`\" = set"; then
10318 echo $ac_n "(cached) $ac_c" 1>&6
10319else
10320
10321cat > conftest.$ac_ext <<EOF
10322#line 10323 "configure"
10323#include "confdefs.h"
10324extern int __progname;
10325int foo() { return __progname; }
10326int main() {
10327foo()
10328; return 0; }
10329EOF
10330if { (eval echo configure:10331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10331 rm -rf conftest*
10332 ac_cv_var___progname=yes
10333else
10334 echo "configure: failed program was:" >&5
10335 cat conftest.$ac_ext >&5
10336 rm -rf conftest*
10337 ac_cv_var___progname=no
10338fi
10339rm -f conftest*
10340
10341fi
10342
10343
10344
10345echo "$ac_t""`eval echo \\$ac_cv_var___progname`" 1>&6
10346if test `eval echo \\$ac_cv_var___progname` = yes; then
10347 cat >> confdefs.h <<EOF
10348#define HAVE___PROGNAME 1
10349EOF
10350
10351
10352echo $ac_n "checking if __progname is properly declared""... $ac_c" 1>&6
10353echo "configure:10354: checking if __progname is properly declared" >&5
10354if eval "test \"`echo '$''{'ac_cv_var___progname_declaration'+set}'`\" = set"; then
10355 echo $ac_n "(cached) $ac_c" 1>&6
10356else
10357
10358cat > conftest.$ac_ext <<EOF
10359#line 10360 "configure"
10360#include "confdefs.h"
10361#ifdef HAVE_ERR_H
10362#include <err.h>
10363#endif
10364extern struct { int foo; } __progname;
10365int main() {
10366__progname.foo = 1;
10367; return 0; }
10368EOF
10369if { (eval echo configure:10370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10370 rm -rf conftest*
10371 eval "ac_cv_var___progname_declaration=no"
10372else
10373 echo "configure: failed program was:" >&5
10374 cat conftest.$ac_ext >&5
10375 rm -rf conftest*
10376 eval "ac_cv_var___progname_declaration=yes"
10377fi
10378rm -f conftest*
10379
10380fi
10381
10382
10383
10384
10385echo "$ac_t""$ac_cv_var___progname_declaration" 1>&6
10386if eval "test \"\$ac_cv_var___progname_declaration\" = yes"; then
10387 cat >> confdefs.h <<\EOF
10388#define HAVE___PROGNAME_DECLARATION 1
10389EOF
10390
10391fi
10392
10393
10394fi
10395
10396
10397
10398
10399echo $ac_n "checking if optarg is properly declared""... $ac_c" 1>&6
10400echo "configure:10401: checking if optarg is properly declared" >&5
10401if eval "test \"`echo '$''{'ac_cv_var_optarg_declaration'+set}'`\" = set"; then
10402 echo $ac_n "(cached) $ac_c" 1>&6
10403else
10404
10405cat > conftest.$ac_ext <<EOF
10406#line 10407 "configure"
10407#include "confdefs.h"
10408#include <stdlib.h>
10409#ifdef HAVE_UNISTD_H
10410#include <unistd.h>
10411#endif
10412extern struct { int foo; } optarg;
10413int main() {
10414optarg.foo = 1;
10415; return 0; }
10416EOF
10417if { (eval echo configure:10418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10418 rm -rf conftest*
10419 eval "ac_cv_var_optarg_declaration=no"
10420else
10421 echo "configure: failed program was:" >&5
10422 cat conftest.$ac_ext >&5
10423 rm -rf conftest*
10424 eval "ac_cv_var_optarg_declaration=yes"
10425fi
10426rm -f conftest*
10427
10428fi
10429
10430
10431
10432
10433echo "$ac_t""$ac_cv_var_optarg_declaration" 1>&6
10434if eval "test \"\$ac_cv_var_optarg_declaration\" = yes"; then
10435 cat >> confdefs.h <<\EOF
10436#define HAVE_OPTARG_DECLARATION 1
10437EOF
10438
10439fi
10440
10441
10442
10443echo $ac_n "checking if optind is properly declared""... $ac_c" 1>&6
10444echo "configure:10445: checking if optind is properly declared" >&5
10445if eval "test \"`echo '$''{'ac_cv_var_optind_declaration'+set}'`\" = set"; then
10446 echo $ac_n "(cached) $ac_c" 1>&6
10447else
10448
10449cat > conftest.$ac_ext <<EOF
10450#line 10451 "configure"
10451#include "confdefs.h"
10452#include <stdlib.h>
10453#ifdef HAVE_UNISTD_H
10454#include <unistd.h>
10455#endif
10456extern struct { int foo; } optind;
10457int main() {
10458optind.foo = 1;
10459; return 0; }
10460EOF
10461if { (eval echo configure:10462: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10462 rm -rf conftest*
10463 eval "ac_cv_var_optind_declaration=no"
10464else
10465 echo "configure: failed program was:" >&5
10466 cat conftest.$ac_ext >&5
10467 rm -rf conftest*
10468 eval "ac_cv_var_optind_declaration=yes"
10469fi
10470rm -f conftest*
10471
10472fi
10473
10474
10475
10476
10477echo "$ac_t""$ac_cv_var_optind_declaration" 1>&6
10478if eval "test \"\$ac_cv_var_optind_declaration\" = yes"; then
10479 cat >> confdefs.h <<\EOF
10480#define HAVE_OPTIND_DECLARATION 1
10481EOF
10482
10483fi
10484
10485
10486
10487echo $ac_n "checking if opterr is properly declared""... $ac_c" 1>&6
10488echo "configure:10489: checking if opterr is properly declared" >&5
10489if eval "test \"`echo '$''{'ac_cv_var_opterr_declaration'+set}'`\" = set"; then
10490 echo $ac_n "(cached) $ac_c" 1>&6
10491else
10492
10493cat > conftest.$ac_ext <<EOF
10494#line 10495 "configure"
10495#include "confdefs.h"
10496#include <stdlib.h>
10497#ifdef HAVE_UNISTD_H
10498#include <unistd.h>
10499#endif
10500extern struct { int foo; } opterr;
10501int main() {
10502opterr.foo = 1;
10503; return 0; }
10504EOF
10505if { (eval echo configure:10506: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10506 rm -rf conftest*
10507 eval "ac_cv_var_opterr_declaration=no"
10508else
10509 echo "configure: failed program was:" >&5
10510 cat conftest.$ac_ext >&5
10511 rm -rf conftest*
10512 eval "ac_cv_var_opterr_declaration=yes"
10513fi
10514rm -f conftest*
10515
10516fi
10517
10518
10519
10520
10521echo "$ac_t""$ac_cv_var_opterr_declaration" 1>&6
10522if eval "test \"\$ac_cv_var_opterr_declaration\" = yes"; then
10523 cat >> confdefs.h <<\EOF
10524#define HAVE_OPTERR_DECLARATION 1
10525EOF
10526
10527fi
10528
10529
10530
10531echo $ac_n "checking if optopt is properly declared""... $ac_c" 1>&6
10532echo "configure:10533: checking if optopt is properly declared" >&5
10533if eval "test \"`echo '$''{'ac_cv_var_optopt_declaration'+set}'`\" = set"; then
10534 echo $ac_n "(cached) $ac_c" 1>&6
10535else
10536
10537cat > conftest.$ac_ext <<EOF
10538#line 10539 "configure"
10539#include "confdefs.h"
10540#include <stdlib.h>
10541#ifdef HAVE_UNISTD_H
10542#include <unistd.h>
10543#endif
10544extern struct { int foo; } optopt;
10545int main() {
10546optopt.foo = 1;
10547; return 0; }
10548EOF
10549if { (eval echo configure:10550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10550 rm -rf conftest*
10551 eval "ac_cv_var_optopt_declaration=no"
10552else
10553 echo "configure: failed program was:" >&5
10554 cat conftest.$ac_ext >&5
10555 rm -rf conftest*
10556 eval "ac_cv_var_optopt_declaration=yes"
10557fi
10558rm -f conftest*
10559
10560fi
10561
10562
10563
10564
10565echo "$ac_t""$ac_cv_var_optopt_declaration" 1>&6
10566if eval "test \"\$ac_cv_var_optopt_declaration\" = yes"; then
10567 cat >> confdefs.h <<\EOF
10568#define HAVE_OPTOPT_DECLARATION 1
10569EOF
10570
10571fi
10572
10573
10574
10575
10576echo $ac_n "checking if environ is properly declared""... $ac_c" 1>&6
10577echo "configure:10578: checking if environ is properly declared" >&5
10578if eval "test \"`echo '$''{'ac_cv_var_environ_declaration'+set}'`\" = set"; then
10579 echo $ac_n "(cached) $ac_c" 1>&6
10580else
10581
10582cat > conftest.$ac_ext <<EOF
10583#line 10584 "configure"
10584#include "confdefs.h"
10585#include <stdlib.h>
10586extern struct { int foo; } environ;
10587int main() {
10588environ.foo = 1;
10589; return 0; }
10590EOF
10591if { (eval echo configure:10592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10592 rm -rf conftest*
10593 eval "ac_cv_var_environ_declaration=no"
10594else
10595 echo "configure: failed program was:" >&5
10596 cat conftest.$ac_ext >&5
10597 rm -rf conftest*
10598 eval "ac_cv_var_environ_declaration=yes"
10599fi
10600rm -f conftest*
10601
10602fi
10603
10604
10605
10606
10607echo "$ac_t""$ac_cv_var_environ_declaration" 1>&6
10608if eval "test \"\$ac_cv_var_environ_declaration\" = yes"; then
10609 cat >> confdefs.h <<\EOF
10610#define HAVE_ENVIRON_DECLARATION 1
10611EOF
10612
10613fi
10614
10615
10616
10617
10618
10619
10620echo $ac_n "checking for ut_addr in struct utmp""... $ac_c" 1>&6
10621echo "configure:10622: checking for ut_addr in struct utmp" >&5
10622if eval "test \"`echo '$''{'ac_cv_type_struct_utmp_ut_addr'+set}'`\" = set"; then
10623 echo $ac_n "(cached) $ac_c" 1>&6
10624else
10625
10626cat > conftest.$ac_ext <<EOF
10627#line 10628 "configure"
10628#include "confdefs.h"
10629#include <utmp.h>
10630int main() {
10631struct utmp x; x.ut_addr;
10632; return 0; }
10633EOF
10634if { (eval echo configure:10635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10635 rm -rf conftest*
10636 ac_cv_type_struct_utmp_ut_addr=yes
10637else
10638 echo "configure: failed program was:" >&5
10639 cat conftest.$ac_ext >&5
10640 rm -rf conftest*
10641 ac_cv_type_struct_utmp_ut_addr=no
10642fi
10643rm -f conftest*
10644fi
10645
10646echo "$ac_t""$ac_cv_type_struct_utmp_ut_addr" 1>&6
10647if test "$ac_cv_type_struct_utmp_ut_addr" = yes; then
10648
10649 cat >> confdefs.h <<\EOF
10650#define HAVE_STRUCT_UTMP_UT_ADDR 1
10651EOF
10652
10653
10654fi
10655
10656
10657
10658
10659echo $ac_n "checking for ut_host in struct utmp""... $ac_c" 1>&6
10660echo "configure:10661: checking for ut_host in struct utmp" >&5
10661if eval "test \"`echo '$''{'ac_cv_type_struct_utmp_ut_host'+set}'`\" = set"; then
10662 echo $ac_n "(cached) $ac_c" 1>&6
10663else
10664
10665cat > conftest.$ac_ext <<EOF
10666#line 10667 "configure"
10667#include "confdefs.h"
10668#include <utmp.h>
10669int main() {
10670struct utmp x; x.ut_host;
10671; return 0; }
10672EOF
10673if { (eval echo configure:10674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10674 rm -rf conftest*
10675 ac_cv_type_struct_utmp_ut_host=yes
10676else
10677 echo "configure: failed program was:" >&5
10678 cat conftest.$ac_ext >&5
10679 rm -rf conftest*
10680 ac_cv_type_struct_utmp_ut_host=no
10681fi
10682rm -f conftest*
10683fi
10684
10685echo "$ac_t""$ac_cv_type_struct_utmp_ut_host" 1>&6
10686if test "$ac_cv_type_struct_utmp_ut_host" = yes; then
10687
10688 cat >> confdefs.h <<\EOF
10689#define HAVE_STRUCT_UTMP_UT_HOST 1
10690EOF
10691
10692
10693fi
10694
10695
10696
10697
10698echo $ac_n "checking for ut_id in struct utmp""... $ac_c" 1>&6
10699echo "configure:10700: checking for ut_id in struct utmp" >&5
10700if eval "test \"`echo '$''{'ac_cv_type_struct_utmp_ut_id'+set}'`\" = set"; then
10701 echo $ac_n "(cached) $ac_c" 1>&6
10702else
10703
10704cat > conftest.$ac_ext <<EOF
10705#line 10706 "configure"
10706#include "confdefs.h"
10707#include <utmp.h>
10708int main() {
10709struct utmp x; x.ut_id;
10710; return 0; }
10711EOF
10712if { (eval echo configure:10713: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10713 rm -rf conftest*
10714 ac_cv_type_struct_utmp_ut_id=yes
10715else
10716 echo "configure: failed program was:" >&5
10717 cat conftest.$ac_ext >&5
10718 rm -rf conftest*
10719 ac_cv_type_struct_utmp_ut_id=no
10720fi
10721rm -f conftest*
10722fi
10723
10724echo "$ac_t""$ac_cv_type_struct_utmp_ut_id" 1>&6
10725if test "$ac_cv_type_struct_utmp_ut_id" = yes; then
10726
10727 cat >> confdefs.h <<\EOF
10728#define HAVE_STRUCT_UTMP_UT_ID 1
10729EOF
10730
10731
10732fi
10733
10734
10735
10736
10737echo $ac_n "checking for ut_pid in struct utmp""... $ac_c" 1>&6
10738echo "configure:10739: checking for ut_pid in struct utmp" >&5
10739if eval "test \"`echo '$''{'ac_cv_type_struct_utmp_ut_pid'+set}'`\" = set"; then
10740 echo $ac_n "(cached) $ac_c" 1>&6
10741else
10742
10743cat > conftest.$ac_ext <<EOF
10744#line 10745 "configure"
10745#include "confdefs.h"
10746#include <utmp.h>
10747int main() {
10748struct utmp x; x.ut_pid;
10749; return 0; }
10750EOF
10751if { (eval echo configure:10752: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10752 rm -rf conftest*
10753 ac_cv_type_struct_utmp_ut_pid=yes
10754else
10755 echo "configure: failed program was:" >&5
10756 cat conftest.$ac_ext >&5
10757 rm -rf conftest*
10758 ac_cv_type_struct_utmp_ut_pid=no
10759fi
10760rm -f conftest*
10761fi
10762
10763echo "$ac_t""$ac_cv_type_struct_utmp_ut_pid" 1>&6
10764if test "$ac_cv_type_struct_utmp_ut_pid" = yes; then
10765
10766 cat >> confdefs.h <<\EOF
10767#define HAVE_STRUCT_UTMP_UT_PID 1
10768EOF
10769
10770
10771fi
10772
10773
10774
10775
10776echo $ac_n "checking for ut_type in struct utmp""... $ac_c" 1>&6
10777echo "configure:10778: checking for ut_type in struct utmp" >&5
10778if eval "test \"`echo '$''{'ac_cv_type_struct_utmp_ut_type'+set}'`\" = set"; then
10779 echo $ac_n "(cached) $ac_c" 1>&6
10780else
10781
10782cat > conftest.$ac_ext <<EOF
10783#line 10784 "configure"
10784#include "confdefs.h"
10785#include <utmp.h>
10786int main() {
10787struct utmp x; x.ut_type;
10788; return 0; }
10789EOF
10790if { (eval echo configure:10791: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10791 rm -rf conftest*
10792 ac_cv_type_struct_utmp_ut_type=yes
10793else
10794 echo "configure: failed program was:" >&5
10795 cat conftest.$ac_ext >&5
10796 rm -rf conftest*
10797 ac_cv_type_struct_utmp_ut_type=no
10798fi
10799rm -f conftest*
10800fi
10801
10802echo "$ac_t""$ac_cv_type_struct_utmp_ut_type" 1>&6
10803if test "$ac_cv_type_struct_utmp_ut_type" = yes; then
10804
10805 cat >> confdefs.h <<\EOF
10806#define HAVE_STRUCT_UTMP_UT_TYPE 1
10807EOF
10808
10809
10810fi
10811
10812
10813
10814
10815echo $ac_n "checking for ut_user in struct utmp""... $ac_c" 1>&6
10816echo "configure:10817: checking for ut_user in struct utmp" >&5
10817if eval "test \"`echo '$''{'ac_cv_type_struct_utmp_ut_user'+set}'`\" = set"; then
10818 echo $ac_n "(cached) $ac_c" 1>&6
10819else
10820
10821cat > conftest.$ac_ext <<EOF
10822#line 10823 "configure"
10823#include "confdefs.h"
10824#include <utmp.h>
10825int main() {
10826struct utmp x; x.ut_user;
10827; return 0; }
10828EOF
10829if { (eval echo configure:10830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10830 rm -rf conftest*
10831 ac_cv_type_struct_utmp_ut_user=yes
10832else
10833 echo "configure: failed program was:" >&5
10834 cat conftest.$ac_ext >&5
10835 rm -rf conftest*
10836 ac_cv_type_struct_utmp_ut_user=no
10837fi
10838rm -f conftest*
10839fi
10840
10841echo "$ac_t""$ac_cv_type_struct_utmp_ut_user" 1>&6
10842if test "$ac_cv_type_struct_utmp_ut_user" = yes; then
10843
10844 cat >> confdefs.h <<\EOF
10845#define HAVE_STRUCT_UTMP_UT_USER 1
10846EOF
10847
10848
10849fi
10850
10851
10852
10853
10854echo $ac_n "checking for ut_exit in struct utmpx""... $ac_c" 1>&6
10855echo "configure:10856: checking for ut_exit in struct utmpx" >&5
10856if eval "test \"`echo '$''{'ac_cv_type_struct_utmpx_ut_exit'+set}'`\" = set"; then
10857 echo $ac_n "(cached) $ac_c" 1>&6
10858else
10859
10860cat > conftest.$ac_ext <<EOF
10861#line 10862 "configure"
10862#include "confdefs.h"
10863#include <utmpx.h>
10864int main() {
10865struct utmpx x; x.ut_exit;
10866; return 0; }
10867EOF
10868if { (eval echo configure:10869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10869 rm -rf conftest*
10870 ac_cv_type_struct_utmpx_ut_exit=yes
10871else
10872 echo "configure: failed program was:" >&5
10873 cat conftest.$ac_ext >&5
10874 rm -rf conftest*
10875 ac_cv_type_struct_utmpx_ut_exit=no
10876fi
10877rm -f conftest*
10878fi
10879
10880echo "$ac_t""$ac_cv_type_struct_utmpx_ut_exit" 1>&6
10881if test "$ac_cv_type_struct_utmpx_ut_exit" = yes; then
10882
10883 cat >> confdefs.h <<\EOF
10884#define HAVE_STRUCT_UTMPX_UT_EXIT 1
10885EOF
10886
10887
10888fi
10889
10890
10891
10892
10893echo $ac_n "checking for ut_syslen in struct utmpx""... $ac_c" 1>&6
10894echo "configure:10895: checking for ut_syslen in struct utmpx" >&5
10895if eval "test \"`echo '$''{'ac_cv_type_struct_utmpx_ut_syslen'+set}'`\" = set"; then
10896 echo $ac_n "(cached) $ac_c" 1>&6
10897else
10898
10899cat > conftest.$ac_ext <<EOF
10900#line 10901 "configure"
10901#include "confdefs.h"
10902#include <utmpx.h>
10903int main() {
10904struct utmpx x; x.ut_syslen;
10905; return 0; }
10906EOF
10907if { (eval echo configure:10908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10908 rm -rf conftest*
10909 ac_cv_type_struct_utmpx_ut_syslen=yes
10910else
10911 echo "configure: failed program was:" >&5
10912 cat conftest.$ac_ext >&5
10913 rm -rf conftest*
10914 ac_cv_type_struct_utmpx_ut_syslen=no
10915fi
10916rm -f conftest*
10917fi
10918
10919echo "$ac_t""$ac_cv_type_struct_utmpx_ut_syslen" 1>&6
10920if test "$ac_cv_type_struct_utmpx_ut_syslen" = yes; then
10921
10922 cat >> confdefs.h <<\EOF
10923#define HAVE_STRUCT_UTMPX_UT_SYSLEN 1
10924EOF
10925
10926
10927fi
10928
10929
10930
10931
10932
10933
10934echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
10935echo "configure:10936: checking for tm_gmtoff in struct tm" >&5
10936if eval "test \"`echo '$''{'ac_cv_type_struct_tm_tm_gmtoff'+set}'`\" = set"; then
10937 echo $ac_n "(cached) $ac_c" 1>&6
10938else
10939
10940cat > conftest.$ac_ext <<EOF
10941#line 10942 "configure"
10942#include "confdefs.h"
10943#include <time.h>
10944int main() {
10945struct tm x; x.tm_gmtoff;
10946; return 0; }
10947EOF
10948if { (eval echo configure:10949: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10949 rm -rf conftest*
10950 ac_cv_type_struct_tm_tm_gmtoff=yes
10951else
10952 echo "configure: failed program was:" >&5
10953 cat conftest.$ac_ext >&5
10954 rm -rf conftest*
10955 ac_cv_type_struct_tm_tm_gmtoff=no
10956fi
10957rm -f conftest*
10958fi
10959
10960echo "$ac_t""$ac_cv_type_struct_tm_tm_gmtoff" 1>&6
10961if test "$ac_cv_type_struct_tm_tm_gmtoff" = yes; then
10962
10963 cat >> confdefs.h <<\EOF
10964#define HAVE_STRUCT_TM_TM_GMTOFF 1
10965EOF
10966
10967
10968fi
10969
10970
10971
10972
10973echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
10974echo "configure:10975: checking for tm_zone in struct tm" >&5
10975if eval "test \"`echo '$''{'ac_cv_type_struct_tm_tm_zone'+set}'`\" = set"; then
10976 echo $ac_n "(cached) $ac_c" 1>&6
10977else
10978
10979cat > conftest.$ac_ext <<EOF
10980#line 10981 "configure"
10981#include "confdefs.h"
10982#include <time.h>
10983int main() {
10984struct tm x; x.tm_zone;
10985; return 0; }
10986EOF
10987if { (eval echo configure:10988: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10988 rm -rf conftest*
10989 ac_cv_type_struct_tm_tm_zone=yes
10990else
10991 echo "configure: failed program was:" >&5
10992 cat conftest.$ac_ext >&5
10993 rm -rf conftest*
10994 ac_cv_type_struct_tm_tm_zone=no
10995fi
10996rm -f conftest*
10997fi
10998
10999echo "$ac_t""$ac_cv_type_struct_tm_tm_zone" 1>&6
11000if test "$ac_cv_type_struct_tm_tm_zone" = yes; then
11001
11002 cat >> confdefs.h <<\EOF
11003#define HAVE_STRUCT_TM_TM_ZONE 1
11004EOF
11005
11006
11007fi
11008
11009
11010
11011
11012
11013echo $ac_n "checking for timezone""... $ac_c" 1>&6
11014echo "configure:11015: checking for timezone" >&5
11015if eval "test \"`echo '$''{'ac_cv_var_timezone'+set}'`\" = set"; then
11016 echo $ac_n "(cached) $ac_c" 1>&6
11017else
11018
11019cat > conftest.$ac_ext <<EOF
11020#line 11021 "configure"
11021#include "confdefs.h"
11022extern int timezone;
11023int foo() { return timezone; }
11024int main() {
11025foo()
11026; return 0; }
11027EOF
11028if { (eval echo configure:11029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11029 rm -rf conftest*
11030 ac_cv_var_timezone=yes
11031else
11032 echo "configure: failed program was:" >&5
11033 cat conftest.$ac_ext >&5
11034 rm -rf conftest*
11035 ac_cv_var_timezone=no
11036fi
11037rm -f conftest*
11038
11039fi
11040
11041
11042
11043echo "$ac_t""`eval echo \\$ac_cv_var_timezone`" 1>&6
11044if test `eval echo \\$ac_cv_var_timezone` = yes; then
11045 cat >> confdefs.h <<EOF
11046#define HAVE_TIMEZONE 1
11047EOF
11048
11049
11050echo $ac_n "checking if timezone is properly declared""... $ac_c" 1>&6
11051echo "configure:11052: checking if timezone is properly declared" >&5
11052if eval "test \"`echo '$''{'ac_cv_var_timezone_declaration'+set}'`\" = set"; then
11053 echo $ac_n "(cached) $ac_c" 1>&6
11054else
11055
11056cat > conftest.$ac_ext <<EOF
11057#line 11058 "configure"
11058#include "confdefs.h"
11059#include <time.h>
11060extern struct { int foo; } timezone;
11061int main() {
11062timezone.foo = 1;
11063; return 0; }
11064EOF
11065if { (eval echo configure:11066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11066 rm -rf conftest*
11067 eval "ac_cv_var_timezone_declaration=no"
11068else
11069 echo "configure: failed program was:" >&5
11070 cat conftest.$ac_ext >&5
11071 rm -rf conftest*
11072 eval "ac_cv_var_timezone_declaration=yes"
11073fi
11074rm -f conftest*
11075
11076fi
11077
11078
11079
11080
11081echo "$ac_t""$ac_cv_var_timezone_declaration" 1>&6
11082if eval "test \"\$ac_cv_var_timezone_declaration\" = yes"; then
11083 cat >> confdefs.h <<\EOF
11084#define HAVE_TIMEZONE_DECLARATION 1
11085EOF
11086
11087fi
11088
11089
11090fi
11091
11092
11093
11094
11095
11096cv=`echo "sa_family_t" | sed 'y%./+- %__p__%'`
11097echo $ac_n "checking for sa_family_t""... $ac_c" 1>&6
11098echo "configure:11099: checking for sa_family_t" >&5
11099if eval "test \"`echo '$''{'ac_cv_type_$cv'+set}'`\" = set"; then
11100 echo $ac_n "(cached) $ac_c" 1>&6
11101else
11102 cat > conftest.$ac_ext <<EOF
11103#line 11104 "configure"
11104#include "confdefs.h"
11105#include <sys/types.h>
11106#if STDC_HEADERS
11107#include <stdlib.h>
11108#include <stddef.h>
11109#endif
11110#include <sys/socket.h>
11111int main() {
11112sa_family_t foo;
11113; return 0; }
11114EOF
11115if { (eval echo configure:11116: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11116 rm -rf conftest*
11117 eval "ac_cv_type_$cv=yes"
11118else
11119 echo "configure: failed program was:" >&5
11120 cat conftest.$ac_ext >&5
11121 rm -rf conftest*
11122 eval "ac_cv_type_$cv=no"
11123fi
11124rm -f conftest*
11125fi
11126echo "$ac_t""`eval echo \\$ac_cv_type_$cv`" 1>&6
11127if test `eval echo \\$ac_cv_type_$cv` = yes; then
11128 ac_tr_hdr=HAVE_`echo sa_family_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
11129
11130: << END
11131@@@funcs="$funcs sa_family_t"@@@
11132END
11133
11134 cat >> confdefs.h <<EOF
11135#define $ac_tr_hdr 1
11136EOF
11137
11138fi
11139
11140
11141
11142
11143cv=`echo "socklen_t" | sed 'y%./+- %__p__%'`
11144echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
11145echo "configure:11146: checking for socklen_t" >&5
11146if eval "test \"`echo '$''{'ac_cv_type_$cv'+set}'`\" = set"; then
11147 echo $ac_n "(cached) $ac_c" 1>&6
11148else
11149 cat > conftest.$ac_ext <<EOF
11150#line 11151 "configure"
11151#include "confdefs.h"
11152#include <sys/types.h>
11153#if STDC_HEADERS
11154#include <stdlib.h>
11155#include <stddef.h>
11156#endif
11157#include <sys/socket.h>
11158int main() {
11159socklen_t foo;
11160; return 0; }
11161EOF
11162if { (eval echo configure:11163: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11163 rm -rf conftest*
11164 eval "ac_cv_type_$cv=yes"
11165else
11166 echo "configure: failed program was:" >&5
11167 cat conftest.$ac_ext >&5
11168 rm -rf conftest*
11169 eval "ac_cv_type_$cv=no"
11170fi
11171rm -f conftest*
11172fi
11173echo "$ac_t""`eval echo \\$ac_cv_type_$cv`" 1>&6
11174if test `eval echo \\$ac_cv_type_$cv` = yes; then
11175 ac_tr_hdr=HAVE_`echo socklen_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
11176
11177: << END
11178@@@funcs="$funcs socklen_t"@@@
11179END
11180
11181 cat >> confdefs.h <<EOF
11182#define $ac_tr_hdr 1
11183EOF
11184
11185fi
11186
11187
11188
11189
11190cv=`echo "struct sockaddr" | sed 'y%./+- %__p__%'`
11191echo $ac_n "checking for struct sockaddr""... $ac_c" 1>&6
11192echo "configure:11193: checking for struct sockaddr" >&5
11193if eval "test \"`echo '$''{'ac_cv_type_$cv'+set}'`\" = set"; then
11194 echo $ac_n "(cached) $ac_c" 1>&6
11195else
11196 cat > conftest.$ac_ext <<EOF
11197#line 11198 "configure"
11198#include "confdefs.h"
11199#include <sys/types.h>
11200#if STDC_HEADERS
11201#include <stdlib.h>
11202#include <stddef.h>
11203#endif
11204#include <sys/socket.h>
11205int main() {
11206struct sockaddr foo;
11207; return 0; }
11208EOF
11209if { (eval echo configure:11210: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11210 rm -rf conftest*
11211 eval "ac_cv_type_$cv=yes"
11212else
11213 echo "configure: failed program was:" >&5
11214 cat conftest.$ac_ext >&5
11215 rm -rf conftest*
11216 eval "ac_cv_type_$cv=no"
11217fi
11218rm -f conftest*
11219fi
11220echo "$ac_t""`eval echo \\$ac_cv_type_$cv`" 1>&6
11221if test `eval echo \\$ac_cv_type_$cv` = yes; then
11222 ac_tr_hdr=HAVE_`echo struct sockaddr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
11223
11224: << END
11225@@@funcs="$funcs struct_sockaddr"@@@
11226END
11227
11228 cat >> confdefs.h <<EOF
11229#define $ac_tr_hdr 1
11230EOF
11231
11232fi
11233
11234
11235
11236
11237cv=`echo "struct sockaddr_storage" | sed 'y%./+- %__p__%'`
11238echo $ac_n "checking for struct sockaddr_storage""... $ac_c" 1>&6
11239echo "configure:11240: checking for struct sockaddr_storage" >&5
11240if eval "test \"`echo '$''{'ac_cv_type_$cv'+set}'`\" = set"; then
11241 echo $ac_n "(cached) $ac_c" 1>&6
11242else
11243 cat > conftest.$ac_ext <<EOF
11244#line 11245 "configure"
11245#include "confdefs.h"
11246#include <sys/types.h>
11247#if STDC_HEADERS
11248#include <stdlib.h>
11249#include <stddef.h>
11250#endif
11251#include <sys/socket.h>
11252int main() {
11253struct sockaddr_storage foo;
11254; return 0; }
11255EOF
11256if { (eval echo configure:11257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11257 rm -rf conftest*
11258 eval "ac_cv_type_$cv=yes"
11259else
11260 echo "configure: failed program was:" >&5
11261 cat conftest.$ac_ext >&5
11262 rm -rf conftest*
11263 eval "ac_cv_type_$cv=no"
11264fi
11265rm -f conftest*
11266fi
11267echo "$ac_t""`eval echo \\$ac_cv_type_$cv`" 1>&6
11268if test `eval echo \\$ac_cv_type_$cv` = yes; then
11269 ac_tr_hdr=HAVE_`echo struct sockaddr_storage | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
11270
11271: << END
11272@@@funcs="$funcs struct_sockaddr_storage"@@@
11273END
11274
11275 cat >> confdefs.h <<EOF
11276#define $ac_tr_hdr 1
11277EOF
11278
11279fi
11280
11281
11282
11283
11284cv=`echo "struct addrinfo" | sed 'y%./+- %__p__%'`
11285echo $ac_n "checking for struct addrinfo""... $ac_c" 1>&6
11286echo "configure:11287: checking for struct addrinfo" >&5
11287if eval "test \"`echo '$''{'ac_cv_type_$cv'+set}'`\" = set"; then
11288 echo $ac_n "(cached) $ac_c" 1>&6
11289else
11290 cat > conftest.$ac_ext <<EOF
11291#line 11292 "configure"
11292#include "confdefs.h"
11293#include <sys/types.h>
11294#if STDC_HEADERS
11295#include <stdlib.h>
11296#include <stddef.h>
11297#endif
11298#include <netdb.h>
11299int main() {
11300struct addrinfo foo;
11301; return 0; }
11302EOF
11303if { (eval echo configure:11304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11304 rm -rf conftest*
11305 eval "ac_cv_type_$cv=yes"
11306else
11307 echo "configure: failed program was:" >&5
11308 cat conftest.$ac_ext >&5
11309 rm -rf conftest*
11310 eval "ac_cv_type_$cv=no"
11311fi
11312rm -f conftest*
11313fi
11314echo "$ac_t""`eval echo \\$ac_cv_type_$cv`" 1>&6
11315if test `eval echo \\$ac_cv_type_$cv` = yes; then
11316 ac_tr_hdr=HAVE_`echo struct addrinfo | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
11317
11318: << END
11319@@@funcs="$funcs struct_addrinfo"@@@
11320END
11321
11322 cat >> confdefs.h <<EOF
11323#define $ac_tr_hdr 1
11324EOF
11325
11326fi
11327
11328
11329
11330
11331echo $ac_n "checking for struct winsize""... $ac_c" 1>&6
11332echo "configure:11333: checking for struct winsize" >&5
11333if eval "test \"`echo '$''{'ac_cv_struct_winsize'+set}'`\" = set"; then
11334 echo $ac_n "(cached) $ac_c" 1>&6
11335else
11336
11337ac_cv_struct_winsize=no
11338for i in sys/termios.h sys/ioctl.h; do
11339cat > conftest.$ac_ext <<EOF
11340#line 11341 "configure"
11341#include "confdefs.h"
11342#include <$i>
11343EOF
11344if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11345 egrep "struct[ ]*winsize" >/dev/null 2>&1; then
11346 rm -rf conftest*
11347 ac_cv_struct_winsize=yes; break
11348fi
11349rm -f conftest*
11350done
11351
11352fi
11353
11354if test "$ac_cv_struct_winsize" = "yes"; then
11355 cat >> confdefs.h <<\EOF
11356#define HAVE_STRUCT_WINSIZE 1
11357EOF
11358
11359fi
11360echo "$ac_t""$ac_cv_struct_winsize" 1>&6
11361cat > conftest.$ac_ext <<EOF
11362#line 11363 "configure"
11363#include "confdefs.h"
11364#include <termios.h>
11365EOF
11366if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11367 egrep "ws_xpixel" >/dev/null 2>&1; then
11368 rm -rf conftest*
11369 cat >> confdefs.h <<\EOF
11370#define HAVE_WS_XPIXEL 1
11371EOF
11372
11373fi
11374rm -f conftest*
11375
11376cat > conftest.$ac_ext <<EOF
11377#line 11378 "configure"
11378#include "confdefs.h"
11379#include <termios.h>
11380EOF
11381if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11382 egrep "ws_ypixel" >/dev/null 2>&1; then
11383 rm -rf conftest*
11384 cat >> confdefs.h <<\EOF
11385#define HAVE_WS_YPIXEL 1
11386EOF
11387
11388fi
11389rm -f conftest*
11390
11391
11392
11393
11394
11395echo $ac_n "checking for struct spwd""... $ac_c" 1>&6
11396echo "configure:11397: checking for struct spwd" >&5
11397if eval "test \"`echo '$''{'ac_cv_struct_spwd'+set}'`\" = set"; then
11398 echo $ac_n "(cached) $ac_c" 1>&6
11399else
11400
11401cat > conftest.$ac_ext <<EOF
11402#line 11403 "configure"
11403#include "confdefs.h"
11404#include <pwd.h>
11405#ifdef HAVE_SHADOW_H
11406#include <shadow.h>
11407#endif
11408int main() {
11409struct spwd foo;
11410; return 0; }
11411EOF
11412if { (eval echo configure:11413: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11413 rm -rf conftest*
11414 ac_cv_struct_spwd=yes
11415else
11416 echo "configure: failed program was:" >&5
11417 cat conftest.$ac_ext >&5
11418 rm -rf conftest*
11419 ac_cv_struct_spwd=no
11420fi
11421rm -f conftest*
11422
11423fi
11424
11425echo "$ac_t""$ac_cv_struct_spwd" 1>&6
11426
11427if test "$ac_cv_struct_spwd" = "yes"; then
11428 cat >> confdefs.h <<\EOF
11429#define HAVE_STRUCT_SPWD 1
11430EOF
11431
11432fi
11433
11434
11435
11436
11437
11438echo $ac_n "checking for sa_len in struct sockaddr""... $ac_c" 1>&6
11439echo "configure:11440: checking for sa_len in struct sockaddr" >&5
11440if eval "test \"`echo '$''{'ac_cv_type_struct_sockaddr_sa_len'+set}'`\" = set"; then
11441 echo $ac_n "(cached) $ac_c" 1>&6
11442else
11443
11444cat > conftest.$ac_ext <<EOF
11445#line 11446 "configure"
11446#include "confdefs.h"
11447#include <sys/types.h>
11448#include <sys/socket.h>
11449int main() {
11450struct sockaddr x; x.sa_len;
11451; return 0; }
11452EOF
11453if { (eval echo configure:11454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11454 rm -rf conftest*
11455 ac_cv_type_struct_sockaddr_sa_len=yes
11456else
11457 echo "configure: failed program was:" >&5
11458 cat conftest.$ac_ext >&5
11459 rm -rf conftest*
11460 ac_cv_type_struct_sockaddr_sa_len=no
11461fi
11462rm -f conftest*
11463fi
11464
11465echo "$ac_t""$ac_cv_type_struct_sockaddr_sa_len" 1>&6
11466if test "$ac_cv_type_struct_sockaddr_sa_len" = yes; then
11467
11468 cat >> confdefs.h <<\EOF
11469#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
11470EOF
11471
11472
11473fi
11474
11475
11476
11477
11478
11479for i in int8_t int16_t int32_t int64_t; do
11480 echo $ac_n "checking for $i""... $ac_c" 1>&6
11481echo "configure:11482: checking for $i" >&5
11482
11483if eval "test \"`echo '$''{'ac_cv_type_$i'+set}'`\" = set"; then
11484 echo $ac_n "(cached) $ac_c" 1>&6
11485else
11486 cat > conftest.$ac_ext <<EOF
11487#line 11488 "configure"
11488#include "confdefs.h"
11489
11490#ifdef HAVE_INTTYPES_H
11491#include <inttypes.h>
11492#endif
11493#ifdef HAVE_SYS_TYPES_H
11494#include <sys/types.h>
11495#endif
11496#ifdef HAVE_SYS_BITYPES_H
11497#include <sys/bitypes.h>
11498#endif
11499#ifdef HAVE_BIND_BITYPES_H
11500#include <bind/bitypes.h>
11501#endif
11502#ifdef HAVE_NETINET_IN6_MACHTYPES_H
11503#include <netinet/in6_machtypes.h>
11504#endif
11505
11506int main() {
11507$i x;
11508
11509; return 0; }
11510EOF
11511if { (eval echo configure:11512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11512 rm -rf conftest*
11513 eval ac_cv_type_$i=yes
11514else
11515 echo "configure: failed program was:" >&5
11516 cat conftest.$ac_ext >&5
11517 rm -rf conftest*
11518 eval ac_cv_type_$i=no
11519fi
11520rm -f conftest*
11521fi
11522
11523 eval ac_res=\$ac_cv_type_$i
11524 if test "$ac_res" = yes; then
11525 type=HAVE_`echo $i | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
11526 cat >> confdefs.h <<EOF
11527#define $type 1
11528EOF
11529
11530 fi
11531 echo "$ac_t""$ac_res" 1>&6
11532done
11533
11534
11535for i in u_int8_t u_int16_t u_int32_t u_int64_t; do
11536 echo $ac_n "checking for $i""... $ac_c" 1>&6
11537echo "configure:11538: checking for $i" >&5
11538
11539if eval "test \"`echo '$''{'ac_cv_type_$i'+set}'`\" = set"; then
11540 echo $ac_n "(cached) $ac_c" 1>&6
11541else
11542 cat > conftest.$ac_ext <<EOF
11543#line 11544 "configure"
11544#include "confdefs.h"
11545
11546#ifdef HAVE_INTTYPES_H
11547#include <inttypes.h>
11548#endif
11549#ifdef HAVE_SYS_TYPES_H
11550#include <sys/types.h>
11551#endif
11552#ifdef HAVE_SYS_BITYPES_H
11553#include <sys/bitypes.h>
11554#endif
11555#ifdef HAVE_BIND_BITYPES_H
11556#include <bind/bitypes.h>
11557#endif
11558#ifdef HAVE_NETINET_IN6_MACHTYPES_H
11559#include <netinet/in6_machtypes.h>
11560#endif
11561
11562int main() {
11563$i x;
11564
11565; return 0; }
11566EOF
11567if { (eval echo configure:11568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11568 rm -rf conftest*
11569 eval ac_cv_type_$i=yes
11570else
11571 echo "configure: failed program was:" >&5
11572 cat conftest.$ac_ext >&5
11573 rm -rf conftest*
11574 eval ac_cv_type_$i=no
11575fi
11576rm -f conftest*
11577fi
11578
11579 eval ac_res=\$ac_cv_type_$i
11580 if test "$ac_res" = yes; then
11581 type=HAVE_`echo $i | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
11582 cat >> confdefs.h <<EOF
11583#define $type 1
11584EOF
11585
11586 fi
11587 echo "$ac_t""$ac_res" 1>&6
11588done
11589
11590
11591
11592
11593
11594
11595echo $ac_n "checking for MD4Init""... $ac_c" 1>&6
11596echo "configure:11597: checking for MD4Init" >&5
11597if eval "test \"`echo '$''{'ac_cv_funclib_MD4Init'+set}'`\" = set"; then
11598 echo $ac_n "(cached) $ac_c" 1>&6
11599else
11600
11601if eval "test \"\$ac_cv_func_MD4Init\" != yes" ; then
11602 ac_save_LIBS="$LIBS"
11603 for ac_lib in "" crypto; do
11604 if test -n "$ac_lib"; then
11605 ac_lib="-l$ac_lib"
11606 else
11607 ac_lib=""
11608 fi
11609 LIBS=" $ac_lib $ac_save_LIBS"
11610 cat > conftest.$ac_ext <<EOF
11611#line 11612 "configure"
11612#include "confdefs.h"
11613
11614int main() {
11615MD4Init()
11616; return 0; }
11617EOF
11618if { (eval echo configure:11619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11619 rm -rf conftest*
11620 eval "if test -n \"$ac_lib\";then ac_cv_funclib_MD4Init=$ac_lib; else ac_cv_funclib_MD4Init=yes; fi";break
11621else
11622 echo "configure: failed program was:" >&5
11623 cat conftest.$ac_ext >&5
11624fi
11625rm -f conftest*
11626 done
11627 eval "ac_cv_funclib_MD4Init=\${ac_cv_funclib_MD4Init-no}"
11628 LIBS="$ac_save_LIBS"
11629fi
11630
11631fi
11632
11633
11634eval "ac_res=\$ac_cv_funclib_MD4Init"
11635
11636: << END
11637@@@funcs="$funcs MD4Init"@@@
11638@@@libs="$libs "" crypto"@@@
11639END
11640
11641# MD4Init
11642eval "ac_tr_func=HAVE_`echo MD4Init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11643eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11644eval "LIB_MD4Init=$ac_res"
11645
11646case "$ac_res" in
11647 yes)
11648 eval "ac_cv_func_MD4Init=yes"
11649 eval "LIB_MD4Init="
11650 cat >> confdefs.h <<EOF
11651#define $ac_tr_func 1
11652EOF
11653
11654 echo "$ac_t""yes" 1>&6
11655 ;;
11656 no)
11657 eval "ac_cv_func_MD4Init=no"
11658 eval "LIB_MD4Init="
11659 echo "$ac_t""no" 1>&6
11660 ;;
11661 *)
11662 eval "ac_cv_func_MD4Init=yes"
11663 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
11664 cat >> confdefs.h <<EOF
11665#define $ac_tr_func 1
11666EOF
11667
11668 cat >> confdefs.h <<EOF
11669#define $ac_tr_lib 1
11670EOF
11671
11672 echo "$ac_t""yes, in $ac_res" 1>&6
11673 ;;
11674esac
11675
11676
11677
11678
11679
11680echo $ac_n "checking for MD4_Init""... $ac_c" 1>&6
11681echo "configure:11682: checking for MD4_Init" >&5
11682if eval "test \"`echo '$''{'ac_cv_funclib_MD4_Init'+set}'`\" = set"; then
11683 echo $ac_n "(cached) $ac_c" 1>&6
11684else
11685
11686if eval "test \"\$ac_cv_func_MD4_Init\" != yes" ; then
11687 ac_save_LIBS="$LIBS"
11688 for ac_lib in "" crypto; do
11689 if test -n "$ac_lib"; then
11690 ac_lib="-l$ac_lib"
11691 else
11692 ac_lib=""
11693 fi
11694 LIBS=" $ac_lib $ac_save_LIBS"
11695 cat > conftest.$ac_ext <<EOF
11696#line 11697 "configure"
11697#include "confdefs.h"
11698
11699int main() {
11700MD4_Init()
11701; return 0; }
11702EOF
11703if { (eval echo configure:11704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11704 rm -rf conftest*
11705 eval "if test -n \"$ac_lib\";then ac_cv_funclib_MD4_Init=$ac_lib; else ac_cv_funclib_MD4_Init=yes; fi";break
11706else
11707 echo "configure: failed program was:" >&5
11708 cat conftest.$ac_ext >&5
11709fi
11710rm -f conftest*
11711 done
11712 eval "ac_cv_funclib_MD4_Init=\${ac_cv_funclib_MD4_Init-no}"
11713 LIBS="$ac_save_LIBS"
11714fi
11715
11716fi
11717
11718
11719eval "ac_res=\$ac_cv_funclib_MD4_Init"
11720
11721: << END
11722@@@funcs="$funcs MD4_Init"@@@
11723@@@libs="$libs "" crypto"@@@
11724END
11725
11726# MD4_Init
11727eval "ac_tr_func=HAVE_`echo MD4_Init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11728eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11729eval "LIB_MD4_Init=$ac_res"
11730
11731case "$ac_res" in
11732 yes)
11733 eval "ac_cv_func_MD4_Init=yes"
11734 eval "LIB_MD4_Init="
11735 cat >> confdefs.h <<EOF
11736#define $ac_tr_func 1
11737EOF
11738
11739 echo "$ac_t""yes" 1>&6
11740 ;;
11741 no)
11742 eval "ac_cv_func_MD4_Init=no"
11743 eval "LIB_MD4_Init="
11744 echo "$ac_t""no" 1>&6
11745 ;;
11746 *)
11747 eval "ac_cv_func_MD4_Init=yes"
11748 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
11749 cat >> confdefs.h <<EOF
11750#define $ac_tr_func 1
11751EOF
11752
11753 cat >> confdefs.h <<EOF
11754#define $ac_tr_lib 1
11755EOF
11756
11757 echo "$ac_t""yes, in $ac_res" 1>&6
11758 ;;
11759esac
11760
11761
11762
11763
11764
11765echo $ac_n "checking for MD5Init""... $ac_c" 1>&6
11766echo "configure:11767: checking for MD5Init" >&5
11767if eval "test \"`echo '$''{'ac_cv_funclib_MD5Init'+set}'`\" = set"; then
11768 echo $ac_n "(cached) $ac_c" 1>&6
11769else
11770
11771if eval "test \"\$ac_cv_func_MD5Init\" != yes" ; then
11772 ac_save_LIBS="$LIBS"
11773 for ac_lib in "" crypto; do
11774 if test -n "$ac_lib"; then
11775 ac_lib="-l$ac_lib"
11776 else
11777 ac_lib=""
11778 fi
11779 LIBS=" $ac_lib $ac_save_LIBS"
11780 cat > conftest.$ac_ext <<EOF
11781#line 11782 "configure"
11782#include "confdefs.h"
11783
11784int main() {
11785MD5Init()
11786; return 0; }
11787EOF
11788if { (eval echo configure:11789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11789 rm -rf conftest*
11790 eval "if test -n \"$ac_lib\";then ac_cv_funclib_MD5Init=$ac_lib; else ac_cv_funclib_MD5Init=yes; fi";break
11791else
11792 echo "configure: failed program was:" >&5
11793 cat conftest.$ac_ext >&5
11794fi
11795rm -f conftest*
11796 done
11797 eval "ac_cv_funclib_MD5Init=\${ac_cv_funclib_MD5Init-no}"
11798 LIBS="$ac_save_LIBS"
11799fi
11800
11801fi
11802
11803
11804eval "ac_res=\$ac_cv_funclib_MD5Init"
11805
11806: << END
11807@@@funcs="$funcs MD5Init"@@@
11808@@@libs="$libs "" crypto"@@@
11809END
11810
11811# MD5Init
11812eval "ac_tr_func=HAVE_`echo MD5Init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11813eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11814eval "LIB_MD5Init=$ac_res"
11815
11816case "$ac_res" in
11817 yes)
11818 eval "ac_cv_func_MD5Init=yes"
11819 eval "LIB_MD5Init="
11820 cat >> confdefs.h <<EOF
11821#define $ac_tr_func 1
11822EOF
11823
11824 echo "$ac_t""yes" 1>&6
11825 ;;
11826 no)
11827 eval "ac_cv_func_MD5Init=no"
11828 eval "LIB_MD5Init="
11829 echo "$ac_t""no" 1>&6
11830 ;;
11831 *)
11832 eval "ac_cv_func_MD5Init=yes"
11833 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
11834 cat >> confdefs.h <<EOF
11835#define $ac_tr_func 1
11836EOF
11837
11838 cat >> confdefs.h <<EOF
11839#define $ac_tr_lib 1
11840EOF
11841
11842 echo "$ac_t""yes, in $ac_res" 1>&6
11843 ;;
11844esac
11845
11846
11847
11848
11849
11850echo $ac_n "checking for MD5_Init""... $ac_c" 1>&6
11851echo "configure:11852: checking for MD5_Init" >&5
11852if eval "test \"`echo '$''{'ac_cv_funclib_MD5_Init'+set}'`\" = set"; then
11853 echo $ac_n "(cached) $ac_c" 1>&6
11854else
11855
11856if eval "test \"\$ac_cv_func_MD5_Init\" != yes" ; then
11857 ac_save_LIBS="$LIBS"
11858 for ac_lib in "" crypto; do
11859 if test -n "$ac_lib"; then
11860 ac_lib="-l$ac_lib"
11861 else
11862 ac_lib=""
11863 fi
11864 LIBS=" $ac_lib $ac_save_LIBS"
11865 cat > conftest.$ac_ext <<EOF
11866#line 11867 "configure"
11867#include "confdefs.h"
11868
11869int main() {
11870MD5_Init()
11871; return 0; }
11872EOF
11873if { (eval echo configure:11874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11874 rm -rf conftest*
11875 eval "if test -n \"$ac_lib\";then ac_cv_funclib_MD5_Init=$ac_lib; else ac_cv_funclib_MD5_Init=yes; fi";break
11876else
11877 echo "configure: failed program was:" >&5
11878 cat conftest.$ac_ext >&5
11879fi
11880rm -f conftest*
11881 done
11882 eval "ac_cv_funclib_MD5_Init=\${ac_cv_funclib_MD5_Init-no}"
11883 LIBS="$ac_save_LIBS"
11884fi
11885
11886fi
11887
11888
11889eval "ac_res=\$ac_cv_funclib_MD5_Init"
11890
11891: << END
11892@@@funcs="$funcs MD5_Init"@@@
11893@@@libs="$libs "" crypto"@@@
11894END
11895
11896# MD5_Init
11897eval "ac_tr_func=HAVE_`echo MD5_Init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11898eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11899eval "LIB_MD5_Init=$ac_res"
11900
11901case "$ac_res" in
11902 yes)
11903 eval "ac_cv_func_MD5_Init=yes"
11904 eval "LIB_MD5_Init="
11905 cat >> confdefs.h <<EOF
11906#define $ac_tr_func 1
11907EOF
11908
11909 echo "$ac_t""yes" 1>&6
11910 ;;
11911 no)
11912 eval "ac_cv_func_MD5_Init=no"
11913 eval "LIB_MD5_Init="
11914 echo "$ac_t""no" 1>&6
11915 ;;
11916 *)
11917 eval "ac_cv_func_MD5_Init=yes"
11918 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
11919 cat >> confdefs.h <<EOF
11920#define $ac_tr_func 1
11921EOF
11922
11923 cat >> confdefs.h <<EOF
11924#define $ac_tr_lib 1
11925EOF
11926
11927 echo "$ac_t""yes, in $ac_res" 1>&6
11928 ;;
11929esac
11930
11931
11932
11933
11934
11935echo $ac_n "checking for SHA1Init""... $ac_c" 1>&6
11936echo "configure:11937: checking for SHA1Init" >&5
11937if eval "test \"`echo '$''{'ac_cv_funclib_SHA1Init'+set}'`\" = set"; then
11938 echo $ac_n "(cached) $ac_c" 1>&6
11939else
11940
11941if eval "test \"\$ac_cv_func_SHA1Init\" != yes" ; then
11942 ac_save_LIBS="$LIBS"
11943 for ac_lib in "" crypto; do
11944 if test -n "$ac_lib"; then
11945 ac_lib="-l$ac_lib"
11946 else
11947 ac_lib=""
11948 fi
11949 LIBS=" $ac_lib $ac_save_LIBS"
11950 cat > conftest.$ac_ext <<EOF
11951#line 11952 "configure"
11952#include "confdefs.h"
11953
11954int main() {
11955SHA1Init()
11956; return 0; }
11957EOF
11958if { (eval echo configure:11959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11959 rm -rf conftest*
11960 eval "if test -n \"$ac_lib\";then ac_cv_funclib_SHA1Init=$ac_lib; else ac_cv_funclib_SHA1Init=yes; fi";break
11961else
11962 echo "configure: failed program was:" >&5
11963 cat conftest.$ac_ext >&5
11964fi
11965rm -f conftest*
11966 done
11967 eval "ac_cv_funclib_SHA1Init=\${ac_cv_funclib_SHA1Init-no}"
11968 LIBS="$ac_save_LIBS"
11969fi
11970
11971fi
11972
11973
11974eval "ac_res=\$ac_cv_funclib_SHA1Init"
11975
11976: << END
11977@@@funcs="$funcs SHA1Init"@@@
11978@@@libs="$libs "" crypto"@@@
11979END
11980
11981# SHA1Init
11982eval "ac_tr_func=HAVE_`echo SHA1Init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11983eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11984eval "LIB_SHA1Init=$ac_res"
11985
11986case "$ac_res" in
11987 yes)
11988 eval "ac_cv_func_SHA1Init=yes"
11989 eval "LIB_SHA1Init="
11990 cat >> confdefs.h <<EOF
11991#define $ac_tr_func 1
11992EOF
11993
11994 echo "$ac_t""yes" 1>&6
11995 ;;
11996 no)
11997 eval "ac_cv_func_SHA1Init=no"
11998 eval "LIB_SHA1Init="
11999 echo "$ac_t""no" 1>&6
12000 ;;
12001 *)
12002 eval "ac_cv_func_SHA1Init=yes"
12003 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
12004 cat >> confdefs.h <<EOF
12005#define $ac_tr_func 1
12006EOF
12007
12008 cat >> confdefs.h <<EOF
12009#define $ac_tr_lib 1
12010EOF
12011
12012 echo "$ac_t""yes, in $ac_res" 1>&6
12013 ;;
12014esac
12015
12016
12017
12018
12019
12020echo $ac_n "checking for SHA1_Init""... $ac_c" 1>&6
12021echo "configure:12022: checking for SHA1_Init" >&5
12022if eval "test \"`echo '$''{'ac_cv_funclib_SHA1_Init'+set}'`\" = set"; then
12023 echo $ac_n "(cached) $ac_c" 1>&6
12024else
12025
12026if eval "test \"\$ac_cv_func_SHA1_Init\" != yes" ; then
12027 ac_save_LIBS="$LIBS"
12028 for ac_lib in "" crypto; do
12029 if test -n "$ac_lib"; then
12030 ac_lib="-l$ac_lib"
12031 else
12032 ac_lib=""
12033 fi
12034 LIBS=" $ac_lib $ac_save_LIBS"
12035 cat > conftest.$ac_ext <<EOF
12036#line 12037 "configure"
12037#include "confdefs.h"
12038
12039int main() {
12040SHA1_Init()
12041; return 0; }
12042EOF
12043if { (eval echo configure:12044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12044 rm -rf conftest*
12045 eval "if test -n \"$ac_lib\";then ac_cv_funclib_SHA1_Init=$ac_lib; else ac_cv_funclib_SHA1_Init=yes; fi";break
12046else
12047 echo "configure: failed program was:" >&5
12048 cat conftest.$ac_ext >&5
12049fi
12050rm -f conftest*
12051 done
12052 eval "ac_cv_funclib_SHA1_Init=\${ac_cv_funclib_SHA1_Init-no}"
12053 LIBS="$ac_save_LIBS"
12054fi
12055
12056fi
12057
12058
12059eval "ac_res=\$ac_cv_funclib_SHA1_Init"
12060
12061: << END
12062@@@funcs="$funcs SHA1_Init"@@@
12063@@@libs="$libs "" crypto"@@@
12064END
12065
12066# SHA1_Init
12067eval "ac_tr_func=HAVE_`echo SHA1_Init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
12068eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
12069eval "LIB_SHA1_Init=$ac_res"
12070
12071case "$ac_res" in
12072 yes)
12073 eval "ac_cv_func_SHA1_Init=yes"
12074 eval "LIB_SHA1_Init="
12075 cat >> confdefs.h <<EOF
12076#define $ac_tr_func 1
12077EOF
12078
12079 echo "$ac_t""yes" 1>&6
12080 ;;
12081 no)
12082 eval "ac_cv_func_SHA1_Init=no"
12083 eval "LIB_SHA1_Init="
12084 echo "$ac_t""no" 1>&6
12085 ;;
12086 *)
12087 eval "ac_cv_func_SHA1_Init=yes"
12088 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
12089 cat >> confdefs.h <<EOF
12090#define $ac_tr_func 1
12091EOF
12092
12093 cat >> confdefs.h <<EOF
12094#define $ac_tr_lib 1
12095EOF
12096
12097 echo "$ac_t""yes, in $ac_res" 1>&6
12098 ;;
12099esac
12100
12101
12102
12103
12104
12105echo $ac_n "checking for des_cbc_encrypt""... $ac_c" 1>&6
12106echo "configure:12107: checking for des_cbc_encrypt" >&5
12107if eval "test \"`echo '$''{'ac_cv_funclib_des_cbc_encrypt'+set}'`\" = set"; then
12108 echo $ac_n "(cached) $ac_c" 1>&6
12109else
12110
12111if eval "test \"\$ac_cv_func_des_cbc_encrypt\" != yes" ; then
12112 ac_save_LIBS="$LIBS"
12113 for ac_lib in "" crypto des; do
12114 if test -n "$ac_lib"; then
12115 ac_lib="-l$ac_lib"
12116 else
12117 ac_lib=""
12118 fi
12119 LIBS=" $ac_lib $ac_save_LIBS"
12120 cat > conftest.$ac_ext <<EOF
12121#line 12122 "configure"
12122#include "confdefs.h"
12123
12124int main() {
12125des_cbc_encrypt()
12126; return 0; }
12127EOF
12128if { (eval echo configure:12129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12129 rm -rf conftest*
12130 eval "if test -n \"$ac_lib\";then ac_cv_funclib_des_cbc_encrypt=$ac_lib; else ac_cv_funclib_des_cbc_encrypt=yes; fi";break
12131else
12132 echo "configure: failed program was:" >&5
12133 cat conftest.$ac_ext >&5
12134fi
12135rm -f conftest*
12136 done
12137 eval "ac_cv_funclib_des_cbc_encrypt=\${ac_cv_funclib_des_cbc_encrypt-no}"
12138 LIBS="$ac_save_LIBS"
12139fi
12140
12141fi
12142
12143
12144eval "ac_res=\$ac_cv_funclib_des_cbc_encrypt"
12145
12146: << END
12147@@@funcs="$funcs des_cbc_encrypt"@@@
12148@@@libs="$libs "" crypto des"@@@
12149END
12150
12151# des_cbc_encrypt
12152eval "ac_tr_func=HAVE_`echo des_cbc_encrypt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
12153eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
12154eval "LIB_des_cbc_encrypt=$ac_res"
12155
12156case "$ac_res" in
12157 yes)
12158 eval "ac_cv_func_des_cbc_encrypt=yes"
12159 eval "LIB_des_cbc_encrypt="
12160 cat >> confdefs.h <<EOF
12161#define $ac_tr_func 1
12162EOF
12163
12164 echo "$ac_t""yes" 1>&6
12165 ;;
12166 no)
12167 eval "ac_cv_func_des_cbc_encrypt=no"
12168 eval "LIB_des_cbc_encrypt="
12169 echo "$ac_t""no" 1>&6
12170 ;;
12171 *)
12172 eval "ac_cv_func_des_cbc_encrypt=yes"
12173 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
12174 cat >> confdefs.h <<EOF
12175#define $ac_tr_func 1
12176EOF
12177
12178 cat >> confdefs.h <<EOF
12179#define $ac_tr_lib 1
12180EOF
12181
12182 echo "$ac_t""yes, in $ac_res" 1>&6
12183 ;;
12184esac
12185
12186
12187
12188
12189
12190
12191
12192
12193echo $ac_n "checking for el_init""... $ac_c" 1>&6
12194echo "configure:12195: checking for el_init" >&5
12195if eval "test \"`echo '$''{'ac_cv_funclib_el_init'+set}'`\" = set"; then
12196 echo $ac_n "(cached) $ac_c" 1>&6
12197else
12198
12199if eval "test \"\$ac_cv_func_el_init\" != yes" ; then
12200 ac_save_LIBS="$LIBS"
12201 for ac_lib in "" edit; do
12202 if test -n "$ac_lib"; then
12203 ac_lib="-l$ac_lib"
12204 else
12205 ac_lib=""
12206 fi
12207 LIBS=" $ac_lib $LIB_tgetent $ac_save_LIBS"
12208 cat > conftest.$ac_ext <<EOF
12209#line 12210 "configure"
12210#include "confdefs.h"
12211
12212int main() {
12213el_init()
12214; return 0; }
12215EOF
12216if { (eval echo configure:12217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12217 rm -rf conftest*
12218 eval "if test -n \"$ac_lib\";then ac_cv_funclib_el_init=$ac_lib; else ac_cv_funclib_el_init=yes; fi";break
12219else
12220 echo "configure: failed program was:" >&5
12221 cat conftest.$ac_ext >&5
12222fi
12223rm -f conftest*
12224 done
12225 eval "ac_cv_funclib_el_init=\${ac_cv_funclib_el_init-no}"
12226 LIBS="$ac_save_LIBS"
12227fi
12228
12229fi
12230
12231
12232eval "ac_res=\$ac_cv_funclib_el_init"
12233
12234: << END
12235@@@funcs="$funcs el_init"@@@
12236@@@libs="$libs "" edit"@@@
12237END
12238
12239# el_init
12240eval "ac_tr_func=HAVE_`echo el_init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
12241eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
12242eval "LIB_el_init=$ac_res"
12243
12244case "$ac_res" in
12245 yes)
12246 eval "ac_cv_func_el_init=yes"
12247 eval "LIB_el_init="
12248 cat >> confdefs.h <<EOF
12249#define $ac_tr_func 1
12250EOF
12251
12252 echo "$ac_t""yes" 1>&6
12253 ;;
12254 no)
12255 eval "ac_cv_func_el_init=no"
12256 eval "LIB_el_init="
12257 echo "$ac_t""no" 1>&6
12258 ;;
12259 *)
12260 eval "ac_cv_func_el_init=yes"
12261 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
12262 cat >> confdefs.h <<EOF
12263#define $ac_tr_func 1
12264EOF
12265
12266 cat >> confdefs.h <<EOF
12267#define $ac_tr_lib 1
12268EOF
12269
12270 echo "$ac_t""yes, in $ac_res" 1>&6
12271 ;;
12272esac
12273
12274
12275if test "$ac_cv_func_el_init" = yes ; then
12276 echo $ac_n "checking for four argument el_init""... $ac_c" 1>&6
12277echo "configure:12278: checking for four argument el_init" >&5
12278if eval "test \"`echo '$''{'ac_cv_func_el_init_four'+set}'`\" = set"; then
12279 echo $ac_n "(cached) $ac_c" 1>&6
12280else
12281
12282 cat > conftest.$ac_ext <<EOF
12283#line 12284 "configure"
12284#include "confdefs.h"
12285#include <stdio.h>
12286 #include <histedit.h>
12287int main() {
12288el_init("", NULL, NULL, NULL);
12289; return 0; }
12290EOF
12291if { (eval echo configure:12292: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12292 rm -rf conftest*
12293 ac_cv_func_el_init_four=yes
12294else
12295 echo "configure: failed program was:" >&5
12296 cat conftest.$ac_ext >&5
12297 rm -rf conftest*
12298 ac_cv_func_el_init_four=no
12299fi
12300rm -f conftest*
12301fi
12302
12303echo "$ac_t""$ac_cv_func_el_init_four" 1>&6
12304 if test "$ac_cv_func_el_init_four" = yes; then
12305 cat >> confdefs.h <<\EOF
12306#define HAVE_FOUR_VALUED_EL_INIT 1
12307EOF
12308
12309 fi
12310fi
12311
12312
12313ac_foo=no
12314if test "$with_readline" = yes; then
12315 :
12316elif test "$ac_cv_func_readline" = yes; then
12317 :
12318elif test "$ac_cv_func_el_init" = yes; then
12319 ac_foo=yes
12320 LIB_readline="\$(top_builddir)/lib/editline/libel_compat.a $LIB_el_init"
12321else
12322 LIB_readline='$(top_builddir)/lib/editline/libeditline.a'
12323fi
12324
12325
12326if test "$ac_foo" = yes; then
12327 el_compat_TRUE=
12328 el_compat_FALSE='#'
12329else
12330 el_compat_TRUE='#'
12331 el_compat_FALSE=
12332fi
12333if test "$readline_libdir"; then
12334 LIB_readline="-rpath $readline_libdir $LIB_readline"
12335fi
12336LIB_readline="$LIB_readline \$(LIB_tgetent)"
12337cat >> confdefs.h <<\EOF
12338#define HAVE_READLINE 1
12339EOF
12340
12341
12342cat >> confdefs.h <<\EOF
12343#define AUTHENTICATION 1
12344EOF
12345cat >> confdefs.h <<\EOF
12346#define ENCRYPTION 1
12347EOF
12348cat >> confdefs.h <<\EOF
12349#define DES_ENCRYPTION 1
12350EOF
12351cat >> confdefs.h <<\EOF
12352#define DIAGNOSTICS 1
12353EOF
12354cat >> confdefs.h <<\EOF
12355#define OLD_ENVIRON 1
12356EOF
12357if false; then
12358cat >> confdefs.h <<\EOF
12359#define ENV_HACK 1
12360EOF
12361
12362fi
12363
12364# Simple test for streamspty, based on the existance of getmsg(), alas
12365# this breaks on SunOS4 which have streams but BSD-like ptys
12366#
12367# And also something wierd has happend with dec-osf1, fallback to bsd-ptys
12368
12369echo $ac_n "checking for streamspty""... $ac_c" 1>&6
12370echo "configure:12371: checking for streamspty" >&5
12371case "$host" in
12372*-*-aix3*|*-*-sunos4*|*-*-osf*|*-*-hpux10*)
12373 krb_cv_sys_streamspty=no
12374 ;;
12375*)
12376 krb_cv_sys_streamspty="$ac_cv_func_getmsg"
12377 ;;
12378esac
12379if test "$krb_cv_sys_streamspty" = yes; then
12380 cat >> confdefs.h <<\EOF
12381#define STREAMSPTY 1
12382EOF
12383
12384fi
12385echo "$ac_t""$krb_cv_sys_streamspty" 1>&6
12386
12387
12388echo $ac_n "checking which authentication modules should be built""... $ac_c" 1>&6
12389echo "configure:12390: checking which authentication modules should be built" >&5
12390
12391LIB_AUTH_SUBDIRS=
12392
12393if test "$ac_cv_header_siad_h" = yes; then
12394 LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS sia"
12395fi
12396
12397if test "$ac_cv_header_security_pam_modules_h" = yes -a "$enable_shared" = yes; then
12398 LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS pam"
12399fi
12400
12401case "${host}" in
12402*-*-irix[56]*) LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS afskauthlib" ;;
12403esac
12404
12405echo "$ac_t""$LIB_AUTH_SUBDIRS" 1>&6
12406
12407
12408
12409
12410test "x$prefix" = xNONE && prefix=$ac_default_prefix
12411test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12412
12413for i in bin lib libexec sbin; do
12414 i=${i}dir
12415 foo=`echo $i | tr 'xindiscernible' 'XINDISCERNIBLE'`
12416 x="\$${i}"
12417 eval y="$x"
12418 while test "x$y" != "x$x"; do
12419 x="$y"
12420 eval y="$x"
12421 done
12422 cat >> confdefs.h <<EOF
12423#define $foo "$x"
12424EOF
12425
12426done
12427
12428if false; then
12429 # hack to shut up automake
12430 LIBOBJS="$LIBOBJS make-print-version.o"
12431fi
12432LTLIBOBJS=`echo "$LIBOBJS" | sed 's/\.o/\.lo/g'`
12433
12434trap '' 1 2 15
12435cat > confcache <<\EOF
12436# This file is a shell script that caches the results of configure
12437# tests run on this system so they can be shared between configure
12438# scripts and configure runs. It is not useful on other systems.
12439# If it contains results you don't want to keep, you may remove or edit it.
12440#
12441# By default, configure uses ./config.cache as the cache file,
12442# creating it if it does not exist already. You can give configure
12443# the --cache-file=FILE option to use a different cache file; that is
12444# what configure does when it calls configure scripts in
12445# subdirectories, so they share the cache.
12446# Giving --cache-file=/dev/null disables caching, for debugging configure.
12447# config.status only pays attention to the cache file if you give it the
12448# --recheck option to rerun configure.
12449#
12450EOF
12451# The following way of writing the cache mishandles newlines in values,
12452# but we know of no workaround that is simple, portable, and efficient.
12453# So, don't put newlines in cache variables' values.
12454# Ultrix sh set writes to stderr and can't be redirected directly,
12455# and sets the high bit in the cache file unless we assign to the vars.
12456(set) 2>&1 |
12457 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12458 *ac_space=\ *)
12459 # `set' does not quote correctly, so add quotes (double-quote substitution
12460 # turns \\\\ into \\, and sed turns \\ into \).
12461 sed -n \
12462 -e "s/'/'\\\\''/g" \
12463 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
12464 ;;
12465 *)
12466 # `set' quotes correctly as required by POSIX, so do not add quotes.
12467 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
12468 ;;
12469 esac >> confcache
12470if cmp -s $cache_file confcache; then
12471 :
12472else
12473 if test -w $cache_file; then
12474 echo "updating cache $cache_file"
12475 cat confcache > $cache_file
12476 else
12477 echo "not updating unwritable cache $cache_file"
12478 fi
12479fi
12480rm -f confcache
12481
12482trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
12483
12484test "x$prefix" = xNONE && prefix=$ac_default_prefix
12485# Let make expand exec_prefix.
12486test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12487
12488# Any assignment to VPATH causes Sun make to only execute
12489# the first set of double-colon rules, so remove it if not needed.
12490# If there is a colon in the path, we need to keep it.
12491if test "x$srcdir" = x.; then
12492 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
12493fi
12494
12495trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
12496
12497DEFS=-DHAVE_CONFIG_H
12498
12499# Without the "./", some shells look in PATH for config.status.
12500: ${CONFIG_STATUS=./config.status}
12501
12502echo creating $CONFIG_STATUS
12503rm -f $CONFIG_STATUS
12504cat > $CONFIG_STATUS <<EOF
12505#! /bin/sh
12506# Generated automatically by configure.
12507# Run this file to recreate the current configuration.
12508# This directory was configured as follows,
12509# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12510#
12511# $0 $ac_configure_args
12512#
12513# Compiler output produced by configure, useful for debugging
12514# configure, is in ./config.log if it exists.
12515
12516ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
12517for ac_option
12518do
12519 case "\$ac_option" in
12520 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12521 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
12522 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
12523 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
12524 echo "$CONFIG_STATUS generated by autoconf version 2.13"
12525 exit 0 ;;
12526 -help | --help | --hel | --he | --h)
12527 echo "\$ac_cs_usage"; exit 0 ;;
12528 *) echo "\$ac_cs_usage"; exit 1 ;;
12529 esac
12530done
12531
12532ac_given_srcdir=$srcdir
12533ac_given_INSTALL="$INSTALL"
12534
12535trap 'rm -fr `echo "Makefile \
12536 include/Makefile \
12537 include/kadm5/Makefile \
12538 lib/Makefile \
12539 lib/45/Makefile \
12540 lib/auth/Makefile \
12541 lib/auth/afskauthlib/Makefile \
12542 lib/auth/pam/Makefile \
12543 lib/auth/sia/Makefile \
12544 lib/asn1/Makefile \
12545 lib/com_err/Makefile \
12546 lib/des/Makefile \
12547 lib/editline/Makefile \
12548 lib/gssapi/Makefile \
12549 lib/hdb/Makefile \
12550 lib/kadm5/Makefile \
12551 lib/kafs/Makefile \
12552 lib/krb5/Makefile \
12553 lib/otp/Makefile \
12554 lib/roken/Makefile \
12555 lib/sl/Makefile \
12556 kuser/Makefile \
12557 kpasswd/Makefile \
12558 kadmin/Makefile \
12559 admin/Makefile \
12560 kdc/Makefile \
12561 appl/Makefile \
12562 appl/afsutil/Makefile \
12563 appl/ftp/Makefile \
12564 appl/ftp/common/Makefile \
12565 appl/ftp/ftp/Makefile \
12566 appl/ftp/ftpd/Makefile \
12567 appl/kauth/Makefile \
12568 appl/kx/Makefile \
12569 appl/login/Makefile \
12570 appl/otp/Makefile \
12571 appl/popper/Makefile \
12572 appl/push/Makefile \
12573 appl/rsh/Makefile \
12574 appl/su/Makefile \
12575 appl/xnlock/Makefile \
12576 appl/telnet/Makefile \
12577 appl/telnet/libtelnet/Makefile \
12578 appl/telnet/telnet/Makefile \
12579 appl/telnet/telnetd/Makefile \
12580 appl/test/Makefile \
12581 appl/kf/Makefile \
12582 doc/Makefile \
12583 include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
12584EOF
12585cat >> $CONFIG_STATUS <<EOF
12586
12587# Protect against being on the right side of a sed subst in config.status.
12588sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
12589 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
12590$ac_vpsub
12591$extrasub
12592s%@SHELL@%$SHELL%g
12593s%@CFLAGS@%$CFLAGS%g
12594s%@CPPFLAGS@%$CPPFLAGS%g
12595s%@CXXFLAGS@%$CXXFLAGS%g
12596s%@FFLAGS@%$FFLAGS%g
12597s%@DEFS@%$DEFS%g
12598s%@LDFLAGS@%$LDFLAGS%g
12599s%@LIBS@%$LIBS%g
12600s%@exec_prefix@%$exec_prefix%g
12601s%@prefix@%$prefix%g
12602s%@program_transform_name@%$program_transform_name%g
12603s%@bindir@%$bindir%g
12604s%@sbindir@%$sbindir%g
12605s%@libexecdir@%$libexecdir%g
12606s%@datadir@%$datadir%g
12607s%@sysconfdir@%$sysconfdir%g
12608s%@sharedstatedir@%$sharedstatedir%g
12609s%@localstatedir@%$localstatedir%g
12610s%@libdir@%$libdir%g
12611s%@includedir@%$includedir%g
12612s%@oldincludedir@%$oldincludedir%g
12613s%@infodir@%$infodir%g
12614s%@mandir@%$mandir%g
12615s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
12616s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
12617s%@INSTALL_DATA@%$INSTALL_DATA%g
12618s%@PACKAGE@%$PACKAGE%g
12619s%@VERSION@%$VERSION%g
12620s%@ACLOCAL@%$ACLOCAL%g
12621s%@AUTOCONF@%$AUTOCONF%g
12622s%@AUTOMAKE@%$AUTOMAKE%g
12623s%@AUTOHEADER@%$AUTOHEADER%g
12624s%@MAKEINFO@%$MAKEINFO%g
12625s%@SET_MAKE@%$SET_MAKE%g
12626s%@host@%$host%g
12627s%@host_alias@%$host_alias%g
12628s%@host_cpu@%$host_cpu%g
12629s%@host_vendor@%$host_vendor%g
12630s%@host_os@%$host_os%g
12631s%@CANONICAL_HOST@%$CANONICAL_HOST%g
12632s%@CC@%$CC%g
12633s%@OBJEXT@%$OBJEXT%g
12634s%@EXEEXT@%$EXEEXT%g
12635s%@YACC@%$YACC%g
12636s%@LEX@%$LEX%g
12637s%@LEXLIB@%$LEXLIB%g
12638s%@CPP@%$CPP%g
12639s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
12640s%@RANLIB@%$RANLIB%g
12641s%@AWK@%$AWK%g
12642s%@LN_S@%$LN_S%g
12643s%@LD@%$LD%g
12644s%@NM@%$NM%g
12645s%@LIBTOOL@%$LIBTOOL%g
12646s%@WFLAGS@%$WFLAGS%g
12647s%@WFLAGS_NOUNUSED@%$WFLAGS_NOUNUSED%g
12648s%@WFLAGS_NOIMPLICITINT@%$WFLAGS_NOIMPLICITINT%g
12649s%@INCLUDE_krb4@%$INCLUDE_krb4%g
12650s%@LIB_krb4@%$LIB_krb4%g
12651s%@EXTRA_LIB45@%$EXTRA_LIB45%g
12652s%@LIB_krb_enable_debug@%$LIB_krb_enable_debug%g
12653s%@LIB_krb_disable_debug@%$LIB_krb_disable_debug%g
12654s%@LIB_krb_get_our_ip_for_realm@%$LIB_krb_get_our_ip_for_realm%g
12655s%@KRB4_TRUE@%$KRB4_TRUE%g
12656s%@KRB4_FALSE@%$KRB4_FALSE%g
12657s%@KRB5_TRUE@%$KRB5_TRUE%g
12658s%@KRB5_FALSE@%$KRB5_FALSE%g
12659s%@LIB_kdb@%$LIB_kdb%g
12660s%@AIX_TRUE@%$AIX_TRUE%g
12661s%@AIX_FALSE@%$AIX_FALSE%g
12662s%@AIX4_TRUE@%$AIX4_TRUE%g
12663s%@AIX4_FALSE@%$AIX4_FALSE%g
12664s%@AIX_DYNAMIC_AFS_TRUE@%$AIX_DYNAMIC_AFS_TRUE%g
12665s%@AIX_DYNAMIC_AFS_FALSE@%$AIX_DYNAMIC_AFS_FALSE%g
12666s%@LIB_dlopen@%$LIB_dlopen%g
12667s%@HAVE_DLOPEN_TRUE@%$HAVE_DLOPEN_TRUE%g
12668s%@HAVE_DLOPEN_FALSE@%$HAVE_DLOPEN_FALSE%g
12669s%@AFS_EXTRA_LD@%$AFS_EXTRA_LD%g
12670s%@AIX_EXTRA_KAFS@%$AIX_EXTRA_KAFS%g
12671s%@LIB_otp@%$LIB_otp%g
12672s%@OTP_TRUE@%$OTP_TRUE%g
12673s%@OTP_FALSE@%$OTP_FALSE%g
12674s%@LIB_security@%$LIB_security%g
12675s%@NROFF@%$NROFF%g
12676s%@GROFF@%$GROFF%g
12677s%@CATMAN@%$CATMAN%g
12678s%@CATMAN_TRUE@%$CATMAN_TRUE%g
12679s%@CATMAN_FALSE@%$CATMAN_FALSE%g
12680s%@CATMANEXT@%$CATMANEXT%g
12681s%@INCLUDE_readline@%$INCLUDE_readline%g
12682s%@LIB_readline@%$LIB_readline%g
12683s%@INCLUDE_hesiod@%$INCLUDE_hesiod%g
12684s%@LIB_hesiod@%$LIB_hesiod%g
12685s%@X_CFLAGS@%$X_CFLAGS%g
12686s%@X_PRE_LIBS@%$X_PRE_LIBS%g
12687s%@X_LIBS@%$X_LIBS%g
12688s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
12689s%@MAKE_X_PROGS_BIN_PROGS@%$MAKE_X_PROGS_BIN_PROGS%g
12690s%@MAKE_X_PROGS_BIN_SCRPTS@%$MAKE_X_PROGS_BIN_SCRPTS%g
12691s%@MAKE_X_PROGS_LIBEXEC_PROGS@%$MAKE_X_PROGS_LIBEXEC_PROGS%g
12692s%@LIB_XauWriteAuth@%$LIB_XauWriteAuth%g
12693s%@LIB_XauReadAuth@%$LIB_XauReadAuth%g
12694s%@LIB_XauFileName@%$LIB_XauFileName%g
12695s%@NEED_WRITEAUTH_TRUE@%$NEED_WRITEAUTH_TRUE%g
12696s%@NEED_WRITEAUTH_FALSE@%$NEED_WRITEAUTH_FALSE%g
12697s%@have_err_h_TRUE@%$have_err_h_TRUE%g
12698s%@have_err_h_FALSE@%$have_err_h_FALSE%g
12699s%@have_fnmatch_h_TRUE@%$have_fnmatch_h_TRUE%g
12700s%@have_fnmatch_h_FALSE@%$have_fnmatch_h_FALSE%g
12701s%@LIB_socket@%$LIB_socket%g
12702s%@LIB_gethostbyname@%$LIB_gethostbyname%g
12703s%@LIB_syslog@%$LIB_syslog%g
12704s%@LIB_logwtmp@%$LIB_logwtmp%g
12705s%@LIB_tgetent@%$LIB_tgetent%g
12706s%@LIB_gethostbyname2@%$LIB_gethostbyname2%g
12707s%@LIB_res_search@%$LIB_res_search%g
12708s%@LIB_dn_expand@%$LIB_dn_expand%g
12709s%@have_glob_h_TRUE@%$have_glob_h_TRUE%g
12710s%@have_glob_h_FALSE@%$have_glob_h_FALSE%g
12711s%@LIB_dbopen@%$LIB_dbopen%g
12712s%@LIB_dbm_firstkey@%$LIB_dbm_firstkey%g
12713s%@DBLIB@%$DBLIB%g
12714s%@LIB_getpwnam_r@%$LIB_getpwnam_r%g
12715s%@LIB_getsockopt@%$LIB_getsockopt%g
12716s%@LIB_setsockopt@%$LIB_setsockopt%g
12717s%@VOID_RETSIGTYPE@%$VOID_RETSIGTYPE%g
12718s%@LIB_hstrerror@%$LIB_hstrerror%g
12719s%@LIBOBJS@%$LIBOBJS%g
12720s%@LIB_crypt@%$LIB_crypt%g
12721s%@LIB_roken@%$LIB_roken%g
12722s%@LIB_MD4Init@%$LIB_MD4Init%g
12723s%@LIB_MD4_Init@%$LIB_MD4_Init%g
12724s%@LIB_MD5Init@%$LIB_MD5Init%g
12725s%@LIB_MD5_Init@%$LIB_MD5_Init%g
12726s%@LIB_SHA1Init@%$LIB_SHA1Init%g
12727s%@LIB_SHA1_Init@%$LIB_SHA1_Init%g
12728s%@LIB_des_cbc_encrypt@%$LIB_des_cbc_encrypt%g
12729s%@LIB_el_init@%$LIB_el_init%g
12730s%@el_compat_TRUE@%$el_compat_TRUE%g
12731s%@el_compat_FALSE@%$el_compat_FALSE%g
12732s%@LIB_AUTH_SUBDIRS@%$LIB_AUTH_SUBDIRS%g
12733s%@LTLIBOBJS@%$LTLIBOBJS%g
12734
12735CEOF
12736EOF
12737
12738cat >> $CONFIG_STATUS <<\EOF
12739
12740# Split the substitutions into bite-sized pieces for seds with
12741# small command number limits, like on Digital OSF/1 and HP-UX.
12742ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
12743ac_file=1 # Number of current file.
12744ac_beg=1 # First line for current file.
12745ac_end=$ac_max_sed_cmds # Line after last line for current file.
12746ac_more_lines=:
12747ac_sed_cmds=""
12748while $ac_more_lines; do
12749 if test $ac_beg -gt 1; then
12750 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
12751 else
12752 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
12753 fi
12754 if test ! -s conftest.s$ac_file; then
12755 ac_more_lines=false
12756 rm -f conftest.s$ac_file
12757 else
12758 if test -z "$ac_sed_cmds"; then
12759 ac_sed_cmds="sed -f conftest.s$ac_file"
12760 else
12761 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
12762 fi
12763 ac_file=`expr $ac_file + 1`
12764 ac_beg=$ac_end
12765 ac_end=`expr $ac_end + $ac_max_sed_cmds`
12766 fi
12767done
12768if test -z "$ac_sed_cmds"; then
12769 ac_sed_cmds=cat
12770fi
12771EOF
12772
12773cat >> $CONFIG_STATUS <<EOF
12774
12775CONFIG_FILES=\${CONFIG_FILES-"Makefile \
12776 include/Makefile \
12777 include/kadm5/Makefile \
12778 lib/Makefile \
12779 lib/45/Makefile \
12780 lib/auth/Makefile \
12781 lib/auth/afskauthlib/Makefile \
12782 lib/auth/pam/Makefile \
12783 lib/auth/sia/Makefile \
12784 lib/asn1/Makefile \
12785 lib/com_err/Makefile \
12786 lib/des/Makefile \
12787 lib/editline/Makefile \
12788 lib/gssapi/Makefile \
12789 lib/hdb/Makefile \
12790 lib/kadm5/Makefile \
12791 lib/kafs/Makefile \
12792 lib/krb5/Makefile \
12793 lib/otp/Makefile \
12794 lib/roken/Makefile \
12795 lib/sl/Makefile \
12796 kuser/Makefile \
12797 kpasswd/Makefile \
12798 kadmin/Makefile \
12799 admin/Makefile \
12800 kdc/Makefile \
12801 appl/Makefile \
12802 appl/afsutil/Makefile \
12803 appl/ftp/Makefile \
12804 appl/ftp/common/Makefile \
12805 appl/ftp/ftp/Makefile \
12806 appl/ftp/ftpd/Makefile \
12807 appl/kauth/Makefile \
12808 appl/kx/Makefile \
12809 appl/login/Makefile \
12810 appl/otp/Makefile \
12811 appl/popper/Makefile \
12812 appl/push/Makefile \
12813 appl/rsh/Makefile \
12814 appl/su/Makefile \
12815 appl/xnlock/Makefile \
12816 appl/telnet/Makefile \
12817 appl/telnet/libtelnet/Makefile \
12818 appl/telnet/telnet/Makefile \
12819 appl/telnet/telnetd/Makefile \
12820 appl/test/Makefile \
12821 appl/kf/Makefile \
12822 doc/Makefile \
12823"}
12824EOF
12825cat >> $CONFIG_STATUS <<\EOF
12826for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
12827 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12828 case "$ac_file" in
12829 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12830 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12831 *) ac_file_in="${ac_file}.in" ;;
12832 esac
12833
12834 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
12835
12836 # Remove last slash and all that follows it. Not all systems have dirname.
12837 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12838 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12839 # The file is in a subdirectory.
12840 test ! -d "$ac_dir" && mkdir "$ac_dir"
12841 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
12842 # A "../" for each directory in $ac_dir_suffix.
12843 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
12844 else
12845 ac_dir_suffix= ac_dots=
12846 fi
12847
12848 case "$ac_given_srcdir" in
12849 .) srcdir=.
12850 if test -z "$ac_dots"; then top_srcdir=.
12851 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
12852 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
12853 *) # Relative path.
12854 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
12855 top_srcdir="$ac_dots$ac_given_srcdir" ;;
12856 esac
12857
12858 case "$ac_given_INSTALL" in
12859 [/$]*) INSTALL="$ac_given_INSTALL" ;;
12860 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
12861 esac
12862
12863 echo creating "$ac_file"
12864 rm -f "$ac_file"
12865 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
12866 case "$ac_file" in
12867 *Makefile*) ac_comsub="1i\\
12868# $configure_input" ;;
12869 *) ac_comsub= ;;
12870 esac
12871
12872 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12873 sed -e "$ac_comsub
12874s%@configure_input@%$configure_input%g
12875s%@srcdir@%$srcdir%g
12876s%@top_srcdir@%$top_srcdir%g
12877s%@INSTALL@%$INSTALL%g
12878" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
12879fi; done
12880rm -f conftest.s*
12881
12882# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12883# NAME is the cpp macro being defined and VALUE is the value it is being given.
12884#
12885# ac_d sets the value in "#define NAME VALUE" lines.
12886ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12887ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
12888ac_dC='\3'
12889ac_dD='%g'
12890# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
12891ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12892ac_uB='\([ ]\)%\1#\2define\3'
12893ac_uC=' '
12894ac_uD='\4%g'
12895# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12896ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12897ac_eB='$%\1#\2define\3'
12898ac_eC=' '
12899ac_eD='%g'
12900
12901if test "${CONFIG_HEADERS+set}" != set; then
12902EOF
12903cat >> $CONFIG_STATUS <<EOF
12904 CONFIG_HEADERS="include/config.h"
12905EOF
12906cat >> $CONFIG_STATUS <<\EOF
12907fi
12908for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
12909 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12910 case "$ac_file" in
12911 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12912 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12913 *) ac_file_in="${ac_file}.in" ;;
12914 esac
12915
12916 echo creating $ac_file
12917
12918 rm -f conftest.frag conftest.in conftest.out
12919 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12920 cat $ac_file_inputs > conftest.in
12921
12922EOF
12923
12924# Transform confdefs.h into a sed script conftest.vals that substitutes
12925# the proper values into config.h.in to produce config.h. And first:
12926# Protect against being on the right side of a sed subst in config.status.
12927# Protect against being in an unquoted here document in config.status.
12928rm -f conftest.vals
12929cat > conftest.hdr <<\EOF
12930s/[\\&%]/\\&/g
12931s%[\\$`]%\\&%g
12932s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
12933s%ac_d%ac_u%gp
12934s%ac_u%ac_e%gp
12935EOF
12936sed -n -f conftest.hdr confdefs.h > conftest.vals
12937rm -f conftest.hdr
12938
12939# This sed command replaces #undef with comments. This is necessary, for
12940# example, in the case of _POSIX_SOURCE, which is predefined and required
12941# on some systems where configure will not decide to define it.
12942cat >> conftest.vals <<\EOF
12943s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
12944EOF
12945
12946# Break up conftest.vals because some shells have a limit on
12947# the size of here documents, and old seds have small limits too.
12948
12949rm -f conftest.tail
12950while :
12951do
12952 ac_lines=`grep -c . conftest.vals`
12953 # grep -c gives empty output for an empty file on some AIX systems.
12954 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
12955 # Write a limited-size here document to conftest.frag.
12956 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
12957 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
12958 echo 'CEOF
12959 sed -f conftest.frag conftest.in > conftest.out
12960 rm -f conftest.in
12961 mv conftest.out conftest.in
12962' >> $CONFIG_STATUS
12963 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
12964 rm -f conftest.vals
12965 mv conftest.tail conftest.vals
12966done
12967rm -f conftest.vals
12968
12969cat >> $CONFIG_STATUS <<\EOF
12970 rm -f conftest.frag conftest.h
12971 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
12972 cat conftest.in >> conftest.h
12973 rm -f conftest.in
12974 if cmp -s $ac_file conftest.h 2>/dev/null; then
12975 echo "$ac_file is unchanged"
12976 rm -f conftest.h
12977 else
12978 # Remove last slash and all that follows it. Not all systems have dirname.
12979 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12980 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12981 # The file is in a subdirectory.
12982 test ! -d "$ac_dir" && mkdir "$ac_dir"
12983 fi
12984 rm -f $ac_file
12985 mv conftest.h $ac_file
12986 fi
12987fi; done
12988
12989EOF
12990cat >> $CONFIG_STATUS <<EOF
12991
12992
12993EOF
12994cat >> $CONFIG_STATUS <<\EOF
12995test -z "$CONFIG_HEADERS" || echo timestamp > include/stamp-h
12996
12997exit 0
12998EOF
12999chmod +x $CONFIG_STATUS
13000rm -fr confdefs* $ac_clean_files
13001test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
13002
13003
13004HEIMDALVERSION="$PACKAGE-$VERSION"
13005
13006cat > include/newversion.h.in <<EOF
13007char *heimdal_long_version = "@(#)\$Version: $HEIMDALVERSION by @USER@ on @HOST@ ($host) @DATE@ \$";
13008char *heimdal_version = "$HEIMDALVERSION";
13009EOF
13010
13011if test -f include/version.h && cmp -s include/newversion.h.in include/version.h.in; then
13012 echo "include/version.h is unchanged"
13013 rm -f include/newversion.h.in
13014else
13015 echo "creating include/version.h"
13016 User=${USER-${LOGNAME}}
13017 Host=`(hostname || uname -n || echo unknown) 2>/dev/null | sed 1q`
13018 Date=`date`
13019 mv -f include/newversion.h.in include/version.h.in
13020 sed -e "s/@USER@/$User/" -e "s/@HOST@/$Host/" -e "s/@DATE@/$Date/" include/version.h.in > include/version.h
13021fi
915
916if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
917 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
918fi
919cat >> confdefs.h <<EOF
920#define PACKAGE "$PACKAGE"
921EOF
922
923cat >> confdefs.h <<EOF
924#define VERSION "$VERSION"
925EOF
926
927
928
929missing_dir=`cd $ac_aux_dir && pwd`
930echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
931echo "configure:932: checking for working aclocal" >&5
932# Run test in a subshell; some versions of sh will print an error if
933# an executable is not found, even if stderr is redirected.
934# Redirect stdin to placate older versions of autoconf. Sigh.
935if (aclocal --version) < /dev/null > /dev/null 2>&1; then
936 ACLOCAL=aclocal
937 echo "$ac_t""found" 1>&6
938else
939 ACLOCAL="$missing_dir/missing aclocal"
940 echo "$ac_t""missing" 1>&6
941fi
942
943echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
944echo "configure:945: checking for working autoconf" >&5
945# Run test in a subshell; some versions of sh will print an error if
946# an executable is not found, even if stderr is redirected.
947# Redirect stdin to placate older versions of autoconf. Sigh.
948if (autoconf --version) < /dev/null > /dev/null 2>&1; then
949 AUTOCONF=autoconf
950 echo "$ac_t""found" 1>&6
951else
952 AUTOCONF="$missing_dir/missing autoconf"
953 echo "$ac_t""missing" 1>&6
954fi
955
956echo $ac_n "checking for working automake""... $ac_c" 1>&6
957echo "configure:958: checking for working automake" >&5
958# Run test in a subshell; some versions of sh will print an error if
959# an executable is not found, even if stderr is redirected.
960# Redirect stdin to placate older versions of autoconf. Sigh.
961if (automake --version) < /dev/null > /dev/null 2>&1; then
962 AUTOMAKE=automake
963 echo "$ac_t""found" 1>&6
964else
965 AUTOMAKE="$missing_dir/missing automake"
966 echo "$ac_t""missing" 1>&6
967fi
968
969echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
970echo "configure:971: checking for working autoheader" >&5
971# Run test in a subshell; some versions of sh will print an error if
972# an executable is not found, even if stderr is redirected.
973# Redirect stdin to placate older versions of autoconf. Sigh.
974if (autoheader --version) < /dev/null > /dev/null 2>&1; then
975 AUTOHEADER=autoheader
976 echo "$ac_t""found" 1>&6
977else
978 AUTOHEADER="$missing_dir/missing autoheader"
979 echo "$ac_t""missing" 1>&6
980fi
981
982echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
983echo "configure:984: checking for working makeinfo" >&5
984# Run test in a subshell; some versions of sh will print an error if
985# an executable is not found, even if stderr is redirected.
986# Redirect stdin to placate older versions of autoconf. Sigh.
987if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
988 MAKEINFO=makeinfo
989 echo "$ac_t""found" 1>&6
990else
991 MAKEINFO="$missing_dir/missing makeinfo"
992 echo "$ac_t""missing" 1>&6
993fi
994
995
996
997
998
999
1000# Make sure we can run config.sub.
1001if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1002else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1003fi
1004
1005echo $ac_n "checking host system type""... $ac_c" 1>&6
1006echo "configure:1007: checking host system type" >&5
1007
1008host_alias=$host
1009case "$host_alias" in
1010NONE)
1011 case $nonopt in
1012 NONE)
1013 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1014 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1015 fi ;;
1016 *) host_alias=$nonopt ;;
1017 esac ;;
1018esac
1019
1020host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1021host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1022host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1023host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1024echo "$ac_t""$host" 1>&6
1025
1026CANONICAL_HOST=$host
1027
1028
1029sunos=no
1030case "$host" in
1031*-*-sunos4*)
1032 sunos=40
1033 ;;
1034*-*-solaris2.7)
1035 sunos=57
1036 ;;
1037*-*-solaris2*)
1038 sunos=50
1039 ;;
1040esac
1041if test "$sunos" != no; then
1042 cat >> confdefs.h <<EOF
1043#define SunOS $sunos
1044EOF
1045
1046fi
1047
1048aix=no
1049case "$host" in
1050*-*-aix3*)
1051 aix=3
1052 ;;
1053*-*-aix4*)
1054 aix=4
1055 ;;
1056esac
1057
1058#test -z "$CFLAGS" && CFLAGS="-g"
1059
1060# Extract the first word of "gcc", so it can be a program name with args.
1061set dummy gcc; ac_word=$2
1062echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1063echo "configure:1064: checking for $ac_word" >&5
1064if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1065 echo $ac_n "(cached) $ac_c" 1>&6
1066else
1067 if test -n "$CC"; then
1068 ac_cv_prog_CC="$CC" # Let the user override the test.
1069else
1070 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1071 ac_dummy="$PATH"
1072 for ac_dir in $ac_dummy; do
1073 test -z "$ac_dir" && ac_dir=.
1074 if test -f $ac_dir/$ac_word; then
1075 ac_cv_prog_CC="gcc"
1076 break
1077 fi
1078 done
1079 IFS="$ac_save_ifs"
1080fi
1081fi
1082CC="$ac_cv_prog_CC"
1083if test -n "$CC"; then
1084 echo "$ac_t""$CC" 1>&6
1085else
1086 echo "$ac_t""no" 1>&6
1087fi
1088
1089if test -z "$CC"; then
1090 # Extract the first word of "cc", so it can be a program name with args.
1091set dummy cc; ac_word=$2
1092echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1093echo "configure:1094: checking for $ac_word" >&5
1094if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1095 echo $ac_n "(cached) $ac_c" 1>&6
1096else
1097 if test -n "$CC"; then
1098 ac_cv_prog_CC="$CC" # Let the user override the test.
1099else
1100 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1101 ac_prog_rejected=no
1102 ac_dummy="$PATH"
1103 for ac_dir in $ac_dummy; do
1104 test -z "$ac_dir" && ac_dir=.
1105 if test -f $ac_dir/$ac_word; then
1106 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1107 ac_prog_rejected=yes
1108 continue
1109 fi
1110 ac_cv_prog_CC="cc"
1111 break
1112 fi
1113 done
1114 IFS="$ac_save_ifs"
1115if test $ac_prog_rejected = yes; then
1116 # We found a bogon in the path, so make sure we never use it.
1117 set dummy $ac_cv_prog_CC
1118 shift
1119 if test $# -gt 0; then
1120 # We chose a different compiler from the bogus one.
1121 # However, it has the same basename, so the bogon will be chosen
1122 # first if we set CC to just the basename; use the full file name.
1123 shift
1124 set dummy "$ac_dir/$ac_word" "$@"
1125 shift
1126 ac_cv_prog_CC="$@"
1127 fi
1128fi
1129fi
1130fi
1131CC="$ac_cv_prog_CC"
1132if test -n "$CC"; then
1133 echo "$ac_t""$CC" 1>&6
1134else
1135 echo "$ac_t""no" 1>&6
1136fi
1137
1138 if test -z "$CC"; then
1139 case "`uname -s`" in
1140 *win32* | *WIN32*)
1141 # Extract the first word of "cl", so it can be a program name with args.
1142set dummy cl; ac_word=$2
1143echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1144echo "configure:1145: checking for $ac_word" >&5
1145if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1146 echo $ac_n "(cached) $ac_c" 1>&6
1147else
1148 if test -n "$CC"; then
1149 ac_cv_prog_CC="$CC" # Let the user override the test.
1150else
1151 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1152 ac_dummy="$PATH"
1153 for ac_dir in $ac_dummy; do
1154 test -z "$ac_dir" && ac_dir=.
1155 if test -f $ac_dir/$ac_word; then
1156 ac_cv_prog_CC="cl"
1157 break
1158 fi
1159 done
1160 IFS="$ac_save_ifs"
1161fi
1162fi
1163CC="$ac_cv_prog_CC"
1164if test -n "$CC"; then
1165 echo "$ac_t""$CC" 1>&6
1166else
1167 echo "$ac_t""no" 1>&6
1168fi
1169 ;;
1170 esac
1171 fi
1172 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1173fi
1174
1175echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1176echo "configure:1177: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1177
1178ac_ext=c
1179# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1180ac_cpp='$CPP $CPPFLAGS'
1181ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1182ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1183cross_compiling=$ac_cv_prog_cc_cross
1184
1185cat > conftest.$ac_ext << EOF
1186
1187#line 1188 "configure"
1188#include "confdefs.h"
1189
1190main(){return(0);}
1191EOF
1192if { (eval echo configure:1193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1193 ac_cv_prog_cc_works=yes
1194 # If we can't run a trivial program, we are probably using a cross compiler.
1195 if (./conftest; exit) 2>/dev/null; then
1196 ac_cv_prog_cc_cross=no
1197 else
1198 ac_cv_prog_cc_cross=yes
1199 fi
1200else
1201 echo "configure: failed program was:" >&5
1202 cat conftest.$ac_ext >&5
1203 ac_cv_prog_cc_works=no
1204fi
1205rm -fr conftest*
1206ac_ext=c
1207# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1208ac_cpp='$CPP $CPPFLAGS'
1209ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1210ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1211cross_compiling=$ac_cv_prog_cc_cross
1212
1213echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1214if test $ac_cv_prog_cc_works = no; then
1215 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1216fi
1217echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1218echo "configure:1219: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1219echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1220cross_compiling=$ac_cv_prog_cc_cross
1221
1222echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1223echo "configure:1224: checking whether we are using GNU C" >&5
1224if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1225 echo $ac_n "(cached) $ac_c" 1>&6
1226else
1227 cat > conftest.c <<EOF
1228#ifdef __GNUC__
1229 yes;
1230#endif
1231EOF
1232if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1233 ac_cv_prog_gcc=yes
1234else
1235 ac_cv_prog_gcc=no
1236fi
1237fi
1238
1239echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1240
1241if test $ac_cv_prog_gcc = yes; then
1242 GCC=yes
1243else
1244 GCC=
1245fi
1246
1247ac_test_CFLAGS="${CFLAGS+set}"
1248ac_save_CFLAGS="$CFLAGS"
1249CFLAGS=
1250echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1251echo "configure:1252: checking whether ${CC-cc} accepts -g" >&5
1252if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1253 echo $ac_n "(cached) $ac_c" 1>&6
1254else
1255 echo 'void f(){}' > conftest.c
1256if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1257 ac_cv_prog_cc_g=yes
1258else
1259 ac_cv_prog_cc_g=no
1260fi
1261rm -f conftest*
1262
1263fi
1264
1265echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1266if test "$ac_test_CFLAGS" = set; then
1267 CFLAGS="$ac_save_CFLAGS"
1268elif test $ac_cv_prog_cc_g = yes; then
1269 if test "$GCC" = yes; then
1270 CFLAGS="-g -O2"
1271 else
1272 CFLAGS="-g"
1273 fi
1274else
1275 if test "$GCC" = yes; then
1276 CFLAGS="-O2"
1277 else
1278 CFLAGS=
1279 fi
1280fi
1281
1282
1283echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1284echo "configure:1285: checking for Cygwin environment" >&5
1285if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1286 echo $ac_n "(cached) $ac_c" 1>&6
1287else
1288 cat > conftest.$ac_ext <<EOF
1289#line 1290 "configure"
1290#include "confdefs.h"
1291
1292int main() {
1293
1294#ifndef __CYGWIN__
1295#define __CYGWIN__ __CYGWIN32__
1296#endif
1297return __CYGWIN__;
1298; return 0; }
1299EOF
1300if { (eval echo configure:1301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1301 rm -rf conftest*
1302 ac_cv_cygwin=yes
1303else
1304 echo "configure: failed program was:" >&5
1305 cat conftest.$ac_ext >&5
1306 rm -rf conftest*
1307 ac_cv_cygwin=no
1308fi
1309rm -f conftest*
1310rm -f conftest*
1311fi
1312
1313echo "$ac_t""$ac_cv_cygwin" 1>&6
1314CYGWIN=
1315test "$ac_cv_cygwin" = yes && CYGWIN=yes
1316echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1317echo "configure:1318: checking for object suffix" >&5
1318if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1319 echo $ac_n "(cached) $ac_c" 1>&6
1320else
1321 rm -f conftest*
1322echo 'int i = 1;' > conftest.$ac_ext
1323if { (eval echo configure:1324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1324 for ac_file in conftest.*; do
1325 case $ac_file in
1326 *.c) ;;
1327 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1328 esac
1329 done
1330else
1331 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1332fi
1333rm -f conftest*
1334fi
1335
1336echo "$ac_t""$ac_cv_objext" 1>&6
1337OBJEXT=$ac_cv_objext
1338ac_objext=$ac_cv_objext
1339
1340echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1341echo "configure:1342: checking for mingw32 environment" >&5
1342if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1343 echo $ac_n "(cached) $ac_c" 1>&6
1344else
1345 cat > conftest.$ac_ext <<EOF
1346#line 1347 "configure"
1347#include "confdefs.h"
1348
1349int main() {
1350return __MINGW32__;
1351; return 0; }
1352EOF
1353if { (eval echo configure:1354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1354 rm -rf conftest*
1355 ac_cv_mingw32=yes
1356else
1357 echo "configure: failed program was:" >&5
1358 cat conftest.$ac_ext >&5
1359 rm -rf conftest*
1360 ac_cv_mingw32=no
1361fi
1362rm -f conftest*
1363rm -f conftest*
1364fi
1365
1366echo "$ac_t""$ac_cv_mingw32" 1>&6
1367MINGW32=
1368test "$ac_cv_mingw32" = yes && MINGW32=yes
1369
1370
1371echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1372echo "configure:1373: checking for executable suffix" >&5
1373if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1374 echo $ac_n "(cached) $ac_c" 1>&6
1375else
1376 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1377 ac_cv_exeext=.exe
1378else
1379 rm -f conftest*
1380 echo 'int main () { return 0; }' > conftest.$ac_ext
1381 ac_cv_exeext=
1382 if { (eval echo configure:1383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1383 for file in conftest.*; do
1384 case $file in
1385 *.c | *.o | *.obj) ;;
1386 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1387 esac
1388 done
1389 else
1390 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1391 fi
1392 rm -f conftest*
1393 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1394fi
1395fi
1396
1397EXEEXT=""
1398test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1399echo "$ac_t""${ac_cv_exeext}" 1>&6
1400ac_exeext=$EXEEXT
1401
1402
1403for ac_prog in 'bison -y' byacc
1404do
1405# Extract the first word of "$ac_prog", so it can be a program name with args.
1406set dummy $ac_prog; ac_word=$2
1407echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1408echo "configure:1409: checking for $ac_word" >&5
1409if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1410 echo $ac_n "(cached) $ac_c" 1>&6
1411else
1412 if test -n "$YACC"; then
1413 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1414else
1415 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1416 ac_dummy="$PATH"
1417 for ac_dir in $ac_dummy; do
1418 test -z "$ac_dir" && ac_dir=.
1419 if test -f $ac_dir/$ac_word; then
1420 ac_cv_prog_YACC="$ac_prog"
1421 break
1422 fi
1423 done
1424 IFS="$ac_save_ifs"
1425fi
1426fi
1427YACC="$ac_cv_prog_YACC"
1428if test -n "$YACC"; then
1429 echo "$ac_t""$YACC" 1>&6
1430else
1431 echo "$ac_t""no" 1>&6
1432fi
1433
1434test -n "$YACC" && break
1435done
1436test -n "$YACC" || YACC="yacc"
1437
1438echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1439echo "configure:1440: checking how to run the C preprocessor" >&5
1440# On Suns, sometimes $CPP names a directory.
1441if test -n "$CPP" && test -d "$CPP"; then
1442 CPP=
1443fi
1444if test -z "$CPP"; then
1445if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1446 echo $ac_n "(cached) $ac_c" 1>&6
1447else
1448 # This must be in double quotes, not single quotes, because CPP may get
1449 # substituted into the Makefile and "${CC-cc}" will confuse make.
1450 CPP="${CC-cc} -E"
1451 # On the NeXT, cc -E runs the code through the compiler's parser,
1452 # not just through cpp.
1453 cat > conftest.$ac_ext <<EOF
1454#line 1455 "configure"
1455#include "confdefs.h"
1456#include <assert.h>
1457Syntax Error
1458EOF
1459ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1460{ (eval echo configure:1461: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1461ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1462if test -z "$ac_err"; then
1463 :
1464else
1465 echo "$ac_err" >&5
1466 echo "configure: failed program was:" >&5
1467 cat conftest.$ac_ext >&5
1468 rm -rf conftest*
1469 CPP="${CC-cc} -E -traditional-cpp"
1470 cat > conftest.$ac_ext <<EOF
1471#line 1472 "configure"
1472#include "confdefs.h"
1473#include <assert.h>
1474Syntax Error
1475EOF
1476ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1477{ (eval echo configure:1478: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1478ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1479if test -z "$ac_err"; then
1480 :
1481else
1482 echo "$ac_err" >&5
1483 echo "configure: failed program was:" >&5
1484 cat conftest.$ac_ext >&5
1485 rm -rf conftest*
1486 CPP="${CC-cc} -nologo -E"
1487 cat > conftest.$ac_ext <<EOF
1488#line 1489 "configure"
1489#include "confdefs.h"
1490#include <assert.h>
1491Syntax Error
1492EOF
1493ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1494{ (eval echo configure:1495: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1495ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1496if test -z "$ac_err"; then
1497 :
1498else
1499 echo "$ac_err" >&5
1500 echo "configure: failed program was:" >&5
1501 cat conftest.$ac_ext >&5
1502 rm -rf conftest*
1503 CPP=/lib/cpp
1504fi
1505rm -f conftest*
1506fi
1507rm -f conftest*
1508fi
1509rm -f conftest*
1510 ac_cv_prog_CPP="$CPP"
1511fi
1512 CPP="$ac_cv_prog_CPP"
1513else
1514 ac_cv_prog_CPP="$CPP"
1515fi
1516echo "$ac_t""$CPP" 1>&6
1517
1518missing_dir=`cd $ac_aux_dir && pwd`
1519for ac_prog in flex lex
1520do
1521# Extract the first word of "$ac_prog", so it can be a program name with args.
1522set dummy $ac_prog; ac_word=$2
1523echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1524echo "configure:1525: checking for $ac_word" >&5
1525if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1526 echo $ac_n "(cached) $ac_c" 1>&6
1527else
1528 if test -n "$LEX"; then
1529 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1530else
1531 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1532 ac_dummy="$PATH"
1533 for ac_dir in $ac_dummy; do
1534 test -z "$ac_dir" && ac_dir=.
1535 if test -f $ac_dir/$ac_word; then
1536 ac_cv_prog_LEX="$ac_prog"
1537 break
1538 fi
1539 done
1540 IFS="$ac_save_ifs"
1541fi
1542fi
1543LEX="$ac_cv_prog_LEX"
1544if test -n "$LEX"; then
1545 echo "$ac_t""$LEX" 1>&6
1546else
1547 echo "$ac_t""no" 1>&6
1548fi
1549
1550test -n "$LEX" && break
1551done
1552test -n "$LEX" || LEX=""$missing_dir/missing flex""
1553
1554# Extract the first word of "flex", so it can be a program name with args.
1555set dummy flex; ac_word=$2
1556echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1557echo "configure:1558: checking for $ac_word" >&5
1558if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1559 echo $ac_n "(cached) $ac_c" 1>&6
1560else
1561 if test -n "$LEX"; then
1562 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1563else
1564 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1565 ac_dummy="$PATH"
1566 for ac_dir in $ac_dummy; do
1567 test -z "$ac_dir" && ac_dir=.
1568 if test -f $ac_dir/$ac_word; then
1569 ac_cv_prog_LEX="flex"
1570 break
1571 fi
1572 done
1573 IFS="$ac_save_ifs"
1574 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1575fi
1576fi
1577LEX="$ac_cv_prog_LEX"
1578if test -n "$LEX"; then
1579 echo "$ac_t""$LEX" 1>&6
1580else
1581 echo "$ac_t""no" 1>&6
1582fi
1583
1584if test -z "$LEXLIB"
1585then
1586 case "$LEX" in
1587 flex*) ac_lib=fl ;;
1588 *) ac_lib=l ;;
1589 esac
1590 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1591echo "configure:1592: checking for yywrap in -l$ac_lib" >&5
1592ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1593if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1594 echo $ac_n "(cached) $ac_c" 1>&6
1595else
1596 ac_save_LIBS="$LIBS"
1597LIBS="-l$ac_lib $LIBS"
1598cat > conftest.$ac_ext <<EOF
1599#line 1600 "configure"
1600#include "confdefs.h"
1601/* Override any gcc2 internal prototype to avoid an error. */
1602/* We use char because int might match the return type of a gcc2
1603 builtin and then its argument prototype would still apply. */
1604char yywrap();
1605
1606int main() {
1607yywrap()
1608; return 0; }
1609EOF
1610if { (eval echo configure:1611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1611 rm -rf conftest*
1612 eval "ac_cv_lib_$ac_lib_var=yes"
1613else
1614 echo "configure: failed program was:" >&5
1615 cat conftest.$ac_ext >&5
1616 rm -rf conftest*
1617 eval "ac_cv_lib_$ac_lib_var=no"
1618fi
1619rm -f conftest*
1620LIBS="$ac_save_LIBS"
1621
1622fi
1623if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1624 echo "$ac_t""yes" 1>&6
1625 LEXLIB="-l$ac_lib"
1626else
1627 echo "$ac_t""no" 1>&6
1628fi
1629
1630fi
1631
1632echo $ac_n "checking lex output file root""... $ac_c" 1>&6
1633echo "configure:1634: checking lex output file root" >&5
1634if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
1635 echo $ac_n "(cached) $ac_c" 1>&6
1636else
1637 # The minimal lex program is just a single line: %%. But some broken lexes
1638# (Solaris, I think it was) want two %% lines, so accommodate them.
1639echo '%%
1640%%' | $LEX
1641if test -f lex.yy.c; then
1642 ac_cv_prog_lex_root=lex.yy
1643elif test -f lexyy.c; then
1644 ac_cv_prog_lex_root=lexyy
1645else
1646 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
1647fi
1648fi
1649
1650echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
1651LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
1652
1653echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
1654echo "configure:1655: checking whether yytext is a pointer" >&5
1655if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
1656 echo $ac_n "(cached) $ac_c" 1>&6
1657else
1658 # POSIX says lex can declare yytext either as a pointer or an array; the
1659# default is implementation-dependent. Figure out which it is, since
1660# not all implementations provide the %pointer and %array declarations.
1661ac_cv_prog_lex_yytext_pointer=no
1662echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
1663ac_save_LIBS="$LIBS"
1664LIBS="$LIBS $LEXLIB"
1665cat > conftest.$ac_ext <<EOF
1666#line 1667 "configure"
1667#include "confdefs.h"
1668`cat $LEX_OUTPUT_ROOT.c`
1669int main() {
1670
1671; return 0; }
1672EOF
1673if { (eval echo configure:1674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1674 rm -rf conftest*
1675 ac_cv_prog_lex_yytext_pointer=yes
1676else
1677 echo "configure: failed program was:" >&5
1678 cat conftest.$ac_ext >&5
1679fi
1680rm -f conftest*
1681LIBS="$ac_save_LIBS"
1682rm -f "${LEX_OUTPUT_ROOT}.c"
1683
1684fi
1685
1686echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
1687if test $ac_cv_prog_lex_yytext_pointer = yes; then
1688 cat >> confdefs.h <<\EOF
1689#define YYTEXT_POINTER 1
1690EOF
1691
1692fi
1693
1694# Extract the first word of "ranlib", so it can be a program name with args.
1695set dummy ranlib; ac_word=$2
1696echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1697echo "configure:1698: checking for $ac_word" >&5
1698if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1699 echo $ac_n "(cached) $ac_c" 1>&6
1700else
1701 if test -n "$RANLIB"; then
1702 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1703else
1704 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1705 ac_dummy="$PATH"
1706 for ac_dir in $ac_dummy; do
1707 test -z "$ac_dir" && ac_dir=.
1708 if test -f $ac_dir/$ac_word; then
1709 ac_cv_prog_RANLIB="ranlib"
1710 break
1711 fi
1712 done
1713 IFS="$ac_save_ifs"
1714 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1715fi
1716fi
1717RANLIB="$ac_cv_prog_RANLIB"
1718if test -n "$RANLIB"; then
1719 echo "$ac_t""$RANLIB" 1>&6
1720else
1721 echo "$ac_t""no" 1>&6
1722fi
1723
1724for ac_prog in mawk gawk nawk awk
1725do
1726# Extract the first word of "$ac_prog", so it can be a program name with args.
1727set dummy $ac_prog; ac_word=$2
1728echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1729echo "configure:1730: checking for $ac_word" >&5
1730if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1731 echo $ac_n "(cached) $ac_c" 1>&6
1732else
1733 if test -n "$AWK"; then
1734 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1735else
1736 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1737 ac_dummy="$PATH"
1738 for ac_dir in $ac_dummy; do
1739 test -z "$ac_dir" && ac_dir=.
1740 if test -f $ac_dir/$ac_word; then
1741 ac_cv_prog_AWK="$ac_prog"
1742 break
1743 fi
1744 done
1745 IFS="$ac_save_ifs"
1746fi
1747fi
1748AWK="$ac_cv_prog_AWK"
1749if test -n "$AWK"; then
1750 echo "$ac_t""$AWK" 1>&6
1751else
1752 echo "$ac_t""no" 1>&6
1753fi
1754
1755test -n "$AWK" && break
1756done
1757
1758echo $ac_n "checking for ln -s or something else""... $ac_c" 1>&6
1759echo "configure:1760: checking for ln -s or something else" >&5
1760if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1761 echo $ac_n "(cached) $ac_c" 1>&6
1762else
1763 rm -f conftestdata
1764if ln -s X conftestdata 2>/dev/null
1765then
1766 rm -f conftestdata
1767 ac_cv_prog_LN_S="ln -s"
1768else
1769 touch conftestdata1
1770 if ln conftestdata1 conftestdata2; then
1771 rm -f conftestdata*
1772 ac_cv_prog_LN_S=ln
1773 else
1774 ac_cv_prog_LN_S=cp
1775 fi
1776fi
1777fi
1778LN_S="$ac_cv_prog_LN_S"
1779echo "$ac_t""$ac_cv_prog_LN_S" 1>&6
1780
1781
1782
1783# Check whether --with-mips_abi or --without-mips_abi was given.
1784if test "${with_mips_abi+set}" = set; then
1785 withval="$with_mips_abi"
1786 :
1787fi
1788
1789
1790case "$host_os" in
1791irix*)
1792with_mips_abi="${with_mips_abi:-yes}"
1793if test -n "$GCC"; then
1794
1795# GCC < 2.8 only supports the O32 ABI. GCC >= 2.8 has a flag to select
1796# which ABI to use, but only supports (as of 2.8.1) the N32 and 64 ABIs.
1797#
1798# Default to N32, but if GCC doesn't grok -mabi=n32, we assume an old
1799# GCC and revert back to O32. The same goes if O32 is asked for - old
1800# GCCs doesn't like the -mabi option, and new GCCs can't output O32.
1801#
1802# Don't you just love *all* the different SGI ABIs?
1803
1804case "${with_mips_abi}" in
1805 32|o32) abi='-mabi=32'; abilibdirext='' ;;
1806 n32|yes) abi='-mabi=n32'; abilibdirext='32' ;;
1807 64) abi='-mabi=64'; abilibdirext='64' ;;
1808 no) abi=''; abilibdirext='';;
1809 *) { echo "configure: error: "Invalid ABI specified"" 1>&2; exit 1; } ;;
1810esac
1811if test -n "$abi" ; then
1812ac_foo=krb_cv_gcc_`echo $abi | tr =- __`
1813echo $ac_n "checking if $CC supports the $abi option""... $ac_c" 1>&6
1814echo "configure:1815: checking if $CC supports the $abi option" >&5
1815if eval "test \"`echo '$''{'$ac_foo'+set}'`\" = set"; then
1816 echo $ac_n "(cached) $ac_c" 1>&6
1817else
1818
1819save_CFLAGS="$CFLAGS"
1820CFLAGS="$CFLAGS $abi"
1821cat > conftest.$ac_ext <<EOF
1822#line 1823 "configure"
1823#include "confdefs.h"
1824
1825int main() {
1826int x;
1827; return 0; }
1828EOF
1829if { (eval echo configure:1830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1830 rm -rf conftest*
1831 eval $ac_foo=yes
1832else
1833 echo "configure: failed program was:" >&5
1834 cat conftest.$ac_ext >&5
1835 rm -rf conftest*
1836 eval $ac_foo=no
1837fi
1838rm -f conftest*
1839CFLAGS="$save_CFLAGS"
1840
1841fi
1842
1843ac_res=`eval echo \\\$$ac_foo`
1844echo "$ac_t""$ac_res" 1>&6
1845if test $ac_res = no; then
1846# Try to figure out why that failed...
1847case $abi in
1848 -mabi=32)
1849 save_CFLAGS="$CFLAGS"
1850 CFLAGS="$CFLAGS -mabi=n32"
1851 cat > conftest.$ac_ext <<EOF
1852#line 1853 "configure"
1853#include "confdefs.h"
1854
1855int main() {
1856int x;
1857; return 0; }
1858EOF
1859if { (eval echo configure:1860: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1860 rm -rf conftest*
1861 ac_res=yes
1862else
1863 echo "configure: failed program was:" >&5
1864 cat conftest.$ac_ext >&5
1865 rm -rf conftest*
1866 ac_res=no
1867fi
1868rm -f conftest*
1869 CLAGS="$save_CFLAGS"
1870 if test $ac_res = yes; then
1871 # New GCC
1872 { echo "configure: error: $CC does not support the $with_mips_abi ABI" 1>&2; exit 1; }
1873 fi
1874 # Old GCC
1875 abi=''
1876 abilibdirext=''
1877 ;;
1878 -mabi=n32|-mabi=64)
1879 if test $with_mips_abi = yes; then
1880 # Old GCC, default to O32
1881 abi=''
1882 abilibdirext=''
1883 else
1884 # Some broken GCC
1885 { echo "configure: error: $CC does not support the $with_mips_abi ABI" 1>&2; exit 1; }
1886 fi
1887 ;;
1888esac
1889fi #if test $ac_res = no; then
1890fi #if test -n "$abi" ; then
1891else
1892case "${with_mips_abi}" in
1893 32|o32) abi='-32'; abilibdirext='' ;;
1894 n32|yes) abi='-n32'; abilibdirext='32' ;;
1895 64) abi='-64'; abilibdirext='64' ;;
1896 no) abi=''; abilibdirext='';;
1897 *) { echo "configure: error: "Invalid ABI specified"" 1>&2; exit 1; } ;;
1898esac
1899fi #if test -n "$GCC"; then
1900;;
1901esac
1902
1903CC="$CC $abi"
1904libdir="$libdir$abilibdirext"
1905
1906
1907echo $ac_n "checking for __attribute__""... $ac_c" 1>&6
1908echo "configure:1909: checking for __attribute__" >&5
1909if eval "test \"`echo '$''{'ac_cv___attribute__'+set}'`\" = set"; then
1910 echo $ac_n "(cached) $ac_c" 1>&6
1911else
1912
1913cat > conftest.$ac_ext <<EOF
1914#line 1915 "configure"
1915#include "confdefs.h"
1916
1917#include <stdlib.h>
1918
1919int main() {
1920
1921static void foo(void) __attribute__ ((noreturn));
1922
1923static void
1924foo(void)
1925{
1926 exit(1);
1927}
1928
1929; return 0; }
1930EOF
1931if { (eval echo configure:1932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1932 rm -rf conftest*
1933 ac_cv___attribute__=yes
1934else
1935 echo "configure: failed program was:" >&5
1936 cat conftest.$ac_ext >&5
1937 rm -rf conftest*
1938 ac_cv___attribute__=no
1939fi
1940rm -f conftest*
1941fi
1942
1943if test "$ac_cv___attribute__" = "yes"; then
1944 cat >> confdefs.h <<\EOF
1945#define HAVE___ATTRIBUTE__ 1
1946EOF
1947
1948fi
1949echo "$ac_t""$ac_cv___attribute__" 1>&6
1950
1951
1952# Check whether --enable-shared or --disable-shared was given.
1953if test "${enable_shared+set}" = set; then
1954 enableval="$enable_shared"
1955 p=${PACKAGE-default}
1956case "$enableval" in
1957yes) enable_shared=yes ;;
1958no) enable_shared=no ;;
1959*)
1960 enable_shared=no
1961 # Look at the argument we got. We use all the common list separators.
1962 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1963 for pkg in $enableval; do
1964 if test "X$pkg" = "X$p"; then
1965 enable_shared=yes
1966 fi
1967 done
1968 IFS="$ac_save_ifs"
1969 ;;
1970esac
1971else
1972 enable_shared=no
1973fi
1974
1975# Check whether --enable-static or --disable-static was given.
1976if test "${enable_static+set}" = set; then
1977 enableval="$enable_static"
1978 p=${PACKAGE-default}
1979case "$enableval" in
1980yes) enable_static=yes ;;
1981no) enable_static=no ;;
1982*)
1983 enable_static=no
1984 # Look at the argument we got. We use all the common list separators.
1985 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1986 for pkg in $enableval; do
1987 if test "X$pkg" = "X$p"; then
1988 enable_static=yes
1989 fi
1990 done
1991 IFS="$ac_save_ifs"
1992 ;;
1993esac
1994else
1995 enable_static=yes
1996fi
1997
1998# Check whether --with-gnu-ld or --without-gnu-ld was given.
1999if test "${with_gnu_ld+set}" = set; then
2000 withval="$with_gnu_ld"
2001 test "$withval" = no || with_gnu_ld=yes
2002else
2003 with_gnu_ld=no
2004fi
2005
2006
2007ac_prog=ld
2008if test "$ac_cv_prog_gcc" = yes; then
2009 # Check if gcc -print-prog-name=ld gives a path.
2010 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2011echo "configure:2012: checking for ld used by GCC" >&5
2012 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2013 case "$ac_prog" in
2014 # Accept absolute paths.
2015 /* | [A-Za-z]:\\*)
2016 test -z "$LD" && LD="$ac_prog"
2017 ;;
2018 "")
2019 # If it fails, then pretend we aren't using GCC.
2020 ac_prog=ld
2021 ;;
2022 *)
2023 # If it is relative, then search for the first ld in PATH.
2024 with_gnu_ld=unknown
2025 ;;
2026 esac
2027elif test "$with_gnu_ld" = yes; then
2028 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2029echo "configure:2030: checking for GNU ld" >&5
2030else
2031 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2032echo "configure:2033: checking for non-GNU ld" >&5
2033fi
2034if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
2035 echo $ac_n "(cached) $ac_c" 1>&6
2036else
2037 if test -z "$LD"; then
2038 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2039 for ac_dir in $PATH; do
2040 test -z "$ac_dir" && ac_dir=.
2041 if test -f "$ac_dir/$ac_prog"; then
2042 ac_cv_path_LD="$ac_dir/$ac_prog"
2043 # Check to see if the program is GNU ld. I'd rather use --version,
2044 # but apparently some GNU ld's only accept -v.
2045 # Break only if it was the GNU/non-GNU ld that we prefer.
2046 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2047 test "$with_gnu_ld" != no && break
2048 else
2049 test "$with_gnu_ld" != yes && break
2050 fi
2051 fi
2052 done
2053 IFS="$ac_save_ifs"
2054else
2055 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2056fi
2057fi
2058
2059LD="$ac_cv_path_LD"
2060if test -n "$LD"; then
2061 echo "$ac_t""$LD" 1>&6
2062else
2063 echo "$ac_t""no" 1>&6
2064fi
2065test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2066
2067echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2068echo "configure:2069: checking if the linker ($LD) is GNU ld" >&5
2069if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
2070 echo $ac_n "(cached) $ac_c" 1>&6
2071else
2072 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2073if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2074 ac_cv_prog_gnu_ld=yes
2075else
2076 ac_cv_prog_gnu_ld=no
2077fi
2078fi
2079
2080echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2081
2082
2083echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2084echo "configure:2085: checking for BSD-compatible nm" >&5
2085if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
2086 echo $ac_n "(cached) $ac_c" 1>&6
2087else
2088 if test -n "$NM"; then
2089 # Let the user override the test.
2090 ac_cv_path_NM="$NM"
2091else
2092 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2093 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
2094 test -z "$ac_dir" && ac_dir=.
2095 if test -f $ac_dir/nm; then
2096 # Check to see if the nm accepts a BSD-compat flag.
2097 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2098 # nm: unknown option "B" ignored
2099 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2100 ac_cv_path_NM="$ac_dir/nm -B"
2101 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2102 ac_cv_path_NM="$ac_dir/nm -p"
2103 else
2104 ac_cv_path_NM="$ac_dir/nm"
2105 fi
2106 break
2107 fi
2108 done
2109 IFS="$ac_save_ifs"
2110 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2111fi
2112fi
2113
2114NM="$ac_cv_path_NM"
2115echo "$ac_t""$NM" 1>&6
2116
2117
2118echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2119echo "configure:2120: checking whether ln -s works" >&5
2120if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2121 echo $ac_n "(cached) $ac_c" 1>&6
2122else
2123 rm -f conftestdata
2124if ln -s X conftestdata 2>/dev/null
2125then
2126 rm -f conftestdata
2127 ac_cv_prog_LN_S="ln -s"
2128else
2129 ac_cv_prog_LN_S=ln
2130fi
2131fi
2132LN_S="$ac_cv_prog_LN_S"
2133if test "$ac_cv_prog_LN_S" = "ln -s"; then
2134 echo "$ac_t""yes" 1>&6
2135else
2136 echo "$ac_t""no" 1>&6
2137fi
2138
2139# Always use our own libtool.
2140LIBTOOL='$(top_builddir)/libtool'
2141
2142# Check for any special flags to pass to ltconfig.
2143libtool_flags=
2144test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2145test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2146test "$silent" = yes && libtool_flags="$libtool_flags --silent"
2147test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2148test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2149
2150# Some flags need to be propagated to the compiler or linker for good
2151# libtool support.
2152case "$host" in
2153*-*-irix6*)
2154 # Find out which ABI we are using.
2155 echo '#line 2156 "configure"' > conftest.$ac_ext
2156 if { (eval echo configure:2157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2157 case "`/usr/bin/file conftest.o`" in
2158 *32-bit*)
2159 LD="${LD-ld} -32"
2160 ;;
2161 *N32*)
2162 LD="${LD-ld} -n32"
2163 ;;
2164 *64-bit*)
2165 LD="${LD-ld} -64"
2166 ;;
2167 esac
2168 fi
2169 rm -rf conftest*
2170 ;;
2171
2172*-*-sco3.2v5*)
2173 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2174 CFLAGS="$CFLAGS -belf"
2175 ;;
2176esac
2177
2178# Actually configure libtool. ac_aux_dir is where install-sh is found.
2179CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2180LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
2181${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2182$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2183|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2184
2185# Redirect the config.log output again, so that the ltconfig log is not
2186# clobbered by the next message.
2187exec 5>>./config.log
2188
2189
2190
2191WFLAGS_NOUNUSED=""
2192WFLAGS_NOIMPLICITINT=""
2193if test -z "$WFLAGS" -a "$GCC" = "yes"; then
2194 # -Wno-implicit-int for broken X11 headers
2195 # leave these out for now:
2196 # -Wcast-align doesn't work well on alpha osf/1
2197 # -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
2198 # -Wmissing-declarations -Wnested-externs
2199 WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs"
2200 WFLAGS_NOUNUSED="-Wno-unused"
2201 WFLAGS_NOIMPLICITINT="-Wno-implicit-int"
2202fi
2203
2204
2205berkeley_db=db
2206# Check whether --with-berkeley-db or --without-berkeley-db was given.
2207if test "${with_berkeley_db+set}" = set; then
2208 withval="$with_berkeley_db"
2209
2210if test "$withval" = no; then
2211 berkeley_db=""
2212fi
2213
2214fi
2215
2216
2217
2218# Check whether --with-krb4 or --without-krb4 was given.
2219if test "${with_krb4+set}" = set; then
2220 withval="$with_krb4"
2221 :
2222fi
2223
2224# Check whether --with-krb4-lib or --without-krb4-lib was given.
2225if test "${with_krb4_lib+set}" = set; then
2226 withval="$with_krb4_lib"
2227 if test "$withval" = "yes" -o "$withval" = "no"; then
2228 { echo "configure: error: No argument for --with-krb4-lib" 1>&2; exit 1; }
2229elif test "X$with_krb4" = "X"; then
2230 with_krb4=yes
2231fi
2232fi
2233
2234# Check whether --with-krb4-include or --without-krb4-include was given.
2235if test "${with_krb4_include+set}" = set; then
2236 withval="$with_krb4_include"
2237 if test "$withval" = "yes" -o "$withval" = "no"; then
2238 { echo "configure: error: No argument for --with-krb4-include" 1>&2; exit 1; }
2239elif test "X$with_krb4" = "X"; then
2240 with_krb4=yes
2241fi
2242fi
2243
2244
2245echo $ac_n "checking for krb4""... $ac_c" 1>&6
2246echo "configure:2247: checking for krb4" >&5
2247
2248case "$with_krb4" in
2249yes) ;;
2250no) ;;
2251"") ;;
2252*) if test "$with_krb4_include" = ""; then
2253 with_krb4_include="$with_krb4/include"
2254 fi
2255 if test "$with_krb4_lib" = ""; then
2256 with_krb4_lib="$with_krb4/lib$abilibdirext"
2257 fi
2258 ;;
2259esac
2260header_dirs=
2261lib_dirs=
2262d='/usr/athena'
2263for i in $d; do
2264 header_dirs="$header_dirs $i/include"
2265 lib_dirs="$lib_dirs $i/lib$abilibdirext"
2266done
2267
2268case "$with_krb4_include" in
2269yes) ;;
2270no) ;;
2271*) header_dirs="$with_krb4_include $header_dirs";;
2272esac
2273case "$with_krb4_lib" in
2274yes) ;;
2275no) ;;
2276*) lib_dirs="$with_krb4_lib $lib_dirs";;
2277esac
2278
2279save_CFLAGS="$CFLAGS"
2280save_LIBS="$LIBS"
2281ires= lres=
2282for i in $header_dirs; do
2283 CFLAGS="-I$i $save_CFLAGS"
2284 cat > conftest.$ac_ext <<EOF
2285#line 2286 "configure"
2286#include "confdefs.h"
2287#include <krb.h>
2288int main() {
2289
2290; return 0; }
2291EOF
2292if { (eval echo configure:2293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2293 rm -rf conftest*
2294 ires=$i;break
2295else
2296 echo "configure: failed program was:" >&5
2297 cat conftest.$ac_ext >&5
2298fi
2299rm -f conftest*
2300done
2301for i in $lib_dirs; do
2302 LIBS="-L$i -lkrb -ldes $save_LIBS"
2303 cat > conftest.$ac_ext <<EOF
2304#line 2305 "configure"
2305#include "confdefs.h"
2306#include <krb.h>
2307int main() {
2308
2309; return 0; }
2310EOF
2311if { (eval echo configure:2312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2312 rm -rf conftest*
2313 lres=$i;break
2314else
2315 echo "configure: failed program was:" >&5
2316 cat conftest.$ac_ext >&5
2317fi
2318rm -f conftest*
2319done
2320CFLAGS="$save_CFLAGS"
2321LIBS="$save_LIBS"
2322
2323if test "$ires" -a "$lres" -a "$with_krb4" != "no"; then
2324 krb4_includedir="$ires"
2325 krb4_libdir="$lres"
2326 INCLUDE_krb4="-I$krb4_includedir"
2327 LIB_krb4="-L$krb4_libdir -lkrb"
2328 cat >> confdefs.h <<EOF
2329#define `echo krb4 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` 1
2330EOF
2331
2332 with_krb4=yes
2333 echo "$ac_t""headers $ires, libraries $lres" 1>&6
2334else
2335 INCLUDE_krb4=
2336 LIB_krb4=
2337 with_krb4=no
2338 echo "$ac_t""$with_krb4" 1>&6
2339fi
2340
2341
2342
2343
2344LIB_kdb=
2345if test "$with_krb4" != "no"; then
2346 save_CFLAGS="$CFLAGS"
2347 CFLAGS="$CFLAGS $INCLUDE_krb4"
2348 save_LIBS="$LIBS"
2349 LIBS="$LIB_krb4 -ldes $LIBS"
2350 EXTRA_LIB45=lib45.a
2351
2352 echo $ac_n "checking for four valued krb_put_int""... $ac_c" 1>&6
2353echo "configure:2354: checking for four valued krb_put_int" >&5
2354if eval "test \"`echo '$''{'ac_cv_func_krb_put_int_four'+set}'`\" = set"; then
2355 echo $ac_n "(cached) $ac_c" 1>&6
2356else
2357 cat > conftest.$ac_ext <<EOF
2358#line 2359 "configure"
2359#include "confdefs.h"
2360#include <krb.h>
2361int main() {
2362
2363 char tmp[4];
2364 krb_put_int(17, tmp, 4, sizeof(tmp));
2365; return 0; }
2366EOF
2367if { (eval echo configure:2368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2368 rm -rf conftest*
2369 ac_cv_func_krb_put_int_four=yes
2370else
2371 echo "configure: failed program was:" >&5
2372 cat conftest.$ac_ext >&5
2373 rm -rf conftest*
2374 ac_cv_func_krb_put_int_four=no
2375fi
2376rm -f conftest*
2377
2378fi
2379
2380echo "$ac_t""$ac_cv_func_krb_put_int_four" 1>&6
2381 if test "$ac_cv_func_krb_put_int_four" = yes; then
2382 cat >> confdefs.h <<\EOF
2383#define HAVE_FOUR_VALUED_KRB_PUT_INT 1
2384EOF
2385
2386 fi
2387 echo $ac_n "checking for KRB_VERIFY_SECURE""... $ac_c" 1>&6
2388echo "configure:2389: checking for KRB_VERIFY_SECURE" >&5
2389if eval "test \"`echo '$''{'ac_cv_func_krb_verify_secure'+set}'`\" = set"; then
2390 echo $ac_n "(cached) $ac_c" 1>&6
2391else
2392 cat > conftest.$ac_ext <<EOF
2393#line 2394 "configure"
2394#include "confdefs.h"
2395#include <krb.h>
2396int main() {
2397
2398 int x = KRB_VERIFY_SECURE
2399; return 0; }
2400EOF
2401if { (eval echo configure:2402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2402 rm -rf conftest*
2403 ac_cv_func_krb_verify_secure=yes
2404else
2405 echo "configure: failed program was:" >&5
2406 cat conftest.$ac_ext >&5
2407 rm -rf conftest*
2408 ac_cv_func_krb_verify_secure=no
2409fi
2410rm -f conftest*
2411
2412fi
2413
2414echo "$ac_t""$ac_cv_func_krb_verify_secure" 1>&6
2415 if test "$ac_cv_func_krb_verify_secure" != yes; then
2416 cat >> confdefs.h <<\EOF
2417#define KRB_VERIFY_SECURE 1
2418EOF
2419
2420 cat >> confdefs.h <<\EOF
2421#define KRB_VERIFY_SECURE_FAIL 2
2422EOF
2423
2424 fi
2425 echo $ac_n "checking for KRB_VERIFY_NOT_SECURE""... $ac_c" 1>&6
2426echo "configure:2427: checking for KRB_VERIFY_NOT_SECURE" >&5
2427if eval "test \"`echo '$''{'ac_cv_func_krb_verify_not_secure'+set}'`\" = set"; then
2428 echo $ac_n "(cached) $ac_c" 1>&6
2429else
2430 cat > conftest.$ac_ext <<EOF
2431#line 2432 "configure"
2432#include "confdefs.h"
2433#include <krb.h>
2434int main() {
2435
2436 int x = KRB_VERIFY_NOT_SECURE
2437; return 0; }
2438EOF
2439if { (eval echo configure:2440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2440 rm -rf conftest*
2441 ac_cv_func_krb_verify_not_secure=yes
2442else
2443 echo "configure: failed program was:" >&5
2444 cat conftest.$ac_ext >&5
2445 rm -rf conftest*
2446 ac_cv_func_krb_verify_not_secure=no
2447fi
2448rm -f conftest*
2449
2450fi
2451
2452echo "$ac_t""$ac_cv_func_krb_verify_not_secure" 1>&6
2453 if test "$ac_cv_func_krb_verify_not_secure" != yes; then
2454 cat >> confdefs.h <<\EOF
2455#define KRB_VERIFY_NOT_SECURE 0
2456EOF
2457
2458 fi
2459
2460
2461
2462
2463echo $ac_n "checking for krb_enable_debug""... $ac_c" 1>&6
2464echo "configure:2465: checking for krb_enable_debug" >&5
2465if eval "test \"`echo '$''{'ac_cv_funclib_krb_enable_debug'+set}'`\" = set"; then
2466 echo $ac_n "(cached) $ac_c" 1>&6
2467else
2468
2469if eval "test \"\$ac_cv_func_krb_enable_debug\" != yes" ; then
2470 ac_save_LIBS="$LIBS"
2471 for ac_lib in "" ; do
2472 if test -n "$ac_lib"; then
2473 ac_lib="-l$ac_lib"
2474 else
2475 ac_lib=""
2476 fi
2477 LIBS=" $ac_lib $ac_save_LIBS"
2478 cat > conftest.$ac_ext <<EOF
2479#line 2480 "configure"
2480#include "confdefs.h"
2481
2482int main() {
2483krb_enable_debug()
2484; return 0; }
2485EOF
2486if { (eval echo configure:2487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2487 rm -rf conftest*
2488 eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_enable_debug=$ac_lib; else ac_cv_funclib_krb_enable_debug=yes; fi";break
2489else
2490 echo "configure: failed program was:" >&5
2491 cat conftest.$ac_ext >&5
2492fi
2493rm -f conftest*
2494 done
2495 eval "ac_cv_funclib_krb_enable_debug=\${ac_cv_funclib_krb_enable_debug-no}"
2496 LIBS="$ac_save_LIBS"
2497fi
2498
2499fi
2500
2501
2502eval "ac_res=\$ac_cv_funclib_krb_enable_debug"
2503
2504: << END
2505@@@funcs="$funcs krb_enable_debug"@@@
2506@@@libs="$libs "" "@@@
2507END
2508
2509# krb_enable_debug
2510eval "ac_tr_func=HAVE_`echo krb_enable_debug | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
2511eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
2512eval "LIB_krb_enable_debug=$ac_res"
2513
2514case "$ac_res" in
2515 yes)
2516 eval "ac_cv_func_krb_enable_debug=yes"
2517 eval "LIB_krb_enable_debug="
2518 cat >> confdefs.h <<EOF
2519#define $ac_tr_func 1
2520EOF
2521
2522 echo "$ac_t""yes" 1>&6
2523 ;;
2524 no)
2525 eval "ac_cv_func_krb_enable_debug=no"
2526 eval "LIB_krb_enable_debug="
2527 echo "$ac_t""no" 1>&6
2528 ;;
2529 *)
2530 eval "ac_cv_func_krb_enable_debug=yes"
2531 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
2532 cat >> confdefs.h <<EOF
2533#define $ac_tr_func 1
2534EOF
2535
2536 cat >> confdefs.h <<EOF
2537#define $ac_tr_lib 1
2538EOF
2539
2540 echo "$ac_t""yes, in $ac_res" 1>&6
2541 ;;
2542esac
2543
2544
2545if test -n "$LIB_krb_enable_debug"; then
2546 LIBS="$LIB_krb_enable_debug $LIBS"
2547fi
2548
2549
2550
2551
2552
2553echo $ac_n "checking for krb_disable_debug""... $ac_c" 1>&6
2554echo "configure:2555: checking for krb_disable_debug" >&5
2555if eval "test \"`echo '$''{'ac_cv_funclib_krb_disable_debug'+set}'`\" = set"; then
2556 echo $ac_n "(cached) $ac_c" 1>&6
2557else
2558
2559if eval "test \"\$ac_cv_func_krb_disable_debug\" != yes" ; then
2560 ac_save_LIBS="$LIBS"
2561 for ac_lib in "" ; do
2562 if test -n "$ac_lib"; then
2563 ac_lib="-l$ac_lib"
2564 else
2565 ac_lib=""
2566 fi
2567 LIBS=" $ac_lib $ac_save_LIBS"
2568 cat > conftest.$ac_ext <<EOF
2569#line 2570 "configure"
2570#include "confdefs.h"
2571
2572int main() {
2573krb_disable_debug()
2574; return 0; }
2575EOF
2576if { (eval echo configure:2577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2577 rm -rf conftest*
2578 eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_disable_debug=$ac_lib; else ac_cv_funclib_krb_disable_debug=yes; fi";break
2579else
2580 echo "configure: failed program was:" >&5
2581 cat conftest.$ac_ext >&5
2582fi
2583rm -f conftest*
2584 done
2585 eval "ac_cv_funclib_krb_disable_debug=\${ac_cv_funclib_krb_disable_debug-no}"
2586 LIBS="$ac_save_LIBS"
2587fi
2588
2589fi
2590
2591
2592eval "ac_res=\$ac_cv_funclib_krb_disable_debug"
2593
2594: << END
2595@@@funcs="$funcs krb_disable_debug"@@@
2596@@@libs="$libs "" "@@@
2597END
2598
2599# krb_disable_debug
2600eval "ac_tr_func=HAVE_`echo krb_disable_debug | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
2601eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
2602eval "LIB_krb_disable_debug=$ac_res"
2603
2604case "$ac_res" in
2605 yes)
2606 eval "ac_cv_func_krb_disable_debug=yes"
2607 eval "LIB_krb_disable_debug="
2608 cat >> confdefs.h <<EOF
2609#define $ac_tr_func 1
2610EOF
2611
2612 echo "$ac_t""yes" 1>&6
2613 ;;
2614 no)
2615 eval "ac_cv_func_krb_disable_debug=no"
2616 eval "LIB_krb_disable_debug="
2617 echo "$ac_t""no" 1>&6
2618 ;;
2619 *)
2620 eval "ac_cv_func_krb_disable_debug=yes"
2621 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
2622 cat >> confdefs.h <<EOF
2623#define $ac_tr_func 1
2624EOF
2625
2626 cat >> confdefs.h <<EOF
2627#define $ac_tr_lib 1
2628EOF
2629
2630 echo "$ac_t""yes, in $ac_res" 1>&6
2631 ;;
2632esac
2633
2634
2635if test -n "$LIB_krb_disable_debug"; then
2636 LIBS="$LIB_krb_disable_debug $LIBS"
2637fi
2638
2639
2640
2641
2642
2643echo $ac_n "checking for krb_get_our_ip_for_realm""... $ac_c" 1>&6
2644echo "configure:2645: checking for krb_get_our_ip_for_realm" >&5
2645if eval "test \"`echo '$''{'ac_cv_funclib_krb_get_our_ip_for_realm'+set}'`\" = set"; then
2646 echo $ac_n "(cached) $ac_c" 1>&6
2647else
2648
2649if eval "test \"\$ac_cv_func_krb_get_our_ip_for_realm\" != yes" ; then
2650 ac_save_LIBS="$LIBS"
2651 for ac_lib in "" ; do
2652 if test -n "$ac_lib"; then
2653 ac_lib="-l$ac_lib"
2654 else
2655 ac_lib=""
2656 fi
2657 LIBS=" $ac_lib $ac_save_LIBS"
2658 cat > conftest.$ac_ext <<EOF
2659#line 2660 "configure"
2660#include "confdefs.h"
2661
2662int main() {
2663krb_get_our_ip_for_realm()
2664; return 0; }
2665EOF
2666if { (eval echo configure:2667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2667 rm -rf conftest*
2668 eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_get_our_ip_for_realm=$ac_lib; else ac_cv_funclib_krb_get_our_ip_for_realm=yes; fi";break
2669else
2670 echo "configure: failed program was:" >&5
2671 cat conftest.$ac_ext >&5
2672fi
2673rm -f conftest*
2674 done
2675 eval "ac_cv_funclib_krb_get_our_ip_for_realm=\${ac_cv_funclib_krb_get_our_ip_for_realm-no}"
2676 LIBS="$ac_save_LIBS"
2677fi
2678
2679fi
2680
2681
2682eval "ac_res=\$ac_cv_funclib_krb_get_our_ip_for_realm"
2683
2684: << END
2685@@@funcs="$funcs krb_get_our_ip_for_realm"@@@
2686@@@libs="$libs "" "@@@
2687END
2688
2689# krb_get_our_ip_for_realm
2690eval "ac_tr_func=HAVE_`echo krb_get_our_ip_for_realm | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
2691eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
2692eval "LIB_krb_get_our_ip_for_realm=$ac_res"
2693
2694case "$ac_res" in
2695 yes)
2696 eval "ac_cv_func_krb_get_our_ip_for_realm=yes"
2697 eval "LIB_krb_get_our_ip_for_realm="
2698 cat >> confdefs.h <<EOF
2699#define $ac_tr_func 1
2700EOF
2701
2702 echo "$ac_t""yes" 1>&6
2703 ;;
2704 no)
2705 eval "ac_cv_func_krb_get_our_ip_for_realm=no"
2706 eval "LIB_krb_get_our_ip_for_realm="
2707 echo "$ac_t""no" 1>&6
2708 ;;
2709 *)
2710 eval "ac_cv_func_krb_get_our_ip_for_realm=yes"
2711 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
2712 cat >> confdefs.h <<EOF
2713#define $ac_tr_func 1
2714EOF
2715
2716 cat >> confdefs.h <<EOF
2717#define $ac_tr_lib 1
2718EOF
2719
2720 echo "$ac_t""yes, in $ac_res" 1>&6
2721 ;;
2722esac
2723
2724
2725if test -n "$LIB_krb_get_our_ip_for_realm"; then
2726 LIBS="$LIB_krb_get_our_ip_for_realm $LIBS"
2727fi
2728
2729 LIBS="$save_LIBS"
2730 CFLAGS="$save_CFLAGS"
2731 LIB_kdb="-lkdb -lkrb"
2732 if test "$krb4_libdir"; then
2733 LIB_krb4="-rpath $krb4_libdir $LIB_krb4"
2734 LIB_kdb="-rpath $krb4_libdir -L$krb4_libdir $LIB_kdb"
2735 fi
2736fi
2737
2738
2739if test "$with_krb4" != "no"; then
2740 KRB4_TRUE=
2741 KRB4_FALSE='#'
2742else
2743 KRB4_TRUE='#'
2744 KRB4_FALSE=
2745fi
2746
2747
2748if true; then
2749 KRB5_TRUE=
2750 KRB5_FALSE='#'
2751else
2752 KRB5_TRUE='#'
2753 KRB5_FALSE=
2754fi
2755cat >> confdefs.h <<\EOF
2756#define KRB5 1
2757EOF
2758
2759
2760if test "$aix" != no; then
2761 AIX_TRUE=
2762 AIX_FALSE='#'
2763else
2764 AIX_TRUE='#'
2765 AIX_FALSE=
2766fi
2767
2768if test "$aix" = 4; then
2769 AIX4_TRUE=
2770 AIX4_FALSE='#'
2771else
2772 AIX4_TRUE='#'
2773 AIX4_FALSE=
2774fi
2775aix_dynamic_afs=yes
2776
2777
2778if test "$aix_dynamic_afs" = yes; then
2779 AIX_DYNAMIC_AFS_TRUE=
2780 AIX_DYNAMIC_AFS_FALSE='#'
2781else
2782 AIX_DYNAMIC_AFS_TRUE='#'
2783 AIX_DYNAMIC_AFS_FALSE=
2784fi
2785
2786
2787
2788echo $ac_n "checking for dlopen""... $ac_c" 1>&6
2789echo "configure:2790: checking for dlopen" >&5
2790if eval "test \"`echo '$''{'ac_cv_funclib_dlopen'+set}'`\" = set"; then
2791 echo $ac_n "(cached) $ac_c" 1>&6
2792else
2793
2794if eval "test \"\$ac_cv_func_dlopen\" != yes" ; then
2795 ac_save_LIBS="$LIBS"
2796 for ac_lib in "" dl; do
2797 if test -n "$ac_lib"; then
2798 ac_lib="-l$ac_lib"
2799 else
2800 ac_lib=""
2801 fi
2802 LIBS=" $ac_lib $ac_save_LIBS"
2803 cat > conftest.$ac_ext <<EOF
2804#line 2805 "configure"
2805#include "confdefs.h"
2806
2807int main() {
2808dlopen()
2809; return 0; }
2810EOF
2811if { (eval echo configure:2812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2812 rm -rf conftest*
2813 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dlopen=$ac_lib; else ac_cv_funclib_dlopen=yes; fi";break
2814else
2815 echo "configure: failed program was:" >&5
2816 cat conftest.$ac_ext >&5
2817fi
2818rm -f conftest*
2819 done
2820 eval "ac_cv_funclib_dlopen=\${ac_cv_funclib_dlopen-no}"
2821 LIBS="$ac_save_LIBS"
2822fi
2823
2824fi
2825
2826
2827eval "ac_res=\$ac_cv_funclib_dlopen"
2828
2829: << END
2830@@@funcs="$funcs dlopen"@@@
2831@@@libs="$libs "" dl"@@@
2832END
2833
2834# dlopen
2835eval "ac_tr_func=HAVE_`echo dlopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
2836eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
2837eval "LIB_dlopen=$ac_res"
2838
2839case "$ac_res" in
2840 yes)
2841 eval "ac_cv_func_dlopen=yes"
2842 eval "LIB_dlopen="
2843 cat >> confdefs.h <<EOF
2844#define $ac_tr_func 1
2845EOF
2846
2847 echo "$ac_t""yes" 1>&6
2848 ;;
2849 no)
2850 eval "ac_cv_func_dlopen=no"
2851 eval "LIB_dlopen="
2852 echo "$ac_t""no" 1>&6
2853 ;;
2854 *)
2855 eval "ac_cv_func_dlopen=yes"
2856 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
2857 cat >> confdefs.h <<EOF
2858#define $ac_tr_func 1
2859EOF
2860
2861 cat >> confdefs.h <<EOF
2862#define $ac_tr_lib 1
2863EOF
2864
2865 echo "$ac_t""yes, in $ac_res" 1>&6
2866 ;;
2867esac
2868
2869
2870
2871if test "$aix" != no; then
2872 if test "$aix_dynamic_afs" = yes; then
2873 if test "$ac_cv_funclib_dlopen" = yes; then
2874 AIX_EXTRA_KAFS=
2875 elif test "$ac_cv_funclib_dlopen" != no; then
2876 AIX_EXTRA_KAFS="$ac_cv_funclib_dlopen"
2877 else
2878 AIX_EXTRA_KAFS=-lld
2879 fi
2880 else
2881 AIX_EXTRA_KAFS=
2882 fi
2883fi
2884
2885
2886
2887if test "$ac_cv_funclib_dlopen" != no; then
2888 HAVE_DLOPEN_TRUE=
2889 HAVE_DLOPEN_FALSE='#'
2890else
2891 HAVE_DLOPEN_TRUE='#'
2892 HAVE_DLOPEN_FALSE=
2893fi
2894# Check whether --enable-kaserver or --disable-kaserver was given.
2895if test "${enable_kaserver+set}" = set; then
2896 enableval="$enable_kaserver"
2897 :
2898fi
2899
2900if test "$enable_kaserver" = yes; then
2901 cat >> confdefs.h <<\EOF
2902#define KASERVER 1
2903EOF
2904
2905 if test "$with_krb4" = "no"; then
2906 { echo "configure: error: kaserver requires krb4" 1>&2; exit 1; }
2907 exit 1
2908 fi
2909fi
2910
2911# Check whether --enable-kaserver-db or --disable-kaserver-db was given.
2912if test "${enable_kaserver_db+set}" = set; then
2913 enableval="$enable_kaserver_db"
2914 :
2915fi
2916
2917if test "$enable_kaserver_db" = yes; then
2918 cat >> confdefs.h <<\EOF
2919#define KASERVER_DB 1
2920EOF
2921
2922 if test "$with_krb4" = "no"; then
2923 { echo "configure: error: kaserver-db requires krb4" 1>&2; exit 1; }
2924 exit 1
2925 fi
2926fi
2927
2928otp=yes
2929# Check whether --enable-otp or --disable-otp was given.
2930if test "${enable_otp+set}" = set; then
2931 enableval="$enable_otp"
2932
2933if test "$enableval" = "no"; then
2934 otp=no
2935fi
2936
2937fi
2938
2939if test "$otp" = "yes"; then
2940 cat >> confdefs.h <<\EOF
2941#define OTP 1
2942EOF
2943
2944 LIB_otp='$(top_builddir)/lib/otp/libotp.la'
2945fi
2946
2947
2948
2949if test "$otp" = yes; then
2950 OTP_TRUE=
2951 OTP_FALSE='#'
2952else
2953 OTP_TRUE='#'
2954 OTP_FALSE=
2955fi
2956
2957# Check whether --enable-osfc2 or --disable-osfc2 was given.
2958if test "${enable_osfc2+set}" = set; then
2959 enableval="$enable_osfc2"
2960 :
2961fi
2962
2963LIB_security=
2964if test "$enable_osfc2" = yes; then
2965 cat >> confdefs.h <<\EOF
2966#define HAVE_OSFC2 1
2967EOF
2968
2969 LIB_security=-lsecurity
2970fi
2971
2972
2973
2974# Extract the first word of "nroff", so it can be a program name with args.
2975set dummy nroff; ac_word=$2
2976echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2977echo "configure:2978: checking for $ac_word" >&5
2978if eval "test \"`echo '$''{'ac_cv_path_NROFF'+set}'`\" = set"; then
2979 echo $ac_n "(cached) $ac_c" 1>&6
2980else
2981 case "$NROFF" in
2982 /*)
2983 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
2984 ;;
2985 ?:/*)
2986 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a dos path.
2987 ;;
2988 *)
2989 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2990 ac_dummy="$PATH"
2991 for ac_dir in $ac_dummy; do
2992 test -z "$ac_dir" && ac_dir=.
2993 if test -f $ac_dir/$ac_word; then
2994 ac_cv_path_NROFF="$ac_dir/$ac_word"
2995 break
2996 fi
2997 done
2998 IFS="$ac_save_ifs"
2999 ;;
3000esac
3001fi
3002NROFF="$ac_cv_path_NROFF"
3003if test -n "$NROFF"; then
3004 echo "$ac_t""$NROFF" 1>&6
3005else
3006 echo "$ac_t""no" 1>&6
3007fi
3008
3009# Extract the first word of "groff", so it can be a program name with args.
3010set dummy groff; ac_word=$2
3011echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3012echo "configure:3013: checking for $ac_word" >&5
3013if eval "test \"`echo '$''{'ac_cv_path_GROFF'+set}'`\" = set"; then
3014 echo $ac_n "(cached) $ac_c" 1>&6
3015else
3016 case "$GROFF" in
3017 /*)
3018 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
3019 ;;
3020 ?:/*)
3021 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a dos path.
3022 ;;
3023 *)
3024 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3025 ac_dummy="$PATH"
3026 for ac_dir in $ac_dummy; do
3027 test -z "$ac_dir" && ac_dir=.
3028 if test -f $ac_dir/$ac_word; then
3029 ac_cv_path_GROFF="$ac_dir/$ac_word"
3030 break
3031 fi
3032 done
3033 IFS="$ac_save_ifs"
3034 ;;
3035esac
3036fi
3037GROFF="$ac_cv_path_GROFF"
3038if test -n "$GROFF"; then
3039 echo "$ac_t""$GROFF" 1>&6
3040else
3041 echo "$ac_t""no" 1>&6
3042fi
3043
3044echo $ac_n "checking how to format man pages""... $ac_c" 1>&6
3045echo "configure:3046: checking how to format man pages" >&5
3046if eval "test \"`echo '$''{'ac_cv_sys_man_format'+set}'`\" = set"; then
3047 echo $ac_n "(cached) $ac_c" 1>&6
3048else
3049 cat > conftest.1 << END
3050.Dd January 1, 1970
3051.Dt CONFTEST 1
3052.Sh NAME
3053.Nm conftest
3054.Nd
3055foobar
3056END
3057
3058if test "$NROFF" ; then
3059 for i in "-mdoc" "-mandoc"; do
3060 if "$NROFF" $i conftest.1 2> /dev/null | \
3061 grep Jan > /dev/null 2>&1 ; then
3062 ac_cv_sys_man_format="$NROFF $i"
3063 break
3064 fi
3065 done
3066fi
3067if test "$ac_cv_sys_man_format" = "" -a "$GROFF" ; then
3068 for i in "-mdoc" "-mandoc"; do
3069 if "$GROFF" -Tascii $i conftest.1 2> /dev/null | \
3070 grep Jan > /dev/null 2>&1 ; then
3071 ac_cv_sys_man_format="$GROFF -Tascii $i"
3072 break
3073 fi
3074 done
3075fi
3076if test "$ac_cv_sys_man_format"; then
3077 ac_cv_sys_man_format="$ac_cv_sys_man_format \$< > \$@"
3078fi
3079
3080fi
3081
3082echo "$ac_t""$ac_cv_sys_man_format" 1>&6
3083if test "$ac_cv_sys_man_format"; then
3084 CATMAN="$ac_cv_sys_man_format"
3085
3086fi
3087
3088
3089if test "$CATMAN"; then
3090 CATMAN_TRUE=
3091 CATMAN_FALSE='#'
3092else
3093 CATMAN_TRUE='#'
3094 CATMAN_FALSE=
3095fi
3096echo $ac_n "checking extension of pre-formatted manual pages""... $ac_c" 1>&6
3097echo "configure:3098: checking extension of pre-formatted manual pages" >&5
3098if eval "test \"`echo '$''{'ac_cv_sys_catman_ext'+set}'`\" = set"; then
3099 echo $ac_n "(cached) $ac_c" 1>&6
3100else
3101 if grep _suffix /etc/man.conf > /dev/null 2>&1; then
3102 ac_cv_sys_catman_ext=0
3103else
3104 ac_cv_sys_catman_ext=number
3105fi
3106
3107fi
3108
3109echo "$ac_t""$ac_cv_sys_catman_ext" 1>&6
3110if test "$ac_cv_sys_catman_ext" = number; then
3111 CATMANEXT='$$ext'
3112else
3113 CATMANEXT=0
3114fi
3115
3116
3117
3118
3119
3120# Check whether --with-readline or --without-readline was given.
3121if test "${with_readline+set}" = set; then
3122 withval="$with_readline"
3123 :
3124fi
3125
3126# Check whether --with-readline-lib or --without-readline-lib was given.
3127if test "${with_readline_lib+set}" = set; then
3128 withval="$with_readline_lib"
3129 if test "$withval" = "yes" -o "$withval" = "no"; then
3130 { echo "configure: error: No argument for --with-readline-lib" 1>&2; exit 1; }
3131elif test "X$with_readline" = "X"; then
3132 with_readline=yes
3133fi
3134fi
3135
3136# Check whether --with-readline-include or --without-readline-include was given.
3137if test "${with_readline_include+set}" = set; then
3138 withval="$with_readline_include"
3139 if test "$withval" = "yes" -o "$withval" = "no"; then
3140 { echo "configure: error: No argument for --with-readline-include" 1>&2; exit 1; }
3141elif test "X$with_readline" = "X"; then
3142 with_readline=yes
3143fi
3144fi
3145
3146
3147echo $ac_n "checking for readline""... $ac_c" 1>&6
3148echo "configure:3149: checking for readline" >&5
3149
3150case "$with_readline" in
3151yes) ;;
3152no) ;;
3153"") ;;
3154*) if test "$with_readline_include" = ""; then
3155 with_readline_include="$with_readline/include"
3156 fi
3157 if test "$with_readline_lib" = ""; then
3158 with_readline_lib="$with_readline/lib$abilibdirext"
3159 fi
3160 ;;
3161esac
3162header_dirs=
3163lib_dirs=
3164d=''
3165for i in $d; do
3166 header_dirs="$header_dirs $i/include"
3167 lib_dirs="$lib_dirs $i/lib$abilibdirext"
3168done
3169
3170case "$with_readline_include" in
3171yes) ;;
3172no) ;;
3173*) header_dirs="$with_readline_include $header_dirs";;
3174esac
3175case "$with_readline_lib" in
3176yes) ;;
3177no) ;;
3178*) lib_dirs="$with_readline_lib $lib_dirs";;
3179esac
3180
3181save_CFLAGS="$CFLAGS"
3182save_LIBS="$LIBS"
3183ires= lres=
3184for i in $header_dirs; do
3185 CFLAGS="-I$i $save_CFLAGS"
3186 cat > conftest.$ac_ext <<EOF
3187#line 3188 "configure"
3188#include "confdefs.h"
3189#include <stdio.h>
3190 #include <readline.h>
3191int main() {
3192
3193; return 0; }
3194EOF
3195if { (eval echo configure:3196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3196 rm -rf conftest*
3197 ires=$i;break
3198else
3199 echo "configure: failed program was:" >&5
3200 cat conftest.$ac_ext >&5
3201fi
3202rm -f conftest*
3203done
3204for i in $lib_dirs; do
3205 LIBS="-L$i -lreadline $save_LIBS"
3206 cat > conftest.$ac_ext <<EOF
3207#line 3208 "configure"
3208#include "confdefs.h"
3209#include <stdio.h>
3210 #include <readline.h>
3211int main() {
3212
3213; return 0; }
3214EOF
3215if { (eval echo configure:3216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3216 rm -rf conftest*
3217 lres=$i;break
3218else
3219 echo "configure: failed program was:" >&5
3220 cat conftest.$ac_ext >&5
3221fi
3222rm -f conftest*
3223done
3224CFLAGS="$save_CFLAGS"
3225LIBS="$save_LIBS"
3226
3227if test "$ires" -a "$lres" -a "$with_readline" != "no"; then
3228 readline_includedir="$ires"
3229 readline_libdir="$lres"
3230 INCLUDE_readline="-I$readline_includedir"
3231 LIB_readline="-L$readline_libdir -lreadline"
3232 cat >> confdefs.h <<EOF
3233#define `echo readline | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` 1
3234EOF
3235
3236 with_readline=yes
3237 echo "$ac_t""headers $ires, libraries $lres" 1>&6
3238else
3239 INCLUDE_readline=
3240 LIB_readline=
3241 with_readline=no
3242 echo "$ac_t""$with_readline" 1>&6
3243fi
3244
3245
3246
3247
3248
3249# Check whether --with-hesiod or --without-hesiod was given.
3250if test "${with_hesiod+set}" = set; then
3251 withval="$with_hesiod"
3252 :
3253fi
3254
3255# Check whether --with-hesiod-lib or --without-hesiod-lib was given.
3256if test "${with_hesiod_lib+set}" = set; then
3257 withval="$with_hesiod_lib"
3258 if test "$withval" = "yes" -o "$withval" = "no"; then
3259 { echo "configure: error: No argument for --with-hesiod-lib" 1>&2; exit 1; }
3260elif test "X$with_hesiod" = "X"; then
3261 with_hesiod=yes
3262fi
3263fi
3264
3265# Check whether --with-hesiod-include or --without-hesiod-include was given.
3266if test "${with_hesiod_include+set}" = set; then
3267 withval="$with_hesiod_include"
3268 if test "$withval" = "yes" -o "$withval" = "no"; then
3269 { echo "configure: error: No argument for --with-hesiod-include" 1>&2; exit 1; }
3270elif test "X$with_hesiod" = "X"; then
3271 with_hesiod=yes
3272fi
3273fi
3274
3275
3276echo $ac_n "checking for hesiod""... $ac_c" 1>&6
3277echo "configure:3278: checking for hesiod" >&5
3278
3279case "$with_hesiod" in
3280yes) ;;
3281no) ;;
3282"") ;;
3283*) if test "$with_hesiod_include" = ""; then
3284 with_hesiod_include="$with_hesiod/include"
3285 fi
3286 if test "$with_hesiod_lib" = ""; then
3287 with_hesiod_lib="$with_hesiod/lib$abilibdirext"
3288 fi
3289 ;;
3290esac
3291header_dirs=
3292lib_dirs=
3293d=''
3294for i in $d; do
3295 header_dirs="$header_dirs $i/include"
3296 lib_dirs="$lib_dirs $i/lib$abilibdirext"
3297done
3298
3299case "$with_hesiod_include" in
3300yes) ;;
3301no) ;;
3302*) header_dirs="$with_hesiod_include $header_dirs";;
3303esac
3304case "$with_hesiod_lib" in
3305yes) ;;
3306no) ;;
3307*) lib_dirs="$with_hesiod_lib $lib_dirs";;
3308esac
3309
3310save_CFLAGS="$CFLAGS"
3311save_LIBS="$LIBS"
3312ires= lres=
3313for i in $header_dirs; do
3314 CFLAGS="-I$i $save_CFLAGS"
3315 cat > conftest.$ac_ext <<EOF
3316#line 3317 "configure"
3317#include "confdefs.h"
3318#include <hesiod.h>
3319int main() {
3320
3321; return 0; }
3322EOF
3323if { (eval echo configure:3324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3324 rm -rf conftest*
3325 ires=$i;break
3326else
3327 echo "configure: failed program was:" >&5
3328 cat conftest.$ac_ext >&5
3329fi
3330rm -f conftest*
3331done
3332for i in $lib_dirs; do
3333 LIBS="-L$i -lhesiod $save_LIBS"
3334 cat > conftest.$ac_ext <<EOF
3335#line 3336 "configure"
3336#include "confdefs.h"
3337#include <hesiod.h>
3338int main() {
3339
3340; return 0; }
3341EOF
3342if { (eval echo configure:3343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3343 rm -rf conftest*
3344 lres=$i;break
3345else
3346 echo "configure: failed program was:" >&5
3347 cat conftest.$ac_ext >&5
3348fi
3349rm -f conftest*
3350done
3351CFLAGS="$save_CFLAGS"
3352LIBS="$save_LIBS"
3353
3354if test "$ires" -a "$lres" -a "$with_hesiod" != "no"; then
3355 hesiod_includedir="$ires"
3356 hesiod_libdir="$lres"
3357 INCLUDE_hesiod="-I$hesiod_includedir"
3358 LIB_hesiod="-L$hesiod_libdir -lhesiod"
3359 cat >> confdefs.h <<EOF
3360#define `echo hesiod | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` 1
3361EOF
3362
3363 with_hesiod=yes
3364 echo "$ac_t""headers $ires, libraries $lres" 1>&6
3365else
3366 INCLUDE_hesiod=
3367 LIB_hesiod=
3368 with_hesiod=no
3369 echo "$ac_t""$with_hesiod" 1>&6
3370fi
3371
3372
3373
3374
3375
3376# Check whether --enable-bigendian or --disable-bigendian was given.
3377if test "${enable_bigendian+set}" = set; then
3378 enableval="$enable_bigendian"
3379 krb_cv_c_bigendian=yes
3380fi
3381
3382# Check whether --enable-littleendian or --disable-littleendian was given.
3383if test "${enable_littleendian+set}" = set; then
3384 enableval="$enable_littleendian"
3385 krb_cv_c_bigendian=no
3386fi
3387
3388echo $ac_n "checking whether byte order is known at compile time""... $ac_c" 1>&6
3389echo "configure:3390: checking whether byte order is known at compile time" >&5
3390if eval "test \"`echo '$''{'krb_cv_c_bigendian_compile'+set}'`\" = set"; then
3391 echo $ac_n "(cached) $ac_c" 1>&6
3392else
3393 cat > conftest.$ac_ext <<EOF
3394#line 3395 "configure"
3395#include "confdefs.h"
3396
3397#include <sys/types.h>
3398#include <sys/param.h>
3399int main() {
3400
3401#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3402 bogus endian macros
3403#endif
3404; return 0; }
3405EOF
3406if { (eval echo configure:3407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3407 rm -rf conftest*
3408 krb_cv_c_bigendian_compile=yes
3409else
3410 echo "configure: failed program was:" >&5
3411 cat conftest.$ac_ext >&5
3412 rm -rf conftest*
3413 krb_cv_c_bigendian_compile=no
3414fi
3415rm -f conftest*
3416fi
3417
3418echo "$ac_t""$krb_cv_c_bigendian_compile" 1>&6
3419if test "$krb_cv_c_bigendian_compile" = "no"; then
3420 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3421echo "configure:3422: checking whether byte ordering is bigendian" >&5
3422if eval "test \"`echo '$''{'krb_cv_c_bigendian'+set}'`\" = set"; then
3423 echo $ac_n "(cached) $ac_c" 1>&6
3424else
3425
3426 if test "$krb_cv_c_bigendian" = ""; then
3427 krb_cv_c_bigendian=unknown
3428 fi
3429 cat > conftest.$ac_ext <<EOF
3430#line 3431 "configure"
3431#include "confdefs.h"
3432
3433#include <sys/types.h>
3434#include <sys/param.h>
3435int main() {
3436
3437#if BYTE_ORDER != BIG_ENDIAN
3438 not big endian
3439#endif
3440; return 0; }
3441EOF
3442if { (eval echo configure:3443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3443 rm -rf conftest*
3444 krb_cv_c_bigendian=yes
3445else
3446 echo "configure: failed program was:" >&5
3447 cat conftest.$ac_ext >&5
3448 rm -rf conftest*
3449 krb_cv_c_bigendian=no
3450fi
3451rm -f conftest*
3452 if test "$krb_cv_c_bigendian" = "unknown"; then
3453 if test "$cross_compiling" = yes; then
3454 { echo "configure: error: specify either --enable-bigendian or --enable-littleendian" 1>&2; exit 1; }
3455else
3456 cat > conftest.$ac_ext <<EOF
3457#line 3458 "configure"
3458#include "confdefs.h"
3459main () {
3460 /* Are we little or big endian? From Harbison&Steele. */
3461 union
3462 {
3463 long l;
3464 char c[sizeof (long)];
3465 } u;
3466 u.l = 1;
3467 exit (u.c[sizeof (long) - 1] == 1);
3468 }
3469EOF
3470if { (eval echo configure:3471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3471then
3472 krb_cv_c_bigendian=no
3473else
3474 echo "configure: failed program was:" >&5
3475 cat conftest.$ac_ext >&5
3476 rm -fr conftest*
3477 krb_cv_c_bigendian=yes
3478fi
3479rm -fr conftest*
3480fi
3481
3482 fi
3483
3484fi
3485
3486echo "$ac_t""$krb_cv_c_bigendian" 1>&6
3487 if test "$krb_cv_c_bigendian" = "yes"; then
3488 cat >> confdefs.h <<\EOF
3489#define WORDS_BIGENDIAN 1
3490EOF
3491 fi
3492fi
3493if test "$krb_cv_c_bigendian_compile" = "yes"; then
3494 cat >> confdefs.h <<\EOF
3495#define ENDIANESS_IN_SYS_PARAM_H 1
3496EOF
3497fi
3498
3499echo $ac_n "checking for inline""... $ac_c" 1>&6
3500echo "configure:3501: checking for inline" >&5
3501if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3502 echo $ac_n "(cached) $ac_c" 1>&6
3503else
3504 ac_cv_c_inline=no
3505for ac_kw in inline __inline__ __inline; do
3506 cat > conftest.$ac_ext <<EOF
3507#line 3508 "configure"
3508#include "confdefs.h"
3509
3510int main() {
3511} $ac_kw foo() {
3512; return 0; }
3513EOF
3514if { (eval echo configure:3515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3515 rm -rf conftest*
3516 ac_cv_c_inline=$ac_kw; break
3517else
3518 echo "configure: failed program was:" >&5
3519 cat conftest.$ac_ext >&5
3520fi
3521rm -f conftest*
3522done
3523
3524fi
3525
3526echo "$ac_t""$ac_cv_c_inline" 1>&6
3527case "$ac_cv_c_inline" in
3528 inline | yes) ;;
3529 no) cat >> confdefs.h <<\EOF
3530#define inline
3531EOF
3532 ;;
3533 *) cat >> confdefs.h <<EOF
3534#define inline $ac_cv_c_inline
3535EOF
3536 ;;
3537esac
3538
3539
3540# If we find X, set shell vars x_includes and x_libraries to the
3541# paths, otherwise set no_x=yes.
3542# Uses ac_ vars as temps to allow command line to override cache and checks.
3543# --without-x overrides everything else, but does not touch the cache.
3544echo $ac_n "checking for X""... $ac_c" 1>&6
3545echo "configure:3546: checking for X" >&5
3546
3547# Check whether --with-x or --without-x was given.
3548if test "${with_x+set}" = set; then
3549 withval="$with_x"
3550 :
3551fi
3552
3553# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3554if test "x$with_x" = xno; then
3555 # The user explicitly disabled X.
3556 have_x=disabled
3557else
3558 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3559 # Both variables are already set.
3560 have_x=yes
3561 else
3562if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
3563 echo $ac_n "(cached) $ac_c" 1>&6
3564else
3565 # One or both of the vars are not set, and there is no cached value.
3566ac_x_includes=NO ac_x_libraries=NO
3567rm -fr conftestdir
3568if mkdir conftestdir; then
3569 cd conftestdir
3570 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3571 cat > Imakefile <<'EOF'
3572acfindx:
3573 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3574EOF
3575 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3576 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3577 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3578 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3579 for ac_extension in a so sl; do
3580 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3581 test -f $ac_im_libdir/libX11.$ac_extension; then
3582 ac_im_usrlibdir=$ac_im_libdir; break
3583 fi
3584 done
3585 # Screen out bogus values from the imake configuration. They are
3586 # bogus both because they are the default anyway, and because
3587 # using them would break gcc on systems where it needs fixed includes.
3588 case "$ac_im_incroot" in
3589 /usr/include) ;;
3590 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
3591 esac
3592 case "$ac_im_usrlibdir" in
3593 /usr/lib | /lib) ;;
3594 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
3595 esac
3596 fi
3597 cd ..
3598 rm -fr conftestdir
3599fi
3600
3601if test "$ac_x_includes" = NO; then
3602 # Guess where to find include files, by looking for this one X11 .h file.
3603 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
3604
3605 # First, try using that file with no special directory specified.
3606cat > conftest.$ac_ext <<EOF
3607#line 3608 "configure"
3608#include "confdefs.h"
3609#include <$x_direct_test_include>
3610EOF
3611ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3612{ (eval echo configure:3613: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3613ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3614if test -z "$ac_err"; then
3615 rm -rf conftest*
3616 # We can compile using X headers with no special include directory.
3617ac_x_includes=
3618else
3619 echo "$ac_err" >&5
3620 echo "configure: failed program was:" >&5
3621 cat conftest.$ac_ext >&5
3622 rm -rf conftest*
3623 # Look for the header file in a standard set of common directories.
3624# Check X11 before X11Rn because it is often a symlink to the current release.
3625 for ac_dir in \
3626 /usr/X11/include \
3627 /usr/X11R6/include \
3628 /usr/X11R5/include \
3629 /usr/X11R4/include \
3630 \
3631 /usr/include/X11 \
3632 /usr/include/X11R6 \
3633 /usr/include/X11R5 \
3634 /usr/include/X11R4 \
3635 \
3636 /usr/local/X11/include \
3637 /usr/local/X11R6/include \
3638 /usr/local/X11R5/include \
3639 /usr/local/X11R4/include \
3640 \
3641 /usr/local/include/X11 \
3642 /usr/local/include/X11R6 \
3643 /usr/local/include/X11R5 \
3644 /usr/local/include/X11R4 \
3645 \
3646 /usr/X386/include \
3647 /usr/x386/include \
3648 /usr/XFree86/include/X11 \
3649 \
3650 /usr/include \
3651 /usr/local/include \
3652 /usr/unsupported/include \
3653 /usr/athena/include \
3654 /usr/local/x11r5/include \
3655 /usr/lpp/Xamples/include \
3656 \
3657 /usr/openwin/include \
3658 /usr/openwin/share/include \
3659 ; \
3660 do
3661 if test -r "$ac_dir/$x_direct_test_include"; then
3662 ac_x_includes=$ac_dir
3663 break
3664 fi
3665 done
3666fi
3667rm -f conftest*
3668fi # $ac_x_includes = NO
3669
3670if test "$ac_x_libraries" = NO; then
3671 # Check for the libraries.
3672
3673 test -z "$x_direct_test_library" && x_direct_test_library=Xt
3674 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
3675
3676 # See if we find them without any special options.
3677 # Don't add to $LIBS permanently.
3678 ac_save_LIBS="$LIBS"
3679 LIBS="-l$x_direct_test_library $LIBS"
3680cat > conftest.$ac_ext <<EOF
3681#line 3682 "configure"
3682#include "confdefs.h"
3683
3684int main() {
3685${x_direct_test_function}()
3686; return 0; }
3687EOF
3688if { (eval echo configure:3689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3689 rm -rf conftest*
3690 LIBS="$ac_save_LIBS"
3691# We can link X programs with no special library path.
3692ac_x_libraries=
3693else
3694 echo "configure: failed program was:" >&5
3695 cat conftest.$ac_ext >&5
3696 rm -rf conftest*
3697 LIBS="$ac_save_LIBS"
3698# First see if replacing the include by lib works.
3699# Check X11 before X11Rn because it is often a symlink to the current release.
3700for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
3701 /usr/X11/lib \
3702 /usr/X11R6/lib \
3703 /usr/X11R5/lib \
3704 /usr/X11R4/lib \
3705 \
3706 /usr/lib/X11 \
3707 /usr/lib/X11R6 \
3708 /usr/lib/X11R5 \
3709 /usr/lib/X11R4 \
3710 \
3711 /usr/local/X11/lib \
3712 /usr/local/X11R6/lib \
3713 /usr/local/X11R5/lib \
3714 /usr/local/X11R4/lib \
3715 \
3716 /usr/local/lib/X11 \
3717 /usr/local/lib/X11R6 \
3718 /usr/local/lib/X11R5 \
3719 /usr/local/lib/X11R4 \
3720 \
3721 /usr/X386/lib \
3722 /usr/x386/lib \
3723 /usr/XFree86/lib/X11 \
3724 \
3725 /usr/lib \
3726 /usr/local/lib \
3727 /usr/unsupported/lib \
3728 /usr/athena/lib \
3729 /usr/local/x11r5/lib \
3730 /usr/lpp/Xamples/lib \
3731 /lib/usr/lib/X11 \
3732 \
3733 /usr/openwin/lib \
3734 /usr/openwin/share/lib \
3735 ; \
3736do
3737 for ac_extension in a so sl; do
3738 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
3739 ac_x_libraries=$ac_dir
3740 break 2
3741 fi
3742 done
3743done
3744fi
3745rm -f conftest*
3746fi # $ac_x_libraries = NO
3747
3748if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
3749 # Didn't find X anywhere. Cache the known absence of X.
3750 ac_cv_have_x="have_x=no"
3751else
3752 # Record where we found X for the cache.
3753 ac_cv_have_x="have_x=yes \
3754 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3755fi
3756fi
3757 fi
3758 eval "$ac_cv_have_x"
3759fi # $with_x != no
3760
3761if test "$have_x" != yes; then
3762 echo "$ac_t""$have_x" 1>&6
3763 no_x=yes
3764else
3765 # If each of the values was on the command line, it overrides each guess.
3766 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3767 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3768 # Update the cache value to reflect the command line values.
3769 ac_cv_have_x="have_x=yes \
3770 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3771 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
3772fi
3773
3774
3775if test "$no_x" = yes; then
3776 # Not all programs may use this symbol, but it does not hurt to define it.
3777 cat >> confdefs.h <<\EOF
3778#define X_DISPLAY_MISSING 1
3779EOF
3780
3781 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3782else
3783 if test -n "$x_includes"; then
3784 X_CFLAGS="$X_CFLAGS -I$x_includes"
3785 fi
3786
3787 # It would also be nice to do this for all -L options, not just this one.
3788 if test -n "$x_libraries"; then
3789 X_LIBS="$X_LIBS -L$x_libraries"
3790 # For Solaris; some versions of Sun CC require a space after -R and
3791 # others require no space. Words are not sufficient . . . .
3792 case "`(uname -sr) 2>/dev/null`" in
3793 "SunOS 5"*)
3794 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
3795echo "configure:3796: checking whether -R must be followed by a space" >&5
3796 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
3797 cat > conftest.$ac_ext <<EOF
3798#line 3799 "configure"
3799#include "confdefs.h"
3800
3801int main() {
3802
3803; return 0; }
3804EOF
3805if { (eval echo configure:3806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3806 rm -rf conftest*
3807 ac_R_nospace=yes
3808else
3809 echo "configure: failed program was:" >&5
3810 cat conftest.$ac_ext >&5
3811 rm -rf conftest*
3812 ac_R_nospace=no
3813fi
3814rm -f conftest*
3815 if test $ac_R_nospace = yes; then
3816 echo "$ac_t""no" 1>&6
3817 X_LIBS="$X_LIBS -R$x_libraries"
3818 else
3819 LIBS="$ac_xsave_LIBS -R $x_libraries"
3820 cat > conftest.$ac_ext <<EOF
3821#line 3822 "configure"
3822#include "confdefs.h"
3823
3824int main() {
3825
3826; return 0; }
3827EOF
3828if { (eval echo configure:3829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3829 rm -rf conftest*
3830 ac_R_space=yes
3831else
3832 echo "configure: failed program was:" >&5
3833 cat conftest.$ac_ext >&5
3834 rm -rf conftest*
3835 ac_R_space=no
3836fi
3837rm -f conftest*
3838 if test $ac_R_space = yes; then
3839 echo "$ac_t""yes" 1>&6
3840 X_LIBS="$X_LIBS -R $x_libraries"
3841 else
3842 echo "$ac_t""neither works" 1>&6
3843 fi
3844 fi
3845 LIBS="$ac_xsave_LIBS"
3846 esac
3847 fi
3848
3849 # Check for system-dependent libraries X programs must link with.
3850 # Do this before checking for the system-independent R6 libraries
3851 # (-lICE), since we may need -lsocket or whatever for X linking.
3852
3853 if test "$ISC" = yes; then
3854 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3855 else
3856 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
3857 # libraries were built with DECnet support. And karl@cs.umb.edu says
3858 # the Alpha needs dnet_stub (dnet does not exist).
3859 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3860echo "configure:3861: checking for dnet_ntoa in -ldnet" >&5
3861ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3862if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3863 echo $ac_n "(cached) $ac_c" 1>&6
3864else
3865 ac_save_LIBS="$LIBS"
3866LIBS="-ldnet $LIBS"
3867cat > conftest.$ac_ext <<EOF
3868#line 3869 "configure"
3869#include "confdefs.h"
3870/* Override any gcc2 internal prototype to avoid an error. */
3871/* We use char because int might match the return type of a gcc2
3872 builtin and then its argument prototype would still apply. */
3873char dnet_ntoa();
3874
3875int main() {
3876dnet_ntoa()
3877; return 0; }
3878EOF
3879if { (eval echo configure:3880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3880 rm -rf conftest*
3881 eval "ac_cv_lib_$ac_lib_var=yes"
3882else
3883 echo "configure: failed program was:" >&5
3884 cat conftest.$ac_ext >&5
3885 rm -rf conftest*
3886 eval "ac_cv_lib_$ac_lib_var=no"
3887fi
3888rm -f conftest*
3889LIBS="$ac_save_LIBS"
3890
3891fi
3892if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3893 echo "$ac_t""yes" 1>&6
3894 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3895else
3896 echo "$ac_t""no" 1>&6
3897fi
3898
3899 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3900 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
3901echo "configure:3902: checking for dnet_ntoa in -ldnet_stub" >&5
3902ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3903if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3904 echo $ac_n "(cached) $ac_c" 1>&6
3905else
3906 ac_save_LIBS="$LIBS"
3907LIBS="-ldnet_stub $LIBS"
3908cat > conftest.$ac_ext <<EOF
3909#line 3910 "configure"
3910#include "confdefs.h"
3911/* Override any gcc2 internal prototype to avoid an error. */
3912/* We use char because int might match the return type of a gcc2
3913 builtin and then its argument prototype would still apply. */
3914char dnet_ntoa();
3915
3916int main() {
3917dnet_ntoa()
3918; return 0; }
3919EOF
3920if { (eval echo configure:3921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3921 rm -rf conftest*
3922 eval "ac_cv_lib_$ac_lib_var=yes"
3923else
3924 echo "configure: failed program was:" >&5
3925 cat conftest.$ac_ext >&5
3926 rm -rf conftest*
3927 eval "ac_cv_lib_$ac_lib_var=no"
3928fi
3929rm -f conftest*
3930LIBS="$ac_save_LIBS"
3931
3932fi
3933if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3934 echo "$ac_t""yes" 1>&6
3935 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3936else
3937 echo "$ac_t""no" 1>&6
3938fi
3939
3940 fi
3941
3942 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3943 # to get the SysV transport functions.
3944 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
3945 # needs -lnsl.
3946 # The nsl library prevents programs from opening the X display
3947 # on Irix 5.2, according to dickey@clark.net.
3948 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3949echo "configure:3950: checking for gethostbyname" >&5
3950if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3951 echo $ac_n "(cached) $ac_c" 1>&6
3952else
3953 cat > conftest.$ac_ext <<EOF
3954#line 3955 "configure"
3955#include "confdefs.h"
3956/* System header to define __stub macros and hopefully few prototypes,
3957 which can conflict with char gethostbyname(); below. */
3958#include <assert.h>
3959/* Override any gcc2 internal prototype to avoid an error. */
3960/* We use char because int might match the return type of a gcc2
3961 builtin and then its argument prototype would still apply. */
3962char gethostbyname();
3963
3964int main() {
3965
3966/* The GNU C library defines this for functions which it implements
3967 to always fail with ENOSYS. Some functions are actually named
3968 something starting with __ and the normal name is an alias. */
3969#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3970choke me
3971#else
3972gethostbyname();
3973#endif
3974
3975; return 0; }
3976EOF
3977if { (eval echo configure:3978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3978 rm -rf conftest*
3979 eval "ac_cv_func_gethostbyname=yes"
3980else
3981 echo "configure: failed program was:" >&5
3982 cat conftest.$ac_ext >&5
3983 rm -rf conftest*
3984 eval "ac_cv_func_gethostbyname=no"
3985fi
3986rm -f conftest*
3987fi
3988
3989if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3990 echo "$ac_t""yes" 1>&6
3991 :
3992else
3993 echo "$ac_t""no" 1>&6
3994fi
3995
3996 if test $ac_cv_func_gethostbyname = no; then
3997 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3998echo "configure:3999: checking for gethostbyname in -lnsl" >&5
3999ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
4000if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4001 echo $ac_n "(cached) $ac_c" 1>&6
4002else
4003 ac_save_LIBS="$LIBS"
4004LIBS="-lnsl $LIBS"
4005cat > conftest.$ac_ext <<EOF
4006#line 4007 "configure"
4007#include "confdefs.h"
4008/* Override any gcc2 internal prototype to avoid an error. */
4009/* We use char because int might match the return type of a gcc2
4010 builtin and then its argument prototype would still apply. */
4011char gethostbyname();
4012
4013int main() {
4014gethostbyname()
4015; return 0; }
4016EOF
4017if { (eval echo configure:4018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4018 rm -rf conftest*
4019 eval "ac_cv_lib_$ac_lib_var=yes"
4020else
4021 echo "configure: failed program was:" >&5
4022 cat conftest.$ac_ext >&5
4023 rm -rf conftest*
4024 eval "ac_cv_lib_$ac_lib_var=no"
4025fi
4026rm -f conftest*
4027LIBS="$ac_save_LIBS"
4028
4029fi
4030if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4031 echo "$ac_t""yes" 1>&6
4032 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4033else
4034 echo "$ac_t""no" 1>&6
4035fi
4036
4037 fi
4038
4039 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4040 # socket/setsockopt and other routines are undefined under SCO ODT
4041 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4042 # on later versions), says simon@lia.di.epfl.ch: it contains
4043 # gethostby* variants that don't use the nameserver (or something).
4044 # -lsocket must be given before -lnsl if both are needed.
4045 # We assume that if connect needs -lnsl, so does gethostbyname.
4046 echo $ac_n "checking for connect""... $ac_c" 1>&6
4047echo "configure:4048: checking for connect" >&5
4048if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
4049 echo $ac_n "(cached) $ac_c" 1>&6
4050else
4051 cat > conftest.$ac_ext <<EOF
4052#line 4053 "configure"
4053#include "confdefs.h"
4054/* System header to define __stub macros and hopefully few prototypes,
4055 which can conflict with char connect(); below. */
4056#include <assert.h>
4057/* Override any gcc2 internal prototype to avoid an error. */
4058/* We use char because int might match the return type of a gcc2
4059 builtin and then its argument prototype would still apply. */
4060char connect();
4061
4062int main() {
4063
4064/* The GNU C library defines this for functions which it implements
4065 to always fail with ENOSYS. Some functions are actually named
4066 something starting with __ and the normal name is an alias. */
4067#if defined (__stub_connect) || defined (__stub___connect)
4068choke me
4069#else
4070connect();
4071#endif
4072
4073; return 0; }
4074EOF
4075if { (eval echo configure:4076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4076 rm -rf conftest*
4077 eval "ac_cv_func_connect=yes"
4078else
4079 echo "configure: failed program was:" >&5
4080 cat conftest.$ac_ext >&5
4081 rm -rf conftest*
4082 eval "ac_cv_func_connect=no"
4083fi
4084rm -f conftest*
4085fi
4086
4087if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
4088 echo "$ac_t""yes" 1>&6
4089 :
4090else
4091 echo "$ac_t""no" 1>&6
4092fi
4093
4094 if test $ac_cv_func_connect = no; then
4095 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4096echo "configure:4097: checking for connect in -lsocket" >&5
4097ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4098if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4099 echo $ac_n "(cached) $ac_c" 1>&6
4100else
4101 ac_save_LIBS="$LIBS"
4102LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4103cat > conftest.$ac_ext <<EOF
4104#line 4105 "configure"
4105#include "confdefs.h"
4106/* Override any gcc2 internal prototype to avoid an error. */
4107/* We use char because int might match the return type of a gcc2
4108 builtin and then its argument prototype would still apply. */
4109char connect();
4110
4111int main() {
4112connect()
4113; return 0; }
4114EOF
4115if { (eval echo configure:4116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4116 rm -rf conftest*
4117 eval "ac_cv_lib_$ac_lib_var=yes"
4118else
4119 echo "configure: failed program was:" >&5
4120 cat conftest.$ac_ext >&5
4121 rm -rf conftest*
4122 eval "ac_cv_lib_$ac_lib_var=no"
4123fi
4124rm -f conftest*
4125LIBS="$ac_save_LIBS"
4126
4127fi
4128if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4129 echo "$ac_t""yes" 1>&6
4130 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4131else
4132 echo "$ac_t""no" 1>&6
4133fi
4134
4135 fi
4136
4137 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
4138 echo $ac_n "checking for remove""... $ac_c" 1>&6
4139echo "configure:4140: checking for remove" >&5
4140if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
4141 echo $ac_n "(cached) $ac_c" 1>&6
4142else
4143 cat > conftest.$ac_ext <<EOF
4144#line 4145 "configure"
4145#include "confdefs.h"
4146/* System header to define __stub macros and hopefully few prototypes,
4147 which can conflict with char remove(); below. */
4148#include <assert.h>
4149/* Override any gcc2 internal prototype to avoid an error. */
4150/* We use char because int might match the return type of a gcc2
4151 builtin and then its argument prototype would still apply. */
4152char remove();
4153
4154int main() {
4155
4156/* The GNU C library defines this for functions which it implements
4157 to always fail with ENOSYS. Some functions are actually named
4158 something starting with __ and the normal name is an alias. */
4159#if defined (__stub_remove) || defined (__stub___remove)
4160choke me
4161#else
4162remove();
4163#endif
4164
4165; return 0; }
4166EOF
4167if { (eval echo configure:4168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4168 rm -rf conftest*
4169 eval "ac_cv_func_remove=yes"
4170else
4171 echo "configure: failed program was:" >&5
4172 cat conftest.$ac_ext >&5
4173 rm -rf conftest*
4174 eval "ac_cv_func_remove=no"
4175fi
4176rm -f conftest*
4177fi
4178
4179if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
4180 echo "$ac_t""yes" 1>&6
4181 :
4182else
4183 echo "$ac_t""no" 1>&6
4184fi
4185
4186 if test $ac_cv_func_remove = no; then
4187 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
4188echo "configure:4189: checking for remove in -lposix" >&5
4189ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
4190if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4191 echo $ac_n "(cached) $ac_c" 1>&6
4192else
4193 ac_save_LIBS="$LIBS"
4194LIBS="-lposix $LIBS"
4195cat > conftest.$ac_ext <<EOF
4196#line 4197 "configure"
4197#include "confdefs.h"
4198/* Override any gcc2 internal prototype to avoid an error. */
4199/* We use char because int might match the return type of a gcc2
4200 builtin and then its argument prototype would still apply. */
4201char remove();
4202
4203int main() {
4204remove()
4205; return 0; }
4206EOF
4207if { (eval echo configure:4208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4208 rm -rf conftest*
4209 eval "ac_cv_lib_$ac_lib_var=yes"
4210else
4211 echo "configure: failed program was:" >&5
4212 cat conftest.$ac_ext >&5
4213 rm -rf conftest*
4214 eval "ac_cv_lib_$ac_lib_var=no"
4215fi
4216rm -f conftest*
4217LIBS="$ac_save_LIBS"
4218
4219fi
4220if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4221 echo "$ac_t""yes" 1>&6
4222 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4223else
4224 echo "$ac_t""no" 1>&6
4225fi
4226
4227 fi
4228
4229 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4230 echo $ac_n "checking for shmat""... $ac_c" 1>&6
4231echo "configure:4232: checking for shmat" >&5
4232if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
4233 echo $ac_n "(cached) $ac_c" 1>&6
4234else
4235 cat > conftest.$ac_ext <<EOF
4236#line 4237 "configure"
4237#include "confdefs.h"
4238/* System header to define __stub macros and hopefully few prototypes,
4239 which can conflict with char shmat(); below. */
4240#include <assert.h>
4241/* Override any gcc2 internal prototype to avoid an error. */
4242/* We use char because int might match the return type of a gcc2
4243 builtin and then its argument prototype would still apply. */
4244char shmat();
4245
4246int main() {
4247
4248/* The GNU C library defines this for functions which it implements
4249 to always fail with ENOSYS. Some functions are actually named
4250 something starting with __ and the normal name is an alias. */
4251#if defined (__stub_shmat) || defined (__stub___shmat)
4252choke me
4253#else
4254shmat();
4255#endif
4256
4257; return 0; }
4258EOF
4259if { (eval echo configure:4260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4260 rm -rf conftest*
4261 eval "ac_cv_func_shmat=yes"
4262else
4263 echo "configure: failed program was:" >&5
4264 cat conftest.$ac_ext >&5
4265 rm -rf conftest*
4266 eval "ac_cv_func_shmat=no"
4267fi
4268rm -f conftest*
4269fi
4270
4271if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
4272 echo "$ac_t""yes" 1>&6
4273 :
4274else
4275 echo "$ac_t""no" 1>&6
4276fi
4277
4278 if test $ac_cv_func_shmat = no; then
4279 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
4280echo "configure:4281: checking for shmat in -lipc" >&5
4281ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
4282if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4283 echo $ac_n "(cached) $ac_c" 1>&6
4284else
4285 ac_save_LIBS="$LIBS"
4286LIBS="-lipc $LIBS"
4287cat > conftest.$ac_ext <<EOF
4288#line 4289 "configure"
4289#include "confdefs.h"
4290/* Override any gcc2 internal prototype to avoid an error. */
4291/* We use char because int might match the return type of a gcc2
4292 builtin and then its argument prototype would still apply. */
4293char shmat();
4294
4295int main() {
4296shmat()
4297; return 0; }
4298EOF
4299if { (eval echo configure:4300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4300 rm -rf conftest*
4301 eval "ac_cv_lib_$ac_lib_var=yes"
4302else
4303 echo "configure: failed program was:" >&5
4304 cat conftest.$ac_ext >&5
4305 rm -rf conftest*
4306 eval "ac_cv_lib_$ac_lib_var=no"
4307fi
4308rm -f conftest*
4309LIBS="$ac_save_LIBS"
4310
4311fi
4312if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4313 echo "$ac_t""yes" 1>&6
4314 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4315else
4316 echo "$ac_t""no" 1>&6
4317fi
4318
4319 fi
4320 fi
4321
4322 # Check for libraries that X11R6 Xt/Xaw programs need.
4323 ac_save_LDFLAGS="$LDFLAGS"
4324 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4325 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4326 # check for ICE first), but we must link in the order -lSM -lICE or
4327 # we get undefined symbols. So assume we have SM if we have ICE.
4328 # These have to be linked with before -lX11, unlike the other
4329 # libraries we check for below, so use a different variable.
4330 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
4331 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
4332echo "configure:4333: checking for IceConnectionNumber in -lICE" >&5
4333ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
4334if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4335 echo $ac_n "(cached) $ac_c" 1>&6
4336else
4337 ac_save_LIBS="$LIBS"
4338LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4339cat > conftest.$ac_ext <<EOF
4340#line 4341 "configure"
4341#include "confdefs.h"
4342/* Override any gcc2 internal prototype to avoid an error. */
4343/* We use char because int might match the return type of a gcc2
4344 builtin and then its argument prototype would still apply. */
4345char IceConnectionNumber();
4346
4347int main() {
4348IceConnectionNumber()
4349; return 0; }
4350EOF
4351if { (eval echo configure:4352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4352 rm -rf conftest*
4353 eval "ac_cv_lib_$ac_lib_var=yes"
4354else
4355 echo "configure: failed program was:" >&5
4356 cat conftest.$ac_ext >&5
4357 rm -rf conftest*
4358 eval "ac_cv_lib_$ac_lib_var=no"
4359fi
4360rm -f conftest*
4361LIBS="$ac_save_LIBS"
4362
4363fi
4364if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4365 echo "$ac_t""yes" 1>&6
4366 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4367else
4368 echo "$ac_t""no" 1>&6
4369fi
4370
4371 LDFLAGS="$ac_save_LDFLAGS"
4372
4373fi
4374
4375
4376# try to figure out if we need any additional ld flags, like -R
4377# and yes, the autoconf X test is utterly broken
4378if test "$no_x" != yes; then
4379 echo $ac_n "checking for special X linker flags""... $ac_c" 1>&6
4380echo "configure:4381: checking for special X linker flags" >&5
4381if eval "test \"`echo '$''{'krb_cv_sys_x_libs_rpath'+set}'`\" = set"; then
4382 echo $ac_n "(cached) $ac_c" 1>&6
4383else
4384
4385 ac_save_libs="$LIBS"
4386 ac_save_cflags="$CFLAGS"
4387 CFLAGS="$CFLAGS $X_CFLAGS"
4388 krb_cv_sys_x_libs_rpath=""
4389 krb_cv_sys_x_libs=""
4390 for rflag in "" "-R" "-R " "-rpath "; do
4391 if test "$rflag" = ""; then
4392 foo="$X_LIBS"
4393 else
4394 foo=""
4395 for flag in $X_LIBS; do
4396 case $flag in
4397 -L*)
4398 foo="$foo $flag `echo $flag | sed \"s/-L/$rflag/\"`"
4399 ;;
4400 *)
4401 foo="$foo $flag"
4402 ;;
4403 esac
4404 done
4405 fi
4406 LIBS="$ac_save_libs $foo $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
4407 if test "$cross_compiling" = yes; then
4408 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4409else
4410 cat > conftest.$ac_ext <<EOF
4411#line 4412 "configure"
4412#include "confdefs.h"
4413
4414 #include <X11/Xlib.h>
4415 foo()
4416 {
4417 XOpenDisplay(NULL);
4418 }
4419 main()
4420 {
4421 return 0;
4422 }
4423
4424EOF
4425if { (eval echo configure:4426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4426then
4427 krb_cv_sys_x_libs_rpath="$rflag"; krb_cv_sys_x_libs="$foo"; break
4428else
4429 echo "configure: failed program was:" >&5
4430 cat conftest.$ac_ext >&5
4431 rm -fr conftest*
4432 :
4433fi
4434rm -fr conftest*
4435fi
4436
4437 done
4438 LIBS="$ac_save_libs"
4439 CFLAGS="$ac_save_cflags"
4440
4441fi
4442
4443echo "$ac_t""$krb_cv_sys_x_libs_rpath" 1>&6
4444 X_LIBS="$krb_cv_sys_x_libs"
4445fi
4446
4447
4448if test "$no_x" = "yes" ; then
4449 MAKE_X_PROGS_BIN_PROGS=""
4450 MAKE_X_PROGS_BIN_SCRPTS=""
4451 MAKE_X_PROGS_LIBEXEC_PROGS=""
4452else
4453 MAKE_X_PROGS_BIN_PROGS='$(X_PROGS_BIN_PROGS)'
4454 MAKE_X_PROGS_BIN_SCRPTS='$(X_PROGS_BIN_SCRPTS)'
4455 MAKE_X_PROGS_LIBEXEC_PROGS='$(X_PROGS_LIBEXEC_PROGS)'
4456fi
4457
4458
4459save_CFLAGS="$CFLAGS"
4460CFLAGS="$X_CFLAGS $CFLAGS"
4461save_LIBS="$LIBS"
4462LIBS="$X_PRE_LIBS $X_EXTRA_LIBS $LIBS"
4463save_LDFLAGS="$LDFLAGS"
4464LDFLAGS="$LDFLAGS $X_LIBS"
4465
4466
4467
4468
4469
4470echo $ac_n "checking for XauWriteAuth""... $ac_c" 1>&6
4471echo "configure:4472: checking for XauWriteAuth" >&5
4472if eval "test \"`echo '$''{'ac_cv_funclib_XauWriteAuth'+set}'`\" = set"; then
4473 echo $ac_n "(cached) $ac_c" 1>&6
4474else
4475
4476if eval "test \"\$ac_cv_func_XauWriteAuth\" != yes" ; then
4477 ac_save_LIBS="$LIBS"
4478 for ac_lib in "" X11 Xau; do
4479 if test -n "$ac_lib"; then
4480 ac_lib="-l$ac_lib"
4481 else
4482 ac_lib=""
4483 fi
4484 LIBS=" $ac_lib $ac_save_LIBS"
4485 cat > conftest.$ac_ext <<EOF
4486#line 4487 "configure"
4487#include "confdefs.h"
4488
4489int main() {
4490XauWriteAuth()
4491; return 0; }
4492EOF
4493if { (eval echo configure:4494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4494 rm -rf conftest*
4495 eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauWriteAuth=$ac_lib; else ac_cv_funclib_XauWriteAuth=yes; fi";break
4496else
4497 echo "configure: failed program was:" >&5
4498 cat conftest.$ac_ext >&5
4499fi
4500rm -f conftest*
4501 done
4502 eval "ac_cv_funclib_XauWriteAuth=\${ac_cv_funclib_XauWriteAuth-no}"
4503 LIBS="$ac_save_LIBS"
4504fi
4505
4506fi
4507
4508
4509eval "ac_res=\$ac_cv_funclib_XauWriteAuth"
4510
4511: << END
4512@@@funcs="$funcs XauWriteAuth"@@@
4513@@@libs="$libs "" X11 Xau"@@@
4514END
4515
4516# XauWriteAuth
4517eval "ac_tr_func=HAVE_`echo XauWriteAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
4518eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
4519eval "LIB_XauWriteAuth=$ac_res"
4520
4521case "$ac_res" in
4522 yes)
4523 eval "ac_cv_func_XauWriteAuth=yes"
4524 eval "LIB_XauWriteAuth="
4525 cat >> confdefs.h <<EOF
4526#define $ac_tr_func 1
4527EOF
4528
4529 echo "$ac_t""yes" 1>&6
4530 ;;
4531 no)
4532 eval "ac_cv_func_XauWriteAuth=no"
4533 eval "LIB_XauWriteAuth="
4534 echo "$ac_t""no" 1>&6
4535 ;;
4536 *)
4537 eval "ac_cv_func_XauWriteAuth=yes"
4538 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
4539 cat >> confdefs.h <<EOF
4540#define $ac_tr_func 1
4541EOF
4542
4543 cat >> confdefs.h <<EOF
4544#define $ac_tr_lib 1
4545EOF
4546
4547 echo "$ac_t""yes, in $ac_res" 1>&6
4548 ;;
4549esac
4550
4551
4552ac_xxx="$LIBS"
4553LIBS="$LIB_XauWriteAuth $LIBS"
4554
4555
4556
4557echo $ac_n "checking for XauReadAuth""... $ac_c" 1>&6
4558echo "configure:4559: checking for XauReadAuth" >&5
4559if eval "test \"`echo '$''{'ac_cv_funclib_XauReadAuth'+set}'`\" = set"; then
4560 echo $ac_n "(cached) $ac_c" 1>&6
4561else
4562
4563if eval "test \"\$ac_cv_func_XauReadAuth\" != yes" ; then
4564 ac_save_LIBS="$LIBS"
4565 for ac_lib in "" X11 Xau; do
4566 if test -n "$ac_lib"; then
4567 ac_lib="-l$ac_lib"
4568 else
4569 ac_lib=""
4570 fi
4571 LIBS=" $ac_lib $ac_save_LIBS"
4572 cat > conftest.$ac_ext <<EOF
4573#line 4574 "configure"
4574#include "confdefs.h"
4575
4576int main() {
4577XauReadAuth()
4578; return 0; }
4579EOF
4580if { (eval echo configure:4581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4581 rm -rf conftest*
4582 eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauReadAuth=$ac_lib; else ac_cv_funclib_XauReadAuth=yes; fi";break
4583else
4584 echo "configure: failed program was:" >&5
4585 cat conftest.$ac_ext >&5
4586fi
4587rm -f conftest*
4588 done
4589 eval "ac_cv_funclib_XauReadAuth=\${ac_cv_funclib_XauReadAuth-no}"
4590 LIBS="$ac_save_LIBS"
4591fi
4592
4593fi
4594
4595
4596eval "ac_res=\$ac_cv_funclib_XauReadAuth"
4597
4598: << END
4599@@@funcs="$funcs XauReadAuth"@@@
4600@@@libs="$libs "" X11 Xau"@@@
4601END
4602
4603# XauReadAuth
4604eval "ac_tr_func=HAVE_`echo XauReadAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
4605eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
4606eval "LIB_XauReadAuth=$ac_res"
4607
4608case "$ac_res" in
4609 yes)
4610 eval "ac_cv_func_XauReadAuth=yes"
4611 eval "LIB_XauReadAuth="
4612 cat >> confdefs.h <<EOF
4613#define $ac_tr_func 1
4614EOF
4615
4616 echo "$ac_t""yes" 1>&6
4617 ;;
4618 no)
4619 eval "ac_cv_func_XauReadAuth=no"
4620 eval "LIB_XauReadAuth="
4621 echo "$ac_t""no" 1>&6
4622 ;;
4623 *)
4624 eval "ac_cv_func_XauReadAuth=yes"
4625 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
4626 cat >> confdefs.h <<EOF
4627#define $ac_tr_func 1
4628EOF
4629
4630 cat >> confdefs.h <<EOF
4631#define $ac_tr_lib 1
4632EOF
4633
4634 echo "$ac_t""yes, in $ac_res" 1>&6
4635 ;;
4636esac
4637
4638
4639LIBS="$LIB_XauReadAauth $LIBS"
4640
4641
4642
4643echo $ac_n "checking for XauFileName""... $ac_c" 1>&6
4644echo "configure:4645: checking for XauFileName" >&5
4645if eval "test \"`echo '$''{'ac_cv_funclib_XauFileName'+set}'`\" = set"; then
4646 echo $ac_n "(cached) $ac_c" 1>&6
4647else
4648
4649if eval "test \"\$ac_cv_func_XauFileName\" != yes" ; then
4650 ac_save_LIBS="$LIBS"
4651 for ac_lib in "" X11 Xau; do
4652 if test -n "$ac_lib"; then
4653 ac_lib="-l$ac_lib"
4654 else
4655 ac_lib=""
4656 fi
4657 LIBS=" $ac_lib $ac_save_LIBS"
4658 cat > conftest.$ac_ext <<EOF
4659#line 4660 "configure"
4660#include "confdefs.h"
4661
4662int main() {
4663XauFileName()
4664; return 0; }
4665EOF
4666if { (eval echo configure:4667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4667 rm -rf conftest*
4668 eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauFileName=$ac_lib; else ac_cv_funclib_XauFileName=yes; fi";break
4669else
4670 echo "configure: failed program was:" >&5
4671 cat conftest.$ac_ext >&5
4672fi
4673rm -f conftest*
4674 done
4675 eval "ac_cv_funclib_XauFileName=\${ac_cv_funclib_XauFileName-no}"
4676 LIBS="$ac_save_LIBS"
4677fi
4678
4679fi
4680
4681
4682eval "ac_res=\$ac_cv_funclib_XauFileName"
4683
4684: << END
4685@@@funcs="$funcs XauFileName"@@@
4686@@@libs="$libs "" X11 Xau"@@@
4687END
4688
4689# XauFileName
4690eval "ac_tr_func=HAVE_`echo XauFileName | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
4691eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
4692eval "LIB_XauFileName=$ac_res"
4693
4694case "$ac_res" in
4695 yes)
4696 eval "ac_cv_func_XauFileName=yes"
4697 eval "LIB_XauFileName="
4698 cat >> confdefs.h <<EOF
4699#define $ac_tr_func 1
4700EOF
4701
4702 echo "$ac_t""yes" 1>&6
4703 ;;
4704 no)
4705 eval "ac_cv_func_XauFileName=no"
4706 eval "LIB_XauFileName="
4707 echo "$ac_t""no" 1>&6
4708 ;;
4709 *)
4710 eval "ac_cv_func_XauFileName=yes"
4711 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
4712 cat >> confdefs.h <<EOF
4713#define $ac_tr_func 1
4714EOF
4715
4716 cat >> confdefs.h <<EOF
4717#define $ac_tr_lib 1
4718EOF
4719
4720 echo "$ac_t""yes, in $ac_res" 1>&6
4721 ;;
4722esac
4723
4724
4725LIBS="$ac_xxx"
4726
4727case "$ac_cv_funclib_XauWriteAuth" in
4728yes) ;;
4729no) ;;
4730*) if test "$ac_cv_funclib_XauReadAuth" = yes; then
4731 if test "$ac_cv_funclib_XauFileName" = yes; then
4732 LIB_XauReadAuth="$LIB_XauWriteAuth"
4733 else
4734 LIB_XauReadAuth="$LIB_XauWriteAuth $LIB_XauFileName"
4735 fi
4736 else
4737 if test "$ac_cv_funclib_XauFileName" = yes; then
4738 LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth"
4739 else
4740 LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth $LIB_XauFileName"
4741 fi
4742 fi
4743 ;;
4744esac
4745
4746if test "$AUTOMAKE" != ""; then
4747
4748
4749if test "$ac_cv_func_XauWriteAuth" != "yes"; then
4750 NEED_WRITEAUTH_TRUE=
4751 NEED_WRITEAUTH_FALSE='#'
4752else
4753 NEED_WRITEAUTH_TRUE='#'
4754 NEED_WRITEAUTH_FALSE=
4755fi
4756else
4757
4758
4759 if test "$ac_cv_func_XauWriteAuth" != "yes"; then
4760 NEED_WRITEAUTH_TRUE=
4761 NEED_WRITEAUTH_FALSE='#'
4762 else
4763 NEED_WRITEAUTH_TRUE='#'
4764 NEED_WRITEAUTH_FALSE=
4765 fi
4766fi
4767CFLAGS=$save_CFLAGS
4768LIBS=$save_LIBS
4769LDFLAGS=$save_LDFLAGS
4770
4771
4772
4773echo $ac_n "checking for working const""... $ac_c" 1>&6
4774echo "configure:4775: checking for working const" >&5
4775if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
4776 echo $ac_n "(cached) $ac_c" 1>&6
4777else
4778 cat > conftest.$ac_ext <<EOF
4779#line 4780 "configure"
4780#include "confdefs.h"
4781
4782int main() {
4783
4784/* Ultrix mips cc rejects this. */
4785typedef int charset[2]; const charset x;
4786/* SunOS 4.1.1 cc rejects this. */
4787char const *const *ccp;
4788char **p;
4789/* NEC SVR4.0.2 mips cc rejects this. */
4790struct point {int x, y;};
4791static struct point const zero = {0,0};
4792/* AIX XL C 1.02.0.0 rejects this.
4793 It does not let you subtract one const X* pointer from another in an arm
4794 of an if-expression whose if-part is not a constant expression */
4795const char *g = "string";
4796ccp = &g + (g ? g-g : 0);
4797/* HPUX 7.0 cc rejects these. */
4798++ccp;
4799p = (char**) ccp;
4800ccp = (char const *const *) p;
4801{ /* SCO 3.2v4 cc rejects this. */
4802 char *t;
4803 char const *s = 0 ? (char *) 0 : (char const *) 0;
4804
4805 *t++ = 0;
4806}
4807{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4808 int x[] = {25, 17};
4809 const int *foo = &x[0];
4810 ++foo;
4811}
4812{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4813 typedef const int *iptr;
4814 iptr p = 0;
4815 ++p;
4816}
4817{ /* AIX XL C 1.02.0.0 rejects this saying
4818 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4819 struct s { int j; const int *ap[3]; };
4820 struct s *b; b->j = 5;
4821}
4822{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4823 const int foo = 10;
4824}
4825
4826; return 0; }
4827EOF
4828if { (eval echo configure:4829: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4829 rm -rf conftest*
4830 ac_cv_c_const=yes
4831else
4832 echo "configure: failed program was:" >&5
4833 cat conftest.$ac_ext >&5
4834 rm -rf conftest*
4835 ac_cv_c_const=no
4836fi
4837rm -f conftest*
4838fi
4839
4840echo "$ac_t""$ac_cv_c_const" 1>&6
4841if test $ac_cv_c_const = no; then
4842 cat >> confdefs.h <<\EOF
4843#define const
4844EOF
4845
4846fi
4847
4848echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4849echo "configure:4850: checking for ANSI C header files" >&5
4850if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
4851 echo $ac_n "(cached) $ac_c" 1>&6
4852else
4853 cat > conftest.$ac_ext <<EOF
4854#line 4855 "configure"
4855#include "confdefs.h"
4856#include <stdlib.h>
4857#include <stdarg.h>
4858#include <string.h>
4859#include <float.h>
4860EOF
4861ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4862{ (eval echo configure:4863: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4863ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4864if test -z "$ac_err"; then
4865 rm -rf conftest*
4866 ac_cv_header_stdc=yes
4867else
4868 echo "$ac_err" >&5
4869 echo "configure: failed program was:" >&5
4870 cat conftest.$ac_ext >&5
4871 rm -rf conftest*
4872 ac_cv_header_stdc=no
4873fi
4874rm -f conftest*
4875
4876if test $ac_cv_header_stdc = yes; then
4877 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4878cat > conftest.$ac_ext <<EOF
4879#line 4880 "configure"
4880#include "confdefs.h"
4881#include <string.h>
4882EOF
4883if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4884 egrep "memchr" >/dev/null 2>&1; then
4885 :
4886else
4887 rm -rf conftest*
4888 ac_cv_header_stdc=no
4889fi
4890rm -f conftest*
4891
4892fi
4893
4894if test $ac_cv_header_stdc = yes; then
4895 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4896cat > conftest.$ac_ext <<EOF
4897#line 4898 "configure"
4898#include "confdefs.h"
4899#include <stdlib.h>
4900EOF
4901if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4902 egrep "free" >/dev/null 2>&1; then
4903 :
4904else
4905 rm -rf conftest*
4906 ac_cv_header_stdc=no
4907fi
4908rm -f conftest*
4909
4910fi
4911
4912if test $ac_cv_header_stdc = yes; then
4913 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4914if test "$cross_compiling" = yes; then
4915 :
4916else
4917 cat > conftest.$ac_ext <<EOF
4918#line 4919 "configure"
4919#include "confdefs.h"
4920#include <ctype.h>
4921#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4922#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4923#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4924int main () { int i; for (i = 0; i < 256; i++)
4925if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4926exit (0); }
4927
4928EOF
4929if { (eval echo configure:4930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4930then
4931 :
4932else
4933 echo "configure: failed program was:" >&5
4934 cat conftest.$ac_ext >&5
4935 rm -fr conftest*
4936 ac_cv_header_stdc=no
4937fi
4938rm -fr conftest*
4939fi
4940
4941fi
4942fi
4943
4944echo "$ac_t""$ac_cv_header_stdc" 1>&6
4945if test $ac_cv_header_stdc = yes; then
4946 cat >> confdefs.h <<\EOF
4947#define STDC_HEADERS 1
4948EOF
4949
4950fi
4951
4952echo $ac_n "checking for off_t""... $ac_c" 1>&6
4953echo "configure:4954: checking for off_t" >&5
4954if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
4955 echo $ac_n "(cached) $ac_c" 1>&6
4956else
4957 cat > conftest.$ac_ext <<EOF
4958#line 4959 "configure"
4959#include "confdefs.h"
4960#include <sys/types.h>
4961#if STDC_HEADERS
4962#include <stdlib.h>
4963#include <stddef.h>
4964#endif
4965EOF
4966if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4967 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4968 rm -rf conftest*
4969 ac_cv_type_off_t=yes
4970else
4971 rm -rf conftest*
4972 ac_cv_type_off_t=no
4973fi
4974rm -f conftest*
4975
4976fi
4977echo "$ac_t""$ac_cv_type_off_t" 1>&6
4978if test $ac_cv_type_off_t = no; then
4979 cat >> confdefs.h <<\EOF
4980#define off_t long
4981EOF
4982
4983fi
4984
4985echo $ac_n "checking for size_t""... $ac_c" 1>&6
4986echo "configure:4987: checking for size_t" >&5
4987if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
4988 echo $ac_n "(cached) $ac_c" 1>&6
4989else
4990 cat > conftest.$ac_ext <<EOF
4991#line 4992 "configure"
4992#include "confdefs.h"
4993#include <sys/types.h>
4994#if STDC_HEADERS
4995#include <stdlib.h>
4996#include <stddef.h>
4997#endif
4998EOF
4999if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5000 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5001 rm -rf conftest*
5002 ac_cv_type_size_t=yes
5003else
5004 rm -rf conftest*
5005 ac_cv_type_size_t=no
5006fi
5007rm -f conftest*
5008
5009fi
5010echo "$ac_t""$ac_cv_type_size_t" 1>&6
5011if test $ac_cv_type_size_t = no; then
5012 cat >> confdefs.h <<\EOF
5013#define size_t unsigned
5014EOF
5015
5016fi
5017
5018echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
5019echo "configure:5020: checking for ssize_t" >&5
5020if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
5021 echo $ac_n "(cached) $ac_c" 1>&6
5022else
5023 cat > conftest.$ac_ext <<EOF
5024#line 5025 "configure"
5025#include "confdefs.h"
5026#include <sys/types.h>
5027#if STDC_HEADERS
5028#include <stdlib.h>
5029#include <stddef.h>
5030#endif
5031#include <unistd.h>
5032EOF
5033if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5034 egrep "ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5035 rm -rf conftest*
5036 ac_cv_type_ssize_t=yes
5037else
5038 rm -rf conftest*
5039 ac_cv_type_ssize_t=no
5040fi
5041rm -f conftest*
5042
5043fi
5044echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
5045if test $ac_cv_type_ssize_t = no; then
5046 cat >> confdefs.h <<\EOF
5047#define ssize_t int
5048EOF
5049
5050fi
5051
5052echo $ac_n "checking for pid_t""... $ac_c" 1>&6
5053echo "configure:5054: checking for pid_t" >&5
5054if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
5055 echo $ac_n "(cached) $ac_c" 1>&6
5056else
5057 cat > conftest.$ac_ext <<EOF
5058#line 5059 "configure"
5059#include "confdefs.h"
5060#include <sys/types.h>
5061#if STDC_HEADERS
5062#include <stdlib.h>
5063#include <stddef.h>
5064#endif
5065EOF
5066if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5067 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5068 rm -rf conftest*
5069 ac_cv_type_pid_t=yes
5070else
5071 rm -rf conftest*
5072 ac_cv_type_pid_t=no
5073fi
5074rm -f conftest*
5075
5076fi
5077echo "$ac_t""$ac_cv_type_pid_t" 1>&6
5078if test $ac_cv_type_pid_t = no; then
5079 cat >> confdefs.h <<\EOF
5080#define pid_t int
5081EOF
5082
5083fi
5084
5085echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
5086echo "configure:5087: checking for uid_t in sys/types.h" >&5
5087if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
5088 echo $ac_n "(cached) $ac_c" 1>&6
5089else
5090 cat > conftest.$ac_ext <<EOF
5091#line 5092 "configure"
5092#include "confdefs.h"
5093#include <sys/types.h>
5094EOF
5095if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5096 egrep "uid_t" >/dev/null 2>&1; then
5097 rm -rf conftest*
5098 ac_cv_type_uid_t=yes
5099else
5100 rm -rf conftest*
5101 ac_cv_type_uid_t=no
5102fi
5103rm -f conftest*
5104
5105fi
5106
5107echo "$ac_t""$ac_cv_type_uid_t" 1>&6
5108if test $ac_cv_type_uid_t = no; then
5109 cat >> confdefs.h <<\EOF
5110#define uid_t int
5111EOF
5112
5113 cat >> confdefs.h <<\EOF
5114#define gid_t int
5115EOF
5116
5117fi
5118
5119echo $ac_n "checking for mode_t""... $ac_c" 1>&6
5120echo "configure:5121: checking for mode_t" >&5
5121if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
5122 echo $ac_n "(cached) $ac_c" 1>&6
5123else
5124 cat > conftest.$ac_ext <<EOF
5125#line 5126 "configure"
5126#include "confdefs.h"
5127#include <sys/types.h>
5128#if STDC_HEADERS
5129#include <stdlib.h>
5130#include <stddef.h>
5131#endif
5132
5133EOF
5134if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5135 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5136 rm -rf conftest*
5137 ac_cv_type_mode_t=yes
5138else
5139 rm -rf conftest*
5140 ac_cv_type_mode_t=no
5141fi
5142rm -f conftest*
5143
5144fi
5145echo "$ac_t""$ac_cv_type_mode_t" 1>&6
5146if test $ac_cv_type_mode_t = no; then
5147 cat >> confdefs.h <<\EOF
5148#define mode_t unsigned short
5149EOF
5150
5151fi
5152
5153echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
5154echo "configure:5155: checking for sig_atomic_t" >&5
5155if eval "test \"`echo '$''{'ac_cv_type_sig_atomic_t'+set}'`\" = set"; then
5156 echo $ac_n "(cached) $ac_c" 1>&6
5157else
5158 cat > conftest.$ac_ext <<EOF
5159#line 5160 "configure"
5160#include "confdefs.h"
5161#include <sys/types.h>
5162#if STDC_HEADERS
5163#include <stdlib.h>
5164#include <stddef.h>
5165#endif
5166#include <signal.h>
5167EOF
5168if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5169 egrep "sig_atomic_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5170 rm -rf conftest*
5171 ac_cv_type_sig_atomic_t=yes
5172else
5173 rm -rf conftest*
5174 ac_cv_type_sig_atomic_t=no
5175fi
5176rm -f conftest*
5177
5178fi
5179echo "$ac_t""$ac_cv_type_sig_atomic_t" 1>&6
5180if test $ac_cv_type_sig_atomic_t = no; then
5181 cat >> confdefs.h <<\EOF
5182#define sig_atomic_t int
5183EOF
5184
5185fi
5186
5187
5188
5189cv=`echo "long long" | sed 'y%./+- %__p__%'`
5190echo $ac_n "checking for long long""... $ac_c" 1>&6
5191echo "configure:5192: checking for long long" >&5
5192if eval "test \"`echo '$''{'ac_cv_type_$cv'+set}'`\" = set"; then
5193 echo $ac_n "(cached) $ac_c" 1>&6
5194else
5195 cat > conftest.$ac_ext <<EOF
5196#line 5197 "configure"
5197#include "confdefs.h"
5198#include <sys/types.h>
5199#if STDC_HEADERS
5200#include <stdlib.h>
5201#include <stddef.h>
5202#endif
5203
5204int main() {
5205long long foo;
5206; return 0; }
5207EOF
5208if { (eval echo configure:5209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5209 rm -rf conftest*
5210 eval "ac_cv_type_$cv=yes"
5211else
5212 echo "configure: failed program was:" >&5
5213 cat conftest.$ac_ext >&5
5214 rm -rf conftest*
5215 eval "ac_cv_type_$cv=no"
5216fi
5217rm -f conftest*
5218fi
5219echo "$ac_t""`eval echo \\$ac_cv_type_$cv`" 1>&6
5220if test `eval echo \\$ac_cv_type_$cv` = yes; then
5221 ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
5222
5223: << END
5224@@@funcs="$funcs long_long"@@@
5225END
5226
5227 cat >> confdefs.h <<EOF
5228#define $ac_tr_hdr 1
5229EOF
5230
5231fi
5232
5233echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
5234echo "configure:5235: checking whether time.h and sys/time.h may both be included" >&5
5235if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
5236 echo $ac_n "(cached) $ac_c" 1>&6
5237else
5238 cat > conftest.$ac_ext <<EOF
5239#line 5240 "configure"
5240#include "confdefs.h"
5241#include <sys/types.h>
5242#include <sys/time.h>
5243#include <time.h>
5244int main() {
5245struct tm *tp;
5246; return 0; }
5247EOF
5248if { (eval echo configure:5249: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5249 rm -rf conftest*
5250 ac_cv_header_time=yes
5251else
5252 echo "configure: failed program was:" >&5
5253 cat conftest.$ac_ext >&5
5254 rm -rf conftest*
5255 ac_cv_header_time=no
5256fi
5257rm -f conftest*
5258fi
5259
5260echo "$ac_t""$ac_cv_header_time" 1>&6
5261if test $ac_cv_header_time = yes; then
5262 cat >> confdefs.h <<\EOF
5263#define TIME_WITH_SYS_TIME 1
5264EOF
5265
5266fi
5267
5268echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
5269echo "configure:5270: checking whether struct tm is in sys/time.h or time.h" >&5
5270if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
5271 echo $ac_n "(cached) $ac_c" 1>&6
5272else
5273 cat > conftest.$ac_ext <<EOF
5274#line 5275 "configure"
5275#include "confdefs.h"
5276#include <sys/types.h>
5277#include <time.h>
5278int main() {
5279struct tm *tp; tp->tm_sec;
5280; return 0; }
5281EOF
5282if { (eval echo configure:5283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5283 rm -rf conftest*
5284 ac_cv_struct_tm=time.h
5285else
5286 echo "configure: failed program was:" >&5
5287 cat conftest.$ac_ext >&5
5288 rm -rf conftest*
5289 ac_cv_struct_tm=sys/time.h
5290fi
5291rm -f conftest*
5292fi
5293
5294echo "$ac_t""$ac_cv_struct_tm" 1>&6
5295if test $ac_cv_struct_tm = sys/time.h; then
5296 cat >> confdefs.h <<\EOF
5297#define TM_IN_SYS_TIME 1
5298EOF
5299
5300fi
5301
5302
5303echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5304echo "configure:5305: checking for ANSI C header files" >&5
5305if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5306 echo $ac_n "(cached) $ac_c" 1>&6
5307else
5308 cat > conftest.$ac_ext <<EOF
5309#line 5310 "configure"
5310#include "confdefs.h"
5311#include <stdlib.h>
5312#include <stdarg.h>
5313#include <string.h>
5314#include <float.h>
5315EOF
5316ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5317{ (eval echo configure:5318: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5318ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5319if test -z "$ac_err"; then
5320 rm -rf conftest*
5321 ac_cv_header_stdc=yes
5322else
5323 echo "$ac_err" >&5
5324 echo "configure: failed program was:" >&5
5325 cat conftest.$ac_ext >&5
5326 rm -rf conftest*
5327 ac_cv_header_stdc=no
5328fi
5329rm -f conftest*
5330
5331if test $ac_cv_header_stdc = yes; then
5332 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5333cat > conftest.$ac_ext <<EOF
5334#line 5335 "configure"
5335#include "confdefs.h"
5336#include <string.h>
5337EOF
5338if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5339 egrep "memchr" >/dev/null 2>&1; then
5340 :
5341else
5342 rm -rf conftest*
5343 ac_cv_header_stdc=no
5344fi
5345rm -f conftest*
5346
5347fi
5348
5349if test $ac_cv_header_stdc = yes; then
5350 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5351cat > conftest.$ac_ext <<EOF
5352#line 5353 "configure"
5353#include "confdefs.h"
5354#include <stdlib.h>
5355EOF
5356if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5357 egrep "free" >/dev/null 2>&1; then
5358 :
5359else
5360 rm -rf conftest*
5361 ac_cv_header_stdc=no
5362fi
5363rm -f conftest*
5364
5365fi
5366
5367if test $ac_cv_header_stdc = yes; then
5368 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5369if test "$cross_compiling" = yes; then
5370 :
5371else
5372 cat > conftest.$ac_ext <<EOF
5373#line 5374 "configure"
5374#include "confdefs.h"
5375#include <ctype.h>
5376#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5377#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5378#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5379int main () { int i; for (i = 0; i < 256; i++)
5380if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5381exit (0); }
5382
5383EOF
5384if { (eval echo configure:5385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5385then
5386 :
5387else
5388 echo "configure: failed program was:" >&5
5389 cat conftest.$ac_ext >&5
5390 rm -fr conftest*
5391 ac_cv_header_stdc=no
5392fi
5393rm -fr conftest*
5394fi
5395
5396fi
5397fi
5398
5399echo "$ac_t""$ac_cv_header_stdc" 1>&6
5400if test $ac_cv_header_stdc = yes; then
5401 cat >> confdefs.h <<\EOF
5402#define STDC_HEADERS 1
5403EOF
5404
5405fi
5406
5407
5408if test "$berkeley_db"; then
5409 for ac_hdr in \
5410 db.h \
5411 db_185.h \
5412
5413do
5414ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5415echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5416echo "configure:5417: checking for $ac_hdr" >&5
5417if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5418 echo $ac_n "(cached) $ac_c" 1>&6
5419else
5420 cat > conftest.$ac_ext <<EOF
5421#line 5422 "configure"
5422#include "confdefs.h"
5423#include <$ac_hdr>
5424EOF
5425ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5426{ (eval echo configure:5427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5427ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5428if test -z "$ac_err"; then
5429 rm -rf conftest*
5430 eval "ac_cv_header_$ac_safe=yes"
5431else
5432 echo "$ac_err" >&5
5433 echo "configure: failed program was:" >&5
5434 cat conftest.$ac_ext >&5
5435 rm -rf conftest*
5436 eval "ac_cv_header_$ac_safe=no"
5437fi
5438rm -f conftest*
5439fi
5440if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5441 echo "$ac_t""yes" 1>&6
5442 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5443 cat >> confdefs.h <<EOF
5444#define $ac_tr_hdr 1
5445EOF
5446
5447else
5448 echo "$ac_t""no" 1>&6
5449fi
5450done
5451
5452fi
5453
5454for ac_hdr in \
5455 arpa/ftp.h \
5456 arpa/inet.h \
5457 arpa/nameser.h \
5458 arpa/telnet.h \
5459 bind/bitypes.h \
5460 bsdsetjmp.h \
5461 crypt.h \
5462 curses.h \
5463 dbm.h \
5464 dirent.h \
5465 dlfcn.h \
5466 err.h \
5467 errno.h \
5468 fcntl.h \
5469 fnmatch.h \
5470 grp.h \
5471 inttypes.h \
5472 io.h \
5473 limits.h \
5474 maillock.h \
5475 ndbm.h \
5476 net/if.h \
5477 netdb.h \
5478 netinet/in.h \
5479 netinet/in6.h \
5480 netinet/in6_machtypes.h \
5481 netinet/in6_var.h \
5482 netinet/in_systm.h \
5483 netinet6/in6.h \
5484 netinfo/ni.h \
5485 paths.h \
5486 pthread.h \
5487 pty.h \
5488 pwd.h \
5489 resolv.h \
5490 rpcsvc/dbm.h \
5491 sac.h \
5492 security/pam_modules.h \
5493 sgtty.h \
5494 shadow.h \
5495 siad.h \
5496 signal.h \
5497 stropts.h \
5498 sys/bitypes.h \
5499 sys/category.h \
5500 sys/file.h \
5501 sys/filio.h \
5502 sys/ioccom.h \
5503 sys/ioctl.h \
5504 sys/param.h \
5505 sys/proc.h \
5506 sys/pty.h \
5507 sys/ptyio.h \
5508 sys/ptyvar.h \
5509 sys/resource.h \
5510 sys/select.h \
5511 sys/socket.h \
5512 sys/sockio.h \
5513 sys/stat.h \
5514 sys/str_tty.h \
5515 sys/stream.h \
5516 sys/stropts.h \
5517 sys/strtty.h \
5518 sys/syscall.h \
5519 sys/sysctl.h \
5520 sys/termio.h \
5521 sys/time.h \
5522 sys/timeb.h \
5523 sys/times.h \
5524 sys/tty.h \
5525 sys/types.h \
5526 sys/uio.h \
5527 sys/un.h \
5528 sys/utsname.h \
5529 sys/wait.h \
5530 syslog.h \
5531 term.h \
5532 termio.h \
5533 termios.h \
5534 time.h \
5535 tmpdir.h \
5536 udb.h \
5537 unistd.h \
5538 util.h \
5539 utmp.h \
5540 utmpx.h \
5541
5542do
5543ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5544echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5545echo "configure:5546: checking for $ac_hdr" >&5
5546if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5547 echo $ac_n "(cached) $ac_c" 1>&6
5548else
5549 cat > conftest.$ac_ext <<EOF
5550#line 5551 "configure"
5551#include "confdefs.h"
5552#include <$ac_hdr>
5553EOF
5554ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5555{ (eval echo configure:5556: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5556ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5557if test -z "$ac_err"; then
5558 rm -rf conftest*
5559 eval "ac_cv_header_$ac_safe=yes"
5560else
5561 echo "$ac_err" >&5
5562 echo "configure: failed program was:" >&5
5563 cat conftest.$ac_ext >&5
5564 rm -rf conftest*
5565 eval "ac_cv_header_$ac_safe=no"
5566fi
5567rm -f conftest*
5568fi
5569if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5570 echo "$ac_t""yes" 1>&6
5571 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5572 cat >> confdefs.h <<EOF
5573#define $ac_tr_hdr 1
5574EOF
5575
5576else
5577 echo "$ac_t""no" 1>&6
5578fi
5579done
5580
5581
5582
5583for ac_hdr in standards.h
5584do
5585ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5586echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5587echo "configure:5588: checking for $ac_hdr" >&5
5588if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5589 echo $ac_n "(cached) $ac_c" 1>&6
5590else
5591 cat > conftest.$ac_ext <<EOF
5592#line 5593 "configure"
5593#include "confdefs.h"
5594#include <$ac_hdr>
5595EOF
5596ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5597{ (eval echo configure:5598: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5598ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5599if test -z "$ac_err"; then
5600 rm -rf conftest*
5601 eval "ac_cv_header_$ac_safe=yes"
5602else
5603 echo "$ac_err" >&5
5604 echo "configure: failed program was:" >&5
5605 cat conftest.$ac_ext >&5
5606 rm -rf conftest*
5607 eval "ac_cv_header_$ac_safe=no"
5608fi
5609rm -f conftest*
5610fi
5611if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5612 echo "$ac_t""yes" 1>&6
5613 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5614 cat >> confdefs.h <<EOF
5615#define $ac_tr_hdr 1
5616EOF
5617
5618else
5619 echo "$ac_t""no" 1>&6
5620fi
5621done
5622
5623for i in netinet/ip.h netinet/tcp.h; do
5624
5625cv=`echo "$i" | sed 'y%./+-%__p_%'`
5626
5627echo $ac_n "checking for $i""... $ac_c" 1>&6
5628echo "configure:5629: checking for $i" >&5
5629if eval "test \"`echo '$''{'ac_cv_header_$cv'+set}'`\" = set"; then
5630 echo $ac_n "(cached) $ac_c" 1>&6
5631else
5632 cat > conftest.$ac_ext <<EOF
5633#line 5634 "configure"
5634#include "confdefs.h"
5635\
5636#ifdef HAVE_STANDARDS_H
5637#include <standards.h>
5638#endif
5639#include <$i>
5640
5641EOF
5642ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5643{ (eval echo configure:5644: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5644ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5645if test -z "$ac_err"; then
5646 rm -rf conftest*
5647 eval "ac_cv_header_$cv=yes"
5648else
5649 echo "$ac_err" >&5
5650 echo "configure: failed program was:" >&5
5651 cat conftest.$ac_ext >&5
5652 rm -rf conftest*
5653 eval "ac_cv_header_$cv=no"
5654fi
5655rm -f conftest*
5656fi
5657
5658echo "$ac_t""`eval echo \\$ac_cv_header_$cv`" 1>&6
5659if test `eval echo \\$ac_cv_header_$cv` = yes; then
5660 ac_tr_hdr=HAVE_`echo $i | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5661 cat >> confdefs.h <<EOF
5662#define $ac_tr_hdr 1
5663EOF
5664
5665fi
5666done
5667: << END
5668@@@headers="$headers netinet/ip.h netinet/tcp.h"@@@
5669END
5670
5671
5672
5673
5674# Check whether --enable-netinfo or --disable-netinfo was given.
5675if test "${enable_netinfo+set}" = set; then
5676 enableval="$enable_netinfo"
5677 :
5678fi
5679
5680
5681if test "$ac_cv_header_netinfo_ni_h" = yes -a "$enable_netinfo" = yes; then
5682 cat >> confdefs.h <<\EOF
5683#define HAVE_NETINFO 1
5684EOF
5685
5686fi
5687
5688
5689
5690if test "$ac_cv_header_err_h" = yes; then
5691 have_err_h_TRUE=
5692 have_err_h_FALSE='#'
5693else
5694 have_err_h_TRUE='#'
5695 have_err_h_FALSE=
5696fi
5697
5698
5699if test "$ac_cv_header_fnmatch_h" = yes; then
5700 have_fnmatch_h_TRUE=
5701 have_fnmatch_h_FALSE='#'
5702else
5703 have_fnmatch_h_TRUE='#'
5704 have_fnmatch_h_FALSE=
5705fi
5706
5707
5708# Check whether --with-ipv6 or --without-ipv6 was given.
5709if test "${with_ipv6+set}" = set; then
5710 withval="$with_ipv6"
5711
5712if test "$withval" = "no"; then
5713 ac_cv_lib_ipv6=no
5714fi
5715fi
5716
5717if eval "test \"`echo '$''{'ac_cv_lib_ipv6'+set}'`\" = set"; then
5718 echo $ac_n "(cached) $ac_c" 1>&6
5719else
5720 v6type=unknown
5721v6lib=none
5722
5723echo $ac_n "checking ipv6 stack type""... $ac_c" 1>&6
5724echo "configure:5725: checking ipv6 stack type" >&5
5725for i in v6d toshiba kame inria zeta linux; do
5726 case $i in
5727 v6d)
5728 cat > conftest.$ac_ext <<EOF
5729#line 5730 "configure"
5730#include "confdefs.h"
5731dnl
5732#include </usr/local/v6/include/sys/types.h>
5733#ifdef __V6D__
5734yes
5735#endif
5736EOF
5737if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5738 egrep "yes" >/dev/null 2>&1; then
5739 rm -rf conftest*
5740 v6type=$i; v6lib=v6;
5741 v6libdir=/usr/local/v6/lib;
5742 CFLAGS="-I/usr/local/v6/include $CFLAGS"
5743fi
5744rm -f conftest*
5745
5746 ;;
5747 toshiba)
5748 cat > conftest.$ac_ext <<EOF
5749#line 5750 "configure"
5750#include "confdefs.h"
5751dnl
5752#include <sys/param.h>
5753#ifdef _TOSHIBA_INET6
5754yes
5755#endif
5756EOF
5757if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5758 egrep "yes" >/dev/null 2>&1; then
5759 rm -rf conftest*
5760 v6type=$i; v6lib=inet6;
5761 v6libdir=/usr/local/v6/lib;
5762 CFLAGS="-DINET6 $CFLAGS"
5763fi
5764rm -f conftest*
5765
5766 ;;
5767 kame)
5768 cat > conftest.$ac_ext <<EOF
5769#line 5770 "configure"
5770#include "confdefs.h"
5771dnl
5772#include <netinet/in.h>
5773#ifdef __KAME__
5774yes
5775#endif
5776EOF
5777if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5778 egrep "yes" >/dev/null 2>&1; then
5779 rm -rf conftest*
5780 v6type=$i; v6lib=inet6;
5781 v6libdir=/usr/local/v6/lib;
5782 CFLAGS="-DINET6 $CFLAGS"
5783fi
5784rm -f conftest*
5785
5786 ;;
5787 inria)
5788 cat > conftest.$ac_ext <<EOF
5789#line 5790 "configure"
5790#include "confdefs.h"
5791dnl
5792#include <netinet/in.h>
5793#ifdef IPV6_INRIA_VERSION
5794yes
5795#endif
5796EOF
5797if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5798 egrep "yes" >/dev/null 2>&1; then
5799 rm -rf conftest*
5800 v6type=$i; CFLAGS="-DINET6 $CFLAGS"
5801fi
5802rm -f conftest*
5803
5804 ;;
5805 zeta)
5806 cat > conftest.$ac_ext <<EOF
5807#line 5808 "configure"
5808#include "confdefs.h"
5809dnl
5810#include <sys/param.h>
5811#ifdef _ZETA_MINAMI_INET6
5812yes
5813#endif
5814EOF
5815if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5816 egrep "yes" >/dev/null 2>&1; then
5817 rm -rf conftest*
5818 v6type=$i; v6lib=inet6;
5819 v6libdir=/usr/local/v6/lib;
5820 CFLAGS="-DINET6 $CFLAGS"
5821fi
5822rm -f conftest*
5823
5824 ;;
5825 linux)
5826 if test -d /usr/inet6; then
5827 v6type=$i
5828 v6lib=inet6
5829 v6libdir=/usr/inet6
5830 CFLAGS="-DINET6 $CFLAGS"
5831 fi
5832 ;;
5833 esac
5834 if test "$v6type" != "unknown"; then
5835 break
5836 fi
5837done
5838echo "$ac_t""$v6type" 1>&6
5839
5840if test "$v6lib" != "none"; then
5841 for dir in $v6libdir /usr/local/v6/lib /usr/local/lib; do
5842 if test -d $dir -a -f $dir/lib$v6lib.a; then
5843 LIBS="-L$dir -l$v6lib $LIBS"
5844 break
5845 fi
5846 done
5847fi
5848cat > conftest.$ac_ext <<EOF
5849#line 5850 "configure"
5850#include "confdefs.h"
5851
5852#ifdef HAVE_SYS_TYPES_H
5853#include <sys/types.h>
5854#endif
5855#ifdef HAVE_SYS_SOCKET_H
5856#include <sys/socket.h>
5857#endif
5858#ifdef HAVE_NETINET_IN_H
5859#include <netinet/in.h>
5860#endif
5861#ifdef HAVE_NETINET_IN6_H
5862#include <netinet/in6.h>
5863#endif
5864
5865int main() {
5866
5867 struct sockaddr_in6 sin6;
5868 int s;
5869
5870 s = socket(AF_INET6, SOCK_DGRAM, 0);
5871
5872 sin6.sin6_family = AF_INET6;
5873 sin6.sin6_port = htons(17);
5874 sin6.sin6_addr = in6addr_any;
5875 bind(s, (struct sockaddr *)&sin6, sizeof(sin6));
5876
5877; return 0; }
5878EOF
5879if { (eval echo configure:5880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5880 rm -rf conftest*
5881 ac_cv_lib_ipv6=yes
5882else
5883 echo "configure: failed program was:" >&5
5884 cat conftest.$ac_ext >&5
5885 rm -rf conftest*
5886 ac_cv_lib_ipv6=no
5887fi
5888rm -f conftest*
5889fi
5890
5891echo $ac_n "checking for IPv6""... $ac_c" 1>&6
5892echo "configure:5893: checking for IPv6" >&5
5893echo "$ac_t""$ac_cv_lib_ipv6" 1>&6
5894if test "$ac_cv_lib_ipv6" = yes; then
5895 cat >> confdefs.h <<\EOF
5896#define HAVE_IPV6 1
5897EOF
5898
5899fi
5900
5901
5902
5903
5904
5905
5906
5907echo $ac_n "checking for socket""... $ac_c" 1>&6
5908echo "configure:5909: checking for socket" >&5
5909if eval "test \"`echo '$''{'ac_cv_funclib_socket'+set}'`\" = set"; then
5910 echo $ac_n "(cached) $ac_c" 1>&6
5911else
5912
5913if eval "test \"\$ac_cv_func_socket\" != yes" ; then
5914 ac_save_LIBS="$LIBS"
5915 for ac_lib in "" socket; do
5916 if test -n "$ac_lib"; then
5917 ac_lib="-l$ac_lib"
5918 else
5919 ac_lib=""
5920 fi
5921 LIBS=" $ac_lib $ac_save_LIBS"
5922 cat > conftest.$ac_ext <<EOF
5923#line 5924 "configure"
5924#include "confdefs.h"
5925
5926int main() {
5927socket()
5928; return 0; }
5929EOF
5930if { (eval echo configure:5931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5931 rm -rf conftest*
5932 eval "if test -n \"$ac_lib\";then ac_cv_funclib_socket=$ac_lib; else ac_cv_funclib_socket=yes; fi";break
5933else
5934 echo "configure: failed program was:" >&5
5935 cat conftest.$ac_ext >&5
5936fi
5937rm -f conftest*
5938 done
5939 eval "ac_cv_funclib_socket=\${ac_cv_funclib_socket-no}"
5940 LIBS="$ac_save_LIBS"
5941fi
5942
5943fi
5944
5945
5946eval "ac_res=\$ac_cv_funclib_socket"
5947
5948: << END
5949@@@funcs="$funcs socket"@@@
5950@@@libs="$libs "" socket"@@@
5951END
5952
5953# socket
5954eval "ac_tr_func=HAVE_`echo socket | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
5955eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
5956eval "LIB_socket=$ac_res"
5957
5958case "$ac_res" in
5959 yes)
5960 eval "ac_cv_func_socket=yes"
5961 eval "LIB_socket="
5962 cat >> confdefs.h <<EOF
5963#define $ac_tr_func 1
5964EOF
5965
5966 echo "$ac_t""yes" 1>&6
5967 ;;
5968 no)
5969 eval "ac_cv_func_socket=no"
5970 eval "LIB_socket="
5971 echo "$ac_t""no" 1>&6
5972 ;;
5973 *)
5974 eval "ac_cv_func_socket=yes"
5975 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
5976 cat >> confdefs.h <<EOF
5977#define $ac_tr_func 1
5978EOF
5979
5980 cat >> confdefs.h <<EOF
5981#define $ac_tr_lib 1
5982EOF
5983
5984 echo "$ac_t""yes, in $ac_res" 1>&6
5985 ;;
5986esac
5987
5988
5989if test -n "$LIB_socket"; then
5990 LIBS="$LIB_socket $LIBS"
5991fi
5992
5993
5994
5995
5996
5997echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5998echo "configure:5999: checking for gethostbyname" >&5
5999if eval "test \"`echo '$''{'ac_cv_funclib_gethostbyname'+set}'`\" = set"; then
6000 echo $ac_n "(cached) $ac_c" 1>&6
6001else
6002
6003if eval "test \"\$ac_cv_func_gethostbyname\" != yes" ; then
6004 ac_save_LIBS="$LIBS"
6005 for ac_lib in "" nsl; do
6006 if test -n "$ac_lib"; then
6007 ac_lib="-l$ac_lib"
6008 else
6009 ac_lib=""
6010 fi
6011 LIBS=" $ac_lib $ac_save_LIBS"
6012 cat > conftest.$ac_ext <<EOF
6013#line 6014 "configure"
6014#include "confdefs.h"
6015
6016int main() {
6017gethostbyname()
6018; return 0; }
6019EOF
6020if { (eval echo configure:6021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6021 rm -rf conftest*
6022 eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname=$ac_lib; else ac_cv_funclib_gethostbyname=yes; fi";break
6023else
6024 echo "configure: failed program was:" >&5
6025 cat conftest.$ac_ext >&5
6026fi
6027rm -f conftest*
6028 done
6029 eval "ac_cv_funclib_gethostbyname=\${ac_cv_funclib_gethostbyname-no}"
6030 LIBS="$ac_save_LIBS"
6031fi
6032
6033fi
6034
6035
6036eval "ac_res=\$ac_cv_funclib_gethostbyname"
6037
6038: << END
6039@@@funcs="$funcs gethostbyname"@@@
6040@@@libs="$libs "" nsl"@@@
6041END
6042
6043# gethostbyname
6044eval "ac_tr_func=HAVE_`echo gethostbyname | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
6045eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
6046eval "LIB_gethostbyname=$ac_res"
6047
6048case "$ac_res" in
6049 yes)
6050 eval "ac_cv_func_gethostbyname=yes"
6051 eval "LIB_gethostbyname="
6052 cat >> confdefs.h <<EOF
6053#define $ac_tr_func 1
6054EOF
6055
6056 echo "$ac_t""yes" 1>&6
6057 ;;
6058 no)
6059 eval "ac_cv_func_gethostbyname=no"
6060 eval "LIB_gethostbyname="
6061 echo "$ac_t""no" 1>&6
6062 ;;
6063 *)
6064 eval "ac_cv_func_gethostbyname=yes"
6065 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
6066 cat >> confdefs.h <<EOF
6067#define $ac_tr_func 1
6068EOF
6069
6070 cat >> confdefs.h <<EOF
6071#define $ac_tr_lib 1
6072EOF
6073
6074 echo "$ac_t""yes, in $ac_res" 1>&6
6075 ;;
6076esac
6077
6078
6079if test -n "$LIB_gethostbyname"; then
6080 LIBS="$LIB_gethostbyname $LIBS"
6081fi
6082
6083
6084
6085
6086
6087echo $ac_n "checking for syslog""... $ac_c" 1>&6
6088echo "configure:6089: checking for syslog" >&5
6089if eval "test \"`echo '$''{'ac_cv_funclib_syslog'+set}'`\" = set"; then
6090 echo $ac_n "(cached) $ac_c" 1>&6
6091else
6092
6093if eval "test \"\$ac_cv_func_syslog\" != yes" ; then
6094 ac_save_LIBS="$LIBS"
6095 for ac_lib in "" syslog; do
6096 if test -n "$ac_lib"; then
6097 ac_lib="-l$ac_lib"
6098 else
6099 ac_lib=""
6100 fi
6101 LIBS=" $ac_lib $ac_save_LIBS"
6102 cat > conftest.$ac_ext <<EOF
6103#line 6104 "configure"
6104#include "confdefs.h"
6105
6106int main() {
6107syslog()
6108; return 0; }
6109EOF
6110if { (eval echo configure:6111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6111 rm -rf conftest*
6112 eval "if test -n \"$ac_lib\";then ac_cv_funclib_syslog=$ac_lib; else ac_cv_funclib_syslog=yes; fi";break
6113else
6114 echo "configure: failed program was:" >&5
6115 cat conftest.$ac_ext >&5
6116fi
6117rm -f conftest*
6118 done
6119 eval "ac_cv_funclib_syslog=\${ac_cv_funclib_syslog-no}"
6120 LIBS="$ac_save_LIBS"
6121fi
6122
6123fi
6124
6125
6126eval "ac_res=\$ac_cv_funclib_syslog"
6127
6128: << END
6129@@@funcs="$funcs syslog"@@@
6130@@@libs="$libs "" syslog"@@@
6131END
6132
6133# syslog
6134eval "ac_tr_func=HAVE_`echo syslog | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
6135eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
6136eval "LIB_syslog=$ac_res"
6137
6138case "$ac_res" in
6139 yes)
6140 eval "ac_cv_func_syslog=yes"
6141 eval "LIB_syslog="
6142 cat >> confdefs.h <<EOF
6143#define $ac_tr_func 1
6144EOF
6145
6146 echo "$ac_t""yes" 1>&6
6147 ;;
6148 no)
6149 eval "ac_cv_func_syslog=no"
6150 eval "LIB_syslog="
6151 echo "$ac_t""no" 1>&6
6152 ;;
6153 *)
6154 eval "ac_cv_func_syslog=yes"
6155 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
6156 cat >> confdefs.h <<EOF
6157#define $ac_tr_func 1
6158EOF
6159
6160 cat >> confdefs.h <<EOF
6161#define $ac_tr_lib 1
6162EOF
6163
6164 echo "$ac_t""yes, in $ac_res" 1>&6
6165 ;;
6166esac
6167
6168
6169if test -n "$LIB_syslog"; then
6170 LIBS="$LIB_syslog $LIBS"
6171fi
6172
6173
6174
6175
6176
6177echo $ac_n "checking for logwtmp""... $ac_c" 1>&6
6178echo "configure:6179: checking for logwtmp" >&5
6179if eval "test \"`echo '$''{'ac_cv_funclib_logwtmp'+set}'`\" = set"; then
6180 echo $ac_n "(cached) $ac_c" 1>&6
6181else
6182
6183if eval "test \"\$ac_cv_func_logwtmp\" != yes" ; then
6184 ac_save_LIBS="$LIBS"
6185 for ac_lib in "" util; do
6186 if test -n "$ac_lib"; then
6187 ac_lib="-l$ac_lib"
6188 else
6189 ac_lib=""
6190 fi
6191 LIBS=" $ac_lib $ac_save_LIBS"
6192 cat > conftest.$ac_ext <<EOF
6193#line 6194 "configure"
6194#include "confdefs.h"
6195
6196int main() {
6197logwtmp()
6198; return 0; }
6199EOF
6200if { (eval echo configure:6201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6201 rm -rf conftest*
6202 eval "if test -n \"$ac_lib\";then ac_cv_funclib_logwtmp=$ac_lib; else ac_cv_funclib_logwtmp=yes; fi";break
6203else
6204 echo "configure: failed program was:" >&5
6205 cat conftest.$ac_ext >&5
6206fi
6207rm -f conftest*
6208 done
6209 eval "ac_cv_funclib_logwtmp=\${ac_cv_funclib_logwtmp-no}"
6210 LIBS="$ac_save_LIBS"
6211fi
6212
6213fi
6214
6215
6216eval "ac_res=\$ac_cv_funclib_logwtmp"
6217
6218: << END
6219@@@funcs="$funcs logwtmp"@@@
6220@@@libs="$libs "" util"@@@
6221END
6222
6223# logwtmp
6224eval "ac_tr_func=HAVE_`echo logwtmp | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
6225eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
6226eval "LIB_logwtmp=$ac_res"
6227
6228case "$ac_res" in
6229 yes)
6230 eval "ac_cv_func_logwtmp=yes"
6231 eval "LIB_logwtmp="
6232 cat >> confdefs.h <<EOF
6233#define $ac_tr_func 1
6234EOF
6235
6236 echo "$ac_t""yes" 1>&6
6237 ;;
6238 no)
6239 eval "ac_cv_func_logwtmp=no"
6240 eval "LIB_logwtmp="
6241 echo "$ac_t""no" 1>&6
6242 ;;
6243 *)
6244 eval "ac_cv_func_logwtmp=yes"
6245 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
6246 cat >> confdefs.h <<EOF
6247#define $ac_tr_func 1
6248EOF
6249
6250 cat >> confdefs.h <<EOF
6251#define $ac_tr_lib 1
6252EOF
6253
6254 echo "$ac_t""yes, in $ac_res" 1>&6
6255 ;;
6256esac
6257
6258
6259
6260
6261
6262echo $ac_n "checking for tgetent""... $ac_c" 1>&6
6263echo "configure:6264: checking for tgetent" >&5
6264if eval "test \"`echo '$''{'ac_cv_funclib_tgetent'+set}'`\" = set"; then
6265 echo $ac_n "(cached) $ac_c" 1>&6
6266else
6267
6268if eval "test \"\$ac_cv_func_tgetent\" != yes" ; then
6269 ac_save_LIBS="$LIBS"
6270 for ac_lib in "" termcap ncurses curses; do
6271 if test -n "$ac_lib"; then
6272 ac_lib="-l$ac_lib"
6273 else
6274 ac_lib=""
6275 fi
6276 LIBS=" $ac_lib $ac_save_LIBS"
6277 cat > conftest.$ac_ext <<EOF
6278#line 6279 "configure"
6279#include "confdefs.h"
6280
6281int main() {
6282tgetent()
6283; return 0; }
6284EOF
6285if { (eval echo configure:6286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6286 rm -rf conftest*
6287 eval "if test -n \"$ac_lib\";then ac_cv_funclib_tgetent=$ac_lib; else ac_cv_funclib_tgetent=yes; fi";break
6288else
6289 echo "configure: failed program was:" >&5
6290 cat conftest.$ac_ext >&5
6291fi
6292rm -f conftest*
6293 done
6294 eval "ac_cv_funclib_tgetent=\${ac_cv_funclib_tgetent-no}"
6295 LIBS="$ac_save_LIBS"
6296fi
6297
6298fi
6299
6300
6301eval "ac_res=\$ac_cv_funclib_tgetent"
6302
6303: << END
6304@@@funcs="$funcs tgetent"@@@
6305@@@libs="$libs "" termcap ncurses curses"@@@
6306END
6307
6308# tgetent
6309eval "ac_tr_func=HAVE_`echo tgetent | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
6310eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
6311eval "LIB_tgetent=$ac_res"
6312
6313case "$ac_res" in
6314 yes)
6315 eval "ac_cv_func_tgetent=yes"
6316 eval "LIB_tgetent="
6317 cat >> confdefs.h <<EOF
6318#define $ac_tr_func 1
6319EOF
6320
6321 echo "$ac_t""yes" 1>&6
6322 ;;
6323 no)
6324 eval "ac_cv_func_tgetent=no"
6325 eval "LIB_tgetent="
6326 echo "$ac_t""no" 1>&6
6327 ;;
6328 *)
6329 eval "ac_cv_func_tgetent=yes"
6330 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
6331 cat >> confdefs.h <<EOF
6332#define $ac_tr_func 1
6333EOF
6334
6335 cat >> confdefs.h <<EOF
6336#define $ac_tr_lib 1
6337EOF
6338
6339 echo "$ac_t""yes, in $ac_res" 1>&6
6340 ;;
6341esac
6342
6343
6344
6345
6346
6347
6348echo $ac_n "checking for gethostbyname2""... $ac_c" 1>&6
6349echo "configure:6350: checking for gethostbyname2" >&5
6350if eval "test \"`echo '$''{'ac_cv_funclib_gethostbyname2'+set}'`\" = set"; then
6351 echo $ac_n "(cached) $ac_c" 1>&6
6352else
6353
6354if eval "test \"\$ac_cv_func_gethostbyname2\" != yes" ; then
6355 ac_save_LIBS="$LIBS"
6356 for ac_lib in "" inet6 ip6; do
6357 if test -n "$ac_lib"; then
6358 ac_lib="-l$ac_lib"
6359 else
6360 ac_lib=""
6361 fi
6362 LIBS=" $ac_lib $ac_save_LIBS"
6363 cat > conftest.$ac_ext <<EOF
6364#line 6365 "configure"
6365#include "confdefs.h"
6366
6367int main() {
6368gethostbyname2()
6369; return 0; }
6370EOF
6371if { (eval echo configure:6372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6372 rm -rf conftest*
6373 eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname2=$ac_lib; else ac_cv_funclib_gethostbyname2=yes; fi";break
6374else
6375 echo "configure: failed program was:" >&5
6376 cat conftest.$ac_ext >&5
6377fi
6378rm -f conftest*
6379 done
6380 eval "ac_cv_funclib_gethostbyname2=\${ac_cv_funclib_gethostbyname2-no}"
6381 LIBS="$ac_save_LIBS"
6382fi
6383
6384fi
6385
6386
6387eval "ac_res=\$ac_cv_funclib_gethostbyname2"
6388
6389: << END
6390@@@funcs="$funcs gethostbyname2"@@@
6391@@@libs="$libs "" inet6 ip6"@@@
6392END
6393
6394# gethostbyname2
6395eval "ac_tr_func=HAVE_`echo gethostbyname2 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
6396eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
6397eval "LIB_gethostbyname2=$ac_res"
6398
6399case "$ac_res" in
6400 yes)
6401 eval "ac_cv_func_gethostbyname2=yes"
6402 eval "LIB_gethostbyname2="
6403 cat >> confdefs.h <<EOF
6404#define $ac_tr_func 1
6405EOF
6406
6407 echo "$ac_t""yes" 1>&6
6408 ;;
6409 no)
6410 eval "ac_cv_func_gethostbyname2=no"
6411 eval "LIB_gethostbyname2="
6412 echo "$ac_t""no" 1>&6
6413 ;;
6414 *)
6415 eval "ac_cv_func_gethostbyname2=yes"
6416 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
6417 cat >> confdefs.h <<EOF
6418#define $ac_tr_func 1
6419EOF
6420
6421 cat >> confdefs.h <<EOF
6422#define $ac_tr_lib 1
6423EOF
6424
6425 echo "$ac_t""yes, in $ac_res" 1>&6
6426 ;;
6427esac
6428
6429
6430if test -n "$LIB_gethostbyname2"; then
6431 LIBS="$LIB_gethostbyname2 $LIBS"
6432fi
6433
6434
6435
6436
6437
6438
6439echo $ac_n "checking for res_search""... $ac_c" 1>&6
6440echo "configure:6441: checking for res_search" >&5
6441if eval "test \"`echo '$''{'ac_cv_funclib_res_search'+set}'`\" = set"; then
6442 echo $ac_n "(cached) $ac_c" 1>&6
6443else
6444
6445if eval "test \"\$ac_cv_func_res_search\" != yes" ; then
6446 ac_save_LIBS="$LIBS"
6447 for ac_lib in "" resolv; do
6448 if test -n "$ac_lib"; then
6449 ac_lib="-l$ac_lib"
6450 else
6451 ac_lib=""
6452 fi
6453 LIBS=" $ac_lib $ac_save_LIBS"
6454 cat > conftest.$ac_ext <<EOF
6455#line 6456 "configure"
6456#include "confdefs.h"
6457
6458#include <stdio.h>
6459#ifdef HAVE_SYS_TYPES_H
6460#include <sys/types.h>
6461#endif
6462#ifdef HAVE_NETINET_IN_H
6463#include <netinet/in.h>
6464#endif
6465#ifdef HAVE_ARPA_NAMESER_H
6466#include <arpa/nameser.h>
6467#endif
6468#ifdef HAVE_RESOLV_H
6469#include <resolv.h>
6470#endif
6471
6472int main() {
6473res_search(0,0,0,0,0)
6474; return 0; }
6475EOF
6476if { (eval echo configure:6477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6477 rm -rf conftest*
6478 eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_search=$ac_lib; else ac_cv_funclib_res_search=yes; fi";break
6479else
6480 echo "configure: failed program was:" >&5
6481 cat conftest.$ac_ext >&5
6482fi
6483rm -f conftest*
6484 done
6485 eval "ac_cv_funclib_res_search=\${ac_cv_funclib_res_search-no}"
6486 LIBS="$ac_save_LIBS"
6487fi
6488
6489fi
6490
6491
6492eval "ac_res=\$ac_cv_funclib_res_search"
6493
6494: << END
6495@@@funcs="$funcs res_search"@@@
6496@@@libs="$libs "" resolv"@@@
6497END
6498
6499# res_search
6500eval "ac_tr_func=HAVE_`echo res_search | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
6501eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
6502eval "LIB_res_search=$ac_res"
6503
6504case "$ac_res" in
6505 yes)
6506 eval "ac_cv_func_res_search=yes"
6507 eval "LIB_res_search="
6508 cat >> confdefs.h <<EOF
6509#define $ac_tr_func 1
6510EOF
6511
6512 echo "$ac_t""yes" 1>&6
6513 ;;
6514 no)
6515 eval "ac_cv_func_res_search=no"
6516 eval "LIB_res_search="
6517 echo "$ac_t""no" 1>&6
6518 ;;
6519 *)
6520 eval "ac_cv_func_res_search=yes"
6521 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
6522 cat >> confdefs.h <<EOF
6523#define $ac_tr_func 1
6524EOF
6525
6526 cat >> confdefs.h <<EOF
6527#define $ac_tr_lib 1
6528EOF
6529
6530 echo "$ac_t""yes, in $ac_res" 1>&6
6531 ;;
6532esac
6533
6534
6535if test -n "$LIB_res_search"; then
6536 LIBS="$LIB_res_search $LIBS"
6537fi
6538
6539
6540
6541
6542
6543
6544echo $ac_n "checking for dn_expand""... $ac_c" 1>&6
6545echo "configure:6546: checking for dn_expand" >&5
6546if eval "test \"`echo '$''{'ac_cv_funclib_dn_expand'+set}'`\" = set"; then
6547 echo $ac_n "(cached) $ac_c" 1>&6
6548else
6549
6550if eval "test \"\$ac_cv_func_dn_expand\" != yes" ; then
6551 ac_save_LIBS="$LIBS"
6552 for ac_lib in "" resolv; do
6553 if test -n "$ac_lib"; then
6554 ac_lib="-l$ac_lib"
6555 else
6556 ac_lib=""
6557 fi
6558 LIBS=" $ac_lib $ac_save_LIBS"
6559 cat > conftest.$ac_ext <<EOF
6560#line 6561 "configure"
6561#include "confdefs.h"
6562
6563#include <stdio.h>
6564#ifdef HAVE_SYS_TYPES_H
6565#include <sys/types.h>
6566#endif
6567#ifdef HAVE_NETINET_IN_H
6568#include <netinet/in.h>
6569#endif
6570#ifdef HAVE_ARPA_NAMESER_H
6571#include <arpa/nameser.h>
6572#endif
6573#ifdef HAVE_RESOLV_H
6574#include <resolv.h>
6575#endif
6576
6577int main() {
6578dn_expand(0,0,0,0,0)
6579; return 0; }
6580EOF
6581if { (eval echo configure:6582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6582 rm -rf conftest*
6583 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dn_expand=$ac_lib; else ac_cv_funclib_dn_expand=yes; fi";break
6584else
6585 echo "configure: failed program was:" >&5
6586 cat conftest.$ac_ext >&5
6587fi
6588rm -f conftest*
6589 done
6590 eval "ac_cv_funclib_dn_expand=\${ac_cv_funclib_dn_expand-no}"
6591 LIBS="$ac_save_LIBS"
6592fi
6593
6594fi
6595
6596
6597eval "ac_res=\$ac_cv_funclib_dn_expand"
6598
6599: << END
6600@@@funcs="$funcs dn_expand"@@@
6601@@@libs="$libs "" resolv"@@@
6602END
6603
6604# dn_expand
6605eval "ac_tr_func=HAVE_`echo dn_expand | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
6606eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
6607eval "LIB_dn_expand=$ac_res"
6608
6609case "$ac_res" in
6610 yes)
6611 eval "ac_cv_func_dn_expand=yes"
6612 eval "LIB_dn_expand="
6613 cat >> confdefs.h <<EOF
6614#define $ac_tr_func 1
6615EOF
6616
6617 echo "$ac_t""yes" 1>&6
6618 ;;
6619 no)
6620 eval "ac_cv_func_dn_expand=no"
6621 eval "LIB_dn_expand="
6622 echo "$ac_t""no" 1>&6
6623 ;;
6624 *)
6625 eval "ac_cv_func_dn_expand=yes"
6626 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
6627 cat >> confdefs.h <<EOF
6628#define $ac_tr_func 1
6629EOF
6630
6631 cat >> confdefs.h <<EOF
6632#define $ac_tr_lib 1
6633EOF
6634
6635 echo "$ac_t""yes, in $ac_res" 1>&6
6636 ;;
6637esac
6638
6639
6640if test -n "$LIB_dn_expand"; then
6641 LIBS="$LIB_dn_expand $LIBS"
6642fi
6643
6644
6645
6646
6647echo $ac_n "checking for working snprintf""... $ac_c" 1>&6
6648echo "configure:6649: checking for working snprintf" >&5
6649if eval "test \"`echo '$''{'ac_cv_func_snprintf_working'+set}'`\" = set"; then
6650 echo $ac_n "(cached) $ac_c" 1>&6
6651else
6652 ac_cv_func_snprintf_working=yes
6653if test "$cross_compiling" = yes; then
6654 :
6655else
6656 cat > conftest.$ac_ext <<EOF
6657#line 6658 "configure"
6658#include "confdefs.h"
6659
6660#include <stdio.h>
6661#include <string.h>
6662int main()
6663{
6664 char foo[3];
6665 snprintf(foo, 2, "12");
6666 return strcmp(foo, "1");
6667}
6668EOF
6669if { (eval echo configure:6670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6670then
6671 :
6672else
6673 echo "configure: failed program was:" >&5
6674 cat conftest.$ac_ext >&5
6675 rm -fr conftest*
6676 ac_cv_func_snprintf_working=no
6677fi
6678rm -fr conftest*
6679fi
6680
6681fi
6682
6683echo "$ac_t""$ac_cv_func_snprintf_working" 1>&6
6684
6685if test "$ac_cv_func_snprintf_working" = yes; then
6686 cat >> confdefs.h <<EOF
6687#define HAVE_SNPRINTF 1
6688EOF
6689
6690fi
6691if test "$ac_cv_func_snprintf_working" = yes; then
6692
6693if test "$ac_cv_func_snprintf+set" != set -o "$ac_cv_func_snprintf" = yes; then
6694echo $ac_n "checking if snprintf needs a prototype""... $ac_c" 1>&6
6695echo "configure:6696: checking if snprintf needs a prototype" >&5
6696if eval "test \"`echo '$''{'ac_cv_func_snprintf_noproto'+set}'`\" = set"; then
6697 echo $ac_n "(cached) $ac_c" 1>&6
6698else
6699 cat > conftest.$ac_ext <<EOF
6700#line 6701 "configure"
6701#include "confdefs.h"
6702#include <stdio.h>
6703int main() {
6704struct foo { int foo; } xx;
6705extern int snprintf (struct foo*);
6706snprintf(&xx);
6707
6708; return 0; }
6709EOF
6710if { (eval echo configure:6711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6711 rm -rf conftest*
6712 eval "ac_cv_func_snprintf_noproto=yes"
6713else
6714 echo "configure: failed program was:" >&5
6715 cat conftest.$ac_ext >&5
6716 rm -rf conftest*
6717 eval "ac_cv_func_snprintf_noproto=no"
6718fi
6719rm -f conftest*
6720fi
6721
6722echo "$ac_t""$ac_cv_func_snprintf_noproto" 1>&6
6723
6724if test "$ac_cv_func_snprintf_noproto" = yes; then
6725 cat >> confdefs.h <<\EOF
6726#define NEED_SNPRINTF_PROTO 1
6727EOF
6728
6729fi
6730
6731fi
6732
6733fi
6734
6735
6736echo $ac_n "checking for working vsnprintf""... $ac_c" 1>&6
6737echo "configure:6738: checking for working vsnprintf" >&5
6738if eval "test \"`echo '$''{'ac_cv_func_vsnprintf_working'+set}'`\" = set"; then
6739 echo $ac_n "(cached) $ac_c" 1>&6
6740else
6741 ac_cv_func_vsnprintf_working=yes
6742if test "$cross_compiling" = yes; then
6743 :
6744else
6745 cat > conftest.$ac_ext <<EOF
6746#line 6747 "configure"
6747#include "confdefs.h"
6748
6749#include <stdio.h>
6750#include <string.h>
6751#include <stdarg.h>
6752
6753int foo(int num, ...)
6754{
6755 char bar[3];
6756 va_list arg;
6757 va_start(arg, num);
6758 vsnprintf(bar, 2, "%s", arg);
6759 va_end(arg);
6760 return strcmp(bar, "1");
6761}
6762
6763
6764int main()
6765{
6766 return foo(0, "12");
6767}
6768EOF
6769if { (eval echo configure:6770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6770then
6771 :
6772else
6773 echo "configure: failed program was:" >&5
6774 cat conftest.$ac_ext >&5
6775 rm -fr conftest*
6776 ac_cv_func_vsnprintf_working=no
6777fi
6778rm -fr conftest*
6779fi
6780
6781fi
6782
6783echo "$ac_t""$ac_cv_func_vsnprintf_working" 1>&6
6784
6785if test "$ac_cv_func_vsnprintf_working" = yes; then
6786 cat >> confdefs.h <<EOF
6787#define HAVE_VSNPRINTF 1
6788EOF
6789
6790fi
6791if test "$ac_cv_func_vsnprintf_working" = yes; then
6792
6793if test "$ac_cv_func_vsnprintf+set" != set -o "$ac_cv_func_vsnprintf" = yes; then
6794echo $ac_n "checking if vsnprintf needs a prototype""... $ac_c" 1>&6
6795echo "configure:6796: checking if vsnprintf needs a prototype" >&5
6796if eval "test \"`echo '$''{'ac_cv_func_vsnprintf_noproto'+set}'`\" = set"; then
6797 echo $ac_n "(cached) $ac_c" 1>&6
6798else
6799 cat > conftest.$ac_ext <<EOF
6800#line 6801 "configure"
6801#include "confdefs.h"
6802#include <stdio.h>
6803int main() {
6804struct foo { int foo; } xx;
6805extern int vsnprintf (struct foo*);
6806vsnprintf(&xx);
6807
6808; return 0; }
6809EOF
6810if { (eval echo configure:6811: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6811 rm -rf conftest*
6812 eval "ac_cv_func_vsnprintf_noproto=yes"
6813else
6814 echo "configure: failed program was:" >&5
6815 cat conftest.$ac_ext >&5
6816 rm -rf conftest*
6817 eval "ac_cv_func_vsnprintf_noproto=no"
6818fi
6819rm -f conftest*
6820fi
6821
6822echo "$ac_t""$ac_cv_func_vsnprintf_noproto" 1>&6
6823
6824if test "$ac_cv_func_vsnprintf_noproto" = yes; then
6825 cat >> confdefs.h <<\EOF
6826#define NEED_VSNPRINTF_PROTO 1
6827EOF
6828
6829fi
6830
6831fi
6832
6833fi
6834
6835
6836
6837echo $ac_n "checking for working glob""... $ac_c" 1>&6
6838echo "configure:6839: checking for working glob" >&5
6839if eval "test \"`echo '$''{'ac_cv_func_glob_working'+set}'`\" = set"; then
6840 echo $ac_n "(cached) $ac_c" 1>&6
6841else
6842 ac_cv_func_glob_working=yes
6843cat > conftest.$ac_ext <<EOF
6844#line 6845 "configure"
6845#include "confdefs.h"
6846
6847#include <stdio.h>
6848#include <glob.h>
6849int main() {
6850
6851glob(NULL, GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE, NULL, NULL);
6852
6853; return 0; }
6854EOF
6855if { (eval echo configure:6856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6856 rm -rf conftest*
6857 :
6858else
6859 echo "configure: failed program was:" >&5
6860 cat conftest.$ac_ext >&5
6861 rm -rf conftest*
6862 ac_cv_func_glob_working=no
6863fi
6864rm -f conftest*
6865fi
6866
6867echo "$ac_t""$ac_cv_func_glob_working" 1>&6
6868
6869if test "$ac_cv_func_glob_working" = yes; then
6870 cat >> confdefs.h <<\EOF
6871#define HAVE_GLOB 1
6872EOF
6873
6874fi
6875if test "$ac_cv_func_glob_working" = yes; then
6876
6877if test "$ac_cv_func_glob+set" != set -o "$ac_cv_func_glob" = yes; then
6878echo $ac_n "checking if glob needs a prototype""... $ac_c" 1>&6
6879echo "configure:6880: checking if glob needs a prototype" >&5
6880if eval "test \"`echo '$''{'ac_cv_func_glob_noproto'+set}'`\" = set"; then
6881 echo $ac_n "(cached) $ac_c" 1>&6
6882else
6883 cat > conftest.$ac_ext <<EOF
6884#line 6885 "configure"
6885#include "confdefs.h"
6886#include <stdio.h>
6887#include <glob.h>
6888int main() {
6889struct foo { int foo; } xx;
6890extern int glob (struct foo*);
6891glob(&xx);
6892
6893; return 0; }
6894EOF
6895if { (eval echo configure:6896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6896 rm -rf conftest*
6897 eval "ac_cv_func_glob_noproto=yes"
6898else
6899 echo "configure: failed program was:" >&5
6900 cat conftest.$ac_ext >&5
6901 rm -rf conftest*
6902 eval "ac_cv_func_glob_noproto=no"
6903fi
6904rm -f conftest*
6905fi
6906
6907echo "$ac_t""$ac_cv_func_glob_noproto" 1>&6
6908
6909if test "$ac_cv_func_glob_noproto" = yes; then
6910 cat >> confdefs.h <<\EOF
6911#define NEED_GLOB_PROTO 1
6912EOF
6913
6914fi
6915
6916fi
6917
6918fi
6919
6920
6921if test "$ac_cv_func_glob_working" != yes; then
6922 LIBOBJS="$LIBOBJS glob.o"
6923fi
6924
6925
6926if test "$ac_cv_func_glob_working" = yes; then
6927 have_glob_h_TRUE=
6928 have_glob_h_FALSE='#'
6929else
6930 have_glob_h_TRUE='#'
6931 have_glob_h_FALSE=
6932fi
6933
6934
6935
6936
6937
6938echo $ac_n "checking for dbopen""... $ac_c" 1>&6
6939echo "configure:6940: checking for dbopen" >&5
6940if eval "test \"`echo '$''{'ac_cv_funclib_dbopen'+set}'`\" = set"; then
6941 echo $ac_n "(cached) $ac_c" 1>&6
6942else
6943
6944if eval "test \"\$ac_cv_func_dbopen\" != yes" ; then
6945 ac_save_LIBS="$LIBS"
6946 for ac_lib in "" $berkeley_db; do
6947 if test -n "$ac_lib"; then
6948 ac_lib="-l$ac_lib"
6949 else
6950 ac_lib=""
6951 fi
6952 LIBS=" $ac_lib $ac_save_LIBS"
6953 cat > conftest.$ac_ext <<EOF
6954#line 6955 "configure"
6955#include "confdefs.h"
6956
6957int main() {
6958dbopen()
6959; return 0; }
6960EOF
6961if { (eval echo configure:6962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6962 rm -rf conftest*
6963 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbopen=$ac_lib; else ac_cv_funclib_dbopen=yes; fi";break
6964else
6965 echo "configure: failed program was:" >&5
6966 cat conftest.$ac_ext >&5
6967fi
6968rm -f conftest*
6969 done
6970 eval "ac_cv_funclib_dbopen=\${ac_cv_funclib_dbopen-no}"
6971 LIBS="$ac_save_LIBS"
6972fi
6973
6974fi
6975
6976
6977eval "ac_res=\$ac_cv_funclib_dbopen"
6978
6979: << END
6980@@@funcs="$funcs dbopen"@@@
6981@@@libs="$libs "" $berkeley_db"@@@
6982END
6983
6984# dbopen
6985eval "ac_tr_func=HAVE_`echo dbopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
6986eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
6987eval "LIB_dbopen=$ac_res"
6988
6989case "$ac_res" in
6990 yes)
6991 eval "ac_cv_func_dbopen=yes"
6992 eval "LIB_dbopen="
6993 cat >> confdefs.h <<EOF
6994#define $ac_tr_func 1
6995EOF
6996
6997 echo "$ac_t""yes" 1>&6
6998 ;;
6999 no)
7000 eval "ac_cv_func_dbopen=no"
7001 eval "LIB_dbopen="
7002 echo "$ac_t""no" 1>&6
7003 ;;
7004 *)
7005 eval "ac_cv_func_dbopen=yes"
7006 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
7007 cat >> confdefs.h <<EOF
7008#define $ac_tr_func 1
7009EOF
7010
7011 cat >> confdefs.h <<EOF
7012#define $ac_tr_lib 1
7013EOF
7014
7015 echo "$ac_t""yes, in $ac_res" 1>&6
7016 ;;
7017esac
7018
7019
7020
7021
7022
7023echo $ac_n "checking for dbm_firstkey""... $ac_c" 1>&6
7024echo "configure:7025: checking for dbm_firstkey" >&5
7025if eval "test \"`echo '$''{'ac_cv_funclib_dbm_firstkey'+set}'`\" = set"; then
7026 echo $ac_n "(cached) $ac_c" 1>&6
7027else
7028
7029if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
7030 ac_save_LIBS="$LIBS"
7031 for ac_lib in "" $berkeley_db gdbm ndbm; do
7032 if test -n "$ac_lib"; then
7033 ac_lib="-l$ac_lib"
7034 else
7035 ac_lib=""
7036 fi
7037 LIBS=" $ac_lib $ac_save_LIBS"
7038 cat > conftest.$ac_ext <<EOF
7039#line 7040 "configure"
7040#include "confdefs.h"
7041
7042int main() {
7043dbm_firstkey()
7044; return 0; }
7045EOF
7046if { (eval echo configure:7047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7047 rm -rf conftest*
7048 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
7049else
7050 echo "configure: failed program was:" >&5
7051 cat conftest.$ac_ext >&5
7052fi
7053rm -f conftest*
7054 done
7055 eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
7056 LIBS="$ac_save_LIBS"
7057fi
7058
7059fi
7060
7061
7062eval "ac_res=\$ac_cv_funclib_dbm_firstkey"
7063
7064: << END
7065@@@funcs="$funcs dbm_firstkey"@@@
7066@@@libs="$libs "" $berkeley_db gdbm ndbm"@@@
7067END
7068
7069# dbm_firstkey
7070eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
7071eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
7072eval "LIB_dbm_firstkey=$ac_res"
7073
7074case "$ac_res" in
7075 yes)
7076 eval "ac_cv_func_dbm_firstkey=yes"
7077 eval "LIB_dbm_firstkey="
7078 cat >> confdefs.h <<EOF
7079#define $ac_tr_func 1
7080EOF
7081
7082 echo "$ac_t""yes" 1>&6
7083 ;;
7084 no)
7085 eval "ac_cv_func_dbm_firstkey=no"
7086 eval "LIB_dbm_firstkey="
7087 echo "$ac_t""no" 1>&6
7088 ;;
7089 *)
7090 eval "ac_cv_func_dbm_firstkey=yes"
7091 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
7092 cat >> confdefs.h <<EOF
7093#define $ac_tr_func 1
7094EOF
7095
7096 cat >> confdefs.h <<EOF
7097#define $ac_tr_lib 1
7098EOF
7099
7100 echo "$ac_t""yes, in $ac_res" 1>&6
7101 ;;
7102esac
7103
7104
7105
7106DBLIB="$LIB_dbopen"
7107if test "$LIB_dbopen" != "$LIB_dbm_firstkey"; then
7108 DBLIB="$DBLIB $LIB_dbm_firstkey"
7109fi
7110
7111for ac_func in _getpty _scrsize asnprintf asprintf cgetent fcntl
7112do
7113echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7114echo "configure:7115: checking for $ac_func" >&5
7115if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7116 echo $ac_n "(cached) $ac_c" 1>&6
7117else
7118 cat > conftest.$ac_ext <<EOF
7119#line 7120 "configure"
7120#include "confdefs.h"
7121/* System header to define __stub macros and hopefully few prototypes,
7122 which can conflict with char $ac_func(); below. */
7123#include <assert.h>
7124/* Override any gcc2 internal prototype to avoid an error. */
7125/* We use char because int might match the return type of a gcc2
7126 builtin and then its argument prototype would still apply. */
7127char $ac_func();
7128
7129int main() {
7130
7131/* The GNU C library defines this for functions which it implements
7132 to always fail with ENOSYS. Some functions are actually named
7133 something starting with __ and the normal name is an alias. */
7134#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7135choke me
7136#else
7137$ac_func();
7138#endif
7139
7140; return 0; }
7141EOF
7142if { (eval echo configure:7143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7143 rm -rf conftest*
7144 eval "ac_cv_func_$ac_func=yes"
7145else
7146 echo "configure: failed program was:" >&5
7147 cat conftest.$ac_ext >&5
7148 rm -rf conftest*
7149 eval "ac_cv_func_$ac_func=no"
7150fi
7151rm -f conftest*
7152fi
7153
7154if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7155 echo "$ac_t""yes" 1>&6
7156 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7157 cat >> confdefs.h <<EOF
7158#define $ac_tr_func 1
7159EOF
7160
7161else
7162 echo "$ac_t""no" 1>&6
7163fi
7164done
7165
7166for ac_func in getmsg getrlimit getspnam gettimeofday getuid
7167do
7168echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7169echo "configure:7170: checking for $ac_func" >&5
7170if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7171 echo $ac_n "(cached) $ac_c" 1>&6
7172else
7173 cat > conftest.$ac_ext <<EOF
7174#line 7175 "configure"
7175#include "confdefs.h"
7176/* System header to define __stub macros and hopefully few prototypes,
7177 which can conflict with char $ac_func(); below. */
7178#include <assert.h>
7179/* Override any gcc2 internal prototype to avoid an error. */
7180/* We use char because int might match the return type of a gcc2
7181 builtin and then its argument prototype would still apply. */
7182char $ac_func();
7183
7184int main() {
7185
7186/* The GNU C library defines this for functions which it implements
7187 to always fail with ENOSYS. Some functions are actually named
7188 something starting with __ and the normal name is an alias. */
7189#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7190choke me
7191#else
7192$ac_func();
7193#endif
7194
7195; return 0; }
7196EOF
7197if { (eval echo configure:7198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7198 rm -rf conftest*
7199 eval "ac_cv_func_$ac_func=yes"
7200else
7201 echo "configure: failed program was:" >&5
7202 cat conftest.$ac_ext >&5
7203 rm -rf conftest*
7204 eval "ac_cv_func_$ac_func=no"
7205fi
7206rm -f conftest*
7207fi
7208
7209if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7210 echo "$ac_t""yes" 1>&6
7211 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7212 cat >> confdefs.h <<EOF
7213#define $ac_tr_func 1
7214EOF
7215
7216else
7217 echo "$ac_t""no" 1>&6
7218fi
7219done
7220
7221for ac_func in grantpt mktime ptsname rand random setproctitle
7222do
7223echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7224echo "configure:7225: checking for $ac_func" >&5
7225if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7226 echo $ac_n "(cached) $ac_c" 1>&6
7227else
7228 cat > conftest.$ac_ext <<EOF
7229#line 7230 "configure"
7230#include "confdefs.h"
7231/* System header to define __stub macros and hopefully few prototypes,
7232 which can conflict with char $ac_func(); below. */
7233#include <assert.h>
7234/* Override any gcc2 internal prototype to avoid an error. */
7235/* We use char because int might match the return type of a gcc2
7236 builtin and then its argument prototype would still apply. */
7237char $ac_func();
7238
7239int main() {
7240
7241/* The GNU C library defines this for functions which it implements
7242 to always fail with ENOSYS. Some functions are actually named
7243 something starting with __ and the normal name is an alias. */
7244#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7245choke me
7246#else
7247$ac_func();
7248#endif
7249
7250; return 0; }
7251EOF
7252if { (eval echo configure:7253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7253 rm -rf conftest*
7254 eval "ac_cv_func_$ac_func=yes"
7255else
7256 echo "configure: failed program was:" >&5
7257 cat conftest.$ac_ext >&5
7258 rm -rf conftest*
7259 eval "ac_cv_func_$ac_func=no"
7260fi
7261rm -f conftest*
7262fi
7263
7264if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7265 echo "$ac_t""yes" 1>&6
7266 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7267 cat >> confdefs.h <<EOF
7268#define $ac_tr_func 1
7269EOF
7270
7271else
7272 echo "$ac_t""no" 1>&6
7273fi
7274done
7275
7276for ac_func in revoke select setitimer setpcred setpgid
7277do
7278echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7279echo "configure:7280: checking for $ac_func" >&5
7280if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7281 echo $ac_n "(cached) $ac_c" 1>&6
7282else
7283 cat > conftest.$ac_ext <<EOF
7284#line 7285 "configure"
7285#include "confdefs.h"
7286/* System header to define __stub macros and hopefully few prototypes,
7287 which can conflict with char $ac_func(); below. */
7288#include <assert.h>
7289/* Override any gcc2 internal prototype to avoid an error. */
7290/* We use char because int might match the return type of a gcc2
7291 builtin and then its argument prototype would still apply. */
7292char $ac_func();
7293
7294int main() {
7295
7296/* The GNU C library defines this for functions which it implements
7297 to always fail with ENOSYS. Some functions are actually named
7298 something starting with __ and the normal name is an alias. */
7299#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7300choke me
7301#else
7302$ac_func();
7303#endif
7304
7305; return 0; }
7306EOF
7307if { (eval echo configure:7308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7308 rm -rf conftest*
7309 eval "ac_cv_func_$ac_func=yes"
7310else
7311 echo "configure: failed program was:" >&5
7312 cat conftest.$ac_ext >&5
7313 rm -rf conftest*
7314 eval "ac_cv_func_$ac_func=no"
7315fi
7316rm -f conftest*
7317fi
7318
7319if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7320 echo "$ac_t""yes" 1>&6
7321 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7322 cat >> confdefs.h <<EOF
7323#define $ac_tr_func 1
7324EOF
7325
7326else
7327 echo "$ac_t""no" 1>&6
7328fi
7329done
7330
7331for ac_func in setregid setresgid setresuid setreuid setutent
7332do
7333echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7334echo "configure:7335: checking for $ac_func" >&5
7335if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7336 echo $ac_n "(cached) $ac_c" 1>&6
7337else
7338 cat > conftest.$ac_ext <<EOF
7339#line 7340 "configure"
7340#include "confdefs.h"
7341/* System header to define __stub macros and hopefully few prototypes,
7342 which can conflict with char $ac_func(); below. */
7343#include <assert.h>
7344/* Override any gcc2 internal prototype to avoid an error. */
7345/* We use char because int might match the return type of a gcc2
7346 builtin and then its argument prototype would still apply. */
7347char $ac_func();
7348
7349int main() {
7350
7351/* The GNU C library defines this for functions which it implements
7352 to always fail with ENOSYS. Some functions are actually named
7353 something starting with __ and the normal name is an alias. */
7354#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7355choke me
7356#else
7357$ac_func();
7358#endif
7359
7360; return 0; }
7361EOF
7362if { (eval echo configure:7363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7363 rm -rf conftest*
7364 eval "ac_cv_func_$ac_func=yes"
7365else
7366 echo "configure: failed program was:" >&5
7367 cat conftest.$ac_ext >&5
7368 rm -rf conftest*
7369 eval "ac_cv_func_$ac_func=no"
7370fi
7371rm -f conftest*
7372fi
7373
7374if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7375 echo "$ac_t""yes" 1>&6
7376 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7377 cat >> confdefs.h <<EOF
7378#define $ac_tr_func 1
7379EOF
7380
7381else
7382 echo "$ac_t""no" 1>&6
7383fi
7384done
7385
7386for ac_func in setsid sigaction strstr
7387do
7388echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7389echo "configure:7390: checking for $ac_func" >&5
7390if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7391 echo $ac_n "(cached) $ac_c" 1>&6
7392else
7393 cat > conftest.$ac_ext <<EOF
7394#line 7395 "configure"
7395#include "confdefs.h"
7396/* System header to define __stub macros and hopefully few prototypes,
7397 which can conflict with char $ac_func(); below. */
7398#include <assert.h>
7399/* Override any gcc2 internal prototype to avoid an error. */
7400/* We use char because int might match the return type of a gcc2
7401 builtin and then its argument prototype would still apply. */
7402char $ac_func();
7403
7404int main() {
7405
7406/* The GNU C library defines this for functions which it implements
7407 to always fail with ENOSYS. Some functions are actually named
7408 something starting with __ and the normal name is an alias. */
7409#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7410choke me
7411#else
7412$ac_func();
7413#endif
7414
7415; return 0; }
7416EOF
7417if { (eval echo configure:7418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7418 rm -rf conftest*
7419 eval "ac_cv_func_$ac_func=yes"
7420else
7421 echo "configure: failed program was:" >&5
7422 cat conftest.$ac_ext >&5
7423 rm -rf conftest*
7424 eval "ac_cv_func_$ac_func=no"
7425fi
7426rm -f conftest*
7427fi
7428
7429if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7430 echo "$ac_t""yes" 1>&6
7431 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7432 cat >> confdefs.h <<EOF
7433#define $ac_tr_func 1
7434EOF
7435
7436else
7437 echo "$ac_t""no" 1>&6
7438fi
7439done
7440
7441for ac_func in sysconf sysctl timegm ttyname ttyslot umask uname
7442do
7443echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7444echo "configure:7445: checking for $ac_func" >&5
7445if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7446 echo $ac_n "(cached) $ac_c" 1>&6
7447else
7448 cat > conftest.$ac_ext <<EOF
7449#line 7450 "configure"
7450#include "confdefs.h"
7451/* System header to define __stub macros and hopefully few prototypes,
7452 which can conflict with char $ac_func(); below. */
7453#include <assert.h>
7454/* Override any gcc2 internal prototype to avoid an error. */
7455/* We use char because int might match the return type of a gcc2
7456 builtin and then its argument prototype would still apply. */
7457char $ac_func();
7458
7459int main() {
7460
7461/* The GNU C library defines this for functions which it implements
7462 to always fail with ENOSYS. Some functions are actually named
7463 something starting with __ and the normal name is an alias. */
7464#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7465choke me
7466#else
7467$ac_func();
7468#endif
7469
7470; return 0; }
7471EOF
7472if { (eval echo configure:7473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7473 rm -rf conftest*
7474 eval "ac_cv_func_$ac_func=yes"
7475else
7476 echo "configure: failed program was:" >&5
7477 cat conftest.$ac_ext >&5
7478 rm -rf conftest*
7479 eval "ac_cv_func_$ac_func=no"
7480fi
7481rm -f conftest*
7482fi
7483
7484if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7485 echo "$ac_t""yes" 1>&6
7486 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7487 cat >> confdefs.h <<EOF
7488#define $ac_tr_func 1
7489EOF
7490
7491else
7492 echo "$ac_t""no" 1>&6
7493fi
7494done
7495
7496for ac_func in unlockpt vasnprintf vasprintf vhangup
7497do
7498echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7499echo "configure:7500: checking for $ac_func" >&5
7500if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7501 echo $ac_n "(cached) $ac_c" 1>&6
7502else
7503 cat > conftest.$ac_ext <<EOF
7504#line 7505 "configure"
7505#include "confdefs.h"
7506/* System header to define __stub macros and hopefully few prototypes,
7507 which can conflict with char $ac_func(); below. */
7508#include <assert.h>
7509/* Override any gcc2 internal prototype to avoid an error. */
7510/* We use char because int might match the return type of a gcc2
7511 builtin and then its argument prototype would still apply. */
7512char $ac_func();
7513
7514int main() {
7515
7516/* The GNU C library defines this for functions which it implements
7517 to always fail with ENOSYS. Some functions are actually named
7518 something starting with __ and the normal name is an alias. */
7519#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7520choke me
7521#else
7522$ac_func();
7523#endif
7524
7525; return 0; }
7526EOF
7527if { (eval echo configure:7528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7528 rm -rf conftest*
7529 eval "ac_cv_func_$ac_func=yes"
7530else
7531 echo "configure: failed program was:" >&5
7532 cat conftest.$ac_ext >&5
7533 rm -rf conftest*
7534 eval "ac_cv_func_$ac_func=no"
7535fi
7536rm -f conftest*
7537fi
7538
7539if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7540 echo "$ac_t""yes" 1>&6
7541 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7542 cat >> confdefs.h <<EOF
7543#define $ac_tr_func 1
7544EOF
7545
7546else
7547 echo "$ac_t""no" 1>&6
7548fi
7549done
7550
7551for ac_func in yp_get_default_domain
7552do
7553echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7554echo "configure:7555: checking for $ac_func" >&5
7555if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7556 echo $ac_n "(cached) $ac_c" 1>&6
7557else
7558 cat > conftest.$ac_ext <<EOF
7559#line 7560 "configure"
7560#include "confdefs.h"
7561/* System header to define __stub macros and hopefully few prototypes,
7562 which can conflict with char $ac_func(); below. */
7563#include <assert.h>
7564/* Override any gcc2 internal prototype to avoid an error. */
7565/* We use char because int might match the return type of a gcc2
7566 builtin and then its argument prototype would still apply. */
7567char $ac_func();
7568
7569int main() {
7570
7571/* The GNU C library defines this for functions which it implements
7572 to always fail with ENOSYS. Some functions are actually named
7573 something starting with __ and the normal name is an alias. */
7574#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7575choke me
7576#else
7577$ac_func();
7578#endif
7579
7580; return 0; }
7581EOF
7582if { (eval echo configure:7583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7583 rm -rf conftest*
7584 eval "ac_cv_func_$ac_func=yes"
7585else
7586 echo "configure: failed program was:" >&5
7587 cat conftest.$ac_ext >&5
7588 rm -rf conftest*
7589 eval "ac_cv_func_$ac_func=no"
7590fi
7591rm -f conftest*
7592fi
7593
7594if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7595 echo "$ac_t""yes" 1>&6
7596 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7597 cat >> confdefs.h <<EOF
7598#define $ac_tr_func 1
7599EOF
7600
7601else
7602 echo "$ac_t""no" 1>&6
7603fi
7604done
7605
7606
7607if test "$ac_cv_func_cgetent" = no; then
7608 LIBOBJS="$LIBOBJS getcap.o"
7609fi
7610
7611
7612for ac_func in getlogin setlogin
7613do
7614echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7615echo "configure:7616: checking for $ac_func" >&5
7616if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7617 echo $ac_n "(cached) $ac_c" 1>&6
7618else
7619 cat > conftest.$ac_ext <<EOF
7620#line 7621 "configure"
7621#include "confdefs.h"
7622/* System header to define __stub macros and hopefully few prototypes,
7623 which can conflict with char $ac_func(); below. */
7624#include <assert.h>
7625/* Override any gcc2 internal prototype to avoid an error. */
7626/* We use char because int might match the return type of a gcc2
7627 builtin and then its argument prototype would still apply. */
7628char $ac_func();
7629
7630int main() {
7631
7632/* The GNU C library defines this for functions which it implements
7633 to always fail with ENOSYS. Some functions are actually named
7634 something starting with __ and the normal name is an alias. */
7635#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7636choke me
7637#else
7638$ac_func();
7639#endif
7640
7641; return 0; }
7642EOF
7643if { (eval echo configure:7644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7644 rm -rf conftest*
7645 eval "ac_cv_func_$ac_func=yes"
7646else
7647 echo "configure: failed program was:" >&5
7648 cat conftest.$ac_ext >&5
7649 rm -rf conftest*
7650 eval "ac_cv_func_$ac_func=no"
7651fi
7652rm -f conftest*
7653fi
7654
7655if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7656 echo "$ac_t""yes" 1>&6
7657 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7658 cat >> confdefs.h <<EOF
7659#define $ac_tr_func 1
7660EOF
7661
7662else
7663 echo "$ac_t""no" 1>&6
7664fi
7665done
7666
7667if test "$ac_cv_func_getlogin" = yes; then
7668echo $ac_n "checking if getlogin is posix""... $ac_c" 1>&6
7669echo "configure:7670: checking if getlogin is posix" >&5
7670if eval "test \"`echo '$''{'ac_cv_func_getlogin_posix'+set}'`\" = set"; then
7671 echo $ac_n "(cached) $ac_c" 1>&6
7672else
7673
7674if test "$ac_cv_func_getlogin" = yes -a "$ac_cv_func_setlogin" = yes; then
7675 ac_cv_func_getlogin_posix=no
7676else
7677 ac_cv_func_getlogin_posix=yes
7678fi
7679
7680fi
7681
7682echo "$ac_t""$ac_cv_func_getlogin_posix" 1>&6
7683if test "$ac_cv_func_getlogin_posix" = yes; then
7684 cat >> confdefs.h <<\EOF
7685#define POSIX_GETLOGIN 1
7686EOF
7687
7688fi
7689fi
7690
7691
7692
7693
7694for ac_hdr in capability.h sys/capability.h
7695do
7696ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7697echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7698echo "configure:7699: checking for $ac_hdr" >&5
7699if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7700 echo $ac_n "(cached) $ac_c" 1>&6
7701else
7702 cat > conftest.$ac_ext <<EOF
7703#line 7704 "configure"
7704#include "confdefs.h"
7705#include <$ac_hdr>
7706EOF
7707ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7708{ (eval echo configure:7709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7709ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7710if test -z "$ac_err"; then
7711 rm -rf conftest*
7712 eval "ac_cv_header_$ac_safe=yes"
7713else
7714 echo "$ac_err" >&5
7715 echo "configure: failed program was:" >&5
7716 cat conftest.$ac_ext >&5
7717 rm -rf conftest*
7718 eval "ac_cv_header_$ac_safe=no"
7719fi
7720rm -f conftest*
7721fi
7722if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7723 echo "$ac_t""yes" 1>&6
7724 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7725 cat >> confdefs.h <<EOF
7726#define $ac_tr_hdr 1
7727EOF
7728
7729else
7730 echo "$ac_t""no" 1>&6
7731fi
7732done
7733
7734
7735for ac_func in sgi_getcapabilitybyname cap_set_proc
7736do
7737echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7738echo "configure:7739: checking for $ac_func" >&5
7739if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7740 echo $ac_n "(cached) $ac_c" 1>&6
7741else
7742 cat > conftest.$ac_ext <<EOF
7743#line 7744 "configure"
7744#include "confdefs.h"
7745/* System header to define __stub macros and hopefully few prototypes,
7746 which can conflict with char $ac_func(); below. */
7747#include <assert.h>
7748/* Override any gcc2 internal prototype to avoid an error. */
7749/* We use char because int might match the return type of a gcc2
7750 builtin and then its argument prototype would still apply. */
7751char $ac_func();
7752
7753int main() {
7754
7755/* The GNU C library defines this for functions which it implements
7756 to always fail with ENOSYS. Some functions are actually named
7757 something starting with __ and the normal name is an alias. */
7758#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7759choke me
7760#else
7761$ac_func();
7762#endif
7763
7764; return 0; }
7765EOF
7766if { (eval echo configure:7767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7767 rm -rf conftest*
7768 eval "ac_cv_func_$ac_func=yes"
7769else
7770 echo "configure: failed program was:" >&5
7771 cat conftest.$ac_ext >&5
7772 rm -rf conftest*
7773 eval "ac_cv_func_$ac_func=no"
7774fi
7775rm -f conftest*
7776fi
7777
7778if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7779 echo "$ac_t""yes" 1>&6
7780 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7781 cat >> confdefs.h <<EOF
7782#define $ac_tr_func 1
7783EOF
7784
7785else
7786 echo "$ac_t""no" 1>&6
7787fi
7788done
7789
7790
7791
7792
7793
7794
7795
7796echo $ac_n "checking for getpwnam_r""... $ac_c" 1>&6
7797echo "configure:7798: checking for getpwnam_r" >&5
7798if eval "test \"`echo '$''{'ac_cv_funclib_getpwnam_r'+set}'`\" = set"; then
7799 echo $ac_n "(cached) $ac_c" 1>&6
7800else
7801
7802if eval "test \"\$ac_cv_func_getpwnam_r\" != yes" ; then
7803 ac_save_LIBS="$LIBS"
7804 for ac_lib in "" c_r; do
7805 if test -n "$ac_lib"; then
7806 ac_lib="-l$ac_lib"
7807 else
7808 ac_lib=""
7809 fi
7810 LIBS=" $ac_lib $ac_save_LIBS"
7811 cat > conftest.$ac_ext <<EOF
7812#line 7813 "configure"
7813#include "confdefs.h"
7814
7815int main() {
7816getpwnam_r()
7817; return 0; }
7818EOF
7819if { (eval echo configure:7820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7820 rm -rf conftest*
7821 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getpwnam_r=$ac_lib; else ac_cv_funclib_getpwnam_r=yes; fi";break
7822else
7823 echo "configure: failed program was:" >&5
7824 cat conftest.$ac_ext >&5
7825fi
7826rm -f conftest*
7827 done
7828 eval "ac_cv_funclib_getpwnam_r=\${ac_cv_funclib_getpwnam_r-no}"
7829 LIBS="$ac_save_LIBS"
7830fi
7831
7832fi
7833
7834
7835eval "ac_res=\$ac_cv_funclib_getpwnam_r"
7836
7837: << END
7838@@@funcs="$funcs getpwnam_r"@@@
7839@@@libs="$libs "" c_r"@@@
7840END
7841
7842# getpwnam_r
7843eval "ac_tr_func=HAVE_`echo getpwnam_r | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
7844eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
7845eval "LIB_getpwnam_r=$ac_res"
7846
7847case "$ac_res" in
7848 yes)
7849 eval "ac_cv_func_getpwnam_r=yes"
7850 eval "LIB_getpwnam_r="
7851 cat >> confdefs.h <<EOF
7852#define $ac_tr_func 1
7853EOF
7854
7855 echo "$ac_t""yes" 1>&6
7856 ;;
7857 no)
7858 eval "ac_cv_func_getpwnam_r=no"
7859 eval "LIB_getpwnam_r="
7860 echo "$ac_t""no" 1>&6
7861 ;;
7862 *)
7863 eval "ac_cv_func_getpwnam_r=yes"
7864 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
7865 cat >> confdefs.h <<EOF
7866#define $ac_tr_func 1
7867EOF
7868
7869 cat >> confdefs.h <<EOF
7870#define $ac_tr_lib 1
7871EOF
7872
7873 echo "$ac_t""yes, in $ac_res" 1>&6
7874 ;;
7875esac
7876
7877
7878if test "$ac_cv_func_getpwnam_r" = yes; then
7879 echo $ac_n "checking if getpwnam_r is posix""... $ac_c" 1>&6
7880echo "configure:7881: checking if getpwnam_r is posix" >&5
7881if eval "test \"`echo '$''{'ac_cv_func_getpwnam_r_posix'+set}'`\" = set"; then
7882 echo $ac_n "(cached) $ac_c" 1>&6
7883else
7884 ac_libs="$LIBS"
7885 LIBS="$LIBS $LIB_getpwnam_r"
7886 if test "$cross_compiling" = yes; then
7887 :
7888else
7889 cat > conftest.$ac_ext <<EOF
7890#line 7891 "configure"
7891#include "confdefs.h"
7892
7893#include <pwd.h>
7894int main()
7895{
7896 struct passwd pw, *pwd;
7897 return getpwnam_r("", &pw, NULL, 0, &pwd) < 0;
7898}
7899
7900EOF
7901if { (eval echo configure:7902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7902then
7903 ac_cv_func_getpwnam_r_posix=yes
7904else
7905 echo "configure: failed program was:" >&5
7906 cat conftest.$ac_ext >&5
7907 rm -fr conftest*
7908 ac_cv_func_getpwnam_r_posix=no
7909fi
7910rm -fr conftest*
7911fi
7912
7913LIBS="$ac_libs"
7914fi
7915
7916echo "$ac_t""$ac_cv_func_getpwnam_r_posix" 1>&6
7917if test "$ac_cv_func_getpwnam_r_posix" = yes; then
7918 cat >> confdefs.h <<\EOF
7919#define POSIX_GETPWNAM_R 1
7920EOF
7921
7922fi
7923fi
7924
7925
7926
7927
7928
7929echo $ac_n "checking for getsockopt""... $ac_c" 1>&6
7930echo "configure:7931: checking for getsockopt" >&5
7931if eval "test \"`echo '$''{'ac_cv_funclib_getsockopt'+set}'`\" = set"; then
7932 echo $ac_n "(cached) $ac_c" 1>&6
7933else
7934
7935if eval "test \"\$ac_cv_func_getsockopt\" != yes" ; then
7936 ac_save_LIBS="$LIBS"
7937 for ac_lib in "" ; do
7938 if test -n "$ac_lib"; then
7939 ac_lib="-l$ac_lib"
7940 else
7941 ac_lib=""
7942 fi
7943 LIBS=" $ac_lib $ac_save_LIBS"
7944 cat > conftest.$ac_ext <<EOF
7945#line 7946 "configure"
7946#include "confdefs.h"
7947#ifdef HAVE_SYS_TYPES_H
7948#include <sys/types.h>
7949#endif
7950#ifdef HAVE_SYS_SOCKET_H
7951#include <sys/socket.h>
7952#endif
7953int main() {
7954getsockopt(0,0,0,0,0)
7955; return 0; }
7956EOF
7957if { (eval echo configure:7958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7958 rm -rf conftest*
7959 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getsockopt=$ac_lib; else ac_cv_funclib_getsockopt=yes; fi";break
7960else
7961 echo "configure: failed program was:" >&5
7962 cat conftest.$ac_ext >&5
7963fi
7964rm -f conftest*
7965 done
7966 eval "ac_cv_funclib_getsockopt=\${ac_cv_funclib_getsockopt-no}"
7967 LIBS="$ac_save_LIBS"
7968fi
7969
7970fi
7971
7972
7973eval "ac_res=\$ac_cv_funclib_getsockopt"
7974
7975: << END
7976@@@funcs="$funcs getsockopt"@@@
7977@@@libs="$libs "" "@@@
7978END
7979
7980# getsockopt
7981eval "ac_tr_func=HAVE_`echo getsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
7982eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
7983eval "LIB_getsockopt=$ac_res"
7984
7985case "$ac_res" in
7986 yes)
7987 eval "ac_cv_func_getsockopt=yes"
7988 eval "LIB_getsockopt="
7989 cat >> confdefs.h <<EOF
7990#define $ac_tr_func 1
7991EOF
7992
7993 echo "$ac_t""yes" 1>&6
7994 ;;
7995 no)
7996 eval "ac_cv_func_getsockopt=no"
7997 eval "LIB_getsockopt="
7998 echo "$ac_t""no" 1>&6
7999 ;;
8000 *)
8001 eval "ac_cv_func_getsockopt=yes"
8002 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
8003 cat >> confdefs.h <<EOF
8004#define $ac_tr_func 1
8005EOF
8006
8007 cat >> confdefs.h <<EOF
8008#define $ac_tr_lib 1
8009EOF
8010
8011 echo "$ac_t""yes, in $ac_res" 1>&6
8012 ;;
8013esac
8014
8015
8016
8017
8018
8019echo $ac_n "checking for setsockopt""... $ac_c" 1>&6
8020echo "configure:8021: checking for setsockopt" >&5
8021if eval "test \"`echo '$''{'ac_cv_funclib_setsockopt'+set}'`\" = set"; then
8022 echo $ac_n "(cached) $ac_c" 1>&6
8023else
8024
8025if eval "test \"\$ac_cv_func_setsockopt\" != yes" ; then
8026 ac_save_LIBS="$LIBS"
8027 for ac_lib in "" ; do
8028 if test -n "$ac_lib"; then
8029 ac_lib="-l$ac_lib"
8030 else
8031 ac_lib=""
8032 fi
8033 LIBS=" $ac_lib $ac_save_LIBS"
8034 cat > conftest.$ac_ext <<EOF
8035#line 8036 "configure"
8036#include "confdefs.h"
8037#ifdef HAVE_SYS_TYPES_H
8038#include <sys/types.h>
8039#endif
8040#ifdef HAVE_SYS_SOCKET_H
8041#include <sys/socket.h>
8042#endif
8043int main() {
8044setsockopt(0,0,0,0,0)
8045; return 0; }
8046EOF
8047if { (eval echo configure:8048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8048 rm -rf conftest*
8049 eval "if test -n \"$ac_lib\";then ac_cv_funclib_setsockopt=$ac_lib; else ac_cv_funclib_setsockopt=yes; fi";break
8050else
8051 echo "configure: failed program was:" >&5
8052 cat conftest.$ac_ext >&5
8053fi
8054rm -f conftest*
8055 done
8056 eval "ac_cv_funclib_setsockopt=\${ac_cv_funclib_setsockopt-no}"
8057 LIBS="$ac_save_LIBS"
8058fi
8059
8060fi
8061
8062
8063eval "ac_res=\$ac_cv_funclib_setsockopt"
8064
8065: << END
8066@@@funcs="$funcs setsockopt"@@@
8067@@@libs="$libs "" "@@@
8068END
8069
8070# setsockopt
8071eval "ac_tr_func=HAVE_`echo setsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
8072eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
8073eval "LIB_setsockopt=$ac_res"
8074
8075case "$ac_res" in
8076 yes)
8077 eval "ac_cv_func_setsockopt=yes"
8078 eval "LIB_setsockopt="
8079 cat >> confdefs.h <<EOF
8080#define $ac_tr_func 1
8081EOF
8082
8083 echo "$ac_t""yes" 1>&6
8084 ;;
8085 no)
8086 eval "ac_cv_func_setsockopt=no"
8087 eval "LIB_setsockopt="
8088 echo "$ac_t""no" 1>&6
8089 ;;
8090 *)
8091 eval "ac_cv_func_setsockopt=yes"
8092 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
8093 cat >> confdefs.h <<EOF
8094#define $ac_tr_func 1
8095EOF
8096
8097 cat >> confdefs.h <<EOF
8098#define $ac_tr_lib 1
8099EOF
8100
8101 echo "$ac_t""yes, in $ac_res" 1>&6
8102 ;;
8103esac
8104
8105
8106
8107for ac_func in getudbnam setlim
8108do
8109echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8110echo "configure:8111: checking for $ac_func" >&5
8111if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8112 echo $ac_n "(cached) $ac_c" 1>&6
8113else
8114 cat > conftest.$ac_ext <<EOF
8115#line 8116 "configure"
8116#include "confdefs.h"
8117/* System header to define __stub macros and hopefully few prototypes,
8118 which can conflict with char $ac_func(); below. */
8119#include <assert.h>
8120/* Override any gcc2 internal prototype to avoid an error. */
8121/* We use char because int might match the return type of a gcc2
8122 builtin and then its argument prototype would still apply. */
8123char $ac_func();
8124
8125int main() {
8126
8127/* The GNU C library defines this for functions which it implements
8128 to always fail with ENOSYS. Some functions are actually named
8129 something starting with __ and the normal name is an alias. */
8130#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8131choke me
8132#else
8133$ac_func();
8134#endif
8135
8136; return 0; }
8137EOF
8138if { (eval echo configure:8139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8139 rm -rf conftest*
8140 eval "ac_cv_func_$ac_func=yes"
8141else
8142 echo "configure: failed program was:" >&5
8143 cat conftest.$ac_ext >&5
8144 rm -rf conftest*
8145 eval "ac_cv_func_$ac_func=no"
8146fi
8147rm -f conftest*
8148fi
8149
8150if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8151 echo "$ac_t""yes" 1>&6
8152 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8153 cat >> confdefs.h <<EOF
8154#define $ac_tr_func 1
8155EOF
8156
8157else
8158 echo "$ac_t""no" 1>&6
8159fi
8160done
8161
8162
8163echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
8164echo "configure:8165: checking return type of signal handlers" >&5
8165if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
8166 echo $ac_n "(cached) $ac_c" 1>&6
8167else
8168 cat > conftest.$ac_ext <<EOF
8169#line 8170 "configure"
8170#include "confdefs.h"
8171#include <sys/types.h>
8172#include <signal.h>
8173#ifdef signal
8174#undef signal
8175#endif
8176#ifdef __cplusplus
8177extern "C" void (*signal (int, void (*)(int)))(int);
8178#else
8179void (*signal ()) ();
8180#endif
8181
8182int main() {
8183int i;
8184; return 0; }
8185EOF
8186if { (eval echo configure:8187: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8187 rm -rf conftest*
8188 ac_cv_type_signal=void
8189else
8190 echo "configure: failed program was:" >&5
8191 cat conftest.$ac_ext >&5
8192 rm -rf conftest*
8193 ac_cv_type_signal=int
8194fi
8195rm -f conftest*
8196fi
8197
8198echo "$ac_t""$ac_cv_type_signal" 1>&6
8199cat >> confdefs.h <<EOF
8200#define RETSIGTYPE $ac_cv_type_signal
8201EOF
8202
8203
8204if test "$ac_cv_type_signal" = "void" ; then
8205 cat >> confdefs.h <<\EOF
8206#define VOID_RETSIGTYPE 1
8207EOF
8208
8209fi
8210
8211
8212
8213
8214
8215
8216echo $ac_n "checking for hstrerror""... $ac_c" 1>&6
8217echo "configure:8218: checking for hstrerror" >&5
8218if eval "test \"`echo '$''{'ac_cv_funclib_hstrerror'+set}'`\" = set"; then
8219 echo $ac_n "(cached) $ac_c" 1>&6
8220else
8221
8222if eval "test \"\$ac_cv_func_hstrerror\" != yes" ; then
8223 ac_save_LIBS="$LIBS"
8224 for ac_lib in "" resolv; do
8225 if test -n "$ac_lib"; then
8226 ac_lib="-l$ac_lib"
8227 else
8228 ac_lib=""
8229 fi
8230 LIBS=" $ac_lib $ac_save_LIBS"
8231 cat > conftest.$ac_ext <<EOF
8232#line 8233 "configure"
8233#include "confdefs.h"
8234#ifdef HAVE_NETDB_H
8235#include <netdb.h>
8236#endif
8237int main() {
8238hstrerror(17)
8239; return 0; }
8240EOF
8241if { (eval echo configure:8242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8242 rm -rf conftest*
8243 eval "if test -n \"$ac_lib\";then ac_cv_funclib_hstrerror=$ac_lib; else ac_cv_funclib_hstrerror=yes; fi";break
8244else
8245 echo "configure: failed program was:" >&5
8246 cat conftest.$ac_ext >&5
8247fi
8248rm -f conftest*
8249 done
8250 eval "ac_cv_funclib_hstrerror=\${ac_cv_funclib_hstrerror-no}"
8251 LIBS="$ac_save_LIBS"
8252fi
8253
8254fi
8255
8256
8257eval "ac_res=\$ac_cv_funclib_hstrerror"
8258
8259: << END
8260@@@funcs="$funcs hstrerror"@@@
8261@@@libs="$libs "" resolv"@@@
8262END
8263
8264# hstrerror
8265eval "ac_tr_func=HAVE_`echo hstrerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
8266eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
8267eval "LIB_hstrerror=$ac_res"
8268
8269case "$ac_res" in
8270 yes)
8271 eval "ac_cv_func_hstrerror=yes"
8272 eval "LIB_hstrerror="
8273 cat >> confdefs.h <<EOF
8274#define $ac_tr_func 1
8275EOF
8276
8277 echo "$ac_t""yes" 1>&6
8278 ;;
8279 no)
8280 eval "ac_cv_func_hstrerror=no"
8281 eval "LIB_hstrerror="
8282 echo "$ac_t""no" 1>&6
8283 ;;
8284 *)
8285 eval "ac_cv_func_hstrerror=yes"
8286 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
8287 cat >> confdefs.h <<EOF
8288#define $ac_tr_func 1
8289EOF
8290
8291 cat >> confdefs.h <<EOF
8292#define $ac_tr_lib 1
8293EOF
8294
8295 echo "$ac_t""yes, in $ac_res" 1>&6
8296 ;;
8297esac
8298
8299
8300if test -n "$LIB_hstrerror"; then
8301 LIBS="$LIB_hstrerror $LIBS"
8302fi
8303
8304if eval "test \"$ac_cv_func_hstrerror\" != yes"; then
8305LIBOBJS="$LIBOBJS hstrerror.o"
8306fi
8307
8308if test "$ac_cv_func_hstrerror" = yes; then
8309
8310if test "$ac_cv_func_hstrerror+set" != set -o "$ac_cv_func_hstrerror" = yes; then
8311echo $ac_n "checking if hstrerror needs a prototype""... $ac_c" 1>&6
8312echo "configure:8313: checking if hstrerror needs a prototype" >&5
8313if eval "test \"`echo '$''{'ac_cv_func_hstrerror_noproto'+set}'`\" = set"; then
8314 echo $ac_n "(cached) $ac_c" 1>&6
8315else
8316 cat > conftest.$ac_ext <<EOF
8317#line 8318 "configure"
8318#include "confdefs.h"
8319
8320#ifdef HAVE_NETDB_H
8321#include <netdb.h>
8322#endif
8323int main() {
8324struct foo { int foo; } xx;
8325extern int hstrerror (struct foo*);
8326hstrerror(&xx);
8327
8328; return 0; }
8329EOF
8330if { (eval echo configure:8331: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8331 rm -rf conftest*
8332 eval "ac_cv_func_hstrerror_noproto=yes"
8333else
8334 echo "configure: failed program was:" >&5
8335 cat conftest.$ac_ext >&5
8336 rm -rf conftest*
8337 eval "ac_cv_func_hstrerror_noproto=no"
8338fi
8339rm -f conftest*
8340fi
8341
8342echo "$ac_t""$ac_cv_func_hstrerror_noproto" 1>&6
8343
8344if test "$ac_cv_func_hstrerror_noproto" = yes; then
8345 cat >> confdefs.h <<\EOF
8346#define NEED_HSTRERROR_PROTO 1
8347EOF
8348
8349fi
8350
8351fi
8352
8353fi
8354
8355if test "$ac_cv_func_asprintf" = yes; then
8356
8357if test "$ac_cv_func_asprintf+set" != set -o "$ac_cv_func_asprintf" = yes; then
8358echo $ac_n "checking if asprintf needs a prototype""... $ac_c" 1>&6
8359echo "configure:8360: checking if asprintf needs a prototype" >&5
8360if eval "test \"`echo '$''{'ac_cv_func_asprintf_noproto'+set}'`\" = set"; then
8361 echo $ac_n "(cached) $ac_c" 1>&6
8362else
8363 cat > conftest.$ac_ext <<EOF
8364#line 8365 "configure"
8365#include "confdefs.h"
8366
8367#include <stdio.h>
8368#include <string.h>
8369int main() {
8370struct foo { int foo; } xx;
8371extern int asprintf (struct foo*);
8372asprintf(&xx);
8373
8374; return 0; }
8375EOF
8376if { (eval echo configure:8377: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8377 rm -rf conftest*
8378 eval "ac_cv_func_asprintf_noproto=yes"
8379else
8380 echo "configure: failed program was:" >&5
8381 cat conftest.$ac_ext >&5
8382 rm -rf conftest*
8383 eval "ac_cv_func_asprintf_noproto=no"
8384fi
8385rm -f conftest*
8386fi
8387
8388echo "$ac_t""$ac_cv_func_asprintf_noproto" 1>&6
8389
8390if test "$ac_cv_func_asprintf_noproto" = yes; then
8391 cat >> confdefs.h <<\EOF
8392#define NEED_ASPRINTF_PROTO 1
8393EOF
8394
8395fi
8396
8397fi
8398fi
8399if test "$ac_cv_func_vasprintf" = yes; then
8400
8401if test "$ac_cv_func_vasprintf+set" != set -o "$ac_cv_func_vasprintf" = yes; then
8402echo $ac_n "checking if vasprintf needs a prototype""... $ac_c" 1>&6
8403echo "configure:8404: checking if vasprintf needs a prototype" >&5
8404if eval "test \"`echo '$''{'ac_cv_func_vasprintf_noproto'+set}'`\" = set"; then
8405 echo $ac_n "(cached) $ac_c" 1>&6
8406else
8407 cat > conftest.$ac_ext <<EOF
8408#line 8409 "configure"
8409#include "confdefs.h"
8410
8411#include <stdio.h>
8412#include <string.h>
8413int main() {
8414struct foo { int foo; } xx;
8415extern int vasprintf (struct foo*);
8416vasprintf(&xx);
8417
8418; return 0; }
8419EOF
8420if { (eval echo configure:8421: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8421 rm -rf conftest*
8422 eval "ac_cv_func_vasprintf_noproto=yes"
8423else
8424 echo "configure: failed program was:" >&5
8425 cat conftest.$ac_ext >&5
8426 rm -rf conftest*
8427 eval "ac_cv_func_vasprintf_noproto=no"
8428fi
8429rm -f conftest*
8430fi
8431
8432echo "$ac_t""$ac_cv_func_vasprintf_noproto" 1>&6
8433
8434if test "$ac_cv_func_vasprintf_noproto" = yes; then
8435 cat >> confdefs.h <<\EOF
8436#define NEED_VASPRINTF_PROTO 1
8437EOF
8438
8439fi
8440
8441fi
8442fi
8443if test "$ac_cv_func_asnprintf" = yes; then
8444
8445if test "$ac_cv_func_asnprintf+set" != set -o "$ac_cv_func_asnprintf" = yes; then
8446echo $ac_n "checking if asnprintf needs a prototype""... $ac_c" 1>&6
8447echo "configure:8448: checking if asnprintf needs a prototype" >&5
8448if eval "test \"`echo '$''{'ac_cv_func_asnprintf_noproto'+set}'`\" = set"; then
8449 echo $ac_n "(cached) $ac_c" 1>&6
8450else
8451 cat > conftest.$ac_ext <<EOF
8452#line 8453 "configure"
8453#include "confdefs.h"
8454
8455#include <stdio.h>
8456#include <string.h>
8457int main() {
8458struct foo { int foo; } xx;
8459extern int asnprintf (struct foo*);
8460asnprintf(&xx);
8461
8462; return 0; }
8463EOF
8464if { (eval echo configure:8465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8465 rm -rf conftest*
8466 eval "ac_cv_func_asnprintf_noproto=yes"
8467else
8468 echo "configure: failed program was:" >&5
8469 cat conftest.$ac_ext >&5
8470 rm -rf conftest*
8471 eval "ac_cv_func_asnprintf_noproto=no"
8472fi
8473rm -f conftest*
8474fi
8475
8476echo "$ac_t""$ac_cv_func_asnprintf_noproto" 1>&6
8477
8478if test "$ac_cv_func_asnprintf_noproto" = yes; then
8479 cat >> confdefs.h <<\EOF
8480#define NEED_ASNPRINTF_PROTO 1
8481EOF
8482
8483fi
8484
8485fi
8486fi
8487if test "$ac_cv_func_vasnprintf" = yes; then
8488
8489if test "$ac_cv_func_vasnprintf+set" != set -o "$ac_cv_func_vasnprintf" = yes; then
8490echo $ac_n "checking if vasnprintf needs a prototype""... $ac_c" 1>&6
8491echo "configure:8492: checking if vasnprintf needs a prototype" >&5
8492if eval "test \"`echo '$''{'ac_cv_func_vasnprintf_noproto'+set}'`\" = set"; then
8493 echo $ac_n "(cached) $ac_c" 1>&6
8494else
8495 cat > conftest.$ac_ext <<EOF
8496#line 8497 "configure"
8497#include "confdefs.h"
8498
8499#include <stdio.h>
8500#include <string.h>
8501int main() {
8502struct foo { int foo; } xx;
8503extern int vasnprintf (struct foo*);
8504vasnprintf(&xx);
8505
8506; return 0; }
8507EOF
8508if { (eval echo configure:8509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8509 rm -rf conftest*
8510 eval "ac_cv_func_vasnprintf_noproto=yes"
8511else
8512 echo "configure: failed program was:" >&5
8513 cat conftest.$ac_ext >&5
8514 rm -rf conftest*
8515 eval "ac_cv_func_vasnprintf_noproto=no"
8516fi
8517rm -f conftest*
8518fi
8519
8520echo "$ac_t""$ac_cv_func_vasnprintf_noproto" 1>&6
8521
8522if test "$ac_cv_func_vasnprintf_noproto" = yes; then
8523 cat >> confdefs.h <<\EOF
8524#define NEED_VASNPRINTF_PROTO 1
8525EOF
8526
8527fi
8528
8529fi
8530fi
8531
8532for ac_func in chown copyhostent daemon err errx fchown flock fnmatch
8533do
8534echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8535echo "configure:8536: checking for $ac_func" >&5
8536if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8537 echo $ac_n "(cached) $ac_c" 1>&6
8538else
8539 cat > conftest.$ac_ext <<EOF
8540#line 8541 "configure"
8541#include "confdefs.h"
8542/* System header to define __stub macros and hopefully few prototypes,
8543 which can conflict with char $ac_func(); below. */
8544#include <assert.h>
8545/* Override any gcc2 internal prototype to avoid an error. */
8546/* We use char because int might match the return type of a gcc2
8547 builtin and then its argument prototype would still apply. */
8548char $ac_func();
8549
8550int main() {
8551
8552/* The GNU C library defines this for functions which it implements
8553 to always fail with ENOSYS. Some functions are actually named
8554 something starting with __ and the normal name is an alias. */
8555#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8556choke me
8557#else
8558$ac_func();
8559#endif
8560
8561; return 0; }
8562EOF
8563if { (eval echo configure:8564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8564 rm -rf conftest*
8565 eval "ac_cv_func_$ac_func=yes"
8566else
8567 echo "configure: failed program was:" >&5
8568 cat conftest.$ac_ext >&5
8569 rm -rf conftest*
8570 eval "ac_cv_func_$ac_func=no"
8571fi
8572rm -f conftest*
8573fi
8574
8575if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8576 echo "$ac_t""yes" 1>&6
8577
8578ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
8579cat >> confdefs.h <<EOF
8580#define $ac_tr_func 1
8581EOF
8582
8583else
8584 echo "$ac_t""no" 1>&6
8585LIBOBJS="$LIBOBJS ${ac_func}.o"
8586fi
8587
8588: << END
8589@@@funcs="$funcs chown copyhostent daemon err errx fchown flock fnmatch"@@@
8590END
8591done
8592
8593for ac_func in freeaddrinfo freehostent gai_strerror getaddrinfo
8594do
8595echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8596echo "configure:8597: checking for $ac_func" >&5
8597if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8598 echo $ac_n "(cached) $ac_c" 1>&6
8599else
8600 cat > conftest.$ac_ext <<EOF
8601#line 8602 "configure"
8602#include "confdefs.h"
8603/* System header to define __stub macros and hopefully few prototypes,
8604 which can conflict with char $ac_func(); below. */
8605#include <assert.h>
8606/* Override any gcc2 internal prototype to avoid an error. */
8607/* We use char because int might match the return type of a gcc2
8608 builtin and then its argument prototype would still apply. */
8609char $ac_func();
8610
8611int main() {
8612
8613/* The GNU C library defines this for functions which it implements
8614 to always fail with ENOSYS. Some functions are actually named
8615 something starting with __ and the normal name is an alias. */
8616#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8617choke me
8618#else
8619$ac_func();
8620#endif
8621
8622; return 0; }
8623EOF
8624if { (eval echo configure:8625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8625 rm -rf conftest*
8626 eval "ac_cv_func_$ac_func=yes"
8627else
8628 echo "configure: failed program was:" >&5
8629 cat conftest.$ac_ext >&5
8630 rm -rf conftest*
8631 eval "ac_cv_func_$ac_func=no"
8632fi
8633rm -f conftest*
8634fi
8635
8636if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8637 echo "$ac_t""yes" 1>&6
8638
8639ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
8640cat >> confdefs.h <<EOF
8641#define $ac_tr_func 1
8642EOF
8643
8644else
8645 echo "$ac_t""no" 1>&6
8646LIBOBJS="$LIBOBJS ${ac_func}.o"
8647fi
8648
8649: << END
8650@@@funcs="$funcs freeaddrinfo freehostent gai_strerror getaddrinfo"@@@
8651END
8652done
8653
8654for ac_func in getcwd getdtablesize gethostname getipnodebyaddr getipnodebyname
8655do
8656echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8657echo "configure:8658: checking for $ac_func" >&5
8658if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8659 echo $ac_n "(cached) $ac_c" 1>&6
8660else
8661 cat > conftest.$ac_ext <<EOF
8662#line 8663 "configure"
8663#include "confdefs.h"
8664/* System header to define __stub macros and hopefully few prototypes,
8665 which can conflict with char $ac_func(); below. */
8666#include <assert.h>
8667/* Override any gcc2 internal prototype to avoid an error. */
8668/* We use char because int might match the return type of a gcc2
8669 builtin and then its argument prototype would still apply. */
8670char $ac_func();
8671
8672int main() {
8673
8674/* The GNU C library defines this for functions which it implements
8675 to always fail with ENOSYS. Some functions are actually named
8676 something starting with __ and the normal name is an alias. */
8677#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8678choke me
8679#else
8680$ac_func();
8681#endif
8682
8683; return 0; }
8684EOF
8685if { (eval echo configure:8686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8686 rm -rf conftest*
8687 eval "ac_cv_func_$ac_func=yes"
8688else
8689 echo "configure: failed program was:" >&5
8690 cat conftest.$ac_ext >&5
8691 rm -rf conftest*
8692 eval "ac_cv_func_$ac_func=no"
8693fi
8694rm -f conftest*
8695fi
8696
8697if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8698 echo "$ac_t""yes" 1>&6
8699
8700ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
8701cat >> confdefs.h <<EOF
8702#define $ac_tr_func 1
8703EOF
8704
8705else
8706 echo "$ac_t""no" 1>&6
8707LIBOBJS="$LIBOBJS ${ac_func}.o"
8708fi
8709
8710: << END
8711@@@funcs="$funcs getcwd getdtablesize gethostname getipnodebyaddr getipnodebyname"@@@
8712END
8713done
8714
8715for ac_func in geteuid getgid getegid
8716do
8717echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8718echo "configure:8719: checking for $ac_func" >&5
8719if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8720 echo $ac_n "(cached) $ac_c" 1>&6
8721else
8722 cat > conftest.$ac_ext <<EOF
8723#line 8724 "configure"
8724#include "confdefs.h"
8725/* System header to define __stub macros and hopefully few prototypes,
8726 which can conflict with char $ac_func(); below. */
8727#include <assert.h>
8728/* Override any gcc2 internal prototype to avoid an error. */
8729/* We use char because int might match the return type of a gcc2
8730 builtin and then its argument prototype would still apply. */
8731char $ac_func();
8732
8733int main() {
8734
8735/* The GNU C library defines this for functions which it implements
8736 to always fail with ENOSYS. Some functions are actually named
8737 something starting with __ and the normal name is an alias. */
8738#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8739choke me
8740#else
8741$ac_func();
8742#endif
8743
8744; return 0; }
8745EOF
8746if { (eval echo configure:8747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8747 rm -rf conftest*
8748 eval "ac_cv_func_$ac_func=yes"
8749else
8750 echo "configure: failed program was:" >&5
8751 cat conftest.$ac_ext >&5
8752 rm -rf conftest*
8753 eval "ac_cv_func_$ac_func=no"
8754fi
8755rm -f conftest*
8756fi
8757
8758if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8759 echo "$ac_t""yes" 1>&6
8760
8761ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
8762cat >> confdefs.h <<EOF
8763#define $ac_tr_func 1
8764EOF
8765
8766else
8767 echo "$ac_t""no" 1>&6
8768LIBOBJS="$LIBOBJS ${ac_func}.o"
8769fi
8770
8771: << END
8772@@@funcs="$funcs geteuid getgid getegid"@@@
8773END
8774done
8775
8776for ac_func in getnameinfo getopt getusershell
8777do
8778echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8779echo "configure:8780: checking for $ac_func" >&5
8780if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8781 echo $ac_n "(cached) $ac_c" 1>&6
8782else
8783 cat > conftest.$ac_ext <<EOF
8784#line 8785 "configure"
8785#include "confdefs.h"
8786/* System header to define __stub macros and hopefully few prototypes,
8787 which can conflict with char $ac_func(); below. */
8788#include <assert.h>
8789/* Override any gcc2 internal prototype to avoid an error. */
8790/* We use char because int might match the return type of a gcc2
8791 builtin and then its argument prototype would still apply. */
8792char $ac_func();
8793
8794int main() {
8795
8796/* The GNU C library defines this for functions which it implements
8797 to always fail with ENOSYS. Some functions are actually named
8798 something starting with __ and the normal name is an alias. */
8799#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8800choke me
8801#else
8802$ac_func();
8803#endif
8804
8805; return 0; }
8806EOF
8807if { (eval echo configure:8808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8808 rm -rf conftest*
8809 eval "ac_cv_func_$ac_func=yes"
8810else
8811 echo "configure: failed program was:" >&5
8812 cat conftest.$ac_ext >&5
8813 rm -rf conftest*
8814 eval "ac_cv_func_$ac_func=no"
8815fi
8816rm -f conftest*
8817fi
8818
8819if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8820 echo "$ac_t""yes" 1>&6
8821
8822ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
8823cat >> confdefs.h <<EOF
8824#define $ac_tr_func 1
8825EOF
8826
8827else
8828 echo "$ac_t""no" 1>&6
8829LIBOBJS="$LIBOBJS ${ac_func}.o"
8830fi
8831
8832: << END
8833@@@funcs="$funcs getnameinfo getopt getusershell"@@@
8834END
8835done
8836
8837for ac_func in inet_aton inet_ntop inet_pton initgroups innetgr iruserok lstat
8838do
8839echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8840echo "configure:8841: checking for $ac_func" >&5
8841if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8842 echo $ac_n "(cached) $ac_c" 1>&6
8843else
8844 cat > conftest.$ac_ext <<EOF
8845#line 8846 "configure"
8846#include "confdefs.h"
8847/* System header to define __stub macros and hopefully few prototypes,
8848 which can conflict with char $ac_func(); below. */
8849#include <assert.h>
8850/* Override any gcc2 internal prototype to avoid an error. */
8851/* We use char because int might match the return type of a gcc2
8852 builtin and then its argument prototype would still apply. */
8853char $ac_func();
8854
8855int main() {
8856
8857/* The GNU C library defines this for functions which it implements
8858 to always fail with ENOSYS. Some functions are actually named
8859 something starting with __ and the normal name is an alias. */
8860#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8861choke me
8862#else
8863$ac_func();
8864#endif
8865
8866; return 0; }
8867EOF
8868if { (eval echo configure:8869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8869 rm -rf conftest*
8870 eval "ac_cv_func_$ac_func=yes"
8871else
8872 echo "configure: failed program was:" >&5
8873 cat conftest.$ac_ext >&5
8874 rm -rf conftest*
8875 eval "ac_cv_func_$ac_func=no"
8876fi
8877rm -f conftest*
8878fi
8879
8880if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8881 echo "$ac_t""yes" 1>&6
8882
8883ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
8884cat >> confdefs.h <<EOF
8885#define $ac_tr_func 1
8886EOF
8887
8888else
8889 echo "$ac_t""no" 1>&6
8890LIBOBJS="$LIBOBJS ${ac_func}.o"
8891fi
8892
8893: << END
8894@@@funcs="$funcs inet_aton inet_ntop inet_pton initgroups innetgr iruserok lstat"@@@
8895END
8896done
8897
8898for ac_func in memmove
8899do
8900echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8901echo "configure:8902: checking for $ac_func" >&5
8902if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8903 echo $ac_n "(cached) $ac_c" 1>&6
8904else
8905 cat > conftest.$ac_ext <<EOF
8906#line 8907 "configure"
8907#include "confdefs.h"
8908/* System header to define __stub macros and hopefully few prototypes,
8909 which can conflict with char $ac_func(); below. */
8910#include <assert.h>
8911/* Override any gcc2 internal prototype to avoid an error. */
8912/* We use char because int might match the return type of a gcc2
8913 builtin and then its argument prototype would still apply. */
8914char $ac_func();
8915
8916int main() {
8917
8918/* The GNU C library defines this for functions which it implements
8919 to always fail with ENOSYS. Some functions are actually named
8920 something starting with __ and the normal name is an alias. */
8921#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8922choke me
8923#else
8924$ac_func();
8925#endif
8926
8927; return 0; }
8928EOF
8929if { (eval echo configure:8930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8930 rm -rf conftest*
8931 eval "ac_cv_func_$ac_func=yes"
8932else
8933 echo "configure: failed program was:" >&5
8934 cat conftest.$ac_ext >&5
8935 rm -rf conftest*
8936 eval "ac_cv_func_$ac_func=no"
8937fi
8938rm -f conftest*
8939fi
8940
8941if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8942 echo "$ac_t""yes" 1>&6
8943
8944ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
8945cat >> confdefs.h <<EOF
8946#define $ac_tr_func 1
8947EOF
8948
8949else
8950 echo "$ac_t""no" 1>&6
8951LIBOBJS="$LIBOBJS ${ac_func}.o"
8952fi
8953
8954: << END
8955@@@funcs="$funcs memmove"@@@
8956END
8957done
8958
8959for ac_func in mkstemp putenv rcmd readv recvmsg sendmsg setegid setenv seteuid
8960do
8961echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8962echo "configure:8963: checking for $ac_func" >&5
8963if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8964 echo $ac_n "(cached) $ac_c" 1>&6
8965else
8966 cat > conftest.$ac_ext <<EOF
8967#line 8968 "configure"
8968#include "confdefs.h"
8969/* System header to define __stub macros and hopefully few prototypes,
8970 which can conflict with char $ac_func(); below. */
8971#include <assert.h>
8972/* Override any gcc2 internal prototype to avoid an error. */
8973/* We use char because int might match the return type of a gcc2
8974 builtin and then its argument prototype would still apply. */
8975char $ac_func();
8976
8977int main() {
8978
8979/* The GNU C library defines this for functions which it implements
8980 to always fail with ENOSYS. Some functions are actually named
8981 something starting with __ and the normal name is an alias. */
8982#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8983choke me
8984#else
8985$ac_func();
8986#endif
8987
8988; return 0; }
8989EOF
8990if { (eval echo configure:8991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8991 rm -rf conftest*
8992 eval "ac_cv_func_$ac_func=yes"
8993else
8994 echo "configure: failed program was:" >&5
8995 cat conftest.$ac_ext >&5
8996 rm -rf conftest*
8997 eval "ac_cv_func_$ac_func=no"
8998fi
8999rm -f conftest*
9000fi
9001
9002if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9003 echo "$ac_t""yes" 1>&6
9004
9005ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
9006cat >> confdefs.h <<EOF
9007#define $ac_tr_func 1
9008EOF
9009
9010else
9011 echo "$ac_t""no" 1>&6
9012LIBOBJS="$LIBOBJS ${ac_func}.o"
9013fi
9014
9015: << END
9016@@@funcs="$funcs mkstemp putenv rcmd readv recvmsg sendmsg setegid setenv seteuid"@@@
9017END
9018done
9019
9020for ac_func in strcasecmp strncasecmp strdup strerror strftime
9021do
9022echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9023echo "configure:9024: checking for $ac_func" >&5
9024if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9025 echo $ac_n "(cached) $ac_c" 1>&6
9026else
9027 cat > conftest.$ac_ext <<EOF
9028#line 9029 "configure"
9029#include "confdefs.h"
9030/* System header to define __stub macros and hopefully few prototypes,
9031 which can conflict with char $ac_func(); below. */
9032#include <assert.h>
9033/* Override any gcc2 internal prototype to avoid an error. */
9034/* We use char because int might match the return type of a gcc2
9035 builtin and then its argument prototype would still apply. */
9036char $ac_func();
9037
9038int main() {
9039
9040/* The GNU C library defines this for functions which it implements
9041 to always fail with ENOSYS. Some functions are actually named
9042 something starting with __ and the normal name is an alias. */
9043#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9044choke me
9045#else
9046$ac_func();
9047#endif
9048
9049; return 0; }
9050EOF
9051if { (eval echo configure:9052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9052 rm -rf conftest*
9053 eval "ac_cv_func_$ac_func=yes"
9054else
9055 echo "configure: failed program was:" >&5
9056 cat conftest.$ac_ext >&5
9057 rm -rf conftest*
9058 eval "ac_cv_func_$ac_func=no"
9059fi
9060rm -f conftest*
9061fi
9062
9063if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9064 echo "$ac_t""yes" 1>&6
9065
9066ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
9067cat >> confdefs.h <<EOF
9068#define $ac_tr_func 1
9069EOF
9070
9071else
9072 echo "$ac_t""no" 1>&6
9073LIBOBJS="$LIBOBJS ${ac_func}.o"
9074fi
9075
9076: << END
9077@@@funcs="$funcs strcasecmp strncasecmp strdup strerror strftime"@@@
9078END
9079done
9080
9081for ac_func in strlcat strlcpy strlwr
9082do
9083echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9084echo "configure:9085: checking for $ac_func" >&5
9085if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9086 echo $ac_n "(cached) $ac_c" 1>&6
9087else
9088 cat > conftest.$ac_ext <<EOF
9089#line 9090 "configure"
9090#include "confdefs.h"
9091/* System header to define __stub macros and hopefully few prototypes,
9092 which can conflict with char $ac_func(); below. */
9093#include <assert.h>
9094/* Override any gcc2 internal prototype to avoid an error. */
9095/* We use char because int might match the return type of a gcc2
9096 builtin and then its argument prototype would still apply. */
9097char $ac_func();
9098
9099int main() {
9100
9101/* The GNU C library defines this for functions which it implements
9102 to always fail with ENOSYS. Some functions are actually named
9103 something starting with __ and the normal name is an alias. */
9104#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9105choke me
9106#else
9107$ac_func();
9108#endif
9109
9110; return 0; }
9111EOF
9112if { (eval echo configure:9113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9113 rm -rf conftest*
9114 eval "ac_cv_func_$ac_func=yes"
9115else
9116 echo "configure: failed program was:" >&5
9117 cat conftest.$ac_ext >&5
9118 rm -rf conftest*
9119 eval "ac_cv_func_$ac_func=no"
9120fi
9121rm -f conftest*
9122fi
9123
9124if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9125 echo "$ac_t""yes" 1>&6
9126
9127ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
9128cat >> confdefs.h <<EOF
9129#define $ac_tr_func 1
9130EOF
9131
9132else
9133 echo "$ac_t""no" 1>&6
9134LIBOBJS="$LIBOBJS ${ac_func}.o"
9135fi
9136
9137: << END
9138@@@funcs="$funcs strlcat strlcpy strlwr"@@@
9139END
9140done
9141
9142for ac_func in strndup strnlen strptime strsep strtok_r strupr
9143do
9144echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9145echo "configure:9146: checking for $ac_func" >&5
9146if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9147 echo $ac_n "(cached) $ac_c" 1>&6
9148else
9149 cat > conftest.$ac_ext <<EOF
9150#line 9151 "configure"
9151#include "confdefs.h"
9152/* System header to define __stub macros and hopefully few prototypes,
9153 which can conflict with char $ac_func(); below. */
9154#include <assert.h>
9155/* Override any gcc2 internal prototype to avoid an error. */
9156/* We use char because int might match the return type of a gcc2
9157 builtin and then its argument prototype would still apply. */
9158char $ac_func();
9159
9160int main() {
9161
9162/* The GNU C library defines this for functions which it implements
9163 to always fail with ENOSYS. Some functions are actually named
9164 something starting with __ and the normal name is an alias. */
9165#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9166choke me
9167#else
9168$ac_func();
9169#endif
9170
9171; return 0; }
9172EOF
9173if { (eval echo configure:9174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9174 rm -rf conftest*
9175 eval "ac_cv_func_$ac_func=yes"
9176else
9177 echo "configure: failed program was:" >&5
9178 cat conftest.$ac_ext >&5
9179 rm -rf conftest*
9180 eval "ac_cv_func_$ac_func=no"
9181fi
9182rm -f conftest*
9183fi
9184
9185if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9186 echo "$ac_t""yes" 1>&6
9187
9188ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
9189cat >> confdefs.h <<EOF
9190#define $ac_tr_func 1
9191EOF
9192
9193else
9194 echo "$ac_t""no" 1>&6
9195LIBOBJS="$LIBOBJS ${ac_func}.o"
9196fi
9197
9198: << END
9199@@@funcs="$funcs strndup strnlen strptime strsep strtok_r strupr"@@@
9200END
9201done
9202
9203for ac_func in swab unsetenv verr verrx vsyslog
9204do
9205echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9206echo "configure:9207: checking for $ac_func" >&5
9207if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9208 echo $ac_n "(cached) $ac_c" 1>&6
9209else
9210 cat > conftest.$ac_ext <<EOF
9211#line 9212 "configure"
9212#include "confdefs.h"
9213/* System header to define __stub macros and hopefully few prototypes,
9214 which can conflict with char $ac_func(); below. */
9215#include <assert.h>
9216/* Override any gcc2 internal prototype to avoid an error. */
9217/* We use char because int might match the return type of a gcc2
9218 builtin and then its argument prototype would still apply. */
9219char $ac_func();
9220
9221int main() {
9222
9223/* The GNU C library defines this for functions which it implements
9224 to always fail with ENOSYS. Some functions are actually named
9225 something starting with __ and the normal name is an alias. */
9226#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9227choke me
9228#else
9229$ac_func();
9230#endif
9231
9232; return 0; }
9233EOF
9234if { (eval echo configure:9235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9235 rm -rf conftest*
9236 eval "ac_cv_func_$ac_func=yes"
9237else
9238 echo "configure: failed program was:" >&5
9239 cat conftest.$ac_ext >&5
9240 rm -rf conftest*
9241 eval "ac_cv_func_$ac_func=no"
9242fi
9243rm -f conftest*
9244fi
9245
9246if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9247 echo "$ac_t""yes" 1>&6
9248
9249ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
9250cat >> confdefs.h <<EOF
9251#define $ac_tr_func 1
9252EOF
9253
9254else
9255 echo "$ac_t""no" 1>&6
9256LIBOBJS="$LIBOBJS ${ac_func}.o"
9257fi
9258
9259: << END
9260@@@funcs="$funcs swab unsetenv verr verrx vsyslog"@@@
9261END
9262done
9263
9264for ac_func in vwarn vwarnx warn warnx writev
9265do
9266echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9267echo "configure:9268: checking for $ac_func" >&5
9268if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9269 echo $ac_n "(cached) $ac_c" 1>&6
9270else
9271 cat > conftest.$ac_ext <<EOF
9272#line 9273 "configure"
9273#include "confdefs.h"
9274/* System header to define __stub macros and hopefully few prototypes,
9275 which can conflict with char $ac_func(); below. */
9276#include <assert.h>
9277/* Override any gcc2 internal prototype to avoid an error. */
9278/* We use char because int might match the return type of a gcc2
9279 builtin and then its argument prototype would still apply. */
9280char $ac_func();
9281
9282int main() {
9283
9284/* The GNU C library defines this for functions which it implements
9285 to always fail with ENOSYS. Some functions are actually named
9286 something starting with __ and the normal name is an alias. */
9287#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9288choke me
9289#else
9290$ac_func();
9291#endif
9292
9293; return 0; }
9294EOF
9295if { (eval echo configure:9296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9296 rm -rf conftest*
9297 eval "ac_cv_func_$ac_func=yes"
9298else
9299 echo "configure: failed program was:" >&5
9300 cat conftest.$ac_ext >&5
9301 rm -rf conftest*
9302 eval "ac_cv_func_$ac_func=no"
9303fi
9304rm -f conftest*
9305fi
9306
9307if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9308 echo "$ac_t""yes" 1>&6
9309
9310ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
9311cat >> confdefs.h <<EOF
9312#define $ac_tr_func 1
9313EOF
9314
9315else
9316 echo "$ac_t""no" 1>&6
9317LIBOBJS="$LIBOBJS ${ac_func}.o"
9318fi
9319
9320: << END
9321@@@funcs="$funcs vwarn vwarnx warn warnx writev"@@@
9322END
9323done
9324
9325
9326
9327if test "$ac_cv_func_setenv+set" != set -o "$ac_cv_func_setenv" = yes; then
9328echo $ac_n "checking if setenv needs a prototype""... $ac_c" 1>&6
9329echo "configure:9330: checking if setenv needs a prototype" >&5
9330if eval "test \"`echo '$''{'ac_cv_func_setenv_noproto'+set}'`\" = set"; then
9331 echo $ac_n "(cached) $ac_c" 1>&6
9332else
9333 cat > conftest.$ac_ext <<EOF
9334#line 9335 "configure"
9335#include "confdefs.h"
9336#include <stdlib.h>
9337int main() {
9338struct foo { int foo; } xx;
9339extern int setenv (struct foo*);
9340setenv(&xx);
9341
9342; return 0; }
9343EOF
9344if { (eval echo configure:9345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9345 rm -rf conftest*
9346 eval "ac_cv_func_setenv_noproto=yes"
9347else
9348 echo "configure: failed program was:" >&5
9349 cat conftest.$ac_ext >&5
9350 rm -rf conftest*
9351 eval "ac_cv_func_setenv_noproto=no"
9352fi
9353rm -f conftest*
9354fi
9355
9356echo "$ac_t""$ac_cv_func_setenv_noproto" 1>&6
9357
9358if test "$ac_cv_func_setenv_noproto" = yes; then
9359 cat >> confdefs.h <<\EOF
9360#define NEED_SETENV_PROTO 1
9361EOF
9362
9363fi
9364
9365fi
9366
9367
9368if test "$ac_cv_func_unsetenv+set" != set -o "$ac_cv_func_unsetenv" = yes; then
9369echo $ac_n "checking if unsetenv needs a prototype""... $ac_c" 1>&6
9370echo "configure:9371: checking if unsetenv needs a prototype" >&5
9371if eval "test \"`echo '$''{'ac_cv_func_unsetenv_noproto'+set}'`\" = set"; then
9372 echo $ac_n "(cached) $ac_c" 1>&6
9373else
9374 cat > conftest.$ac_ext <<EOF
9375#line 9376 "configure"
9376#include "confdefs.h"
9377#include <stdlib.h>
9378int main() {
9379struct foo { int foo; } xx;
9380extern int unsetenv (struct foo*);
9381unsetenv(&xx);
9382
9383; return 0; }
9384EOF
9385if { (eval echo configure:9386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9386 rm -rf conftest*
9387 eval "ac_cv_func_unsetenv_noproto=yes"
9388else
9389 echo "configure: failed program was:" >&5
9390 cat conftest.$ac_ext >&5
9391 rm -rf conftest*
9392 eval "ac_cv_func_unsetenv_noproto=no"
9393fi
9394rm -f conftest*
9395fi
9396
9397echo "$ac_t""$ac_cv_func_unsetenv_noproto" 1>&6
9398
9399if test "$ac_cv_func_unsetenv_noproto" = yes; then
9400 cat >> confdefs.h <<\EOF
9401#define NEED_UNSETENV_PROTO 1
9402EOF
9403
9404fi
9405
9406fi
9407
9408
9409if test "$ac_cv_func_gethostname+set" != set -o "$ac_cv_func_gethostname" = yes; then
9410echo $ac_n "checking if gethostname needs a prototype""... $ac_c" 1>&6
9411echo "configure:9412: checking if gethostname needs a prototype" >&5
9412if eval "test \"`echo '$''{'ac_cv_func_gethostname_noproto'+set}'`\" = set"; then
9413 echo $ac_n "(cached) $ac_c" 1>&6
9414else
9415 cat > conftest.$ac_ext <<EOF
9416#line 9417 "configure"
9417#include "confdefs.h"
9418#include <unistd.h>
9419int main() {
9420struct foo { int foo; } xx;
9421extern int gethostname (struct foo*);
9422gethostname(&xx);
9423
9424; return 0; }
9425EOF
9426if { (eval echo configure:9427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9427 rm -rf conftest*
9428 eval "ac_cv_func_gethostname_noproto=yes"
9429else
9430 echo "configure: failed program was:" >&5
9431 cat conftest.$ac_ext >&5
9432 rm -rf conftest*
9433 eval "ac_cv_func_gethostname_noproto=no"
9434fi
9435rm -f conftest*
9436fi
9437
9438echo "$ac_t""$ac_cv_func_gethostname_noproto" 1>&6
9439
9440if test "$ac_cv_func_gethostname_noproto" = yes; then
9441 cat >> confdefs.h <<\EOF
9442#define NEED_GETHOSTNAME_PROTO 1
9443EOF
9444
9445fi
9446
9447fi
9448
9449
9450if test "$ac_cv_func_mkstemp+set" != set -o "$ac_cv_func_mkstemp" = yes; then
9451echo $ac_n "checking if mkstemp needs a prototype""... $ac_c" 1>&6
9452echo "configure:9453: checking if mkstemp needs a prototype" >&5
9453if eval "test \"`echo '$''{'ac_cv_func_mkstemp_noproto'+set}'`\" = set"; then
9454 echo $ac_n "(cached) $ac_c" 1>&6
9455else
9456 cat > conftest.$ac_ext <<EOF
9457#line 9458 "configure"
9458#include "confdefs.h"
9459#include <unistd.h>
9460int main() {
9461struct foo { int foo; } xx;
9462extern int mkstemp (struct foo*);
9463mkstemp(&xx);
9464
9465; return 0; }
9466EOF
9467if { (eval echo configure:9468: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9468 rm -rf conftest*
9469 eval "ac_cv_func_mkstemp_noproto=yes"
9470else
9471 echo "configure: failed program was:" >&5
9472 cat conftest.$ac_ext >&5
9473 rm -rf conftest*
9474 eval "ac_cv_func_mkstemp_noproto=no"
9475fi
9476rm -f conftest*
9477fi
9478
9479echo "$ac_t""$ac_cv_func_mkstemp_noproto" 1>&6
9480
9481if test "$ac_cv_func_mkstemp_noproto" = yes; then
9482 cat >> confdefs.h <<\EOF
9483#define NEED_MKSTEMP_PROTO 1
9484EOF
9485
9486fi
9487
9488fi
9489
9490
9491if test "$ac_cv_func_getusershell+set" != set -o "$ac_cv_func_getusershell" = yes; then
9492echo $ac_n "checking if getusershell needs a prototype""... $ac_c" 1>&6
9493echo "configure:9494: checking if getusershell needs a prototype" >&5
9494if eval "test \"`echo '$''{'ac_cv_func_getusershell_noproto'+set}'`\" = set"; then
9495 echo $ac_n "(cached) $ac_c" 1>&6
9496else
9497 cat > conftest.$ac_ext <<EOF
9498#line 9499 "configure"
9499#include "confdefs.h"
9500#include <unistd.h>
9501int main() {
9502struct foo { int foo; } xx;
9503extern int getusershell (struct foo*);
9504getusershell(&xx);
9505
9506; return 0; }
9507EOF
9508if { (eval echo configure:9509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9509 rm -rf conftest*
9510 eval "ac_cv_func_getusershell_noproto=yes"
9511else
9512 echo "configure: failed program was:" >&5
9513 cat conftest.$ac_ext >&5
9514 rm -rf conftest*
9515 eval "ac_cv_func_getusershell_noproto=no"
9516fi
9517rm -f conftest*
9518fi
9519
9520echo "$ac_t""$ac_cv_func_getusershell_noproto" 1>&6
9521
9522if test "$ac_cv_func_getusershell_noproto" = yes; then
9523 cat >> confdefs.h <<\EOF
9524#define NEED_GETUSERSHELL_PROTO 1
9525EOF
9526
9527fi
9528
9529fi
9530
9531
9532
9533if test "$ac_cv_func_inet_aton+set" != set -o "$ac_cv_func_inet_aton" = yes; then
9534echo $ac_n "checking if inet_aton needs a prototype""... $ac_c" 1>&6
9535echo "configure:9536: checking if inet_aton needs a prototype" >&5
9536if eval "test \"`echo '$''{'ac_cv_func_inet_aton_noproto'+set}'`\" = set"; then
9537 echo $ac_n "(cached) $ac_c" 1>&6
9538else
9539 cat > conftest.$ac_ext <<EOF
9540#line 9541 "configure"
9541#include "confdefs.h"
9542
9543#ifdef HAVE_SYS_TYPES_H
9544#include <sys/types.h>
9545#endif
9546#ifdef HAVE_SYS_SOCKET_H
9547#include <sys/socket.h>
9548#endif
9549#ifdef HAVE_NETINET_IN_H
9550#include <netinet/in.h>
9551#endif
9552#ifdef HAVE_ARPA_INET_H
9553#include <arpa/inet.h>
9554#endif
9555int main() {
9556struct foo { int foo; } xx;
9557extern int inet_aton (struct foo*);
9558inet_aton(&xx);
9559
9560; return 0; }
9561EOF
9562if { (eval echo configure:9563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9563 rm -rf conftest*
9564 eval "ac_cv_func_inet_aton_noproto=yes"
9565else
9566 echo "configure: failed program was:" >&5
9567 cat conftest.$ac_ext >&5
9568 rm -rf conftest*
9569 eval "ac_cv_func_inet_aton_noproto=no"
9570fi
9571rm -f conftest*
9572fi
9573
9574echo "$ac_t""$ac_cv_func_inet_aton_noproto" 1>&6
9575
9576if test "$ac_cv_func_inet_aton_noproto" = yes; then
9577 cat >> confdefs.h <<\EOF
9578#define NEED_INET_ATON_PROTO 1
9579EOF
9580
9581fi
9582
9583fi
9584
9585
9586
9587
9588
9589echo $ac_n "checking for crypt""... $ac_c" 1>&6
9590echo "configure:9591: checking for crypt" >&5
9591if eval "test \"`echo '$''{'ac_cv_funclib_crypt'+set}'`\" = set"; then
9592 echo $ac_n "(cached) $ac_c" 1>&6
9593else
9594
9595if eval "test \"\$ac_cv_func_crypt\" != yes" ; then
9596 ac_save_LIBS="$LIBS"
9597 for ac_lib in "" crypt; do
9598 if test -n "$ac_lib"; then
9599 ac_lib="-l$ac_lib"
9600 else
9601 ac_lib=""
9602 fi
9603 LIBS=" $ac_lib $ac_save_LIBS"
9604 cat > conftest.$ac_ext <<EOF
9605#line 9606 "configure"
9606#include "confdefs.h"
9607
9608int main() {
9609crypt()
9610; return 0; }
9611EOF
9612if { (eval echo configure:9613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9613 rm -rf conftest*
9614 eval "if test -n \"$ac_lib\";then ac_cv_funclib_crypt=$ac_lib; else ac_cv_funclib_crypt=yes; fi";break
9615else
9616 echo "configure: failed program was:" >&5
9617 cat conftest.$ac_ext >&5
9618fi
9619rm -f conftest*
9620 done
9621 eval "ac_cv_funclib_crypt=\${ac_cv_funclib_crypt-no}"
9622 LIBS="$ac_save_LIBS"
9623fi
9624
9625fi
9626
9627
9628eval "ac_res=\$ac_cv_funclib_crypt"
9629
9630: << END
9631@@@funcs="$funcs crypt"@@@
9632@@@libs="$libs "" crypt"@@@
9633END
9634
9635# crypt
9636eval "ac_tr_func=HAVE_`echo crypt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
9637eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
9638eval "LIB_crypt=$ac_res"
9639
9640case "$ac_res" in
9641 yes)
9642 eval "ac_cv_func_crypt=yes"
9643 eval "LIB_crypt="
9644 cat >> confdefs.h <<EOF
9645#define $ac_tr_func 1
9646EOF
9647
9648 echo "$ac_t""yes" 1>&6
9649 ;;
9650 no)
9651 eval "ac_cv_func_crypt=no"
9652 eval "LIB_crypt="
9653 echo "$ac_t""no" 1>&6
9654 ;;
9655 *)
9656 eval "ac_cv_func_crypt=yes"
9657 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
9658 cat >> confdefs.h <<EOF
9659#define $ac_tr_func 1
9660EOF
9661
9662 cat >> confdefs.h <<EOF
9663#define $ac_tr_lib 1
9664EOF
9665
9666 echo "$ac_t""yes, in $ac_res" 1>&6
9667 ;;
9668esac
9669
9670
9671
9672LIB_roken='$(top_builddir)/lib/roken/libroken.la $(LIB_crypt) $(LIB_dbopen)'
9673
9674echo $ac_n "checking if realloc if broken""... $ac_c" 1>&6
9675echo "configure:9676: checking if realloc if broken" >&5
9676if eval "test \"`echo '$''{'ac_cv_func_realloc_broken'+set}'`\" = set"; then
9677 echo $ac_n "(cached) $ac_c" 1>&6
9678else
9679
9680ac_cv_func_realloc_broken=no
9681if test "$cross_compiling" = yes; then
9682 :
9683else
9684 cat > conftest.$ac_ext <<EOF
9685#line 9686 "configure"
9686#include "confdefs.h"
9687
9688#include <stddef.h>
9689#include <stdlib.h>
9690
9691int main()
9692{
9693 return realloc(NULL, 17) == NULL;
9694}
9695
9696EOF
9697if { (eval echo configure:9698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9698then
9699 :
9700else
9701 echo "configure: failed program was:" >&5
9702 cat conftest.$ac_ext >&5
9703 rm -fr conftest*
9704 ac_cv_func_realloc_broken=yes
9705fi
9706rm -fr conftest*
9707fi
9708
9709
9710fi
9711
9712echo "$ac_t""$ac_cv_func_realloc_broken" 1>&6
9713if test "$ac_cv_func_realloc_broken" = yes ; then
9714 cat >> confdefs.h <<\EOF
9715#define BROKEN_REALLOC 1
9716EOF
9717
9718fi
9719
9720
9721
9722
9723echo $ac_n "checking if gethostbyname is compatible with system prototype""... $ac_c" 1>&6
9724echo "configure:9725: checking if gethostbyname is compatible with system prototype" >&5
9725if eval "test \"`echo '$''{'ac_cv_func_gethostbyname_proto_compat'+set}'`\" = set"; then
9726 echo $ac_n "(cached) $ac_c" 1>&6
9727else
9728 cat > conftest.$ac_ext <<EOF
9729#line 9730 "configure"
9730#include "confdefs.h"
9731
9732#ifdef HAVE_SYS_TYPES_H
9733#include <sys/types.h>
9734#endif
9735#ifdef HAVE_SYS_SOCKET_H
9736#include <sys/socket.h>
9737#endif
9738#ifdef HAVE_NETINET_IN_H
9739#include <netinet/in.h>
9740#endif
9741#ifdef HAVE_ARPA_INET_H
9742#include <arpa/inet.h>
9743#endif
9744#ifdef HAVE_NETDB_H
9745#include <netdb.h>
9746#endif
9747
9748int main() {
9749struct hostent *gethostbyname(const char *);
9750; return 0; }
9751EOF
9752if { (eval echo configure:9753: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9753 rm -rf conftest*
9754 eval "ac_cv_func_gethostbyname_proto_compat=yes"
9755else
9756 echo "configure: failed program was:" >&5
9757 cat conftest.$ac_ext >&5
9758 rm -rf conftest*
9759 eval "ac_cv_func_gethostbyname_proto_compat=no"
9760fi
9761rm -f conftest*
9762fi
9763
9764echo "$ac_t""$ac_cv_func_gethostbyname_proto_compat" 1>&6
9765
9766if test "$ac_cv_func_gethostbyname_proto_compat" = yes; then
9767 cat >> confdefs.h <<\EOF
9768#define GETHOSTBYNAME_PROTO_COMPATIBLE 1
9769EOF
9770
9771fi
9772
9773
9774
9775
9776echo $ac_n "checking if gethostbyaddr is compatible with system prototype""... $ac_c" 1>&6
9777echo "configure:9778: checking if gethostbyaddr is compatible with system prototype" >&5
9778if eval "test \"`echo '$''{'ac_cv_func_gethostbyaddr_proto_compat'+set}'`\" = set"; then
9779 echo $ac_n "(cached) $ac_c" 1>&6
9780else
9781 cat > conftest.$ac_ext <<EOF
9782#line 9783 "configure"
9783#include "confdefs.h"
9784
9785#ifdef HAVE_SYS_TYPES_H
9786#include <sys/types.h>
9787#endif
9788#ifdef HAVE_SYS_SOCKET_H
9789#include <sys/socket.h>
9790#endif
9791#ifdef HAVE_NETINET_IN_H
9792#include <netinet/in.h>
9793#endif
9794#ifdef HAVE_ARPA_INET_H
9795#include <arpa/inet.h>
9796#endif
9797#ifdef HAVE_NETDB_H
9798#include <netdb.h>
9799#endif
9800
9801int main() {
9802struct hostent *gethostbyaddr(const void *, size_t, int);
9803; return 0; }
9804EOF
9805if { (eval echo configure:9806: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9806 rm -rf conftest*
9807 eval "ac_cv_func_gethostbyaddr_proto_compat=yes"
9808else
9809 echo "configure: failed program was:" >&5
9810 cat conftest.$ac_ext >&5
9811 rm -rf conftest*
9812 eval "ac_cv_func_gethostbyaddr_proto_compat=no"
9813fi
9814rm -f conftest*
9815fi
9816
9817echo "$ac_t""$ac_cv_func_gethostbyaddr_proto_compat" 1>&6
9818
9819if test "$ac_cv_func_gethostbyaddr_proto_compat" = yes; then
9820 cat >> confdefs.h <<\EOF
9821#define GETHOSTBYADDR_PROTO_COMPATIBLE 1
9822EOF
9823
9824fi
9825
9826
9827
9828
9829echo $ac_n "checking if getservbyname is compatible with system prototype""... $ac_c" 1>&6
9830echo "configure:9831: checking if getservbyname is compatible with system prototype" >&5
9831if eval "test \"`echo '$''{'ac_cv_func_getservbyname_proto_compat'+set}'`\" = set"; then
9832 echo $ac_n "(cached) $ac_c" 1>&6
9833else
9834 cat > conftest.$ac_ext <<EOF
9835#line 9836 "configure"
9836#include "confdefs.h"
9837
9838#ifdef HAVE_SYS_TYPES_H
9839#include <sys/types.h>
9840#endif
9841#ifdef HAVE_SYS_SOCKET_H
9842#include <sys/socket.h>
9843#endif
9844#ifdef HAVE_NETINET_IN_H
9845#include <netinet/in.h>
9846#endif
9847#ifdef HAVE_ARPA_INET_H
9848#include <arpa/inet.h>
9849#endif
9850#ifdef HAVE_NETDB_H
9851#include <netdb.h>
9852#endif
9853
9854int main() {
9855struct servent *getservbyname(const char *, const char *);
9856; return 0; }
9857EOF
9858if { (eval echo configure:9859: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9859 rm -rf conftest*
9860 eval "ac_cv_func_getservbyname_proto_compat=yes"
9861else
9862 echo "configure: failed program was:" >&5
9863 cat conftest.$ac_ext >&5
9864 rm -rf conftest*
9865 eval "ac_cv_func_getservbyname_proto_compat=no"
9866fi
9867rm -f conftest*
9868fi
9869
9870echo "$ac_t""$ac_cv_func_getservbyname_proto_compat" 1>&6
9871
9872if test "$ac_cv_func_getservbyname_proto_compat" = yes; then
9873 cat >> confdefs.h <<\EOF
9874#define GETSERVBYNAME_PROTO_COMPATIBLE 1
9875EOF
9876
9877fi
9878
9879
9880
9881
9882echo $ac_n "checking if openlog is compatible with system prototype""... $ac_c" 1>&6
9883echo "configure:9884: checking if openlog is compatible with system prototype" >&5
9884if eval "test \"`echo '$''{'ac_cv_func_openlog_proto_compat'+set}'`\" = set"; then
9885 echo $ac_n "(cached) $ac_c" 1>&6
9886else
9887 cat > conftest.$ac_ext <<EOF
9888#line 9889 "configure"
9889#include "confdefs.h"
9890
9891#ifdef HAVE_SYSLOG_H
9892#include <syslog.h>
9893#endif
9894
9895int main() {
9896void openlog(const char *, int, int);
9897; return 0; }
9898EOF
9899if { (eval echo configure:9900: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9900 rm -rf conftest*
9901 eval "ac_cv_func_openlog_proto_compat=yes"
9902else
9903 echo "configure: failed program was:" >&5
9904 cat conftest.$ac_ext >&5
9905 rm -rf conftest*
9906 eval "ac_cv_func_openlog_proto_compat=no"
9907fi
9908rm -f conftest*
9909fi
9910
9911echo "$ac_t""$ac_cv_func_openlog_proto_compat" 1>&6
9912
9913if test "$ac_cv_func_openlog_proto_compat" = yes; then
9914 cat >> confdefs.h <<\EOF
9915#define OPENLOG_PROTO_COMPATIBLE 1
9916EOF
9917
9918fi
9919
9920
9921
9922
9923if test "$ac_cv_func_crypt+set" != set -o "$ac_cv_func_crypt" = yes; then
9924echo $ac_n "checking if crypt needs a prototype""... $ac_c" 1>&6
9925echo "configure:9926: checking if crypt needs a prototype" >&5
9926if eval "test \"`echo '$''{'ac_cv_func_crypt_noproto'+set}'`\" = set"; then
9927 echo $ac_n "(cached) $ac_c" 1>&6
9928else
9929 cat > conftest.$ac_ext <<EOF
9930#line 9931 "configure"
9931#include "confdefs.h"
9932
9933#ifdef HAVE_CRYPT_H
9934#include <crypt.h>
9935#endif
9936#ifdef HAVE_UNISTD_H
9937#include <unistd.h>
9938#endif
9939
9940int main() {
9941struct foo { int foo; } xx;
9942extern int crypt (struct foo*);
9943crypt(&xx);
9944
9945; return 0; }
9946EOF
9947if { (eval echo configure:9948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9948 rm -rf conftest*
9949 eval "ac_cv_func_crypt_noproto=yes"
9950else
9951 echo "configure: failed program was:" >&5
9952 cat conftest.$ac_ext >&5
9953 rm -rf conftest*
9954 eval "ac_cv_func_crypt_noproto=no"
9955fi
9956rm -f conftest*
9957fi
9958
9959echo "$ac_t""$ac_cv_func_crypt_noproto" 1>&6
9960
9961if test "$ac_cv_func_crypt_noproto" = yes; then
9962 cat >> confdefs.h <<\EOF
9963#define NEED_CRYPT_PROTO 1
9964EOF
9965
9966fi
9967
9968fi
9969
9970
9971
9972if test "$ac_cv_func_strtok_r+set" != set -o "$ac_cv_func_strtok_r" = yes; then
9973echo $ac_n "checking if strtok_r needs a prototype""... $ac_c" 1>&6
9974echo "configure:9975: checking if strtok_r needs a prototype" >&5
9975if eval "test \"`echo '$''{'ac_cv_func_strtok_r_noproto'+set}'`\" = set"; then
9976 echo $ac_n "(cached) $ac_c" 1>&6
9977else
9978 cat > conftest.$ac_ext <<EOF
9979#line 9980 "configure"
9980#include "confdefs.h"
9981
9982#include <string.h>
9983
9984int main() {
9985struct foo { int foo; } xx;
9986extern int strtok_r (struct foo*);
9987strtok_r(&xx);
9988
9989; return 0; }
9990EOF
9991if { (eval echo configure:9992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9992 rm -rf conftest*
9993 eval "ac_cv_func_strtok_r_noproto=yes"
9994else
9995 echo "configure: failed program was:" >&5
9996 cat conftest.$ac_ext >&5
9997 rm -rf conftest*
9998 eval "ac_cv_func_strtok_r_noproto=no"
9999fi
10000rm -f conftest*
10001fi
10002
10003echo "$ac_t""$ac_cv_func_strtok_r_noproto" 1>&6
10004
10005if test "$ac_cv_func_strtok_r_noproto" = yes; then
10006 cat >> confdefs.h <<\EOF
10007#define NEED_STRTOK_R_PROTO 1
10008EOF
10009
10010fi
10011
10012fi
10013
10014
10015
10016if test "$ac_cv_func_strsep+set" != set -o "$ac_cv_func_strsep" = yes; then
10017echo $ac_n "checking if strsep needs a prototype""... $ac_c" 1>&6
10018echo "configure:10019: checking if strsep needs a prototype" >&5
10019if eval "test \"`echo '$''{'ac_cv_func_strsep_noproto'+set}'`\" = set"; then
10020 echo $ac_n "(cached) $ac_c" 1>&6
10021else
10022 cat > conftest.$ac_ext <<EOF
10023#line 10024 "configure"
10024#include "confdefs.h"
10025
10026#include <string.h>
10027
10028int main() {
10029struct foo { int foo; } xx;
10030extern int strsep (struct foo*);
10031strsep(&xx);
10032
10033; return 0; }
10034EOF
10035if { (eval echo configure:10036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10036 rm -rf conftest*
10037 eval "ac_cv_func_strsep_noproto=yes"
10038else
10039 echo "configure: failed program was:" >&5
10040 cat conftest.$ac_ext >&5
10041 rm -rf conftest*
10042 eval "ac_cv_func_strsep_noproto=no"
10043fi
10044rm -f conftest*
10045fi
10046
10047echo "$ac_t""$ac_cv_func_strsep_noproto" 1>&6
10048
10049if test "$ac_cv_func_strsep_noproto" = yes; then
10050 cat >> confdefs.h <<\EOF
10051#define NEED_STRSEP_PROTO 1
10052EOF
10053
10054fi
10055
10056fi
10057
10058
10059
10060echo $ac_n "checking for h_errno""... $ac_c" 1>&6
10061echo "configure:10062: checking for h_errno" >&5
10062if eval "test \"`echo '$''{'ac_cv_var_h_errno'+set}'`\" = set"; then
10063 echo $ac_n "(cached) $ac_c" 1>&6
10064else
10065
10066cat > conftest.$ac_ext <<EOF
10067#line 10068 "configure"
10068#include "confdefs.h"
10069extern int h_errno;
10070int foo() { return h_errno; }
10071int main() {
10072foo()
10073; return 0; }
10074EOF
10075if { (eval echo configure:10076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10076 rm -rf conftest*
10077 ac_cv_var_h_errno=yes
10078else
10079 echo "configure: failed program was:" >&5
10080 cat conftest.$ac_ext >&5
10081 rm -rf conftest*
10082 ac_cv_var_h_errno=no
10083fi
10084rm -f conftest*
10085
10086fi
10087
10088
10089
10090echo "$ac_t""`eval echo \\$ac_cv_var_h_errno`" 1>&6
10091if test `eval echo \\$ac_cv_var_h_errno` = yes; then
10092 cat >> confdefs.h <<EOF
10093#define HAVE_H_ERRNO 1
10094EOF
10095
10096
10097echo $ac_n "checking if h_errno is properly declared""... $ac_c" 1>&6
10098echo "configure:10099: checking if h_errno is properly declared" >&5
10099if eval "test \"`echo '$''{'ac_cv_var_h_errno_declaration'+set}'`\" = set"; then
10100 echo $ac_n "(cached) $ac_c" 1>&6
10101else
10102
10103cat > conftest.$ac_ext <<EOF
10104#line 10105 "configure"
10105#include "confdefs.h"
10106#ifdef HAVE_SYS_TYPES_H
10107#include <sys/types.h>
10108#endif
10109#ifdef HAVE_NETDB_H
10110#include <netdb.h>
10111#endif
10112extern struct { int foo; } h_errno;
10113int main() {
10114h_errno.foo = 1;
10115; return 0; }
10116EOF
10117if { (eval echo configure:10118: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10118 rm -rf conftest*
10119 eval "ac_cv_var_h_errno_declaration=no"
10120else
10121 echo "configure: failed program was:" >&5
10122 cat conftest.$ac_ext >&5
10123 rm -rf conftest*
10124 eval "ac_cv_var_h_errno_declaration=yes"
10125fi
10126rm -f conftest*
10127
10128fi
10129
10130
10131
10132
10133echo "$ac_t""$ac_cv_var_h_errno_declaration" 1>&6
10134if eval "test \"\$ac_cv_var_h_errno_declaration\" = yes"; then
10135 cat >> confdefs.h <<\EOF
10136#define HAVE_H_ERRNO_DECLARATION 1
10137EOF
10138
10139fi
10140
10141
10142fi
10143
10144
10145
10146
10147echo $ac_n "checking for h_errlist""... $ac_c" 1>&6
10148echo "configure:10149: checking for h_errlist" >&5
10149if eval "test \"`echo '$''{'ac_cv_var_h_errlist'+set}'`\" = set"; then
10150 echo $ac_n "(cached) $ac_c" 1>&6
10151else
10152
10153cat > conftest.$ac_ext <<EOF
10154#line 10155 "configure"
10155#include "confdefs.h"
10156extern int h_errlist;
10157int foo() { return h_errlist; }
10158int main() {
10159foo()
10160; return 0; }
10161EOF
10162if { (eval echo configure:10163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10163 rm -rf conftest*
10164 ac_cv_var_h_errlist=yes
10165else
10166 echo "configure: failed program was:" >&5
10167 cat conftest.$ac_ext >&5
10168 rm -rf conftest*
10169 ac_cv_var_h_errlist=no
10170fi
10171rm -f conftest*
10172
10173fi
10174
10175
10176
10177echo "$ac_t""`eval echo \\$ac_cv_var_h_errlist`" 1>&6
10178if test `eval echo \\$ac_cv_var_h_errlist` = yes; then
10179 cat >> confdefs.h <<EOF
10180#define HAVE_H_ERRLIST 1
10181EOF
10182
10183
10184echo $ac_n "checking if h_errlist is properly declared""... $ac_c" 1>&6
10185echo "configure:10186: checking if h_errlist is properly declared" >&5
10186if eval "test \"`echo '$''{'ac_cv_var_h_errlist_declaration'+set}'`\" = set"; then
10187 echo $ac_n "(cached) $ac_c" 1>&6
10188else
10189
10190cat > conftest.$ac_ext <<EOF
10191#line 10192 "configure"
10192#include "confdefs.h"
10193#ifdef HAVE_NETDB_H
10194#include <netdb.h>
10195#endif
10196extern struct { int foo; } h_errlist;
10197int main() {
10198h_errlist.foo = 1;
10199; return 0; }
10200EOF
10201if { (eval echo configure:10202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10202 rm -rf conftest*
10203 eval "ac_cv_var_h_errlist_declaration=no"
10204else
10205 echo "configure: failed program was:" >&5
10206 cat conftest.$ac_ext >&5
10207 rm -rf conftest*
10208 eval "ac_cv_var_h_errlist_declaration=yes"
10209fi
10210rm -f conftest*
10211
10212fi
10213
10214
10215
10216
10217echo "$ac_t""$ac_cv_var_h_errlist_declaration" 1>&6
10218if eval "test \"\$ac_cv_var_h_errlist_declaration\" = yes"; then
10219 cat >> confdefs.h <<\EOF
10220#define HAVE_H_ERRLIST_DECLARATION 1
10221EOF
10222
10223fi
10224
10225
10226fi
10227
10228
10229
10230
10231echo $ac_n "checking for h_nerr""... $ac_c" 1>&6
10232echo "configure:10233: checking for h_nerr" >&5
10233if eval "test \"`echo '$''{'ac_cv_var_h_nerr'+set}'`\" = set"; then
10234 echo $ac_n "(cached) $ac_c" 1>&6
10235else
10236
10237cat > conftest.$ac_ext <<EOF
10238#line 10239 "configure"
10239#include "confdefs.h"
10240extern int h_nerr;
10241int foo() { return h_nerr; }
10242int main() {
10243foo()
10244; return 0; }
10245EOF
10246if { (eval echo configure:10247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10247 rm -rf conftest*
10248 ac_cv_var_h_nerr=yes
10249else
10250 echo "configure: failed program was:" >&5
10251 cat conftest.$ac_ext >&5
10252 rm -rf conftest*
10253 ac_cv_var_h_nerr=no
10254fi
10255rm -f conftest*
10256
10257fi
10258
10259
10260
10261echo "$ac_t""`eval echo \\$ac_cv_var_h_nerr`" 1>&6
10262if test `eval echo \\$ac_cv_var_h_nerr` = yes; then
10263 cat >> confdefs.h <<EOF
10264#define HAVE_H_NERR 1
10265EOF
10266
10267
10268echo $ac_n "checking if h_nerr is properly declared""... $ac_c" 1>&6
10269echo "configure:10270: checking if h_nerr is properly declared" >&5
10270if eval "test \"`echo '$''{'ac_cv_var_h_nerr_declaration'+set}'`\" = set"; then
10271 echo $ac_n "(cached) $ac_c" 1>&6
10272else
10273
10274cat > conftest.$ac_ext <<EOF
10275#line 10276 "configure"
10276#include "confdefs.h"
10277#ifdef HAVE_NETDB_H
10278#include <netdb.h>
10279#endif
10280extern struct { int foo; } h_nerr;
10281int main() {
10282h_nerr.foo = 1;
10283; return 0; }
10284EOF
10285if { (eval echo configure:10286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10286 rm -rf conftest*
10287 eval "ac_cv_var_h_nerr_declaration=no"
10288else
10289 echo "configure: failed program was:" >&5
10290 cat conftest.$ac_ext >&5
10291 rm -rf conftest*
10292 eval "ac_cv_var_h_nerr_declaration=yes"
10293fi
10294rm -f conftest*
10295
10296fi
10297
10298
10299
10300
10301echo "$ac_t""$ac_cv_var_h_nerr_declaration" 1>&6
10302if eval "test \"\$ac_cv_var_h_nerr_declaration\" = yes"; then
10303 cat >> confdefs.h <<\EOF
10304#define HAVE_H_NERR_DECLARATION 1
10305EOF
10306
10307fi
10308
10309
10310fi
10311
10312
10313
10314
10315echo $ac_n "checking for __progname""... $ac_c" 1>&6
10316echo "configure:10317: checking for __progname" >&5
10317if eval "test \"`echo '$''{'ac_cv_var___progname'+set}'`\" = set"; then
10318 echo $ac_n "(cached) $ac_c" 1>&6
10319else
10320
10321cat > conftest.$ac_ext <<EOF
10322#line 10323 "configure"
10323#include "confdefs.h"
10324extern int __progname;
10325int foo() { return __progname; }
10326int main() {
10327foo()
10328; return 0; }
10329EOF
10330if { (eval echo configure:10331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10331 rm -rf conftest*
10332 ac_cv_var___progname=yes
10333else
10334 echo "configure: failed program was:" >&5
10335 cat conftest.$ac_ext >&5
10336 rm -rf conftest*
10337 ac_cv_var___progname=no
10338fi
10339rm -f conftest*
10340
10341fi
10342
10343
10344
10345echo "$ac_t""`eval echo \\$ac_cv_var___progname`" 1>&6
10346if test `eval echo \\$ac_cv_var___progname` = yes; then
10347 cat >> confdefs.h <<EOF
10348#define HAVE___PROGNAME 1
10349EOF
10350
10351
10352echo $ac_n "checking if __progname is properly declared""... $ac_c" 1>&6
10353echo "configure:10354: checking if __progname is properly declared" >&5
10354if eval "test \"`echo '$''{'ac_cv_var___progname_declaration'+set}'`\" = set"; then
10355 echo $ac_n "(cached) $ac_c" 1>&6
10356else
10357
10358cat > conftest.$ac_ext <<EOF
10359#line 10360 "configure"
10360#include "confdefs.h"
10361#ifdef HAVE_ERR_H
10362#include <err.h>
10363#endif
10364extern struct { int foo; } __progname;
10365int main() {
10366__progname.foo = 1;
10367; return 0; }
10368EOF
10369if { (eval echo configure:10370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10370 rm -rf conftest*
10371 eval "ac_cv_var___progname_declaration=no"
10372else
10373 echo "configure: failed program was:" >&5
10374 cat conftest.$ac_ext >&5
10375 rm -rf conftest*
10376 eval "ac_cv_var___progname_declaration=yes"
10377fi
10378rm -f conftest*
10379
10380fi
10381
10382
10383
10384
10385echo "$ac_t""$ac_cv_var___progname_declaration" 1>&6
10386if eval "test \"\$ac_cv_var___progname_declaration\" = yes"; then
10387 cat >> confdefs.h <<\EOF
10388#define HAVE___PROGNAME_DECLARATION 1
10389EOF
10390
10391fi
10392
10393
10394fi
10395
10396
10397
10398
10399echo $ac_n "checking if optarg is properly declared""... $ac_c" 1>&6
10400echo "configure:10401: checking if optarg is properly declared" >&5
10401if eval "test \"`echo '$''{'ac_cv_var_optarg_declaration'+set}'`\" = set"; then
10402 echo $ac_n "(cached) $ac_c" 1>&6
10403else
10404
10405cat > conftest.$ac_ext <<EOF
10406#line 10407 "configure"
10407#include "confdefs.h"
10408#include <stdlib.h>
10409#ifdef HAVE_UNISTD_H
10410#include <unistd.h>
10411#endif
10412extern struct { int foo; } optarg;
10413int main() {
10414optarg.foo = 1;
10415; return 0; }
10416EOF
10417if { (eval echo configure:10418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10418 rm -rf conftest*
10419 eval "ac_cv_var_optarg_declaration=no"
10420else
10421 echo "configure: failed program was:" >&5
10422 cat conftest.$ac_ext >&5
10423 rm -rf conftest*
10424 eval "ac_cv_var_optarg_declaration=yes"
10425fi
10426rm -f conftest*
10427
10428fi
10429
10430
10431
10432
10433echo "$ac_t""$ac_cv_var_optarg_declaration" 1>&6
10434if eval "test \"\$ac_cv_var_optarg_declaration\" = yes"; then
10435 cat >> confdefs.h <<\EOF
10436#define HAVE_OPTARG_DECLARATION 1
10437EOF
10438
10439fi
10440
10441
10442
10443echo $ac_n "checking if optind is properly declared""... $ac_c" 1>&6
10444echo "configure:10445: checking if optind is properly declared" >&5
10445if eval "test \"`echo '$''{'ac_cv_var_optind_declaration'+set}'`\" = set"; then
10446 echo $ac_n "(cached) $ac_c" 1>&6
10447else
10448
10449cat > conftest.$ac_ext <<EOF
10450#line 10451 "configure"
10451#include "confdefs.h"
10452#include <stdlib.h>
10453#ifdef HAVE_UNISTD_H
10454#include <unistd.h>
10455#endif
10456extern struct { int foo; } optind;
10457int main() {
10458optind.foo = 1;
10459; return 0; }
10460EOF
10461if { (eval echo configure:10462: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10462 rm -rf conftest*
10463 eval "ac_cv_var_optind_declaration=no"
10464else
10465 echo "configure: failed program was:" >&5
10466 cat conftest.$ac_ext >&5
10467 rm -rf conftest*
10468 eval "ac_cv_var_optind_declaration=yes"
10469fi
10470rm -f conftest*
10471
10472fi
10473
10474
10475
10476
10477echo "$ac_t""$ac_cv_var_optind_declaration" 1>&6
10478if eval "test \"\$ac_cv_var_optind_declaration\" = yes"; then
10479 cat >> confdefs.h <<\EOF
10480#define HAVE_OPTIND_DECLARATION 1
10481EOF
10482
10483fi
10484
10485
10486
10487echo $ac_n "checking if opterr is properly declared""... $ac_c" 1>&6
10488echo "configure:10489: checking if opterr is properly declared" >&5
10489if eval "test \"`echo '$''{'ac_cv_var_opterr_declaration'+set}'`\" = set"; then
10490 echo $ac_n "(cached) $ac_c" 1>&6
10491else
10492
10493cat > conftest.$ac_ext <<EOF
10494#line 10495 "configure"
10495#include "confdefs.h"
10496#include <stdlib.h>
10497#ifdef HAVE_UNISTD_H
10498#include <unistd.h>
10499#endif
10500extern struct { int foo; } opterr;
10501int main() {
10502opterr.foo = 1;
10503; return 0; }
10504EOF
10505if { (eval echo configure:10506: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10506 rm -rf conftest*
10507 eval "ac_cv_var_opterr_declaration=no"
10508else
10509 echo "configure: failed program was:" >&5
10510 cat conftest.$ac_ext >&5
10511 rm -rf conftest*
10512 eval "ac_cv_var_opterr_declaration=yes"
10513fi
10514rm -f conftest*
10515
10516fi
10517
10518
10519
10520
10521echo "$ac_t""$ac_cv_var_opterr_declaration" 1>&6
10522if eval "test \"\$ac_cv_var_opterr_declaration\" = yes"; then
10523 cat >> confdefs.h <<\EOF
10524#define HAVE_OPTERR_DECLARATION 1
10525EOF
10526
10527fi
10528
10529
10530
10531echo $ac_n "checking if optopt is properly declared""... $ac_c" 1>&6
10532echo "configure:10533: checking if optopt is properly declared" >&5
10533if eval "test \"`echo '$''{'ac_cv_var_optopt_declaration'+set}'`\" = set"; then
10534 echo $ac_n "(cached) $ac_c" 1>&6
10535else
10536
10537cat > conftest.$ac_ext <<EOF
10538#line 10539 "configure"
10539#include "confdefs.h"
10540#include <stdlib.h>
10541#ifdef HAVE_UNISTD_H
10542#include <unistd.h>
10543#endif
10544extern struct { int foo; } optopt;
10545int main() {
10546optopt.foo = 1;
10547; return 0; }
10548EOF
10549if { (eval echo configure:10550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10550 rm -rf conftest*
10551 eval "ac_cv_var_optopt_declaration=no"
10552else
10553 echo "configure: failed program was:" >&5
10554 cat conftest.$ac_ext >&5
10555 rm -rf conftest*
10556 eval "ac_cv_var_optopt_declaration=yes"
10557fi
10558rm -f conftest*
10559
10560fi
10561
10562
10563
10564
10565echo "$ac_t""$ac_cv_var_optopt_declaration" 1>&6
10566if eval "test \"\$ac_cv_var_optopt_declaration\" = yes"; then
10567 cat >> confdefs.h <<\EOF
10568#define HAVE_OPTOPT_DECLARATION 1
10569EOF
10570
10571fi
10572
10573
10574
10575
10576echo $ac_n "checking if environ is properly declared""... $ac_c" 1>&6
10577echo "configure:10578: checking if environ is properly declared" >&5
10578if eval "test \"`echo '$''{'ac_cv_var_environ_declaration'+set}'`\" = set"; then
10579 echo $ac_n "(cached) $ac_c" 1>&6
10580else
10581
10582cat > conftest.$ac_ext <<EOF
10583#line 10584 "configure"
10584#include "confdefs.h"
10585#include <stdlib.h>
10586extern struct { int foo; } environ;
10587int main() {
10588environ.foo = 1;
10589; return 0; }
10590EOF
10591if { (eval echo configure:10592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10592 rm -rf conftest*
10593 eval "ac_cv_var_environ_declaration=no"
10594else
10595 echo "configure: failed program was:" >&5
10596 cat conftest.$ac_ext >&5
10597 rm -rf conftest*
10598 eval "ac_cv_var_environ_declaration=yes"
10599fi
10600rm -f conftest*
10601
10602fi
10603
10604
10605
10606
10607echo "$ac_t""$ac_cv_var_environ_declaration" 1>&6
10608if eval "test \"\$ac_cv_var_environ_declaration\" = yes"; then
10609 cat >> confdefs.h <<\EOF
10610#define HAVE_ENVIRON_DECLARATION 1
10611EOF
10612
10613fi
10614
10615
10616
10617
10618
10619
10620echo $ac_n "checking for ut_addr in struct utmp""... $ac_c" 1>&6
10621echo "configure:10622: checking for ut_addr in struct utmp" >&5
10622if eval "test \"`echo '$''{'ac_cv_type_struct_utmp_ut_addr'+set}'`\" = set"; then
10623 echo $ac_n "(cached) $ac_c" 1>&6
10624else
10625
10626cat > conftest.$ac_ext <<EOF
10627#line 10628 "configure"
10628#include "confdefs.h"
10629#include <utmp.h>
10630int main() {
10631struct utmp x; x.ut_addr;
10632; return 0; }
10633EOF
10634if { (eval echo configure:10635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10635 rm -rf conftest*
10636 ac_cv_type_struct_utmp_ut_addr=yes
10637else
10638 echo "configure: failed program was:" >&5
10639 cat conftest.$ac_ext >&5
10640 rm -rf conftest*
10641 ac_cv_type_struct_utmp_ut_addr=no
10642fi
10643rm -f conftest*
10644fi
10645
10646echo "$ac_t""$ac_cv_type_struct_utmp_ut_addr" 1>&6
10647if test "$ac_cv_type_struct_utmp_ut_addr" = yes; then
10648
10649 cat >> confdefs.h <<\EOF
10650#define HAVE_STRUCT_UTMP_UT_ADDR 1
10651EOF
10652
10653
10654fi
10655
10656
10657
10658
10659echo $ac_n "checking for ut_host in struct utmp""... $ac_c" 1>&6
10660echo "configure:10661: checking for ut_host in struct utmp" >&5
10661if eval "test \"`echo '$''{'ac_cv_type_struct_utmp_ut_host'+set}'`\" = set"; then
10662 echo $ac_n "(cached) $ac_c" 1>&6
10663else
10664
10665cat > conftest.$ac_ext <<EOF
10666#line 10667 "configure"
10667#include "confdefs.h"
10668#include <utmp.h>
10669int main() {
10670struct utmp x; x.ut_host;
10671; return 0; }
10672EOF
10673if { (eval echo configure:10674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10674 rm -rf conftest*
10675 ac_cv_type_struct_utmp_ut_host=yes
10676else
10677 echo "configure: failed program was:" >&5
10678 cat conftest.$ac_ext >&5
10679 rm -rf conftest*
10680 ac_cv_type_struct_utmp_ut_host=no
10681fi
10682rm -f conftest*
10683fi
10684
10685echo "$ac_t""$ac_cv_type_struct_utmp_ut_host" 1>&6
10686if test "$ac_cv_type_struct_utmp_ut_host" = yes; then
10687
10688 cat >> confdefs.h <<\EOF
10689#define HAVE_STRUCT_UTMP_UT_HOST 1
10690EOF
10691
10692
10693fi
10694
10695
10696
10697
10698echo $ac_n "checking for ut_id in struct utmp""... $ac_c" 1>&6
10699echo "configure:10700: checking for ut_id in struct utmp" >&5
10700if eval "test \"`echo '$''{'ac_cv_type_struct_utmp_ut_id'+set}'`\" = set"; then
10701 echo $ac_n "(cached) $ac_c" 1>&6
10702else
10703
10704cat > conftest.$ac_ext <<EOF
10705#line 10706 "configure"
10706#include "confdefs.h"
10707#include <utmp.h>
10708int main() {
10709struct utmp x; x.ut_id;
10710; return 0; }
10711EOF
10712if { (eval echo configure:10713: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10713 rm -rf conftest*
10714 ac_cv_type_struct_utmp_ut_id=yes
10715else
10716 echo "configure: failed program was:" >&5
10717 cat conftest.$ac_ext >&5
10718 rm -rf conftest*
10719 ac_cv_type_struct_utmp_ut_id=no
10720fi
10721rm -f conftest*
10722fi
10723
10724echo "$ac_t""$ac_cv_type_struct_utmp_ut_id" 1>&6
10725if test "$ac_cv_type_struct_utmp_ut_id" = yes; then
10726
10727 cat >> confdefs.h <<\EOF
10728#define HAVE_STRUCT_UTMP_UT_ID 1
10729EOF
10730
10731
10732fi
10733
10734
10735
10736
10737echo $ac_n "checking for ut_pid in struct utmp""... $ac_c" 1>&6
10738echo "configure:10739: checking for ut_pid in struct utmp" >&5
10739if eval "test \"`echo '$''{'ac_cv_type_struct_utmp_ut_pid'+set}'`\" = set"; then
10740 echo $ac_n "(cached) $ac_c" 1>&6
10741else
10742
10743cat > conftest.$ac_ext <<EOF
10744#line 10745 "configure"
10745#include "confdefs.h"
10746#include <utmp.h>
10747int main() {
10748struct utmp x; x.ut_pid;
10749; return 0; }
10750EOF
10751if { (eval echo configure:10752: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10752 rm -rf conftest*
10753 ac_cv_type_struct_utmp_ut_pid=yes
10754else
10755 echo "configure: failed program was:" >&5
10756 cat conftest.$ac_ext >&5
10757 rm -rf conftest*
10758 ac_cv_type_struct_utmp_ut_pid=no
10759fi
10760rm -f conftest*
10761fi
10762
10763echo "$ac_t""$ac_cv_type_struct_utmp_ut_pid" 1>&6
10764if test "$ac_cv_type_struct_utmp_ut_pid" = yes; then
10765
10766 cat >> confdefs.h <<\EOF
10767#define HAVE_STRUCT_UTMP_UT_PID 1
10768EOF
10769
10770
10771fi
10772
10773
10774
10775
10776echo $ac_n "checking for ut_type in struct utmp""... $ac_c" 1>&6
10777echo "configure:10778: checking for ut_type in struct utmp" >&5
10778if eval "test \"`echo '$''{'ac_cv_type_struct_utmp_ut_type'+set}'`\" = set"; then
10779 echo $ac_n "(cached) $ac_c" 1>&6
10780else
10781
10782cat > conftest.$ac_ext <<EOF
10783#line 10784 "configure"
10784#include "confdefs.h"
10785#include <utmp.h>
10786int main() {
10787struct utmp x; x.ut_type;
10788; return 0; }
10789EOF
10790if { (eval echo configure:10791: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10791 rm -rf conftest*
10792 ac_cv_type_struct_utmp_ut_type=yes
10793else
10794 echo "configure: failed program was:" >&5
10795 cat conftest.$ac_ext >&5
10796 rm -rf conftest*
10797 ac_cv_type_struct_utmp_ut_type=no
10798fi
10799rm -f conftest*
10800fi
10801
10802echo "$ac_t""$ac_cv_type_struct_utmp_ut_type" 1>&6
10803if test "$ac_cv_type_struct_utmp_ut_type" = yes; then
10804
10805 cat >> confdefs.h <<\EOF
10806#define HAVE_STRUCT_UTMP_UT_TYPE 1
10807EOF
10808
10809
10810fi
10811
10812
10813
10814
10815echo $ac_n "checking for ut_user in struct utmp""... $ac_c" 1>&6
10816echo "configure:10817: checking for ut_user in struct utmp" >&5
10817if eval "test \"`echo '$''{'ac_cv_type_struct_utmp_ut_user'+set}'`\" = set"; then
10818 echo $ac_n "(cached) $ac_c" 1>&6
10819else
10820
10821cat > conftest.$ac_ext <<EOF
10822#line 10823 "configure"
10823#include "confdefs.h"
10824#include <utmp.h>
10825int main() {
10826struct utmp x; x.ut_user;
10827; return 0; }
10828EOF
10829if { (eval echo configure:10830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10830 rm -rf conftest*
10831 ac_cv_type_struct_utmp_ut_user=yes
10832else
10833 echo "configure: failed program was:" >&5
10834 cat conftest.$ac_ext >&5
10835 rm -rf conftest*
10836 ac_cv_type_struct_utmp_ut_user=no
10837fi
10838rm -f conftest*
10839fi
10840
10841echo "$ac_t""$ac_cv_type_struct_utmp_ut_user" 1>&6
10842if test "$ac_cv_type_struct_utmp_ut_user" = yes; then
10843
10844 cat >> confdefs.h <<\EOF
10845#define HAVE_STRUCT_UTMP_UT_USER 1
10846EOF
10847
10848
10849fi
10850
10851
10852
10853
10854echo $ac_n "checking for ut_exit in struct utmpx""... $ac_c" 1>&6
10855echo "configure:10856: checking for ut_exit in struct utmpx" >&5
10856if eval "test \"`echo '$''{'ac_cv_type_struct_utmpx_ut_exit'+set}'`\" = set"; then
10857 echo $ac_n "(cached) $ac_c" 1>&6
10858else
10859
10860cat > conftest.$ac_ext <<EOF
10861#line 10862 "configure"
10862#include "confdefs.h"
10863#include <utmpx.h>
10864int main() {
10865struct utmpx x; x.ut_exit;
10866; return 0; }
10867EOF
10868if { (eval echo configure:10869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10869 rm -rf conftest*
10870 ac_cv_type_struct_utmpx_ut_exit=yes
10871else
10872 echo "configure: failed program was:" >&5
10873 cat conftest.$ac_ext >&5
10874 rm -rf conftest*
10875 ac_cv_type_struct_utmpx_ut_exit=no
10876fi
10877rm -f conftest*
10878fi
10879
10880echo "$ac_t""$ac_cv_type_struct_utmpx_ut_exit" 1>&6
10881if test "$ac_cv_type_struct_utmpx_ut_exit" = yes; then
10882
10883 cat >> confdefs.h <<\EOF
10884#define HAVE_STRUCT_UTMPX_UT_EXIT 1
10885EOF
10886
10887
10888fi
10889
10890
10891
10892
10893echo $ac_n "checking for ut_syslen in struct utmpx""... $ac_c" 1>&6
10894echo "configure:10895: checking for ut_syslen in struct utmpx" >&5
10895if eval "test \"`echo '$''{'ac_cv_type_struct_utmpx_ut_syslen'+set}'`\" = set"; then
10896 echo $ac_n "(cached) $ac_c" 1>&6
10897else
10898
10899cat > conftest.$ac_ext <<EOF
10900#line 10901 "configure"
10901#include "confdefs.h"
10902#include <utmpx.h>
10903int main() {
10904struct utmpx x; x.ut_syslen;
10905; return 0; }
10906EOF
10907if { (eval echo configure:10908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10908 rm -rf conftest*
10909 ac_cv_type_struct_utmpx_ut_syslen=yes
10910else
10911 echo "configure: failed program was:" >&5
10912 cat conftest.$ac_ext >&5
10913 rm -rf conftest*
10914 ac_cv_type_struct_utmpx_ut_syslen=no
10915fi
10916rm -f conftest*
10917fi
10918
10919echo "$ac_t""$ac_cv_type_struct_utmpx_ut_syslen" 1>&6
10920if test "$ac_cv_type_struct_utmpx_ut_syslen" = yes; then
10921
10922 cat >> confdefs.h <<\EOF
10923#define HAVE_STRUCT_UTMPX_UT_SYSLEN 1
10924EOF
10925
10926
10927fi
10928
10929
10930
10931
10932
10933
10934echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
10935echo "configure:10936: checking for tm_gmtoff in struct tm" >&5
10936if eval "test \"`echo '$''{'ac_cv_type_struct_tm_tm_gmtoff'+set}'`\" = set"; then
10937 echo $ac_n "(cached) $ac_c" 1>&6
10938else
10939
10940cat > conftest.$ac_ext <<EOF
10941#line 10942 "configure"
10942#include "confdefs.h"
10943#include <time.h>
10944int main() {
10945struct tm x; x.tm_gmtoff;
10946; return 0; }
10947EOF
10948if { (eval echo configure:10949: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10949 rm -rf conftest*
10950 ac_cv_type_struct_tm_tm_gmtoff=yes
10951else
10952 echo "configure: failed program was:" >&5
10953 cat conftest.$ac_ext >&5
10954 rm -rf conftest*
10955 ac_cv_type_struct_tm_tm_gmtoff=no
10956fi
10957rm -f conftest*
10958fi
10959
10960echo "$ac_t""$ac_cv_type_struct_tm_tm_gmtoff" 1>&6
10961if test "$ac_cv_type_struct_tm_tm_gmtoff" = yes; then
10962
10963 cat >> confdefs.h <<\EOF
10964#define HAVE_STRUCT_TM_TM_GMTOFF 1
10965EOF
10966
10967
10968fi
10969
10970
10971
10972
10973echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
10974echo "configure:10975: checking for tm_zone in struct tm" >&5
10975if eval "test \"`echo '$''{'ac_cv_type_struct_tm_tm_zone'+set}'`\" = set"; then
10976 echo $ac_n "(cached) $ac_c" 1>&6
10977else
10978
10979cat > conftest.$ac_ext <<EOF
10980#line 10981 "configure"
10981#include "confdefs.h"
10982#include <time.h>
10983int main() {
10984struct tm x; x.tm_zone;
10985; return 0; }
10986EOF
10987if { (eval echo configure:10988: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10988 rm -rf conftest*
10989 ac_cv_type_struct_tm_tm_zone=yes
10990else
10991 echo "configure: failed program was:" >&5
10992 cat conftest.$ac_ext >&5
10993 rm -rf conftest*
10994 ac_cv_type_struct_tm_tm_zone=no
10995fi
10996rm -f conftest*
10997fi
10998
10999echo "$ac_t""$ac_cv_type_struct_tm_tm_zone" 1>&6
11000if test "$ac_cv_type_struct_tm_tm_zone" = yes; then
11001
11002 cat >> confdefs.h <<\EOF
11003#define HAVE_STRUCT_TM_TM_ZONE 1
11004EOF
11005
11006
11007fi
11008
11009
11010
11011
11012
11013echo $ac_n "checking for timezone""... $ac_c" 1>&6
11014echo "configure:11015: checking for timezone" >&5
11015if eval "test \"`echo '$''{'ac_cv_var_timezone'+set}'`\" = set"; then
11016 echo $ac_n "(cached) $ac_c" 1>&6
11017else
11018
11019cat > conftest.$ac_ext <<EOF
11020#line 11021 "configure"
11021#include "confdefs.h"
11022extern int timezone;
11023int foo() { return timezone; }
11024int main() {
11025foo()
11026; return 0; }
11027EOF
11028if { (eval echo configure:11029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11029 rm -rf conftest*
11030 ac_cv_var_timezone=yes
11031else
11032 echo "configure: failed program was:" >&5
11033 cat conftest.$ac_ext >&5
11034 rm -rf conftest*
11035 ac_cv_var_timezone=no
11036fi
11037rm -f conftest*
11038
11039fi
11040
11041
11042
11043echo "$ac_t""`eval echo \\$ac_cv_var_timezone`" 1>&6
11044if test `eval echo \\$ac_cv_var_timezone` = yes; then
11045 cat >> confdefs.h <<EOF
11046#define HAVE_TIMEZONE 1
11047EOF
11048
11049
11050echo $ac_n "checking if timezone is properly declared""... $ac_c" 1>&6
11051echo "configure:11052: checking if timezone is properly declared" >&5
11052if eval "test \"`echo '$''{'ac_cv_var_timezone_declaration'+set}'`\" = set"; then
11053 echo $ac_n "(cached) $ac_c" 1>&6
11054else
11055
11056cat > conftest.$ac_ext <<EOF
11057#line 11058 "configure"
11058#include "confdefs.h"
11059#include <time.h>
11060extern struct { int foo; } timezone;
11061int main() {
11062timezone.foo = 1;
11063; return 0; }
11064EOF
11065if { (eval echo configure:11066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11066 rm -rf conftest*
11067 eval "ac_cv_var_timezone_declaration=no"
11068else
11069 echo "configure: failed program was:" >&5
11070 cat conftest.$ac_ext >&5
11071 rm -rf conftest*
11072 eval "ac_cv_var_timezone_declaration=yes"
11073fi
11074rm -f conftest*
11075
11076fi
11077
11078
11079
11080
11081echo "$ac_t""$ac_cv_var_timezone_declaration" 1>&6
11082if eval "test \"\$ac_cv_var_timezone_declaration\" = yes"; then
11083 cat >> confdefs.h <<\EOF
11084#define HAVE_TIMEZONE_DECLARATION 1
11085EOF
11086
11087fi
11088
11089
11090fi
11091
11092
11093
11094
11095
11096cv=`echo "sa_family_t" | sed 'y%./+- %__p__%'`
11097echo $ac_n "checking for sa_family_t""... $ac_c" 1>&6
11098echo "configure:11099: checking for sa_family_t" >&5
11099if eval "test \"`echo '$''{'ac_cv_type_$cv'+set}'`\" = set"; then
11100 echo $ac_n "(cached) $ac_c" 1>&6
11101else
11102 cat > conftest.$ac_ext <<EOF
11103#line 11104 "configure"
11104#include "confdefs.h"
11105#include <sys/types.h>
11106#if STDC_HEADERS
11107#include <stdlib.h>
11108#include <stddef.h>
11109#endif
11110#include <sys/socket.h>
11111int main() {
11112sa_family_t foo;
11113; return 0; }
11114EOF
11115if { (eval echo configure:11116: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11116 rm -rf conftest*
11117 eval "ac_cv_type_$cv=yes"
11118else
11119 echo "configure: failed program was:" >&5
11120 cat conftest.$ac_ext >&5
11121 rm -rf conftest*
11122 eval "ac_cv_type_$cv=no"
11123fi
11124rm -f conftest*
11125fi
11126echo "$ac_t""`eval echo \\$ac_cv_type_$cv`" 1>&6
11127if test `eval echo \\$ac_cv_type_$cv` = yes; then
11128 ac_tr_hdr=HAVE_`echo sa_family_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
11129
11130: << END
11131@@@funcs="$funcs sa_family_t"@@@
11132END
11133
11134 cat >> confdefs.h <<EOF
11135#define $ac_tr_hdr 1
11136EOF
11137
11138fi
11139
11140
11141
11142
11143cv=`echo "socklen_t" | sed 'y%./+- %__p__%'`
11144echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
11145echo "configure:11146: checking for socklen_t" >&5
11146if eval "test \"`echo '$''{'ac_cv_type_$cv'+set}'`\" = set"; then
11147 echo $ac_n "(cached) $ac_c" 1>&6
11148else
11149 cat > conftest.$ac_ext <<EOF
11150#line 11151 "configure"
11151#include "confdefs.h"
11152#include <sys/types.h>
11153#if STDC_HEADERS
11154#include <stdlib.h>
11155#include <stddef.h>
11156#endif
11157#include <sys/socket.h>
11158int main() {
11159socklen_t foo;
11160; return 0; }
11161EOF
11162if { (eval echo configure:11163: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11163 rm -rf conftest*
11164 eval "ac_cv_type_$cv=yes"
11165else
11166 echo "configure: failed program was:" >&5
11167 cat conftest.$ac_ext >&5
11168 rm -rf conftest*
11169 eval "ac_cv_type_$cv=no"
11170fi
11171rm -f conftest*
11172fi
11173echo "$ac_t""`eval echo \\$ac_cv_type_$cv`" 1>&6
11174if test `eval echo \\$ac_cv_type_$cv` = yes; then
11175 ac_tr_hdr=HAVE_`echo socklen_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
11176
11177: << END
11178@@@funcs="$funcs socklen_t"@@@
11179END
11180
11181 cat >> confdefs.h <<EOF
11182#define $ac_tr_hdr 1
11183EOF
11184
11185fi
11186
11187
11188
11189
11190cv=`echo "struct sockaddr" | sed 'y%./+- %__p__%'`
11191echo $ac_n "checking for struct sockaddr""... $ac_c" 1>&6
11192echo "configure:11193: checking for struct sockaddr" >&5
11193if eval "test \"`echo '$''{'ac_cv_type_$cv'+set}'`\" = set"; then
11194 echo $ac_n "(cached) $ac_c" 1>&6
11195else
11196 cat > conftest.$ac_ext <<EOF
11197#line 11198 "configure"
11198#include "confdefs.h"
11199#include <sys/types.h>
11200#if STDC_HEADERS
11201#include <stdlib.h>
11202#include <stddef.h>
11203#endif
11204#include <sys/socket.h>
11205int main() {
11206struct sockaddr foo;
11207; return 0; }
11208EOF
11209if { (eval echo configure:11210: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11210 rm -rf conftest*
11211 eval "ac_cv_type_$cv=yes"
11212else
11213 echo "configure: failed program was:" >&5
11214 cat conftest.$ac_ext >&5
11215 rm -rf conftest*
11216 eval "ac_cv_type_$cv=no"
11217fi
11218rm -f conftest*
11219fi
11220echo "$ac_t""`eval echo \\$ac_cv_type_$cv`" 1>&6
11221if test `eval echo \\$ac_cv_type_$cv` = yes; then
11222 ac_tr_hdr=HAVE_`echo struct sockaddr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
11223
11224: << END
11225@@@funcs="$funcs struct_sockaddr"@@@
11226END
11227
11228 cat >> confdefs.h <<EOF
11229#define $ac_tr_hdr 1
11230EOF
11231
11232fi
11233
11234
11235
11236
11237cv=`echo "struct sockaddr_storage" | sed 'y%./+- %__p__%'`
11238echo $ac_n "checking for struct sockaddr_storage""... $ac_c" 1>&6
11239echo "configure:11240: checking for struct sockaddr_storage" >&5
11240if eval "test \"`echo '$''{'ac_cv_type_$cv'+set}'`\" = set"; then
11241 echo $ac_n "(cached) $ac_c" 1>&6
11242else
11243 cat > conftest.$ac_ext <<EOF
11244#line 11245 "configure"
11245#include "confdefs.h"
11246#include <sys/types.h>
11247#if STDC_HEADERS
11248#include <stdlib.h>
11249#include <stddef.h>
11250#endif
11251#include <sys/socket.h>
11252int main() {
11253struct sockaddr_storage foo;
11254; return 0; }
11255EOF
11256if { (eval echo configure:11257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11257 rm -rf conftest*
11258 eval "ac_cv_type_$cv=yes"
11259else
11260 echo "configure: failed program was:" >&5
11261 cat conftest.$ac_ext >&5
11262 rm -rf conftest*
11263 eval "ac_cv_type_$cv=no"
11264fi
11265rm -f conftest*
11266fi
11267echo "$ac_t""`eval echo \\$ac_cv_type_$cv`" 1>&6
11268if test `eval echo \\$ac_cv_type_$cv` = yes; then
11269 ac_tr_hdr=HAVE_`echo struct sockaddr_storage | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
11270
11271: << END
11272@@@funcs="$funcs struct_sockaddr_storage"@@@
11273END
11274
11275 cat >> confdefs.h <<EOF
11276#define $ac_tr_hdr 1
11277EOF
11278
11279fi
11280
11281
11282
11283
11284cv=`echo "struct addrinfo" | sed 'y%./+- %__p__%'`
11285echo $ac_n "checking for struct addrinfo""... $ac_c" 1>&6
11286echo "configure:11287: checking for struct addrinfo" >&5
11287if eval "test \"`echo '$''{'ac_cv_type_$cv'+set}'`\" = set"; then
11288 echo $ac_n "(cached) $ac_c" 1>&6
11289else
11290 cat > conftest.$ac_ext <<EOF
11291#line 11292 "configure"
11292#include "confdefs.h"
11293#include <sys/types.h>
11294#if STDC_HEADERS
11295#include <stdlib.h>
11296#include <stddef.h>
11297#endif
11298#include <netdb.h>
11299int main() {
11300struct addrinfo foo;
11301; return 0; }
11302EOF
11303if { (eval echo configure:11304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11304 rm -rf conftest*
11305 eval "ac_cv_type_$cv=yes"
11306else
11307 echo "configure: failed program was:" >&5
11308 cat conftest.$ac_ext >&5
11309 rm -rf conftest*
11310 eval "ac_cv_type_$cv=no"
11311fi
11312rm -f conftest*
11313fi
11314echo "$ac_t""`eval echo \\$ac_cv_type_$cv`" 1>&6
11315if test `eval echo \\$ac_cv_type_$cv` = yes; then
11316 ac_tr_hdr=HAVE_`echo struct addrinfo | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
11317
11318: << END
11319@@@funcs="$funcs struct_addrinfo"@@@
11320END
11321
11322 cat >> confdefs.h <<EOF
11323#define $ac_tr_hdr 1
11324EOF
11325
11326fi
11327
11328
11329
11330
11331echo $ac_n "checking for struct winsize""... $ac_c" 1>&6
11332echo "configure:11333: checking for struct winsize" >&5
11333if eval "test \"`echo '$''{'ac_cv_struct_winsize'+set}'`\" = set"; then
11334 echo $ac_n "(cached) $ac_c" 1>&6
11335else
11336
11337ac_cv_struct_winsize=no
11338for i in sys/termios.h sys/ioctl.h; do
11339cat > conftest.$ac_ext <<EOF
11340#line 11341 "configure"
11341#include "confdefs.h"
11342#include <$i>
11343EOF
11344if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11345 egrep "struct[ ]*winsize" >/dev/null 2>&1; then
11346 rm -rf conftest*
11347 ac_cv_struct_winsize=yes; break
11348fi
11349rm -f conftest*
11350done
11351
11352fi
11353
11354if test "$ac_cv_struct_winsize" = "yes"; then
11355 cat >> confdefs.h <<\EOF
11356#define HAVE_STRUCT_WINSIZE 1
11357EOF
11358
11359fi
11360echo "$ac_t""$ac_cv_struct_winsize" 1>&6
11361cat > conftest.$ac_ext <<EOF
11362#line 11363 "configure"
11363#include "confdefs.h"
11364#include <termios.h>
11365EOF
11366if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11367 egrep "ws_xpixel" >/dev/null 2>&1; then
11368 rm -rf conftest*
11369 cat >> confdefs.h <<\EOF
11370#define HAVE_WS_XPIXEL 1
11371EOF
11372
11373fi
11374rm -f conftest*
11375
11376cat > conftest.$ac_ext <<EOF
11377#line 11378 "configure"
11378#include "confdefs.h"
11379#include <termios.h>
11380EOF
11381if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11382 egrep "ws_ypixel" >/dev/null 2>&1; then
11383 rm -rf conftest*
11384 cat >> confdefs.h <<\EOF
11385#define HAVE_WS_YPIXEL 1
11386EOF
11387
11388fi
11389rm -f conftest*
11390
11391
11392
11393
11394
11395echo $ac_n "checking for struct spwd""... $ac_c" 1>&6
11396echo "configure:11397: checking for struct spwd" >&5
11397if eval "test \"`echo '$''{'ac_cv_struct_spwd'+set}'`\" = set"; then
11398 echo $ac_n "(cached) $ac_c" 1>&6
11399else
11400
11401cat > conftest.$ac_ext <<EOF
11402#line 11403 "configure"
11403#include "confdefs.h"
11404#include <pwd.h>
11405#ifdef HAVE_SHADOW_H
11406#include <shadow.h>
11407#endif
11408int main() {
11409struct spwd foo;
11410; return 0; }
11411EOF
11412if { (eval echo configure:11413: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11413 rm -rf conftest*
11414 ac_cv_struct_spwd=yes
11415else
11416 echo "configure: failed program was:" >&5
11417 cat conftest.$ac_ext >&5
11418 rm -rf conftest*
11419 ac_cv_struct_spwd=no
11420fi
11421rm -f conftest*
11422
11423fi
11424
11425echo "$ac_t""$ac_cv_struct_spwd" 1>&6
11426
11427if test "$ac_cv_struct_spwd" = "yes"; then
11428 cat >> confdefs.h <<\EOF
11429#define HAVE_STRUCT_SPWD 1
11430EOF
11431
11432fi
11433
11434
11435
11436
11437
11438echo $ac_n "checking for sa_len in struct sockaddr""... $ac_c" 1>&6
11439echo "configure:11440: checking for sa_len in struct sockaddr" >&5
11440if eval "test \"`echo '$''{'ac_cv_type_struct_sockaddr_sa_len'+set}'`\" = set"; then
11441 echo $ac_n "(cached) $ac_c" 1>&6
11442else
11443
11444cat > conftest.$ac_ext <<EOF
11445#line 11446 "configure"
11446#include "confdefs.h"
11447#include <sys/types.h>
11448#include <sys/socket.h>
11449int main() {
11450struct sockaddr x; x.sa_len;
11451; return 0; }
11452EOF
11453if { (eval echo configure:11454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11454 rm -rf conftest*
11455 ac_cv_type_struct_sockaddr_sa_len=yes
11456else
11457 echo "configure: failed program was:" >&5
11458 cat conftest.$ac_ext >&5
11459 rm -rf conftest*
11460 ac_cv_type_struct_sockaddr_sa_len=no
11461fi
11462rm -f conftest*
11463fi
11464
11465echo "$ac_t""$ac_cv_type_struct_sockaddr_sa_len" 1>&6
11466if test "$ac_cv_type_struct_sockaddr_sa_len" = yes; then
11467
11468 cat >> confdefs.h <<\EOF
11469#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
11470EOF
11471
11472
11473fi
11474
11475
11476
11477
11478
11479for i in int8_t int16_t int32_t int64_t; do
11480 echo $ac_n "checking for $i""... $ac_c" 1>&6
11481echo "configure:11482: checking for $i" >&5
11482
11483if eval "test \"`echo '$''{'ac_cv_type_$i'+set}'`\" = set"; then
11484 echo $ac_n "(cached) $ac_c" 1>&6
11485else
11486 cat > conftest.$ac_ext <<EOF
11487#line 11488 "configure"
11488#include "confdefs.h"
11489
11490#ifdef HAVE_INTTYPES_H
11491#include <inttypes.h>
11492#endif
11493#ifdef HAVE_SYS_TYPES_H
11494#include <sys/types.h>
11495#endif
11496#ifdef HAVE_SYS_BITYPES_H
11497#include <sys/bitypes.h>
11498#endif
11499#ifdef HAVE_BIND_BITYPES_H
11500#include <bind/bitypes.h>
11501#endif
11502#ifdef HAVE_NETINET_IN6_MACHTYPES_H
11503#include <netinet/in6_machtypes.h>
11504#endif
11505
11506int main() {
11507$i x;
11508
11509; return 0; }
11510EOF
11511if { (eval echo configure:11512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11512 rm -rf conftest*
11513 eval ac_cv_type_$i=yes
11514else
11515 echo "configure: failed program was:" >&5
11516 cat conftest.$ac_ext >&5
11517 rm -rf conftest*
11518 eval ac_cv_type_$i=no
11519fi
11520rm -f conftest*
11521fi
11522
11523 eval ac_res=\$ac_cv_type_$i
11524 if test "$ac_res" = yes; then
11525 type=HAVE_`echo $i | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
11526 cat >> confdefs.h <<EOF
11527#define $type 1
11528EOF
11529
11530 fi
11531 echo "$ac_t""$ac_res" 1>&6
11532done
11533
11534
11535for i in u_int8_t u_int16_t u_int32_t u_int64_t; do
11536 echo $ac_n "checking for $i""... $ac_c" 1>&6
11537echo "configure:11538: checking for $i" >&5
11538
11539if eval "test \"`echo '$''{'ac_cv_type_$i'+set}'`\" = set"; then
11540 echo $ac_n "(cached) $ac_c" 1>&6
11541else
11542 cat > conftest.$ac_ext <<EOF
11543#line 11544 "configure"
11544#include "confdefs.h"
11545
11546#ifdef HAVE_INTTYPES_H
11547#include <inttypes.h>
11548#endif
11549#ifdef HAVE_SYS_TYPES_H
11550#include <sys/types.h>
11551#endif
11552#ifdef HAVE_SYS_BITYPES_H
11553#include <sys/bitypes.h>
11554#endif
11555#ifdef HAVE_BIND_BITYPES_H
11556#include <bind/bitypes.h>
11557#endif
11558#ifdef HAVE_NETINET_IN6_MACHTYPES_H
11559#include <netinet/in6_machtypes.h>
11560#endif
11561
11562int main() {
11563$i x;
11564
11565; return 0; }
11566EOF
11567if { (eval echo configure:11568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11568 rm -rf conftest*
11569 eval ac_cv_type_$i=yes
11570else
11571 echo "configure: failed program was:" >&5
11572 cat conftest.$ac_ext >&5
11573 rm -rf conftest*
11574 eval ac_cv_type_$i=no
11575fi
11576rm -f conftest*
11577fi
11578
11579 eval ac_res=\$ac_cv_type_$i
11580 if test "$ac_res" = yes; then
11581 type=HAVE_`echo $i | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
11582 cat >> confdefs.h <<EOF
11583#define $type 1
11584EOF
11585
11586 fi
11587 echo "$ac_t""$ac_res" 1>&6
11588done
11589
11590
11591
11592
11593
11594
11595echo $ac_n "checking for MD4Init""... $ac_c" 1>&6
11596echo "configure:11597: checking for MD4Init" >&5
11597if eval "test \"`echo '$''{'ac_cv_funclib_MD4Init'+set}'`\" = set"; then
11598 echo $ac_n "(cached) $ac_c" 1>&6
11599else
11600
11601if eval "test \"\$ac_cv_func_MD4Init\" != yes" ; then
11602 ac_save_LIBS="$LIBS"
11603 for ac_lib in "" crypto; do
11604 if test -n "$ac_lib"; then
11605 ac_lib="-l$ac_lib"
11606 else
11607 ac_lib=""
11608 fi
11609 LIBS=" $ac_lib $ac_save_LIBS"
11610 cat > conftest.$ac_ext <<EOF
11611#line 11612 "configure"
11612#include "confdefs.h"
11613
11614int main() {
11615MD4Init()
11616; return 0; }
11617EOF
11618if { (eval echo configure:11619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11619 rm -rf conftest*
11620 eval "if test -n \"$ac_lib\";then ac_cv_funclib_MD4Init=$ac_lib; else ac_cv_funclib_MD4Init=yes; fi";break
11621else
11622 echo "configure: failed program was:" >&5
11623 cat conftest.$ac_ext >&5
11624fi
11625rm -f conftest*
11626 done
11627 eval "ac_cv_funclib_MD4Init=\${ac_cv_funclib_MD4Init-no}"
11628 LIBS="$ac_save_LIBS"
11629fi
11630
11631fi
11632
11633
11634eval "ac_res=\$ac_cv_funclib_MD4Init"
11635
11636: << END
11637@@@funcs="$funcs MD4Init"@@@
11638@@@libs="$libs "" crypto"@@@
11639END
11640
11641# MD4Init
11642eval "ac_tr_func=HAVE_`echo MD4Init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11643eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11644eval "LIB_MD4Init=$ac_res"
11645
11646case "$ac_res" in
11647 yes)
11648 eval "ac_cv_func_MD4Init=yes"
11649 eval "LIB_MD4Init="
11650 cat >> confdefs.h <<EOF
11651#define $ac_tr_func 1
11652EOF
11653
11654 echo "$ac_t""yes" 1>&6
11655 ;;
11656 no)
11657 eval "ac_cv_func_MD4Init=no"
11658 eval "LIB_MD4Init="
11659 echo "$ac_t""no" 1>&6
11660 ;;
11661 *)
11662 eval "ac_cv_func_MD4Init=yes"
11663 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
11664 cat >> confdefs.h <<EOF
11665#define $ac_tr_func 1
11666EOF
11667
11668 cat >> confdefs.h <<EOF
11669#define $ac_tr_lib 1
11670EOF
11671
11672 echo "$ac_t""yes, in $ac_res" 1>&6
11673 ;;
11674esac
11675
11676
11677
11678
11679
11680echo $ac_n "checking for MD4_Init""... $ac_c" 1>&6
11681echo "configure:11682: checking for MD4_Init" >&5
11682if eval "test \"`echo '$''{'ac_cv_funclib_MD4_Init'+set}'`\" = set"; then
11683 echo $ac_n "(cached) $ac_c" 1>&6
11684else
11685
11686if eval "test \"\$ac_cv_func_MD4_Init\" != yes" ; then
11687 ac_save_LIBS="$LIBS"
11688 for ac_lib in "" crypto; do
11689 if test -n "$ac_lib"; then
11690 ac_lib="-l$ac_lib"
11691 else
11692 ac_lib=""
11693 fi
11694 LIBS=" $ac_lib $ac_save_LIBS"
11695 cat > conftest.$ac_ext <<EOF
11696#line 11697 "configure"
11697#include "confdefs.h"
11698
11699int main() {
11700MD4_Init()
11701; return 0; }
11702EOF
11703if { (eval echo configure:11704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11704 rm -rf conftest*
11705 eval "if test -n \"$ac_lib\";then ac_cv_funclib_MD4_Init=$ac_lib; else ac_cv_funclib_MD4_Init=yes; fi";break
11706else
11707 echo "configure: failed program was:" >&5
11708 cat conftest.$ac_ext >&5
11709fi
11710rm -f conftest*
11711 done
11712 eval "ac_cv_funclib_MD4_Init=\${ac_cv_funclib_MD4_Init-no}"
11713 LIBS="$ac_save_LIBS"
11714fi
11715
11716fi
11717
11718
11719eval "ac_res=\$ac_cv_funclib_MD4_Init"
11720
11721: << END
11722@@@funcs="$funcs MD4_Init"@@@
11723@@@libs="$libs "" crypto"@@@
11724END
11725
11726# MD4_Init
11727eval "ac_tr_func=HAVE_`echo MD4_Init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11728eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11729eval "LIB_MD4_Init=$ac_res"
11730
11731case "$ac_res" in
11732 yes)
11733 eval "ac_cv_func_MD4_Init=yes"
11734 eval "LIB_MD4_Init="
11735 cat >> confdefs.h <<EOF
11736#define $ac_tr_func 1
11737EOF
11738
11739 echo "$ac_t""yes" 1>&6
11740 ;;
11741 no)
11742 eval "ac_cv_func_MD4_Init=no"
11743 eval "LIB_MD4_Init="
11744 echo "$ac_t""no" 1>&6
11745 ;;
11746 *)
11747 eval "ac_cv_func_MD4_Init=yes"
11748 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
11749 cat >> confdefs.h <<EOF
11750#define $ac_tr_func 1
11751EOF
11752
11753 cat >> confdefs.h <<EOF
11754#define $ac_tr_lib 1
11755EOF
11756
11757 echo "$ac_t""yes, in $ac_res" 1>&6
11758 ;;
11759esac
11760
11761
11762
11763
11764
11765echo $ac_n "checking for MD5Init""... $ac_c" 1>&6
11766echo "configure:11767: checking for MD5Init" >&5
11767if eval "test \"`echo '$''{'ac_cv_funclib_MD5Init'+set}'`\" = set"; then
11768 echo $ac_n "(cached) $ac_c" 1>&6
11769else
11770
11771if eval "test \"\$ac_cv_func_MD5Init\" != yes" ; then
11772 ac_save_LIBS="$LIBS"
11773 for ac_lib in "" crypto; do
11774 if test -n "$ac_lib"; then
11775 ac_lib="-l$ac_lib"
11776 else
11777 ac_lib=""
11778 fi
11779 LIBS=" $ac_lib $ac_save_LIBS"
11780 cat > conftest.$ac_ext <<EOF
11781#line 11782 "configure"
11782#include "confdefs.h"
11783
11784int main() {
11785MD5Init()
11786; return 0; }
11787EOF
11788if { (eval echo configure:11789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11789 rm -rf conftest*
11790 eval "if test -n \"$ac_lib\";then ac_cv_funclib_MD5Init=$ac_lib; else ac_cv_funclib_MD5Init=yes; fi";break
11791else
11792 echo "configure: failed program was:" >&5
11793 cat conftest.$ac_ext >&5
11794fi
11795rm -f conftest*
11796 done
11797 eval "ac_cv_funclib_MD5Init=\${ac_cv_funclib_MD5Init-no}"
11798 LIBS="$ac_save_LIBS"
11799fi
11800
11801fi
11802
11803
11804eval "ac_res=\$ac_cv_funclib_MD5Init"
11805
11806: << END
11807@@@funcs="$funcs MD5Init"@@@
11808@@@libs="$libs "" crypto"@@@
11809END
11810
11811# MD5Init
11812eval "ac_tr_func=HAVE_`echo MD5Init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11813eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11814eval "LIB_MD5Init=$ac_res"
11815
11816case "$ac_res" in
11817 yes)
11818 eval "ac_cv_func_MD5Init=yes"
11819 eval "LIB_MD5Init="
11820 cat >> confdefs.h <<EOF
11821#define $ac_tr_func 1
11822EOF
11823
11824 echo "$ac_t""yes" 1>&6
11825 ;;
11826 no)
11827 eval "ac_cv_func_MD5Init=no"
11828 eval "LIB_MD5Init="
11829 echo "$ac_t""no" 1>&6
11830 ;;
11831 *)
11832 eval "ac_cv_func_MD5Init=yes"
11833 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
11834 cat >> confdefs.h <<EOF
11835#define $ac_tr_func 1
11836EOF
11837
11838 cat >> confdefs.h <<EOF
11839#define $ac_tr_lib 1
11840EOF
11841
11842 echo "$ac_t""yes, in $ac_res" 1>&6
11843 ;;
11844esac
11845
11846
11847
11848
11849
11850echo $ac_n "checking for MD5_Init""... $ac_c" 1>&6
11851echo "configure:11852: checking for MD5_Init" >&5
11852if eval "test \"`echo '$''{'ac_cv_funclib_MD5_Init'+set}'`\" = set"; then
11853 echo $ac_n "(cached) $ac_c" 1>&6
11854else
11855
11856if eval "test \"\$ac_cv_func_MD5_Init\" != yes" ; then
11857 ac_save_LIBS="$LIBS"
11858 for ac_lib in "" crypto; do
11859 if test -n "$ac_lib"; then
11860 ac_lib="-l$ac_lib"
11861 else
11862 ac_lib=""
11863 fi
11864 LIBS=" $ac_lib $ac_save_LIBS"
11865 cat > conftest.$ac_ext <<EOF
11866#line 11867 "configure"
11867#include "confdefs.h"
11868
11869int main() {
11870MD5_Init()
11871; return 0; }
11872EOF
11873if { (eval echo configure:11874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11874 rm -rf conftest*
11875 eval "if test -n \"$ac_lib\";then ac_cv_funclib_MD5_Init=$ac_lib; else ac_cv_funclib_MD5_Init=yes; fi";break
11876else
11877 echo "configure: failed program was:" >&5
11878 cat conftest.$ac_ext >&5
11879fi
11880rm -f conftest*
11881 done
11882 eval "ac_cv_funclib_MD5_Init=\${ac_cv_funclib_MD5_Init-no}"
11883 LIBS="$ac_save_LIBS"
11884fi
11885
11886fi
11887
11888
11889eval "ac_res=\$ac_cv_funclib_MD5_Init"
11890
11891: << END
11892@@@funcs="$funcs MD5_Init"@@@
11893@@@libs="$libs "" crypto"@@@
11894END
11895
11896# MD5_Init
11897eval "ac_tr_func=HAVE_`echo MD5_Init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11898eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11899eval "LIB_MD5_Init=$ac_res"
11900
11901case "$ac_res" in
11902 yes)
11903 eval "ac_cv_func_MD5_Init=yes"
11904 eval "LIB_MD5_Init="
11905 cat >> confdefs.h <<EOF
11906#define $ac_tr_func 1
11907EOF
11908
11909 echo "$ac_t""yes" 1>&6
11910 ;;
11911 no)
11912 eval "ac_cv_func_MD5_Init=no"
11913 eval "LIB_MD5_Init="
11914 echo "$ac_t""no" 1>&6
11915 ;;
11916 *)
11917 eval "ac_cv_func_MD5_Init=yes"
11918 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
11919 cat >> confdefs.h <<EOF
11920#define $ac_tr_func 1
11921EOF
11922
11923 cat >> confdefs.h <<EOF
11924#define $ac_tr_lib 1
11925EOF
11926
11927 echo "$ac_t""yes, in $ac_res" 1>&6
11928 ;;
11929esac
11930
11931
11932
11933
11934
11935echo $ac_n "checking for SHA1Init""... $ac_c" 1>&6
11936echo "configure:11937: checking for SHA1Init" >&5
11937if eval "test \"`echo '$''{'ac_cv_funclib_SHA1Init'+set}'`\" = set"; then
11938 echo $ac_n "(cached) $ac_c" 1>&6
11939else
11940
11941if eval "test \"\$ac_cv_func_SHA1Init\" != yes" ; then
11942 ac_save_LIBS="$LIBS"
11943 for ac_lib in "" crypto; do
11944 if test -n "$ac_lib"; then
11945 ac_lib="-l$ac_lib"
11946 else
11947 ac_lib=""
11948 fi
11949 LIBS=" $ac_lib $ac_save_LIBS"
11950 cat > conftest.$ac_ext <<EOF
11951#line 11952 "configure"
11952#include "confdefs.h"
11953
11954int main() {
11955SHA1Init()
11956; return 0; }
11957EOF
11958if { (eval echo configure:11959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11959 rm -rf conftest*
11960 eval "if test -n \"$ac_lib\";then ac_cv_funclib_SHA1Init=$ac_lib; else ac_cv_funclib_SHA1Init=yes; fi";break
11961else
11962 echo "configure: failed program was:" >&5
11963 cat conftest.$ac_ext >&5
11964fi
11965rm -f conftest*
11966 done
11967 eval "ac_cv_funclib_SHA1Init=\${ac_cv_funclib_SHA1Init-no}"
11968 LIBS="$ac_save_LIBS"
11969fi
11970
11971fi
11972
11973
11974eval "ac_res=\$ac_cv_funclib_SHA1Init"
11975
11976: << END
11977@@@funcs="$funcs SHA1Init"@@@
11978@@@libs="$libs "" crypto"@@@
11979END
11980
11981# SHA1Init
11982eval "ac_tr_func=HAVE_`echo SHA1Init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11983eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11984eval "LIB_SHA1Init=$ac_res"
11985
11986case "$ac_res" in
11987 yes)
11988 eval "ac_cv_func_SHA1Init=yes"
11989 eval "LIB_SHA1Init="
11990 cat >> confdefs.h <<EOF
11991#define $ac_tr_func 1
11992EOF
11993
11994 echo "$ac_t""yes" 1>&6
11995 ;;
11996 no)
11997 eval "ac_cv_func_SHA1Init=no"
11998 eval "LIB_SHA1Init="
11999 echo "$ac_t""no" 1>&6
12000 ;;
12001 *)
12002 eval "ac_cv_func_SHA1Init=yes"
12003 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
12004 cat >> confdefs.h <<EOF
12005#define $ac_tr_func 1
12006EOF
12007
12008 cat >> confdefs.h <<EOF
12009#define $ac_tr_lib 1
12010EOF
12011
12012 echo "$ac_t""yes, in $ac_res" 1>&6
12013 ;;
12014esac
12015
12016
12017
12018
12019
12020echo $ac_n "checking for SHA1_Init""... $ac_c" 1>&6
12021echo "configure:12022: checking for SHA1_Init" >&5
12022if eval "test \"`echo '$''{'ac_cv_funclib_SHA1_Init'+set}'`\" = set"; then
12023 echo $ac_n "(cached) $ac_c" 1>&6
12024else
12025
12026if eval "test \"\$ac_cv_func_SHA1_Init\" != yes" ; then
12027 ac_save_LIBS="$LIBS"
12028 for ac_lib in "" crypto; do
12029 if test -n "$ac_lib"; then
12030 ac_lib="-l$ac_lib"
12031 else
12032 ac_lib=""
12033 fi
12034 LIBS=" $ac_lib $ac_save_LIBS"
12035 cat > conftest.$ac_ext <<EOF
12036#line 12037 "configure"
12037#include "confdefs.h"
12038
12039int main() {
12040SHA1_Init()
12041; return 0; }
12042EOF
12043if { (eval echo configure:12044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12044 rm -rf conftest*
12045 eval "if test -n \"$ac_lib\";then ac_cv_funclib_SHA1_Init=$ac_lib; else ac_cv_funclib_SHA1_Init=yes; fi";break
12046else
12047 echo "configure: failed program was:" >&5
12048 cat conftest.$ac_ext >&5
12049fi
12050rm -f conftest*
12051 done
12052 eval "ac_cv_funclib_SHA1_Init=\${ac_cv_funclib_SHA1_Init-no}"
12053 LIBS="$ac_save_LIBS"
12054fi
12055
12056fi
12057
12058
12059eval "ac_res=\$ac_cv_funclib_SHA1_Init"
12060
12061: << END
12062@@@funcs="$funcs SHA1_Init"@@@
12063@@@libs="$libs "" crypto"@@@
12064END
12065
12066# SHA1_Init
12067eval "ac_tr_func=HAVE_`echo SHA1_Init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
12068eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
12069eval "LIB_SHA1_Init=$ac_res"
12070
12071case "$ac_res" in
12072 yes)
12073 eval "ac_cv_func_SHA1_Init=yes"
12074 eval "LIB_SHA1_Init="
12075 cat >> confdefs.h <<EOF
12076#define $ac_tr_func 1
12077EOF
12078
12079 echo "$ac_t""yes" 1>&6
12080 ;;
12081 no)
12082 eval "ac_cv_func_SHA1_Init=no"
12083 eval "LIB_SHA1_Init="
12084 echo "$ac_t""no" 1>&6
12085 ;;
12086 *)
12087 eval "ac_cv_func_SHA1_Init=yes"
12088 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
12089 cat >> confdefs.h <<EOF
12090#define $ac_tr_func 1
12091EOF
12092
12093 cat >> confdefs.h <<EOF
12094#define $ac_tr_lib 1
12095EOF
12096
12097 echo "$ac_t""yes, in $ac_res" 1>&6
12098 ;;
12099esac
12100
12101
12102
12103
12104
12105echo $ac_n "checking for des_cbc_encrypt""... $ac_c" 1>&6
12106echo "configure:12107: checking for des_cbc_encrypt" >&5
12107if eval "test \"`echo '$''{'ac_cv_funclib_des_cbc_encrypt'+set}'`\" = set"; then
12108 echo $ac_n "(cached) $ac_c" 1>&6
12109else
12110
12111if eval "test \"\$ac_cv_func_des_cbc_encrypt\" != yes" ; then
12112 ac_save_LIBS="$LIBS"
12113 for ac_lib in "" crypto des; do
12114 if test -n "$ac_lib"; then
12115 ac_lib="-l$ac_lib"
12116 else
12117 ac_lib=""
12118 fi
12119 LIBS=" $ac_lib $ac_save_LIBS"
12120 cat > conftest.$ac_ext <<EOF
12121#line 12122 "configure"
12122#include "confdefs.h"
12123
12124int main() {
12125des_cbc_encrypt()
12126; return 0; }
12127EOF
12128if { (eval echo configure:12129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12129 rm -rf conftest*
12130 eval "if test -n \"$ac_lib\";then ac_cv_funclib_des_cbc_encrypt=$ac_lib; else ac_cv_funclib_des_cbc_encrypt=yes; fi";break
12131else
12132 echo "configure: failed program was:" >&5
12133 cat conftest.$ac_ext >&5
12134fi
12135rm -f conftest*
12136 done
12137 eval "ac_cv_funclib_des_cbc_encrypt=\${ac_cv_funclib_des_cbc_encrypt-no}"
12138 LIBS="$ac_save_LIBS"
12139fi
12140
12141fi
12142
12143
12144eval "ac_res=\$ac_cv_funclib_des_cbc_encrypt"
12145
12146: << END
12147@@@funcs="$funcs des_cbc_encrypt"@@@
12148@@@libs="$libs "" crypto des"@@@
12149END
12150
12151# des_cbc_encrypt
12152eval "ac_tr_func=HAVE_`echo des_cbc_encrypt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
12153eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
12154eval "LIB_des_cbc_encrypt=$ac_res"
12155
12156case "$ac_res" in
12157 yes)
12158 eval "ac_cv_func_des_cbc_encrypt=yes"
12159 eval "LIB_des_cbc_encrypt="
12160 cat >> confdefs.h <<EOF
12161#define $ac_tr_func 1
12162EOF
12163
12164 echo "$ac_t""yes" 1>&6
12165 ;;
12166 no)
12167 eval "ac_cv_func_des_cbc_encrypt=no"
12168 eval "LIB_des_cbc_encrypt="
12169 echo "$ac_t""no" 1>&6
12170 ;;
12171 *)
12172 eval "ac_cv_func_des_cbc_encrypt=yes"
12173 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
12174 cat >> confdefs.h <<EOF
12175#define $ac_tr_func 1
12176EOF
12177
12178 cat >> confdefs.h <<EOF
12179#define $ac_tr_lib 1
12180EOF
12181
12182 echo "$ac_t""yes, in $ac_res" 1>&6
12183 ;;
12184esac
12185
12186
12187
12188
12189
12190
12191
12192
12193echo $ac_n "checking for el_init""... $ac_c" 1>&6
12194echo "configure:12195: checking for el_init" >&5
12195if eval "test \"`echo '$''{'ac_cv_funclib_el_init'+set}'`\" = set"; then
12196 echo $ac_n "(cached) $ac_c" 1>&6
12197else
12198
12199if eval "test \"\$ac_cv_func_el_init\" != yes" ; then
12200 ac_save_LIBS="$LIBS"
12201 for ac_lib in "" edit; do
12202 if test -n "$ac_lib"; then
12203 ac_lib="-l$ac_lib"
12204 else
12205 ac_lib=""
12206 fi
12207 LIBS=" $ac_lib $LIB_tgetent $ac_save_LIBS"
12208 cat > conftest.$ac_ext <<EOF
12209#line 12210 "configure"
12210#include "confdefs.h"
12211
12212int main() {
12213el_init()
12214; return 0; }
12215EOF
12216if { (eval echo configure:12217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12217 rm -rf conftest*
12218 eval "if test -n \"$ac_lib\";then ac_cv_funclib_el_init=$ac_lib; else ac_cv_funclib_el_init=yes; fi";break
12219else
12220 echo "configure: failed program was:" >&5
12221 cat conftest.$ac_ext >&5
12222fi
12223rm -f conftest*
12224 done
12225 eval "ac_cv_funclib_el_init=\${ac_cv_funclib_el_init-no}"
12226 LIBS="$ac_save_LIBS"
12227fi
12228
12229fi
12230
12231
12232eval "ac_res=\$ac_cv_funclib_el_init"
12233
12234: << END
12235@@@funcs="$funcs el_init"@@@
12236@@@libs="$libs "" edit"@@@
12237END
12238
12239# el_init
12240eval "ac_tr_func=HAVE_`echo el_init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
12241eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
12242eval "LIB_el_init=$ac_res"
12243
12244case "$ac_res" in
12245 yes)
12246 eval "ac_cv_func_el_init=yes"
12247 eval "LIB_el_init="
12248 cat >> confdefs.h <<EOF
12249#define $ac_tr_func 1
12250EOF
12251
12252 echo "$ac_t""yes" 1>&6
12253 ;;
12254 no)
12255 eval "ac_cv_func_el_init=no"
12256 eval "LIB_el_init="
12257 echo "$ac_t""no" 1>&6
12258 ;;
12259 *)
12260 eval "ac_cv_func_el_init=yes"
12261 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
12262 cat >> confdefs.h <<EOF
12263#define $ac_tr_func 1
12264EOF
12265
12266 cat >> confdefs.h <<EOF
12267#define $ac_tr_lib 1
12268EOF
12269
12270 echo "$ac_t""yes, in $ac_res" 1>&6
12271 ;;
12272esac
12273
12274
12275if test "$ac_cv_func_el_init" = yes ; then
12276 echo $ac_n "checking for four argument el_init""... $ac_c" 1>&6
12277echo "configure:12278: checking for four argument el_init" >&5
12278if eval "test \"`echo '$''{'ac_cv_func_el_init_four'+set}'`\" = set"; then
12279 echo $ac_n "(cached) $ac_c" 1>&6
12280else
12281
12282 cat > conftest.$ac_ext <<EOF
12283#line 12284 "configure"
12284#include "confdefs.h"
12285#include <stdio.h>
12286 #include <histedit.h>
12287int main() {
12288el_init("", NULL, NULL, NULL);
12289; return 0; }
12290EOF
12291if { (eval echo configure:12292: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12292 rm -rf conftest*
12293 ac_cv_func_el_init_four=yes
12294else
12295 echo "configure: failed program was:" >&5
12296 cat conftest.$ac_ext >&5
12297 rm -rf conftest*
12298 ac_cv_func_el_init_four=no
12299fi
12300rm -f conftest*
12301fi
12302
12303echo "$ac_t""$ac_cv_func_el_init_four" 1>&6
12304 if test "$ac_cv_func_el_init_four" = yes; then
12305 cat >> confdefs.h <<\EOF
12306#define HAVE_FOUR_VALUED_EL_INIT 1
12307EOF
12308
12309 fi
12310fi
12311
12312
12313ac_foo=no
12314if test "$with_readline" = yes; then
12315 :
12316elif test "$ac_cv_func_readline" = yes; then
12317 :
12318elif test "$ac_cv_func_el_init" = yes; then
12319 ac_foo=yes
12320 LIB_readline="\$(top_builddir)/lib/editline/libel_compat.a $LIB_el_init"
12321else
12322 LIB_readline='$(top_builddir)/lib/editline/libeditline.a'
12323fi
12324
12325
12326if test "$ac_foo" = yes; then
12327 el_compat_TRUE=
12328 el_compat_FALSE='#'
12329else
12330 el_compat_TRUE='#'
12331 el_compat_FALSE=
12332fi
12333if test "$readline_libdir"; then
12334 LIB_readline="-rpath $readline_libdir $LIB_readline"
12335fi
12336LIB_readline="$LIB_readline \$(LIB_tgetent)"
12337cat >> confdefs.h <<\EOF
12338#define HAVE_READLINE 1
12339EOF
12340
12341
12342cat >> confdefs.h <<\EOF
12343#define AUTHENTICATION 1
12344EOF
12345cat >> confdefs.h <<\EOF
12346#define ENCRYPTION 1
12347EOF
12348cat >> confdefs.h <<\EOF
12349#define DES_ENCRYPTION 1
12350EOF
12351cat >> confdefs.h <<\EOF
12352#define DIAGNOSTICS 1
12353EOF
12354cat >> confdefs.h <<\EOF
12355#define OLD_ENVIRON 1
12356EOF
12357if false; then
12358cat >> confdefs.h <<\EOF
12359#define ENV_HACK 1
12360EOF
12361
12362fi
12363
12364# Simple test for streamspty, based on the existance of getmsg(), alas
12365# this breaks on SunOS4 which have streams but BSD-like ptys
12366#
12367# And also something wierd has happend with dec-osf1, fallback to bsd-ptys
12368
12369echo $ac_n "checking for streamspty""... $ac_c" 1>&6
12370echo "configure:12371: checking for streamspty" >&5
12371case "$host" in
12372*-*-aix3*|*-*-sunos4*|*-*-osf*|*-*-hpux10*)
12373 krb_cv_sys_streamspty=no
12374 ;;
12375*)
12376 krb_cv_sys_streamspty="$ac_cv_func_getmsg"
12377 ;;
12378esac
12379if test "$krb_cv_sys_streamspty" = yes; then
12380 cat >> confdefs.h <<\EOF
12381#define STREAMSPTY 1
12382EOF
12383
12384fi
12385echo "$ac_t""$krb_cv_sys_streamspty" 1>&6
12386
12387
12388echo $ac_n "checking which authentication modules should be built""... $ac_c" 1>&6
12389echo "configure:12390: checking which authentication modules should be built" >&5
12390
12391LIB_AUTH_SUBDIRS=
12392
12393if test "$ac_cv_header_siad_h" = yes; then
12394 LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS sia"
12395fi
12396
12397if test "$ac_cv_header_security_pam_modules_h" = yes -a "$enable_shared" = yes; then
12398 LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS pam"
12399fi
12400
12401case "${host}" in
12402*-*-irix[56]*) LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS afskauthlib" ;;
12403esac
12404
12405echo "$ac_t""$LIB_AUTH_SUBDIRS" 1>&6
12406
12407
12408
12409
12410test "x$prefix" = xNONE && prefix=$ac_default_prefix
12411test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12412
12413for i in bin lib libexec sbin; do
12414 i=${i}dir
12415 foo=`echo $i | tr 'xindiscernible' 'XINDISCERNIBLE'`
12416 x="\$${i}"
12417 eval y="$x"
12418 while test "x$y" != "x$x"; do
12419 x="$y"
12420 eval y="$x"
12421 done
12422 cat >> confdefs.h <<EOF
12423#define $foo "$x"
12424EOF
12425
12426done
12427
12428if false; then
12429 # hack to shut up automake
12430 LIBOBJS="$LIBOBJS make-print-version.o"
12431fi
12432LTLIBOBJS=`echo "$LIBOBJS" | sed 's/\.o/\.lo/g'`
12433
12434trap '' 1 2 15
12435cat > confcache <<\EOF
12436# This file is a shell script that caches the results of configure
12437# tests run on this system so they can be shared between configure
12438# scripts and configure runs. It is not useful on other systems.
12439# If it contains results you don't want to keep, you may remove or edit it.
12440#
12441# By default, configure uses ./config.cache as the cache file,
12442# creating it if it does not exist already. You can give configure
12443# the --cache-file=FILE option to use a different cache file; that is
12444# what configure does when it calls configure scripts in
12445# subdirectories, so they share the cache.
12446# Giving --cache-file=/dev/null disables caching, for debugging configure.
12447# config.status only pays attention to the cache file if you give it the
12448# --recheck option to rerun configure.
12449#
12450EOF
12451# The following way of writing the cache mishandles newlines in values,
12452# but we know of no workaround that is simple, portable, and efficient.
12453# So, don't put newlines in cache variables' values.
12454# Ultrix sh set writes to stderr and can't be redirected directly,
12455# and sets the high bit in the cache file unless we assign to the vars.
12456(set) 2>&1 |
12457 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12458 *ac_space=\ *)
12459 # `set' does not quote correctly, so add quotes (double-quote substitution
12460 # turns \\\\ into \\, and sed turns \\ into \).
12461 sed -n \
12462 -e "s/'/'\\\\''/g" \
12463 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
12464 ;;
12465 *)
12466 # `set' quotes correctly as required by POSIX, so do not add quotes.
12467 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
12468 ;;
12469 esac >> confcache
12470if cmp -s $cache_file confcache; then
12471 :
12472else
12473 if test -w $cache_file; then
12474 echo "updating cache $cache_file"
12475 cat confcache > $cache_file
12476 else
12477 echo "not updating unwritable cache $cache_file"
12478 fi
12479fi
12480rm -f confcache
12481
12482trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
12483
12484test "x$prefix" = xNONE && prefix=$ac_default_prefix
12485# Let make expand exec_prefix.
12486test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12487
12488# Any assignment to VPATH causes Sun make to only execute
12489# the first set of double-colon rules, so remove it if not needed.
12490# If there is a colon in the path, we need to keep it.
12491if test "x$srcdir" = x.; then
12492 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
12493fi
12494
12495trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
12496
12497DEFS=-DHAVE_CONFIG_H
12498
12499# Without the "./", some shells look in PATH for config.status.
12500: ${CONFIG_STATUS=./config.status}
12501
12502echo creating $CONFIG_STATUS
12503rm -f $CONFIG_STATUS
12504cat > $CONFIG_STATUS <<EOF
12505#! /bin/sh
12506# Generated automatically by configure.
12507# Run this file to recreate the current configuration.
12508# This directory was configured as follows,
12509# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12510#
12511# $0 $ac_configure_args
12512#
12513# Compiler output produced by configure, useful for debugging
12514# configure, is in ./config.log if it exists.
12515
12516ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
12517for ac_option
12518do
12519 case "\$ac_option" in
12520 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12521 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
12522 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
12523 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
12524 echo "$CONFIG_STATUS generated by autoconf version 2.13"
12525 exit 0 ;;
12526 -help | --help | --hel | --he | --h)
12527 echo "\$ac_cs_usage"; exit 0 ;;
12528 *) echo "\$ac_cs_usage"; exit 1 ;;
12529 esac
12530done
12531
12532ac_given_srcdir=$srcdir
12533ac_given_INSTALL="$INSTALL"
12534
12535trap 'rm -fr `echo "Makefile \
12536 include/Makefile \
12537 include/kadm5/Makefile \
12538 lib/Makefile \
12539 lib/45/Makefile \
12540 lib/auth/Makefile \
12541 lib/auth/afskauthlib/Makefile \
12542 lib/auth/pam/Makefile \
12543 lib/auth/sia/Makefile \
12544 lib/asn1/Makefile \
12545 lib/com_err/Makefile \
12546 lib/des/Makefile \
12547 lib/editline/Makefile \
12548 lib/gssapi/Makefile \
12549 lib/hdb/Makefile \
12550 lib/kadm5/Makefile \
12551 lib/kafs/Makefile \
12552 lib/krb5/Makefile \
12553 lib/otp/Makefile \
12554 lib/roken/Makefile \
12555 lib/sl/Makefile \
12556 kuser/Makefile \
12557 kpasswd/Makefile \
12558 kadmin/Makefile \
12559 admin/Makefile \
12560 kdc/Makefile \
12561 appl/Makefile \
12562 appl/afsutil/Makefile \
12563 appl/ftp/Makefile \
12564 appl/ftp/common/Makefile \
12565 appl/ftp/ftp/Makefile \
12566 appl/ftp/ftpd/Makefile \
12567 appl/kauth/Makefile \
12568 appl/kx/Makefile \
12569 appl/login/Makefile \
12570 appl/otp/Makefile \
12571 appl/popper/Makefile \
12572 appl/push/Makefile \
12573 appl/rsh/Makefile \
12574 appl/su/Makefile \
12575 appl/xnlock/Makefile \
12576 appl/telnet/Makefile \
12577 appl/telnet/libtelnet/Makefile \
12578 appl/telnet/telnet/Makefile \
12579 appl/telnet/telnetd/Makefile \
12580 appl/test/Makefile \
12581 appl/kf/Makefile \
12582 doc/Makefile \
12583 include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
12584EOF
12585cat >> $CONFIG_STATUS <<EOF
12586
12587# Protect against being on the right side of a sed subst in config.status.
12588sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
12589 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
12590$ac_vpsub
12591$extrasub
12592s%@SHELL@%$SHELL%g
12593s%@CFLAGS@%$CFLAGS%g
12594s%@CPPFLAGS@%$CPPFLAGS%g
12595s%@CXXFLAGS@%$CXXFLAGS%g
12596s%@FFLAGS@%$FFLAGS%g
12597s%@DEFS@%$DEFS%g
12598s%@LDFLAGS@%$LDFLAGS%g
12599s%@LIBS@%$LIBS%g
12600s%@exec_prefix@%$exec_prefix%g
12601s%@prefix@%$prefix%g
12602s%@program_transform_name@%$program_transform_name%g
12603s%@bindir@%$bindir%g
12604s%@sbindir@%$sbindir%g
12605s%@libexecdir@%$libexecdir%g
12606s%@datadir@%$datadir%g
12607s%@sysconfdir@%$sysconfdir%g
12608s%@sharedstatedir@%$sharedstatedir%g
12609s%@localstatedir@%$localstatedir%g
12610s%@libdir@%$libdir%g
12611s%@includedir@%$includedir%g
12612s%@oldincludedir@%$oldincludedir%g
12613s%@infodir@%$infodir%g
12614s%@mandir@%$mandir%g
12615s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
12616s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
12617s%@INSTALL_DATA@%$INSTALL_DATA%g
12618s%@PACKAGE@%$PACKAGE%g
12619s%@VERSION@%$VERSION%g
12620s%@ACLOCAL@%$ACLOCAL%g
12621s%@AUTOCONF@%$AUTOCONF%g
12622s%@AUTOMAKE@%$AUTOMAKE%g
12623s%@AUTOHEADER@%$AUTOHEADER%g
12624s%@MAKEINFO@%$MAKEINFO%g
12625s%@SET_MAKE@%$SET_MAKE%g
12626s%@host@%$host%g
12627s%@host_alias@%$host_alias%g
12628s%@host_cpu@%$host_cpu%g
12629s%@host_vendor@%$host_vendor%g
12630s%@host_os@%$host_os%g
12631s%@CANONICAL_HOST@%$CANONICAL_HOST%g
12632s%@CC@%$CC%g
12633s%@OBJEXT@%$OBJEXT%g
12634s%@EXEEXT@%$EXEEXT%g
12635s%@YACC@%$YACC%g
12636s%@LEX@%$LEX%g
12637s%@LEXLIB@%$LEXLIB%g
12638s%@CPP@%$CPP%g
12639s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
12640s%@RANLIB@%$RANLIB%g
12641s%@AWK@%$AWK%g
12642s%@LN_S@%$LN_S%g
12643s%@LD@%$LD%g
12644s%@NM@%$NM%g
12645s%@LIBTOOL@%$LIBTOOL%g
12646s%@WFLAGS@%$WFLAGS%g
12647s%@WFLAGS_NOUNUSED@%$WFLAGS_NOUNUSED%g
12648s%@WFLAGS_NOIMPLICITINT@%$WFLAGS_NOIMPLICITINT%g
12649s%@INCLUDE_krb4@%$INCLUDE_krb4%g
12650s%@LIB_krb4@%$LIB_krb4%g
12651s%@EXTRA_LIB45@%$EXTRA_LIB45%g
12652s%@LIB_krb_enable_debug@%$LIB_krb_enable_debug%g
12653s%@LIB_krb_disable_debug@%$LIB_krb_disable_debug%g
12654s%@LIB_krb_get_our_ip_for_realm@%$LIB_krb_get_our_ip_for_realm%g
12655s%@KRB4_TRUE@%$KRB4_TRUE%g
12656s%@KRB4_FALSE@%$KRB4_FALSE%g
12657s%@KRB5_TRUE@%$KRB5_TRUE%g
12658s%@KRB5_FALSE@%$KRB5_FALSE%g
12659s%@LIB_kdb@%$LIB_kdb%g
12660s%@AIX_TRUE@%$AIX_TRUE%g
12661s%@AIX_FALSE@%$AIX_FALSE%g
12662s%@AIX4_TRUE@%$AIX4_TRUE%g
12663s%@AIX4_FALSE@%$AIX4_FALSE%g
12664s%@AIX_DYNAMIC_AFS_TRUE@%$AIX_DYNAMIC_AFS_TRUE%g
12665s%@AIX_DYNAMIC_AFS_FALSE@%$AIX_DYNAMIC_AFS_FALSE%g
12666s%@LIB_dlopen@%$LIB_dlopen%g
12667s%@HAVE_DLOPEN_TRUE@%$HAVE_DLOPEN_TRUE%g
12668s%@HAVE_DLOPEN_FALSE@%$HAVE_DLOPEN_FALSE%g
12669s%@AFS_EXTRA_LD@%$AFS_EXTRA_LD%g
12670s%@AIX_EXTRA_KAFS@%$AIX_EXTRA_KAFS%g
12671s%@LIB_otp@%$LIB_otp%g
12672s%@OTP_TRUE@%$OTP_TRUE%g
12673s%@OTP_FALSE@%$OTP_FALSE%g
12674s%@LIB_security@%$LIB_security%g
12675s%@NROFF@%$NROFF%g
12676s%@GROFF@%$GROFF%g
12677s%@CATMAN@%$CATMAN%g
12678s%@CATMAN_TRUE@%$CATMAN_TRUE%g
12679s%@CATMAN_FALSE@%$CATMAN_FALSE%g
12680s%@CATMANEXT@%$CATMANEXT%g
12681s%@INCLUDE_readline@%$INCLUDE_readline%g
12682s%@LIB_readline@%$LIB_readline%g
12683s%@INCLUDE_hesiod@%$INCLUDE_hesiod%g
12684s%@LIB_hesiod@%$LIB_hesiod%g
12685s%@X_CFLAGS@%$X_CFLAGS%g
12686s%@X_PRE_LIBS@%$X_PRE_LIBS%g
12687s%@X_LIBS@%$X_LIBS%g
12688s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
12689s%@MAKE_X_PROGS_BIN_PROGS@%$MAKE_X_PROGS_BIN_PROGS%g
12690s%@MAKE_X_PROGS_BIN_SCRPTS@%$MAKE_X_PROGS_BIN_SCRPTS%g
12691s%@MAKE_X_PROGS_LIBEXEC_PROGS@%$MAKE_X_PROGS_LIBEXEC_PROGS%g
12692s%@LIB_XauWriteAuth@%$LIB_XauWriteAuth%g
12693s%@LIB_XauReadAuth@%$LIB_XauReadAuth%g
12694s%@LIB_XauFileName@%$LIB_XauFileName%g
12695s%@NEED_WRITEAUTH_TRUE@%$NEED_WRITEAUTH_TRUE%g
12696s%@NEED_WRITEAUTH_FALSE@%$NEED_WRITEAUTH_FALSE%g
12697s%@have_err_h_TRUE@%$have_err_h_TRUE%g
12698s%@have_err_h_FALSE@%$have_err_h_FALSE%g
12699s%@have_fnmatch_h_TRUE@%$have_fnmatch_h_TRUE%g
12700s%@have_fnmatch_h_FALSE@%$have_fnmatch_h_FALSE%g
12701s%@LIB_socket@%$LIB_socket%g
12702s%@LIB_gethostbyname@%$LIB_gethostbyname%g
12703s%@LIB_syslog@%$LIB_syslog%g
12704s%@LIB_logwtmp@%$LIB_logwtmp%g
12705s%@LIB_tgetent@%$LIB_tgetent%g
12706s%@LIB_gethostbyname2@%$LIB_gethostbyname2%g
12707s%@LIB_res_search@%$LIB_res_search%g
12708s%@LIB_dn_expand@%$LIB_dn_expand%g
12709s%@have_glob_h_TRUE@%$have_glob_h_TRUE%g
12710s%@have_glob_h_FALSE@%$have_glob_h_FALSE%g
12711s%@LIB_dbopen@%$LIB_dbopen%g
12712s%@LIB_dbm_firstkey@%$LIB_dbm_firstkey%g
12713s%@DBLIB@%$DBLIB%g
12714s%@LIB_getpwnam_r@%$LIB_getpwnam_r%g
12715s%@LIB_getsockopt@%$LIB_getsockopt%g
12716s%@LIB_setsockopt@%$LIB_setsockopt%g
12717s%@VOID_RETSIGTYPE@%$VOID_RETSIGTYPE%g
12718s%@LIB_hstrerror@%$LIB_hstrerror%g
12719s%@LIBOBJS@%$LIBOBJS%g
12720s%@LIB_crypt@%$LIB_crypt%g
12721s%@LIB_roken@%$LIB_roken%g
12722s%@LIB_MD4Init@%$LIB_MD4Init%g
12723s%@LIB_MD4_Init@%$LIB_MD4_Init%g
12724s%@LIB_MD5Init@%$LIB_MD5Init%g
12725s%@LIB_MD5_Init@%$LIB_MD5_Init%g
12726s%@LIB_SHA1Init@%$LIB_SHA1Init%g
12727s%@LIB_SHA1_Init@%$LIB_SHA1_Init%g
12728s%@LIB_des_cbc_encrypt@%$LIB_des_cbc_encrypt%g
12729s%@LIB_el_init@%$LIB_el_init%g
12730s%@el_compat_TRUE@%$el_compat_TRUE%g
12731s%@el_compat_FALSE@%$el_compat_FALSE%g
12732s%@LIB_AUTH_SUBDIRS@%$LIB_AUTH_SUBDIRS%g
12733s%@LTLIBOBJS@%$LTLIBOBJS%g
12734
12735CEOF
12736EOF
12737
12738cat >> $CONFIG_STATUS <<\EOF
12739
12740# Split the substitutions into bite-sized pieces for seds with
12741# small command number limits, like on Digital OSF/1 and HP-UX.
12742ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
12743ac_file=1 # Number of current file.
12744ac_beg=1 # First line for current file.
12745ac_end=$ac_max_sed_cmds # Line after last line for current file.
12746ac_more_lines=:
12747ac_sed_cmds=""
12748while $ac_more_lines; do
12749 if test $ac_beg -gt 1; then
12750 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
12751 else
12752 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
12753 fi
12754 if test ! -s conftest.s$ac_file; then
12755 ac_more_lines=false
12756 rm -f conftest.s$ac_file
12757 else
12758 if test -z "$ac_sed_cmds"; then
12759 ac_sed_cmds="sed -f conftest.s$ac_file"
12760 else
12761 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
12762 fi
12763 ac_file=`expr $ac_file + 1`
12764 ac_beg=$ac_end
12765 ac_end=`expr $ac_end + $ac_max_sed_cmds`
12766 fi
12767done
12768if test -z "$ac_sed_cmds"; then
12769 ac_sed_cmds=cat
12770fi
12771EOF
12772
12773cat >> $CONFIG_STATUS <<EOF
12774
12775CONFIG_FILES=\${CONFIG_FILES-"Makefile \
12776 include/Makefile \
12777 include/kadm5/Makefile \
12778 lib/Makefile \
12779 lib/45/Makefile \
12780 lib/auth/Makefile \
12781 lib/auth/afskauthlib/Makefile \
12782 lib/auth/pam/Makefile \
12783 lib/auth/sia/Makefile \
12784 lib/asn1/Makefile \
12785 lib/com_err/Makefile \
12786 lib/des/Makefile \
12787 lib/editline/Makefile \
12788 lib/gssapi/Makefile \
12789 lib/hdb/Makefile \
12790 lib/kadm5/Makefile \
12791 lib/kafs/Makefile \
12792 lib/krb5/Makefile \
12793 lib/otp/Makefile \
12794 lib/roken/Makefile \
12795 lib/sl/Makefile \
12796 kuser/Makefile \
12797 kpasswd/Makefile \
12798 kadmin/Makefile \
12799 admin/Makefile \
12800 kdc/Makefile \
12801 appl/Makefile \
12802 appl/afsutil/Makefile \
12803 appl/ftp/Makefile \
12804 appl/ftp/common/Makefile \
12805 appl/ftp/ftp/Makefile \
12806 appl/ftp/ftpd/Makefile \
12807 appl/kauth/Makefile \
12808 appl/kx/Makefile \
12809 appl/login/Makefile \
12810 appl/otp/Makefile \
12811 appl/popper/Makefile \
12812 appl/push/Makefile \
12813 appl/rsh/Makefile \
12814 appl/su/Makefile \
12815 appl/xnlock/Makefile \
12816 appl/telnet/Makefile \
12817 appl/telnet/libtelnet/Makefile \
12818 appl/telnet/telnet/Makefile \
12819 appl/telnet/telnetd/Makefile \
12820 appl/test/Makefile \
12821 appl/kf/Makefile \
12822 doc/Makefile \
12823"}
12824EOF
12825cat >> $CONFIG_STATUS <<\EOF
12826for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
12827 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12828 case "$ac_file" in
12829 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12830 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12831 *) ac_file_in="${ac_file}.in" ;;
12832 esac
12833
12834 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
12835
12836 # Remove last slash and all that follows it. Not all systems have dirname.
12837 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12838 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12839 # The file is in a subdirectory.
12840 test ! -d "$ac_dir" && mkdir "$ac_dir"
12841 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
12842 # A "../" for each directory in $ac_dir_suffix.
12843 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
12844 else
12845 ac_dir_suffix= ac_dots=
12846 fi
12847
12848 case "$ac_given_srcdir" in
12849 .) srcdir=.
12850 if test -z "$ac_dots"; then top_srcdir=.
12851 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
12852 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
12853 *) # Relative path.
12854 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
12855 top_srcdir="$ac_dots$ac_given_srcdir" ;;
12856 esac
12857
12858 case "$ac_given_INSTALL" in
12859 [/$]*) INSTALL="$ac_given_INSTALL" ;;
12860 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
12861 esac
12862
12863 echo creating "$ac_file"
12864 rm -f "$ac_file"
12865 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
12866 case "$ac_file" in
12867 *Makefile*) ac_comsub="1i\\
12868# $configure_input" ;;
12869 *) ac_comsub= ;;
12870 esac
12871
12872 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12873 sed -e "$ac_comsub
12874s%@configure_input@%$configure_input%g
12875s%@srcdir@%$srcdir%g
12876s%@top_srcdir@%$top_srcdir%g
12877s%@INSTALL@%$INSTALL%g
12878" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
12879fi; done
12880rm -f conftest.s*
12881
12882# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12883# NAME is the cpp macro being defined and VALUE is the value it is being given.
12884#
12885# ac_d sets the value in "#define NAME VALUE" lines.
12886ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12887ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
12888ac_dC='\3'
12889ac_dD='%g'
12890# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
12891ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12892ac_uB='\([ ]\)%\1#\2define\3'
12893ac_uC=' '
12894ac_uD='\4%g'
12895# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12896ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12897ac_eB='$%\1#\2define\3'
12898ac_eC=' '
12899ac_eD='%g'
12900
12901if test "${CONFIG_HEADERS+set}" != set; then
12902EOF
12903cat >> $CONFIG_STATUS <<EOF
12904 CONFIG_HEADERS="include/config.h"
12905EOF
12906cat >> $CONFIG_STATUS <<\EOF
12907fi
12908for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
12909 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12910 case "$ac_file" in
12911 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12912 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12913 *) ac_file_in="${ac_file}.in" ;;
12914 esac
12915
12916 echo creating $ac_file
12917
12918 rm -f conftest.frag conftest.in conftest.out
12919 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12920 cat $ac_file_inputs > conftest.in
12921
12922EOF
12923
12924# Transform confdefs.h into a sed script conftest.vals that substitutes
12925# the proper values into config.h.in to produce config.h. And first:
12926# Protect against being on the right side of a sed subst in config.status.
12927# Protect against being in an unquoted here document in config.status.
12928rm -f conftest.vals
12929cat > conftest.hdr <<\EOF
12930s/[\\&%]/\\&/g
12931s%[\\$`]%\\&%g
12932s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
12933s%ac_d%ac_u%gp
12934s%ac_u%ac_e%gp
12935EOF
12936sed -n -f conftest.hdr confdefs.h > conftest.vals
12937rm -f conftest.hdr
12938
12939# This sed command replaces #undef with comments. This is necessary, for
12940# example, in the case of _POSIX_SOURCE, which is predefined and required
12941# on some systems where configure will not decide to define it.
12942cat >> conftest.vals <<\EOF
12943s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
12944EOF
12945
12946# Break up conftest.vals because some shells have a limit on
12947# the size of here documents, and old seds have small limits too.
12948
12949rm -f conftest.tail
12950while :
12951do
12952 ac_lines=`grep -c . conftest.vals`
12953 # grep -c gives empty output for an empty file on some AIX systems.
12954 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
12955 # Write a limited-size here document to conftest.frag.
12956 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
12957 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
12958 echo 'CEOF
12959 sed -f conftest.frag conftest.in > conftest.out
12960 rm -f conftest.in
12961 mv conftest.out conftest.in
12962' >> $CONFIG_STATUS
12963 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
12964 rm -f conftest.vals
12965 mv conftest.tail conftest.vals
12966done
12967rm -f conftest.vals
12968
12969cat >> $CONFIG_STATUS <<\EOF
12970 rm -f conftest.frag conftest.h
12971 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
12972 cat conftest.in >> conftest.h
12973 rm -f conftest.in
12974 if cmp -s $ac_file conftest.h 2>/dev/null; then
12975 echo "$ac_file is unchanged"
12976 rm -f conftest.h
12977 else
12978 # Remove last slash and all that follows it. Not all systems have dirname.
12979 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12980 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12981 # The file is in a subdirectory.
12982 test ! -d "$ac_dir" && mkdir "$ac_dir"
12983 fi
12984 rm -f $ac_file
12985 mv conftest.h $ac_file
12986 fi
12987fi; done
12988
12989EOF
12990cat >> $CONFIG_STATUS <<EOF
12991
12992
12993EOF
12994cat >> $CONFIG_STATUS <<\EOF
12995test -z "$CONFIG_HEADERS" || echo timestamp > include/stamp-h
12996
12997exit 0
12998EOF
12999chmod +x $CONFIG_STATUS
13000rm -fr confdefs* $ac_clean_files
13001test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
13002
13003
13004HEIMDALVERSION="$PACKAGE-$VERSION"
13005
13006cat > include/newversion.h.in <<EOF
13007char *heimdal_long_version = "@(#)\$Version: $HEIMDALVERSION by @USER@ on @HOST@ ($host) @DATE@ \$";
13008char *heimdal_version = "$HEIMDALVERSION";
13009EOF
13010
13011if test -f include/version.h && cmp -s include/newversion.h.in include/version.h.in; then
13012 echo "include/version.h is unchanged"
13013 rm -f include/newversion.h.in
13014else
13015 echo "creating include/version.h"
13016 User=${USER-${LOGNAME}}
13017 Host=`(hostname || uname -n || echo unknown) 2>/dev/null | sed 1q`
13018 Date=`date`
13019 mv -f include/newversion.h.in include/version.h.in
13020 sed -e "s/@USER@/$User/" -e "s/@HOST@/$Host/" -e "s/@DATE@/$Date/" include/version.h.in > include/version.h
13021fi