2 # From configure.in Revision: 1.278 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.49b for heimdal 0.3f.
6 # Report bugs to <heimdal-bugs@pdc.kth.se>.
8 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000
9 # Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 if expr a : '\(a\)' >/dev/null 2>&1; then
26 # Support unset when possible.
27 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
34 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
35 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
36 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
37 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
38 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
39 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
40 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
41 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
44 # We need space, tab and new line, in precisely that order.
50 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
52 cat >config.log << EOF
53 This file contains any messages produced by compilers while
54 running configure, to aid debugging if configure makes a mistake.
56 It was created by $as_me (heimdal 0.3f) 2.49b, executed with
59 on `(hostname || uname -n) 2>/dev/null | sed 1q`:
61 uname -m = `(uname -m) 2>/dev/null || echo unknown`
62 uname -r = `(uname -r) 2>/dev/null || echo unknown`
63 uname -s = `(uname -s) 2>/dev/null || echo unknown`
64 uname -v = `(uname -v) 2>/dev/null || echo unknown`
66 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
67 /bin/uname -X = `(/bin/uname -X) 2>/dev/null`
69 /bin/arch = `(/bin/arch) 2>/dev/null`
70 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
71 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
72 hostinfo = `(hostinfo) 2>/dev/null`
73 /bin/machine = `(/bin/machine) 2>/dev/null`
74 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
75 /bin/universe = `(/bin/universe) 2>/dev/null`
80 # File descriptor usage:
83 # 2 errors and warnings
84 # 3 some systems may open it to /dev/tty
85 # 4 used on the Kubota Titan
86 # 6 checking for... messages and results
87 # 5 compiler messages saved in config.log
88 if test "$silent" = yes; then
98 ac_default_prefix=/usr/local
102 SHELL=${CONFIG_SHELL-/bin/sh}
104 # Maximum number of lines to put in a shell here document.
105 # This variable seems obsolete. It should probably be removed, and
106 # only ac_max_sed_lines should be used.
107 : ${ac_max_here_lines=38}
110 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
111 # so uname gets run too.
112 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
114 # Name of the executable.
115 as_me=`echo "$0" | sed 's,.*/,,'`
117 # Avoid depending upon Character Ranges.
118 ac_cr_az='abcdefghijklmnopqrstuvwxyz'
119 ac_cr_AZ='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
120 ac_cr_09='0123456789'
121 ac_cr_alnum=$ac_cr_az$ac_cr_AZ$ac_cr_09
123 # Sed expression to map a string onto a valid sh and CPP variable names.
124 ac_tr_sh="sed y%*+%pp%;s%[^_$ac_cr_alnum]%_%g"
125 ac_tr_cpp="sed y%*$ac_cr_az%P$ac_cr_AZ%;s%[^_$ac_cr_alnum]%_%g"
127 # By default always use an empty string as the executable extension.
128 # Only change it if the script calls AC_EXEEXT.
130 # By default assume that objects files use an extension of .o. Only
131 # change it if the script calls AC_OBJEXT.
133 # Factoring default headers for most tests.
134 ac_includes_default="\
136 #include <sys/types.h>
137 #include <sys/stat.h>
147 # if !STDC_HEADERS && HAVE_MEMORY_H
153 # include <strings.h>
157 # include <inttypes.h>
162 ac_default_prefix=/usr/heimdal
164 # Initialize some variables set by options.
166 ac_init_version=false
167 # The variables have the same names as the options, with
168 # dashes changed to underlines.
176 program_transform_name=s,x,x,
183 bindir='${exec_prefix}/bin'
184 sbindir='${exec_prefix}/sbin'
185 libexecdir='${exec_prefix}/libexec'
186 datadir='${prefix}/share'
187 sysconfdir='${prefix}/etc'
188 sharedstatedir='${prefix}/com'
189 localstatedir='${prefix}/var'
190 libdir='${exec_prefix}/lib'
191 includedir='${prefix}/include'
192 oldincludedir='/usr/include'
193 infodir='${prefix}/info'
194 mandir='${prefix}/man'
199 # If the previous option needs an argument, assign it.
200 if test -n "$ac_prev"; then
201 eval "$ac_prev=\$ac_option"
206 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
208 # Accept the important Cygnus configure options, so we can diagnose typos.
212 -bindir | --bindir | --bindi | --bind | --bin | --bi)
214 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
217 -build | --build | --buil | --bui | --bu)
218 ac_prev=build_alias ;;
219 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
220 build_alias=$ac_optarg ;;
222 -cache-file | --cache-file | --cache-fil | --cache-fi \
223 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
224 ac_prev=cache_file ;;
225 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
226 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
227 cache_file=$ac_optarg ;;
230 cache_file=config.cache ;;
232 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
234 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
236 datadir=$ac_optarg ;;
238 -disable-* | --disable-*)
239 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
240 # Reject names that are not valid shell variable names.
241 expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
242 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
243 { (exit 1); exit; }; }
244 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
245 eval "enable_$ac_feature=no" ;;
247 -enable-* | --enable-*)
248 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
249 # Reject names that are not valid shell variable names.
250 expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
251 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
252 { (exit 1); exit; }; }
253 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
255 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
258 eval "enable_$ac_feature='$ac_optarg'" ;;
260 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
261 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
262 | --exec | --exe | --ex)
263 ac_prev=exec_prefix ;;
264 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
265 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
266 | --exec=* | --exe=* | --ex=*)
267 exec_prefix=$ac_optarg ;;
269 -gas | --gas | --ga | --g)
270 # Obsolete; use --with-gas.
273 -help | --help | --hel | --he | -h)
275 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
276 ac_init_help=recursive ;;
277 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
278 ac_init_help=short ;;
280 -host | --host | --hos | --ho)
281 ac_prev=host_alias ;;
282 -host=* | --host=* | --hos=* | --ho=*)
283 host_alias=$ac_optarg ;;
285 -includedir | --includedir | --includedi | --included | --include \
286 | --includ | --inclu | --incl | --inc)
287 ac_prev=includedir ;;
288 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
289 | --includ=* | --inclu=* | --incl=* | --inc=*)
290 includedir=$ac_optarg ;;
292 -infodir | --infodir | --infodi | --infod | --info | --inf)
294 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
295 infodir=$ac_optarg ;;
297 -libdir | --libdir | --libdi | --libd)
299 -libdir=* | --libdir=* | --libdi=* | --libd=*)
302 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
303 | --libexe | --libex | --libe)
304 ac_prev=libexecdir ;;
305 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
306 | --libexe=* | --libex=* | --libe=*)
307 libexecdir=$ac_optarg ;;
309 -localstatedir | --localstatedir | --localstatedi | --localstated \
310 | --localstate | --localstat | --localsta | --localst \
311 | --locals | --local | --loca | --loc | --lo)
312 ac_prev=localstatedir ;;
313 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
314 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
315 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
316 localstatedir=$ac_optarg ;;
318 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
320 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
324 # Obsolete; use --without-fp.
327 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
331 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
332 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
335 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
336 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
337 | --oldin | --oldi | --old | --ol | --o)
338 ac_prev=oldincludedir ;;
339 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
340 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
341 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
342 oldincludedir=$ac_optarg ;;
344 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
346 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
349 -program-prefix | --program-prefix | --program-prefi | --program-pref \
350 | --program-pre | --program-pr | --program-p)
351 ac_prev=program_prefix ;;
352 -program-prefix=* | --program-prefix=* | --program-prefi=* \
353 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
354 program_prefix=$ac_optarg ;;
356 -program-suffix | --program-suffix | --program-suffi | --program-suff \
357 | --program-suf | --program-su | --program-s)
358 ac_prev=program_suffix ;;
359 -program-suffix=* | --program-suffix=* | --program-suffi=* \
360 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
361 program_suffix=$ac_optarg ;;
363 -program-transform-name | --program-transform-name \
364 | --program-transform-nam | --program-transform-na \
365 | --program-transform-n | --program-transform- \
366 | --program-transform | --program-transfor \
367 | --program-transfo | --program-transf \
368 | --program-trans | --program-tran \
369 | --progr-tra | --program-tr | --program-t)
370 ac_prev=program_transform_name ;;
371 -program-transform-name=* | --program-transform-name=* \
372 | --program-transform-nam=* | --program-transform-na=* \
373 | --program-transform-n=* | --program-transform-=* \
374 | --program-transform=* | --program-transfor=* \
375 | --program-transfo=* | --program-transf=* \
376 | --program-trans=* | --program-tran=* \
377 | --progr-tra=* | --program-tr=* | --program-t=*)
378 program_transform_name=$ac_optarg ;;
380 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
381 | -silent | --silent | --silen | --sile | --sil)
384 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
386 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
388 sbindir=$ac_optarg ;;
390 -sharedstatedir | --sharedstatedir | --sharedstatedi \
391 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
392 | --sharedst | --shareds | --shared | --share | --shar \
394 ac_prev=sharedstatedir ;;
395 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
396 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
397 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
399 sharedstatedir=$ac_optarg ;;
401 -site | --site | --sit)
403 -site=* | --site=* | --sit=*)
406 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
408 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
411 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
412 | --syscon | --sysco | --sysc | --sys | --sy)
413 ac_prev=sysconfdir ;;
414 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
415 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
416 sysconfdir=$ac_optarg ;;
418 -target | --target | --targe | --targ | --tar | --ta | --t)
419 ac_prev=target_alias ;;
420 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
421 target_alias=$ac_optarg ;;
423 -v | -verbose | --verbose | --verbos | --verbo | --verb)
426 -version | --version | --versio | --versi | --vers | -V)
430 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
431 # Reject names that are not valid shell variable names.
432 expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
433 { echo "$as_me: error: invalid package name: $ac_package" >&2
434 { (exit 1); exit; }; }
435 ac_package=`echo $ac_package| sed 's/-/_/g'`
437 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
440 eval "with_$ac_package='$ac_optarg'" ;;
442 -without-* | --without-*)
443 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
444 # Reject names that are not valid shell variable names.
445 expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
446 { echo "$as_me: error: invalid package name: $ac_package" >&2
447 { (exit 1); exit; }; }
448 ac_package=`echo $ac_package | sed 's/-/_/g'`
449 eval "with_$ac_package=no" ;;
452 # Obsolete; use --with-x.
455 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
456 | --x-incl | --x-inc | --x-in | --x-i)
457 ac_prev=x_includes ;;
458 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
459 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
460 x_includes=$ac_optarg ;;
462 -x-libraries | --x-libraries | --x-librarie | --x-librari \
463 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
464 ac_prev=x_libraries ;;
465 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
466 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
467 x_libraries=$ac_optarg ;;
469 -*) { echo "$as_me: error: unrecognized option: $ac_option
470 Try \`$0 --help' for more information." >&2
471 { (exit 1); exit; }; }
475 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
476 # Reject names that are not valid shell variable names.
477 expr "x$ac_envvar" : ".*[^_$ac_cr_alnum]" >/dev/null &&
478 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
479 { (exit 1); exit; }; }
480 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
481 eval "$ac_envvar='$ac_optarg'"
485 # FIXME: should be removed in autoconf 3.0.
486 { echo "$as_me:486: WARNING: you should use --build, --host, --target" >&5
487 echo "$as_me: warning: you should use --build, --host, --target" >&2; }
488 expr "x$ac_option" : ".*[^-._$ac_cr_alnum]" >/dev/null &&
489 { echo "$as_me:489: WARNING: invalid host type: $ac_option" >&5
490 echo "$as_me: warning: invalid host type: $ac_option" >&2; }
491 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
497 if test -n "$ac_prev"; then
498 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
499 { echo "$as_me: error: missing argument to $ac_option" >&2
500 { (exit 1); exit; }; }
503 # Be sure to have absolute paths.
504 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
505 localstatedir libdir includedir oldincludedir infodir mandir \
508 eval ac_val=$`echo $ac_var`
510 [\\/$]* | ?:[\\/]* ) ;;
512 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
513 { (exit 1); exit; }; };;
517 # There might be people who depend on the old broken behavior: `$host'
518 # used to hold the argument of --host etc.
523 # FIXME: should be removed in autoconf 3.0.
524 if test "x$host_alias" != x; then
525 if test "x$build_alias" = x; then
526 cross_compiling=maybe
527 { echo "$as_me:527: WARNING: If you wanted to set the --build type, don't use --host.
528 If a cross compiler is detected then cross compile mode will be used." >&5
529 echo "$as_me: warning: If you wanted to set the --build type, don't use --host.
530 If a cross compiler is detected then cross compile mode will be used." >&2; }
531 elif test "x$build_alias" != "x$host_alias"; then
537 test -n "$host_alias" && ac_tool_prefix=$host_alias-
539 # Find the source files, if location was not specified.
540 if test -z "$srcdir"; then
541 ac_srcdir_defaulted=yes
542 # Try the directory containing this script, then its parent.
544 ac_confdir=`echo "$ac_prog" | sed 's%/[^/][^/]*$%%'`
545 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
547 if test ! -r $srcdir/$ac_unique_file; then
551 ac_srcdir_defaulted=no
553 if test ! -r $srcdir/$ac_unique_file; then
554 if test "$ac_srcdir_defaulted" = yes; then
555 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
556 { (exit 1); exit; }; }
558 { echo "$as_me: error: cannot find sources in $srcdir" >&2
559 { (exit 1); exit; }; }
562 srcdir=`echo "$srcdir" | sed 's%\([^/]\)/*$%\1%'`
563 ac_env_build_alias_set=${build_alias+set}
564 ac_env_build_alias_value=$build_alias
565 ac_cv_env_build_alias_set=${build_alias+set}
566 ac_cv_env_build_alias_value=$build_alias
567 ac_env_host_alias_set=${host_alias+set}
568 ac_env_host_alias_value=$host_alias
569 ac_cv_env_host_alias_set=${host_alias+set}
570 ac_cv_env_host_alias_value=$host_alias
571 ac_env_target_alias_set=${target_alias+set}
572 ac_env_target_alias_value=$target_alias
573 ac_cv_env_target_alias_set=${target_alias+set}
574 ac_cv_env_target_alias_value=$target_alias
575 ac_env_CC_set=${CC+set}
577 ac_cv_env_CC_set=${CC+set}
578 ac_cv_env_CC_value=$CC
579 ac_env_CFLAGS_set=${CFLAGS+set}
580 ac_env_CFLAGS_value=$CFLAGS
581 ac_cv_env_CFLAGS_set=${CFLAGS+set}
582 ac_cv_env_CFLAGS_value=$CFLAGS
583 ac_env_LDFLAGS_set=${LDFLAGS+set}
584 ac_env_LDFLAGS_value=$LDFLAGS
585 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
586 ac_cv_env_LDFLAGS_value=$LDFLAGS
587 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
588 ac_env_CPPFLAGS_value=$CPPFLAGS
589 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
590 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
593 # Report the --help message.
595 if test "$ac_init_help" = "long"; then
596 # Omit some internal or obsolete options to make the list less imposing.
597 # This message is too long to be a string in the A/UX 3.1 sh.
599 \`configure' configures heimdal 0.3f to adapt to many kinds of systems.
601 Usage: $0 [OPTION]... [VAR=VALUE]...
603 To assign environment variables (e.g., CC, CFLAGS...), specify them as
604 VAR=VALUE. See below for descriptions of some of the useful variables.
606 Defaults for the options are specified in brackets.
609 -h, --help display this help and exit
610 --help=short display options specific to this package
611 --help=recursive display the short help of all the included packages
612 -V, --version display version information and exit
613 -q, --quiet, --silent do not print \`checking...' messages
614 --cache-file=FILE cache test results in FILE [disabled]
615 -C, --config-cache alias for \`--cache-file=config.cache'
616 -n, --no-create do not create output files
617 --srcdir=DIR find the sources in DIR [configure dir or \`..']
622 Installation directories:
623 --prefix=PREFIX install architecture-independent files in PREFIX
625 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
628 By default, \`make install' will install all the files in
629 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
630 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
631 for instance \`--prefix=\$HOME'.
633 For better control, use the options below.
635 Fine tuning of the installation directories:
636 --bindir=DIR user executables [EPREFIX/bin]
637 --sbindir=DIR system admin executables [EPREFIX/sbin]
638 --libexecdir=DIR program executables [EPREFIX/libexec]
639 --datadir=DIR read-only architecture-independent data [PREFIX/share]
640 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
641 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
642 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
643 --libdir=DIR object code libraries [EPREFIX/lib]
644 --includedir=DIR C header files [PREFIX/include]
645 --oldincludedir=DIR C header files for non-gcc [/usr/include]
646 --infodir=DIR info documentation [PREFIX/info]
647 --mandir=DIR man documentation [PREFIX/man]
653 --program-prefix=PREFIX prepend PREFIX to installed program names
654 --program-suffix=SUFFIX append SUFFIX to installed program names
655 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
658 --x-includes=DIR X include files are in DIR
659 --x-libraries=DIR X library files are in DIR
662 --build=BUILD configure for building on BUILD [guessed]
663 --host=HOST build programs to run on HOST [BUILD]
667 if test -n "$ac_init_help"; then
668 case $ac_init_help in
669 short | recursive ) echo "Configuration of heimdal 0.3f:";;
674 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
675 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
676 --disable-dependency-tracking Speeds up one-time builds
677 --enable-dependency-tracking Do not reject slow dependency extractors
678 --enable-shared=PKGS build shared libraries default=no
679 --enable-static=PKGS build static libraries default=yes
680 --enable-fast-install=PKGS optimize for fast installation default=yes
681 --disable-libtool-lock avoid locking (might break parallel builds)
682 --enable-dce if you want support for DCE/DFS PAG's.
683 --enable-kaserver if you want the KDC to try to emulate a kaserver
684 --enable-kaserver-db if you want support for reading kaserver databases in hprop
685 --disable-otp if you don't want OTP support
686 --enable-osfc2 enable some OSF C2 support
687 --enable-bigendian the target is big endian
688 --enable-littleendian the target is little endian
689 --enable-netinfo enable netinfo for configuration lookup
692 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
693 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
694 --with-mips-abi=abi ABI to use for IRIX (32, n32, or 64)
695 --with-gnu-ld assume the C compiler uses GNU ld default=no
696 --with-pic try to use only PIC/non-PIC objects default=use both
697 --without-berkeley-db if you don't want berkeley db
698 --without-ipv6 do not enable IPv6 support
699 --with-openldap=dir use openldap in dir
700 --with-openldap-lib=dir use openldap libraries in dir
701 --with-openldap-include=dir use openldap headers in dir
702 --with-krb4=dir use krb4 in dir
703 --with-krb4-lib=dir use krb4 libraries in dir
704 --with-krb4-include=dir use krb4 headers in dir
705 --with-readline=dir use readline in dir
706 --with-readline-lib=dir use readline libraries in dir
707 --with-readline-include=dir use readline headers in dir
708 --with-hesiod=dir use hesiod in dir
709 --with-hesiod-lib=dir use hesiod libraries in dir
710 --with-hesiod-include=dir use hesiod headers in dir
711 --with-x use the X Window System
713 Some influential environment variables:
714 CC C compiler command
715 CFLAGS C compiler flags
716 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
717 nonstandard directory <lib dir>
718 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
719 headers in a nonstandard directory <include dir>
721 Use these variables to override the choices made by `configure' or to help
722 it to find libraries and programs with nonstandard names/locations.
724 Report bugs to <heimdal-bugs@pdc.kth.se>.
728 if test "$ac_init_help" = "recursive"; then
729 # If there are subdirs, report their specific --help.
731 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
733 # A "../" for each directory in /$ac_subdir.
734 ac_dots=`echo $ac_subdir |
735 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
738 .) # No --srcdir option. We are building in place.
739 ac_sub_srcdir=$srcdir ;;
740 [\\/]* | ?:[\\/]* ) # Absolute path.
741 ac_sub_srcdir=$srcdir/$ac_subdir ;;
743 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
746 # Check for guested configure; otherwise get Cygnus style configure.
747 if test -f $ac_sub_srcdir/configure.gnu; then
749 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
750 elif test -f $ac_sub_srcdir/configure; then
752 $SHELL $ac_sub_srcdir/configure --help=recursive
753 elif test -f $ac_sub_srcdir/configure.in; then
757 { echo "$as_me:757: WARNING: no configuration information is in $ac_subdir" >&5
758 echo "$as_me: warning: no configuration information is in $ac_subdir" >&2; }
764 test -n "$ac_init_help" && exit 0
765 if $ac_init_version; then
767 configure (heimdal 0.3f) 2.49b
769 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000
770 Free Software Foundation, Inc.
771 This configure script is free software; the Free Software Foundation
772 gives unlimited permission to copy, distribute and modify it.
777 # Keep a trace of the command line.
778 # Strip out --no-create and --no-recursion so they do not pile up.
779 # Also quote any args containing shell meta-characters.
785 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
786 | --no-cr | --no-c) ;;
787 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
788 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
789 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
790 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
791 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
793 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
796 # Get rid of the leading space.
799 # When interrupted or exit'd, cleanup temporary files, and complete
802 test "$ac_signal" != 0 &&
803 echo "$as_me: caught signal $ac_signal" >&5
804 echo "$as_me: exit $exit_status" >&5
805 rm -rf conftest* confdefs* core core.* *.core $ac_clean_files &&
808 for ac_signal in 1 2 13 15; do
809 trap 'ac_status=$?; ac_signal='$ac_signal'; exit $ac_status' $ac_signal
813 # confdefs.h avoids OS command line length limits that DEFS can exceed.
814 rm -rf conftest* confdefs.h
815 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
818 # Let the site file select an alternate cache file if it wants to.
819 # Prefer explicitly selected file to automatically selected ones.
820 if test -z "$CONFIG_SITE"; then
821 if test "x$prefix" != xNONE; then
822 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
824 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
827 for ac_site_file in $CONFIG_SITE; do
828 if test -r "$ac_site_file"; then
829 echo "loading site script $ac_site_file"
834 if test -r "$cache_file"; then
835 # Some versions of bash will fail to source /dev/null (special
836 # files actually), so we avoid doing that.
837 if test -f "$cache_file"; then
838 { echo "$as_me:838: loading cache $cache_file" >&5
839 echo "loading cache $cache_file" >&6;}
841 [\\/]* | ?:[\\/]* ) . $cache_file;;
846 { echo "$as_me:846: creating cache $cache_file" >&5
847 echo "creating cache $cache_file" >&6;}
851 # Check that the precious variables saved in the cache have kept the same
853 ac_suggest_removing_cache=false
854 for ac_var in `(set) 2>&1 |
855 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
856 eval ac_old_set=\$ac_cv_env_${ac_var}_set
857 eval ac_new_set=\$ac_env_${ac_var}_set
858 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
859 eval ac_new_val="\$ac_env_${ac_var}_value"
860 case $ac_old_set,$ac_new_set in
862 { echo "$as_me:862: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
863 echo "$as_me: warning: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2; }
864 ac_suggest_removing_cache=: ;;
866 { echo "$as_me:866: WARNING: \`$ac_var' was not set in the previous run" >&5
867 echo "$as_me: warning: \`$ac_var' was not set in the previous run" >&2; }
868 ac_suggest_removing_cache=: ;;
871 if test "x$ac_old_val" != "x$ac_new_val"; then
872 { echo "$as_me:872: WARNING: \`$ac_var' has changed since the previous run:" >&5
873 echo "$as_me: warning: \`$ac_var' has changed since the previous run:" >&2; }
874 { echo "$as_me:874: WARNING: former value: $ac_old_val" >&5
875 echo "$as_me: warning: former value: $ac_old_val" >&2; }
876 { echo "$as_me:876: WARNING: current value: $ac_new_val" >&5
877 echo "$as_me: warning: current value: $ac_new_val" >&2; }
878 ac_suggest_removing_cache=:
882 if $ac_suggest_removing_cache; then
883 { echo "$as_me:883: WARNING: changes in the environment can compromise the build" >&5
884 echo "$as_me: warning: changes in the environment can compromise the build" >&2; }
885 { echo "$as_me:885: WARNING: consider removing $cache_file and starting over" >&5
886 echo "$as_me: warning: consider removing $cache_file and starting over" >&2; }
890 ac_cpp='$CPP $CPPFLAGS'
891 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
892 ac_link='${CC-cc} -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
895 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
896 *c*,-n*) ECHO_N= ECHO_C='
898 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
899 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
902 ac_config_headers="$ac_config_headers include/config.h"
904 ac_config_commands="$ac_config_commands default-1"
907 ac_cpp='$CPP $CPPFLAGS'
908 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
909 ac_link='${CC-cc} -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
912 if test -n "$ac_tool_prefix"; then
913 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
914 set dummy ${ac_tool_prefix}gcc; ac_word=$2
915 echo "$as_me:915: checking for $ac_word" >&5
916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
917 if test "${ac_cv_prog_CC+set}" = set; then
918 echo $ECHO_N "(cached) $ECHO_C" >&6
920 if test -n "$CC"; then
921 ac_cv_prog_CC="$CC" # Let the user override the test.
923 ac_save_IFS=$IFS; IFS=':'
925 for ac_dir in $ac_dummy; do
927 test -z "$ac_dir" && ac_dir=.
928 test -f "$ac_dir/$ac_word" || continue
929 ac_cv_prog_CC="${ac_tool_prefix}gcc"
936 if test -n "$CC"; then
937 echo "$as_me:937: result: $CC" >&5
938 echo "${ECHO_T}$CC" >&6
940 echo "$as_me:940: result: no" >&5
941 echo "${ECHO_T}no" >&6
945 if test -z "$ac_cv_prog_CC"; then
947 # Extract the first word of "gcc", so it can be a program name with args.
948 set dummy gcc; ac_word=$2
949 echo "$as_me:949: checking for $ac_word" >&5
950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
951 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
952 echo $ECHO_N "(cached) $ECHO_C" >&6
954 if test -n "$ac_ct_CC"; then
955 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
957 ac_save_IFS=$IFS; IFS=':'
959 for ac_dir in $ac_dummy; do
961 test -z "$ac_dir" && ac_dir=.
962 test -f "$ac_dir/$ac_word" || continue
963 ac_cv_prog_ac_ct_CC="gcc"
969 ac_ct_CC=$ac_cv_prog_ac_ct_CC
970 if test -n "$ac_ct_CC"; then
971 echo "$as_me:971: result: $ac_ct_CC" >&5
972 echo "${ECHO_T}$ac_ct_CC" >&6
974 echo "$as_me:974: result: no" >&5
975 echo "${ECHO_T}no" >&6
983 if test -z "$CC"; then
984 if test -n "$ac_tool_prefix"; then
985 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
986 set dummy ${ac_tool_prefix}cc; ac_word=$2
987 echo "$as_me:987: checking for $ac_word" >&5
988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
989 if test "${ac_cv_prog_CC+set}" = set; then
990 echo $ECHO_N "(cached) $ECHO_C" >&6
992 if test -n "$CC"; then
993 ac_cv_prog_CC="$CC" # Let the user override the test.
995 ac_save_IFS=$IFS; IFS=':'
997 for ac_dir in $ac_dummy; do
999 test -z "$ac_dir" && ac_dir=.
1000 test -f "$ac_dir/$ac_word" || continue
1001 ac_cv_prog_CC="${ac_tool_prefix}cc"
1008 if test -n "$CC"; then
1009 echo "$as_me:1009: result: $CC" >&5
1010 echo "${ECHO_T}$CC" >&6
1012 echo "$as_me:1012: result: no" >&5
1013 echo "${ECHO_T}no" >&6
1017 if test -z "$ac_cv_prog_CC"; then
1019 # Extract the first word of "cc", so it can be a program name with args.
1020 set dummy cc; ac_word=$2
1021 echo "$as_me:1021: checking for $ac_word" >&5
1022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1023 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1024 echo $ECHO_N "(cached) $ECHO_C" >&6
1026 if test -n "$ac_ct_CC"; then
1027 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1029 ac_save_IFS=$IFS; IFS=':'
1031 for ac_dir in $ac_dummy; do
1033 test -z "$ac_dir" && ac_dir=.
1034 test -f "$ac_dir/$ac_word" || continue
1035 ac_cv_prog_ac_ct_CC="cc"
1041 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1042 if test -n "$ac_ct_CC"; then
1043 echo "$as_me:1043: result: $ac_ct_CC" >&5
1044 echo "${ECHO_T}$ac_ct_CC" >&6
1046 echo "$as_me:1046: result: no" >&5
1047 echo "${ECHO_T}no" >&6
1056 if test -z "$CC"; then
1057 # Extract the first word of "cc", so it can be a program name with args.
1058 set dummy cc; ac_word=$2
1059 echo "$as_me:1059: checking for $ac_word" >&5
1060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1061 if test "${ac_cv_prog_CC+set}" = set; then
1062 echo $ECHO_N "(cached) $ECHO_C" >&6
1064 if test -n "$CC"; then
1065 ac_cv_prog_CC="$CC" # Let the user override the test.
1068 ac_save_IFS=$IFS; IFS=':'
1070 for ac_dir in $ac_dummy; do
1072 test -z "$ac_dir" && ac_dir=.
1073 test -f "$ac_dir/$ac_word" || continue
1074 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1075 ac_prog_rejected=yes
1082 if test $ac_prog_rejected = yes; then
1083 # We found a bogon in the path, so make sure we never use it.
1084 set dummy $ac_cv_prog_CC
1086 if test $# != 0; then
1087 # We chose a different compiler from the bogus one.
1088 # However, it has the same basename, so the bogon will be chosen
1089 # first if we set CC to just the basename; use the full file name.
1091 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1099 if test -n "$CC"; then
1100 echo "$as_me:1100: result: $CC" >&5
1101 echo "${ECHO_T}$CC" >&6
1103 echo "$as_me:1103: result: no" >&5
1104 echo "${ECHO_T}no" >&6
1108 if test -z "$CC"; then
1109 if test -n "$ac_tool_prefix"; then
1112 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1113 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1114 echo "$as_me:1114: checking for $ac_word" >&5
1115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1116 if test "${ac_cv_prog_CC+set}" = set; then
1117 echo $ECHO_N "(cached) $ECHO_C" >&6
1119 if test -n "$CC"; then
1120 ac_cv_prog_CC="$CC" # Let the user override the test.
1122 ac_save_IFS=$IFS; IFS=':'
1124 for ac_dir in $ac_dummy; do
1126 test -z "$ac_dir" && ac_dir=.
1127 test -f "$ac_dir/$ac_word" || continue
1128 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1135 if test -n "$CC"; then
1136 echo "$as_me:1136: result: $CC" >&5
1137 echo "${ECHO_T}$CC" >&6
1139 echo "$as_me:1139: result: no" >&5
1140 echo "${ECHO_T}no" >&6
1143 test -n "$CC" && break
1146 if test -z "$CC"; then
1150 # Extract the first word of "$ac_prog", so it can be a program name with args.
1151 set dummy $ac_prog; ac_word=$2
1152 echo "$as_me:1152: checking for $ac_word" >&5
1153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1154 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1155 echo $ECHO_N "(cached) $ECHO_C" >&6
1157 if test -n "$ac_ct_CC"; then
1158 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1160 ac_save_IFS=$IFS; IFS=':'
1162 for ac_dir in $ac_dummy; do
1164 test -z "$ac_dir" && ac_dir=.
1165 test -f "$ac_dir/$ac_word" || continue
1166 ac_cv_prog_ac_ct_CC="$ac_prog"
1172 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1173 if test -n "$ac_ct_CC"; then
1174 echo "$as_me:1174: result: $ac_ct_CC" >&5
1175 echo "${ECHO_T}$ac_ct_CC" >&6
1177 echo "$as_me:1177: result: no" >&5
1178 echo "${ECHO_T}no" >&6
1181 test -n "$ac_ct_CC" && break
1189 test -z "$CC" && { echo "$as_me: error: no acceptable cc found in \$PATH" >&2
1190 { (exit 1); exit; }; }
1192 echo "$as_me:1192: checking whether the C compiler works" >&5
1193 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1194 cat >conftest.$ac_ext <<_ACEOF
1195 #line 1195 "configure"
1196 #include "confdefs.h"
1206 rm -f conftest.$ac_objext conftest$ac_exeext
1207 if { (eval echo $as_me:1207: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
1208 # FIXME: these cross compiler hacks should be removed for autoconf 3.0
1209 # If not cross compiling, check that we can run a simple program.
1210 if test "$cross_compiling" != yes; then
1211 if { ac_try='./conftest$ac_exeext'; { (eval echo $as_me:1211: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; }; then
1214 if test "$cross_compiling" = maybe; then
1217 { echo "$as_me: error: cannot run C compiled programs.
1218 To enable cross compilation, use \`--host'." >&2
1219 { (exit 1); exit; }; }
1223 echo "$as_me:1223: result: yes" >&5
1224 echo "${ECHO_T}yes" >&6
1226 echo "$as_me: failed program was:" >&5
1227 cat conftest.$ac_ext >&5
1228 echo "$as_me:1228: result: no" >&5
1229 echo "${ECHO_T}no" >&6
1230 { echo "$as_me: error: C compiler cannot create executables" >&2
1231 { (exit 77); exit; }; }
1233 rm -f conftest$ac_exeext conftest.$ac_ext
1234 echo "$as_me:1234: checking whether we are cross compiling" >&5
1235 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1236 echo "$as_me:1236: result: $cross_compiling" >&5
1237 echo "${ECHO_T}$cross_compiling" >&6
1239 echo "$as_me:1239: checking whether we are using the GNU C compiler" >&5
1240 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1241 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1242 echo $ECHO_N "(cached) $ECHO_C" >&6
1244 cat >conftest.$ac_ext <<_ACEOF
1245 #line 1245 "configure"
1246 #include "confdefs.h"
1259 rm -f conftest.$ac_objext
1260 if { (eval echo $as_me:1260: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
1263 echo "$as_me: failed program was:" >&5
1264 cat conftest.$ac_ext >&5
1267 rm -f conftest.$ac_objext conftest.$ac_ext
1268 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1271 echo "$as_me:1271: result: $ac_cv_c_compiler_gnu" >&5
1272 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1273 GCC=`test $ac_compiler_gnu = yes && echo yes`
1274 echo "$as_me:1274: checking for object suffix" >&5
1275 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1276 if test "${ac_cv_objext+set}" = set; then
1277 echo $ECHO_N "(cached) $ECHO_C" >&6
1279 cat >conftest.$ac_ext <<_ACEOF
1280 #line 1280 "configure"
1281 #include "confdefs.h"
1291 if { (eval echo $as_me:1291: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
1292 for ac_file in `ls conftest.o conftest.obj conftest.* 2>/dev/null`; do
1294 *.$ac_ext | *.tds | *.d ) ;;
1295 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1299 rm -f conftest.$ac_objext conftest.$ac_ext
1301 { echo "$as_me: error: cannot compile" >&2
1302 { (exit 1); exit; }; }
1305 echo "$as_me:1305: result: $ac_cv_objext" >&5
1306 echo "${ECHO_T}$ac_cv_objext" >&6
1307 OBJEXT=$ac_cv_objext
1308 ac_objext=$ac_cv_objext
1310 echo "$as_me:1310: checking for executable suffix" >&5
1311 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1312 if test "${ac_cv_exeext+set}" = set; then
1313 echo $ECHO_N "(cached) $ECHO_C" >&6
1315 case "$CYGWIN $MINGW32 $EMXOS2" in
1316 *yes*) ac_cv_exeext=.exe ;;
1318 cat >conftest.$ac_ext <<_ACEOF
1319 #line 1319 "configure"
1320 #include "confdefs.h"
1330 if { (eval echo $as_me:1330: \"$ac_link\") >&5; (eval $ac_link) 2>&5; }; then
1331 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1332 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1333 # work properly (i.e., refer to `conftest.exe'), while it won't with
1335 for ac_file in `ls conftest.exe conftest conftest.* 2>/dev/null`; do
1337 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d) ;;
1338 *) ac_cv_exeext=`expr "$ac_file" : 'conftest\(.*\)'`
1342 rm -f conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1344 { echo "$as_me: error: cannot compile and link" >&2
1345 { (exit 1); exit; }; }
1350 echo "$as_me:1350: result: $ac_cv_exeext" >&5
1351 echo "${ECHO_T}$ac_cv_exeext" >&6
1352 EXEEXT=$ac_cv_exeext
1355 ac_test_CFLAGS=${CFLAGS+set}
1356 ac_save_CFLAGS=$CFLAGS
1358 echo "$as_me:1358: checking whether ${CC-cc} accepts -g" >&5
1359 echo $ECHO_N "checking whether ${CC-cc} accepts -g... $ECHO_C" >&6
1360 if test "${ac_cv_prog_cc_g+set}" = set; then
1361 echo $ECHO_N "(cached) $ECHO_C" >&6
1363 cat >conftest.$ac_ext <<_ACEOF
1364 #line 1364 "configure"
1365 #include "confdefs.h"
1375 rm -f conftest.$ac_objext
1376 if { (eval echo $as_me:1376: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
1379 echo "$as_me: failed program was:" >&5
1380 cat conftest.$ac_ext >&5
1383 rm -f conftest.$ac_objext conftest.$ac_ext
1385 echo "$as_me:1385: result: $ac_cv_prog_cc_g" >&5
1386 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1387 if test "$ac_test_CFLAGS" = set; then
1388 CFLAGS=$ac_save_CFLAGS
1389 elif test $ac_cv_prog_cc_g = yes; then
1390 if test "$GCC" = yes; then
1396 if test "$GCC" = yes; then
1403 echo "$as_me:1403: checking how to run the C preprocessor" >&5
1404 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1405 # On Suns, sometimes $CPP names a directory.
1406 if test -n "$CPP" && test -d "$CPP"; then
1409 if test -z "$CPP"; then
1410 if test "${ac_cv_prog_CPP+set}" = set; then
1411 echo $ECHO_N "(cached) $ECHO_C" >&6
1413 # Double quotes because CPP needs to be expanded
1414 for CPP in "${CC-cc} -E" "${CC-cc} -E -traditional-cpp" "/lib/cpp"
1416 # Use a header file that comes with gcc, so configuring glibc
1417 # with a fresh cross-compiler works.
1418 # On the NeXT, cc -E runs the code through the compiler's parser,
1419 # not just through cpp. "Syntax error" is here to catch this case.
1420 cat >conftest.$ac_ext <<_ACEOF
1421 #line 1421 "configure"
1422 #include "confdefs.h"
1426 ac_c_preproc_warn_flag=maybe
1427 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err"
1428 if { (eval echo $as_me:1428: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then
1429 if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then
1430 ac_cpp_err=$ac_c_preproc_warn_flag
1438 # Now check whether non-existent headers can be detected and how
1439 # Skip if ac_cpp_err is not empty - ac_cpp is broken
1440 if test -z "$ac_cpp_err"; then
1441 cat >conftest.$ac_ext <<_ACEOF
1442 #line 1442 "configure"
1443 #include "confdefs.h"
1444 #include <ac_nonexistent.h>
1446 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err"
1447 if { (eval echo $as_me:1447: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then
1448 if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then
1449 ac_cpp_err=$ac_c_preproc_warn_flag
1457 if test -z "$ac_cpp_err"; then
1458 # cannot detect missing includes at all
1461 if test "x$ac_cpp_err" = xmaybe; then
1462 ac_c_preproc_warn_flag=yes
1464 ac_c_preproc_warn_flag=
1471 if test -z "$ac_cpp_err"; then
1480 # Use a header file that comes with gcc, so configuring glibc
1481 # with a fresh cross-compiler works.
1482 # On the NeXT, cc -E runs the code through the compiler's parser,
1483 # not just through cpp. "Syntax error" is here to catch this case.
1484 cat >conftest.$ac_ext <<_ACEOF
1485 #line 1485 "configure"
1486 #include "confdefs.h"
1490 ac_c_preproc_warn_flag=maybe
1491 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err"
1492 if { (eval echo $as_me:1492: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then
1493 if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then
1494 ac_cpp_err=$ac_c_preproc_warn_flag
1502 # Now check whether non-existent headers can be detected and how
1503 # Skip if ac_cpp_err is not empty - ac_cpp is broken
1504 if test -z "$ac_cpp_err"; then
1505 cat >conftest.$ac_ext <<_ACEOF
1506 #line 1506 "configure"
1507 #include "confdefs.h"
1508 #include <ac_nonexistent.h>
1510 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err"
1511 if { (eval echo $as_me:1511: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then
1512 if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then
1513 ac_cpp_err=$ac_c_preproc_warn_flag
1521 if test -z "$ac_cpp_err"; then
1522 # cannot detect missing includes at all
1525 if test "x$ac_cpp_err" = xmaybe; then
1526 ac_c_preproc_warn_flag=yes
1528 ac_c_preproc_warn_flag=
1537 echo "$as_me:1537: result: $CPP" >&5
1538 echo "${ECHO_T}$CPP" >&6
1539 if test -n "$ac_cpp_err"; then
1540 { echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2
1541 { (exit 1); exit; }; }
1544 echo "$as_me:1544: checking for ${CC-cc} option to accept ANSI C" >&5
1545 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
1546 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1547 echo $ECHO_N "(cached) $ECHO_C" >&6
1549 ac_cv_prog_cc_stdc=no
1551 cat >conftest.$ac_ext <<_ACEOF
1552 #line 1552 "configure"
1553 #include "confdefs.h"
1556 #include <sys/types.h>
1557 #include <sys/stat.h>
1558 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1559 struct buf { int x; };
1560 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1561 static char *e (p, i)
1567 static char *f (char * (*g) (char **, int), char **p, ...)
1572 s = g (p, va_arg (v,int));
1576 int test (int i, double x);
1577 struct s1 {int (*f) (int a);};
1578 struct s2 {int (*f) (double a);};
1579 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1585 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1590 # Don't try gcc -ansi; that turns off useful extensions and
1591 # breaks some systems' header files.
1592 # AIX -qlanglvl=ansi
1593 # Ultrix and OSF/1 -std1
1594 # HP-UX 10.20 and later -Ae
1595 # HP-UX older versions -Aa -D_HPUX_SOURCE
1596 # SVR4 -Xc -D__EXTENSIONS__
1597 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1599 CC="$ac_save_CC $ac_arg"
1600 rm -f conftest.$ac_objext
1601 if { (eval echo $as_me:1601: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
1602 ac_cv_prog_cc_stdc=$ac_arg
1603 rm -f conftest.$ac_ext conftest.$ac_objext
1606 echo "$as_me: failed program was:" >&5
1607 cat conftest.$ac_ext >&5
1609 rm -f conftest.$ac_objext
1615 case "x$ac_cv_prog_cc_stdc" in
1617 echo "$as_me:1617: result: none needed" >&5
1618 echo "${ECHO_T}none needed" >&6 ;;
1620 echo "$as_me:1620: result: $ac_cv_prog_cc_stdc" >&5
1621 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
1622 CC="$CC $ac_cv_prog_cc_stdc" ;;
1626 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1627 if test -f $ac_dir/install-sh; then
1629 ac_install_sh="$ac_aux_dir/install-sh -c"
1631 elif test -f $ac_dir/install.sh; then
1633 ac_install_sh="$ac_aux_dir/install.sh -c"
1635 elif test -f $ac_dir/shtool; then
1637 ac_install_sh="$ac_aux_dir/shtool install -c"
1641 if test -z "$ac_aux_dir"; then
1642 { echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2
1643 { (exit 1); exit; }; }
1645 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1646 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1647 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1649 # Find a good install program. We prefer a C program (faster),
1650 # so one script is as good as another. But avoid the broken or
1651 # incompatible versions:
1652 # SysV /etc/install, /usr/sbin/install
1653 # SunOS /usr/etc/install
1654 # IRIX /sbin/install
1656 # AmigaOS /C/install, which installs bootblocks on floppy discs
1657 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1658 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1659 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1660 # ./install, which can be erroneously created by make from ./install.sh.
1661 echo "$as_me:1661: checking for a BSD compatible install" >&5
1662 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1663 if test -z "$INSTALL"; then
1664 if test "${ac_cv_path_install+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1667 ac_save_IFS=$IFS; IFS=':'
1668 for ac_dir in $PATH; do
1669 # Account for people who put trailing slashes in PATH elements.
1671 / | ./ | .// | /cC/* \
1672 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
1675 # OSF1 and SCO ODT 3.0 have their own names for install.
1676 # Don't use installbsd from OSF since it installs stuff as root
1678 for ac_prog in ginstall scoinst install; do
1679 if test -f "$ac_dir/$ac_prog"; then
1680 if test $ac_prog = install &&
1681 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1682 # AIX install. It has an incompatible calling convention.
1684 elif test $ac_prog = install &&
1685 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1686 # program-specific install script used by HP pwplus--don't use.
1689 ac_cv_path_install="$ac_dir/$ac_prog -c"
1700 if test "${ac_cv_path_install+set}" = set; then
1701 INSTALL=$ac_cv_path_install
1703 # As a last resort, use the slow shell script. We don't cache a
1704 # path for INSTALL within a source directory, because that will
1705 # break other packages using the cache if that directory is
1706 # removed, or if the path is relative.
1707 INSTALL=$ac_install_sh
1710 echo "$as_me:1710: result: $INSTALL" >&5
1711 echo "${ECHO_T}$INSTALL" >&6
1713 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1714 # It thinks the first close brace ends the variable substitution.
1715 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1717 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1719 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1721 echo "$as_me:1721: checking whether build environment is sane" >&5
1722 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1725 echo timestamp > conftestfile
1726 # Do `set' in a subshell so we don't clobber the current shell's
1727 # arguments. Must try -L first in case configure is actually a
1728 # symlink; some systems play weird games with the mod time of symlinks
1729 # (eg FreeBSD returns the mod time of the symlink's containing
1732 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1733 if test "$*" = "X"; then
1735 set X `ls -t $srcdir/configure conftestfile`
1737 if test "$*" != "X $srcdir/configure conftestfile" \
1738 && test "$*" != "X conftestfile $srcdir/configure"; then
1740 # If neither matched, then we have a broken ls. This can happen
1741 # if, for instance, CONFIG_SHELL is bash and it inherits a
1742 # broken ls alias from the environment. This has actually
1743 # happened. Such a system could not be considered "sane".
1744 { echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1745 alias in your environment" >&2
1746 { (exit 1); exit; }; }
1749 test "$2" = conftestfile
1755 { echo "$as_me: error: newly created file is older than distributed files!
1756 Check your system clock" >&2
1757 { (exit 1); exit; }; }
1760 echo "$as_me:1760: result: yes" >&5
1761 echo "${ECHO_T}yes" >&6
1762 if test "$program_transform_name" = s,x,x,; then
1763 program_transform_name=
1765 # Double any \ or $. echo might interpret backslashes.
1766 cat <<\EOF >conftestsed
1767 s,\\,\\\\,g; s,\$,$$,g
1769 program_transform_name=`echo $program_transform_name | sed -f conftestsed`
1772 test "$program_prefix" != NONE &&
1773 program_transform_name="s,^,${program_prefix},;$program_transform_name"
1774 # Use a double $ so make ignores it.
1775 test "$program_suffix" != NONE &&
1776 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
1778 # sed with no file args requires a program.
1779 test -z "$program_transform_name" && program_transform_name="s,x,x,"
1781 test x"${MISSING+set}" = xset || \
1782 MISSING="\${SHELL} `CDPATH=:; cd $ac_aux_dir && pwd`/missing"
1783 # Use eval to expand $SHELL
1784 if eval "$MISSING --run :"; then
1785 am_missing_run="$MISSING --run "
1789 { echo "$as_me:1789: WARNING: ${am_backtick}missing' script is too old or missing" >&5
1790 echo "$as_me: warning: ${am_backtick}missing' script is too old or missing" >&2; }
1793 for ac_prog in mawk gawk nawk awk
1795 # Extract the first word of "$ac_prog", so it can be a program name with args.
1796 set dummy $ac_prog; ac_word=$2
1797 echo "$as_me:1797: checking for $ac_word" >&5
1798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1799 if test "${ac_cv_prog_AWK+set}" = set; then
1800 echo $ECHO_N "(cached) $ECHO_C" >&6
1802 if test -n "$AWK"; then
1803 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1805 ac_save_IFS=$IFS; IFS=':'
1807 for ac_dir in $ac_dummy; do
1809 test -z "$ac_dir" && ac_dir=.
1810 test -f "$ac_dir/$ac_word" || continue
1811 ac_cv_prog_AWK="$ac_prog"
1818 if test -n "$AWK"; then
1819 echo "$as_me:1819: result: $AWK" >&5
1820 echo "${ECHO_T}$AWK" >&6
1822 echo "$as_me:1822: result: no" >&5
1823 echo "${ECHO_T}no" >&6
1826 test -n "$AWK" && break
1829 echo "$as_me:1829: checking whether ${MAKE-make} sets \${MAKE}" >&5
1830 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1831 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1832 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1833 echo $ECHO_N "(cached) $ECHO_C" >&6
1835 cat >conftestmake <<\EOF
1837 @echo 'ac_maketemp="${MAKE}"'
1839 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1840 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1841 if test -n "$ac_maketemp"; then
1842 eval ac_cv_prog_make_${ac_make}_set=yes
1844 eval ac_cv_prog_make_${ac_make}_set=no
1848 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1849 echo "$as_me:1849: result: yes" >&5
1850 echo "${ECHO_T}yes" >&6
1853 echo "$as_me:1853: result: no" >&5
1854 echo "${ECHO_T}no" >&6
1855 SET_MAKE="MAKE=${MAKE-make}"
1858 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1859 if test "${enable_dependency_tracking+set}" = set; then
1860 enableval="$enable_dependency_tracking"
1863 if test "x$enable_dependency_tracking" = xno; then
1866 am_depcomp="$ac_aux_dir/depcomp"
1867 if test ! -f "$am_depcomp"; then
1874 if test -z "$AMDEP"; then
1880 if test -d .deps || mkdir .deps 2> /dev/null || test -d .deps; then
1882 # We redirect because .deps might already exist and be populated.
1883 # In this situation we don't want to see an error.
1884 rmdir .deps > /dev/null 2>&1
1889 ac_config_commands="$ac_config_commands default-2"
1891 # test to see if srcdir already configured
1892 if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
1893 test -f $srcdir/config.status; then
1894 { echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2
1895 { (exit 1); exit; }; }
1898 # Define the identity of the package.
1902 cat >>confdefs.h <<EOF
1903 #define PACKAGE "$PACKAGE"
1906 cat >>confdefs.h <<EOF
1907 #define VERSION "$VERSION"
1910 # Some tools Automake needs.
1912 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
1914 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1916 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
1918 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1920 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1922 AMTAR=${AMTAR-"${am_missing_run}tar"}
1924 if test -z "$install_sh"; then
1925 install_sh="$ac_aux_dir/install-sh"
1926 test -f "$install_sh" || install_sh="$ac_aux_dir/install.sh"
1927 test -f "$install_sh" || install_sh="${am_missing_run}${ac_auxdir}/install-sh"
1928 install_sh="`echo $install_sh | sed -e 's/\${SHELL}//'`"
1931 # We need awk for the "check" target. The system "awk" is bad on
1936 echo "$as_me:1936: checking dependency style of $depcc" >&5
1937 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
1938 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
1939 echo $ECHO_N "(cached) $ECHO_C" >&6
1942 if test -z "$AMDEP"; then
1943 echo '#include "conftest.h"' > conftest.c
1944 echo 'int i;' > conftest.h
1946 am_cv_CC_dependencies_compiler_type=none
1947 for depmode in `sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < "$am_depcomp"`; do
1950 # after this tag, mechanisms are not by side-effect, so they'll
1951 # only be used when explicitly requested
1952 if test "x$enable_dependency_tracking" = xyes; then
1960 # We check with `-c' and `-o' for the sake of the "dashmstdout"
1961 # mode. It turns out that the SunPro C++ compiler does not properly
1962 # handle `-M -o', and we need to detect this.
1963 if depmode="$depmode" \
1964 source=conftest.c object=conftest.o \
1965 depfile=conftest.Po tmpdepfile=conftest.TPo \
1966 $SHELL $am_depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
1967 grep conftest.h conftest.Po > /dev/null 2>&1; then
1968 am_cv_CC_dependencies_compiler_type="$depmode"
1975 am_cv_CC_dependencies_compiler_type=none
1980 echo "$as_me:1980: result: $am_cv_CC_dependencies_compiler_type" >&5
1981 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
1982 CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"
1984 # Make sure we can run config.sub.
1985 $ac_config_sub sun4 >/dev/null 2>&1 ||
1986 { echo "$as_me: error: cannot run $ac_config_sub" >&2
1987 { (exit 1); exit; }; }
1989 echo "$as_me:1989: checking build system type" >&5
1990 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1991 if test "${ac_cv_build+set}" = set; then
1992 echo $ECHO_N "(cached) $ECHO_C" >&6
1994 ac_cv_build_alias=$build_alias
1995 test -z "$ac_cv_build_alias" &&
1996 ac_cv_build_alias=`$ac_config_guess`
1997 test -z "$ac_cv_build_alias" &&
1998 { echo "$as_me: error: cannot guess build type; you must specify one" >&2
1999 { (exit 1); exit; }; }
2000 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2001 { echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2
2002 { (exit 1); exit; }; }
2005 echo "$as_me:2005: result: $ac_cv_build" >&5
2006 echo "${ECHO_T}$ac_cv_build" >&6
2008 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2009 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2010 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2012 echo "$as_me:2012: checking host system type" >&5
2013 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2014 if test "${ac_cv_host+set}" = set; then
2015 echo $ECHO_N "(cached) $ECHO_C" >&6
2017 ac_cv_host_alias=$host_alias
2018 test -z "$ac_cv_host_alias" &&
2019 ac_cv_host_alias=$ac_cv_build_alias
2020 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2021 { echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2
2022 { (exit 1); exit; }; }
2025 echo "$as_me:2025: result: $ac_cv_host" >&5
2026 echo "${ECHO_T}$ac_cv_host" >&6
2028 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2029 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2030 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2032 CANONICAL_HOST=$host
2049 if test "$sunos" != no; then
2051 cat >>confdefs.h <<EOF
2052 #define SunOS $sunos
2067 #test -z "$CFLAGS" && CFLAGS="-g"
2069 for ac_prog in 'bison -y' byacc
2071 # Extract the first word of "$ac_prog", so it can be a program name with args.
2072 set dummy $ac_prog; ac_word=$2
2073 echo "$as_me:2073: checking for $ac_word" >&5
2074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2075 if test "${ac_cv_prog_YACC+set}" = set; then
2076 echo $ECHO_N "(cached) $ECHO_C" >&6
2078 if test -n "$YACC"; then
2079 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2081 ac_save_IFS=$IFS; IFS=':'
2083 for ac_dir in $ac_dummy; do
2085 test -z "$ac_dir" && ac_dir=.
2086 test -f "$ac_dir/$ac_word" || continue
2087 ac_cv_prog_YACC="$ac_prog"
2093 YACC=$ac_cv_prog_YACC
2094 if test -n "$YACC"; then
2095 echo "$as_me:2095: result: $YACC" >&5
2096 echo "${ECHO_T}$YACC" >&6
2098 echo "$as_me:2098: result: no" >&5
2099 echo "${ECHO_T}no" >&6
2102 test -n "$YACC" && break
2104 test -n "$YACC" || YACC="yacc"
2106 for ac_prog in flex lex
2108 # Extract the first word of "$ac_prog", so it can be a program name with args.
2109 set dummy $ac_prog; ac_word=$2
2110 echo "$as_me:2110: checking for $ac_word" >&5
2111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2112 if test "${ac_cv_prog_LEX+set}" = set; then
2113 echo $ECHO_N "(cached) $ECHO_C" >&6
2115 if test -n "$LEX"; then
2116 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2118 ac_save_IFS=$IFS; IFS=':'
2120 for ac_dir in $ac_dummy; do
2122 test -z "$ac_dir" && ac_dir=.
2123 test -f "$ac_dir/$ac_word" || continue
2124 ac_cv_prog_LEX="$ac_prog"
2131 if test -n "$LEX"; then
2132 echo "$as_me:2132: result: $LEX" >&5
2133 echo "${ECHO_T}$LEX" >&6
2135 echo "$as_me:2135: result: no" >&5
2136 echo "${ECHO_T}no" >&6
2139 test -n "$LEX" && break
2141 test -n "$LEX" || LEX="${am_missing_run}flex"
2143 for ac_prog in flex lex
2145 # Extract the first word of "$ac_prog", so it can be a program name with args.
2146 set dummy $ac_prog; ac_word=$2
2147 echo "$as_me:2147: checking for $ac_word" >&5
2148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2149 if test "${ac_cv_prog_LEX+set}" = set; then
2150 echo $ECHO_N "(cached) $ECHO_C" >&6
2152 if test -n "$LEX"; then
2153 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2155 ac_save_IFS=$IFS; IFS=':'
2157 for ac_dir in $ac_dummy; do
2159 test -z "$ac_dir" && ac_dir=.
2160 test -f "$ac_dir/$ac_word" || continue
2161 ac_cv_prog_LEX="$ac_prog"
2168 if test -n "$LEX"; then
2169 echo "$as_me:2169: result: $LEX" >&5
2170 echo "${ECHO_T}$LEX" >&6
2172 echo "$as_me:2172: result: no" >&5
2173 echo "${ECHO_T}no" >&6
2176 test -n "$LEX" && break
2178 test -n "$LEX" || LEX=":"
2180 if test -z "$LEXLIB"
2183 echo "$as_me:2183: checking for yywrap in -lfl" >&5
2184 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
2185 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
2186 echo $ECHO_N "(cached) $ECHO_C" >&6
2188 ac_check_lib_save_LIBS=$LIBS
2190 cat >conftest.$ac_ext <<_ACEOF
2191 #line 2191 "configure"
2192 #include "confdefs.h"
2194 /* Override any gcc2 internal prototype to avoid an error. */
2198 /* We use char because int might match the return type of a gcc2
2199 builtin and then its argument prototype would still apply. */
2209 rm -f conftest.$ac_objext conftest$ac_exeext
2210 if { (eval echo $as_me:2210: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
2211 ac_cv_lib_fl_yywrap=yes
2213 echo "$as_me: failed program was:" >&5
2214 cat conftest.$ac_ext >&5
2215 ac_cv_lib_fl_yywrap=no
2217 rm -f conftest$ac_exeext conftest.$ac_ext
2218 LIBS=$ac_check_lib_save_LIBS
2220 echo "$as_me:2220: result: $ac_cv_lib_fl_yywrap" >&5
2221 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
2222 if test $ac_cv_lib_fl_yywrap = yes; then
2226 echo "$as_me:2226: checking for yywrap in -ll" >&5
2227 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
2228 if test "${ac_cv_lib_l_yywrap+set}" = set; then
2229 echo $ECHO_N "(cached) $ECHO_C" >&6
2231 ac_check_lib_save_LIBS=$LIBS
2233 cat >conftest.$ac_ext <<_ACEOF
2234 #line 2234 "configure"
2235 #include "confdefs.h"
2237 /* Override any gcc2 internal prototype to avoid an error. */
2241 /* We use char because int might match the return type of a gcc2
2242 builtin and then its argument prototype would still apply. */
2252 rm -f conftest.$ac_objext conftest$ac_exeext
2253 if { (eval echo $as_me:2253: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
2254 ac_cv_lib_l_yywrap=yes
2256 echo "$as_me: failed program was:" >&5
2257 cat conftest.$ac_ext >&5
2258 ac_cv_lib_l_yywrap=no
2260 rm -f conftest$ac_exeext conftest.$ac_ext
2261 LIBS=$ac_check_lib_save_LIBS
2263 echo "$as_me:2263: result: $ac_cv_lib_l_yywrap" >&5
2264 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
2265 if test $ac_cv_lib_l_yywrap = yes; then
2273 if test "x$LEX" != "x:"; then
2274 echo "$as_me:2274: checking lex output file root" >&5
2275 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
2276 if test "${ac_cv_prog_lex_root+set}" = set; then
2277 echo $ECHO_N "(cached) $ECHO_C" >&6
2279 # The minimal lex program is just a single line: %%. But some broken lexes
2280 # (Solaris, I think it was) want two %% lines, so accommodate them.
2283 if test -f lex.yy.c; then
2284 ac_cv_prog_lex_root=lex.yy
2285 elif test -f lexyy.c; then
2286 ac_cv_prog_lex_root=lexyy
2288 { echo "$as_me: error: cannot find output from $LEX; giving up" >&2
2289 { (exit 1); exit; }; }
2292 echo "$as_me:2292: result: $ac_cv_prog_lex_root" >&5
2293 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
2294 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
2296 echo "$as_me:2296: checking whether yytext is a pointer" >&5
2297 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
2298 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
2299 echo $ECHO_N "(cached) $ECHO_C" >&6
2301 # POSIX says lex can declare yytext either as a pointer or an array; the
2302 # default is implementation-dependent. Figure out which it is, since
2303 # not all implementations provide the %pointer and %array declarations.
2304 ac_cv_prog_lex_yytext_pointer=no
2305 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
2307 LIBS="$LIBS $LEXLIB"
2308 cat >conftest.$ac_ext <<_ACEOF
2309 `cat $LEX_OUTPUT_ROOT.c`
2311 rm -f conftest.$ac_objext conftest$ac_exeext
2312 if { (eval echo $as_me:2312: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
2313 ac_cv_prog_lex_yytext_pointer=yes
2315 echo "$as_me: failed program was:" >&5
2316 cat conftest.$ac_ext >&5
2318 rm -f conftest$ac_exeext conftest.$ac_ext
2320 rm -f "${LEX_OUTPUT_ROOT}.c"
2323 echo "$as_me:2323: result: $ac_cv_prog_lex_yytext_pointer" >&5
2324 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
2325 if test $ac_cv_prog_lex_yytext_pointer = yes; then
2327 cat >>confdefs.h <<\EOF
2328 #define YYTEXT_POINTER 1
2335 if test -n "$ac_tool_prefix"; then
2336 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2337 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2338 echo "$as_me:2338: checking for $ac_word" >&5
2339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2340 if test "${ac_cv_prog_RANLIB+set}" = set; then
2341 echo $ECHO_N "(cached) $ECHO_C" >&6
2343 if test -n "$RANLIB"; then
2344 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2346 ac_save_IFS=$IFS; IFS=':'
2348 for ac_dir in $ac_dummy; do
2350 test -z "$ac_dir" && ac_dir=.
2351 test -f "$ac_dir/$ac_word" || continue
2352 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2358 RANLIB=$ac_cv_prog_RANLIB
2359 if test -n "$RANLIB"; then
2360 echo "$as_me:2360: result: $RANLIB" >&5
2361 echo "${ECHO_T}$RANLIB" >&6
2363 echo "$as_me:2363: result: no" >&5
2364 echo "${ECHO_T}no" >&6
2368 if test -z "$ac_cv_prog_RANLIB"; then
2369 ac_ct_RANLIB=$RANLIB
2370 # Extract the first word of "ranlib", so it can be a program name with args.
2371 set dummy ranlib; ac_word=$2
2372 echo "$as_me:2372: checking for $ac_word" >&5
2373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2374 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2375 echo $ECHO_N "(cached) $ECHO_C" >&6
2377 if test -n "$ac_ct_RANLIB"; then
2378 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2380 ac_save_IFS=$IFS; IFS=':'
2382 for ac_dir in $ac_dummy; do
2384 test -z "$ac_dir" && ac_dir=.
2385 test -f "$ac_dir/$ac_word" || continue
2386 ac_cv_prog_ac_ct_RANLIB="ranlib"
2390 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2393 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2394 if test -n "$ac_ct_RANLIB"; then
2395 echo "$as_me:2395: result: $ac_ct_RANLIB" >&5
2396 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2398 echo "$as_me:2398: result: no" >&5
2399 echo "${ECHO_T}no" >&6
2402 RANLIB=$ac_ct_RANLIB
2404 RANLIB="$ac_cv_prog_RANLIB"
2407 for ac_prog in mawk gawk nawk awk
2409 # Extract the first word of "$ac_prog", so it can be a program name with args.
2410 set dummy $ac_prog; ac_word=$2
2411 echo "$as_me:2411: checking for $ac_word" >&5
2412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2413 if test "${ac_cv_prog_AWK+set}" = set; then
2414 echo $ECHO_N "(cached) $ECHO_C" >&6
2416 if test -n "$AWK"; then
2417 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2419 ac_save_IFS=$IFS; IFS=':'
2421 for ac_dir in $ac_dummy; do
2423 test -z "$ac_dir" && ac_dir=.
2424 test -f "$ac_dir/$ac_word" || continue
2425 ac_cv_prog_AWK="$ac_prog"
2432 if test -n "$AWK"; then
2433 echo "$as_me:2433: result: $AWK" >&5
2434 echo "${ECHO_T}$AWK" >&6
2436 echo "$as_me:2436: result: no" >&5
2437 echo "${ECHO_T}no" >&6
2440 test -n "$AWK" && break
2443 echo "$as_me:2443: checking for ln -s or something else" >&5
2444 echo $ECHO_N "checking for ln -s or something else... $ECHO_C" >&6
2445 if test "${ac_cv_prog_LN_S+set}" = set; then
2446 echo $ECHO_N "(cached) $ECHO_C" >&6
2449 if ln -s X conftestdata 2>/dev/null
2452 ac_cv_prog_LN_S="ln -s"
2455 if ln conftestdata1 conftestdata2; then
2463 LN_S="$ac_cv_prog_LN_S"
2464 echo "$as_me:2464: result: $ac_cv_prog_LN_S" >&5
2465 echo "${ECHO_T}$ac_cv_prog_LN_S" >&6
2467 # Check whether --with-mips_abi or --without-mips_abi was given.
2468 if test "${with_mips_abi+set}" = set; then
2469 withval="$with_mips_abi"
2475 with_mips_abi="${with_mips_abi:-yes}"
2476 if test -n "$GCC"; then
2478 # GCC < 2.8 only supports the O32 ABI. GCC >= 2.8 has a flag to select
2479 # which ABI to use, but only supports (as of 2.8.1) the N32 and 64 ABIs.
2481 # Default to N32, but if GCC doesn't grok -mabi=n32, we assume an old
2482 # GCC and revert back to O32. The same goes if O32 is asked for - old
2483 # GCCs doesn't like the -mabi option, and new GCCs can't output O32.
2485 # Don't you just love *all* the different SGI ABIs?
2487 case "${with_mips_abi}" in
2488 32|o32) abi='-mabi=32'; abilibdirext='' ;;
2489 n32|yes) abi='-mabi=n32'; abilibdirext='32' ;;
2490 64) abi='-mabi=64'; abilibdirext='64' ;;
2491 no) abi=''; abilibdirext='';;
2492 *) { echo "$as_me: error: \"Invalid ABI specified\"" >&2
2493 { (exit 1); exit; }; } ;;
2495 if test -n "$abi" ; then
2496 ac_foo=krb_cv_gcc_`echo $abi | tr =- __`
2497 echo "$as_me:2497: checking if $CC supports the $abi option" >&5
2498 echo $ECHO_N "checking if $CC supports the $abi option... $ECHO_C" >&6
2499 if eval "test \"\${$ac_foo+set}\" = set"; then
2500 echo $ECHO_N "(cached) $ECHO_C" >&6
2503 save_CFLAGS="$CFLAGS"
2504 CFLAGS="$CFLAGS $abi"
2505 cat >conftest.$ac_ext <<_ACEOF
2506 #line 2506 "configure"
2507 #include "confdefs.h"
2517 rm -f conftest.$ac_objext
2518 if { (eval echo $as_me:2518: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
2521 echo "$as_me: failed program was:" >&5
2522 cat conftest.$ac_ext >&5
2525 rm -f conftest.$ac_objext conftest.$ac_ext
2526 CFLAGS="$save_CFLAGS"
2530 ac_res=`eval echo \\\$$ac_foo`
2531 echo "$as_me:2531: result: $ac_res" >&5
2532 echo "${ECHO_T}$ac_res" >&6
2533 if test $ac_res = no; then
2534 # Try to figure out why that failed...
2537 save_CFLAGS="$CFLAGS"
2538 CFLAGS="$CFLAGS -mabi=n32"
2539 cat >conftest.$ac_ext <<_ACEOF
2540 #line 2540 "configure"
2541 #include "confdefs.h"
2551 rm -f conftest.$ac_objext
2552 if { (eval echo $as_me:2552: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
2555 echo "$as_me: failed program was:" >&5
2556 cat conftest.$ac_ext >&5
2559 rm -f conftest.$ac_objext conftest.$ac_ext
2560 CLAGS="$save_CFLAGS"
2561 if test $ac_res = yes; then
2563 { echo "$as_me: error: $CC does not support the $with_mips_abi ABI" >&2
2564 { (exit 1); exit; }; }
2571 if test $with_mips_abi = yes; then
2572 # Old GCC, default to O32
2577 { echo "$as_me: error: $CC does not support the $with_mips_abi ABI" >&2
2578 { (exit 1); exit; }; }
2582 fi #if test $ac_res = no; then
2583 fi #if test -n "$abi" ; then
2585 case "${with_mips_abi}" in
2586 32|o32) abi='-32'; abilibdirext='' ;;
2587 n32|yes) abi='-n32'; abilibdirext='32' ;;
2588 64) abi='-64'; abilibdirext='64' ;;
2589 no) abi=''; abilibdirext='';;
2590 *) { echo "$as_me: error: \"Invalid ABI specified\"" >&2
2591 { (exit 1); exit; }; } ;;
2593 fi #if test -n "$GCC"; then
2598 libdir="$libdir$abilibdirext"
2600 echo "$as_me:2600: checking for __attribute__" >&5
2601 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6
2602 if test "${ac_cv___attribute__+set}" = set; then
2603 echo $ECHO_N "(cached) $ECHO_C" >&6
2606 cat >conftest.$ac_ext <<_ACEOF
2607 #line 2607 "configure"
2608 #include "confdefs.h"
2616 static void foo(void) __attribute__ ((noreturn));
2628 rm -f conftest.$ac_objext
2629 if { (eval echo $as_me:2629: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
2630 ac_cv___attribute__=yes
2632 echo "$as_me: failed program was:" >&5
2633 cat conftest.$ac_ext >&5
2634 ac_cv___attribute__=no
2636 rm -f conftest.$ac_objext conftest.$ac_ext
2639 if test "$ac_cv___attribute__" = "yes"; then
2641 cat >>confdefs.h <<\EOF
2642 #define HAVE___ATTRIBUTE__ 1
2646 echo "$as_me:2646: result: $ac_cv___attribute__" >&5
2647 echo "${ECHO_T}$ac_cv___attribute__" >&6
2649 # Check whether --enable-shared or --disable-shared was given.
2650 if test "${enable_shared+set}" = set; then
2651 enableval="$enable_shared"
2652 p=${PACKAGE-default}
2653 case "$enableval" in
2654 yes) enable_shared=yes ;;
2655 no) enable_shared=no ;;
2658 # Look at the argument we got. We use all the common list separators.
2659 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2660 for pkg in $enableval; do
2661 if test "X$pkg" = "X$p"; then
2671 # Check whether --enable-static or --disable-static was given.
2672 if test "${enable_static+set}" = set; then
2673 enableval="$enable_static"
2674 p=${PACKAGE-default}
2675 case "$enableval" in
2676 yes) enable_static=yes ;;
2677 no) enable_static=no ;;
2680 # Look at the argument we got. We use all the common list separators.
2681 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2682 for pkg in $enableval; do
2683 if test "X$pkg" = "X$p"; then
2693 # Check whether --enable-fast-install or --disable-fast-install was given.
2694 if test "${enable_fast_install+set}" = set; then
2695 enableval="$enable_fast_install"
2696 p=${PACKAGE-default}
2697 case "$enableval" in
2698 yes) enable_fast_install=yes ;;
2699 no) enable_fast_install=no ;;
2701 enable_fast_install=no
2702 # Look at the argument we got. We use all the common list separators.
2703 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2704 for pkg in $enableval; do
2705 if test "X$pkg" = "X$p"; then
2706 enable_fast_install=yes
2713 enable_fast_install=yes
2716 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2717 if test "${with_gnu_ld+set}" = set; then
2718 withval="$with_gnu_ld"
2719 test "$withval" = no || with_gnu_ld=yes
2724 if test "$ac_cv_c_compiler_gnu" = yes; then
2725 # Check if gcc -print-prog-name=ld gives a path.
2726 echo "$as_me:2726: checking for ld used by GCC" >&5
2727 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2730 # gcc leaves a trailing carriage return which upsets mingw
2731 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2733 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2736 # Accept absolute paths.
2737 [\\/]* | [A-Za-z]:[\\/]*)
2738 re_direlt='/[^/][^/]*/\.\./'
2739 # Canonicalize the path of ld
2740 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2741 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2742 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2744 test -z "$LD" && LD="$ac_prog"
2747 # If it fails, then pretend we aren't using GCC.
2751 # If it is relative, then search for the first ld in PATH.
2755 elif test "$with_gnu_ld" = yes; then
2756 echo "$as_me:2756: checking for GNU ld" >&5
2757 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2759 echo "$as_me:2759: checking for non-GNU ld" >&5
2760 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2762 if test "${ac_cv_path_LD+set}" = set; then
2763 echo $ECHO_N "(cached) $ECHO_C" >&6
2765 if test -z "$LD"; then
2766 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2767 for ac_dir in $PATH; do
2768 test -z "$ac_dir" && ac_dir=.
2769 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2770 ac_cv_path_LD="$ac_dir/$ac_prog"
2771 # Check to see if the program is GNU ld. I'd rather use --version,
2772 # but apparently some GNU ld's only accept -v.
2773 # Break only if it was the GNU/non-GNU ld that we prefer.
2774 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2775 test "$with_gnu_ld" != no && break
2777 test "$with_gnu_ld" != yes && break
2783 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2788 if test -n "$LD"; then
2789 echo "$as_me:2789: result: $LD" >&5
2790 echo "${ECHO_T}$LD" >&6
2792 echo "$as_me:2792: result: no" >&5
2793 echo "${ECHO_T}no" >&6
2795 test -z "$LD" && { echo "$as_me: error: no acceptable ld found in \$PATH" >&2
2796 { (exit 1); exit; }; }
2797 echo "$as_me:2797: checking if the linker ($LD) is GNU ld" >&5
2798 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2799 if test "${ac_cv_prog_gnu_ld+set}" = set; then
2800 echo $ECHO_N "(cached) $ECHO_C" >&6
2802 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2803 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2804 ac_cv_prog_gnu_ld=yes
2806 ac_cv_prog_gnu_ld=no
2809 echo "$as_me:2809: result: $ac_cv_prog_gnu_ld" >&5
2810 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
2811 with_gnu_ld=$ac_cv_prog_gnu_ld
2813 echo "$as_me:2813: checking for $LD option to reload object files" >&5
2814 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2815 if test "${lt_cv_ld_reload_flag+set}" = set; then
2816 echo $ECHO_N "(cached) $ECHO_C" >&6
2818 lt_cv_ld_reload_flag='-r'
2820 echo "$as_me:2820: result: $lt_cv_ld_reload_flag" >&5
2821 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2822 reload_flag=$lt_cv_ld_reload_flag
2823 test -n "$reload_flag" && reload_flag=" $reload_flag"
2825 echo "$as_me:2825: checking for BSD-compatible nm" >&5
2826 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2827 if test "${ac_cv_path_NM+set}" = set; then
2828 echo $ECHO_N "(cached) $ECHO_C" >&6
2830 if test -n "$NM"; then
2831 # Let the user override the test.
2834 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2835 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2836 test -z "$ac_dir" && ac_dir=.
2837 tmp_nm=$ac_dir/${ac_tool_prefix}nm
2838 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
2839 # Check to see if the nm accepts a BSD-compat flag.
2840 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2841 # nm: unknown option "B" ignored
2842 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2843 ac_cv_path_NM="$tmp_nm -B"
2845 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2846 ac_cv_path_NM="$tmp_nm -p"
2849 ac_cv_path_NM=${ac_cv_path_NM="$tmp_nm"} # keep the first match, but
2850 continue # so that we can try to find one that supports BSD flags
2855 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2860 echo "$as_me:2860: result: $NM" >&5
2861 echo "${ECHO_T}$NM" >&6
2863 echo "$as_me:2863: checking whether ln -s works" >&5
2864 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2865 if test "${ac_cv_prog_LN_S+set}" = set; then
2866 echo $ECHO_N "(cached) $ECHO_C" >&6
2868 rm -f conftest.sym conftest.file
2870 if ln -s conftest.file conftest.sym 2>/dev/null; then
2871 ac_cv_prog_LN_S="ln -s"
2872 elif ln conftest.file conftest.sym 2>/dev/null; then
2877 rm -f conftest.sym conftest.file
2879 LN_S=$ac_cv_prog_LN_S
2881 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2882 echo "$as_me:2882: result: yes" >&5
2883 echo "${ECHO_T}yes" >&6
2885 echo "$as_me:2885: result: no, using $LN_S" >&5
2886 echo "${ECHO_T}no, using $LN_S" >&6
2889 echo "$as_me:2889: checking how to recognise dependant libraries" >&5
2890 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
2891 if test "${lt_cv_deplibs_check_method+set}" = set; then
2892 echo $ECHO_N "(cached) $ECHO_C" >&6
2894 lt_cv_file_magic_cmd='${MAGIC}'
2895 lt_cv_file_magic_test_file=
2896 lt_cv_deplibs_check_method='unknown'
2897 # Need to set the preceding variable on all platforms that support
2898 # interlibrary dependencies.
2899 # 'none' -- dependencies not supported.
2900 # `unknown' -- same as none, but documents that we really don't know.
2901 # 'pass_all' -- all dependencies passed with no checks.
2902 # 'test_compile' -- check by making test program.
2903 # 'file_magic [regex]' -- check by looking for files in library path
2904 # which responds to the $file_magic_cmd with a given egrep regex.
2905 # If you have `file' or equivalent on your system and you're not sure
2906 # whether `pass_all' will *always* work, you probably want this one.
2910 lt_cv_deplibs_check_method=pass_all
2914 lt_cv_deplibs_check_method=pass_all
2918 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2919 lt_cv_file_magic_cmd='/usr/bin/file -L'
2920 lt_cv_file_magic_test_file=/shlib/libc.so
2924 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2925 lt_cv_file_magic_cmd='${OBJDUMP} -f'
2929 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2932 lt_cv_deplibs_check_method=='file_magic OpenBSD/i[3-9]86 demand paged shared library'
2933 lt_cv_file_magic_cmd=/usr/bin/file
2934 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2938 lt_cv_deplibs_check_method=pass_all
2943 lt_cv_deplibs_check_method=pass_all
2947 # TODO: Does this work for hpux-11 too?
2948 lt_cv_deplibs_check_method='file_magic (s0-90-90-9|PA-RISC0-9.0-9) shared library'
2949 lt_cv_file_magic_cmd=/usr/bin/file
2950 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2956 # this will be overridden with pass_all, but let us keep it just in case
2957 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2961 *-32|*"-32 ") libmagic=32-bit;;
2962 *-n32|*"-n32 ") libmagic=N32;;
2963 *-64|*"-64 ") libmagic=64-bit;;
2964 *) libmagic=never-match;;
2966 # this will be overridden with pass_all, but let us keep it just in case
2967 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2970 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2971 lt_cv_deplibs_check_method=pass_all
2974 # This must be Linux ELF.
2977 alpha* | i*86 | powerpc* | sparc* | ia64* )
2978 lt_cv_deplibs_check_method=pass_all ;;
2980 # glibc up to 2.1.1 does not perform some relocations on ARM
2981 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2983 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2987 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then :
2989 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
2990 lt_cv_file_magic_cmd='/usr/bin/file -L'
2991 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2995 osf3* | osf4* | osf5*)
2996 # this will be overridden with pass_all, but let us keep it just in case
2997 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2998 lt_cv_file_magic_test_file=/shlib/libc.so
2999 lt_cv_deplibs_check_method=pass_all
3003 lt_cv_deplibs_check_method=pass_all
3007 lt_cv_deplibs_check_method=pass_all
3008 lt_cv_file_magic_test_file=/lib/libc.so
3011 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3012 case "$host_vendor" in
3014 lt_cv_deplibs_check_method=pass_all
3017 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3018 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3025 echo "$as_me:3025: result: $lt_cv_deplibs_check_method" >&5
3026 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3027 file_magic_cmd=$lt_cv_file_magic_cmd
3028 deplibs_check_method=$lt_cv_deplibs_check_method
3030 # Only perform the check for file, if the check method requires it
3031 case "$deplibs_check_method" in
3033 if test "$file_magic_cmd" = '${MAGIC}'; then
3034 echo "$as_me:3034: checking for ${ac_tool_prefix}file" >&5
3035 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3036 if test "${lt_cv_path_MAGIC+set}" = set; then
3037 echo $ECHO_N "(cached) $ECHO_C" >&6
3041 lt_cv_path_MAGIC="$MAGIC" # Let the user override the test with a path.
3044 ac_cv_path_MAGIC="$MAGIC" # Let the user override the test with a dos path.
3047 ac_save_MAGIC="$MAGIC"
3048 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3049 ac_dummy="/usr/bin:$PATH"
3050 for ac_dir in $ac_dummy; do
3051 test -z "$ac_dir" && ac_dir=.
3052 if test -f $ac_dir/${ac_tool_prefix}file; then
3053 lt_cv_path_MAGIC="$ac_dir/${ac_tool_prefix}file"
3054 if test -n "$file_magic_test_file"; then
3055 case "$deplibs_check_method" in
3057 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3058 MAGIC="$lt_cv_path_MAGIC"
3059 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3060 egrep "$file_magic_regex" > /dev/null; then
3065 *** Warning: the command libtool uses to detect shared libraries,
3066 *** $file_magic_cmd, produces output that libtool cannot recognize.
3067 *** The result is that libtool may fail to recognize shared libraries
3068 *** as such. This will affect the creation of libtool libraries that
3069 *** depend on shared libraries, but programs linked with such libtool
3070 *** libraries will work regardless of this problem. Nevertheless, you
3071 *** may want to report the problem to your system manager and/or to
3072 *** bug-libtool@gnu.org
3082 MAGIC="$ac_save_MAGIC"
3087 MAGIC="$lt_cv_path_MAGIC"
3088 if test -n "$MAGIC"; then
3089 echo "$as_me:3089: result: $MAGIC" >&5
3090 echo "${ECHO_T}$MAGIC" >&6
3092 echo "$as_me:3092: result: no" >&5
3093 echo "${ECHO_T}no" >&6
3096 if test -z "$lt_cv_path_MAGIC"; then
3097 if test -n "$ac_tool_prefix"; then
3098 echo "$as_me:3098: checking for file" >&5
3099 echo $ECHO_N "checking for file... $ECHO_C" >&6
3100 if test "${lt_cv_path_MAGIC+set}" = set; then
3101 echo $ECHO_N "(cached) $ECHO_C" >&6
3105 lt_cv_path_MAGIC="$MAGIC" # Let the user override the test with a path.
3108 ac_cv_path_MAGIC="$MAGIC" # Let the user override the test with a dos path.
3111 ac_save_MAGIC="$MAGIC"
3112 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3113 ac_dummy="/usr/bin:$PATH"
3114 for ac_dir in $ac_dummy; do
3115 test -z "$ac_dir" && ac_dir=.
3116 if test -f $ac_dir/file; then
3117 lt_cv_path_MAGIC="$ac_dir/file"
3118 if test -n "$file_magic_test_file"; then
3119 case "$deplibs_check_method" in
3121 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3122 MAGIC="$lt_cv_path_MAGIC"
3123 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3124 egrep "$file_magic_regex" > /dev/null; then
3129 *** Warning: the command libtool uses to detect shared libraries,
3130 *** $file_magic_cmd, produces output that libtool cannot recognize.
3131 *** The result is that libtool may fail to recognize shared libraries
3132 *** as such. This will affect the creation of libtool libraries that
3133 *** depend on shared libraries, but programs linked with such libtool
3134 *** libraries will work regardless of this problem. Nevertheless, you
3135 *** may want to report the problem to your system manager and/or to
3136 *** bug-libtool@gnu.org
3146 MAGIC="$ac_save_MAGIC"
3151 MAGIC="$lt_cv_path_MAGIC"
3152 if test -n "$MAGIC"; then
3153 echo "$as_me:3153: result: $MAGIC" >&5
3154 echo "${ECHO_T}$MAGIC" >&6
3156 echo "$as_me:3156: result: no" >&5
3157 echo "${ECHO_T}no" >&6
3169 if test -n "$ac_tool_prefix"; then
3170 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3171 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3172 echo "$as_me:3172: checking for $ac_word" >&5
3173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3174 if test "${ac_cv_prog_RANLIB+set}" = set; then
3175 echo $ECHO_N "(cached) $ECHO_C" >&6
3177 if test -n "$RANLIB"; then
3178 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3180 ac_save_IFS=$IFS; IFS=':'
3182 for ac_dir in $ac_dummy; do
3184 test -z "$ac_dir" && ac_dir=.
3185 test -f "$ac_dir/$ac_word" || continue
3186 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3192 RANLIB=$ac_cv_prog_RANLIB
3193 if test -n "$RANLIB"; then
3194 echo "$as_me:3194: result: $RANLIB" >&5
3195 echo "${ECHO_T}$RANLIB" >&6
3197 echo "$as_me:3197: result: no" >&5
3198 echo "${ECHO_T}no" >&6
3202 if test -z "$ac_cv_prog_RANLIB"; then
3203 ac_ct_RANLIB=$RANLIB
3204 # Extract the first word of "ranlib", so it can be a program name with args.
3205 set dummy ranlib; ac_word=$2
3206 echo "$as_me:3206: checking for $ac_word" >&5
3207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3208 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3209 echo $ECHO_N "(cached) $ECHO_C" >&6
3211 if test -n "$ac_ct_RANLIB"; then
3212 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3214 ac_save_IFS=$IFS; IFS=':'
3216 for ac_dir in $ac_dummy; do
3218 test -z "$ac_dir" && ac_dir=.
3219 test -f "$ac_dir/$ac_word" || continue
3220 ac_cv_prog_ac_ct_RANLIB="ranlib"
3224 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3227 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3228 if test -n "$ac_ct_RANLIB"; then
3229 echo "$as_me:3229: result: $ac_ct_RANLIB" >&5
3230 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3232 echo "$as_me:3232: result: no" >&5
3233 echo "${ECHO_T}no" >&6
3236 RANLIB=$ac_ct_RANLIB
3238 RANLIB="$ac_cv_prog_RANLIB"
3241 if test -n "$ac_tool_prefix"; then
3242 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3243 set dummy ${ac_tool_prefix}strip; ac_word=$2
3244 echo "$as_me:3244: checking for $ac_word" >&5
3245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3246 if test "${ac_cv_prog_STRIP+set}" = set; then
3247 echo $ECHO_N "(cached) $ECHO_C" >&6
3249 if test -n "$STRIP"; then
3250 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3252 ac_save_IFS=$IFS; IFS=':'
3254 for ac_dir in $ac_dummy; do
3256 test -z "$ac_dir" && ac_dir=.
3257 test -f "$ac_dir/$ac_word" || continue
3258 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3264 STRIP=$ac_cv_prog_STRIP
3265 if test -n "$STRIP"; then
3266 echo "$as_me:3266: result: $STRIP" >&5
3267 echo "${ECHO_T}$STRIP" >&6
3269 echo "$as_me:3269: result: no" >&5
3270 echo "${ECHO_T}no" >&6
3274 if test -z "$ac_cv_prog_STRIP"; then
3276 # Extract the first word of "strip", so it can be a program name with args.
3277 set dummy strip; ac_word=$2
3278 echo "$as_me:3278: checking for $ac_word" >&5
3279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3280 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3281 echo $ECHO_N "(cached) $ECHO_C" >&6
3283 if test -n "$ac_ct_STRIP"; then
3284 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3286 ac_save_IFS=$IFS; IFS=':'
3288 for ac_dir in $ac_dummy; do
3290 test -z "$ac_dir" && ac_dir=.
3291 test -f "$ac_dir/$ac_word" || continue
3292 ac_cv_prog_ac_ct_STRIP="strip"
3296 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3299 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3300 if test -n "$ac_ct_STRIP"; then
3301 echo "$as_me:3301: result: $ac_ct_STRIP" >&5
3302 echo "${ECHO_T}$ac_ct_STRIP" >&6
3304 echo "$as_me:3304: result: no" >&5
3305 echo "${ECHO_T}no" >&6
3310 STRIP="$ac_cv_prog_STRIP"
3313 # Check for any special flags to pass to ltconfig.
3314 libtool_flags="--cache-file=$cache_file"
3315 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3316 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3317 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3318 test "$ac_cv_c_compiler_gnu" = yes && libtool_flags="$libtool_flags --with-gcc"
3319 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3321 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3322 if test "${enable_libtool_lock+set}" = set; then
3323 enableval="$enable_libtool_lock"
3326 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3327 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3329 # Check whether --with-pic or --without-pic was given.
3330 if test "${with_pic+set}" = set; then
3336 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3337 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3339 # Some flags need to be propagated to the compiler or linker for good
3343 # Find out which ABI we are using.
3344 echo '#line 3344 "configure"' > conftest.$ac_ext
3345 if { (eval echo $as_me:3345: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; }; then
3346 case "`/usr/bin/file conftest.o`" in
3362 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3363 SAVE_CFLAGS="$CFLAGS"
3364 CFLAGS="$CFLAGS -belf"
3365 echo "$as_me:3365: checking whether the C compiler needs -belf" >&5
3366 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3367 if test "${lt_cv_cc_needs_belf+set}" = set; then
3368 echo $ECHO_N "(cached) $ECHO_C" >&6
3371 cat >conftest.$ac_ext <<_ACEOF
3372 #line 3372 "configure"
3373 #include "confdefs.h"
3383 rm -f conftest.$ac_objext conftest$ac_exeext
3384 if { (eval echo $as_me:3384: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
3385 lt_cv_cc_needs_belf=yes
3387 echo "$as_me: failed program was:" >&5
3388 cat conftest.$ac_ext >&5
3389 lt_cv_cc_needs_belf=no
3391 rm -f conftest$ac_exeext conftest.$ac_ext
3394 echo "$as_me:3394: result: $lt_cv_cc_needs_belf" >&5
3395 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3396 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3397 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3398 CFLAGS="$SAVE_CFLAGS"
3404 # Save cache, so that ltconfig can load it
3405 cat >confcache <<\_ACEOF
3406 # This file is a shell script that caches the results of configure
3407 # tests run on this system so they can be shared between configure
3408 # scripts and configure runs, see configure's option --config-cache.
3409 # It is not useful on other systems. If it contains results you don't
3410 # want to keep, you may remove or edit it.
3412 # config.status only pays attention to the cache file if you give it
3413 # the --recheck option to rerun configure.
3415 # `ac_cv_env_foo' variables (set or unset) will be overriden when
3416 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3421 # The following way of writing the cache mishandles newlines in values,
3422 # but we know of no workaround that is simple, portable, and efficient.
3423 # So, don't put newlines in cache variables' values.
3424 # Ultrix sh set writes to stderr and can't be redirected directly,
3425 # and sets the high bit in the cache file unless we assign to the vars.
3428 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3430 # `set' does not quote correctly, so add quotes (double-quote
3431 # substitution turns \\\\ into \\, and sed turns \\ into \).
3434 s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3437 # `set' quotes correctly as required by POSIX, so do not add quotes.
3439 "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3446 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3448 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3450 if cmp -s $cache_file confcache; then :; else
3451 if test -w $cache_file; then
3452 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3453 cat confcache >$cache_file
3455 echo "not updating unwritable cache $cache_file"
3460 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3461 AR="$AR" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3462 MAGIC="$MAGIC" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3463 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
3464 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
3465 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
3466 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
3467 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3468 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
3469 || { echo "$as_me: error: libtool configure failed" >&2
3470 { (exit 1); exit; }; }
3472 # Reload cache, that may have been modified by ltconfig
3473 if test -r "$cache_file"; then
3474 # Some versions of bash will fail to source /dev/null (special
3475 # files actually), so we avoid doing that.
3476 if test -f "$cache_file"; then
3477 { echo "$as_me:3477: loading cache $cache_file" >&5
3478 echo "loading cache $cache_file" >&6;}
3480 [\\/]* | ?:[\\/]* ) . $cache_file;;
3481 *) . ./$cache_file;;
3485 { echo "$as_me:3485: creating cache $cache_file" >&5
3486 echo "creating cache $cache_file" >&6;}
3490 # This can be used to rebuild libtool when needed
3491 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
3493 # Always use our own libtool.
3494 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3496 # Redirect the config.log output again, so that the ltconfig log is not
3497 # clobbered by the next message.
3498 exec 5>>./config.log
3501 WFLAGS_NOIMPLICITINT=""
3502 if test -z "$WFLAGS" -a "$GCC" = "yes"; then
3503 # -Wno-implicit-int for broken X11 headers
3504 # leave these out for now:
3505 # -Wcast-align doesn't work well on alpha osf/1
3506 # -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
3507 # -Wmissing-declarations -Wnested-externs
3508 WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs"
3509 WFLAGS_NOUNUSED="-Wno-unused"
3510 WFLAGS_NOIMPLICITINT="-Wno-implicit-int"
3515 # Check whether --with-berkeley-db or --without-berkeley-db was given.
3516 if test "${with_berkeley_db+set}" = set; then
3517 withval="$with_berkeley_db"
3519 if test "$withval" = no; then
3524 if test "$berkeley_db"; then
3531 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
3533 echo "$as_me:3533: checking for $ac_header" >&5
3534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3535 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
3536 echo $ECHO_N "(cached) $ECHO_C" >&6
3538 cat >conftest.$ac_ext <<_ACEOF
3539 #line 3539 "configure"
3540 #include "confdefs.h"
3541 #include <$ac_header>
3544 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err"
3545 if { (eval echo $as_me:3545: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then
3546 if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then
3547 ac_cpp_err=$ac_c_preproc_warn_flag
3555 if test -z "$ac_cpp_err"; then
3556 eval "$ac_ac_Header=yes"
3558 cat conftest.err >&5
3559 echo "$as_me: failed program was:" >&5
3560 cat conftest.$ac_ext >&5
3561 eval "$ac_ac_Header=no"
3566 echo "$as_me:3566: result: `eval echo '${'$ac_ac_Header'}'`" >&5
3567 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
3568 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
3569 cat >>confdefs.h <<EOF
3570 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
3578 echo "$as_me:3578: checking for dbopen" >&5
3579 echo $ECHO_N "checking for dbopen... $ECHO_C" >&6
3580 if test "${ac_cv_funclib_dbopen+set}" = set; then
3581 echo $ECHO_N "(cached) $ECHO_C" >&6
3584 if eval "test \"\$ac_cv_func_dbopen\" != yes" ; then
3585 ac_save_LIBS="$LIBS"
3586 for ac_lib in $berkeley_db; do
3587 if test -n "$ac_lib"; then
3592 LIBS=" $ac_lib $ac_save_LIBS"
3593 cat >conftest.$ac_ext <<_ACEOF
3594 #line 3594 "configure"
3595 #include "confdefs.h"
3598 #if defined(HAVE_DB_185_H)
3600 #elif defined(HAVE_DB_H)
3607 dbopen(NULL, 0, 0, 0, NULL)
3612 rm -f conftest.$ac_objext conftest$ac_exeext
3613 if { (eval echo $as_me:3613: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
3614 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbopen=$ac_lib; else ac_cv_funclib_dbopen=yes; fi";break
3616 echo "$as_me: failed program was:" >&5
3617 cat conftest.$ac_ext >&5
3619 rm -f conftest$ac_exeext conftest.$ac_ext
3621 eval "ac_cv_funclib_dbopen=\${ac_cv_funclib_dbopen-no}"
3622 LIBS="$ac_save_LIBS"
3627 eval "ac_res=\$ac_cv_funclib_dbopen"
3631 for ac_func in dbopen
3633 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
3634 echo "$as_me:3634: checking for $ac_func" >&5
3635 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3636 if eval "test \"\${$ac_ac_var+set}\" = set"; then
3637 echo $ECHO_N "(cached) $ECHO_C" >&6
3639 cat >conftest.$ac_ext <<_ACEOF
3640 #line 3640 "configure"
3641 #include "confdefs.h"
3642 /* System header to define __stub macros and hopefully few prototypes,
3643 which can conflict with char $ac_func (); below. */
3645 /* Override any gcc2 internal prototype to avoid an error. */
3649 /* We use char because int might match the return type of a gcc2
3650 builtin and then its argument prototype would still apply. */
3657 /* The GNU C library defines this for functions which it implements
3658 to always fail with ENOSYS. Some functions are actually named
3659 something starting with __ and the normal name is an alias. */
3660 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3670 rm -f conftest.$ac_objext conftest$ac_exeext
3671 if { (eval echo $as_me:3671: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
3672 eval "$ac_ac_var=yes"
3674 echo "$as_me: failed program was:" >&5
3675 cat conftest.$ac_ext >&5
3676 eval "$ac_ac_var=no"
3678 rm -f conftest$ac_exeext conftest.$ac_ext
3680 echo "$as_me:3680: result: `eval echo '${'$ac_ac_var'}'`" >&5
3681 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
3682 if test `eval echo '${'$ac_ac_var'}'` = yes; then
3683 cat >>confdefs.h <<EOF
3684 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
3692 eval "ac_tr_func=HAVE_`echo dbopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
3693 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
3694 eval "LIB_dbopen=$ac_res"
3698 eval "ac_cv_func_dbopen=yes"
3700 cat >>confdefs.h <<EOF
3701 #define $ac_tr_func 1
3704 echo "$as_me:3704: result: yes" >&5
3705 echo "${ECHO_T}yes" >&6
3708 eval "ac_cv_func_dbopen=no"
3710 echo "$as_me:3710: result: no" >&5
3711 echo "${ECHO_T}no" >&6
3714 eval "ac_cv_func_dbopen=yes"
3715 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
3716 cat >>confdefs.h <<EOF
3717 #define $ac_tr_func 1
3720 cat >>confdefs.h <<EOF
3721 #define $ac_tr_lib 1
3724 echo "$as_me:3724: result: yes, in $ac_res" >&5
3725 echo "${ECHO_T}yes, in $ac_res" >&6
3729 echo "$as_me:3729: checking for dbm_firstkey" >&5
3730 echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6
3731 if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then
3732 echo $ECHO_N "(cached) $ECHO_C" >&6
3735 if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
3736 ac_save_LIBS="$LIBS"
3737 for ac_lib in "" $berkeley_db gdbm ndbm; do
3738 if test -n "$ac_lib"; then
3743 LIBS=" $ac_lib $ac_save_LIBS"
3744 cat >conftest.$ac_ext <<_ACEOF
3745 #line 3745 "configure"
3746 #include "confdefs.h"
3756 rm -f conftest.$ac_objext conftest$ac_exeext
3757 if { (eval echo $as_me:3757: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
3758 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
3760 echo "$as_me: failed program was:" >&5
3761 cat conftest.$ac_ext >&5
3763 rm -f conftest$ac_exeext conftest.$ac_ext
3765 eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
3766 LIBS="$ac_save_LIBS"
3771 eval "ac_res=\$ac_cv_funclib_dbm_firstkey"
3775 for ac_func in dbm_firstkey
3777 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
3778 echo "$as_me:3778: checking for $ac_func" >&5
3779 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3780 if eval "test \"\${$ac_ac_var+set}\" = set"; then
3781 echo $ECHO_N "(cached) $ECHO_C" >&6
3783 cat >conftest.$ac_ext <<_ACEOF
3784 #line 3784 "configure"
3785 #include "confdefs.h"
3786 /* System header to define __stub macros and hopefully few prototypes,
3787 which can conflict with char $ac_func (); below. */
3789 /* Override any gcc2 internal prototype to avoid an error. */
3793 /* We use char because int might match the return type of a gcc2
3794 builtin and then its argument prototype would still apply. */
3801 /* The GNU C library defines this for functions which it implements
3802 to always fail with ENOSYS. Some functions are actually named
3803 something starting with __ and the normal name is an alias. */
3804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3814 rm -f conftest.$ac_objext conftest$ac_exeext
3815 if { (eval echo $as_me:3815: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
3816 eval "$ac_ac_var=yes"
3818 echo "$as_me: failed program was:" >&5
3819 cat conftest.$ac_ext >&5
3820 eval "$ac_ac_var=no"
3822 rm -f conftest$ac_exeext conftest.$ac_ext
3824 echo "$as_me:3824: result: `eval echo '${'$ac_ac_var'}'`" >&5
3825 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
3826 if test `eval echo '${'$ac_ac_var'}'` = yes; then
3827 cat >>confdefs.h <<EOF
3828 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
3836 eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
3837 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
3838 eval "LIB_dbm_firstkey=$ac_res"
3842 eval "ac_cv_func_dbm_firstkey=yes"
3843 eval "LIB_dbm_firstkey="
3844 cat >>confdefs.h <<EOF
3845 #define $ac_tr_func 1
3848 echo "$as_me:3848: result: yes" >&5
3849 echo "${ECHO_T}yes" >&6
3852 eval "ac_cv_func_dbm_firstkey=no"
3853 eval "LIB_dbm_firstkey="
3854 echo "$as_me:3854: result: no" >&5
3855 echo "${ECHO_T}no" >&6
3858 eval "ac_cv_func_dbm_firstkey=yes"
3859 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
3860 cat >>confdefs.h <<EOF
3861 #define $ac_tr_func 1
3864 cat >>confdefs.h <<EOF
3865 #define $ac_tr_lib 1
3868 echo "$as_me:3868: result: yes, in $ac_res" >&5
3869 echo "${ECHO_T}yes, in $ac_res" >&6
3873 echo "$as_me:3873: checking for db_create" >&5
3874 echo $ECHO_N "checking for db_create... $ECHO_C" >&6
3875 if test "${ac_cv_funclib_db_create+set}" = set; then
3876 echo $ECHO_N "(cached) $ECHO_C" >&6
3879 if eval "test \"\$ac_cv_func_db_create\" != yes" ; then
3880 ac_save_LIBS="$LIBS"
3881 for ac_lib in "" $berkeley_db; do
3882 if test -n "$ac_lib"; then
3887 LIBS=" $ac_lib $ac_save_LIBS"
3888 cat >conftest.$ac_ext <<_ACEOF
3889 #line 3889 "configure"
3890 #include "confdefs.h"
3900 rm -f conftest.$ac_objext conftest$ac_exeext
3901 if { (eval echo $as_me:3901: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
3902 eval "if test -n \"$ac_lib\";then ac_cv_funclib_db_create=$ac_lib; else ac_cv_funclib_db_create=yes; fi";break
3904 echo "$as_me: failed program was:" >&5
3905 cat conftest.$ac_ext >&5
3907 rm -f conftest$ac_exeext conftest.$ac_ext
3909 eval "ac_cv_funclib_db_create=\${ac_cv_funclib_db_create-no}"
3910 LIBS="$ac_save_LIBS"
3915 eval "ac_res=\$ac_cv_funclib_db_create"
3919 for ac_func in db_create
3921 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
3922 echo "$as_me:3922: checking for $ac_func" >&5
3923 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3924 if eval "test \"\${$ac_ac_var+set}\" = set"; then
3925 echo $ECHO_N "(cached) $ECHO_C" >&6
3927 cat >conftest.$ac_ext <<_ACEOF
3928 #line 3928 "configure"
3929 #include "confdefs.h"
3930 /* System header to define __stub macros and hopefully few prototypes,
3931 which can conflict with char $ac_func (); below. */
3933 /* Override any gcc2 internal prototype to avoid an error. */
3937 /* We use char because int might match the return type of a gcc2
3938 builtin and then its argument prototype would still apply. */
3945 /* The GNU C library defines this for functions which it implements
3946 to always fail with ENOSYS. Some functions are actually named
3947 something starting with __ and the normal name is an alias. */
3948 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3958 rm -f conftest.$ac_objext conftest$ac_exeext
3959 if { (eval echo $as_me:3959: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
3960 eval "$ac_ac_var=yes"
3962 echo "$as_me: failed program was:" >&5
3963 cat conftest.$ac_ext >&5
3964 eval "$ac_ac_var=no"
3966 rm -f conftest$ac_exeext conftest.$ac_ext
3968 echo "$as_me:3968: result: `eval echo '${'$ac_ac_var'}'`" >&5
3969 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
3970 if test `eval echo '${'$ac_ac_var'}'` = yes; then
3971 cat >>confdefs.h <<EOF
3972 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
3980 eval "ac_tr_func=HAVE_`echo db_create | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
3981 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
3982 eval "LIB_db_create=$ac_res"
3986 eval "ac_cv_func_db_create=yes"
3987 eval "LIB_db_create="
3988 cat >>confdefs.h <<EOF
3989 #define $ac_tr_func 1
3992 echo "$as_me:3992: result: yes" >&5
3993 echo "${ECHO_T}yes" >&6
3996 eval "ac_cv_func_db_create=no"
3997 eval "LIB_db_create="
3998 echo "$as_me:3998: result: no" >&5
3999 echo "${ECHO_T}no" >&6
4002 eval "ac_cv_func_db_create=yes"
4003 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
4004 cat >>confdefs.h <<EOF
4005 #define $ac_tr_func 1
4008 cat >>confdefs.h <<EOF
4009 #define $ac_tr_lib 1
4012 echo "$as_me:4012: result: yes, in $ac_res" >&5
4013 echo "${ECHO_T}yes, in $ac_res" >&6
4018 if test "$LIB_dbopen" != "$LIB_db_create"; then
4019 DBLIB="$DBLIB $LIB_db_create"
4021 if test "$LIB_dbopen" != "$LIB_dbm_firstkey"; then
4022 DBLIB="$DBLIB $LIB_dbm_firstkey"
4025 echo "$as_me:4025: checking for inline" >&5
4026 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4027 if test "${ac_cv_c_inline+set}" = set; then
4028 echo $ECHO_N "(cached) $ECHO_C" >&6
4031 for ac_kw in inline __inline__ __inline; do
4032 cat >conftest.$ac_ext <<_ACEOF
4033 #line 4033 "configure"
4034 #include "confdefs.h"
4036 $ac_kw int foo () {return 0; }
4040 rm -f conftest.$ac_objext
4041 if { (eval echo $as_me:4041: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
4042 ac_cv_c_inline=$ac_kw; break
4044 echo "$as_me: failed program was:" >&5
4045 cat conftest.$ac_ext >&5
4047 rm -f conftest.$ac_objext conftest.$ac_ext
4051 echo "$as_me:4051: result: $ac_cv_c_inline" >&5
4052 echo "${ECHO_T}$ac_cv_c_inline" >&6
4053 case $ac_cv_c_inline in
4056 cat >>confdefs.h <<\EOF
4060 *) cat >>confdefs.h <<EOF
4061 #define inline $ac_cv_c_inline
4066 echo "$as_me:4066: checking for an ANSI C-conforming const" >&5
4067 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4068 if test "${ac_cv_c_const+set}" = set; then
4069 echo $ECHO_N "(cached) $ECHO_C" >&6
4071 cat >conftest.$ac_ext <<_ACEOF
4072 #line 4072 "configure"
4073 #include "confdefs.h"
4078 /* FIXME: Include the comments suggested by Paul. */
4080 /* Ultrix mips cc rejects this. */
4081 typedef int charset[2];
4083 /* SunOS 4.1.1 cc rejects this. */
4084 char const *const *ccp;
4086 /* NEC SVR4.0.2 mips cc rejects this. */
4087 struct point {int x, y;};
4088 static struct point const zero = {0,0};
4089 /* AIX XL C 1.02.0.0 rejects this.
4090 It does not let you subtract one const X* pointer from another in
4091 an arm of an if-expression whose if-part is not a constant
4093 const char *g = "string";
4094 ccp = &g + (g ? g-g : 0);
4095 /* HPUX 7.0 cc rejects these. */
4098 ccp = (char const *const *) p;
4099 { /* SCO 3.2v4 cc rejects this. */
4101 char const *s = 0 ? (char *) 0 : (char const *) 0;
4105 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4107 const int *foo = &x[0];
4110 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4111 typedef const int *iptr;
4115 { /* AIX XL C 1.02.0.0 rejects this saying
4116 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4117 struct s { int j; const int *ap[3]; };
4118 struct s *b; b->j = 5;
4120 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4129 rm -f conftest.$ac_objext
4130 if { (eval echo $as_me:4130: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
4133 echo "$as_me: failed program was:" >&5
4134 cat conftest.$ac_ext >&5
4137 rm -f conftest.$ac_objext conftest.$ac_ext
4139 echo "$as_me:4139: result: $ac_cv_c_const" >&5
4140 echo "${ECHO_T}$ac_cv_c_const" >&6
4141 if test $ac_cv_c_const = no; then
4143 cat >>confdefs.h <<\EOF
4149 echo "$as_me:4149: checking for ANSI C header files" >&5
4150 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4151 if test "${ac_cv_header_stdc+set}" = set; then
4152 echo $ECHO_N "(cached) $ECHO_C" >&6
4154 cat >conftest.$ac_ext <<_ACEOF
4155 #line 4155 "configure"
4156 #include "confdefs.h"
4163 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err"
4164 if { (eval echo $as_me:4164: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then
4165 if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then
4166 ac_cpp_err=$ac_c_preproc_warn_flag
4174 if test -z "$ac_cpp_err"; then
4175 ac_cv_header_stdc=yes
4177 cat conftest.err >&5
4178 echo "$as_me: failed program was:" >&5
4179 cat conftest.$ac_ext >&5
4180 ac_cv_header_stdc=no
4184 if test $ac_cv_header_stdc = yes; then
4185 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4186 cat >conftest.$ac_ext <<_ACEOF
4187 #line 4187 "configure"
4188 #include "confdefs.h"
4192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4193 egrep "memchr" >/dev/null 2>&1; then
4196 ac_cv_header_stdc=no
4202 if test $ac_cv_header_stdc = yes; then
4203 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4204 cat >conftest.$ac_ext <<_ACEOF
4205 #line 4205 "configure"
4206 #include "confdefs.h"
4210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4211 egrep "free" >/dev/null 2>&1; then
4214 ac_cv_header_stdc=no
4220 if test $ac_cv_header_stdc = yes; then
4221 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4222 if test "$cross_compiling" = yes; then
4225 cat >conftest.$ac_ext <<_ACEOF
4226 #line 4226 "configure"
4227 #include "confdefs.h"
4229 #if ((' ' & 0x0FF) == 0x020)
4230 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4231 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4233 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4234 || ('j' <= (c) && (c) <= 'r') \
4235 || ('s' <= (c) && (c) <= 'z'))
4236 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4239 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4244 for (i = 0; i < 256; i++)
4245 if (XOR (islower (i), ISLOWER (i))
4246 || toupper (i) != TOUPPER (i))
4251 rm -f conftest$ac_exeext
4252 { (eval echo $as_me:4252: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } &&
4253 (./conftest$ac_exeext) >&5 2>&1;
4255 if test $ac_status = 0; then
4258 echo "$as_me: program exited with status $ac_status" >&5
4259 echo "$as_me: failed program was:" >&5
4260 cat conftest.$ac_ext >&5
4261 ac_cv_header_stdc=no
4264 rm -f conftest$ac_exeext conftest.$ac_ext
4269 echo "$as_me:4269: result: $ac_cv_header_stdc" >&5
4270 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4271 if test $ac_cv_header_stdc = yes; then
4273 cat >>confdefs.h <<\EOF
4274 #define STDC_HEADERS 1
4279 echo "$as_me:4279: checking for size_t" >&5
4280 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4281 if test "${ac_cv_type_size_t+set}" = set; then
4282 echo $ECHO_N "(cached) $ECHO_C" >&6
4284 cat >conftest.$ac_ext <<_ACEOF
4285 #line 4285 "configure"
4286 #include "confdefs.h"
4287 $ac_includes_default
4293 if (sizeof (size_t))
4299 rm -f conftest.$ac_objext
4300 if { (eval echo $as_me:4300: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
4301 ac_cv_type_size_t=yes
4303 echo "$as_me: failed program was:" >&5
4304 cat conftest.$ac_ext >&5
4305 ac_cv_type_size_t=no
4307 rm -f conftest.$ac_objext conftest.$ac_ext
4309 echo "$as_me:4309: result: $ac_cv_type_size_t" >&5
4310 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4311 if test $ac_cv_type_size_t = yes; then
4315 cat >>confdefs.h <<EOF
4316 #define size_t unsigned
4321 echo "$as_me:4321: checking for pid_t" >&5
4322 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4323 if test "${ac_cv_type_pid_t+set}" = set; then
4324 echo $ECHO_N "(cached) $ECHO_C" >&6
4326 cat >conftest.$ac_ext <<_ACEOF
4327 #line 4327 "configure"
4328 #include "confdefs.h"
4329 $ac_includes_default
4341 rm -f conftest.$ac_objext
4342 if { (eval echo $as_me:4342: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
4343 ac_cv_type_pid_t=yes
4345 echo "$as_me: failed program was:" >&5
4346 cat conftest.$ac_ext >&5
4349 rm -f conftest.$ac_objext conftest.$ac_ext
4351 echo "$as_me:4351: result: $ac_cv_type_pid_t" >&5
4352 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
4353 if test $ac_cv_type_pid_t = yes; then
4357 cat >>confdefs.h <<EOF
4363 echo "$as_me:4363: checking for uid_t in sys/types.h" >&5
4364 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
4365 if test "${ac_cv_type_uid_t+set}" = set; then
4366 echo $ECHO_N "(cached) $ECHO_C" >&6
4368 cat >conftest.$ac_ext <<_ACEOF
4369 #line 4369 "configure"
4370 #include "confdefs.h"
4371 #include <sys/types.h>
4374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4375 egrep "uid_t" >/dev/null 2>&1; then
4376 ac_cv_type_uid_t=yes
4383 echo "$as_me:4383: result: $ac_cv_type_uid_t" >&5
4384 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
4385 if test $ac_cv_type_uid_t = no; then
4387 cat >>confdefs.h <<\EOF
4391 cat >>confdefs.h <<\EOF
4397 echo "$as_me:4397: checking return type of signal handlers" >&5
4398 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4399 if test "${ac_cv_type_signal+set}" = set; then
4400 echo $ECHO_N "(cached) $ECHO_C" >&6
4402 cat >conftest.$ac_ext <<_ACEOF
4403 #line 4403 "configure"
4404 #include "confdefs.h"
4405 #include <sys/types.h>
4411 extern "C" void (*signal (int, void (*)(int)))(int);
4413 void (*signal ()) ();
4424 rm -f conftest.$ac_objext
4425 if { (eval echo $as_me:4425: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
4426 ac_cv_type_signal=void
4428 echo "$as_me: failed program was:" >&5
4429 cat conftest.$ac_ext >&5
4430 ac_cv_type_signal=int
4432 rm -f conftest.$ac_objext conftest.$ac_ext
4434 echo "$as_me:4434: result: $ac_cv_type_signal" >&5
4435 echo "${ECHO_T}$ac_cv_type_signal" >&6
4437 cat >>confdefs.h <<EOF
4438 #define RETSIGTYPE $ac_cv_type_signal
4441 if test "$ac_cv_type_signal" = "void" ; then
4443 cat >>confdefs.h <<\EOF
4444 #define VOID_RETSIGTYPE 1
4449 echo "$as_me:4449: checking whether time.h and sys/time.h may both be included" >&5
4450 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4451 if test "${ac_cv_header_time+set}" = set; then
4452 echo $ECHO_N "(cached) $ECHO_C" >&6
4454 cat >conftest.$ac_ext <<_ACEOF
4455 #line 4455 "configure"
4456 #include "confdefs.h"
4457 #include <sys/types.h>
4458 #include <sys/time.h>
4469 rm -f conftest.$ac_objext
4470 if { (eval echo $as_me:4470: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
4471 ac_cv_header_time=yes
4473 echo "$as_me: failed program was:" >&5
4474 cat conftest.$ac_ext >&5
4475 ac_cv_header_time=no
4477 rm -f conftest.$ac_objext conftest.$ac_ext
4479 echo "$as_me:4479: result: $ac_cv_header_time" >&5
4480 echo "${ECHO_T}$ac_cv_header_time" >&6
4481 if test $ac_cv_header_time = yes; then
4483 cat >>confdefs.h <<\EOF
4484 #define TIME_WITH_SYS_TIME 1
4489 for ac_header in standards.h
4491 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
4493 echo "$as_me:4493: checking for $ac_header" >&5
4494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4495 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
4496 echo $ECHO_N "(cached) $ECHO_C" >&6
4498 cat >conftest.$ac_ext <<_ACEOF
4499 #line 4499 "configure"
4500 #include "confdefs.h"
4501 #include <$ac_header>
4504 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err"
4505 if { (eval echo $as_me:4505: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then
4506 if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then
4507 ac_cpp_err=$ac_c_preproc_warn_flag
4515 if test -z "$ac_cpp_err"; then
4516 eval "$ac_ac_Header=yes"
4518 cat conftest.err >&5
4519 echo "$as_me: failed program was:" >&5
4520 cat conftest.$ac_ext >&5
4521 eval "$ac_ac_Header=no"
4526 echo "$as_me:4526: result: `eval echo '${'$ac_ac_Header'}'`" >&5
4527 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
4528 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
4529 cat >>confdefs.h <<EOF
4530 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
4536 for i in netinet/ip.h netinet/tcp.h; do
4538 cv=`echo "$i" | sed 'y%./+-%__p_%'`
4540 echo "$as_me:4540: checking for $i" >&5
4541 echo $ECHO_N "checking for $i... $ECHO_C" >&6
4542 if eval "test \"\${ac_cv_header_$cv+set}\" = set"; then
4543 echo $ECHO_N "(cached) $ECHO_C" >&6
4545 cat >conftest.$ac_ext <<_ACEOF
4546 #line 4546 "configure"
4547 #include "confdefs.h"
4549 #ifdef HAVE_STANDARDS_H
4550 #include <standards.h>
4555 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err"
4556 if { (eval echo $as_me:4556: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then
4557 if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then
4558 ac_cpp_err=$ac_c_preproc_warn_flag
4566 if test -z "$ac_cpp_err"; then
4567 eval "ac_cv_header_$cv=yes"
4569 cat conftest.err >&5
4570 echo "$as_me: failed program was:" >&5
4571 cat conftest.$ac_ext >&5
4572 eval "ac_cv_header_$cv=no"
4577 echo "$as_me:4577: result: `eval echo '${'ac_cv_header_$cv'}'`" >&5
4578 echo "${ECHO_T}`eval echo '${'ac_cv_header_$cv'}'`" >&6
4579 ac_res=`eval echo \\$ac_cv_header_$cv`
4580 if test "$ac_res" = yes; then
4581 ac_tr_hdr=HAVE_`echo $i | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4582 cat >>confdefs.h <<EOF
4583 #define $ac_tr_hdr 1
4590 for ac_header in netinet/ip.h netinet/tcp.h
4592 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
4594 echo "$as_me:4594: checking for $ac_header" >&5
4595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4596 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
4597 echo $ECHO_N "(cached) $ECHO_C" >&6
4599 cat >conftest.$ac_ext <<_ACEOF
4600 #line 4600 "configure"
4601 #include "confdefs.h"
4602 #include <$ac_header>
4605 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err"
4606 if { (eval echo $as_me:4606: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then
4607 if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then
4608 ac_cpp_err=$ac_c_preproc_warn_flag
4616 if test -z "$ac_cpp_err"; then
4617 eval "$ac_ac_Header=yes"
4619 cat conftest.err >&5
4620 echo "$as_me: failed program was:" >&5
4621 cat conftest.$ac_ext >&5
4622 eval "$ac_ac_Header=no"
4627 echo "$as_me:4627: result: `eval echo '${'$ac_ac_Header'}'`" >&5
4628 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
4629 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
4630 cat >>confdefs.h <<EOF
4631 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
4639 for ac_func in getlogin setlogin
4641 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
4642 echo "$as_me:4642: checking for $ac_func" >&5
4643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4644 if eval "test \"\${$ac_ac_var+set}\" = set"; then
4645 echo $ECHO_N "(cached) $ECHO_C" >&6
4647 cat >conftest.$ac_ext <<_ACEOF
4648 #line 4648 "configure"
4649 #include "confdefs.h"
4650 /* System header to define __stub macros and hopefully few prototypes,
4651 which can conflict with char $ac_func (); below. */
4653 /* Override any gcc2 internal prototype to avoid an error. */
4657 /* We use char because int might match the return type of a gcc2
4658 builtin and then its argument prototype would still apply. */
4665 /* The GNU C library defines this for functions which it implements
4666 to always fail with ENOSYS. Some functions are actually named
4667 something starting with __ and the normal name is an alias. */
4668 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4678 rm -f conftest.$ac_objext conftest$ac_exeext
4679 if { (eval echo $as_me:4679: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
4680 eval "$ac_ac_var=yes"
4682 echo "$as_me: failed program was:" >&5
4683 cat conftest.$ac_ext >&5
4684 eval "$ac_ac_var=no"
4686 rm -f conftest$ac_exeext conftest.$ac_ext
4688 echo "$as_me:4688: result: `eval echo '${'$ac_ac_var'}'`" >&5
4689 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
4690 if test `eval echo '${'$ac_ac_var'}'` = yes; then
4691 cat >>confdefs.h <<EOF
4692 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
4698 if test "$ac_cv_func_getlogin" = yes; then
4699 echo "$as_me:4699: checking if getlogin is posix" >&5
4700 echo $ECHO_N "checking if getlogin is posix... $ECHO_C" >&6
4701 if test "${ac_cv_func_getlogin_posix+set}" = set; then
4702 echo $ECHO_N "(cached) $ECHO_C" >&6
4705 if test "$ac_cv_func_getlogin" = yes -a "$ac_cv_func_setlogin" = yes; then
4706 ac_cv_func_getlogin_posix=no
4708 ac_cv_func_getlogin_posix=yes
4712 echo "$as_me:4712: result: $ac_cv_func_getlogin_posix" >&5
4713 echo "${ECHO_T}$ac_cv_func_getlogin_posix" >&6
4714 if test "$ac_cv_func_getlogin_posix" = yes; then
4716 cat >>confdefs.h <<\EOF
4717 #define POSIX_GETLOGIN 1
4723 echo "$as_me:4723: checking if realloc if broken" >&5
4724 echo $ECHO_N "checking if realloc if broken... $ECHO_C" >&6
4725 if test "${ac_cv_func_realloc_broken+set}" = set; then
4726 echo $ECHO_N "(cached) $ECHO_C" >&6
4729 ac_cv_func_realloc_broken=no
4730 if test "$cross_compiling" = yes; then
4733 cat >conftest.$ac_ext <<_ACEOF
4734 #line 4734 "configure"
4735 #include "confdefs.h"
4742 return realloc(NULL, 17) == NULL;
4746 rm -f conftest$ac_exeext
4747 { (eval echo $as_me:4747: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } &&
4748 (./conftest$ac_exeext) >&5 2>&1;
4750 if test $ac_status = 0; then
4753 echo "$as_me: program exited with status $ac_status" >&5
4754 echo "$as_me: failed program was:" >&5
4755 cat conftest.$ac_ext >&5
4756 ac_cv_func_realloc_broken=yes
4759 rm -f conftest$ac_exeext conftest.$ac_ext
4763 echo "$as_me:4763: result: $ac_cv_func_realloc_broken" >&5
4764 echo "${ECHO_T}$ac_cv_func_realloc_broken" >&6
4765 if test "$ac_cv_func_realloc_broken" = yes ; then
4767 cat >>confdefs.h <<\EOF
4768 #define BROKEN_REALLOC 1
4774 LIB_roken='$(top_builddir)/lib/roken/libroken.la'
4775 INCLUDES_roken='-I$(top_builddir)/lib/roken -I$(top_srcdir)/lib/roken'
4778 WFLAGS_NOIMPLICITINT=""
4779 if test -z "$WFLAGS" -a "$GCC" = "yes"; then
4780 # -Wno-implicit-int for broken X11 headers
4781 # leave these out for now:
4782 # -Wcast-align doesn't work well on alpha osf/1
4783 # -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
4784 # -Wmissing-declarations -Wnested-externs
4785 WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs"
4786 WFLAGS_NOUNUSED="-Wno-unused"
4787 WFLAGS_NOIMPLICITINT="-Wno-implicit-int"
4790 echo "$as_me:4790: checking for ssize_t" >&5
4791 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
4792 if test "${ac_cv_type_ssize_t+set}" = set; then
4793 echo $ECHO_N "(cached) $ECHO_C" >&6
4795 cat >conftest.$ac_ext <<_ACEOF
4796 #line 4796 "configure"
4797 #include "confdefs.h"
4798 #include <sys/types.h>
4805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4806 egrep "ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4807 ac_cv_type_ssize_t=yes
4809 ac_cv_type_ssize_t=no
4814 echo "$as_me:4814: result: $ac_cv_type_ssize_t" >&5
4815 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
4816 if test $ac_cv_type_ssize_t = no; then
4818 cat >>confdefs.h <<\EOF
4824 cv=`echo "long long" | sed 'y%./+- %__p__%'`
4825 echo "$as_me:4825: checking for long long" >&5
4826 echo $ECHO_N "checking for long long... $ECHO_C" >&6
4827 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
4828 echo $ECHO_N "(cached) $ECHO_C" >&6
4830 cat >conftest.$ac_ext <<_ACEOF
4831 #line 4831 "configure"
4832 #include "confdefs.h"
4833 #include <sys/types.h>
4847 rm -f conftest.$ac_objext
4848 if { (eval echo $as_me:4848: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
4849 eval "ac_cv_type_$cv=yes"
4851 echo "$as_me: failed program was:" >&5
4852 cat conftest.$ac_ext >&5
4853 eval "ac_cv_type_$cv=no"
4855 rm -f conftest.$ac_objext conftest.$ac_ext
4857 ac_foo=`eval echo \\$ac_cv_type_$cv`
4858 echo "$as_me:4858: result: $ac_foo" >&5
4859 echo "${ECHO_T}$ac_foo" >&6
4860 if test "$ac_foo" = yes; then
4861 ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
4863 echo "$as_me:4863: checking for long long" >&5
4864 echo $ECHO_N "checking for long long... $ECHO_C" >&6
4865 if test "${ac_cv_type_long_long+set}" = set; then
4866 echo $ECHO_N "(cached) $ECHO_C" >&6
4868 cat >conftest.$ac_ext <<_ACEOF
4869 #line 4869 "configure"
4870 #include "confdefs.h"
4871 $ac_includes_default
4875 if ((long long *) 0)
4877 if (sizeof (long long))
4883 rm -f conftest.$ac_objext
4884 if { (eval echo $as_me:4884: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
4885 ac_cv_type_long_long=yes
4887 echo "$as_me: failed program was:" >&5
4888 cat conftest.$ac_ext >&5
4889 ac_cv_type_long_long=no
4891 rm -f conftest.$ac_objext conftest.$ac_ext
4893 echo "$as_me:4893: result: $ac_cv_type_long_long" >&5
4894 echo "${ECHO_T}$ac_cv_type_long_long" >&6
4895 if test $ac_cv_type_long_long = yes; then
4897 cat >>confdefs.h <<EOF
4898 #define HAVE_LONG_LONG 1
4905 cat >>confdefs.h <<EOF
4906 #define $ac_tr_hdr 1
4930 netinet/in_systm.h \
4932 netinet6/in6_var.h \
4964 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
4966 echo "$as_me:4966: checking for $ac_header" >&5
4967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4968 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
4969 echo $ECHO_N "(cached) $ECHO_C" >&6
4971 cat >conftest.$ac_ext <<_ACEOF
4972 #line 4972 "configure"
4973 #include "confdefs.h"
4974 #include <$ac_header>
4977 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err"
4978 if { (eval echo $as_me:4978: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then
4979 if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then
4980 ac_cpp_err=$ac_c_preproc_warn_flag
4988 if test -z "$ac_cpp_err"; then
4989 eval "$ac_ac_Header=yes"
4991 cat conftest.err >&5
4992 echo "$as_me: failed program was:" >&5
4993 cat conftest.$ac_ext >&5
4994 eval "$ac_ac_Header=no"
4999 echo "$as_me:4999: result: `eval echo '${'$ac_ac_Header'}'`" >&5
5000 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
5001 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
5002 cat >>confdefs.h <<EOF
5003 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
5009 if test "$ac_cv_header_err_h" = yes; then
5011 have_err_h_FALSE='#'
5017 if test "$ac_cv_header_fnmatch_h" = yes; then
5018 have_fnmatch_h_TRUE=
5019 have_fnmatch_h_FALSE='#'
5021 have_fnmatch_h_TRUE='#'
5022 have_fnmatch_h_FALSE=
5025 if test "$ac_cv_header_ifaddrs_h" = yes; then
5026 have_ifaddrs_h_TRUE=
5027 have_ifaddrs_h_FALSE='#'
5029 have_ifaddrs_h_TRUE='#'
5030 have_ifaddrs_h_FALSE=
5033 if test "$ac_cv_header_vis_h" = yes; then
5035 have_vis_h_FALSE='#'
5041 # Check whether --with-ipv6 or --without-ipv6 was given.
5042 if test "${with_ipv6+set}" = set; then
5043 withval="$with_ipv6"
5045 if test "$withval" = "no"; then
5049 save_CFLAGS="${CFLAGS}"
5050 if test "${ac_cv_lib_ipv6+set}" = set; then
5051 echo $ECHO_N "(cached) $ECHO_C" >&6
5056 echo "$as_me:5056: checking ipv6 stack type" >&5
5057 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
5058 for i in v6d toshiba kame inria zeta linux; do
5061 cat >conftest.$ac_ext <<_ACEOF
5062 #line 5062 "configure"
5063 #include "confdefs.h"
5065 #include </usr/local/v6/include/sys/types.h>
5070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5071 egrep "yes" >/dev/null 2>&1; then
5072 v6type=$i; v6lib=v6;
5073 v6libdir=/usr/local/v6/lib;
5074 CFLAGS="-I/usr/local/v6/include $CFLAGS"
5080 cat >conftest.$ac_ext <<_ACEOF
5081 #line 5081 "configure"
5082 #include "confdefs.h"
5084 #include <sys/param.h>
5085 #ifdef _TOSHIBA_INET6
5089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5090 egrep "yes" >/dev/null 2>&1; then
5091 v6type=$i; v6lib=inet6;
5092 v6libdir=/usr/local/v6/lib;
5093 CFLAGS="-DINET6 $CFLAGS"
5099 cat >conftest.$ac_ext <<_ACEOF
5100 #line 5100 "configure"
5101 #include "confdefs.h"
5103 #include <netinet/in.h>
5108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5109 egrep "yes" >/dev/null 2>&1; then
5110 v6type=$i; v6lib=inet6;
5111 v6libdir=/usr/local/v6/lib;
5112 CFLAGS="-DINET6 $CFLAGS"
5118 cat >conftest.$ac_ext <<_ACEOF
5119 #line 5119 "configure"
5120 #include "confdefs.h"
5122 #include <netinet/in.h>
5123 #ifdef IPV6_INRIA_VERSION
5127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5128 egrep "yes" >/dev/null 2>&1; then
5129 v6type=$i; CFLAGS="-DINET6 $CFLAGS"
5135 cat >conftest.$ac_ext <<_ACEOF
5136 #line 5136 "configure"
5137 #include "confdefs.h"
5139 #include <sys/param.h>
5140 #ifdef _ZETA_MINAMI_INET6
5144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5145 egrep "yes" >/dev/null 2>&1; then
5146 v6type=$i; v6lib=inet6;
5147 v6libdir=/usr/local/v6/lib;
5148 CFLAGS="-DINET6 $CFLAGS"
5154 if test -d /usr/inet6; then
5158 CFLAGS="-DINET6 $CFLAGS"
5162 if test "$v6type" != "unknown"; then
5166 echo "$as_me:5166: result: $v6type" >&5
5167 echo "${ECHO_T}$v6type" >&6
5169 if test "$v6lib" != "none"; then
5170 for dir in $v6libdir /usr/local/v6/lib /usr/local/lib; do
5171 if test -d $dir -a -f $dir/lib$v6lib.a; then
5172 LIBS="-L$dir -l$v6lib $LIBS"
5177 cat >conftest.$ac_ext <<_ACEOF
5178 #line 5178 "configure"
5179 #include "confdefs.h"
5181 #ifdef HAVE_SYS_TYPES_H
5182 #include <sys/types.h>
5184 #ifdef HAVE_SYS_SOCKET_H
5185 #include <sys/socket.h>
5187 #ifdef HAVE_NETINET_IN_H
5188 #include <netinet/in.h>
5190 #ifdef HAVE_NETINET_IN6_H
5191 #include <netinet/in6.h>
5198 struct sockaddr_in6 sin6;
5201 s = socket(AF_INET6, SOCK_DGRAM, 0);
5203 sin6.sin6_family = AF_INET6;
5204 sin6.sin6_port = htons(17);
5205 sin6.sin6_addr = in6addr_any;
5206 bind(s, (struct sockaddr *)&sin6, sizeof(sin6));
5212 rm -f conftest.$ac_objext conftest$ac_exeext
5213 if { (eval echo $as_me:5213: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
5216 echo "$as_me: failed program was:" >&5
5217 cat conftest.$ac_ext >&5
5220 rm -f conftest$ac_exeext conftest.$ac_ext
5223 echo "$as_me:5223: checking for IPv6" >&5
5224 echo $ECHO_N "checking for IPv6... $ECHO_C" >&6
5225 echo "$as_me:5225: result: $ac_cv_lib_ipv6" >&5
5226 echo "${ECHO_T}$ac_cv_lib_ipv6" >&6
5227 if test "$ac_cv_lib_ipv6" = yes; then
5229 cat >>confdefs.h <<\EOF
5234 CFLAGS="${save_CFLAGS}"
5237 echo "$as_me:5237: checking for socket" >&5
5238 echo $ECHO_N "checking for socket... $ECHO_C" >&6
5239 if test "${ac_cv_funclib_socket+set}" = set; then
5240 echo $ECHO_N "(cached) $ECHO_C" >&6
5243 if eval "test \"\$ac_cv_func_socket\" != yes" ; then
5244 ac_save_LIBS="$LIBS"
5245 for ac_lib in "" socket; do
5246 if test -n "$ac_lib"; then
5251 LIBS=" $ac_lib $ac_save_LIBS"
5252 cat >conftest.$ac_ext <<_ACEOF
5253 #line 5253 "configure"
5254 #include "confdefs.h"
5264 rm -f conftest.$ac_objext conftest$ac_exeext
5265 if { (eval echo $as_me:5265: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
5266 eval "if test -n \"$ac_lib\";then ac_cv_funclib_socket=$ac_lib; else ac_cv_funclib_socket=yes; fi";break
5268 echo "$as_me: failed program was:" >&5
5269 cat conftest.$ac_ext >&5
5271 rm -f conftest$ac_exeext conftest.$ac_ext
5273 eval "ac_cv_funclib_socket=\${ac_cv_funclib_socket-no}"
5274 LIBS="$ac_save_LIBS"
5279 eval "ac_res=\$ac_cv_funclib_socket"
5283 for ac_func in socket
5285 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
5286 echo "$as_me:5286: checking for $ac_func" >&5
5287 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5288 if eval "test \"\${$ac_ac_var+set}\" = set"; then
5289 echo $ECHO_N "(cached) $ECHO_C" >&6
5291 cat >conftest.$ac_ext <<_ACEOF
5292 #line 5292 "configure"
5293 #include "confdefs.h"
5294 /* System header to define __stub macros and hopefully few prototypes,
5295 which can conflict with char $ac_func (); below. */
5297 /* Override any gcc2 internal prototype to avoid an error. */
5301 /* We use char because int might match the return type of a gcc2
5302 builtin and then its argument prototype would still apply. */
5309 /* The GNU C library defines this for functions which it implements
5310 to always fail with ENOSYS. Some functions are actually named
5311 something starting with __ and the normal name is an alias. */
5312 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5322 rm -f conftest.$ac_objext conftest$ac_exeext
5323 if { (eval echo $as_me:5323: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
5324 eval "$ac_ac_var=yes"
5326 echo "$as_me: failed program was:" >&5
5327 cat conftest.$ac_ext >&5
5328 eval "$ac_ac_var=no"
5330 rm -f conftest$ac_exeext conftest.$ac_ext
5332 echo "$as_me:5332: result: `eval echo '${'$ac_ac_var'}'`" >&5
5333 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
5334 if test `eval echo '${'$ac_ac_var'}'` = yes; then
5335 cat >>confdefs.h <<EOF
5336 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
5344 eval "ac_tr_func=HAVE_`echo socket | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
5345 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
5346 eval "LIB_socket=$ac_res"
5350 eval "ac_cv_func_socket=yes"
5352 cat >>confdefs.h <<EOF
5353 #define $ac_tr_func 1
5356 echo "$as_me:5356: result: yes" >&5
5357 echo "${ECHO_T}yes" >&6
5360 eval "ac_cv_func_socket=no"
5362 echo "$as_me:5362: result: no" >&5
5363 echo "${ECHO_T}no" >&6
5366 eval "ac_cv_func_socket=yes"
5367 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
5368 cat >>confdefs.h <<EOF
5369 #define $ac_tr_func 1
5372 cat >>confdefs.h <<EOF
5373 #define $ac_tr_lib 1
5376 echo "$as_me:5376: result: yes, in $ac_res" >&5
5377 echo "${ECHO_T}yes, in $ac_res" >&6
5381 if test -n "$LIB_socket"; then
5382 LIBS="$LIB_socket $LIBS"
5385 echo "$as_me:5385: checking for gethostbyname" >&5
5386 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5387 if test "${ac_cv_funclib_gethostbyname+set}" = set; then
5388 echo $ECHO_N "(cached) $ECHO_C" >&6
5391 if eval "test \"\$ac_cv_func_gethostbyname\" != yes" ; then
5392 ac_save_LIBS="$LIBS"
5393 for ac_lib in "" nsl; do
5394 if test -n "$ac_lib"; then
5399 LIBS=" $ac_lib $ac_save_LIBS"
5400 cat >conftest.$ac_ext <<_ACEOF
5401 #line 5401 "configure"
5402 #include "confdefs.h"
5412 rm -f conftest.$ac_objext conftest$ac_exeext
5413 if { (eval echo $as_me:5413: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
5414 eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname=$ac_lib; else ac_cv_funclib_gethostbyname=yes; fi";break
5416 echo "$as_me: failed program was:" >&5
5417 cat conftest.$ac_ext >&5
5419 rm -f conftest$ac_exeext conftest.$ac_ext
5421 eval "ac_cv_funclib_gethostbyname=\${ac_cv_funclib_gethostbyname-no}"
5422 LIBS="$ac_save_LIBS"
5427 eval "ac_res=\$ac_cv_funclib_gethostbyname"
5431 for ac_func in gethostbyname
5433 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
5434 echo "$as_me:5434: checking for $ac_func" >&5
5435 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5436 if eval "test \"\${$ac_ac_var+set}\" = set"; then
5437 echo $ECHO_N "(cached) $ECHO_C" >&6
5439 cat >conftest.$ac_ext <<_ACEOF
5440 #line 5440 "configure"
5441 #include "confdefs.h"
5442 /* System header to define __stub macros and hopefully few prototypes,
5443 which can conflict with char $ac_func (); below. */
5445 /* Override any gcc2 internal prototype to avoid an error. */
5449 /* We use char because int might match the return type of a gcc2
5450 builtin and then its argument prototype would still apply. */
5457 /* The GNU C library defines this for functions which it implements
5458 to always fail with ENOSYS. Some functions are actually named
5459 something starting with __ and the normal name is an alias. */
5460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5470 rm -f conftest.$ac_objext conftest$ac_exeext
5471 if { (eval echo $as_me:5471: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
5472 eval "$ac_ac_var=yes"
5474 echo "$as_me: failed program was:" >&5
5475 cat conftest.$ac_ext >&5
5476 eval "$ac_ac_var=no"
5478 rm -f conftest$ac_exeext conftest.$ac_ext
5480 echo "$as_me:5480: result: `eval echo '${'$ac_ac_var'}'`" >&5
5481 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
5482 if test `eval echo '${'$ac_ac_var'}'` = yes; then
5483 cat >>confdefs.h <<EOF
5484 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
5492 eval "ac_tr_func=HAVE_`echo gethostbyname | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
5493 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
5494 eval "LIB_gethostbyname=$ac_res"
5498 eval "ac_cv_func_gethostbyname=yes"
5499 eval "LIB_gethostbyname="
5500 cat >>confdefs.h <<EOF
5501 #define $ac_tr_func 1
5504 echo "$as_me:5504: result: yes" >&5
5505 echo "${ECHO_T}yes" >&6
5508 eval "ac_cv_func_gethostbyname=no"
5509 eval "LIB_gethostbyname="
5510 echo "$as_me:5510: result: no" >&5
5511 echo "${ECHO_T}no" >&6
5514 eval "ac_cv_func_gethostbyname=yes"
5515 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
5516 cat >>confdefs.h <<EOF
5517 #define $ac_tr_func 1
5520 cat >>confdefs.h <<EOF
5521 #define $ac_tr_lib 1
5524 echo "$as_me:5524: result: yes, in $ac_res" >&5
5525 echo "${ECHO_T}yes, in $ac_res" >&6
5529 if test -n "$LIB_gethostbyname"; then
5530 LIBS="$LIB_gethostbyname $LIBS"
5533 echo "$as_me:5533: checking for syslog" >&5
5534 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
5535 if test "${ac_cv_funclib_syslog+set}" = set; then
5536 echo $ECHO_N "(cached) $ECHO_C" >&6
5539 if eval "test \"\$ac_cv_func_syslog\" != yes" ; then
5540 ac_save_LIBS="$LIBS"
5541 for ac_lib in "" syslog; do
5542 if test -n "$ac_lib"; then
5547 LIBS=" $ac_lib $ac_save_LIBS"
5548 cat >conftest.$ac_ext <<_ACEOF
5549 #line 5549 "configure"
5550 #include "confdefs.h"
5560 rm -f conftest.$ac_objext conftest$ac_exeext
5561 if { (eval echo $as_me:5561: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
5562 eval "if test -n \"$ac_lib\";then ac_cv_funclib_syslog=$ac_lib; else ac_cv_funclib_syslog=yes; fi";break
5564 echo "$as_me: failed program was:" >&5
5565 cat conftest.$ac_ext >&5
5567 rm -f conftest$ac_exeext conftest.$ac_ext
5569 eval "ac_cv_funclib_syslog=\${ac_cv_funclib_syslog-no}"
5570 LIBS="$ac_save_LIBS"
5575 eval "ac_res=\$ac_cv_funclib_syslog"
5579 for ac_func in syslog
5581 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
5582 echo "$as_me:5582: checking for $ac_func" >&5
5583 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5584 if eval "test \"\${$ac_ac_var+set}\" = set"; then
5585 echo $ECHO_N "(cached) $ECHO_C" >&6
5587 cat >conftest.$ac_ext <<_ACEOF
5588 #line 5588 "configure"
5589 #include "confdefs.h"
5590 /* System header to define __stub macros and hopefully few prototypes,
5591 which can conflict with char $ac_func (); below. */
5593 /* Override any gcc2 internal prototype to avoid an error. */
5597 /* We use char because int might match the return type of a gcc2
5598 builtin and then its argument prototype would still apply. */
5605 /* The GNU C library defines this for functions which it implements
5606 to always fail with ENOSYS. Some functions are actually named
5607 something starting with __ and the normal name is an alias. */
5608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5618 rm -f conftest.$ac_objext conftest$ac_exeext
5619 if { (eval echo $as_me:5619: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
5620 eval "$ac_ac_var=yes"
5622 echo "$as_me: failed program was:" >&5
5623 cat conftest.$ac_ext >&5
5624 eval "$ac_ac_var=no"
5626 rm -f conftest$ac_exeext conftest.$ac_ext
5628 echo "$as_me:5628: result: `eval echo '${'$ac_ac_var'}'`" >&5
5629 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
5630 if test `eval echo '${'$ac_ac_var'}'` = yes; then
5631 cat >>confdefs.h <<EOF
5632 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
5640 eval "ac_tr_func=HAVE_`echo syslog | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
5641 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
5642 eval "LIB_syslog=$ac_res"
5646 eval "ac_cv_func_syslog=yes"
5648 cat >>confdefs.h <<EOF
5649 #define $ac_tr_func 1
5652 echo "$as_me:5652: result: yes" >&5
5653 echo "${ECHO_T}yes" >&6
5656 eval "ac_cv_func_syslog=no"
5658 echo "$as_me:5658: result: no" >&5
5659 echo "${ECHO_T}no" >&6
5662 eval "ac_cv_func_syslog=yes"
5663 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
5664 cat >>confdefs.h <<EOF
5665 #define $ac_tr_func 1
5668 cat >>confdefs.h <<EOF
5669 #define $ac_tr_lib 1
5672 echo "$as_me:5672: result: yes, in $ac_res" >&5
5673 echo "${ECHO_T}yes, in $ac_res" >&6
5677 if test -n "$LIB_syslog"; then
5678 LIBS="$LIB_syslog $LIBS"
5681 echo "$as_me:5681: checking for gethostbyname2" >&5
5682 echo $ECHO_N "checking for gethostbyname2... $ECHO_C" >&6
5683 if test "${ac_cv_funclib_gethostbyname2+set}" = set; then
5684 echo $ECHO_N "(cached) $ECHO_C" >&6
5687 if eval "test \"\$ac_cv_func_gethostbyname2\" != yes" ; then
5688 ac_save_LIBS="$LIBS"
5689 for ac_lib in "" inet6 ip6; do
5690 if test -n "$ac_lib"; then
5695 LIBS=" $ac_lib $ac_save_LIBS"
5696 cat >conftest.$ac_ext <<_ACEOF
5697 #line 5697 "configure"
5698 #include "confdefs.h"
5708 rm -f conftest.$ac_objext conftest$ac_exeext
5709 if { (eval echo $as_me:5709: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
5710 eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname2=$ac_lib; else ac_cv_funclib_gethostbyname2=yes; fi";break
5712 echo "$as_me: failed program was:" >&5
5713 cat conftest.$ac_ext >&5
5715 rm -f conftest$ac_exeext conftest.$ac_ext
5717 eval "ac_cv_funclib_gethostbyname2=\${ac_cv_funclib_gethostbyname2-no}"
5718 LIBS="$ac_save_LIBS"
5723 eval "ac_res=\$ac_cv_funclib_gethostbyname2"
5727 for ac_func in gethostbyname2
5729 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
5730 echo "$as_me:5730: checking for $ac_func" >&5
5731 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5732 if eval "test \"\${$ac_ac_var+set}\" = set"; then
5733 echo $ECHO_N "(cached) $ECHO_C" >&6
5735 cat >conftest.$ac_ext <<_ACEOF
5736 #line 5736 "configure"
5737 #include "confdefs.h"
5738 /* System header to define __stub macros and hopefully few prototypes,
5739 which can conflict with char $ac_func (); below. */
5741 /* Override any gcc2 internal prototype to avoid an error. */
5745 /* We use char because int might match the return type of a gcc2
5746 builtin and then its argument prototype would still apply. */
5753 /* The GNU C library defines this for functions which it implements
5754 to always fail with ENOSYS. Some functions are actually named
5755 something starting with __ and the normal name is an alias. */
5756 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5766 rm -f conftest.$ac_objext conftest$ac_exeext
5767 if { (eval echo $as_me:5767: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
5768 eval "$ac_ac_var=yes"
5770 echo "$as_me: failed program was:" >&5
5771 cat conftest.$ac_ext >&5
5772 eval "$ac_ac_var=no"
5774 rm -f conftest$ac_exeext conftest.$ac_ext
5776 echo "$as_me:5776: result: `eval echo '${'$ac_ac_var'}'`" >&5
5777 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
5778 if test `eval echo '${'$ac_ac_var'}'` = yes; then
5779 cat >>confdefs.h <<EOF
5780 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
5788 eval "ac_tr_func=HAVE_`echo gethostbyname2 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
5789 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
5790 eval "LIB_gethostbyname2=$ac_res"
5794 eval "ac_cv_func_gethostbyname2=yes"
5795 eval "LIB_gethostbyname2="
5796 cat >>confdefs.h <<EOF
5797 #define $ac_tr_func 1
5800 echo "$as_me:5800: result: yes" >&5
5801 echo "${ECHO_T}yes" >&6
5804 eval "ac_cv_func_gethostbyname2=no"
5805 eval "LIB_gethostbyname2="
5806 echo "$as_me:5806: result: no" >&5
5807 echo "${ECHO_T}no" >&6
5810 eval "ac_cv_func_gethostbyname2=yes"
5811 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
5812 cat >>confdefs.h <<EOF
5813 #define $ac_tr_func 1
5816 cat >>confdefs.h <<EOF
5817 #define $ac_tr_lib 1
5820 echo "$as_me:5820: result: yes, in $ac_res" >&5
5821 echo "${ECHO_T}yes, in $ac_res" >&6
5825 if test -n "$LIB_gethostbyname2"; then
5826 LIBS="$LIB_gethostbyname2 $LIBS"
5829 echo "$as_me:5829: checking for res_search" >&5
5830 echo $ECHO_N "checking for res_search... $ECHO_C" >&6
5831 if test "${ac_cv_funclib_res_search+set}" = set; then
5832 echo $ECHO_N "(cached) $ECHO_C" >&6
5835 if eval "test \"\$ac_cv_func_res_search\" != yes" ; then
5836 ac_save_LIBS="$LIBS"
5837 for ac_lib in "" resolv; do
5838 if test -n "$ac_lib"; then
5843 LIBS=" $ac_lib $ac_save_LIBS"
5844 cat >conftest.$ac_ext <<_ACEOF
5845 #line 5845 "configure"
5846 #include "confdefs.h"
5849 #ifdef HAVE_SYS_TYPES_H
5850 #include <sys/types.h>
5852 #ifdef HAVE_NETINET_IN_H
5853 #include <netinet/in.h>
5855 #ifdef HAVE_ARPA_NAMESER_H
5856 #include <arpa/nameser.h>
5858 #ifdef HAVE_RESOLV_H
5865 res_search(0,0,0,0,0)
5870 rm -f conftest.$ac_objext conftest$ac_exeext
5871 if { (eval echo $as_me:5871: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
5872 eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_search=$ac_lib; else ac_cv_funclib_res_search=yes; fi";break
5874 echo "$as_me: failed program was:" >&5
5875 cat conftest.$ac_ext >&5
5877 rm -f conftest$ac_exeext conftest.$ac_ext
5879 eval "ac_cv_funclib_res_search=\${ac_cv_funclib_res_search-no}"
5880 LIBS="$ac_save_LIBS"
5885 eval "ac_res=\$ac_cv_funclib_res_search"
5889 for ac_func in res_search
5891 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
5892 echo "$as_me:5892: checking for $ac_func" >&5
5893 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5894 if eval "test \"\${$ac_ac_var+set}\" = set"; then
5895 echo $ECHO_N "(cached) $ECHO_C" >&6
5897 cat >conftest.$ac_ext <<_ACEOF
5898 #line 5898 "configure"
5899 #include "confdefs.h"
5900 /* System header to define __stub macros and hopefully few prototypes,
5901 which can conflict with char $ac_func (); below. */
5903 /* Override any gcc2 internal prototype to avoid an error. */
5907 /* We use char because int might match the return type of a gcc2
5908 builtin and then its argument prototype would still apply. */
5915 /* The GNU C library defines this for functions which it implements
5916 to always fail with ENOSYS. Some functions are actually named
5917 something starting with __ and the normal name is an alias. */
5918 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5928 rm -f conftest.$ac_objext conftest$ac_exeext
5929 if { (eval echo $as_me:5929: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
5930 eval "$ac_ac_var=yes"
5932 echo "$as_me: failed program was:" >&5
5933 cat conftest.$ac_ext >&5
5934 eval "$ac_ac_var=no"
5936 rm -f conftest$ac_exeext conftest.$ac_ext
5938 echo "$as_me:5938: result: `eval echo '${'$ac_ac_var'}'`" >&5
5939 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
5940 if test `eval echo '${'$ac_ac_var'}'` = yes; then
5941 cat >>confdefs.h <<EOF
5942 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
5950 eval "ac_tr_func=HAVE_`echo res_search | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
5951 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
5952 eval "LIB_res_search=$ac_res"
5956 eval "ac_cv_func_res_search=yes"
5957 eval "LIB_res_search="
5958 cat >>confdefs.h <<EOF
5959 #define $ac_tr_func 1
5962 echo "$as_me:5962: result: yes" >&5
5963 echo "${ECHO_T}yes" >&6
5966 eval "ac_cv_func_res_search=no"
5967 eval "LIB_res_search="
5968 echo "$as_me:5968: result: no" >&5
5969 echo "${ECHO_T}no" >&6
5972 eval "ac_cv_func_res_search=yes"
5973 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
5974 cat >>confdefs.h <<EOF
5975 #define $ac_tr_func 1
5978 cat >>confdefs.h <<EOF
5979 #define $ac_tr_lib 1
5982 echo "$as_me:5982: result: yes, in $ac_res" >&5
5983 echo "${ECHO_T}yes, in $ac_res" >&6
5987 if test -n "$LIB_res_search"; then
5988 LIBS="$LIB_res_search $LIBS"
5991 echo "$as_me:5991: checking for dn_expand" >&5
5992 echo $ECHO_N "checking for dn_expand... $ECHO_C" >&6
5993 if test "${ac_cv_funclib_dn_expand+set}" = set; then
5994 echo $ECHO_N "(cached) $ECHO_C" >&6
5997 if eval "test \"\$ac_cv_func_dn_expand\" != yes" ; then
5998 ac_save_LIBS="$LIBS"
5999 for ac_lib in "" resolv; do
6000 if test -n "$ac_lib"; then
6005 LIBS=" $ac_lib $ac_save_LIBS"
6006 cat >conftest.$ac_ext <<_ACEOF
6007 #line 6007 "configure"
6008 #include "confdefs.h"
6011 #ifdef HAVE_SYS_TYPES_H
6012 #include <sys/types.h>
6014 #ifdef HAVE_NETINET_IN_H
6015 #include <netinet/in.h>
6017 #ifdef HAVE_ARPA_NAMESER_H
6018 #include <arpa/nameser.h>
6020 #ifdef HAVE_RESOLV_H
6027 dn_expand(0,0,0,0,0)
6032 rm -f conftest.$ac_objext conftest$ac_exeext
6033 if { (eval echo $as_me:6033: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
6034 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dn_expand=$ac_lib; else ac_cv_funclib_dn_expand=yes; fi";break
6036 echo "$as_me: failed program was:" >&5
6037 cat conftest.$ac_ext >&5
6039 rm -f conftest$ac_exeext conftest.$ac_ext
6041 eval "ac_cv_funclib_dn_expand=\${ac_cv_funclib_dn_expand-no}"
6042 LIBS="$ac_save_LIBS"
6047 eval "ac_res=\$ac_cv_funclib_dn_expand"
6051 for ac_func in dn_expand
6053 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
6054 echo "$as_me:6054: checking for $ac_func" >&5
6055 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6056 if eval "test \"\${$ac_ac_var+set}\" = set"; then
6057 echo $ECHO_N "(cached) $ECHO_C" >&6
6059 cat >conftest.$ac_ext <<_ACEOF
6060 #line 6060 "configure"
6061 #include "confdefs.h"
6062 /* System header to define __stub macros and hopefully few prototypes,
6063 which can conflict with char $ac_func (); below. */
6065 /* Override any gcc2 internal prototype to avoid an error. */
6069 /* We use char because int might match the return type of a gcc2
6070 builtin and then its argument prototype would still apply. */
6077 /* The GNU C library defines this for functions which it implements
6078 to always fail with ENOSYS. Some functions are actually named
6079 something starting with __ and the normal name is an alias. */
6080 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6090 rm -f conftest.$ac_objext conftest$ac_exeext
6091 if { (eval echo $as_me:6091: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
6092 eval "$ac_ac_var=yes"
6094 echo "$as_me: failed program was:" >&5
6095 cat conftest.$ac_ext >&5
6096 eval "$ac_ac_var=no"
6098 rm -f conftest$ac_exeext conftest.$ac_ext
6100 echo "$as_me:6100: result: `eval echo '${'$ac_ac_var'}'`" >&5
6101 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
6102 if test `eval echo '${'$ac_ac_var'}'` = yes; then
6103 cat >>confdefs.h <<EOF
6104 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
6112 eval "ac_tr_func=HAVE_`echo dn_expand | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
6113 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
6114 eval "LIB_dn_expand=$ac_res"
6118 eval "ac_cv_func_dn_expand=yes"
6119 eval "LIB_dn_expand="
6120 cat >>confdefs.h <<EOF
6121 #define $ac_tr_func 1
6124 echo "$as_me:6124: result: yes" >&5
6125 echo "${ECHO_T}yes" >&6
6128 eval "ac_cv_func_dn_expand=no"
6129 eval "LIB_dn_expand="
6130 echo "$as_me:6130: result: no" >&5
6131 echo "${ECHO_T}no" >&6
6134 eval "ac_cv_func_dn_expand=yes"
6135 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
6136 cat >>confdefs.h <<EOF
6137 #define $ac_tr_func 1
6140 cat >>confdefs.h <<EOF
6141 #define $ac_tr_lib 1
6144 echo "$as_me:6144: result: yes, in $ac_res" >&5
6145 echo "${ECHO_T}yes, in $ac_res" >&6
6149 if test -n "$LIB_dn_expand"; then
6150 LIBS="$LIB_dn_expand $LIBS"
6153 echo "$as_me:6153: checking for working snprintf" >&5
6154 echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6
6155 if test "${ac_cv_func_snprintf_working+set}" = set; then
6156 echo $ECHO_N "(cached) $ECHO_C" >&6
6158 ac_cv_func_snprintf_working=yes
6159 if test "$cross_compiling" = yes; then
6162 cat >conftest.$ac_ext <<_ACEOF
6163 #line 6163 "configure"
6164 #include "confdefs.h"
6171 snprintf(foo, 2, "12");
6172 return strcmp(foo, "1");
6175 rm -f conftest$ac_exeext
6176 { (eval echo $as_me:6176: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } &&
6177 (./conftest$ac_exeext) >&5 2>&1;
6179 if test $ac_status = 0; then
6182 echo "$as_me: program exited with status $ac_status" >&5
6183 echo "$as_me: failed program was:" >&5
6184 cat conftest.$ac_ext >&5
6185 ac_cv_func_snprintf_working=no
6188 rm -f conftest$ac_exeext conftest.$ac_ext
6192 echo "$as_me:6192: result: $ac_cv_func_snprintf_working" >&5
6193 echo "${ECHO_T}$ac_cv_func_snprintf_working" >&6
6195 if test "$ac_cv_func_snprintf_working" = yes; then
6197 cat >>confdefs.h <<EOF
6198 #define HAVE_SNPRINTF 1
6202 if test "$ac_cv_func_snprintf_working" = yes; then
6204 if test "$ac_cv_func_snprintf+set" != set -o "$ac_cv_func_snprintf" = yes; then
6205 echo "$as_me:6205: checking if snprintf needs a prototype" >&5
6206 echo $ECHO_N "checking if snprintf needs a prototype... $ECHO_C" >&6
6207 if test "${ac_cv_func_snprintf_noproto+set}" = set; then
6208 echo $ECHO_N "(cached) $ECHO_C" >&6
6210 cat >conftest.$ac_ext <<_ACEOF
6211 #line 6211 "configure"
6212 #include "confdefs.h"
6217 struct foo { int foo; } xx;
6218 extern int snprintf (struct foo*);
6225 rm -f conftest.$ac_objext
6226 if { (eval echo $as_me:6226: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
6227 eval "ac_cv_func_snprintf_noproto=yes"
6229 echo "$as_me: failed program was:" >&5
6230 cat conftest.$ac_ext >&5
6231 eval "ac_cv_func_snprintf_noproto=no"
6233 rm -f conftest.$ac_objext conftest.$ac_ext
6235 echo "$as_me:6235: result: $ac_cv_func_snprintf_noproto" >&5
6236 echo "${ECHO_T}$ac_cv_func_snprintf_noproto" >&6
6238 if test "$ac_cv_func_snprintf_noproto" = yes; then
6240 cat >>confdefs.h <<\EOF
6241 #define NEED_SNPRINTF_PROTO 1
6250 echo "$as_me:6250: checking for working vsnprintf" >&5
6251 echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6
6252 if test "${ac_cv_func_vsnprintf_working+set}" = set; then
6253 echo $ECHO_N "(cached) $ECHO_C" >&6
6255 ac_cv_func_vsnprintf_working=yes
6256 if test "$cross_compiling" = yes; then
6259 cat >conftest.$ac_ext <<_ACEOF
6260 #line 6260 "configure"
6261 #include "confdefs.h"
6267 int foo(int num, ...)
6272 vsnprintf(bar, 2, "%s", arg);
6274 return strcmp(bar, "1");
6279 return foo(0, "12");
6282 rm -f conftest$ac_exeext
6283 { (eval echo $as_me:6283: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } &&
6284 (./conftest$ac_exeext) >&5 2>&1;
6286 if test $ac_status = 0; then
6289 echo "$as_me: program exited with status $ac_status" >&5
6290 echo "$as_me: failed program was:" >&5
6291 cat conftest.$ac_ext >&5
6292 ac_cv_func_vsnprintf_working=no
6295 rm -f conftest$ac_exeext conftest.$ac_ext
6299 echo "$as_me:6299: result: $ac_cv_func_vsnprintf_working" >&5
6300 echo "${ECHO_T}$ac_cv_func_vsnprintf_working" >&6
6302 if test "$ac_cv_func_vsnprintf_working" = yes; then
6304 cat >>confdefs.h <<EOF
6305 #define HAVE_VSNPRINTF 1
6309 if test "$ac_cv_func_vsnprintf_working" = yes; then
6311 if test "$ac_cv_func_vsnprintf+set" != set -o "$ac_cv_func_vsnprintf" = yes; then
6312 echo "$as_me:6312: checking if vsnprintf needs a prototype" >&5
6313 echo $ECHO_N "checking if vsnprintf needs a prototype... $ECHO_C" >&6
6314 if test "${ac_cv_func_vsnprintf_noproto+set}" = set; then
6315 echo $ECHO_N "(cached) $ECHO_C" >&6
6317 cat >conftest.$ac_ext <<_ACEOF
6318 #line 6318 "configure"
6319 #include "confdefs.h"
6324 struct foo { int foo; } xx;
6325 extern int vsnprintf (struct foo*);
6332 rm -f conftest.$ac_objext
6333 if { (eval echo $as_me:6333: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
6334 eval "ac_cv_func_vsnprintf_noproto=yes"
6336 echo "$as_me: failed program was:" >&5
6337 cat conftest.$ac_ext >&5
6338 eval "ac_cv_func_vsnprintf_noproto=no"
6340 rm -f conftest.$ac_objext conftest.$ac_ext
6342 echo "$as_me:6342: result: $ac_cv_func_vsnprintf_noproto" >&5
6343 echo "${ECHO_T}$ac_cv_func_vsnprintf_noproto" >&6
6345 if test "$ac_cv_func_vsnprintf_noproto" = yes; then
6347 cat >>confdefs.h <<\EOF
6348 #define NEED_VSNPRINTF_PROTO 1
6357 echo "$as_me:6357: checking for working glob" >&5
6358 echo $ECHO_N "checking for working glob... $ECHO_C" >&6
6359 if test "${ac_cv_func_glob_working+set}" = set; then
6360 echo $ECHO_N "(cached) $ECHO_C" >&6
6362 ac_cv_func_glob_working=yes
6363 cat >conftest.$ac_ext <<_ACEOF
6364 #line 6364 "configure"
6365 #include "confdefs.h"
6373 glob(NULL, GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE|GLOB_LIMIT,
6380 rm -f conftest.$ac_objext conftest$ac_exeext
6381 if { (eval echo $as_me:6381: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
6384 echo "$as_me: failed program was:" >&5
6385 cat conftest.$ac_ext >&5
6386 ac_cv_func_glob_working=no
6388 rm -f conftest$ac_exeext conftest.$ac_ext
6390 echo "$as_me:6390: result: $ac_cv_func_glob_working" >&5
6391 echo "${ECHO_T}$ac_cv_func_glob_working" >&6
6393 if test "$ac_cv_func_glob_working" = yes; then
6395 cat >>confdefs.h <<\EOF
6400 if test "$ac_cv_func_glob_working" = yes; then
6402 if test "$ac_cv_func_glob+set" != set -o "$ac_cv_func_glob" = yes; then
6403 echo "$as_me:6403: checking if glob needs a prototype" >&5
6404 echo $ECHO_N "checking if glob needs a prototype... $ECHO_C" >&6
6405 if test "${ac_cv_func_glob_noproto+set}" = set; then
6406 echo $ECHO_N "(cached) $ECHO_C" >&6
6408 cat >conftest.$ac_ext <<_ACEOF
6409 #line 6409 "configure"
6410 #include "confdefs.h"
6416 struct foo { int foo; } xx;
6417 extern int glob (struct foo*);
6424 rm -f conftest.$ac_objext
6425 if { (eval echo $as_me:6425: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
6426 eval "ac_cv_func_glob_noproto=yes"
6428 echo "$as_me: failed program was:" >&5
6429 cat conftest.$ac_ext >&5
6430 eval "ac_cv_func_glob_noproto=no"
6432 rm -f conftest.$ac_objext conftest.$ac_ext
6434 echo "$as_me:6434: result: $ac_cv_func_glob_noproto" >&5
6435 echo "${ECHO_T}$ac_cv_func_glob_noproto" >&6
6437 if test "$ac_cv_func_glob_noproto" = yes; then
6439 cat >>confdefs.h <<\EOF
6440 #define NEED_GLOB_PROTO 1
6449 if test "$ac_cv_func_glob_working" != yes; then
6450 LIBOBJS="$LIBOBJS glob.o"
6453 if test "$ac_cv_func_glob_working" = yes; then
6455 have_glob_h_FALSE='#'
6457 have_glob_h_TRUE='#'
6484 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
6485 echo "$as_me:6485: checking for $ac_func" >&5
6486 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6487 if eval "test \"\${$ac_ac_var+set}\" = set"; then
6488 echo $ECHO_N "(cached) $ECHO_C" >&6
6490 cat >conftest.$ac_ext <<_ACEOF
6491 #line 6491 "configure"
6492 #include "confdefs.h"
6493 /* System header to define __stub macros and hopefully few prototypes,
6494 which can conflict with char $ac_func (); below. */
6496 /* Override any gcc2 internal prototype to avoid an error. */
6500 /* We use char because int might match the return type of a gcc2
6501 builtin and then its argument prototype would still apply. */
6508 /* The GNU C library defines this for functions which it implements
6509 to always fail with ENOSYS. Some functions are actually named
6510 something starting with __ and the normal name is an alias. */
6511 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6521 rm -f conftest.$ac_objext conftest$ac_exeext
6522 if { (eval echo $as_me:6522: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
6523 eval "$ac_ac_var=yes"
6525 echo "$as_me: failed program was:" >&5
6526 cat conftest.$ac_ext >&5
6527 eval "$ac_ac_var=no"
6529 rm -f conftest$ac_exeext conftest.$ac_ext
6531 echo "$as_me:6531: result: `eval echo '${'$ac_ac_var'}'`" >&5
6532 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
6533 if test `eval echo '${'$ac_ac_var'}'` = yes; then
6534 cat >>confdefs.h <<EOF
6535 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
6541 if test "$ac_cv_func_cgetent" = no; then
6542 LIBOBJS="$LIBOBJS getcap.o"
6545 echo "$as_me:6545: checking for getsockopt" >&5
6546 echo $ECHO_N "checking for getsockopt... $ECHO_C" >&6
6547 if test "${ac_cv_funclib_getsockopt+set}" = set; then
6548 echo $ECHO_N "(cached) $ECHO_C" >&6
6551 if eval "test \"\$ac_cv_func_getsockopt\" != yes" ; then
6552 ac_save_LIBS="$LIBS"
6553 for ac_lib in "" ; do
6554 if test -n "$ac_lib"; then
6559 LIBS=" $ac_lib $ac_save_LIBS"
6560 cat >conftest.$ac_ext <<_ACEOF
6561 #line 6561 "configure"
6562 #include "confdefs.h"
6563 #ifdef HAVE_SYS_TYPES_H
6564 #include <sys/types.h>
6566 #ifdef HAVE_SYS_SOCKET_H
6567 #include <sys/socket.h>
6572 getsockopt(0,0,0,0,0)
6577 rm -f conftest.$ac_objext conftest$ac_exeext
6578 if { (eval echo $as_me:6578: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
6579 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getsockopt=$ac_lib; else ac_cv_funclib_getsockopt=yes; fi";break
6581 echo "$as_me: failed program was:" >&5
6582 cat conftest.$ac_ext >&5
6584 rm -f conftest$ac_exeext conftest.$ac_ext
6586 eval "ac_cv_funclib_getsockopt=\${ac_cv_funclib_getsockopt-no}"
6587 LIBS="$ac_save_LIBS"
6592 eval "ac_res=\$ac_cv_funclib_getsockopt"
6596 for ac_func in getsockopt
6598 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
6599 echo "$as_me:6599: checking for $ac_func" >&5
6600 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6601 if eval "test \"\${$ac_ac_var+set}\" = set"; then
6602 echo $ECHO_N "(cached) $ECHO_C" >&6
6604 cat >conftest.$ac_ext <<_ACEOF
6605 #line 6605 "configure"
6606 #include "confdefs.h"
6607 /* System header to define __stub macros and hopefully few prototypes,
6608 which can conflict with char $ac_func (); below. */
6610 /* Override any gcc2 internal prototype to avoid an error. */
6614 /* We use char because int might match the return type of a gcc2
6615 builtin and then its argument prototype would still apply. */
6622 /* The GNU C library defines this for functions which it implements
6623 to always fail with ENOSYS. Some functions are actually named
6624 something starting with __ and the normal name is an alias. */
6625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6635 rm -f conftest.$ac_objext conftest$ac_exeext
6636 if { (eval echo $as_me:6636: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
6637 eval "$ac_ac_var=yes"
6639 echo "$as_me: failed program was:" >&5
6640 cat conftest.$ac_ext >&5
6641 eval "$ac_ac_var=no"
6643 rm -f conftest$ac_exeext conftest.$ac_ext
6645 echo "$as_me:6645: result: `eval echo '${'$ac_ac_var'}'`" >&5
6646 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
6647 if test `eval echo '${'$ac_ac_var'}'` = yes; then
6648 cat >>confdefs.h <<EOF
6649 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
6657 eval "ac_tr_func=HAVE_`echo getsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
6658 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
6659 eval "LIB_getsockopt=$ac_res"
6663 eval "ac_cv_func_getsockopt=yes"
6664 eval "LIB_getsockopt="
6665 cat >>confdefs.h <<EOF
6666 #define $ac_tr_func 1
6669 echo "$as_me:6669: result: yes" >&5
6670 echo "${ECHO_T}yes" >&6
6673 eval "ac_cv_func_getsockopt=no"
6674 eval "LIB_getsockopt="
6675 echo "$as_me:6675: result: no" >&5
6676 echo "${ECHO_T}no" >&6
6679 eval "ac_cv_func_getsockopt=yes"
6680 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
6681 cat >>confdefs.h <<EOF
6682 #define $ac_tr_func 1
6685 cat >>confdefs.h <<EOF
6686 #define $ac_tr_lib 1
6689 echo "$as_me:6689: result: yes, in $ac_res" >&5
6690 echo "${ECHO_T}yes, in $ac_res" >&6
6694 echo "$as_me:6694: checking for setsockopt" >&5
6695 echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
6696 if test "${ac_cv_funclib_setsockopt+set}" = set; then
6697 echo $ECHO_N "(cached) $ECHO_C" >&6
6700 if eval "test \"\$ac_cv_func_setsockopt\" != yes" ; then
6701 ac_save_LIBS="$LIBS"
6702 for ac_lib in "" ; do
6703 if test -n "$ac_lib"; then
6708 LIBS=" $ac_lib $ac_save_LIBS"
6709 cat >conftest.$ac_ext <<_ACEOF
6710 #line 6710 "configure"
6711 #include "confdefs.h"
6712 #ifdef HAVE_SYS_TYPES_H
6713 #include <sys/types.h>
6715 #ifdef HAVE_SYS_SOCKET_H
6716 #include <sys/socket.h>
6721 setsockopt(0,0,0,0,0)
6726 rm -f conftest.$ac_objext conftest$ac_exeext
6727 if { (eval echo $as_me:6727: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
6728 eval "if test -n \"$ac_lib\";then ac_cv_funclib_setsockopt=$ac_lib; else ac_cv_funclib_setsockopt=yes; fi";break
6730 echo "$as_me: failed program was:" >&5
6731 cat conftest.$ac_ext >&5
6733 rm -f conftest$ac_exeext conftest.$ac_ext
6735 eval "ac_cv_funclib_setsockopt=\${ac_cv_funclib_setsockopt-no}"
6736 LIBS="$ac_save_LIBS"
6741 eval "ac_res=\$ac_cv_funclib_setsockopt"
6745 for ac_func in setsockopt
6747 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
6748 echo "$as_me:6748: checking for $ac_func" >&5
6749 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6750 if eval "test \"\${$ac_ac_var+set}\" = set"; then
6751 echo $ECHO_N "(cached) $ECHO_C" >&6
6753 cat >conftest.$ac_ext <<_ACEOF
6754 #line 6754 "configure"
6755 #include "confdefs.h"
6756 /* System header to define __stub macros and hopefully few prototypes,
6757 which can conflict with char $ac_func (); below. */
6759 /* Override any gcc2 internal prototype to avoid an error. */
6763 /* We use char because int might match the return type of a gcc2
6764 builtin and then its argument prototype would still apply. */
6771 /* The GNU C library defines this for functions which it implements
6772 to always fail with ENOSYS. Some functions are actually named
6773 something starting with __ and the normal name is an alias. */
6774 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6784 rm -f conftest.$ac_objext conftest$ac_exeext
6785 if { (eval echo $as_me:6785: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
6786 eval "$ac_ac_var=yes"
6788 echo "$as_me: failed program was:" >&5
6789 cat conftest.$ac_ext >&5
6790 eval "$ac_ac_var=no"
6792 rm -f conftest$ac_exeext conftest.$ac_ext
6794 echo "$as_me:6794: result: `eval echo '${'$ac_ac_var'}'`" >&5
6795 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
6796 if test `eval echo '${'$ac_ac_var'}'` = yes; then
6797 cat >>confdefs.h <<EOF
6798 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
6806 eval "ac_tr_func=HAVE_`echo setsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
6807 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
6808 eval "LIB_setsockopt=$ac_res"
6812 eval "ac_cv_func_setsockopt=yes"
6813 eval "LIB_setsockopt="
6814 cat >>confdefs.h <<EOF
6815 #define $ac_tr_func 1
6818 echo "$as_me:6818: result: yes" >&5
6819 echo "${ECHO_T}yes" >&6
6822 eval "ac_cv_func_setsockopt=no"
6823 eval "LIB_setsockopt="
6824 echo "$as_me:6824: result: no" >&5
6825 echo "${ECHO_T}no" >&6
6828 eval "ac_cv_func_setsockopt=yes"
6829 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
6830 cat >>confdefs.h <<EOF
6831 #define $ac_tr_func 1
6834 cat >>confdefs.h <<EOF
6835 #define $ac_tr_lib 1
6838 echo "$as_me:6838: result: yes, in $ac_res" >&5
6839 echo "${ECHO_T}yes, in $ac_res" >&6
6843 echo "$as_me:6843: checking for hstrerror" >&5
6844 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6
6845 if test "${ac_cv_funclib_hstrerror+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
6849 if eval "test \"\$ac_cv_func_hstrerror\" != yes" ; then
6850 ac_save_LIBS="$LIBS"
6851 for ac_lib in "" resolv; do
6852 if test -n "$ac_lib"; then
6857 LIBS=" $ac_lib $ac_save_LIBS"
6858 cat >conftest.$ac_ext <<_ACEOF
6859 #line 6859 "configure"
6860 #include "confdefs.h"
6872 rm -f conftest.$ac_objext conftest$ac_exeext
6873 if { (eval echo $as_me:6873: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
6874 eval "if test -n \"$ac_lib\";then ac_cv_funclib_hstrerror=$ac_lib; else ac_cv_funclib_hstrerror=yes; fi";break
6876 echo "$as_me: failed program was:" >&5
6877 cat conftest.$ac_ext >&5
6879 rm -f conftest$ac_exeext conftest.$ac_ext
6881 eval "ac_cv_funclib_hstrerror=\${ac_cv_funclib_hstrerror-no}"
6882 LIBS="$ac_save_LIBS"
6887 eval "ac_res=\$ac_cv_funclib_hstrerror"
6891 for ac_func in hstrerror
6893 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
6894 echo "$as_me:6894: checking for $ac_func" >&5
6895 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6896 if eval "test \"\${$ac_ac_var+set}\" = set"; then
6897 echo $ECHO_N "(cached) $ECHO_C" >&6
6899 cat >conftest.$ac_ext <<_ACEOF
6900 #line 6900 "configure"
6901 #include "confdefs.h"
6902 /* System header to define __stub macros and hopefully few prototypes,
6903 which can conflict with char $ac_func (); below. */
6905 /* Override any gcc2 internal prototype to avoid an error. */
6909 /* We use char because int might match the return type of a gcc2
6910 builtin and then its argument prototype would still apply. */
6917 /* The GNU C library defines this for functions which it implements
6918 to always fail with ENOSYS. Some functions are actually named
6919 something starting with __ and the normal name is an alias. */
6920 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6930 rm -f conftest.$ac_objext conftest$ac_exeext
6931 if { (eval echo $as_me:6931: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
6932 eval "$ac_ac_var=yes"
6934 echo "$as_me: failed program was:" >&5
6935 cat conftest.$ac_ext >&5
6936 eval "$ac_ac_var=no"
6938 rm -f conftest$ac_exeext conftest.$ac_ext
6940 echo "$as_me:6940: result: `eval echo '${'$ac_ac_var'}'`" >&5
6941 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
6942 if test `eval echo '${'$ac_ac_var'}'` = yes; then
6943 cat >>confdefs.h <<EOF
6944 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
6952 eval "ac_tr_func=HAVE_`echo hstrerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
6953 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
6954 eval "LIB_hstrerror=$ac_res"
6958 eval "ac_cv_func_hstrerror=yes"
6959 eval "LIB_hstrerror="
6960 cat >>confdefs.h <<EOF
6961 #define $ac_tr_func 1
6964 echo "$as_me:6964: result: yes" >&5
6965 echo "${ECHO_T}yes" >&6
6968 eval "ac_cv_func_hstrerror=no"
6969 eval "LIB_hstrerror="
6970 echo "$as_me:6970: result: no" >&5
6971 echo "${ECHO_T}no" >&6
6974 eval "ac_cv_func_hstrerror=yes"
6975 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
6976 cat >>confdefs.h <<EOF
6977 #define $ac_tr_func 1
6980 cat >>confdefs.h <<EOF
6981 #define $ac_tr_lib 1
6984 echo "$as_me:6984: result: yes, in $ac_res" >&5
6985 echo "${ECHO_T}yes, in $ac_res" >&6
6989 if test -n "$LIB_hstrerror"; then
6990 LIBS="$LIB_hstrerror $LIBS"
6993 if eval "test \"$ac_cv_func_hstrerror\" != yes"; then
6994 LIBOBJS="$LIBOBJS hstrerror.o"
6997 if test "$ac_cv_func_hstrerror" = yes; then
6999 if test "$ac_cv_func_hstrerror+set" != set -o "$ac_cv_func_hstrerror" = yes; then
7000 echo "$as_me:7000: checking if hstrerror needs a prototype" >&5
7001 echo $ECHO_N "checking if hstrerror needs a prototype... $ECHO_C" >&6
7002 if test "${ac_cv_func_hstrerror_noproto+set}" = set; then
7003 echo $ECHO_N "(cached) $ECHO_C" >&6
7005 cat >conftest.$ac_ext <<_ACEOF
7006 #line 7006 "configure"
7007 #include "confdefs.h"
7015 struct foo { int foo; } xx;
7016 extern int hstrerror (struct foo*);
7023 rm -f conftest.$ac_objext
7024 if { (eval echo $as_me:7024: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
7025 eval "ac_cv_func_hstrerror_noproto=yes"
7027 echo "$as_me: failed program was:" >&5
7028 cat conftest.$ac_ext >&5
7029 eval "ac_cv_func_hstrerror_noproto=no"
7031 rm -f conftest.$ac_objext conftest.$ac_ext
7033 echo "$as_me:7033: result: $ac_cv_func_hstrerror_noproto" >&5
7034 echo "${ECHO_T}$ac_cv_func_hstrerror_noproto" >&6
7036 if test "$ac_cv_func_hstrerror_noproto" = yes; then
7038 cat >>confdefs.h <<\EOF
7039 #define NEED_HSTRERROR_PROTO 1
7048 if test "$ac_cv_func_asprintf" = yes; then
7050 if test "$ac_cv_func_asprintf+set" != set -o "$ac_cv_func_asprintf" = yes; then
7051 echo "$as_me:7051: checking if asprintf needs a prototype" >&5
7052 echo $ECHO_N "checking if asprintf needs a prototype... $ECHO_C" >&6
7053 if test "${ac_cv_func_asprintf_noproto+set}" = set; then
7054 echo $ECHO_N "(cached) $ECHO_C" >&6
7056 cat >conftest.$ac_ext <<_ACEOF
7057 #line 7057 "configure"
7058 #include "confdefs.h"
7065 struct foo { int foo; } xx;
7066 extern int asprintf (struct foo*);
7073 rm -f conftest.$ac_objext
7074 if { (eval echo $as_me:7074: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
7075 eval "ac_cv_func_asprintf_noproto=yes"
7077 echo "$as_me: failed program was:" >&5
7078 cat conftest.$ac_ext >&5
7079 eval "ac_cv_func_asprintf_noproto=no"
7081 rm -f conftest.$ac_objext conftest.$ac_ext
7083 echo "$as_me:7083: result: $ac_cv_func_asprintf_noproto" >&5
7084 echo "${ECHO_T}$ac_cv_func_asprintf_noproto" >&6
7086 if test "$ac_cv_func_asprintf_noproto" = yes; then
7088 cat >>confdefs.h <<\EOF
7089 #define NEED_ASPRINTF_PROTO 1
7096 if test "$ac_cv_func_vasprintf" = yes; then
7098 if test "$ac_cv_func_vasprintf+set" != set -o "$ac_cv_func_vasprintf" = yes; then
7099 echo "$as_me:7099: checking if vasprintf needs a prototype" >&5
7100 echo $ECHO_N "checking if vasprintf needs a prototype... $ECHO_C" >&6
7101 if test "${ac_cv_func_vasprintf_noproto+set}" = set; then
7102 echo $ECHO_N "(cached) $ECHO_C" >&6
7104 cat >conftest.$ac_ext <<_ACEOF
7105 #line 7105 "configure"
7106 #include "confdefs.h"
7113 struct foo { int foo; } xx;
7114 extern int vasprintf (struct foo*);
7121 rm -f conftest.$ac_objext
7122 if { (eval echo $as_me:7122: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
7123 eval "ac_cv_func_vasprintf_noproto=yes"
7125 echo "$as_me: failed program was:" >&5
7126 cat conftest.$ac_ext >&5
7127 eval "ac_cv_func_vasprintf_noproto=no"
7129 rm -f conftest.$ac_objext conftest.$ac_ext
7131 echo "$as_me:7131: result: $ac_cv_func_vasprintf_noproto" >&5
7132 echo "${ECHO_T}$ac_cv_func_vasprintf_noproto" >&6
7134 if test "$ac_cv_func_vasprintf_noproto" = yes; then
7136 cat >>confdefs.h <<\EOF
7137 #define NEED_VASPRINTF_PROTO 1
7144 if test "$ac_cv_func_asnprintf" = yes; then
7146 if test "$ac_cv_func_asnprintf+set" != set -o "$ac_cv_func_asnprintf" = yes; then
7147 echo "$as_me:7147: checking if asnprintf needs a prototype" >&5
7148 echo $ECHO_N "checking if asnprintf needs a prototype... $ECHO_C" >&6
7149 if test "${ac_cv_func_asnprintf_noproto+set}" = set; then
7150 echo $ECHO_N "(cached) $ECHO_C" >&6
7152 cat >conftest.$ac_ext <<_ACEOF
7153 #line 7153 "configure"
7154 #include "confdefs.h"
7161 struct foo { int foo; } xx;
7162 extern int asnprintf (struct foo*);
7169 rm -f conftest.$ac_objext
7170 if { (eval echo $as_me:7170: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
7171 eval "ac_cv_func_asnprintf_noproto=yes"
7173 echo "$as_me: failed program was:" >&5
7174 cat conftest.$ac_ext >&5
7175 eval "ac_cv_func_asnprintf_noproto=no"
7177 rm -f conftest.$ac_objext conftest.$ac_ext
7179 echo "$as_me:7179: result: $ac_cv_func_asnprintf_noproto" >&5
7180 echo "${ECHO_T}$ac_cv_func_asnprintf_noproto" >&6
7182 if test "$ac_cv_func_asnprintf_noproto" = yes; then
7184 cat >>confdefs.h <<\EOF
7185 #define NEED_ASNPRINTF_PROTO 1
7192 if test "$ac_cv_func_vasnprintf" = yes; then
7194 if test "$ac_cv_func_vasnprintf+set" != set -o "$ac_cv_func_vasnprintf" = yes; then
7195 echo "$as_me:7195: checking if vasnprintf needs a prototype" >&5
7196 echo $ECHO_N "checking if vasnprintf needs a prototype... $ECHO_C" >&6
7197 if test "${ac_cv_func_vasnprintf_noproto+set}" = set; then
7198 echo $ECHO_N "(cached) $ECHO_C" >&6
7200 cat >conftest.$ac_ext <<_ACEOF
7201 #line 7201 "configure"
7202 #include "confdefs.h"
7209 struct foo { int foo; } xx;
7210 extern int vasnprintf (struct foo*);
7217 rm -f conftest.$ac_objext
7218 if { (eval echo $as_me:7218: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
7219 eval "ac_cv_func_vasnprintf_noproto=yes"
7221 echo "$as_me: failed program was:" >&5
7222 cat conftest.$ac_ext >&5
7223 eval "ac_cv_func_vasnprintf_noproto=no"
7225 rm -f conftest.$ac_objext conftest.$ac_ext
7227 echo "$as_me:7227: result: $ac_cv_func_vasnprintf_noproto" >&5
7228 echo "${ECHO_T}$ac_cv_func_vasnprintf_noproto" >&6
7230 if test "$ac_cv_func_vasnprintf_noproto" = yes; then
7232 cat >>confdefs.h <<\EOF
7233 #define NEED_VASNPRINTF_PROTO 1
7241 echo "$as_me:7241: checking for bswap16" >&5
7242 echo $ECHO_N "checking for bswap16... $ECHO_C" >&6
7243 if test "${ac_cv_funclib_bswap16+set}" = set; then
7244 echo $ECHO_N "(cached) $ECHO_C" >&6
7247 if eval "test \"\$ac_cv_func_bswap16\" != yes" ; then
7248 ac_save_LIBS="$LIBS"
7249 for ac_lib in "" ; do
7250 if test -n "$ac_lib"; then
7255 LIBS=" $ac_lib $ac_save_LIBS"
7256 cat >conftest.$ac_ext <<_ACEOF
7257 #line 7257 "configure"
7258 #include "confdefs.h"
7259 #ifdef HAVE_SYS_BSWAP_H
7260 #include <sys/bswap.h>
7270 rm -f conftest.$ac_objext conftest$ac_exeext
7271 if { (eval echo $as_me:7271: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
7272 eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap16=$ac_lib; else ac_cv_funclib_bswap16=yes; fi";break
7274 echo "$as_me: failed program was:" >&5
7275 cat conftest.$ac_ext >&5
7277 rm -f conftest$ac_exeext conftest.$ac_ext
7279 eval "ac_cv_funclib_bswap16=\${ac_cv_funclib_bswap16-no}"
7280 LIBS="$ac_save_LIBS"
7285 eval "ac_res=\$ac_cv_funclib_bswap16"
7289 for ac_func in bswap16
7291 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
7292 echo "$as_me:7292: checking for $ac_func" >&5
7293 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7294 if eval "test \"\${$ac_ac_var+set}\" = set"; then
7295 echo $ECHO_N "(cached) $ECHO_C" >&6
7297 cat >conftest.$ac_ext <<_ACEOF
7298 #line 7298 "configure"
7299 #include "confdefs.h"
7300 /* System header to define __stub macros and hopefully few prototypes,
7301 which can conflict with char $ac_func (); below. */
7303 /* Override any gcc2 internal prototype to avoid an error. */
7307 /* We use char because int might match the return type of a gcc2
7308 builtin and then its argument prototype would still apply. */
7315 /* The GNU C library defines this for functions which it implements
7316 to always fail with ENOSYS. Some functions are actually named
7317 something starting with __ and the normal name is an alias. */
7318 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7328 rm -f conftest.$ac_objext conftest$ac_exeext
7329 if { (eval echo $as_me:7329: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
7330 eval "$ac_ac_var=yes"
7332 echo "$as_me: failed program was:" >&5
7333 cat conftest.$ac_ext >&5
7334 eval "$ac_ac_var=no"
7336 rm -f conftest$ac_exeext conftest.$ac_ext
7338 echo "$as_me:7338: result: `eval echo '${'$ac_ac_var'}'`" >&5
7339 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
7340 if test `eval echo '${'$ac_ac_var'}'` = yes; then
7341 cat >>confdefs.h <<EOF
7342 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
7350 eval "ac_tr_func=HAVE_`echo bswap16 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
7351 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
7352 eval "LIB_bswap16=$ac_res"
7356 eval "ac_cv_func_bswap16=yes"
7358 cat >>confdefs.h <<EOF
7359 #define $ac_tr_func 1
7362 echo "$as_me:7362: result: yes" >&5
7363 echo "${ECHO_T}yes" >&6
7366 eval "ac_cv_func_bswap16=no"
7368 echo "$as_me:7368: result: no" >&5
7369 echo "${ECHO_T}no" >&6
7372 eval "ac_cv_func_bswap16=yes"
7373 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
7374 cat >>confdefs.h <<EOF
7375 #define $ac_tr_func 1
7378 cat >>confdefs.h <<EOF
7379 #define $ac_tr_lib 1
7382 echo "$as_me:7382: result: yes, in $ac_res" >&5
7383 echo "${ECHO_T}yes, in $ac_res" >&6
7387 echo "$as_me:7387: checking for bswap32" >&5
7388 echo $ECHO_N "checking for bswap32... $ECHO_C" >&6
7389 if test "${ac_cv_funclib_bswap32+set}" = set; then
7390 echo $ECHO_N "(cached) $ECHO_C" >&6
7393 if eval "test \"\$ac_cv_func_bswap32\" != yes" ; then
7394 ac_save_LIBS="$LIBS"
7395 for ac_lib in "" ; do
7396 if test -n "$ac_lib"; then
7401 LIBS=" $ac_lib $ac_save_LIBS"
7402 cat >conftest.$ac_ext <<_ACEOF
7403 #line 7403 "configure"
7404 #include "confdefs.h"
7405 #ifdef HAVE_SYS_BSWAP_H
7406 #include <sys/bswap.h>
7416 rm -f conftest.$ac_objext conftest$ac_exeext
7417 if { (eval echo $as_me:7417: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
7418 eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap32=$ac_lib; else ac_cv_funclib_bswap32=yes; fi";break
7420 echo "$as_me: failed program was:" >&5
7421 cat conftest.$ac_ext >&5
7423 rm -f conftest$ac_exeext conftest.$ac_ext
7425 eval "ac_cv_funclib_bswap32=\${ac_cv_funclib_bswap32-no}"
7426 LIBS="$ac_save_LIBS"
7431 eval "ac_res=\$ac_cv_funclib_bswap32"
7435 for ac_func in bswap32
7437 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
7438 echo "$as_me:7438: checking for $ac_func" >&5
7439 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7440 if eval "test \"\${$ac_ac_var+set}\" = set"; then
7441 echo $ECHO_N "(cached) $ECHO_C" >&6
7443 cat >conftest.$ac_ext <<_ACEOF
7444 #line 7444 "configure"
7445 #include "confdefs.h"
7446 /* System header to define __stub macros and hopefully few prototypes,
7447 which can conflict with char $ac_func (); below. */
7449 /* Override any gcc2 internal prototype to avoid an error. */
7453 /* We use char because int might match the return type of a gcc2
7454 builtin and then its argument prototype would still apply. */
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)
7474 rm -f conftest.$ac_objext conftest$ac_exeext
7475 if { (eval echo $as_me:7475: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
7476 eval "$ac_ac_var=yes"
7478 echo "$as_me: failed program was:" >&5
7479 cat conftest.$ac_ext >&5
7480 eval "$ac_ac_var=no"
7482 rm -f conftest$ac_exeext conftest.$ac_ext
7484 echo "$as_me:7484: result: `eval echo '${'$ac_ac_var'}'`" >&5
7485 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
7486 if test `eval echo '${'$ac_ac_var'}'` = yes; then
7487 cat >>confdefs.h <<EOF
7488 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
7496 eval "ac_tr_func=HAVE_`echo bswap32 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
7497 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
7498 eval "LIB_bswap32=$ac_res"
7502 eval "ac_cv_func_bswap32=yes"
7504 cat >>confdefs.h <<EOF
7505 #define $ac_tr_func 1
7508 echo "$as_me:7508: result: yes" >&5
7509 echo "${ECHO_T}yes" >&6
7512 eval "ac_cv_func_bswap32=no"
7514 echo "$as_me:7514: result: no" >&5
7515 echo "${ECHO_T}no" >&6
7518 eval "ac_cv_func_bswap32=yes"
7519 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
7520 cat >>confdefs.h <<EOF
7521 #define $ac_tr_func 1
7524 cat >>confdefs.h <<EOF
7525 #define $ac_tr_lib 1
7528 echo "$as_me:7528: result: yes, in $ac_res" >&5
7529 echo "${ECHO_T}yes, in $ac_res" >&6
7533 echo "$as_me:7533: checking for pidfile" >&5
7534 echo $ECHO_N "checking for pidfile... $ECHO_C" >&6
7535 if test "${ac_cv_funclib_pidfile+set}" = set; then
7536 echo $ECHO_N "(cached) $ECHO_C" >&6
7539 if eval "test \"\$ac_cv_func_pidfile\" != yes" ; then
7540 ac_save_LIBS="$LIBS"
7541 for ac_lib in "" util; do
7542 if test -n "$ac_lib"; then
7547 LIBS=" $ac_lib $ac_save_LIBS"
7548 cat >conftest.$ac_ext <<_ACEOF
7549 #line 7549 "configure"
7550 #include "confdefs.h"
7562 rm -f conftest.$ac_objext conftest$ac_exeext
7563 if { (eval echo $as_me:7563: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
7564 eval "if test -n \"$ac_lib\";then ac_cv_funclib_pidfile=$ac_lib; else ac_cv_funclib_pidfile=yes; fi";break
7566 echo "$as_me: failed program was:" >&5
7567 cat conftest.$ac_ext >&5
7569 rm -f conftest$ac_exeext conftest.$ac_ext
7571 eval "ac_cv_funclib_pidfile=\${ac_cv_funclib_pidfile-no}"
7572 LIBS="$ac_save_LIBS"
7577 eval "ac_res=\$ac_cv_funclib_pidfile"
7581 for ac_func in pidfile
7583 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
7584 echo "$as_me:7584: checking for $ac_func" >&5
7585 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7586 if eval "test \"\${$ac_ac_var+set}\" = set"; then
7587 echo $ECHO_N "(cached) $ECHO_C" >&6
7589 cat >conftest.$ac_ext <<_ACEOF
7590 #line 7590 "configure"
7591 #include "confdefs.h"
7592 /* System header to define __stub macros and hopefully few prototypes,
7593 which can conflict with char $ac_func (); below. */
7595 /* Override any gcc2 internal prototype to avoid an error. */
7599 /* We use char because int might match the return type of a gcc2
7600 builtin and then its argument prototype would still apply. */
7607 /* The GNU C library defines this for functions which it implements
7608 to always fail with ENOSYS. Some functions are actually named
7609 something starting with __ and the normal name is an alias. */
7610 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7620 rm -f conftest.$ac_objext conftest$ac_exeext
7621 if { (eval echo $as_me:7621: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
7622 eval "$ac_ac_var=yes"
7624 echo "$as_me: failed program was:" >&5
7625 cat conftest.$ac_ext >&5
7626 eval "$ac_ac_var=no"
7628 rm -f conftest$ac_exeext conftest.$ac_ext
7630 echo "$as_me:7630: result: `eval echo '${'$ac_ac_var'}'`" >&5
7631 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
7632 if test `eval echo '${'$ac_ac_var'}'` = yes; then
7633 cat >>confdefs.h <<EOF
7634 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
7642 eval "ac_tr_func=HAVE_`echo pidfile | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
7643 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
7644 eval "LIB_pidfile=$ac_res"
7648 eval "ac_cv_func_pidfile=yes"
7650 cat >>confdefs.h <<EOF
7651 #define $ac_tr_func 1
7654 echo "$as_me:7654: result: yes" >&5
7655 echo "${ECHO_T}yes" >&6
7658 eval "ac_cv_func_pidfile=no"
7660 echo "$as_me:7660: result: no" >&5
7661 echo "${ECHO_T}no" >&6
7664 eval "ac_cv_func_pidfile=yes"
7665 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
7666 cat >>confdefs.h <<EOF
7667 #define $ac_tr_func 1
7670 cat >>confdefs.h <<EOF
7671 #define $ac_tr_lib 1
7674 echo "$as_me:7674: result: yes, in $ac_res" >&5
7675 echo "${ECHO_T}yes, in $ac_res" >&6
7747 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
7748 echo "$as_me:7748: checking for $ac_func" >&5
7749 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7750 if eval "test \"\${$ac_ac_var+set}\" = set"; then
7751 echo $ECHO_N "(cached) $ECHO_C" >&6
7753 cat >conftest.$ac_ext <<_ACEOF
7754 #line 7754 "configure"
7755 #include "confdefs.h"
7756 /* System header to define __stub macros and hopefully few prototypes,
7757 which can conflict with char $ac_func (); below. */
7759 /* Override any gcc2 internal prototype to avoid an error. */
7763 /* We use char because int might match the return type of a gcc2
7764 builtin and then its argument prototype would still apply. */
7771 /* The GNU C library defines this for functions which it implements
7772 to always fail with ENOSYS. Some functions are actually named
7773 something starting with __ and the normal name is an alias. */
7774 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7784 rm -f conftest.$ac_objext conftest$ac_exeext
7785 if { (eval echo $as_me:7785: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
7786 eval "$ac_ac_var=yes"
7788 echo "$as_me: failed program was:" >&5
7789 cat conftest.$ac_ext >&5
7790 eval "$ac_ac_var=no"
7792 rm -f conftest$ac_exeext conftest.$ac_ext
7794 echo "$as_me:7794: result: `eval echo '${'$ac_ac_var'}'`" >&5
7795 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
7796 if test `eval echo '${'$ac_ac_var'}'` = yes; then
7798 ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
7799 cat >>confdefs.h <<EOF
7800 #define $ac_tr_func 1
7804 LIBOBJS="$LIBOBJS ${ac_func}.o"
7877 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
7878 echo "$as_me:7878: checking for $ac_func" >&5
7879 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7880 if eval "test \"\${$ac_ac_var+set}\" = set"; then
7881 echo $ECHO_N "(cached) $ECHO_C" >&6
7883 cat >conftest.$ac_ext <<_ACEOF
7884 #line 7884 "configure"
7885 #include "confdefs.h"
7886 /* System header to define __stub macros and hopefully few prototypes,
7887 which can conflict with char $ac_func (); below. */
7889 /* Override any gcc2 internal prototype to avoid an error. */
7893 /* We use char because int might match the return type of a gcc2
7894 builtin and then its argument prototype would still apply. */
7901 /* The GNU C library defines this for functions which it implements
7902 to always fail with ENOSYS. Some functions are actually named
7903 something starting with __ and the normal name is an alias. */
7904 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7914 rm -f conftest.$ac_objext conftest$ac_exeext
7915 if { (eval echo $as_me:7915: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
7916 eval "$ac_ac_var=yes"
7918 echo "$as_me: failed program was:" >&5
7919 cat conftest.$ac_ext >&5
7920 eval "$ac_ac_var=no"
7922 rm -f conftest$ac_exeext conftest.$ac_ext
7924 echo "$as_me:7924: result: `eval echo '${'$ac_ac_var'}'`" >&5
7925 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
7926 if test `eval echo '${'$ac_ac_var'}'` = yes; then
7927 cat >>confdefs.h <<EOF
7928 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
7937 for ac_func in inet_aton
7939 echo "$as_me:7939: checking for $ac_func" >&5
7940 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7941 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
7942 echo $ECHO_N "(cached) $ECHO_C" >&6
7944 cat >conftest.$ac_ext <<_ACEOF
7945 #line 7945 "configure"
7946 #include "confdefs.h"
7947 #ifdef HAVE_SYS_TYPES_H
7948 #include <sys/types.h>
7950 #ifdef HAVE_SYS_SOCKET_H
7951 #include <sys/socket.h>
7953 #ifdef HAVE_NETINET_IN_H
7954 #include <netinet/in.h>
7956 #ifdef HAVE_ARPA_INET_H
7957 #include <arpa/inet.h>
7963 /* The GNU C library defines this for functions which it implements
7964 to always fail with ENOSYS. Some functions are actually named
7965 something starting with __ and the normal name is an alias. */
7966 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
7976 rm -f conftest.$ac_objext conftest$ac_exeext
7977 if { (eval echo $as_me:7977: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
7978 eval "ac_cv_func_$ac_func=yes"
7980 echo "$as_me: failed program was:" >&5
7981 cat conftest.$ac_ext >&5
7982 eval "ac_cv_func_$ac_func=no"
7984 rm -f conftest$ac_exeext conftest.$ac_ext
7987 if eval "test \"\${ac_cv_func_$ac_func}\" = yes"; then
7988 ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
7989 cat >>confdefs.h <<EOF
7990 #define $ac_tr_func 1
7993 echo "$as_me:7993: result: yes" >&5
7994 echo "${ECHO_T}yes" >&6
7996 echo "$as_me:7996: result: no" >&5
7997 echo "${ECHO_T}no" >&6
7998 LIBOBJS="$LIBOBJS ${ac_func}.o"
8003 for ac_func in inet_aton
8005 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
8006 echo "$as_me:8006: checking for $ac_func" >&5
8007 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8008 if eval "test \"\${$ac_ac_var+set}\" = set"; then
8009 echo $ECHO_N "(cached) $ECHO_C" >&6
8011 cat >conftest.$ac_ext <<_ACEOF
8012 #line 8012 "configure"
8013 #include "confdefs.h"
8014 /* System header to define __stub macros and hopefully few prototypes,
8015 which can conflict with char $ac_func (); below. */
8017 /* Override any gcc2 internal prototype to avoid an error. */
8021 /* We use char because int might match the return type of a gcc2
8022 builtin and then its argument prototype would still apply. */
8029 /* The GNU C library defines this for functions which it implements
8030 to always fail with ENOSYS. Some functions are actually named
8031 something starting with __ and the normal name is an alias. */
8032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8042 rm -f conftest.$ac_objext conftest$ac_exeext
8043 if { (eval echo $as_me:8043: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
8044 eval "$ac_ac_var=yes"
8046 echo "$as_me: failed program was:" >&5
8047 cat conftest.$ac_ext >&5
8048 eval "$ac_ac_var=no"
8050 rm -f conftest$ac_exeext conftest.$ac_ext
8052 echo "$as_me:8052: result: `eval echo '${'$ac_ac_var'}'`" >&5
8053 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
8054 if test `eval echo '${'$ac_ac_var'}'` = yes; then
8055 cat >>confdefs.h <<EOF
8056 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
8064 for ac_func in inet_ntop
8066 echo "$as_me:8066: checking for $ac_func" >&5
8067 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8068 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
8069 echo $ECHO_N "(cached) $ECHO_C" >&6
8071 cat >conftest.$ac_ext <<_ACEOF
8072 #line 8072 "configure"
8073 #include "confdefs.h"
8074 #ifdef HAVE_SYS_TYPES_H
8075 #include <sys/types.h>
8077 #ifdef HAVE_SYS_SOCKET_H
8078 #include <sys/socket.h>
8080 #ifdef HAVE_NETINET_IN_H
8081 #include <netinet/in.h>
8083 #ifdef HAVE_ARPA_INET_H
8084 #include <arpa/inet.h>
8090 /* The GNU C library defines this for functions which it implements
8091 to always fail with ENOSYS. Some functions are actually named
8092 something starting with __ and the normal name is an alias. */
8093 #if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
8096 $ac_func(0, 0, 0, 0)
8103 rm -f conftest.$ac_objext conftest$ac_exeext
8104 if { (eval echo $as_me:8104: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
8105 eval "ac_cv_func_$ac_func=yes"
8107 echo "$as_me: failed program was:" >&5
8108 cat conftest.$ac_ext >&5
8109 eval "ac_cv_func_$ac_func=no"
8111 rm -f conftest$ac_exeext conftest.$ac_ext
8114 if eval "test \"\${ac_cv_func_$ac_func}\" = yes"; then
8115 ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
8116 cat >>confdefs.h <<EOF
8117 #define $ac_tr_func 1
8120 echo "$as_me:8120: result: yes" >&5
8121 echo "${ECHO_T}yes" >&6
8123 echo "$as_me:8123: result: no" >&5
8124 echo "${ECHO_T}no" >&6
8125 LIBOBJS="$LIBOBJS ${ac_func}.o"
8130 for ac_func in inet_ntop
8132 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
8133 echo "$as_me:8133: checking for $ac_func" >&5
8134 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8135 if eval "test \"\${$ac_ac_var+set}\" = set"; then
8136 echo $ECHO_N "(cached) $ECHO_C" >&6
8138 cat >conftest.$ac_ext <<_ACEOF
8139 #line 8139 "configure"
8140 #include "confdefs.h"
8141 /* System header to define __stub macros and hopefully few prototypes,
8142 which can conflict with char $ac_func (); below. */
8144 /* Override any gcc2 internal prototype to avoid an error. */
8148 /* We use char because int might match the return type of a gcc2
8149 builtin and then its argument prototype would still apply. */
8156 /* The GNU C library defines this for functions which it implements
8157 to always fail with ENOSYS. Some functions are actually named
8158 something starting with __ and the normal name is an alias. */
8159 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8169 rm -f conftest.$ac_objext conftest$ac_exeext
8170 if { (eval echo $as_me:8170: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
8171 eval "$ac_ac_var=yes"
8173 echo "$as_me: failed program was:" >&5
8174 cat conftest.$ac_ext >&5
8175 eval "$ac_ac_var=no"
8177 rm -f conftest$ac_exeext conftest.$ac_ext
8179 echo "$as_me:8179: result: `eval echo '${'$ac_ac_var'}'`" >&5
8180 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
8181 if test `eval echo '${'$ac_ac_var'}'` = yes; then
8182 cat >>confdefs.h <<EOF
8183 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
8191 for ac_func in inet_pton
8193 echo "$as_me:8193: checking for $ac_func" >&5
8194 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8195 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
8196 echo $ECHO_N "(cached) $ECHO_C" >&6
8198 cat >conftest.$ac_ext <<_ACEOF
8199 #line 8199 "configure"
8200 #include "confdefs.h"
8201 #ifdef HAVE_SYS_TYPES_H
8202 #include <sys/types.h>
8204 #ifdef HAVE_SYS_SOCKET_H
8205 #include <sys/socket.h>
8207 #ifdef HAVE_NETINET_IN_H
8208 #include <netinet/in.h>
8210 #ifdef HAVE_ARPA_INET_H
8211 #include <arpa/inet.h>
8217 /* The GNU C library defines this for functions which it implements
8218 to always fail with ENOSYS. Some functions are actually named
8219 something starting with __ and the normal name is an alias. */
8220 #if defined (__stub_inet_pton) || defined (__stub___inet_pton)
8230 rm -f conftest.$ac_objext conftest$ac_exeext
8231 if { (eval echo $as_me:8231: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
8232 eval "ac_cv_func_$ac_func=yes"
8234 echo "$as_me: failed program was:" >&5
8235 cat conftest.$ac_ext >&5
8236 eval "ac_cv_func_$ac_func=no"
8238 rm -f conftest$ac_exeext conftest.$ac_ext
8241 if eval "test \"\${ac_cv_func_$ac_func}\" = yes"; then
8242 ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
8243 cat >>confdefs.h <<EOF
8244 #define $ac_tr_func 1
8247 echo "$as_me:8247: result: yes" >&5
8248 echo "${ECHO_T}yes" >&6
8250 echo "$as_me:8250: result: no" >&5
8251 echo "${ECHO_T}no" >&6
8252 LIBOBJS="$LIBOBJS ${ac_func}.o"
8257 for ac_func in inet_pton
8259 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
8260 echo "$as_me:8260: checking for $ac_func" >&5
8261 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8262 if eval "test \"\${$ac_ac_var+set}\" = set"; then
8263 echo $ECHO_N "(cached) $ECHO_C" >&6
8265 cat >conftest.$ac_ext <<_ACEOF
8266 #line 8266 "configure"
8267 #include "confdefs.h"
8268 /* System header to define __stub macros and hopefully few prototypes,
8269 which can conflict with char $ac_func (); below. */
8271 /* Override any gcc2 internal prototype to avoid an error. */
8275 /* We use char because int might match the return type of a gcc2
8276 builtin and then its argument prototype would still apply. */
8283 /* The GNU C library defines this for functions which it implements
8284 to always fail with ENOSYS. Some functions are actually named
8285 something starting with __ and the normal name is an alias. */
8286 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8296 rm -f conftest.$ac_objext conftest$ac_exeext
8297 if { (eval echo $as_me:8297: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
8298 eval "$ac_ac_var=yes"
8300 echo "$as_me: failed program was:" >&5
8301 cat conftest.$ac_ext >&5
8302 eval "$ac_ac_var=no"
8304 rm -f conftest$ac_exeext conftest.$ac_ext
8306 echo "$as_me:8306: result: `eval echo '${'$ac_ac_var'}'`" >&5
8307 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
8308 if test `eval echo '${'$ac_ac_var'}'` = yes; then
8309 cat >>confdefs.h <<EOF
8310 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
8318 echo "$as_me:8318: checking for sa_len in struct sockaddr" >&5
8319 echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
8320 if test "${ac_cv_type_struct_sockaddr_sa_len+set}" = set; then
8321 echo $ECHO_N "(cached) $ECHO_C" >&6
8324 cat >conftest.$ac_ext <<_ACEOF
8325 #line 8325 "configure"
8326 #include "confdefs.h"
8327 #include <sys/types.h>
8328 #include <sys/socket.h>
8332 struct sockaddr x; x.sa_len;
8337 rm -f conftest.$ac_objext
8338 if { (eval echo $as_me:8338: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
8339 ac_cv_type_struct_sockaddr_sa_len=yes
8341 echo "$as_me: failed program was:" >&5
8342 cat conftest.$ac_ext >&5
8343 ac_cv_type_struct_sockaddr_sa_len=no
8345 rm -f conftest.$ac_objext conftest.$ac_ext
8347 echo "$as_me:8347: result: $ac_cv_type_struct_sockaddr_sa_len" >&5
8348 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_sa_len" >&6
8349 if test "$ac_cv_type_struct_sockaddr_sa_len" = yes; then
8351 cat >>confdefs.h <<\EOF
8352 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
8357 if test "$ac_cv_func_getnameinfo" = "yes"; then
8359 echo "$as_me:8359: checking if getnameinfo is broken" >&5
8360 echo $ECHO_N "checking if getnameinfo is broken... $ECHO_C" >&6
8361 if test "${ac_cv_func_getnameinfo_broken+set}" = set; then
8362 echo $ECHO_N "(cached) $ECHO_C" >&6
8364 if test "$cross_compiling" = yes; then
8365 { echo "$as_me: error: cannot run test program while cross compiling" >&2
8366 { (exit 1); exit; }; }
8368 cat >conftest.$ac_ext <<_ACEOF
8369 #line 8369 "configure"
8370 #include "confdefs.h"
8372 #include <sys/types.h>
8373 #include <sys/socket.h>
8374 #include <netinet/in.h>
8378 main(int argc, char **argv)
8380 struct sockaddr_in sin;
8382 memset(&sin, 0, sizeof(sin));
8383 #ifdef HAVE_STRUCT_SOCKADDR_SA_LEN
8384 sin.sin_len = sizeof(sin);
8386 sin.sin_family = AF_INET;
8387 sin.sin_addr.s_addr = 0xffffffff;
8389 return getnameinfo((struct sockaddr*)&sin, sizeof(sin), host, sizeof(host),
8394 rm -f conftest$ac_exeext
8395 { (eval echo $as_me:8395: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } &&
8396 (./conftest$ac_exeext) >&5 2>&1;
8398 if test $ac_status = 0; then
8399 ac_cv_func_getnameinfo_broken=no
8401 echo "$as_me: program exited with status $ac_status" >&5
8402 echo "$as_me: failed program was:" >&5
8403 cat conftest.$ac_ext >&5
8404 ac_cv_func_getnameinfo_broken=yes
8407 rm -f conftest$ac_exeext conftest.$ac_ext
8411 echo "$as_me:8411: result: $ac_cv_func_getnameinfo_broken" >&5
8412 echo "${ECHO_T}$ac_cv_func_getnameinfo_broken" >&6
8413 if test "$ac_cv_func_getnameinfo_broken" = yes; then
8414 LIBOBJS="$LIBOBJS getnameinfo.o"
8418 if test "$ac_cv_func_setenv+set" != set -o "$ac_cv_func_setenv" = yes; then
8419 echo "$as_me:8419: checking if setenv needs a prototype" >&5
8420 echo $ECHO_N "checking if setenv needs a prototype... $ECHO_C" >&6
8421 if test "${ac_cv_func_setenv_noproto+set}" = set; then
8422 echo $ECHO_N "(cached) $ECHO_C" >&6
8424 cat >conftest.$ac_ext <<_ACEOF
8425 #line 8425 "configure"
8426 #include "confdefs.h"
8431 struct foo { int foo; } xx;
8432 extern int setenv (struct foo*);
8439 rm -f conftest.$ac_objext
8440 if { (eval echo $as_me:8440: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
8441 eval "ac_cv_func_setenv_noproto=yes"
8443 echo "$as_me: failed program was:" >&5
8444 cat conftest.$ac_ext >&5
8445 eval "ac_cv_func_setenv_noproto=no"
8447 rm -f conftest.$ac_objext conftest.$ac_ext
8449 echo "$as_me:8449: result: $ac_cv_func_setenv_noproto" >&5
8450 echo "${ECHO_T}$ac_cv_func_setenv_noproto" >&6
8452 if test "$ac_cv_func_setenv_noproto" = yes; then
8454 cat >>confdefs.h <<\EOF
8455 #define NEED_SETENV_PROTO 1
8462 if test "$ac_cv_func_unsetenv+set" != set -o "$ac_cv_func_unsetenv" = yes; then
8463 echo "$as_me:8463: checking if unsetenv needs a prototype" >&5
8464 echo $ECHO_N "checking if unsetenv needs a prototype... $ECHO_C" >&6
8465 if test "${ac_cv_func_unsetenv_noproto+set}" = set; then
8466 echo $ECHO_N "(cached) $ECHO_C" >&6
8468 cat >conftest.$ac_ext <<_ACEOF
8469 #line 8469 "configure"
8470 #include "confdefs.h"
8475 struct foo { int foo; } xx;
8476 extern int unsetenv (struct foo*);
8483 rm -f conftest.$ac_objext
8484 if { (eval echo $as_me:8484: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
8485 eval "ac_cv_func_unsetenv_noproto=yes"
8487 echo "$as_me: failed program was:" >&5
8488 cat conftest.$ac_ext >&5
8489 eval "ac_cv_func_unsetenv_noproto=no"
8491 rm -f conftest.$ac_objext conftest.$ac_ext
8493 echo "$as_me:8493: result: $ac_cv_func_unsetenv_noproto" >&5
8494 echo "${ECHO_T}$ac_cv_func_unsetenv_noproto" >&6
8496 if test "$ac_cv_func_unsetenv_noproto" = yes; then
8498 cat >>confdefs.h <<\EOF
8499 #define NEED_UNSETENV_PROTO 1
8506 if test "$ac_cv_func_gethostname+set" != set -o "$ac_cv_func_gethostname" = yes; then
8507 echo "$as_me:8507: checking if gethostname needs a prototype" >&5
8508 echo $ECHO_N "checking if gethostname needs a prototype... $ECHO_C" >&6
8509 if test "${ac_cv_func_gethostname_noproto+set}" = set; then
8510 echo $ECHO_N "(cached) $ECHO_C" >&6
8512 cat >conftest.$ac_ext <<_ACEOF
8513 #line 8513 "configure"
8514 #include "confdefs.h"
8519 struct foo { int foo; } xx;
8520 extern int gethostname (struct foo*);
8527 rm -f conftest.$ac_objext
8528 if { (eval echo $as_me:8528: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
8529 eval "ac_cv_func_gethostname_noproto=yes"
8531 echo "$as_me: failed program was:" >&5
8532 cat conftest.$ac_ext >&5
8533 eval "ac_cv_func_gethostname_noproto=no"
8535 rm -f conftest.$ac_objext conftest.$ac_ext
8537 echo "$as_me:8537: result: $ac_cv_func_gethostname_noproto" >&5
8538 echo "${ECHO_T}$ac_cv_func_gethostname_noproto" >&6
8540 if test "$ac_cv_func_gethostname_noproto" = yes; then
8542 cat >>confdefs.h <<\EOF
8543 #define NEED_GETHOSTNAME_PROTO 1
8550 if test "$ac_cv_func_mkstemp+set" != set -o "$ac_cv_func_mkstemp" = yes; then
8551 echo "$as_me:8551: checking if mkstemp needs a prototype" >&5
8552 echo $ECHO_N "checking if mkstemp needs a prototype... $ECHO_C" >&6
8553 if test "${ac_cv_func_mkstemp_noproto+set}" = set; then
8554 echo $ECHO_N "(cached) $ECHO_C" >&6
8556 cat >conftest.$ac_ext <<_ACEOF
8557 #line 8557 "configure"
8558 #include "confdefs.h"
8563 struct foo { int foo; } xx;
8564 extern int mkstemp (struct foo*);
8571 rm -f conftest.$ac_objext
8572 if { (eval echo $as_me:8572: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
8573 eval "ac_cv_func_mkstemp_noproto=yes"
8575 echo "$as_me: failed program was:" >&5
8576 cat conftest.$ac_ext >&5
8577 eval "ac_cv_func_mkstemp_noproto=no"
8579 rm -f conftest.$ac_objext conftest.$ac_ext
8581 echo "$as_me:8581: result: $ac_cv_func_mkstemp_noproto" >&5
8582 echo "${ECHO_T}$ac_cv_func_mkstemp_noproto" >&6
8584 if test "$ac_cv_func_mkstemp_noproto" = yes; then
8586 cat >>confdefs.h <<\EOF
8587 #define NEED_MKSTEMP_PROTO 1
8594 if test "$ac_cv_func_getusershell+set" != set -o "$ac_cv_func_getusershell" = yes; then
8595 echo "$as_me:8595: checking if getusershell needs a prototype" >&5
8596 echo $ECHO_N "checking if getusershell needs a prototype... $ECHO_C" >&6
8597 if test "${ac_cv_func_getusershell_noproto+set}" = set; then
8598 echo $ECHO_N "(cached) $ECHO_C" >&6
8600 cat >conftest.$ac_ext <<_ACEOF
8601 #line 8601 "configure"
8602 #include "confdefs.h"
8607 struct foo { int foo; } xx;
8608 extern int getusershell (struct foo*);
8615 rm -f conftest.$ac_objext
8616 if { (eval echo $as_me:8616: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
8617 eval "ac_cv_func_getusershell_noproto=yes"
8619 echo "$as_me: failed program was:" >&5
8620 cat conftest.$ac_ext >&5
8621 eval "ac_cv_func_getusershell_noproto=no"
8623 rm -f conftest.$ac_objext conftest.$ac_ext
8625 echo "$as_me:8625: result: $ac_cv_func_getusershell_noproto" >&5
8626 echo "${ECHO_T}$ac_cv_func_getusershell_noproto" >&6
8628 if test "$ac_cv_func_getusershell_noproto" = yes; then
8630 cat >>confdefs.h <<\EOF
8631 #define NEED_GETUSERSHELL_PROTO 1
8638 if test "$ac_cv_func_inet_aton+set" != set -o "$ac_cv_func_inet_aton" = yes; then
8639 echo "$as_me:8639: checking if inet_aton needs a prototype" >&5
8640 echo $ECHO_N "checking if inet_aton needs a prototype... $ECHO_C" >&6
8641 if test "${ac_cv_func_inet_aton_noproto+set}" = set; then
8642 echo $ECHO_N "(cached) $ECHO_C" >&6
8644 cat >conftest.$ac_ext <<_ACEOF
8645 #line 8645 "configure"
8646 #include "confdefs.h"
8648 #ifdef HAVE_SYS_TYPES_H
8649 #include <sys/types.h>
8651 #ifdef HAVE_SYS_SOCKET_H
8652 #include <sys/socket.h>
8654 #ifdef HAVE_NETINET_IN_H
8655 #include <netinet/in.h>
8657 #ifdef HAVE_ARPA_INET_H
8658 #include <arpa/inet.h>
8663 struct foo { int foo; } xx;
8664 extern int inet_aton (struct foo*);
8671 rm -f conftest.$ac_objext
8672 if { (eval echo $as_me:8672: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
8673 eval "ac_cv_func_inet_aton_noproto=yes"
8675 echo "$as_me: failed program was:" >&5
8676 cat conftest.$ac_ext >&5
8677 eval "ac_cv_func_inet_aton_noproto=no"
8679 rm -f conftest.$ac_objext conftest.$ac_ext
8681 echo "$as_me:8681: result: $ac_cv_func_inet_aton_noproto" >&5
8682 echo "${ECHO_T}$ac_cv_func_inet_aton_noproto" >&6
8684 if test "$ac_cv_func_inet_aton_noproto" = yes; then
8686 cat >>confdefs.h <<\EOF
8687 #define NEED_INET_ATON_PROTO 1
8694 echo "$as_me:8694: checking for crypt" >&5
8695 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
8696 if test "${ac_cv_funclib_crypt+set}" = set; then
8697 echo $ECHO_N "(cached) $ECHO_C" >&6
8700 if eval "test \"\$ac_cv_func_crypt\" != yes" ; then
8701 ac_save_LIBS="$LIBS"
8702 for ac_lib in "" crypt; do
8703 if test -n "$ac_lib"; then
8708 LIBS=" $ac_lib $ac_save_LIBS"
8709 cat >conftest.$ac_ext <<_ACEOF
8710 #line 8710 "configure"
8711 #include "confdefs.h"
8721 rm -f conftest.$ac_objext conftest$ac_exeext
8722 if { (eval echo $as_me:8722: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
8723 eval "if test -n \"$ac_lib\";then ac_cv_funclib_crypt=$ac_lib; else ac_cv_funclib_crypt=yes; fi";break
8725 echo "$as_me: failed program was:" >&5
8726 cat conftest.$ac_ext >&5
8728 rm -f conftest$ac_exeext conftest.$ac_ext
8730 eval "ac_cv_funclib_crypt=\${ac_cv_funclib_crypt-no}"
8731 LIBS="$ac_save_LIBS"
8736 eval "ac_res=\$ac_cv_funclib_crypt"
8740 for ac_func in crypt
8742 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
8743 echo "$as_me:8743: checking for $ac_func" >&5
8744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8745 if eval "test \"\${$ac_ac_var+set}\" = set"; then
8746 echo $ECHO_N "(cached) $ECHO_C" >&6
8748 cat >conftest.$ac_ext <<_ACEOF
8749 #line 8749 "configure"
8750 #include "confdefs.h"
8751 /* System header to define __stub macros and hopefully few prototypes,
8752 which can conflict with char $ac_func (); below. */
8754 /* Override any gcc2 internal prototype to avoid an error. */
8758 /* We use char because int might match the return type of a gcc2
8759 builtin and then its argument prototype would still apply. */
8766 /* The GNU C library defines this for functions which it implements
8767 to always fail with ENOSYS. Some functions are actually named
8768 something starting with __ and the normal name is an alias. */
8769 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8779 rm -f conftest.$ac_objext conftest$ac_exeext
8780 if { (eval echo $as_me:8780: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
8781 eval "$ac_ac_var=yes"
8783 echo "$as_me: failed program was:" >&5
8784 cat conftest.$ac_ext >&5
8785 eval "$ac_ac_var=no"
8787 rm -f conftest$ac_exeext conftest.$ac_ext
8789 echo "$as_me:8789: result: `eval echo '${'$ac_ac_var'}'`" >&5
8790 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
8791 if test `eval echo '${'$ac_ac_var'}'` = yes; then
8792 cat >>confdefs.h <<EOF
8793 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
8801 eval "ac_tr_func=HAVE_`echo crypt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
8802 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
8803 eval "LIB_crypt=$ac_res"
8807 eval "ac_cv_func_crypt=yes"
8809 cat >>confdefs.h <<EOF
8810 #define $ac_tr_func 1
8813 echo "$as_me:8813: result: yes" >&5
8814 echo "${ECHO_T}yes" >&6
8817 eval "ac_cv_func_crypt=no"
8819 echo "$as_me:8819: result: no" >&5
8820 echo "${ECHO_T}no" >&6
8823 eval "ac_cv_func_crypt=yes"
8824 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
8825 cat >>confdefs.h <<EOF
8826 #define $ac_tr_func 1
8829 cat >>confdefs.h <<EOF
8830 #define $ac_tr_lib 1
8833 echo "$as_me:8833: result: yes, in $ac_res" >&5
8834 echo "${ECHO_T}yes, in $ac_res" >&6
8838 echo "$as_me:8838: checking if gethostbyname is compatible with system prototype" >&5
8839 echo $ECHO_N "checking if gethostbyname is compatible with system prototype... $ECHO_C" >&6
8840 if test "${ac_cv_func_gethostbyname_proto_compat+set}" = set; then
8841 echo $ECHO_N "(cached) $ECHO_C" >&6
8843 cat >conftest.$ac_ext <<_ACEOF
8844 #line 8844 "configure"
8845 #include "confdefs.h"
8847 #ifdef HAVE_SYS_TYPES_H
8848 #include <sys/types.h>
8850 #ifdef HAVE_SYS_SOCKET_H
8851 #include <sys/socket.h>
8853 #ifdef HAVE_NETINET_IN_H
8854 #include <netinet/in.h>
8856 #ifdef HAVE_ARPA_INET_H
8857 #include <arpa/inet.h>
8866 struct hostent *gethostbyname(const char *);
8871 rm -f conftest.$ac_objext
8872 if { (eval echo $as_me:8872: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
8873 eval "ac_cv_func_gethostbyname_proto_compat=yes"
8875 echo "$as_me: failed program was:" >&5
8876 cat conftest.$ac_ext >&5
8877 eval "ac_cv_func_gethostbyname_proto_compat=no"
8879 rm -f conftest.$ac_objext conftest.$ac_ext
8881 echo "$as_me:8881: result: $ac_cv_func_gethostbyname_proto_compat" >&5
8882 echo "${ECHO_T}$ac_cv_func_gethostbyname_proto_compat" >&6
8884 if test "$ac_cv_func_gethostbyname_proto_compat" = yes; then
8886 cat >>confdefs.h <<\EOF
8887 #define GETHOSTBYNAME_PROTO_COMPATIBLE 1
8892 echo "$as_me:8892: checking if gethostbyaddr is compatible with system prototype" >&5
8893 echo $ECHO_N "checking if gethostbyaddr is compatible with system prototype... $ECHO_C" >&6
8894 if test "${ac_cv_func_gethostbyaddr_proto_compat+set}" = set; then
8895 echo $ECHO_N "(cached) $ECHO_C" >&6
8897 cat >conftest.$ac_ext <<_ACEOF
8898 #line 8898 "configure"
8899 #include "confdefs.h"
8901 #ifdef HAVE_SYS_TYPES_H
8902 #include <sys/types.h>
8904 #ifdef HAVE_SYS_SOCKET_H
8905 #include <sys/socket.h>
8907 #ifdef HAVE_NETINET_IN_H
8908 #include <netinet/in.h>
8910 #ifdef HAVE_ARPA_INET_H
8911 #include <arpa/inet.h>
8920 struct hostent *gethostbyaddr(const void *, size_t, int);
8925 rm -f conftest.$ac_objext
8926 if { (eval echo $as_me:8926: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
8927 eval "ac_cv_func_gethostbyaddr_proto_compat=yes"
8929 echo "$as_me: failed program was:" >&5
8930 cat conftest.$ac_ext >&5
8931 eval "ac_cv_func_gethostbyaddr_proto_compat=no"
8933 rm -f conftest.$ac_objext conftest.$ac_ext
8935 echo "$as_me:8935: result: $ac_cv_func_gethostbyaddr_proto_compat" >&5
8936 echo "${ECHO_T}$ac_cv_func_gethostbyaddr_proto_compat" >&6
8938 if test "$ac_cv_func_gethostbyaddr_proto_compat" = yes; then
8940 cat >>confdefs.h <<\EOF
8941 #define GETHOSTBYADDR_PROTO_COMPATIBLE 1
8946 echo "$as_me:8946: checking if getservbyname is compatible with system prototype" >&5
8947 echo $ECHO_N "checking if getservbyname is compatible with system prototype... $ECHO_C" >&6
8948 if test "${ac_cv_func_getservbyname_proto_compat+set}" = set; then
8949 echo $ECHO_N "(cached) $ECHO_C" >&6
8951 cat >conftest.$ac_ext <<_ACEOF
8952 #line 8952 "configure"
8953 #include "confdefs.h"
8955 #ifdef HAVE_SYS_TYPES_H
8956 #include <sys/types.h>
8958 #ifdef HAVE_SYS_SOCKET_H
8959 #include <sys/socket.h>
8961 #ifdef HAVE_NETINET_IN_H
8962 #include <netinet/in.h>
8964 #ifdef HAVE_ARPA_INET_H
8965 #include <arpa/inet.h>
8974 struct servent *getservbyname(const char *, const char *);
8979 rm -f conftest.$ac_objext
8980 if { (eval echo $as_me:8980: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
8981 eval "ac_cv_func_getservbyname_proto_compat=yes"
8983 echo "$as_me: failed program was:" >&5
8984 cat conftest.$ac_ext >&5
8985 eval "ac_cv_func_getservbyname_proto_compat=no"
8987 rm -f conftest.$ac_objext conftest.$ac_ext
8989 echo "$as_me:8989: result: $ac_cv_func_getservbyname_proto_compat" >&5
8990 echo "${ECHO_T}$ac_cv_func_getservbyname_proto_compat" >&6
8992 if test "$ac_cv_func_getservbyname_proto_compat" = yes; then
8994 cat >>confdefs.h <<\EOF
8995 #define GETSERVBYNAME_PROTO_COMPATIBLE 1
9000 echo "$as_me:9000: checking if getsockname is compatible with system prototype" >&5
9001 echo $ECHO_N "checking if getsockname is compatible with system prototype... $ECHO_C" >&6
9002 if test "${ac_cv_func_getsockname_proto_compat+set}" = set; then
9003 echo $ECHO_N "(cached) $ECHO_C" >&6
9005 cat >conftest.$ac_ext <<_ACEOF
9006 #line 9006 "configure"
9007 #include "confdefs.h"
9009 #ifdef HAVE_SYS_TYPES_H
9010 #include <sys/types.h>
9012 #ifdef HAVE_SYS_SOCKET_H
9013 #include <sys/socket.h>
9019 int getsockname(int, struct sockaddr*, socklen_t*);
9024 rm -f conftest.$ac_objext
9025 if { (eval echo $as_me:9025: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
9026 eval "ac_cv_func_getsockname_proto_compat=yes"
9028 echo "$as_me: failed program was:" >&5
9029 cat conftest.$ac_ext >&5
9030 eval "ac_cv_func_getsockname_proto_compat=no"
9032 rm -f conftest.$ac_objext conftest.$ac_ext
9034 echo "$as_me:9034: result: $ac_cv_func_getsockname_proto_compat" >&5
9035 echo "${ECHO_T}$ac_cv_func_getsockname_proto_compat" >&6
9037 if test "$ac_cv_func_getsockname_proto_compat" = yes; then
9039 cat >>confdefs.h <<\EOF
9040 #define GETSOCKNAME_PROTO_COMPATIBLE 1
9045 echo "$as_me:9045: checking if openlog is compatible with system prototype" >&5
9046 echo $ECHO_N "checking if openlog is compatible with system prototype... $ECHO_C" >&6
9047 if test "${ac_cv_func_openlog_proto_compat+set}" = set; then
9048 echo $ECHO_N "(cached) $ECHO_C" >&6
9050 cat >conftest.$ac_ext <<_ACEOF
9051 #line 9051 "configure"
9052 #include "confdefs.h"
9054 #ifdef HAVE_SYSLOG_H
9061 void openlog(const char *, int, int);
9066 rm -f conftest.$ac_objext
9067 if { (eval echo $as_me:9067: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
9068 eval "ac_cv_func_openlog_proto_compat=yes"
9070 echo "$as_me: failed program was:" >&5
9071 cat conftest.$ac_ext >&5
9072 eval "ac_cv_func_openlog_proto_compat=no"
9074 rm -f conftest.$ac_objext conftest.$ac_ext
9076 echo "$as_me:9076: result: $ac_cv_func_openlog_proto_compat" >&5
9077 echo "${ECHO_T}$ac_cv_func_openlog_proto_compat" >&6
9079 if test "$ac_cv_func_openlog_proto_compat" = yes; then
9081 cat >>confdefs.h <<\EOF
9082 #define OPENLOG_PROTO_COMPATIBLE 1
9087 if test "$ac_cv_func_crypt+set" != set -o "$ac_cv_func_crypt" = yes; then
9088 echo "$as_me:9088: checking if crypt needs a prototype" >&5
9089 echo $ECHO_N "checking if crypt needs a prototype... $ECHO_C" >&6
9090 if test "${ac_cv_func_crypt_noproto+set}" = set; then
9091 echo $ECHO_N "(cached) $ECHO_C" >&6
9093 cat >conftest.$ac_ext <<_ACEOF
9094 #line 9094 "configure"
9095 #include "confdefs.h"
9100 #ifdef HAVE_UNISTD_H
9107 struct foo { int foo; } xx;
9108 extern int crypt (struct foo*);
9115 rm -f conftest.$ac_objext
9116 if { (eval echo $as_me:9116: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
9117 eval "ac_cv_func_crypt_noproto=yes"
9119 echo "$as_me: failed program was:" >&5
9120 cat conftest.$ac_ext >&5
9121 eval "ac_cv_func_crypt_noproto=no"
9123 rm -f conftest.$ac_objext conftest.$ac_ext
9125 echo "$as_me:9125: result: $ac_cv_func_crypt_noproto" >&5
9126 echo "${ECHO_T}$ac_cv_func_crypt_noproto" >&6
9128 if test "$ac_cv_func_crypt_noproto" = yes; then
9130 cat >>confdefs.h <<\EOF
9131 #define NEED_CRYPT_PROTO 1
9138 if test "$ac_cv_func_strtok_r+set" != set -o "$ac_cv_func_strtok_r" = yes; then
9139 echo "$as_me:9139: checking if strtok_r needs a prototype" >&5
9140 echo $ECHO_N "checking if strtok_r needs a prototype... $ECHO_C" >&6
9141 if test "${ac_cv_func_strtok_r_noproto+set}" = set; then
9142 echo $ECHO_N "(cached) $ECHO_C" >&6
9144 cat >conftest.$ac_ext <<_ACEOF
9145 #line 9145 "configure"
9146 #include "confdefs.h"
9153 struct foo { int foo; } xx;
9154 extern int strtok_r (struct foo*);
9161 rm -f conftest.$ac_objext
9162 if { (eval echo $as_me:9162: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
9163 eval "ac_cv_func_strtok_r_noproto=yes"
9165 echo "$as_me: failed program was:" >&5
9166 cat conftest.$ac_ext >&5
9167 eval "ac_cv_func_strtok_r_noproto=no"
9169 rm -f conftest.$ac_objext conftest.$ac_ext
9171 echo "$as_me:9171: result: $ac_cv_func_strtok_r_noproto" >&5
9172 echo "${ECHO_T}$ac_cv_func_strtok_r_noproto" >&6
9174 if test "$ac_cv_func_strtok_r_noproto" = yes; then
9176 cat >>confdefs.h <<\EOF
9177 #define NEED_STRTOK_R_PROTO 1
9184 if test "$ac_cv_func_strsep+set" != set -o "$ac_cv_func_strsep" = yes; then
9185 echo "$as_me:9185: checking if strsep needs a prototype" >&5
9186 echo $ECHO_N "checking if strsep needs a prototype... $ECHO_C" >&6
9187 if test "${ac_cv_func_strsep_noproto+set}" = set; then
9188 echo $ECHO_N "(cached) $ECHO_C" >&6
9190 cat >conftest.$ac_ext <<_ACEOF
9191 #line 9191 "configure"
9192 #include "confdefs.h"
9199 struct foo { int foo; } xx;
9200 extern int strsep (struct foo*);
9207 rm -f conftest.$ac_objext
9208 if { (eval echo $as_me:9208: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
9209 eval "ac_cv_func_strsep_noproto=yes"
9211 echo "$as_me: failed program was:" >&5
9212 cat conftest.$ac_ext >&5
9213 eval "ac_cv_func_strsep_noproto=no"
9215 rm -f conftest.$ac_objext conftest.$ac_ext
9217 echo "$as_me:9217: result: $ac_cv_func_strsep_noproto" >&5
9218 echo "${ECHO_T}$ac_cv_func_strsep_noproto" >&6
9220 if test "$ac_cv_func_strsep_noproto" = yes; then
9222 cat >>confdefs.h <<\EOF
9223 #define NEED_STRSEP_PROTO 1
9230 echo "$as_me:9230: checking for h_errno" >&5
9231 echo $ECHO_N "checking for h_errno... $ECHO_C" >&6
9232 if test "${ac_cv_var_h_errno+set}" = set; then
9233 echo $ECHO_N "(cached) $ECHO_C" >&6
9236 cat >conftest.$ac_ext <<_ACEOF
9237 #line 9237 "configure"
9238 #include "confdefs.h"
9240 int foo() { return h_errno; }
9249 rm -f conftest.$ac_objext conftest$ac_exeext
9250 if { (eval echo $as_me:9250: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
9251 ac_cv_var_h_errno=yes
9253 echo "$as_me: failed program was:" >&5
9254 cat conftest.$ac_ext >&5
9255 ac_cv_var_h_errno=no
9257 rm -f conftest$ac_exeext conftest.$ac_ext
9261 ac_foo=`eval echo \\$ac_cv_var_h_errno`
9262 echo "$as_me:9262: result: $ac_foo" >&5
9263 echo "${ECHO_T}$ac_foo" >&6
9264 if test "$ac_foo" = yes; then
9266 cat >>confdefs.h <<EOF
9267 #define HAVE_H_ERRNO 1
9270 echo "$as_me:9270: checking if h_errno is properly declared" >&5
9271 echo $ECHO_N "checking if h_errno is properly declared... $ECHO_C" >&6
9272 if test "${ac_cv_var_h_errno_declaration+set}" = set; then
9273 echo $ECHO_N "(cached) $ECHO_C" >&6
9276 cat >conftest.$ac_ext <<_ACEOF
9277 #line 9277 "configure"
9278 #include "confdefs.h"
9279 #ifdef HAVE_SYS_TYPES_H
9280 #include <sys/types.h>
9285 extern struct { int foo; } h_errno;
9294 rm -f conftest.$ac_objext
9295 if { (eval echo $as_me:9295: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
9296 eval "ac_cv_var_h_errno_declaration=no"
9298 echo "$as_me: failed program was:" >&5
9299 cat conftest.$ac_ext >&5
9300 eval "ac_cv_var_h_errno_declaration=yes"
9302 rm -f conftest.$ac_objext conftest.$ac_ext
9306 echo "$as_me:9306: result: $ac_cv_var_h_errno_declaration" >&5
9307 echo "${ECHO_T}$ac_cv_var_h_errno_declaration" >&6
9308 if eval "test \"\$ac_cv_var_h_errno_declaration\" = yes"; then
9310 cat >>confdefs.h <<\EOF
9311 #define HAVE_H_ERRNO_DECLARATION 1
9318 echo "$as_me:9318: checking for h_errlist" >&5
9319 echo $ECHO_N "checking for h_errlist... $ECHO_C" >&6
9320 if test "${ac_cv_var_h_errlist+set}" = set; then
9321 echo $ECHO_N "(cached) $ECHO_C" >&6
9324 cat >conftest.$ac_ext <<_ACEOF
9325 #line 9325 "configure"
9326 #include "confdefs.h"
9327 extern int h_errlist;
9328 int foo() { return h_errlist; }
9337 rm -f conftest.$ac_objext conftest$ac_exeext
9338 if { (eval echo $as_me:9338: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
9339 ac_cv_var_h_errlist=yes
9341 echo "$as_me: failed program was:" >&5
9342 cat conftest.$ac_ext >&5
9343 ac_cv_var_h_errlist=no
9345 rm -f conftest$ac_exeext conftest.$ac_ext
9349 ac_foo=`eval echo \\$ac_cv_var_h_errlist`
9350 echo "$as_me:9350: result: $ac_foo" >&5
9351 echo "${ECHO_T}$ac_foo" >&6
9352 if test "$ac_foo" = yes; then
9354 cat >>confdefs.h <<EOF
9355 #define HAVE_H_ERRLIST 1
9358 echo "$as_me:9358: checking if h_errlist is properly declared" >&5
9359 echo $ECHO_N "checking if h_errlist is properly declared... $ECHO_C" >&6
9360 if test "${ac_cv_var_h_errlist_declaration+set}" = set; then
9361 echo $ECHO_N "(cached) $ECHO_C" >&6
9364 cat >conftest.$ac_ext <<_ACEOF
9365 #line 9365 "configure"
9366 #include "confdefs.h"
9370 extern struct { int foo; } h_errlist;
9379 rm -f conftest.$ac_objext
9380 if { (eval echo $as_me:9380: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
9381 eval "ac_cv_var_h_errlist_declaration=no"
9383 echo "$as_me: failed program was:" >&5
9384 cat conftest.$ac_ext >&5
9385 eval "ac_cv_var_h_errlist_declaration=yes"
9387 rm -f conftest.$ac_objext conftest.$ac_ext
9391 echo "$as_me:9391: result: $ac_cv_var_h_errlist_declaration" >&5
9392 echo "${ECHO_T}$ac_cv_var_h_errlist_declaration" >&6
9393 if eval "test \"\$ac_cv_var_h_errlist_declaration\" = yes"; then
9395 cat >>confdefs.h <<\EOF
9396 #define HAVE_H_ERRLIST_DECLARATION 1
9403 echo "$as_me:9403: checking for h_nerr" >&5
9404 echo $ECHO_N "checking for h_nerr... $ECHO_C" >&6
9405 if test "${ac_cv_var_h_nerr+set}" = set; then
9406 echo $ECHO_N "(cached) $ECHO_C" >&6
9409 cat >conftest.$ac_ext <<_ACEOF
9410 #line 9410 "configure"
9411 #include "confdefs.h"
9413 int foo() { return h_nerr; }
9422 rm -f conftest.$ac_objext conftest$ac_exeext
9423 if { (eval echo $as_me:9423: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
9424 ac_cv_var_h_nerr=yes
9426 echo "$as_me: failed program was:" >&5
9427 cat conftest.$ac_ext >&5
9430 rm -f conftest$ac_exeext conftest.$ac_ext
9434 ac_foo=`eval echo \\$ac_cv_var_h_nerr`
9435 echo "$as_me:9435: result: $ac_foo" >&5
9436 echo "${ECHO_T}$ac_foo" >&6
9437 if test "$ac_foo" = yes; then
9439 cat >>confdefs.h <<EOF
9440 #define HAVE_H_NERR 1
9443 echo "$as_me:9443: checking if h_nerr is properly declared" >&5
9444 echo $ECHO_N "checking if h_nerr is properly declared... $ECHO_C" >&6
9445 if test "${ac_cv_var_h_nerr_declaration+set}" = set; then
9446 echo $ECHO_N "(cached) $ECHO_C" >&6
9449 cat >conftest.$ac_ext <<_ACEOF
9450 #line 9450 "configure"
9451 #include "confdefs.h"
9455 extern struct { int foo; } h_nerr;
9464 rm -f conftest.$ac_objext
9465 if { (eval echo $as_me:9465: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
9466 eval "ac_cv_var_h_nerr_declaration=no"
9468 echo "$as_me: failed program was:" >&5
9469 cat conftest.$ac_ext >&5
9470 eval "ac_cv_var_h_nerr_declaration=yes"
9472 rm -f conftest.$ac_objext conftest.$ac_ext
9476 echo "$as_me:9476: result: $ac_cv_var_h_nerr_declaration" >&5
9477 echo "${ECHO_T}$ac_cv_var_h_nerr_declaration" >&6
9478 if eval "test \"\$ac_cv_var_h_nerr_declaration\" = yes"; then
9480 cat >>confdefs.h <<\EOF
9481 #define HAVE_H_NERR_DECLARATION 1
9488 echo "$as_me:9488: checking for __progname" >&5
9489 echo $ECHO_N "checking for __progname... $ECHO_C" >&6
9490 if test "${ac_cv_var___progname+set}" = set; then
9491 echo $ECHO_N "(cached) $ECHO_C" >&6
9494 cat >conftest.$ac_ext <<_ACEOF
9495 #line 9495 "configure"
9496 #include "confdefs.h"
9497 extern int __progname;
9498 int foo() { return __progname; }
9507 rm -f conftest.$ac_objext conftest$ac_exeext
9508 if { (eval echo $as_me:9508: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
9509 ac_cv_var___progname=yes
9511 echo "$as_me: failed program was:" >&5
9512 cat conftest.$ac_ext >&5
9513 ac_cv_var___progname=no
9515 rm -f conftest$ac_exeext conftest.$ac_ext
9519 ac_foo=`eval echo \\$ac_cv_var___progname`
9520 echo "$as_me:9520: result: $ac_foo" >&5
9521 echo "${ECHO_T}$ac_foo" >&6
9522 if test "$ac_foo" = yes; then
9524 cat >>confdefs.h <<EOF
9525 #define HAVE___PROGNAME 1
9528 echo "$as_me:9528: checking if __progname is properly declared" >&5
9529 echo $ECHO_N "checking if __progname is properly declared... $ECHO_C" >&6
9530 if test "${ac_cv_var___progname_declaration+set}" = set; then
9531 echo $ECHO_N "(cached) $ECHO_C" >&6
9534 cat >conftest.$ac_ext <<_ACEOF
9535 #line 9535 "configure"
9536 #include "confdefs.h"
9540 extern struct { int foo; } __progname;
9549 rm -f conftest.$ac_objext
9550 if { (eval echo $as_me:9550: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
9551 eval "ac_cv_var___progname_declaration=no"
9553 echo "$as_me: failed program was:" >&5
9554 cat conftest.$ac_ext >&5
9555 eval "ac_cv_var___progname_declaration=yes"
9557 rm -f conftest.$ac_objext conftest.$ac_ext
9561 echo "$as_me:9561: result: $ac_cv_var___progname_declaration" >&5
9562 echo "${ECHO_T}$ac_cv_var___progname_declaration" >&6
9563 if eval "test \"\$ac_cv_var___progname_declaration\" = yes"; then
9565 cat >>confdefs.h <<\EOF
9566 #define HAVE___PROGNAME_DECLARATION 1
9573 echo "$as_me:9573: checking if optarg is properly declared" >&5
9574 echo $ECHO_N "checking if optarg is properly declared... $ECHO_C" >&6
9575 if test "${ac_cv_var_optarg_declaration+set}" = set; then
9576 echo $ECHO_N "(cached) $ECHO_C" >&6
9579 cat >conftest.$ac_ext <<_ACEOF
9580 #line 9580 "configure"
9581 #include "confdefs.h"
9583 #ifdef HAVE_UNISTD_H
9586 extern struct { int foo; } optarg;
9595 rm -f conftest.$ac_objext
9596 if { (eval echo $as_me:9596: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
9597 eval "ac_cv_var_optarg_declaration=no"
9599 echo "$as_me: failed program was:" >&5
9600 cat conftest.$ac_ext >&5
9601 eval "ac_cv_var_optarg_declaration=yes"
9603 rm -f conftest.$ac_objext conftest.$ac_ext
9607 echo "$as_me:9607: result: $ac_cv_var_optarg_declaration" >&5
9608 echo "${ECHO_T}$ac_cv_var_optarg_declaration" >&6
9609 if eval "test \"\$ac_cv_var_optarg_declaration\" = yes"; then
9611 cat >>confdefs.h <<\EOF
9612 #define HAVE_OPTARG_DECLARATION 1
9617 echo "$as_me:9617: checking if optind is properly declared" >&5
9618 echo $ECHO_N "checking if optind is properly declared... $ECHO_C" >&6
9619 if test "${ac_cv_var_optind_declaration+set}" = set; then
9620 echo $ECHO_N "(cached) $ECHO_C" >&6
9623 cat >conftest.$ac_ext <<_ACEOF
9624 #line 9624 "configure"
9625 #include "confdefs.h"
9627 #ifdef HAVE_UNISTD_H
9630 extern struct { int foo; } optind;
9639 rm -f conftest.$ac_objext
9640 if { (eval echo $as_me:9640: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
9641 eval "ac_cv_var_optind_declaration=no"
9643 echo "$as_me: failed program was:" >&5
9644 cat conftest.$ac_ext >&5
9645 eval "ac_cv_var_optind_declaration=yes"
9647 rm -f conftest.$ac_objext conftest.$ac_ext
9651 echo "$as_me:9651: result: $ac_cv_var_optind_declaration" >&5
9652 echo "${ECHO_T}$ac_cv_var_optind_declaration" >&6
9653 if eval "test \"\$ac_cv_var_optind_declaration\" = yes"; then
9655 cat >>confdefs.h <<\EOF
9656 #define HAVE_OPTIND_DECLARATION 1
9661 echo "$as_me:9661: checking if opterr is properly declared" >&5
9662 echo $ECHO_N "checking if opterr is properly declared... $ECHO_C" >&6
9663 if test "${ac_cv_var_opterr_declaration+set}" = set; then
9664 echo $ECHO_N "(cached) $ECHO_C" >&6
9667 cat >conftest.$ac_ext <<_ACEOF
9668 #line 9668 "configure"
9669 #include "confdefs.h"
9671 #ifdef HAVE_UNISTD_H
9674 extern struct { int foo; } opterr;
9683 rm -f conftest.$ac_objext
9684 if { (eval echo $as_me:9684: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
9685 eval "ac_cv_var_opterr_declaration=no"
9687 echo "$as_me: failed program was:" >&5
9688 cat conftest.$ac_ext >&5
9689 eval "ac_cv_var_opterr_declaration=yes"
9691 rm -f conftest.$ac_objext conftest.$ac_ext
9695 echo "$as_me:9695: result: $ac_cv_var_opterr_declaration" >&5
9696 echo "${ECHO_T}$ac_cv_var_opterr_declaration" >&6
9697 if eval "test \"\$ac_cv_var_opterr_declaration\" = yes"; then
9699 cat >>confdefs.h <<\EOF
9700 #define HAVE_OPTERR_DECLARATION 1
9705 echo "$as_me:9705: checking if optopt is properly declared" >&5
9706 echo $ECHO_N "checking if optopt is properly declared... $ECHO_C" >&6
9707 if test "${ac_cv_var_optopt_declaration+set}" = set; then
9708 echo $ECHO_N "(cached) $ECHO_C" >&6
9711 cat >conftest.$ac_ext <<_ACEOF
9712 #line 9712 "configure"
9713 #include "confdefs.h"
9715 #ifdef HAVE_UNISTD_H
9718 extern struct { int foo; } optopt;
9727 rm -f conftest.$ac_objext
9728 if { (eval echo $as_me:9728: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
9729 eval "ac_cv_var_optopt_declaration=no"
9731 echo "$as_me: failed program was:" >&5
9732 cat conftest.$ac_ext >&5
9733 eval "ac_cv_var_optopt_declaration=yes"
9735 rm -f conftest.$ac_objext conftest.$ac_ext
9739 echo "$as_me:9739: result: $ac_cv_var_optopt_declaration" >&5
9740 echo "${ECHO_T}$ac_cv_var_optopt_declaration" >&6
9741 if eval "test \"\$ac_cv_var_optopt_declaration\" = yes"; then
9743 cat >>confdefs.h <<\EOF
9744 #define HAVE_OPTOPT_DECLARATION 1
9749 echo "$as_me:9749: checking if environ is properly declared" >&5
9750 echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6
9751 if test "${ac_cv_var_environ_declaration+set}" = set; then
9752 echo $ECHO_N "(cached) $ECHO_C" >&6
9755 cat >conftest.$ac_ext <<_ACEOF
9756 #line 9756 "configure"
9757 #include "confdefs.h"
9759 extern struct { int foo; } environ;
9768 rm -f conftest.$ac_objext
9769 if { (eval echo $as_me:9769: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
9770 eval "ac_cv_var_environ_declaration=no"
9772 echo "$as_me: failed program was:" >&5
9773 cat conftest.$ac_ext >&5
9774 eval "ac_cv_var_environ_declaration=yes"
9776 rm -f conftest.$ac_objext conftest.$ac_ext
9780 echo "$as_me:9780: result: $ac_cv_var_environ_declaration" >&5
9781 echo "${ECHO_T}$ac_cv_var_environ_declaration" >&6
9782 if eval "test \"\$ac_cv_var_environ_declaration\" = yes"; then
9784 cat >>confdefs.h <<\EOF
9785 #define HAVE_ENVIRON_DECLARATION 1
9790 echo "$as_me:9790: checking for tm_gmtoff in struct tm" >&5
9791 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
9792 if test "${ac_cv_type_struct_tm_tm_gmtoff+set}" = set; then
9793 echo $ECHO_N "(cached) $ECHO_C" >&6
9796 cat >conftest.$ac_ext <<_ACEOF
9797 #line 9797 "configure"
9798 #include "confdefs.h"
9803 struct tm x; x.tm_gmtoff;
9808 rm -f conftest.$ac_objext
9809 if { (eval echo $as_me:9809: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
9810 ac_cv_type_struct_tm_tm_gmtoff=yes
9812 echo "$as_me: failed program was:" >&5
9813 cat conftest.$ac_ext >&5
9814 ac_cv_type_struct_tm_tm_gmtoff=no
9816 rm -f conftest.$ac_objext conftest.$ac_ext
9818 echo "$as_me:9818: result: $ac_cv_type_struct_tm_tm_gmtoff" >&5
9819 echo "${ECHO_T}$ac_cv_type_struct_tm_tm_gmtoff" >&6
9820 if test "$ac_cv_type_struct_tm_tm_gmtoff" = yes; then
9822 cat >>confdefs.h <<\EOF
9823 #define HAVE_STRUCT_TM_TM_GMTOFF 1
9828 echo "$as_me:9828: checking for tm_zone in struct tm" >&5
9829 echo $ECHO_N "checking for tm_zone in struct tm... $ECHO_C" >&6
9830 if test "${ac_cv_type_struct_tm_tm_zone+set}" = set; then
9831 echo $ECHO_N "(cached) $ECHO_C" >&6
9834 cat >conftest.$ac_ext <<_ACEOF
9835 #line 9835 "configure"
9836 #include "confdefs.h"
9841 struct tm x; x.tm_zone;
9846 rm -f conftest.$ac_objext
9847 if { (eval echo $as_me:9847: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
9848 ac_cv_type_struct_tm_tm_zone=yes
9850 echo "$as_me: failed program was:" >&5
9851 cat conftest.$ac_ext >&5
9852 ac_cv_type_struct_tm_tm_zone=no
9854 rm -f conftest.$ac_objext conftest.$ac_ext
9856 echo "$as_me:9856: result: $ac_cv_type_struct_tm_tm_zone" >&5
9857 echo "${ECHO_T}$ac_cv_type_struct_tm_tm_zone" >&6
9858 if test "$ac_cv_type_struct_tm_tm_zone" = yes; then
9860 cat >>confdefs.h <<\EOF
9861 #define HAVE_STRUCT_TM_TM_ZONE 1
9866 echo "$as_me:9866: checking for timezone" >&5
9867 echo $ECHO_N "checking for timezone... $ECHO_C" >&6
9868 if test "${ac_cv_var_timezone+set}" = set; then
9869 echo $ECHO_N "(cached) $ECHO_C" >&6
9872 cat >conftest.$ac_ext <<_ACEOF
9873 #line 9873 "configure"
9874 #include "confdefs.h"
9875 extern int timezone;
9876 int foo() { return timezone; }
9885 rm -f conftest.$ac_objext conftest$ac_exeext
9886 if { (eval echo $as_me:9886: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
9887 ac_cv_var_timezone=yes
9889 echo "$as_me: failed program was:" >&5
9890 cat conftest.$ac_ext >&5
9891 ac_cv_var_timezone=no
9893 rm -f conftest$ac_exeext conftest.$ac_ext
9897 ac_foo=`eval echo \\$ac_cv_var_timezone`
9898 echo "$as_me:9898: result: $ac_foo" >&5
9899 echo "${ECHO_T}$ac_foo" >&6
9900 if test "$ac_foo" = yes; then
9902 cat >>confdefs.h <<EOF
9903 #define HAVE_TIMEZONE 1
9906 echo "$as_me:9906: checking if timezone is properly declared" >&5
9907 echo $ECHO_N "checking if timezone is properly declared... $ECHO_C" >&6
9908 if test "${ac_cv_var_timezone_declaration+set}" = set; then
9909 echo $ECHO_N "(cached) $ECHO_C" >&6
9912 cat >conftest.$ac_ext <<_ACEOF
9913 #line 9913 "configure"
9914 #include "confdefs.h"
9916 extern struct { int foo; } timezone;
9925 rm -f conftest.$ac_objext
9926 if { (eval echo $as_me:9926: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
9927 eval "ac_cv_var_timezone_declaration=no"
9929 echo "$as_me: failed program was:" >&5
9930 cat conftest.$ac_ext >&5
9931 eval "ac_cv_var_timezone_declaration=yes"
9933 rm -f conftest.$ac_objext conftest.$ac_ext
9937 echo "$as_me:9937: result: $ac_cv_var_timezone_declaration" >&5
9938 echo "${ECHO_T}$ac_cv_var_timezone_declaration" >&6
9939 if eval "test \"\$ac_cv_var_timezone_declaration\" = yes"; then
9941 cat >>confdefs.h <<\EOF
9942 #define HAVE_TIMEZONE_DECLARATION 1
9949 cv=`echo "sa_family_t" | sed 'y%./+- %__p__%'`
9950 echo "$as_me:9950: checking for sa_family_t" >&5
9951 echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
9952 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
9953 echo $ECHO_N "(cached) $ECHO_C" >&6
9955 cat >conftest.$ac_ext <<_ACEOF
9956 #line 9956 "configure"
9957 #include "confdefs.h"
9958 #include <sys/types.h>
9963 #include <sys/socket.h>
9972 rm -f conftest.$ac_objext
9973 if { (eval echo $as_me:9973: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
9974 eval "ac_cv_type_$cv=yes"
9976 echo "$as_me: failed program was:" >&5
9977 cat conftest.$ac_ext >&5
9978 eval "ac_cv_type_$cv=no"
9980 rm -f conftest.$ac_objext conftest.$ac_ext
9982 ac_foo=`eval echo \\$ac_cv_type_$cv`
9983 echo "$as_me:9983: result: $ac_foo" >&5
9984 echo "${ECHO_T}$ac_foo" >&6
9985 if test "$ac_foo" = yes; then
9986 ac_tr_hdr=HAVE_`echo sa_family_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
9988 echo "$as_me:9988: checking for sa_family_t" >&5
9989 echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
9990 if test "${ac_cv_type_sa_family_t+set}" = set; then
9991 echo $ECHO_N "(cached) $ECHO_C" >&6
9993 cat >conftest.$ac_ext <<_ACEOF
9994 #line 9994 "configure"
9995 #include "confdefs.h"
9996 $ac_includes_default
10000 if ((sa_family_t *) 0)
10002 if (sizeof (sa_family_t))
10008 rm -f conftest.$ac_objext
10009 if { (eval echo $as_me:10009: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
10010 ac_cv_type_sa_family_t=yes
10012 echo "$as_me: failed program was:" >&5
10013 cat conftest.$ac_ext >&5
10014 ac_cv_type_sa_family_t=no
10016 rm -f conftest.$ac_objext conftest.$ac_ext
10018 echo "$as_me:10018: result: $ac_cv_type_sa_family_t" >&5
10019 echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6
10020 if test $ac_cv_type_sa_family_t = yes; then
10022 cat >>confdefs.h <<EOF
10023 #define HAVE_SA_FAMILY_T 1
10030 cat >>confdefs.h <<EOF
10031 #define $ac_tr_hdr 1
10036 cv=`echo "socklen_t" | sed 'y%./+- %__p__%'`
10037 echo "$as_me:10037: checking for socklen_t" >&5
10038 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10039 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
10040 echo $ECHO_N "(cached) $ECHO_C" >&6
10042 cat >conftest.$ac_ext <<_ACEOF
10043 #line 10043 "configure"
10044 #include "confdefs.h"
10045 #include <sys/types.h>
10047 #include <stdlib.h>
10048 #include <stddef.h>
10050 #include <sys/socket.h>
10059 rm -f conftest.$ac_objext
10060 if { (eval echo $as_me:10060: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
10061 eval "ac_cv_type_$cv=yes"
10063 echo "$as_me: failed program was:" >&5
10064 cat conftest.$ac_ext >&5
10065 eval "ac_cv_type_$cv=no"
10067 rm -f conftest.$ac_objext conftest.$ac_ext
10069 ac_foo=`eval echo \\$ac_cv_type_$cv`
10070 echo "$as_me:10070: result: $ac_foo" >&5
10071 echo "${ECHO_T}$ac_foo" >&6
10072 if test "$ac_foo" = yes; then
10073 ac_tr_hdr=HAVE_`echo socklen_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
10075 echo "$as_me:10075: checking for socklen_t" >&5
10076 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10077 if test "${ac_cv_type_socklen_t+set}" = set; then
10078 echo $ECHO_N "(cached) $ECHO_C" >&6
10080 cat >conftest.$ac_ext <<_ACEOF
10081 #line 10081 "configure"
10082 #include "confdefs.h"
10083 $ac_includes_default
10087 if ((socklen_t *) 0)
10089 if (sizeof (socklen_t))
10095 rm -f conftest.$ac_objext
10096 if { (eval echo $as_me:10096: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
10097 ac_cv_type_socklen_t=yes
10099 echo "$as_me: failed program was:" >&5
10100 cat conftest.$ac_ext >&5
10101 ac_cv_type_socklen_t=no
10103 rm -f conftest.$ac_objext conftest.$ac_ext
10105 echo "$as_me:10105: result: $ac_cv_type_socklen_t" >&5
10106 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
10107 if test $ac_cv_type_socklen_t = yes; then
10109 cat >>confdefs.h <<EOF
10110 #define HAVE_SOCKLEN_T 1
10117 cat >>confdefs.h <<EOF
10118 #define $ac_tr_hdr 1
10123 cv=`echo "struct sockaddr" | sed 'y%./+- %__p__%'`
10124 echo "$as_me:10124: checking for struct sockaddr" >&5
10125 echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6
10126 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
10127 echo $ECHO_N "(cached) $ECHO_C" >&6
10129 cat >conftest.$ac_ext <<_ACEOF
10130 #line 10130 "configure"
10131 #include "confdefs.h"
10132 #include <sys/types.h>
10134 #include <stdlib.h>
10135 #include <stddef.h>
10137 #include <sys/socket.h>
10141 struct sockaddr foo;
10146 rm -f conftest.$ac_objext
10147 if { (eval echo $as_me:10147: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
10148 eval "ac_cv_type_$cv=yes"
10150 echo "$as_me: failed program was:" >&5
10151 cat conftest.$ac_ext >&5
10152 eval "ac_cv_type_$cv=no"
10154 rm -f conftest.$ac_objext conftest.$ac_ext
10156 ac_foo=`eval echo \\$ac_cv_type_$cv`
10157 echo "$as_me:10157: result: $ac_foo" >&5
10158 echo "${ECHO_T}$ac_foo" >&6
10159 if test "$ac_foo" = yes; then
10160 ac_tr_hdr=HAVE_`echo struct sockaddr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
10162 echo "$as_me:10162: checking for struct sockaddr" >&5
10163 echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6
10164 if test "${ac_cv_type_struct_sockaddr+set}" = set; then
10165 echo $ECHO_N "(cached) $ECHO_C" >&6
10167 cat >conftest.$ac_ext <<_ACEOF
10168 #line 10168 "configure"
10169 #include "confdefs.h"
10170 $ac_includes_default
10174 if ((struct sockaddr *) 0)
10176 if (sizeof (struct sockaddr))
10182 rm -f conftest.$ac_objext
10183 if { (eval echo $as_me:10183: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
10184 ac_cv_type_struct_sockaddr=yes
10186 echo "$as_me: failed program was:" >&5
10187 cat conftest.$ac_ext >&5
10188 ac_cv_type_struct_sockaddr=no
10190 rm -f conftest.$ac_objext conftest.$ac_ext
10192 echo "$as_me:10192: result: $ac_cv_type_struct_sockaddr" >&5
10193 echo "${ECHO_T}$ac_cv_type_struct_sockaddr" >&6
10194 if test $ac_cv_type_struct_sockaddr = yes; then
10196 cat >>confdefs.h <<EOF
10197 #define HAVE_STRUCT_SOCKADDR 1
10204 cat >>confdefs.h <<EOF
10205 #define $ac_tr_hdr 1
10210 cv=`echo "struct sockaddr_storage" | sed 'y%./+- %__p__%'`
10211 echo "$as_me:10211: checking for struct sockaddr_storage" >&5
10212 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
10213 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
10214 echo $ECHO_N "(cached) $ECHO_C" >&6
10216 cat >conftest.$ac_ext <<_ACEOF
10217 #line 10217 "configure"
10218 #include "confdefs.h"
10219 #include <sys/types.h>
10221 #include <stdlib.h>
10222 #include <stddef.h>
10224 #include <sys/socket.h>
10228 struct sockaddr_storage foo;
10233 rm -f conftest.$ac_objext
10234 if { (eval echo $as_me:10234: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
10235 eval "ac_cv_type_$cv=yes"
10237 echo "$as_me: failed program was:" >&5
10238 cat conftest.$ac_ext >&5
10239 eval "ac_cv_type_$cv=no"
10241 rm -f conftest.$ac_objext conftest.$ac_ext
10243 ac_foo=`eval echo \\$ac_cv_type_$cv`
10244 echo "$as_me:10244: result: $ac_foo" >&5
10245 echo "${ECHO_T}$ac_foo" >&6
10246 if test "$ac_foo" = yes; then
10247 ac_tr_hdr=HAVE_`echo struct sockaddr_storage | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
10249 echo "$as_me:10249: checking for struct sockaddr_storage" >&5
10250 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
10251 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
10252 echo $ECHO_N "(cached) $ECHO_C" >&6
10254 cat >conftest.$ac_ext <<_ACEOF
10255 #line 10255 "configure"
10256 #include "confdefs.h"
10257 $ac_includes_default
10261 if ((struct sockaddr_storage *) 0)
10263 if (sizeof (struct sockaddr_storage))
10269 rm -f conftest.$ac_objext
10270 if { (eval echo $as_me:10270: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
10271 ac_cv_type_struct_sockaddr_storage=yes
10273 echo "$as_me: failed program was:" >&5
10274 cat conftest.$ac_ext >&5
10275 ac_cv_type_struct_sockaddr_storage=no
10277 rm -f conftest.$ac_objext conftest.$ac_ext
10279 echo "$as_me:10279: result: $ac_cv_type_struct_sockaddr_storage" >&5
10280 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
10281 if test $ac_cv_type_struct_sockaddr_storage = yes; then
10283 cat >>confdefs.h <<EOF
10284 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
10291 cat >>confdefs.h <<EOF
10292 #define $ac_tr_hdr 1
10297 cv=`echo "struct addrinfo" | sed 'y%./+- %__p__%'`
10298 echo "$as_me:10298: checking for struct addrinfo" >&5
10299 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
10300 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
10301 echo $ECHO_N "(cached) $ECHO_C" >&6
10303 cat >conftest.$ac_ext <<_ACEOF
10304 #line 10304 "configure"
10305 #include "confdefs.h"
10306 #include <sys/types.h>
10308 #include <stdlib.h>
10309 #include <stddef.h>
10315 struct addrinfo foo;
10320 rm -f conftest.$ac_objext
10321 if { (eval echo $as_me:10321: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
10322 eval "ac_cv_type_$cv=yes"
10324 echo "$as_me: failed program was:" >&5
10325 cat conftest.$ac_ext >&5
10326 eval "ac_cv_type_$cv=no"
10328 rm -f conftest.$ac_objext conftest.$ac_ext
10330 ac_foo=`eval echo \\$ac_cv_type_$cv`
10331 echo "$as_me:10331: result: $ac_foo" >&5
10332 echo "${ECHO_T}$ac_foo" >&6
10333 if test "$ac_foo" = yes; then
10334 ac_tr_hdr=HAVE_`echo struct addrinfo | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
10336 echo "$as_me:10336: checking for struct addrinfo" >&5
10337 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
10338 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
10339 echo $ECHO_N "(cached) $ECHO_C" >&6
10341 cat >conftest.$ac_ext <<_ACEOF
10342 #line 10342 "configure"
10343 #include "confdefs.h"
10344 $ac_includes_default
10348 if ((struct addrinfo *) 0)
10350 if (sizeof (struct addrinfo))
10356 rm -f conftest.$ac_objext
10357 if { (eval echo $as_me:10357: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
10358 ac_cv_type_struct_addrinfo=yes
10360 echo "$as_me: failed program was:" >&5
10361 cat conftest.$ac_ext >&5
10362 ac_cv_type_struct_addrinfo=no
10364 rm -f conftest.$ac_objext conftest.$ac_ext
10366 echo "$as_me:10366: result: $ac_cv_type_struct_addrinfo" >&5
10367 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
10368 if test $ac_cv_type_struct_addrinfo = yes; then
10370 cat >>confdefs.h <<EOF
10371 #define HAVE_STRUCT_ADDRINFO 1
10378 cat >>confdefs.h <<EOF
10379 #define $ac_tr_hdr 1
10384 cv=`echo "struct ifaddrs" | sed 'y%./+- %__p__%'`
10385 echo "$as_me:10385: checking for struct ifaddrs" >&5
10386 echo $ECHO_N "checking for struct ifaddrs... $ECHO_C" >&6
10387 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
10388 echo $ECHO_N "(cached) $ECHO_C" >&6
10390 cat >conftest.$ac_ext <<_ACEOF
10391 #line 10391 "configure"
10392 #include "confdefs.h"
10393 #include <sys/types.h>
10395 #include <stdlib.h>
10396 #include <stddef.h>
10398 #include <ifaddrs.h>
10402 struct ifaddrs foo;
10407 rm -f conftest.$ac_objext
10408 if { (eval echo $as_me:10408: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
10409 eval "ac_cv_type_$cv=yes"
10411 echo "$as_me: failed program was:" >&5
10412 cat conftest.$ac_ext >&5
10413 eval "ac_cv_type_$cv=no"
10415 rm -f conftest.$ac_objext conftest.$ac_ext
10417 ac_foo=`eval echo \\$ac_cv_type_$cv`
10418 echo "$as_me:10418: result: $ac_foo" >&5
10419 echo "${ECHO_T}$ac_foo" >&6
10420 if test "$ac_foo" = yes; then
10421 ac_tr_hdr=HAVE_`echo struct ifaddrs | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
10423 echo "$as_me:10423: checking for struct ifaddrs" >&5
10424 echo $ECHO_N "checking for struct ifaddrs... $ECHO_C" >&6
10425 if test "${ac_cv_type_struct_ifaddrs+set}" = set; then
10426 echo $ECHO_N "(cached) $ECHO_C" >&6
10428 cat >conftest.$ac_ext <<_ACEOF
10429 #line 10429 "configure"
10430 #include "confdefs.h"
10431 $ac_includes_default
10435 if ((struct ifaddrs *) 0)
10437 if (sizeof (struct ifaddrs))
10443 rm -f conftest.$ac_objext
10444 if { (eval echo $as_me:10444: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
10445 ac_cv_type_struct_ifaddrs=yes
10447 echo "$as_me: failed program was:" >&5
10448 cat conftest.$ac_ext >&5
10449 ac_cv_type_struct_ifaddrs=no
10451 rm -f conftest.$ac_objext conftest.$ac_ext
10453 echo "$as_me:10453: result: $ac_cv_type_struct_ifaddrs" >&5
10454 echo "${ECHO_T}$ac_cv_type_struct_ifaddrs" >&6
10455 if test $ac_cv_type_struct_ifaddrs = yes; then
10457 cat >>confdefs.h <<EOF
10458 #define HAVE_STRUCT_IFADDRS 1
10465 cat >>confdefs.h <<EOF
10466 #define $ac_tr_hdr 1
10471 echo "$as_me:10471: checking for struct winsize" >&5
10472 echo $ECHO_N "checking for struct winsize... $ECHO_C" >&6
10473 if test "${ac_cv_struct_winsize+set}" = set; then
10474 echo $ECHO_N "(cached) $ECHO_C" >&6
10477 ac_cv_struct_winsize=no
10478 for i in sys/termios.h sys/ioctl.h; do
10479 cat >conftest.$ac_ext <<_ACEOF
10480 #line 10480 "configure"
10481 #include "confdefs.h"
10485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10486 egrep "struct[ ]*winsize" >/dev/null 2>&1; then
10487 ac_cv_struct_winsize=yes; break
10494 if test "$ac_cv_struct_winsize" = "yes"; then
10496 cat >>confdefs.h <<\EOF
10497 #define HAVE_STRUCT_WINSIZE 1
10501 echo "$as_me:10501: result: $ac_cv_struct_winsize" >&5
10502 echo "${ECHO_T}$ac_cv_struct_winsize" >&6
10503 cat >conftest.$ac_ext <<_ACEOF
10504 #line 10504 "configure"
10505 #include "confdefs.h"
10506 #include <termios.h>
10509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10510 egrep "ws_xpixel" >/dev/null 2>&1; then
10512 cat >>confdefs.h <<\EOF
10513 #define HAVE_WS_XPIXEL 1
10519 cat >conftest.$ac_ext <<_ACEOF
10520 #line 10520 "configure"
10521 #include "confdefs.h"
10522 #include <termios.h>
10525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10526 egrep "ws_ypixel" >/dev/null 2>&1; then
10528 cat >>confdefs.h <<\EOF
10529 #define HAVE_WS_YPIXEL 1
10535 echo "$as_me:10535: checking for struct spwd" >&5
10536 echo $ECHO_N "checking for struct spwd... $ECHO_C" >&6
10537 if test "${ac_cv_struct_spwd+set}" = set; then
10538 echo $ECHO_N "(cached) $ECHO_C" >&6
10541 cat >conftest.$ac_ext <<_ACEOF
10542 #line 10542 "configure"
10543 #include "confdefs.h"
10545 #ifdef HAVE_SHADOW_H
10546 #include <shadow.h>
10556 rm -f conftest.$ac_objext
10557 if { (eval echo $as_me:10557: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
10558 ac_cv_struct_spwd=yes
10560 echo "$as_me: failed program was:" >&5
10561 cat conftest.$ac_ext >&5
10562 ac_cv_struct_spwd=no
10564 rm -f conftest.$ac_objext conftest.$ac_ext
10568 echo "$as_me:10568: result: $ac_cv_struct_spwd" >&5
10569 echo "${ECHO_T}$ac_cv_struct_spwd" >&6
10571 if test "$ac_cv_struct_spwd" = "yes"; then
10573 cat >>confdefs.h <<\EOF
10574 #define HAVE_STRUCT_SPWD 1
10579 LIB_roken="${LIB_roken} \$(LIB_crypt) \$(LIB_dbopen)"
10581 LIB_roken="\$(top_builddir)/lib/vers/libvers.la $LIB_roken"
10583 # Check whether --with-openldap or --without-openldap was given.
10584 if test "${with_openldap+set}" = set; then
10585 withval="$with_openldap"
10589 # Check whether --with-openldap-lib or --without-openldap-lib was given.
10590 if test "${with_openldap_lib+set}" = set; then
10591 withval="$with_openldap_lib"
10592 if test "$withval" = "yes" -o "$withval" = "no"; then
10593 { echo "$as_me: error: No argument for --with-openldap-lib" >&2
10594 { (exit 1); exit; }; }
10595 elif test "X$with_openldap" = "X"; then
10600 # Check whether --with-openldap-include or --without-openldap-include was given.
10601 if test "${with_openldap_include+set}" = set; then
10602 withval="$with_openldap_include"
10603 if test "$withval" = "yes" -o "$withval" = "no"; then
10604 { echo "$as_me: error: No argument for --with-openldap-include" >&2
10605 { (exit 1); exit; }; }
10606 elif test "X$with_openldap" = "X"; then
10611 echo "$as_me:10611: checking for openldap" >&5
10612 echo $ECHO_N "checking for openldap... $ECHO_C" >&6
10614 case "$with_openldap" in
10618 *) if test "$with_openldap_include" = ""; then
10619 with_openldap_include="$with_openldap/include"
10621 if test "$with_openldap_lib" = ""; then
10622 with_openldap_lib="$with_openldap/lib$abilibdirext"
10630 header_dirs="$header_dirs $i/include"
10631 lib_dirs="$lib_dirs $i/lib$abilibdirext"
10634 case "$with_openldap_include" in
10637 *) header_dirs="$with_openldap_include $header_dirs";;
10639 case "$with_openldap_lib" in
10642 *) lib_dirs="$with_openldap_lib $lib_dirs";;
10645 save_CFLAGS="$CFLAGS"
10648 for i in $header_dirs; do
10649 CFLAGS="-I$i $save_CFLAGS"
10650 cat >conftest.$ac_ext <<_ACEOF
10651 #line 10651 "configure"
10652 #include "confdefs.h"
10663 rm -f conftest.$ac_objext
10664 if { (eval echo $as_me:10664: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
10667 echo "$as_me: failed program was:" >&5
10668 cat conftest.$ac_ext >&5
10670 rm -f conftest.$ac_objext conftest.$ac_ext
10672 for i in $lib_dirs; do
10673 LIBS="-L$i -lldap -llber $save_LIBS"
10674 cat >conftest.$ac_ext <<_ACEOF
10675 #line 10675 "configure"
10676 #include "confdefs.h"
10687 rm -f conftest.$ac_objext conftest$ac_exeext
10688 if { (eval echo $as_me:10688: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
10691 echo "$as_me: failed program was:" >&5
10692 cat conftest.$ac_ext >&5
10694 rm -f conftest$ac_exeext conftest.$ac_ext
10696 CFLAGS="$save_CFLAGS"
10699 if test "$ires" -a "$lres" -a "$with_openldap" != "no"; then
10700 openldap_includedir="$ires"
10701 openldap_libdir="$lres"
10702 INCLUDE_openldap="-I$openldap_includedir"
10703 LIB_openldap="-L$openldap_libdir -lldap -llber"
10705 cat >>confdefs.h <<EOF
10710 echo "$as_me:10710: result: headers $ires, libraries $lres" >&5
10711 echo "${ECHO_T}headers $ires, libraries $lres" >&6
10716 echo "$as_me:10716: result: $with_openldap" >&5
10717 echo "${ECHO_T}$with_openldap" >&6
10720 if test "$openldap_libdir"; then
10721 LIB_openldap="-R $openldap_libdir $LIB_openldap"
10724 # Check whether --with-krb4 or --without-krb4 was given.
10725 if test "${with_krb4+set}" = set; then
10726 withval="$with_krb4"
10730 # Check whether --with-krb4-lib or --without-krb4-lib was given.
10731 if test "${with_krb4_lib+set}" = set; then
10732 withval="$with_krb4_lib"
10733 if test "$withval" = "yes" -o "$withval" = "no"; then
10734 { echo "$as_me: error: No argument for --with-krb4-lib" >&2
10735 { (exit 1); exit; }; }
10736 elif test "X$with_krb4" = "X"; then
10741 # Check whether --with-krb4-include or --without-krb4-include was given.
10742 if test "${with_krb4_include+set}" = set; then
10743 withval="$with_krb4_include"
10744 if test "$withval" = "yes" -o "$withval" = "no"; then
10745 { echo "$as_me: error: No argument for --with-krb4-include" >&2
10746 { (exit 1); exit; }; }
10747 elif test "X$with_krb4" = "X"; then
10752 echo "$as_me:10752: checking for krb4" >&5
10753 echo $ECHO_N "checking for krb4... $ECHO_C" >&6
10755 case "$with_krb4" in
10759 *) if test "$with_krb4_include" = ""; then
10760 with_krb4_include="$with_krb4/include"
10762 if test "$with_krb4_lib" = ""; then
10763 with_krb4_lib="$with_krb4/lib$abilibdirext"
10771 header_dirs="$header_dirs $i/include"
10772 lib_dirs="$lib_dirs $i/lib$abilibdirext"
10775 case "$with_krb4_include" in
10778 *) header_dirs="$with_krb4_include $header_dirs";;
10780 case "$with_krb4_lib" in
10783 *) lib_dirs="$with_krb4_lib $lib_dirs";;
10786 save_CFLAGS="$CFLAGS"
10789 for i in $header_dirs; do
10790 CFLAGS="-I$i $save_CFLAGS"
10791 cat >conftest.$ac_ext <<_ACEOF
10792 #line 10792 "configure"
10793 #include "confdefs.h"
10803 rm -f conftest.$ac_objext
10804 if { (eval echo $as_me:10804: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
10807 echo "$as_me: failed program was:" >&5
10808 cat conftest.$ac_ext >&5
10810 rm -f conftest.$ac_objext conftest.$ac_ext
10812 for i in $lib_dirs; do
10813 LIBS="-L$i -lkrb -ldes $save_LIBS"
10814 cat >conftest.$ac_ext <<_ACEOF
10815 #line 10815 "configure"
10816 #include "confdefs.h"
10826 rm -f conftest.$ac_objext conftest$ac_exeext
10827 if { (eval echo $as_me:10827: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
10830 echo "$as_me: failed program was:" >&5
10831 cat conftest.$ac_ext >&5
10833 rm -f conftest$ac_exeext conftest.$ac_ext
10835 CFLAGS="$save_CFLAGS"
10838 if test "$ires" -a "$lres" -a "$with_krb4" != "no"; then
10839 krb4_includedir="$ires"
10840 krb4_libdir="$lres"
10841 INCLUDE_krb4="-I$krb4_includedir"
10842 LIB_krb4="-L$krb4_libdir -lkrb"
10844 cat >>confdefs.h <<EOF
10849 echo "$as_me:10849: result: headers $ires, libraries $lres" >&5
10850 echo "${ECHO_T}headers $ires, libraries $lres" >&6
10855 echo "$as_me:10855: result: $with_krb4" >&5
10856 echo "${ECHO_T}$with_krb4" >&6
10860 if test "$with_krb4" != "no"; then
10861 save_CFLAGS="$CFLAGS"
10862 CFLAGS="$CFLAGS $INCLUDE_krb4"
10864 LIBS="$LIB_krb4 -ldes $LIBS"
10865 EXTRA_LIB45=lib45.a
10867 echo "$as_me:10867: checking for four valued krb_put_int" >&5
10868 echo $ECHO_N "checking for four valued krb_put_int... $ECHO_C" >&6
10869 if test "${ac_cv_func_krb_put_int_four+set}" = set; then
10870 echo $ECHO_N "(cached) $ECHO_C" >&6
10872 cat >conftest.$ac_ext <<_ACEOF
10873 #line 10873 "configure"
10874 #include "confdefs.h"
10881 krb_put_int(17, tmp, 4, sizeof(tmp));
10886 rm -f conftest.$ac_objext
10887 if { (eval echo $as_me:10887: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
10888 ac_cv_func_krb_put_int_four=yes
10890 echo "$as_me: failed program was:" >&5
10891 cat conftest.$ac_ext >&5
10892 ac_cv_func_krb_put_int_four=no
10894 rm -f conftest.$ac_objext conftest.$ac_ext
10897 echo "$as_me:10897: result: $ac_cv_func_krb_put_int_four" >&5
10898 echo "${ECHO_T}$ac_cv_func_krb_put_int_four" >&6
10899 if test "$ac_cv_func_krb_put_int_four" = yes; then
10901 cat >>confdefs.h <<\EOF
10902 #define HAVE_FOUR_VALUED_KRB_PUT_INT 1
10907 echo "$as_me:10907: checking for KRB_VERIFY_SECURE" >&5
10908 echo $ECHO_N "checking for KRB_VERIFY_SECURE... $ECHO_C" >&6
10909 if test "${ac_cv_func_krb_verify_secure+set}" = set; then
10910 echo $ECHO_N "(cached) $ECHO_C" >&6
10912 cat >conftest.$ac_ext <<_ACEOF
10913 #line 10913 "configure"
10914 #include "confdefs.h"
10920 int x = KRB_VERIFY_SECURE
10925 rm -f conftest.$ac_objext
10926 if { (eval echo $as_me:10926: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
10927 ac_cv_func_krb_verify_secure=yes
10929 echo "$as_me: failed program was:" >&5
10930 cat conftest.$ac_ext >&5
10931 ac_cv_func_krb_verify_secure=no
10933 rm -f conftest.$ac_objext conftest.$ac_ext
10936 echo "$as_me:10936: result: $ac_cv_func_krb_verify_secure" >&5
10937 echo "${ECHO_T}$ac_cv_func_krb_verify_secure" >&6
10938 if test "$ac_cv_func_krb_verify_secure" != yes; then
10940 cat >>confdefs.h <<\EOF
10941 #define KRB_VERIFY_SECURE 1
10944 cat >>confdefs.h <<\EOF
10945 #define KRB_VERIFY_SECURE_FAIL 2
10949 echo "$as_me:10949: checking for KRB_VERIFY_NOT_SECURE" >&5
10950 echo $ECHO_N "checking for KRB_VERIFY_NOT_SECURE... $ECHO_C" >&6
10951 if test "${ac_cv_func_krb_verify_not_secure+set}" = set; then
10952 echo $ECHO_N "(cached) $ECHO_C" >&6
10954 cat >conftest.$ac_ext <<_ACEOF
10955 #line 10955 "configure"
10956 #include "confdefs.h"
10962 int x = KRB_VERIFY_NOT_SECURE
10967 rm -f conftest.$ac_objext
10968 if { (eval echo $as_me:10968: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
10969 ac_cv_func_krb_verify_not_secure=yes
10971 echo "$as_me: failed program was:" >&5
10972 cat conftest.$ac_ext >&5
10973 ac_cv_func_krb_verify_not_secure=no
10975 rm -f conftest.$ac_objext conftest.$ac_ext
10978 echo "$as_me:10978: result: $ac_cv_func_krb_verify_not_secure" >&5
10979 echo "${ECHO_T}$ac_cv_func_krb_verify_not_secure" >&6
10980 if test "$ac_cv_func_krb_verify_not_secure" != yes; then
10982 cat >>confdefs.h <<\EOF
10983 #define KRB_VERIFY_NOT_SECURE 0
10988 echo "$as_me:10988: checking for krb_enable_debug" >&5
10989 echo $ECHO_N "checking for krb_enable_debug... $ECHO_C" >&6
10990 if test "${ac_cv_funclib_krb_enable_debug+set}" = set; then
10991 echo $ECHO_N "(cached) $ECHO_C" >&6
10994 if eval "test \"\$ac_cv_func_krb_enable_debug\" != yes" ; then
10995 ac_save_LIBS="$LIBS"
10996 for ac_lib in "" ; do
10997 if test -n "$ac_lib"; then
11002 LIBS=" $ac_lib $ac_save_LIBS"
11003 cat >conftest.$ac_ext <<_ACEOF
11004 #line 11004 "configure"
11005 #include "confdefs.h"
11015 rm -f conftest.$ac_objext conftest$ac_exeext
11016 if { (eval echo $as_me:11016: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
11017 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
11019 echo "$as_me: failed program was:" >&5
11020 cat conftest.$ac_ext >&5
11022 rm -f conftest$ac_exeext conftest.$ac_ext
11024 eval "ac_cv_funclib_krb_enable_debug=\${ac_cv_funclib_krb_enable_debug-no}"
11025 LIBS="$ac_save_LIBS"
11030 eval "ac_res=\$ac_cv_funclib_krb_enable_debug"
11034 for ac_func in krb_enable_debug
11036 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
11037 echo "$as_me:11037: checking for $ac_func" >&5
11038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11039 if eval "test \"\${$ac_ac_var+set}\" = set"; then
11040 echo $ECHO_N "(cached) $ECHO_C" >&6
11042 cat >conftest.$ac_ext <<_ACEOF
11043 #line 11043 "configure"
11044 #include "confdefs.h"
11045 /* System header to define __stub macros and hopefully few prototypes,
11046 which can conflict with char $ac_func (); below. */
11047 #include <assert.h>
11048 /* Override any gcc2 internal prototype to avoid an error. */
11052 /* We use char because int might match the return type of a gcc2
11053 builtin and then its argument prototype would still apply. */
11060 /* The GNU C library defines this for functions which it implements
11061 to always fail with ENOSYS. Some functions are actually named
11062 something starting with __ and the normal name is an alias. */
11063 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11073 rm -f conftest.$ac_objext conftest$ac_exeext
11074 if { (eval echo $as_me:11074: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
11075 eval "$ac_ac_var=yes"
11077 echo "$as_me: failed program was:" >&5
11078 cat conftest.$ac_ext >&5
11079 eval "$ac_ac_var=no"
11081 rm -f conftest$ac_exeext conftest.$ac_ext
11083 echo "$as_me:11083: result: `eval echo '${'$ac_ac_var'}'`" >&5
11084 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
11085 if test `eval echo '${'$ac_ac_var'}'` = yes; then
11086 cat >>confdefs.h <<EOF
11087 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
11095 eval "ac_tr_func=HAVE_`echo krb_enable_debug | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11096 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11097 eval "LIB_krb_enable_debug=$ac_res"
11101 eval "ac_cv_func_krb_enable_debug=yes"
11102 eval "LIB_krb_enable_debug="
11103 cat >>confdefs.h <<EOF
11104 #define $ac_tr_func 1
11107 echo "$as_me:11107: result: yes" >&5
11108 echo "${ECHO_T}yes" >&6
11111 eval "ac_cv_func_krb_enable_debug=no"
11112 eval "LIB_krb_enable_debug="
11113 echo "$as_me:11113: result: no" >&5
11114 echo "${ECHO_T}no" >&6
11117 eval "ac_cv_func_krb_enable_debug=yes"
11118 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
11119 cat >>confdefs.h <<EOF
11120 #define $ac_tr_func 1
11123 cat >>confdefs.h <<EOF
11124 #define $ac_tr_lib 1
11127 echo "$as_me:11127: result: yes, in $ac_res" >&5
11128 echo "${ECHO_T}yes, in $ac_res" >&6
11132 if test -n "$LIB_krb_enable_debug"; then
11133 LIBS="$LIB_krb_enable_debug $LIBS"
11136 echo "$as_me:11136: checking for krb_disable_debug" >&5
11137 echo $ECHO_N "checking for krb_disable_debug... $ECHO_C" >&6
11138 if test "${ac_cv_funclib_krb_disable_debug+set}" = set; then
11139 echo $ECHO_N "(cached) $ECHO_C" >&6
11142 if eval "test \"\$ac_cv_func_krb_disable_debug\" != yes" ; then
11143 ac_save_LIBS="$LIBS"
11144 for ac_lib in "" ; do
11145 if test -n "$ac_lib"; then
11150 LIBS=" $ac_lib $ac_save_LIBS"
11151 cat >conftest.$ac_ext <<_ACEOF
11152 #line 11152 "configure"
11153 #include "confdefs.h"
11158 krb_disable_debug()
11163 rm -f conftest.$ac_objext conftest$ac_exeext
11164 if { (eval echo $as_me:11164: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
11165 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
11167 echo "$as_me: failed program was:" >&5
11168 cat conftest.$ac_ext >&5
11170 rm -f conftest$ac_exeext conftest.$ac_ext
11172 eval "ac_cv_funclib_krb_disable_debug=\${ac_cv_funclib_krb_disable_debug-no}"
11173 LIBS="$ac_save_LIBS"
11178 eval "ac_res=\$ac_cv_funclib_krb_disable_debug"
11182 for ac_func in krb_disable_debug
11184 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
11185 echo "$as_me:11185: checking for $ac_func" >&5
11186 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11187 if eval "test \"\${$ac_ac_var+set}\" = set"; then
11188 echo $ECHO_N "(cached) $ECHO_C" >&6
11190 cat >conftest.$ac_ext <<_ACEOF
11191 #line 11191 "configure"
11192 #include "confdefs.h"
11193 /* System header to define __stub macros and hopefully few prototypes,
11194 which can conflict with char $ac_func (); below. */
11195 #include <assert.h>
11196 /* Override any gcc2 internal prototype to avoid an error. */
11200 /* We use char because int might match the return type of a gcc2
11201 builtin and then its argument prototype would still apply. */
11208 /* The GNU C library defines this for functions which it implements
11209 to always fail with ENOSYS. Some functions are actually named
11210 something starting with __ and the normal name is an alias. */
11211 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11221 rm -f conftest.$ac_objext conftest$ac_exeext
11222 if { (eval echo $as_me:11222: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
11223 eval "$ac_ac_var=yes"
11225 echo "$as_me: failed program was:" >&5
11226 cat conftest.$ac_ext >&5
11227 eval "$ac_ac_var=no"
11229 rm -f conftest$ac_exeext conftest.$ac_ext
11231 echo "$as_me:11231: result: `eval echo '${'$ac_ac_var'}'`" >&5
11232 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
11233 if test `eval echo '${'$ac_ac_var'}'` = yes; then
11234 cat >>confdefs.h <<EOF
11235 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
11242 # krb_disable_debug
11243 eval "ac_tr_func=HAVE_`echo krb_disable_debug | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11244 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11245 eval "LIB_krb_disable_debug=$ac_res"
11249 eval "ac_cv_func_krb_disable_debug=yes"
11250 eval "LIB_krb_disable_debug="
11251 cat >>confdefs.h <<EOF
11252 #define $ac_tr_func 1
11255 echo "$as_me:11255: result: yes" >&5
11256 echo "${ECHO_T}yes" >&6
11259 eval "ac_cv_func_krb_disable_debug=no"
11260 eval "LIB_krb_disable_debug="
11261 echo "$as_me:11261: result: no" >&5
11262 echo "${ECHO_T}no" >&6
11265 eval "ac_cv_func_krb_disable_debug=yes"
11266 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
11267 cat >>confdefs.h <<EOF
11268 #define $ac_tr_func 1
11271 cat >>confdefs.h <<EOF
11272 #define $ac_tr_lib 1
11275 echo "$as_me:11275: result: yes, in $ac_res" >&5
11276 echo "${ECHO_T}yes, in $ac_res" >&6
11280 if test -n "$LIB_krb_disable_debug"; then
11281 LIBS="$LIB_krb_disable_debug $LIBS"
11284 echo "$as_me:11284: checking for krb_get_our_ip_for_realm" >&5
11285 echo $ECHO_N "checking for krb_get_our_ip_for_realm... $ECHO_C" >&6
11286 if test "${ac_cv_funclib_krb_get_our_ip_for_realm+set}" = set; then
11287 echo $ECHO_N "(cached) $ECHO_C" >&6
11290 if eval "test \"\$ac_cv_func_krb_get_our_ip_for_realm\" != yes" ; then
11291 ac_save_LIBS="$LIBS"
11292 for ac_lib in "" ; do
11293 if test -n "$ac_lib"; then
11298 LIBS=" $ac_lib $ac_save_LIBS"
11299 cat >conftest.$ac_ext <<_ACEOF
11300 #line 11300 "configure"
11301 #include "confdefs.h"
11306 krb_get_our_ip_for_realm()
11311 rm -f conftest.$ac_objext conftest$ac_exeext
11312 if { (eval echo $as_me:11312: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
11313 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
11315 echo "$as_me: failed program was:" >&5
11316 cat conftest.$ac_ext >&5
11318 rm -f conftest$ac_exeext conftest.$ac_ext
11320 eval "ac_cv_funclib_krb_get_our_ip_for_realm=\${ac_cv_funclib_krb_get_our_ip_for_realm-no}"
11321 LIBS="$ac_save_LIBS"
11326 eval "ac_res=\$ac_cv_funclib_krb_get_our_ip_for_realm"
11330 for ac_func in krb_get_our_ip_for_realm
11332 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
11333 echo "$as_me:11333: checking for $ac_func" >&5
11334 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11335 if eval "test \"\${$ac_ac_var+set}\" = set"; then
11336 echo $ECHO_N "(cached) $ECHO_C" >&6
11338 cat >conftest.$ac_ext <<_ACEOF
11339 #line 11339 "configure"
11340 #include "confdefs.h"
11341 /* System header to define __stub macros and hopefully few prototypes,
11342 which can conflict with char $ac_func (); below. */
11343 #include <assert.h>
11344 /* Override any gcc2 internal prototype to avoid an error. */
11348 /* We use char because int might match the return type of a gcc2
11349 builtin and then its argument prototype would still apply. */
11356 /* The GNU C library defines this for functions which it implements
11357 to always fail with ENOSYS. Some functions are actually named
11358 something starting with __ and the normal name is an alias. */
11359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11369 rm -f conftest.$ac_objext conftest$ac_exeext
11370 if { (eval echo $as_me:11370: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
11371 eval "$ac_ac_var=yes"
11373 echo "$as_me: failed program was:" >&5
11374 cat conftest.$ac_ext >&5
11375 eval "$ac_ac_var=no"
11377 rm -f conftest$ac_exeext conftest.$ac_ext
11379 echo "$as_me:11379: result: `eval echo '${'$ac_ac_var'}'`" >&5
11380 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
11381 if test `eval echo '${'$ac_ac_var'}'` = yes; then
11382 cat >>confdefs.h <<EOF
11383 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
11390 # krb_get_our_ip_for_realm
11391 eval "ac_tr_func=HAVE_`echo krb_get_our_ip_for_realm | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11392 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11393 eval "LIB_krb_get_our_ip_for_realm=$ac_res"
11397 eval "ac_cv_func_krb_get_our_ip_for_realm=yes"
11398 eval "LIB_krb_get_our_ip_for_realm="
11399 cat >>confdefs.h <<EOF
11400 #define $ac_tr_func 1
11403 echo "$as_me:11403: result: yes" >&5
11404 echo "${ECHO_T}yes" >&6
11407 eval "ac_cv_func_krb_get_our_ip_for_realm=no"
11408 eval "LIB_krb_get_our_ip_for_realm="
11409 echo "$as_me:11409: result: no" >&5
11410 echo "${ECHO_T}no" >&6
11413 eval "ac_cv_func_krb_get_our_ip_for_realm=yes"
11414 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
11415 cat >>confdefs.h <<EOF
11416 #define $ac_tr_func 1
11419 cat >>confdefs.h <<EOF
11420 #define $ac_tr_lib 1
11423 echo "$as_me:11423: result: yes, in $ac_res" >&5
11424 echo "${ECHO_T}yes, in $ac_res" >&6
11428 if test -n "$LIB_krb_get_our_ip_for_realm"; then
11429 LIBS="$LIB_krb_get_our_ip_for_realm $LIBS"
11432 echo "$as_me:11432: checking for krb_mk_req with const arguments" >&5
11433 echo $ECHO_N "checking for krb_mk_req with const arguments... $ECHO_C" >&6
11434 if test "${ac_cv_func_krb_mk_req_const+set}" = set; then
11435 echo $ECHO_N "(cached) $ECHO_C" >&6
11437 cat >conftest.$ac_ext <<_ACEOF
11438 #line 11438 "configure"
11439 #include "confdefs.h"
11441 int krb_mk_req(KTEXT a, const char *s, const char *i,
11442 const char *r, int32_t checksum)
11452 rm -f conftest.$ac_objext
11453 if { (eval echo $as_me:11453: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
11454 ac_cv_func_krb_mk_req_const=yes
11456 echo "$as_me: failed program was:" >&5
11457 cat conftest.$ac_ext >&5
11458 ac_cv_func_krb_mk_req_const=no
11460 rm -f conftest.$ac_objext conftest.$ac_ext
11463 echo "$as_me:11463: result: $ac_cv_func_krb_mk_req_const" >&5
11464 echo "${ECHO_T}$ac_cv_func_krb_mk_req_const" >&6
11465 if test "$ac_cv_func_krb_mk_req_const" = "yes"; then
11467 cat >>confdefs.h <<\EOF
11468 #define KRB_MK_REQ_CONST 1
11474 CFLAGS="$save_CFLAGS"
11475 LIB_kdb="-lkdb -lkrb"
11476 test_LIB_krb4="$LIB_krb4"
11477 if test "$krb4_libdir"; then
11478 LIB_krb4="-R $krb4_libdir $LIB_krb4"
11479 LIB_kdb="-R $krb4_libdir -L$krb4_libdir $LIB_kdb"
11483 if test "$with_krb4" != "no"; then
11500 do_roken_rename_TRUE=
11501 do_roken_rename_FALSE='#'
11503 do_roken_rename_TRUE='#'
11504 do_roken_rename_FALSE=
11507 cat >>confdefs.h <<\EOF
11511 # Check whether --enable-dce or --disable-dce was given.
11512 if test "${enable_dce+set}" = set; then
11513 enableval="$enable_dce"
11516 if test "$enable_dce" = yes; then
11518 cat >>confdefs.h <<\EOF
11524 if test "$enable_dce" = yes; then
11532 ## XXX quite horrible:
11533 if test -f /etc/ibmcxx.cfg; then
11534 dpagaix_LDADD=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/libraries/{;s/^[^=]*=\(.*\)/\1/;s/,/ /gp;}'`
11535 dpagaix_CFLAGS=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/options/{;s/^[^=]*=\(.*\)/\1/;s/-q^,*//;s/,/ /gp;}'`
11537 dpagaix_CFLAGS="-D_THREAD_SAFE -D_AIX_PTHREADS_D7 -D_AIX32_THREADS=1 -D_AES_SOURCE -D_AIX41 -I/usr/include/dce"
11538 dpagaix_LDADD="-L/usr/lib/threads -ldcelibc_r -ldcepthreads -lpthreads_compat lpthreads -lc_r"
11539 dpagaix_LDFLAGS="-Wl,-bI:dfspag.exp"
11542 # Check whether --enable-kaserver or --disable-kaserver was given.
11543 if test "${enable_kaserver+set}" = set; then
11544 enableval="$enable_kaserver"
11547 if test "$enable_kaserver" = yes; then
11549 cat >>confdefs.h <<\EOF
11553 if test "$with_krb4" = "no"; then
11554 { echo "$as_me: error: kaserver requires krb4" >&2
11555 { (exit 1); exit; }; }
11560 # Check whether --enable-kaserver-db or --disable-kaserver-db was given.
11561 if test "${enable_kaserver_db+set}" = set; then
11562 enableval="$enable_kaserver_db"
11565 if test "$enable_kaserver_db" = yes; then
11567 cat >>confdefs.h <<\EOF
11568 #define KASERVER_DB 1
11571 if test "$with_krb4" = "no"; then
11572 { echo "$as_me: error: kaserver-db requires krb4" >&2
11573 { (exit 1); exit; }; }
11579 # Check whether --enable-otp or --disable-otp was given.
11580 if test "${enable_otp+set}" = set; then
11581 enableval="$enable_otp"
11583 if test "$enableval" = "no"; then
11588 if test "$otp" = "yes"; then
11590 cat >>confdefs.h <<\EOF
11594 LIB_otp='$(top_builddir)/lib/otp/libotp.la'
11597 if test "$otp" = yes; then
11605 # Check whether --enable-osfc2 or --disable-osfc2 was given.
11606 if test "${enable_osfc2+set}" = set; then
11607 enableval="$enable_osfc2"
11611 if test "$enable_osfc2" = yes; then
11613 cat >>confdefs.h <<\EOF
11614 #define HAVE_OSFC2 1
11617 LIB_security=-lsecurity
11620 # Extract the first word of "nroff", so it can be a program name with args.
11621 set dummy nroff; ac_word=$2
11622 echo "$as_me:11622: checking for $ac_word" >&5
11623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11624 if test "${ac_cv_path_NROFF+set}" = set; then
11625 echo $ECHO_N "(cached) $ECHO_C" >&6
11629 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
11632 ac_save_IFS=$IFS; IFS=':'
11634 for ac_dir in $ac_dummy; do
11636 test -z "$ac_dir" && ac_dir=.
11637 if test -f "$ac_dir/$ac_word"; then
11638 ac_cv_path_NROFF="$ac_dir/$ac_word"
11646 NROFF=$ac_cv_path_NROFF
11648 if test -n "$NROFF"; then
11649 echo "$as_me:11649: result: $NROFF" >&5
11650 echo "${ECHO_T}$NROFF" >&6
11652 echo "$as_me:11652: result: no" >&5
11653 echo "${ECHO_T}no" >&6
11656 # Extract the first word of "groff", so it can be a program name with args.
11657 set dummy groff; ac_word=$2
11658 echo "$as_me:11658: checking for $ac_word" >&5
11659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11660 if test "${ac_cv_path_GROFF+set}" = set; then
11661 echo $ECHO_N "(cached) $ECHO_C" >&6
11665 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
11668 ac_save_IFS=$IFS; IFS=':'
11670 for ac_dir in $ac_dummy; do
11672 test -z "$ac_dir" && ac_dir=.
11673 if test -f "$ac_dir/$ac_word"; then
11674 ac_cv_path_GROFF="$ac_dir/$ac_word"
11682 GROFF=$ac_cv_path_GROFF
11684 if test -n "$GROFF"; then
11685 echo "$as_me:11685: result: $GROFF" >&5
11686 echo "${ECHO_T}$GROFF" >&6
11688 echo "$as_me:11688: result: no" >&5
11689 echo "${ECHO_T}no" >&6
11692 echo "$as_me:11692: checking how to format man pages" >&5
11693 echo $ECHO_N "checking how to format man pages... $ECHO_C" >&6
11694 if test "${ac_cv_sys_man_format+set}" = set; then
11695 echo $ECHO_N "(cached) $ECHO_C" >&6
11697 cat > conftest.1 << END
11698 .Dd January 1, 1970
11706 if test "$NROFF" ; then
11707 for i in "-mdoc" "-mandoc"; do
11708 if "$NROFF" $i conftest.1 2> /dev/null | \
11709 grep Jan > /dev/null 2>&1 ; then
11710 ac_cv_sys_man_format="$NROFF $i"
11715 if test "$ac_cv_sys_man_format" = "" -a "$GROFF" ; then
11716 for i in "-mdoc" "-mandoc"; do
11717 if "$GROFF" -Tascii $i conftest.1 2> /dev/null | \
11718 grep Jan > /dev/null 2>&1 ; then
11719 ac_cv_sys_man_format="$GROFF -Tascii $i"
11724 if test "$ac_cv_sys_man_format"; then
11725 ac_cv_sys_man_format="$ac_cv_sys_man_format \$< > \$@"
11729 echo "$as_me:11729: result: $ac_cv_sys_man_format" >&5
11730 echo "${ECHO_T}$ac_cv_sys_man_format" >&6
11731 if test "$ac_cv_sys_man_format"; then
11732 CATMAN="$ac_cv_sys_man_format"
11736 if test "$CATMAN"; then
11743 echo "$as_me:11743: checking extension of pre-formatted manual pages" >&5
11744 echo $ECHO_N "checking extension of pre-formatted manual pages... $ECHO_C" >&6
11745 if test "${ac_cv_sys_catman_ext+set}" = set; then
11746 echo $ECHO_N "(cached) $ECHO_C" >&6
11748 if grep _suffix /etc/man.conf > /dev/null 2>&1; then
11749 ac_cv_sys_catman_ext=0
11751 ac_cv_sys_catman_ext=number
11755 echo "$as_me:11755: result: $ac_cv_sys_catman_ext" >&5
11756 echo "${ECHO_T}$ac_cv_sys_catman_ext" >&6
11757 if test "$ac_cv_sys_catman_ext" = number; then
11758 CATMANEXT='$$section'
11763 # Check whether --with-readline or --without-readline was given.
11764 if test "${with_readline+set}" = set; then
11765 withval="$with_readline"
11769 # Check whether --with-readline-lib or --without-readline-lib was given.
11770 if test "${with_readline_lib+set}" = set; then
11771 withval="$with_readline_lib"
11772 if test "$withval" = "yes" -o "$withval" = "no"; then
11773 { echo "$as_me: error: No argument for --with-readline-lib" >&2
11774 { (exit 1); exit; }; }
11775 elif test "X$with_readline" = "X"; then
11780 # Check whether --with-readline-include or --without-readline-include was given.
11781 if test "${with_readline_include+set}" = set; then
11782 withval="$with_readline_include"
11783 if test "$withval" = "yes" -o "$withval" = "no"; then
11784 { echo "$as_me: error: No argument for --with-readline-include" >&2
11785 { (exit 1); exit; }; }
11786 elif test "X$with_readline" = "X"; then
11791 echo "$as_me:11791: checking for readline" >&5
11792 echo $ECHO_N "checking for readline... $ECHO_C" >&6
11794 case "$with_readline" in
11798 *) if test "$with_readline_include" = ""; then
11799 with_readline_include="$with_readline/include"
11801 if test "$with_readline_lib" = ""; then
11802 with_readline_lib="$with_readline/lib$abilibdirext"
11810 header_dirs="$header_dirs $i/include"
11811 lib_dirs="$lib_dirs $i/lib$abilibdirext"
11814 case "$with_readline_include" in
11817 *) header_dirs="$with_readline_include $header_dirs";;
11819 case "$with_readline_lib" in
11822 *) lib_dirs="$with_readline_lib $lib_dirs";;
11825 save_CFLAGS="$CFLAGS"
11828 for i in $header_dirs; do
11829 CFLAGS="-I$i $save_CFLAGS"
11830 cat >conftest.$ac_ext <<_ACEOF
11831 #line 11831 "configure"
11832 #include "confdefs.h"
11834 #include <readline.h>
11843 rm -f conftest.$ac_objext
11844 if { (eval echo $as_me:11844: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
11847 echo "$as_me: failed program was:" >&5
11848 cat conftest.$ac_ext >&5
11850 rm -f conftest.$ac_objext conftest.$ac_ext
11852 for i in $lib_dirs; do
11853 LIBS="-L$i -lreadline $save_LIBS"
11854 cat >conftest.$ac_ext <<_ACEOF
11855 #line 11855 "configure"
11856 #include "confdefs.h"
11858 #include <readline.h>
11867 rm -f conftest.$ac_objext conftest$ac_exeext
11868 if { (eval echo $as_me:11868: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
11871 echo "$as_me: failed program was:" >&5
11872 cat conftest.$ac_ext >&5
11874 rm -f conftest$ac_exeext conftest.$ac_ext
11876 CFLAGS="$save_CFLAGS"
11879 if test "$ires" -a "$lres" -a "$with_readline" != "no"; then
11880 readline_includedir="$ires"
11881 readline_libdir="$lres"
11882 INCLUDE_readline="-I$readline_includedir"
11883 LIB_readline="-L$readline_libdir -lreadline"
11885 cat >>confdefs.h <<EOF
11890 echo "$as_me:11890: result: headers $ires, libraries $lres" >&5
11891 echo "${ECHO_T}headers $ires, libraries $lres" >&6
11896 echo "$as_me:11896: result: $with_readline" >&5
11897 echo "${ECHO_T}$with_readline" >&6
11900 # Check whether --with-hesiod or --without-hesiod was given.
11901 if test "${with_hesiod+set}" = set; then
11902 withval="$with_hesiod"
11906 # Check whether --with-hesiod-lib or --without-hesiod-lib was given.
11907 if test "${with_hesiod_lib+set}" = set; then
11908 withval="$with_hesiod_lib"
11909 if test "$withval" = "yes" -o "$withval" = "no"; then
11910 { echo "$as_me: error: No argument for --with-hesiod-lib" >&2
11911 { (exit 1); exit; }; }
11912 elif test "X$with_hesiod" = "X"; then
11917 # Check whether --with-hesiod-include or --without-hesiod-include was given.
11918 if test "${with_hesiod_include+set}" = set; then
11919 withval="$with_hesiod_include"
11920 if test "$withval" = "yes" -o "$withval" = "no"; then
11921 { echo "$as_me: error: No argument for --with-hesiod-include" >&2
11922 { (exit 1); exit; }; }
11923 elif test "X$with_hesiod" = "X"; then
11928 echo "$as_me:11928: checking for hesiod" >&5
11929 echo $ECHO_N "checking for hesiod... $ECHO_C" >&6
11931 case "$with_hesiod" in
11935 *) if test "$with_hesiod_include" = ""; then
11936 with_hesiod_include="$with_hesiod/include"
11938 if test "$with_hesiod_lib" = ""; then
11939 with_hesiod_lib="$with_hesiod/lib$abilibdirext"
11947 header_dirs="$header_dirs $i/include"
11948 lib_dirs="$lib_dirs $i/lib$abilibdirext"
11951 case "$with_hesiod_include" in
11954 *) header_dirs="$with_hesiod_include $header_dirs";;
11956 case "$with_hesiod_lib" in
11959 *) lib_dirs="$with_hesiod_lib $lib_dirs";;
11962 save_CFLAGS="$CFLAGS"
11965 for i in $header_dirs; do
11966 CFLAGS="-I$i $save_CFLAGS"
11967 cat >conftest.$ac_ext <<_ACEOF
11968 #line 11968 "configure"
11969 #include "confdefs.h"
11970 #include <hesiod.h>
11979 rm -f conftest.$ac_objext
11980 if { (eval echo $as_me:11980: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
11983 echo "$as_me: failed program was:" >&5
11984 cat conftest.$ac_ext >&5
11986 rm -f conftest.$ac_objext conftest.$ac_ext
11988 for i in $lib_dirs; do
11989 LIBS="-L$i -lhesiod $save_LIBS"
11990 cat >conftest.$ac_ext <<_ACEOF
11991 #line 11991 "configure"
11992 #include "confdefs.h"
11993 #include <hesiod.h>
12002 rm -f conftest.$ac_objext conftest$ac_exeext
12003 if { (eval echo $as_me:12003: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
12006 echo "$as_me: failed program was:" >&5
12007 cat conftest.$ac_ext >&5
12009 rm -f conftest$ac_exeext conftest.$ac_ext
12011 CFLAGS="$save_CFLAGS"
12014 if test "$ires" -a "$lres" -a "$with_hesiod" != "no"; then
12015 hesiod_includedir="$ires"
12016 hesiod_libdir="$lres"
12017 INCLUDE_hesiod="-I$hesiod_includedir"
12018 LIB_hesiod="-L$hesiod_libdir -lhesiod"
12020 cat >>confdefs.h <<EOF
12025 echo "$as_me:12025: result: headers $ires, libraries $lres" >&5
12026 echo "${ECHO_T}headers $ires, libraries $lres" >&6
12031 echo "$as_me:12031: result: $with_hesiod" >&5
12032 echo "${ECHO_T}$with_hesiod" >&6
12035 # Check whether --enable-bigendian or --disable-bigendian was given.
12036 if test "${enable_bigendian+set}" = set; then
12037 enableval="$enable_bigendian"
12038 krb_cv_c_bigendian=yes
12040 # Check whether --enable-littleendian or --disable-littleendian was given.
12041 if test "${enable_littleendian+set}" = set; then
12042 enableval="$enable_littleendian"
12043 krb_cv_c_bigendian=no
12045 echo "$as_me:12045: checking whether byte order is known at compile time" >&5
12046 echo $ECHO_N "checking whether byte order is known at compile time... $ECHO_C" >&6
12047 if test "${krb_cv_c_bigendian_compile+set}" = set; then
12048 echo $ECHO_N "(cached) $ECHO_C" >&6
12050 cat >conftest.$ac_ext <<_ACEOF
12051 #line 12051 "configure"
12052 #include "confdefs.h"
12054 #include <sys/types.h>
12055 #include <sys/param.h>
12060 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
12061 bogus endian macros
12067 rm -f conftest.$ac_objext
12068 if { (eval echo $as_me:12068: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
12069 krb_cv_c_bigendian_compile=yes
12071 echo "$as_me: failed program was:" >&5
12072 cat conftest.$ac_ext >&5
12073 krb_cv_c_bigendian_compile=no
12075 rm -f conftest.$ac_objext conftest.$ac_ext
12077 echo "$as_me:12077: result: $krb_cv_c_bigendian_compile" >&5
12078 echo "${ECHO_T}$krb_cv_c_bigendian_compile" >&6
12079 echo "$as_me:12079: checking whether byte ordering is bigendian" >&5
12080 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
12081 if test "${krb_cv_c_bigendian+set}" = set; then
12082 echo $ECHO_N "(cached) $ECHO_C" >&6
12085 if test "$krb_cv_c_bigendian_compile" = "yes"; then
12086 cat >conftest.$ac_ext <<_ACEOF
12087 #line 12087 "configure"
12088 #include "confdefs.h"
12090 #include <sys/types.h>
12091 #include <sys/param.h>
12096 #if BYTE_ORDER != BIG_ENDIAN
12103 rm -f conftest.$ac_objext
12104 if { (eval echo $as_me:12104: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
12105 krb_cv_c_bigendian=yes
12107 echo "$as_me: failed program was:" >&5
12108 cat conftest.$ac_ext >&5
12109 krb_cv_c_bigendian=no
12111 rm -f conftest.$ac_objext conftest.$ac_ext
12113 if test "$cross_compiling" = yes; then
12114 { echo "$as_me: error: specify either --enable-bigendian or --enable-littleendian" >&2
12115 { (exit 1); exit; }; }
12117 cat >conftest.$ac_ext <<_ACEOF
12118 #line 12118 "configure"
12119 #include "confdefs.h"
12121 /* Are we little or big endian? From Harbison&Steele. */
12125 char c[sizeof (long)];
12128 exit (u.c[sizeof (long) - 1] == 1);
12131 rm -f conftest$ac_exeext
12132 { (eval echo $as_me:12132: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } &&
12133 (./conftest$ac_exeext) >&5 2>&1;
12135 if test $ac_status = 0; then
12136 krb_cv_c_bigendian=no
12138 echo "$as_me: program exited with status $ac_status" >&5
12139 echo "$as_me: failed program was:" >&5
12140 cat conftest.$ac_ext >&5
12141 krb_cv_c_bigendian=yes
12144 rm -f conftest$ac_exeext conftest.$ac_ext
12150 echo "$as_me:12150: result: $krb_cv_c_bigendian" >&5
12151 echo "${ECHO_T}$krb_cv_c_bigendian" >&6
12152 if test "$krb_cv_c_bigendian" = "yes"; then
12154 cat >>confdefs.h <<\EOF
12155 #define WORDS_BIGENDIAN 1
12158 if test "$krb_cv_c_bigendian_compile" = "yes"; then
12160 cat >>confdefs.h <<\EOF
12161 #define ENDIANESS_IN_SYS_PARAM_H 1
12165 echo "$as_me:12165: checking for inline" >&5
12166 echo $ECHO_N "checking for inline... $ECHO_C" >&6
12167 if test "${ac_cv_c_inline+set}" = set; then
12168 echo $ECHO_N "(cached) $ECHO_C" >&6
12171 for ac_kw in inline __inline__ __inline; do
12172 cat >conftest.$ac_ext <<_ACEOF
12173 #line 12173 "configure"
12174 #include "confdefs.h"
12175 #ifndef __cplusplus
12176 $ac_kw int foo () {return 0; }
12180 rm -f conftest.$ac_objext
12181 if { (eval echo $as_me:12181: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
12182 ac_cv_c_inline=$ac_kw; break
12184 echo "$as_me: failed program was:" >&5
12185 cat conftest.$ac_ext >&5
12187 rm -f conftest.$ac_objext conftest.$ac_ext
12191 echo "$as_me:12191: result: $ac_cv_c_inline" >&5
12192 echo "${ECHO_T}$ac_cv_c_inline" >&6
12193 case $ac_cv_c_inline in
12196 cat >>confdefs.h <<\EOF
12200 *) cat >>confdefs.h <<EOF
12201 #define inline $ac_cv_c_inline
12216 if test "$aix" != no; then
12224 if test "$aix" = 4; then
12231 aix_dynamic_afs=yes
12233 if test "$aix_dynamic_afs" = yes; then
12234 AIX_DYNAMIC_AFS_TRUE=
12235 AIX_DYNAMIC_AFS_FALSE='#'
12237 AIX_DYNAMIC_AFS_TRUE='#'
12238 AIX_DYNAMIC_AFS_FALSE=
12241 echo "$as_me:12241: checking for dlopen" >&5
12242 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12243 if test "${ac_cv_funclib_dlopen+set}" = set; then
12244 echo $ECHO_N "(cached) $ECHO_C" >&6
12247 if eval "test \"\$ac_cv_func_dlopen\" != yes" ; then
12248 ac_save_LIBS="$LIBS"
12249 for ac_lib in "" dl; do
12250 if test -n "$ac_lib"; then
12255 LIBS=" $ac_lib $ac_save_LIBS"
12256 cat >conftest.$ac_ext <<_ACEOF
12257 #line 12257 "configure"
12258 #include "confdefs.h"
12268 rm -f conftest.$ac_objext conftest$ac_exeext
12269 if { (eval echo $as_me:12269: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
12270 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dlopen=$ac_lib; else ac_cv_funclib_dlopen=yes; fi";break
12272 echo "$as_me: failed program was:" >&5
12273 cat conftest.$ac_ext >&5
12275 rm -f conftest$ac_exeext conftest.$ac_ext
12277 eval "ac_cv_funclib_dlopen=\${ac_cv_funclib_dlopen-no}"
12278 LIBS="$ac_save_LIBS"
12283 eval "ac_res=\$ac_cv_funclib_dlopen"
12287 for ac_func in dlopen
12289 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
12290 echo "$as_me:12290: checking for $ac_func" >&5
12291 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12292 if eval "test \"\${$ac_ac_var+set}\" = set"; then
12293 echo $ECHO_N "(cached) $ECHO_C" >&6
12295 cat >conftest.$ac_ext <<_ACEOF
12296 #line 12296 "configure"
12297 #include "confdefs.h"
12298 /* System header to define __stub macros and hopefully few prototypes,
12299 which can conflict with char $ac_func (); below. */
12300 #include <assert.h>
12301 /* Override any gcc2 internal prototype to avoid an error. */
12305 /* We use char because int might match the return type of a gcc2
12306 builtin and then its argument prototype would still apply. */
12313 /* The GNU C library defines this for functions which it implements
12314 to always fail with ENOSYS. Some functions are actually named
12315 something starting with __ and the normal name is an alias. */
12316 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12326 rm -f conftest.$ac_objext conftest$ac_exeext
12327 if { (eval echo $as_me:12327: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
12328 eval "$ac_ac_var=yes"
12330 echo "$as_me: failed program was:" >&5
12331 cat conftest.$ac_ext >&5
12332 eval "$ac_ac_var=no"
12334 rm -f conftest$ac_exeext conftest.$ac_ext
12336 echo "$as_me:12336: result: `eval echo '${'$ac_ac_var'}'`" >&5
12337 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
12338 if test `eval echo '${'$ac_ac_var'}'` = yes; then
12339 cat >>confdefs.h <<EOF
12340 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
12348 eval "ac_tr_func=HAVE_`echo dlopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
12349 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
12350 eval "LIB_dlopen=$ac_res"
12354 eval "ac_cv_func_dlopen=yes"
12356 cat >>confdefs.h <<EOF
12357 #define $ac_tr_func 1
12360 echo "$as_me:12360: result: yes" >&5
12361 echo "${ECHO_T}yes" >&6
12364 eval "ac_cv_func_dlopen=no"
12366 echo "$as_me:12366: result: no" >&5
12367 echo "${ECHO_T}no" >&6
12370 eval "ac_cv_func_dlopen=yes"
12371 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
12372 cat >>confdefs.h <<EOF
12373 #define $ac_tr_func 1
12376 cat >>confdefs.h <<EOF
12377 #define $ac_tr_lib 1
12380 echo "$as_me:12380: result: yes, in $ac_res" >&5
12381 echo "${ECHO_T}yes, in $ac_res" >&6
12385 if test "$aix" != no; then
12386 if test "$aix_dynamic_afs" = yes; then
12387 if test "$ac_cv_funclib_dlopen" = yes; then
12389 elif test "$ac_cv_funclib_dlopen" != no; then
12390 AIX_EXTRA_KAFS="$ac_cv_funclib_dlopen"
12392 AIX_EXTRA_KAFS=-lld
12399 if test "$ac_cv_funclib_dlopen" != no; then
12401 HAVE_DLOPEN_FALSE='#'
12403 HAVE_DLOPEN_TRUE='#'
12412 if test "$irix" != no; then
12420 echo "$as_me:12420: checking for X" >&5
12421 echo $ECHO_N "checking for X... $ECHO_C" >&6
12423 # Check whether --with-x or --without-x was given.
12424 if test "${with_x+set}" = set; then
12428 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
12429 if test "x$with_x" = xno; then
12430 # The user explicitly disabled X.
12433 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
12434 # Both variables are already set.
12437 if test "${ac_cv_have_x+set}" = set; then
12438 echo $ECHO_N "(cached) $ECHO_C" >&6
12440 # One or both of the vars are not set, and there is no cached value.
12441 ac_x_includes=no ac_x_libraries=no
12443 if mkdir conftestdir; then
12445 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
12446 cat >Imakefile <<'EOF'
12448 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
12450 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
12451 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
12452 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
12453 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
12454 for ac_extension in a so sl; do
12455 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
12456 test -f $ac_im_libdir/libX11.$ac_extension; then
12457 ac_im_usrlibdir=$ac_im_libdir; break
12460 # Screen out bogus values from the imake configuration. They are
12461 # bogus both because they are the default anyway, and because
12462 # using them would break gcc on systems where it needs fixed includes.
12463 case $ac_im_incroot in
12465 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
12467 case $ac_im_usrlibdir in
12468 /usr/lib | /lib) ;;
12469 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
12476 # Standard set of common directories for X headers.
12477 # Check X11 before X11Rn because it is often a symlink to the current release.
12489 /usr/local/X11/include
12490 /usr/local/X11R6/include
12491 /usr/local/X11R5/include
12492 /usr/local/X11R4/include
12494 /usr/local/include/X11
12495 /usr/local/include/X11R6
12496 /usr/local/include/X11R5
12497 /usr/local/include/X11R4
12501 /usr/XFree86/include/X11
12505 /usr/unsupported/include
12506 /usr/athena/include
12507 /usr/local/x11r5/include
12508 /usr/lpp/Xamples/include
12510 /usr/openwin/include
12511 /usr/openwin/share/include'
12513 if test "$ac_x_includes" = no; then
12514 # Guess where to find include files, by looking for Intrinsic.h.
12515 # First, try using that file with no special directory specified.
12516 cat >conftest.$ac_ext <<_ACEOF
12517 #line 12517 "configure"
12518 #include "confdefs.h"
12519 #include <X11/Intrinsic.h>
12521 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err"
12522 if { (eval echo $as_me:12522: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then
12523 if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then
12524 ac_cpp_err=$ac_c_preproc_warn_flag
12532 if test -z "$ac_cpp_err"; then
12533 # We can compile using X headers with no special include directory.
12536 cat conftest.err >&5
12537 echo "$as_me: failed program was:" >&5
12538 cat conftest.$ac_ext >&5
12539 for ac_dir in $ac_x_header_dirs; do
12540 if test -r "$ac_dir/X11/Intrinsic.h"; then
12541 ac_x_includes=$ac_dir
12548 fi # $ac_x_includes = no
12550 if test "$ac_x_libraries" = no; then
12551 # Check for the libraries.
12552 # See if we find them without any special options.
12553 # Don't add to $LIBS permanently.
12556 cat >conftest.$ac_ext <<_ACEOF
12557 #line 12557 "configure"
12558 #include "confdefs.h"
12559 #include <X11/Intrinsic.h>
12568 rm -f conftest.$ac_objext conftest$ac_exeext
12569 if { (eval echo $as_me:12569: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
12571 # We can link X programs with no special library path.
12574 echo "$as_me: failed program was:" >&5
12575 cat conftest.$ac_ext >&5
12577 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
12579 # Don't even attempt the hair of trying to link an X program!
12580 for ac_extension in a so sl; do
12581 if test -r $ac_dir/libXt.$ac_extension; then
12582 ac_x_libraries=$ac_dir
12588 rm -f conftest$ac_exeext conftest.$ac_ext
12589 fi # $ac_x_libraries = no
12591 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
12592 # Didn't find X anywhere. Cache the known absence of X.
12593 ac_cv_have_x="have_x=no"
12595 # Record where we found X for the cache.
12596 ac_cv_have_x="have_x=yes \
12597 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
12601 eval "$ac_cv_have_x"
12604 if test "$have_x" != yes; then
12605 echo "$as_me:12605: result: $have_x" >&5
12606 echo "${ECHO_T}$have_x" >&6
12609 # If each of the values was on the command line, it overrides each guess.
12610 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
12611 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
12612 # Update the cache value to reflect the command line values.
12613 ac_cv_have_x="have_x=yes \
12614 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
12615 echo "$as_me:12615: result: libraries $x_libraries, headers $x_includes" >&5
12616 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
12619 if test "$no_x" = yes; then
12620 # Not all programs may use this symbol, but it does not hurt to define it.
12622 cat >>confdefs.h <<\EOF
12623 #define X_DISPLAY_MISSING 1
12626 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
12628 if test -n "$x_includes"; then
12629 X_CFLAGS="$X_CFLAGS -I$x_includes"
12632 # It would also be nice to do this for all -L options, not just this one.
12633 if test -n "$x_libraries"; then
12634 X_LIBS="$X_LIBS -L$x_libraries"
12635 # For Solaris; some versions of Sun CC require a space after -R and
12636 # others require no space. Words are not sufficient . . . .
12637 case `(uname -sr) 2>/dev/null` in
12639 echo "$as_me:12639: checking whether -R must be followed by a space" >&5
12640 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
12641 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
12642 cat >conftest.$ac_ext <<_ACEOF
12643 #line 12643 "configure"
12644 #include "confdefs.h"
12654 rm -f conftest.$ac_objext conftest$ac_exeext
12655 if { (eval echo $as_me:12655: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
12658 echo "$as_me: failed program was:" >&5
12659 cat conftest.$ac_ext >&5
12662 rm -f conftest$ac_exeext conftest.$ac_ext
12663 if test $ac_R_nospace = yes; then
12664 echo "$as_me:12664: result: no" >&5
12665 echo "${ECHO_T}no" >&6
12666 X_LIBS="$X_LIBS -R$x_libraries"
12668 LIBS="$ac_xsave_LIBS -R $x_libraries"
12669 cat >conftest.$ac_ext <<_ACEOF
12670 #line 12670 "configure"
12671 #include "confdefs.h"
12681 rm -f conftest.$ac_objext conftest$ac_exeext
12682 if { (eval echo $as_me:12682: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
12685 echo "$as_me: failed program was:" >&5
12686 cat conftest.$ac_ext >&5
12689 rm -f conftest$ac_exeext conftest.$ac_ext
12690 if test $ac_R_space = yes; then
12691 echo "$as_me:12691: result: yes" >&5
12692 echo "${ECHO_T}yes" >&6
12693 X_LIBS="$X_LIBS -R $x_libraries"
12695 echo "$as_me:12695: result: neither works" >&5
12696 echo "${ECHO_T}neither works" >&6
12699 LIBS=$ac_xsave_LIBS
12703 # Check for system-dependent libraries X programs must link with.
12704 # Do this before checking for the system-independent R6 libraries
12705 # (-lICE), since we may need -lsocket or whatever for X linking.
12707 if test "$ISC" = yes; then
12708 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
12710 # Martyn Johnson says this is needed for Ultrix, if the X
12711 # libraries were built with DECnet support. And Karl Berry says
12712 # the Alpha needs dnet_stub (dnet does not exist).
12714 echo "$as_me:12714: checking for dnet_ntoa in -ldnet" >&5
12715 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
12716 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
12717 echo $ECHO_N "(cached) $ECHO_C" >&6
12719 ac_check_lib_save_LIBS=$LIBS
12720 LIBS="-ldnet $LIBS"
12721 cat >conftest.$ac_ext <<_ACEOF
12722 #line 12722 "configure"
12723 #include "confdefs.h"
12725 /* Override any gcc2 internal prototype to avoid an error. */
12729 /* We use char because int might match the return type of a gcc2
12730 builtin and then its argument prototype would still apply. */
12740 rm -f conftest.$ac_objext conftest$ac_exeext
12741 if { (eval echo $as_me:12741: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
12742 ac_cv_lib_dnet_dnet_ntoa=yes
12744 echo "$as_me: failed program was:" >&5
12745 cat conftest.$ac_ext >&5
12746 ac_cv_lib_dnet_dnet_ntoa=no
12748 rm -f conftest$ac_exeext conftest.$ac_ext
12749 LIBS=$ac_check_lib_save_LIBS
12751 echo "$as_me:12751: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
12752 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
12753 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
12754 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
12757 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
12759 echo "$as_me:12759: checking for dnet_ntoa in -ldnet_stub" >&5
12760 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
12761 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
12762 echo $ECHO_N "(cached) $ECHO_C" >&6
12764 ac_check_lib_save_LIBS=$LIBS
12765 LIBS="-ldnet_stub $LIBS"
12766 cat >conftest.$ac_ext <<_ACEOF
12767 #line 12767 "configure"
12768 #include "confdefs.h"
12770 /* Override any gcc2 internal prototype to avoid an error. */
12774 /* We use char because int might match the return type of a gcc2
12775 builtin and then its argument prototype would still apply. */
12785 rm -f conftest.$ac_objext conftest$ac_exeext
12786 if { (eval echo $as_me:12786: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
12787 ac_cv_lib_dnet_stub_dnet_ntoa=yes
12789 echo "$as_me: failed program was:" >&5
12790 cat conftest.$ac_ext >&5
12791 ac_cv_lib_dnet_stub_dnet_ntoa=no
12793 rm -f conftest$ac_exeext conftest.$ac_ext
12794 LIBS=$ac_check_lib_save_LIBS
12796 echo "$as_me:12796: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
12797 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
12798 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
12799 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
12804 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
12805 # to get the SysV transport functions.
12806 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
12808 # The nsl library prevents programs from opening the X display
12809 # on Irix 5.2, according to T.E. Dickey.
12810 # The functions gethostbyname, getservbyname, and inet_addr are
12811 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
12812 echo "$as_me:12812: checking for gethostbyname" >&5
12813 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
12814 if test "${ac_cv_func_gethostbyname+set}" = set; then
12815 echo $ECHO_N "(cached) $ECHO_C" >&6
12817 cat >conftest.$ac_ext <<_ACEOF
12818 #line 12818 "configure"
12819 #include "confdefs.h"
12820 /* System header to define __stub macros and hopefully few prototypes,
12821 which can conflict with char gethostbyname (); below. */
12822 #include <assert.h>
12823 /* Override any gcc2 internal prototype to avoid an error. */
12827 /* We use char because int might match the return type of a gcc2
12828 builtin and then its argument prototype would still apply. */
12829 char gethostbyname ();
12835 /* The GNU C library defines this for functions which it implements
12836 to always fail with ENOSYS. Some functions are actually named
12837 something starting with __ and the normal name is an alias. */
12838 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
12848 rm -f conftest.$ac_objext conftest$ac_exeext
12849 if { (eval echo $as_me:12849: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
12850 ac_cv_func_gethostbyname=yes
12852 echo "$as_me: failed program was:" >&5
12853 cat conftest.$ac_ext >&5
12854 ac_cv_func_gethostbyname=no
12856 rm -f conftest$ac_exeext conftest.$ac_ext
12858 echo "$as_me:12858: result: $ac_cv_func_gethostbyname" >&5
12859 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
12861 if test $ac_cv_func_gethostbyname = no; then
12863 echo "$as_me:12863: checking for gethostbyname in -lnsl" >&5
12864 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
12865 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
12866 echo $ECHO_N "(cached) $ECHO_C" >&6
12868 ac_check_lib_save_LIBS=$LIBS
12870 cat >conftest.$ac_ext <<_ACEOF
12871 #line 12871 "configure"
12872 #include "confdefs.h"
12874 /* Override any gcc2 internal prototype to avoid an error. */
12878 /* We use char because int might match the return type of a gcc2
12879 builtin and then its argument prototype would still apply. */
12880 char gethostbyname ();
12889 rm -f conftest.$ac_objext conftest$ac_exeext
12890 if { (eval echo $as_me:12890: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
12891 ac_cv_lib_nsl_gethostbyname=yes
12893 echo "$as_me: failed program was:" >&5
12894 cat conftest.$ac_ext >&5
12895 ac_cv_lib_nsl_gethostbyname=no
12897 rm -f conftest$ac_exeext conftest.$ac_ext
12898 LIBS=$ac_check_lib_save_LIBS
12900 echo "$as_me:12900: result: $ac_cv_lib_nsl_gethostbyname" >&5
12901 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
12902 if test $ac_cv_lib_nsl_gethostbyname = yes; then
12903 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
12906 if test $ac_cv_lib_nsl_gethostbyname = no; then
12908 echo "$as_me:12908: checking for gethostbyname in -lbsd" >&5
12909 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
12910 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
12911 echo $ECHO_N "(cached) $ECHO_C" >&6
12913 ac_check_lib_save_LIBS=$LIBS
12915 cat >conftest.$ac_ext <<_ACEOF
12916 #line 12916 "configure"
12917 #include "confdefs.h"
12919 /* Override any gcc2 internal prototype to avoid an error. */
12923 /* We use char because int might match the return type of a gcc2
12924 builtin and then its argument prototype would still apply. */
12925 char gethostbyname ();
12934 rm -f conftest.$ac_objext conftest$ac_exeext
12935 if { (eval echo $as_me:12935: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
12936 ac_cv_lib_bsd_gethostbyname=yes
12938 echo "$as_me: failed program was:" >&5
12939 cat conftest.$ac_ext >&5
12940 ac_cv_lib_bsd_gethostbyname=no
12942 rm -f conftest$ac_exeext conftest.$ac_ext
12943 LIBS=$ac_check_lib_save_LIBS
12945 echo "$as_me:12945: result: $ac_cv_lib_bsd_gethostbyname" >&5
12946 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
12947 if test $ac_cv_lib_bsd_gethostbyname = yes; then
12948 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
12954 # lieder@skyler.mavd.honeywell.com says without -lsocket,
12955 # socket/setsockopt and other routines are undefined under SCO ODT
12956 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
12957 # on later versions), says Simon Leinen: it contains gethostby*
12958 # variants that don't use the nameserver (or something). -lsocket
12959 # must be given before -lnsl if both are needed. We assume that
12960 # if connect needs -lnsl, so does gethostbyname.
12961 echo "$as_me:12961: checking for connect" >&5
12962 echo $ECHO_N "checking for connect... $ECHO_C" >&6
12963 if test "${ac_cv_func_connect+set}" = set; then
12964 echo $ECHO_N "(cached) $ECHO_C" >&6
12966 cat >conftest.$ac_ext <<_ACEOF
12967 #line 12967 "configure"
12968 #include "confdefs.h"
12969 /* System header to define __stub macros and hopefully few prototypes,
12970 which can conflict with char connect (); below. */
12971 #include <assert.h>
12972 /* Override any gcc2 internal prototype to avoid an error. */
12976 /* We use char because int might match the return type of a gcc2
12977 builtin and then its argument prototype would still apply. */
12984 /* The GNU C library defines this for functions which it implements
12985 to always fail with ENOSYS. Some functions are actually named
12986 something starting with __ and the normal name is an alias. */
12987 #if defined (__stub_connect) || defined (__stub___connect)
12997 rm -f conftest.$ac_objext conftest$ac_exeext
12998 if { (eval echo $as_me:12998: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
12999 ac_cv_func_connect=yes
13001 echo "$as_me: failed program was:" >&5
13002 cat conftest.$ac_ext >&5
13003 ac_cv_func_connect=no
13005 rm -f conftest$ac_exeext conftest.$ac_ext
13007 echo "$as_me:13007: result: $ac_cv_func_connect" >&5
13008 echo "${ECHO_T}$ac_cv_func_connect" >&6
13010 if test $ac_cv_func_connect = no; then
13012 echo "$as_me:13012: checking for connect in -lsocket" >&5
13013 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
13014 if test "${ac_cv_lib_socket_connect+set}" = set; then
13015 echo $ECHO_N "(cached) $ECHO_C" >&6
13017 ac_check_lib_save_LIBS=$LIBS
13018 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
13019 cat >conftest.$ac_ext <<_ACEOF
13020 #line 13020 "configure"
13021 #include "confdefs.h"
13023 /* Override any gcc2 internal prototype to avoid an error. */
13027 /* We use char because int might match the return type of a gcc2
13028 builtin and then its argument prototype would still apply. */
13038 rm -f conftest.$ac_objext conftest$ac_exeext
13039 if { (eval echo $as_me:13039: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
13040 ac_cv_lib_socket_connect=yes
13042 echo "$as_me: failed program was:" >&5
13043 cat conftest.$ac_ext >&5
13044 ac_cv_lib_socket_connect=no
13046 rm -f conftest$ac_exeext conftest.$ac_ext
13047 LIBS=$ac_check_lib_save_LIBS
13049 echo "$as_me:13049: result: $ac_cv_lib_socket_connect" >&5
13050 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
13051 if test $ac_cv_lib_socket_connect = yes; then
13052 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
13057 # Guillermo Gomez says -lposix is necessary on A/UX.
13058 echo "$as_me:13058: checking for remove" >&5
13059 echo $ECHO_N "checking for remove... $ECHO_C" >&6
13060 if test "${ac_cv_func_remove+set}" = set; then
13061 echo $ECHO_N "(cached) $ECHO_C" >&6
13063 cat >conftest.$ac_ext <<_ACEOF
13064 #line 13064 "configure"
13065 #include "confdefs.h"
13066 /* System header to define __stub macros and hopefully few prototypes,
13067 which can conflict with char remove (); below. */
13068 #include <assert.h>
13069 /* Override any gcc2 internal prototype to avoid an error. */
13073 /* We use char because int might match the return type of a gcc2
13074 builtin and then its argument prototype would still apply. */
13081 /* The GNU C library defines this for functions which it implements
13082 to always fail with ENOSYS. Some functions are actually named
13083 something starting with __ and the normal name is an alias. */
13084 #if defined (__stub_remove) || defined (__stub___remove)
13094 rm -f conftest.$ac_objext conftest$ac_exeext
13095 if { (eval echo $as_me:13095: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
13096 ac_cv_func_remove=yes
13098 echo "$as_me: failed program was:" >&5
13099 cat conftest.$ac_ext >&5
13100 ac_cv_func_remove=no
13102 rm -f conftest$ac_exeext conftest.$ac_ext
13104 echo "$as_me:13104: result: $ac_cv_func_remove" >&5
13105 echo "${ECHO_T}$ac_cv_func_remove" >&6
13107 if test $ac_cv_func_remove = no; then
13109 echo "$as_me:13109: checking for remove in -lposix" >&5
13110 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
13111 if test "${ac_cv_lib_posix_remove+set}" = set; then
13112 echo $ECHO_N "(cached) $ECHO_C" >&6
13114 ac_check_lib_save_LIBS=$LIBS
13115 LIBS="-lposix $LIBS"
13116 cat >conftest.$ac_ext <<_ACEOF
13117 #line 13117 "configure"
13118 #include "confdefs.h"
13120 /* Override any gcc2 internal prototype to avoid an error. */
13124 /* We use char because int might match the return type of a gcc2
13125 builtin and then its argument prototype would still apply. */
13135 rm -f conftest.$ac_objext conftest$ac_exeext
13136 if { (eval echo $as_me:13136: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
13137 ac_cv_lib_posix_remove=yes
13139 echo "$as_me: failed program was:" >&5
13140 cat conftest.$ac_ext >&5
13141 ac_cv_lib_posix_remove=no
13143 rm -f conftest$ac_exeext conftest.$ac_ext
13144 LIBS=$ac_check_lib_save_LIBS
13146 echo "$as_me:13146: result: $ac_cv_lib_posix_remove" >&5
13147 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
13148 if test $ac_cv_lib_posix_remove = yes; then
13149 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
13154 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
13155 echo "$as_me:13155: checking for shmat" >&5
13156 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
13157 if test "${ac_cv_func_shmat+set}" = set; then
13158 echo $ECHO_N "(cached) $ECHO_C" >&6
13160 cat >conftest.$ac_ext <<_ACEOF
13161 #line 13161 "configure"
13162 #include "confdefs.h"
13163 /* System header to define __stub macros and hopefully few prototypes,
13164 which can conflict with char shmat (); below. */
13165 #include <assert.h>
13166 /* Override any gcc2 internal prototype to avoid an error. */
13170 /* We use char because int might match the return type of a gcc2
13171 builtin and then its argument prototype would still apply. */
13178 /* The GNU C library defines this for functions which it implements
13179 to always fail with ENOSYS. Some functions are actually named
13180 something starting with __ and the normal name is an alias. */
13181 #if defined (__stub_shmat) || defined (__stub___shmat)
13191 rm -f conftest.$ac_objext conftest$ac_exeext
13192 if { (eval echo $as_me:13192: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
13193 ac_cv_func_shmat=yes
13195 echo "$as_me: failed program was:" >&5
13196 cat conftest.$ac_ext >&5
13197 ac_cv_func_shmat=no
13199 rm -f conftest$ac_exeext conftest.$ac_ext
13201 echo "$as_me:13201: result: $ac_cv_func_shmat" >&5
13202 echo "${ECHO_T}$ac_cv_func_shmat" >&6
13204 if test $ac_cv_func_shmat = no; then
13206 echo "$as_me:13206: checking for shmat in -lipc" >&5
13207 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
13208 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
13209 echo $ECHO_N "(cached) $ECHO_C" >&6
13211 ac_check_lib_save_LIBS=$LIBS
13213 cat >conftest.$ac_ext <<_ACEOF
13214 #line 13214 "configure"
13215 #include "confdefs.h"
13217 /* Override any gcc2 internal prototype to avoid an error. */
13221 /* We use char because int might match the return type of a gcc2
13222 builtin and then its argument prototype would still apply. */
13232 rm -f conftest.$ac_objext conftest$ac_exeext
13233 if { (eval echo $as_me:13233: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
13234 ac_cv_lib_ipc_shmat=yes
13236 echo "$as_me: failed program was:" >&5
13237 cat conftest.$ac_ext >&5
13238 ac_cv_lib_ipc_shmat=no
13240 rm -f conftest$ac_exeext conftest.$ac_ext
13241 LIBS=$ac_check_lib_save_LIBS
13243 echo "$as_me:13243: result: $ac_cv_lib_ipc_shmat" >&5
13244 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
13245 if test $ac_cv_lib_ipc_shmat = yes; then
13246 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
13252 # Check for libraries that X11R6 Xt/Xaw programs need.
13253 ac_save_LDFLAGS=$LDFLAGS
13254 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
13255 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
13256 # check for ICE first), but we must link in the order -lSM -lICE or
13257 # we get undefined symbols. So assume we have SM if we have ICE.
13258 # These have to be linked with before -lX11, unlike the other
13259 # libraries we check for below, so use a different variable.
13260 # John Interrante, Karl Berry
13262 echo "$as_me:13262: checking for IceConnectionNumber in -lICE" >&5
13263 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
13264 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
13265 echo $ECHO_N "(cached) $ECHO_C" >&6
13267 ac_check_lib_save_LIBS=$LIBS
13268 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
13269 cat >conftest.$ac_ext <<_ACEOF
13270 #line 13270 "configure"
13271 #include "confdefs.h"
13273 /* Override any gcc2 internal prototype to avoid an error. */
13277 /* We use char because int might match the return type of a gcc2
13278 builtin and then its argument prototype would still apply. */
13279 char IceConnectionNumber ();
13283 IceConnectionNumber ();
13288 rm -f conftest.$ac_objext conftest$ac_exeext
13289 if { (eval echo $as_me:13289: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
13290 ac_cv_lib_ICE_IceConnectionNumber=yes
13292 echo "$as_me: failed program was:" >&5
13293 cat conftest.$ac_ext >&5
13294 ac_cv_lib_ICE_IceConnectionNumber=no
13296 rm -f conftest$ac_exeext conftest.$ac_ext
13297 LIBS=$ac_check_lib_save_LIBS
13299 echo "$as_me:13299: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
13300 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
13301 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
13302 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
13305 LDFLAGS=$ac_save_LDFLAGS
13309 # try to figure out if we need any additional ld flags, like -R
13310 # and yes, the autoconf X test is utterly broken
13311 if test "$no_x" != yes; then
13312 echo "$as_me:13312: checking for special X linker flags" >&5
13313 echo $ECHO_N "checking for special X linker flags... $ECHO_C" >&6
13314 if test "${krb_cv_sys_x_libs_rpath+set}" = set; then
13315 echo $ECHO_N "(cached) $ECHO_C" >&6
13318 ac_save_libs="$LIBS"
13319 ac_save_cflags="$CFLAGS"
13320 CFLAGS="$CFLAGS $X_CFLAGS"
13321 krb_cv_sys_x_libs_rpath=""
13322 krb_cv_sys_x_libs=""
13323 for rflag in "" "-R" "-R " "-rpath "; do
13324 if test "$rflag" = ""; then
13328 for flag in $X_LIBS; do
13331 foo="$foo $flag `echo $flag | sed \"s/-L/$rflag/\"`"
13339 LIBS="$ac_save_libs $foo $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
13340 if test "$cross_compiling" = yes; then
13341 { echo "$as_me: error: cannot run test program while cross compiling" >&2
13342 { (exit 1); exit; }; }
13344 cat >conftest.$ac_ext <<_ACEOF
13345 #line 13345 "configure"
13346 #include "confdefs.h"
13348 #include <X11/Xlib.h>
13351 XOpenDisplay(NULL);
13359 rm -f conftest$ac_exeext
13360 { (eval echo $as_me:13360: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } &&
13361 (./conftest$ac_exeext) >&5 2>&1;
13363 if test $ac_status = 0; then
13364 krb_cv_sys_x_libs_rpath="$rflag"; krb_cv_sys_x_libs="$foo"; break
13366 echo "$as_me: program exited with status $ac_status" >&5
13367 echo "$as_me: failed program was:" >&5
13368 cat conftest.$ac_ext >&5
13372 rm -f conftest$ac_exeext conftest.$ac_ext
13376 LIBS="$ac_save_libs"
13377 CFLAGS="$ac_save_cflags"
13380 echo "$as_me:13380: result: $krb_cv_sys_x_libs_rpath" >&5
13381 echo "${ECHO_T}$krb_cv_sys_x_libs_rpath" >&6
13382 X_LIBS="$krb_cv_sys_x_libs"
13385 if test "$no_x" != yes; then
13393 save_CFLAGS="$CFLAGS"
13394 CFLAGS="$X_CFLAGS $CFLAGS"
13396 LIBS="$X_PRE_LIBS $X_EXTRA_LIBS $LIBS"
13397 save_LDFLAGS="$LDFLAGS"
13398 LDFLAGS="$LDFLAGS $X_LIBS"
13400 echo "$as_me:13400: checking for XauWriteAuth" >&5
13401 echo $ECHO_N "checking for XauWriteAuth... $ECHO_C" >&6
13402 if test "${ac_cv_funclib_XauWriteAuth+set}" = set; then
13403 echo $ECHO_N "(cached) $ECHO_C" >&6
13406 if eval "test \"\$ac_cv_func_XauWriteAuth\" != yes" ; then
13407 ac_save_LIBS="$LIBS"
13408 for ac_lib in "" X11 Xau; do
13409 if test -n "$ac_lib"; then
13414 LIBS=" $ac_lib $ac_save_LIBS"
13415 cat >conftest.$ac_ext <<_ACEOF
13416 #line 13416 "configure"
13417 #include "confdefs.h"
13427 rm -f conftest.$ac_objext conftest$ac_exeext
13428 if { (eval echo $as_me:13428: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
13429 eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauWriteAuth=$ac_lib; else ac_cv_funclib_XauWriteAuth=yes; fi";break
13431 echo "$as_me: failed program was:" >&5
13432 cat conftest.$ac_ext >&5
13434 rm -f conftest$ac_exeext conftest.$ac_ext
13436 eval "ac_cv_funclib_XauWriteAuth=\${ac_cv_funclib_XauWriteAuth-no}"
13437 LIBS="$ac_save_LIBS"
13442 eval "ac_res=\$ac_cv_funclib_XauWriteAuth"
13446 for ac_func in XauWriteAuth
13448 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
13449 echo "$as_me:13449: checking for $ac_func" >&5
13450 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13451 if eval "test \"\${$ac_ac_var+set}\" = set"; then
13452 echo $ECHO_N "(cached) $ECHO_C" >&6
13454 cat >conftest.$ac_ext <<_ACEOF
13455 #line 13455 "configure"
13456 #include "confdefs.h"
13457 /* System header to define __stub macros and hopefully few prototypes,
13458 which can conflict with char $ac_func (); below. */
13459 #include <assert.h>
13460 /* Override any gcc2 internal prototype to avoid an error. */
13464 /* We use char because int might match the return type of a gcc2
13465 builtin and then its argument prototype would still apply. */
13472 /* The GNU C library defines this for functions which it implements
13473 to always fail with ENOSYS. Some functions are actually named
13474 something starting with __ and the normal name is an alias. */
13475 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13485 rm -f conftest.$ac_objext conftest$ac_exeext
13486 if { (eval echo $as_me:13486: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
13487 eval "$ac_ac_var=yes"
13489 echo "$as_me: failed program was:" >&5
13490 cat conftest.$ac_ext >&5
13491 eval "$ac_ac_var=no"
13493 rm -f conftest$ac_exeext conftest.$ac_ext
13495 echo "$as_me:13495: result: `eval echo '${'$ac_ac_var'}'`" >&5
13496 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
13497 if test `eval echo '${'$ac_ac_var'}'` = yes; then
13498 cat >>confdefs.h <<EOF
13499 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
13507 eval "ac_tr_func=HAVE_`echo XauWriteAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
13508 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
13509 eval "LIB_XauWriteAuth=$ac_res"
13513 eval "ac_cv_func_XauWriteAuth=yes"
13514 eval "LIB_XauWriteAuth="
13515 cat >>confdefs.h <<EOF
13516 #define $ac_tr_func 1
13519 echo "$as_me:13519: result: yes" >&5
13520 echo "${ECHO_T}yes" >&6
13523 eval "ac_cv_func_XauWriteAuth=no"
13524 eval "LIB_XauWriteAuth="
13525 echo "$as_me:13525: result: no" >&5
13526 echo "${ECHO_T}no" >&6
13529 eval "ac_cv_func_XauWriteAuth=yes"
13530 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
13531 cat >>confdefs.h <<EOF
13532 #define $ac_tr_func 1
13535 cat >>confdefs.h <<EOF
13536 #define $ac_tr_lib 1
13539 echo "$as_me:13539: result: yes, in $ac_res" >&5
13540 echo "${ECHO_T}yes, in $ac_res" >&6
13545 LIBS="$LIB_XauWriteAuth $LIBS"
13547 echo "$as_me:13547: checking for XauReadAuth" >&5
13548 echo $ECHO_N "checking for XauReadAuth... $ECHO_C" >&6
13549 if test "${ac_cv_funclib_XauReadAuth+set}" = set; then
13550 echo $ECHO_N "(cached) $ECHO_C" >&6
13553 if eval "test \"\$ac_cv_func_XauReadAuth\" != yes" ; then
13554 ac_save_LIBS="$LIBS"
13555 for ac_lib in "" X11 Xau; do
13556 if test -n "$ac_lib"; then
13561 LIBS=" $ac_lib $ac_save_LIBS"
13562 cat >conftest.$ac_ext <<_ACEOF
13563 #line 13563 "configure"
13564 #include "confdefs.h"
13574 rm -f conftest.$ac_objext conftest$ac_exeext
13575 if { (eval echo $as_me:13575: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
13576 eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauReadAuth=$ac_lib; else ac_cv_funclib_XauReadAuth=yes; fi";break
13578 echo "$as_me: failed program was:" >&5
13579 cat conftest.$ac_ext >&5
13581 rm -f conftest$ac_exeext conftest.$ac_ext
13583 eval "ac_cv_funclib_XauReadAuth=\${ac_cv_funclib_XauReadAuth-no}"
13584 LIBS="$ac_save_LIBS"
13589 eval "ac_res=\$ac_cv_funclib_XauReadAuth"
13593 for ac_func in XauReadAuth
13595 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
13596 echo "$as_me:13596: checking for $ac_func" >&5
13597 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13598 if eval "test \"\${$ac_ac_var+set}\" = set"; then
13599 echo $ECHO_N "(cached) $ECHO_C" >&6
13601 cat >conftest.$ac_ext <<_ACEOF
13602 #line 13602 "configure"
13603 #include "confdefs.h"
13604 /* System header to define __stub macros and hopefully few prototypes,
13605 which can conflict with char $ac_func (); below. */
13606 #include <assert.h>
13607 /* Override any gcc2 internal prototype to avoid an error. */
13611 /* We use char because int might match the return type of a gcc2
13612 builtin and then its argument prototype would still apply. */
13619 /* The GNU C library defines this for functions which it implements
13620 to always fail with ENOSYS. Some functions are actually named
13621 something starting with __ and the normal name is an alias. */
13622 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13632 rm -f conftest.$ac_objext conftest$ac_exeext
13633 if { (eval echo $as_me:13633: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
13634 eval "$ac_ac_var=yes"
13636 echo "$as_me: failed program was:" >&5
13637 cat conftest.$ac_ext >&5
13638 eval "$ac_ac_var=no"
13640 rm -f conftest$ac_exeext conftest.$ac_ext
13642 echo "$as_me:13642: result: `eval echo '${'$ac_ac_var'}'`" >&5
13643 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
13644 if test `eval echo '${'$ac_ac_var'}'` = yes; then
13645 cat >>confdefs.h <<EOF
13646 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
13654 eval "ac_tr_func=HAVE_`echo XauReadAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
13655 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
13656 eval "LIB_XauReadAuth=$ac_res"
13660 eval "ac_cv_func_XauReadAuth=yes"
13661 eval "LIB_XauReadAuth="
13662 cat >>confdefs.h <<EOF
13663 #define $ac_tr_func 1
13666 echo "$as_me:13666: result: yes" >&5
13667 echo "${ECHO_T}yes" >&6
13670 eval "ac_cv_func_XauReadAuth=no"
13671 eval "LIB_XauReadAuth="
13672 echo "$as_me:13672: result: no" >&5
13673 echo "${ECHO_T}no" >&6
13676 eval "ac_cv_func_XauReadAuth=yes"
13677 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
13678 cat >>confdefs.h <<EOF
13679 #define $ac_tr_func 1
13682 cat >>confdefs.h <<EOF
13683 #define $ac_tr_lib 1
13686 echo "$as_me:13686: result: yes, in $ac_res" >&5
13687 echo "${ECHO_T}yes, in $ac_res" >&6
13691 LIBS="$LIB_XauReadAauth $LIBS"
13693 echo "$as_me:13693: checking for XauFileName" >&5
13694 echo $ECHO_N "checking for XauFileName... $ECHO_C" >&6
13695 if test "${ac_cv_funclib_XauFileName+set}" = set; then
13696 echo $ECHO_N "(cached) $ECHO_C" >&6
13699 if eval "test \"\$ac_cv_func_XauFileName\" != yes" ; then
13700 ac_save_LIBS="$LIBS"
13701 for ac_lib in "" X11 Xau; do
13702 if test -n "$ac_lib"; then
13707 LIBS=" $ac_lib $ac_save_LIBS"
13708 cat >conftest.$ac_ext <<_ACEOF
13709 #line 13709 "configure"
13710 #include "confdefs.h"
13720 rm -f conftest.$ac_objext conftest$ac_exeext
13721 if { (eval echo $as_me:13721: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
13722 eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauFileName=$ac_lib; else ac_cv_funclib_XauFileName=yes; fi";break
13724 echo "$as_me: failed program was:" >&5
13725 cat conftest.$ac_ext >&5
13727 rm -f conftest$ac_exeext conftest.$ac_ext
13729 eval "ac_cv_funclib_XauFileName=\${ac_cv_funclib_XauFileName-no}"
13730 LIBS="$ac_save_LIBS"
13735 eval "ac_res=\$ac_cv_funclib_XauFileName"
13739 for ac_func in XauFileName
13741 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
13742 echo "$as_me:13742: checking for $ac_func" >&5
13743 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13744 if eval "test \"\${$ac_ac_var+set}\" = set"; then
13745 echo $ECHO_N "(cached) $ECHO_C" >&6
13747 cat >conftest.$ac_ext <<_ACEOF
13748 #line 13748 "configure"
13749 #include "confdefs.h"
13750 /* System header to define __stub macros and hopefully few prototypes,
13751 which can conflict with char $ac_func (); below. */
13752 #include <assert.h>
13753 /* Override any gcc2 internal prototype to avoid an error. */
13757 /* We use char because int might match the return type of a gcc2
13758 builtin and then its argument prototype would still apply. */
13765 /* The GNU C library defines this for functions which it implements
13766 to always fail with ENOSYS. Some functions are actually named
13767 something starting with __ and the normal name is an alias. */
13768 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13778 rm -f conftest.$ac_objext conftest$ac_exeext
13779 if { (eval echo $as_me:13779: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
13780 eval "$ac_ac_var=yes"
13782 echo "$as_me: failed program was:" >&5
13783 cat conftest.$ac_ext >&5
13784 eval "$ac_ac_var=no"
13786 rm -f conftest$ac_exeext conftest.$ac_ext
13788 echo "$as_me:13788: result: `eval echo '${'$ac_ac_var'}'`" >&5
13789 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
13790 if test `eval echo '${'$ac_ac_var'}'` = yes; then
13791 cat >>confdefs.h <<EOF
13792 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
13800 eval "ac_tr_func=HAVE_`echo XauFileName | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
13801 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
13802 eval "LIB_XauFileName=$ac_res"
13806 eval "ac_cv_func_XauFileName=yes"
13807 eval "LIB_XauFileName="
13808 cat >>confdefs.h <<EOF
13809 #define $ac_tr_func 1
13812 echo "$as_me:13812: result: yes" >&5
13813 echo "${ECHO_T}yes" >&6
13816 eval "ac_cv_func_XauFileName=no"
13817 eval "LIB_XauFileName="
13818 echo "$as_me:13818: result: no" >&5
13819 echo "${ECHO_T}no" >&6
13822 eval "ac_cv_func_XauFileName=yes"
13823 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
13824 cat >>confdefs.h <<EOF
13825 #define $ac_tr_func 1
13828 cat >>confdefs.h <<EOF
13829 #define $ac_tr_lib 1
13832 echo "$as_me:13832: result: yes, in $ac_res" >&5
13833 echo "${ECHO_T}yes, in $ac_res" >&6
13839 case "$ac_cv_funclib_XauWriteAuth" in
13842 *) if test "$ac_cv_funclib_XauReadAuth" = yes; then
13843 if test "$ac_cv_funclib_XauFileName" = yes; then
13844 LIB_XauReadAuth="$LIB_XauWriteAuth"
13846 LIB_XauReadAuth="$LIB_XauWriteAuth $LIB_XauFileName"
13849 if test "$ac_cv_funclib_XauFileName" = yes; then
13850 LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth"
13852 LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth $LIB_XauFileName"
13858 if test "$AUTOMAKE" != ""; then
13860 if test "$ac_cv_func_XauWriteAuth" != "yes"; then
13861 NEED_WRITEAUTH_TRUE=
13862 NEED_WRITEAUTH_FALSE='#'
13864 NEED_WRITEAUTH_TRUE='#'
13865 NEED_WRITEAUTH_FALSE=
13869 if test "$ac_cv_func_XauWriteAuth" != "yes"; then
13870 NEED_WRITEAUTH_TRUE=
13871 NEED_WRITEAUTH_FALSE='#'
13873 NEED_WRITEAUTH_TRUE='#'
13874 NEED_WRITEAUTH_FALSE=
13877 CFLAGS=$save_CFLAGS
13879 LDFLAGS=$save_LDFLAGS
13881 echo "$as_me:13881: checking for an ANSI C-conforming const" >&5
13882 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13883 if test "${ac_cv_c_const+set}" = set; then
13884 echo $ECHO_N "(cached) $ECHO_C" >&6
13886 cat >conftest.$ac_ext <<_ACEOF
13887 #line 13887 "configure"
13888 #include "confdefs.h"
13893 /* FIXME: Include the comments suggested by Paul. */
13894 #ifndef __cplusplus
13895 /* Ultrix mips cc rejects this. */
13896 typedef int charset[2];
13898 /* SunOS 4.1.1 cc rejects this. */
13899 char const *const *ccp;
13901 /* NEC SVR4.0.2 mips cc rejects this. */
13902 struct point {int x, y;};
13903 static struct point const zero = {0,0};
13904 /* AIX XL C 1.02.0.0 rejects this.
13905 It does not let you subtract one const X* pointer from another in
13906 an arm of an if-expression whose if-part is not a constant
13908 const char *g = "string";
13909 ccp = &g + (g ? g-g : 0);
13910 /* HPUX 7.0 cc rejects these. */
13913 ccp = (char const *const *) p;
13914 { /* SCO 3.2v4 cc rejects this. */
13916 char const *s = 0 ? (char *) 0 : (char const *) 0;
13920 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13921 int x[] = {25, 17};
13922 const int *foo = &x[0];
13925 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13926 typedef const int *iptr;
13930 { /* AIX XL C 1.02.0.0 rejects this saying
13931 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13932 struct s { int j; const int *ap[3]; };
13933 struct s *b; b->j = 5;
13935 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13936 const int foo = 10;
13944 rm -f conftest.$ac_objext
13945 if { (eval echo $as_me:13945: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
13948 echo "$as_me: failed program was:" >&5
13949 cat conftest.$ac_ext >&5
13952 rm -f conftest.$ac_objext conftest.$ac_ext
13954 echo "$as_me:13954: result: $ac_cv_c_const" >&5
13955 echo "${ECHO_T}$ac_cv_c_const" >&6
13956 if test $ac_cv_c_const = no; then
13958 cat >>confdefs.h <<\EOF
13964 echo "$as_me:13964: checking for off_t" >&5
13965 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
13966 if test "${ac_cv_type_off_t+set}" = set; then
13967 echo $ECHO_N "(cached) $ECHO_C" >&6
13969 cat >conftest.$ac_ext <<_ACEOF
13970 #line 13970 "configure"
13971 #include "confdefs.h"
13972 $ac_includes_default
13978 if (sizeof (off_t))
13984 rm -f conftest.$ac_objext
13985 if { (eval echo $as_me:13985: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
13986 ac_cv_type_off_t=yes
13988 echo "$as_me: failed program was:" >&5
13989 cat conftest.$ac_ext >&5
13990 ac_cv_type_off_t=no
13992 rm -f conftest.$ac_objext conftest.$ac_ext
13994 echo "$as_me:13994: result: $ac_cv_type_off_t" >&5
13995 echo "${ECHO_T}$ac_cv_type_off_t" >&6
13996 if test $ac_cv_type_off_t = yes; then
14000 cat >>confdefs.h <<EOF
14006 echo "$as_me:14006: checking for size_t" >&5
14007 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
14008 if test "${ac_cv_type_size_t+set}" = set; then
14009 echo $ECHO_N "(cached) $ECHO_C" >&6
14011 cat >conftest.$ac_ext <<_ACEOF
14012 #line 14012 "configure"
14013 #include "confdefs.h"
14014 $ac_includes_default
14020 if (sizeof (size_t))
14026 rm -f conftest.$ac_objext
14027 if { (eval echo $as_me:14027: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
14028 ac_cv_type_size_t=yes
14030 echo "$as_me: failed program was:" >&5
14031 cat conftest.$ac_ext >&5
14032 ac_cv_type_size_t=no
14034 rm -f conftest.$ac_objext conftest.$ac_ext
14036 echo "$as_me:14036: result: $ac_cv_type_size_t" >&5
14037 echo "${ECHO_T}$ac_cv_type_size_t" >&6
14038 if test $ac_cv_type_size_t = yes; then
14042 cat >>confdefs.h <<EOF
14043 #define size_t unsigned
14048 echo "$as_me:14048: checking for ssize_t" >&5
14049 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
14050 if test "${ac_cv_type_ssize_t+set}" = set; then
14051 echo $ECHO_N "(cached) $ECHO_C" >&6
14053 cat >conftest.$ac_ext <<_ACEOF
14054 #line 14054 "configure"
14055 #include "confdefs.h"
14056 #include <sys/types.h>
14058 #include <stdlib.h>
14059 #include <stddef.h>
14061 #include <unistd.h>
14063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14064 egrep "ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14065 ac_cv_type_ssize_t=yes
14067 ac_cv_type_ssize_t=no
14072 echo "$as_me:14072: result: $ac_cv_type_ssize_t" >&5
14073 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
14074 if test $ac_cv_type_ssize_t = no; then
14076 cat >>confdefs.h <<\EOF
14077 #define ssize_t int
14082 echo "$as_me:14082: checking for pid_t" >&5
14083 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
14084 if test "${ac_cv_type_pid_t+set}" = set; then
14085 echo $ECHO_N "(cached) $ECHO_C" >&6
14087 cat >conftest.$ac_ext <<_ACEOF
14088 #line 14088 "configure"
14089 #include "confdefs.h"
14090 $ac_includes_default
14096 if (sizeof (pid_t))
14102 rm -f conftest.$ac_objext
14103 if { (eval echo $as_me:14103: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
14104 ac_cv_type_pid_t=yes
14106 echo "$as_me: failed program was:" >&5
14107 cat conftest.$ac_ext >&5
14108 ac_cv_type_pid_t=no
14110 rm -f conftest.$ac_objext conftest.$ac_ext
14112 echo "$as_me:14112: result: $ac_cv_type_pid_t" >&5
14113 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
14114 if test $ac_cv_type_pid_t = yes; then
14118 cat >>confdefs.h <<EOF
14124 echo "$as_me:14124: checking for uid_t in sys/types.h" >&5
14125 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
14126 if test "${ac_cv_type_uid_t+set}" = set; then
14127 echo $ECHO_N "(cached) $ECHO_C" >&6
14129 cat >conftest.$ac_ext <<_ACEOF
14130 #line 14130 "configure"
14131 #include "confdefs.h"
14132 #include <sys/types.h>
14135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14136 egrep "uid_t" >/dev/null 2>&1; then
14137 ac_cv_type_uid_t=yes
14139 ac_cv_type_uid_t=no
14144 echo "$as_me:14144: result: $ac_cv_type_uid_t" >&5
14145 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
14146 if test $ac_cv_type_uid_t = no; then
14148 cat >>confdefs.h <<\EOF
14152 cat >>confdefs.h <<\EOF
14158 echo "$as_me:14158: checking for mode_t" >&5
14159 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
14160 if test "${ac_cv_type_mode_t+set}" = set; then
14161 echo $ECHO_N "(cached) $ECHO_C" >&6
14163 cat >conftest.$ac_ext <<_ACEOF
14164 #line 14164 "configure"
14165 #include "confdefs.h"
14166 #include <sys/types.h>
14168 #include <stdlib.h>
14169 #include <stddef.h>
14173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14174 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14175 ac_cv_type_mode_t=yes
14177 ac_cv_type_mode_t=no
14182 echo "$as_me:14182: result: $ac_cv_type_mode_t" >&5
14183 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
14184 if test $ac_cv_type_mode_t = no; then
14186 cat >>confdefs.h <<\EOF
14187 #define mode_t unsigned short
14192 echo "$as_me:14192: checking for sig_atomic_t" >&5
14193 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
14194 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
14195 echo $ECHO_N "(cached) $ECHO_C" >&6
14197 cat >conftest.$ac_ext <<_ACEOF
14198 #line 14198 "configure"
14199 #include "confdefs.h"
14200 #include <sys/types.h>
14202 #include <stdlib.h>
14203 #include <stddef.h>
14205 #include <signal.h>
14207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14208 egrep "sig_atomic_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14209 ac_cv_type_sig_atomic_t=yes
14211 ac_cv_type_sig_atomic_t=no
14216 echo "$as_me:14216: result: $ac_cv_type_sig_atomic_t" >&5
14217 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
14218 if test $ac_cv_type_sig_atomic_t = no; then
14220 cat >>confdefs.h <<\EOF
14221 #define sig_atomic_t int
14226 cv=`echo "long long" | sed 'y%./+- %__p__%'`
14227 echo "$as_me:14227: checking for long long" >&5
14228 echo $ECHO_N "checking for long long... $ECHO_C" >&6
14229 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
14230 echo $ECHO_N "(cached) $ECHO_C" >&6
14232 cat >conftest.$ac_ext <<_ACEOF
14233 #line 14233 "configure"
14234 #include "confdefs.h"
14235 #include <sys/types.h>
14237 #include <stdlib.h>
14238 #include <stddef.h>
14249 rm -f conftest.$ac_objext
14250 if { (eval echo $as_me:14250: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
14251 eval "ac_cv_type_$cv=yes"
14253 echo "$as_me: failed program was:" >&5
14254 cat conftest.$ac_ext >&5
14255 eval "ac_cv_type_$cv=no"
14257 rm -f conftest.$ac_objext conftest.$ac_ext
14259 ac_foo=`eval echo \\$ac_cv_type_$cv`
14260 echo "$as_me:14260: result: $ac_foo" >&5
14261 echo "${ECHO_T}$ac_foo" >&6
14262 if test "$ac_foo" = yes; then
14263 ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
14265 echo "$as_me:14265: checking for long long" >&5
14266 echo $ECHO_N "checking for long long... $ECHO_C" >&6
14267 if test "${ac_cv_type_long_long+set}" = set; then
14268 echo $ECHO_N "(cached) $ECHO_C" >&6
14270 cat >conftest.$ac_ext <<_ACEOF
14271 #line 14271 "configure"
14272 #include "confdefs.h"
14273 $ac_includes_default
14277 if ((long long *) 0)
14279 if (sizeof (long long))
14285 rm -f conftest.$ac_objext
14286 if { (eval echo $as_me:14286: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
14287 ac_cv_type_long_long=yes
14289 echo "$as_me: failed program was:" >&5
14290 cat conftest.$ac_ext >&5
14291 ac_cv_type_long_long=no
14293 rm -f conftest.$ac_objext conftest.$ac_ext
14295 echo "$as_me:14295: result: $ac_cv_type_long_long" >&5
14296 echo "${ECHO_T}$ac_cv_type_long_long" >&6
14297 if test $ac_cv_type_long_long = yes; then
14299 cat >>confdefs.h <<EOF
14300 #define HAVE_LONG_LONG 1
14307 cat >>confdefs.h <<EOF
14308 #define $ac_tr_hdr 1
14313 echo "$as_me:14313: checking whether time.h and sys/time.h may both be included" >&5
14314 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
14315 if test "${ac_cv_header_time+set}" = set; then
14316 echo $ECHO_N "(cached) $ECHO_C" >&6
14318 cat >conftest.$ac_ext <<_ACEOF
14319 #line 14319 "configure"
14320 #include "confdefs.h"
14321 #include <sys/types.h>
14322 #include <sys/time.h>
14333 rm -f conftest.$ac_objext
14334 if { (eval echo $as_me:14334: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
14335 ac_cv_header_time=yes
14337 echo "$as_me: failed program was:" >&5
14338 cat conftest.$ac_ext >&5
14339 ac_cv_header_time=no
14341 rm -f conftest.$ac_objext conftest.$ac_ext
14343 echo "$as_me:14343: result: $ac_cv_header_time" >&5
14344 echo "${ECHO_T}$ac_cv_header_time" >&6
14345 if test $ac_cv_header_time = yes; then
14347 cat >>confdefs.h <<\EOF
14348 #define TIME_WITH_SYS_TIME 1
14353 echo "$as_me:14353: checking whether struct tm is in sys/time.h or time.h" >&5
14354 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
14355 if test "${ac_cv_struct_tm+set}" = set; then
14356 echo $ECHO_N "(cached) $ECHO_C" >&6
14358 cat >conftest.$ac_ext <<_ACEOF
14359 #line 14359 "configure"
14360 #include "confdefs.h"
14361 #include <sys/types.h>
14367 struct tm *tp; tp->tm_sec;
14372 rm -f conftest.$ac_objext
14373 if { (eval echo $as_me:14373: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
14374 ac_cv_struct_tm=time.h
14376 echo "$as_me: failed program was:" >&5
14377 cat conftest.$ac_ext >&5
14378 ac_cv_struct_tm=sys/time.h
14380 rm -f conftest.$ac_objext conftest.$ac_ext
14382 echo "$as_me:14382: result: $ac_cv_struct_tm" >&5
14383 echo "${ECHO_T}$ac_cv_struct_tm" >&6
14384 if test $ac_cv_struct_tm = sys/time.h; then
14386 cat >>confdefs.h <<\EOF
14387 #define TM_IN_SYS_TIME 1
14392 echo "$as_me:14392: checking for ANSI C header files" >&5
14393 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
14394 if test "${ac_cv_header_stdc+set}" = set; then
14395 echo $ECHO_N "(cached) $ECHO_C" >&6
14397 cat >conftest.$ac_ext <<_ACEOF
14398 #line 14398 "configure"
14399 #include "confdefs.h"
14400 #include <stdlib.h>
14401 #include <stdarg.h>
14402 #include <string.h>
14406 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err"
14407 if { (eval echo $as_me:14407: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then
14408 if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then
14409 ac_cpp_err=$ac_c_preproc_warn_flag
14417 if test -z "$ac_cpp_err"; then
14418 ac_cv_header_stdc=yes
14420 cat conftest.err >&5
14421 echo "$as_me: failed program was:" >&5
14422 cat conftest.$ac_ext >&5
14423 ac_cv_header_stdc=no
14427 if test $ac_cv_header_stdc = yes; then
14428 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14429 cat >conftest.$ac_ext <<_ACEOF
14430 #line 14430 "configure"
14431 #include "confdefs.h"
14432 #include <string.h>
14435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14436 egrep "memchr" >/dev/null 2>&1; then
14439 ac_cv_header_stdc=no
14445 if test $ac_cv_header_stdc = yes; then
14446 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14447 cat >conftest.$ac_ext <<_ACEOF
14448 #line 14448 "configure"
14449 #include "confdefs.h"
14450 #include <stdlib.h>
14453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14454 egrep "free" >/dev/null 2>&1; then
14457 ac_cv_header_stdc=no
14463 if test $ac_cv_header_stdc = yes; then
14464 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14465 if test "$cross_compiling" = yes; then
14468 cat >conftest.$ac_ext <<_ACEOF
14469 #line 14469 "configure"
14470 #include "confdefs.h"
14472 #if ((' ' & 0x0FF) == 0x020)
14473 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14474 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14476 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14477 || ('j' <= (c) && (c) <= 'r') \
14478 || ('s' <= (c) && (c) <= 'z'))
14479 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14482 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14487 for (i = 0; i < 256; i++)
14488 if (XOR (islower (i), ISLOWER (i))
14489 || toupper (i) != TOUPPER (i))
14494 rm -f conftest$ac_exeext
14495 { (eval echo $as_me:14495: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } &&
14496 (./conftest$ac_exeext) >&5 2>&1;
14498 if test $ac_status = 0; then
14501 echo "$as_me: program exited with status $ac_status" >&5
14502 echo "$as_me: failed program was:" >&5
14503 cat conftest.$ac_ext >&5
14504 ac_cv_header_stdc=no
14507 rm -f conftest$ac_exeext conftest.$ac_ext
14512 echo "$as_me:14512: result: $ac_cv_header_stdc" >&5
14513 echo "${ECHO_T}$ac_cv_header_stdc" >&6
14514 if test $ac_cv_header_stdc = yes; then
14516 cat >>confdefs.h <<\EOF
14517 #define STDC_HEADERS 1
14549 netinet/in6_machtypes.h \
14550 netinet/in6_var.h \
14551 netinet/in_systm.h \
14561 security/pam_modules.h \
14614 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
14616 echo "$as_me:14616: checking for $ac_header" >&5
14617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14618 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
14619 echo $ECHO_N "(cached) $ECHO_C" >&6
14621 cat >conftest.$ac_ext <<_ACEOF
14622 #line 14622 "configure"
14623 #include "confdefs.h"
14624 #include <$ac_header>
14627 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err"
14628 if { (eval echo $as_me:14628: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then
14629 if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then
14630 ac_cpp_err=$ac_c_preproc_warn_flag
14638 if test -z "$ac_cpp_err"; then
14639 eval "$ac_ac_Header=yes"
14641 cat conftest.err >&5
14642 echo "$as_me: failed program was:" >&5
14643 cat conftest.$ac_ext >&5
14644 eval "$ac_ac_Header=no"
14649 echo "$as_me:14649: result: `eval echo '${'$ac_ac_Header'}'`" >&5
14650 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
14651 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
14652 cat >>confdefs.h <<EOF
14653 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
14659 for ac_header in standards.h
14661 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
14663 echo "$as_me:14663: checking for $ac_header" >&5
14664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14665 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
14666 echo $ECHO_N "(cached) $ECHO_C" >&6
14668 cat >conftest.$ac_ext <<_ACEOF
14669 #line 14669 "configure"
14670 #include "confdefs.h"
14671 #include <$ac_header>
14674 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err"
14675 if { (eval echo $as_me:14675: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then
14676 if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then
14677 ac_cpp_err=$ac_c_preproc_warn_flag
14685 if test -z "$ac_cpp_err"; then
14686 eval "$ac_ac_Header=yes"
14688 cat conftest.err >&5
14689 echo "$as_me: failed program was:" >&5
14690 cat conftest.$ac_ext >&5
14691 eval "$ac_ac_Header=no"
14696 echo "$as_me:14696: result: `eval echo '${'$ac_ac_Header'}'`" >&5
14697 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
14698 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
14699 cat >>confdefs.h <<EOF
14700 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
14706 for i in netinet/ip.h netinet/tcp.h; do
14708 cv=`echo "$i" | sed 'y%./+-%__p_%'`
14710 echo "$as_me:14710: checking for $i" >&5
14711 echo $ECHO_N "checking for $i... $ECHO_C" >&6
14712 if eval "test \"\${ac_cv_header_$cv+set}\" = set"; then
14713 echo $ECHO_N "(cached) $ECHO_C" >&6
14715 cat >conftest.$ac_ext <<_ACEOF
14716 #line 14716 "configure"
14717 #include "confdefs.h"
14719 #ifdef HAVE_STANDARDS_H
14720 #include <standards.h>
14725 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err"
14726 if { (eval echo $as_me:14726: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then
14727 if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then
14728 ac_cpp_err=$ac_c_preproc_warn_flag
14736 if test -z "$ac_cpp_err"; then
14737 eval "ac_cv_header_$cv=yes"
14739 cat conftest.err >&5
14740 echo "$as_me: failed program was:" >&5
14741 cat conftest.$ac_ext >&5
14742 eval "ac_cv_header_$cv=no"
14747 echo "$as_me:14747: result: `eval echo '${'ac_cv_header_$cv'}'`" >&5
14748 echo "${ECHO_T}`eval echo '${'ac_cv_header_$cv'}'`" >&6
14749 ac_res=`eval echo \\$ac_cv_header_$cv`
14750 if test "$ac_res" = yes; then
14751 ac_tr_hdr=HAVE_`echo $i | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14752 cat >>confdefs.h <<EOF
14753 #define $ac_tr_hdr 1
14760 for ac_header in netinet/ip.h netinet/tcp.h
14762 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
14764 echo "$as_me:14764: checking for $ac_header" >&5
14765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14766 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
14767 echo $ECHO_N "(cached) $ECHO_C" >&6
14769 cat >conftest.$ac_ext <<_ACEOF
14770 #line 14770 "configure"
14771 #include "confdefs.h"
14772 #include <$ac_header>
14775 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err"
14776 if { (eval echo $as_me:14776: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then
14777 if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then
14778 ac_cpp_err=$ac_c_preproc_warn_flag
14786 if test -z "$ac_cpp_err"; then
14787 eval "$ac_ac_Header=yes"
14789 cat conftest.err >&5
14790 echo "$as_me: failed program was:" >&5
14791 cat conftest.$ac_ext >&5
14792 eval "$ac_ac_Header=no"
14797 echo "$as_me:14797: result: `eval echo '${'$ac_ac_Header'}'`" >&5
14798 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
14799 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
14800 cat >>confdefs.h <<EOF
14801 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
14809 # Check whether --enable-netinfo or --disable-netinfo was given.
14810 if test "${enable_netinfo+set}" = set; then
14811 enableval="$enable_netinfo"
14815 if test "$ac_cv_header_netinfo_ni_h" = yes -a "$enable_netinfo" = yes; then
14817 cat >>confdefs.h <<\EOF
14818 #define HAVE_NETINFO 1
14823 if test "$ac_cv_header_err_h" = yes; then
14825 have_err_h_FALSE='#'
14827 have_err_h_TRUE='#'
14831 if test "$ac_cv_header_fnmatch_h" = yes; then
14832 have_fnmatch_h_TRUE=
14833 have_fnmatch_h_FALSE='#'
14835 have_fnmatch_h_TRUE='#'
14836 have_fnmatch_h_FALSE=
14839 # Check whether --with-ipv6 or --without-ipv6 was given.
14840 if test "${with_ipv6+set}" = set; then
14841 withval="$with_ipv6"
14843 if test "$withval" = "no"; then
14847 save_CFLAGS="${CFLAGS}"
14848 if test "${ac_cv_lib_ipv6+set}" = set; then
14849 echo $ECHO_N "(cached) $ECHO_C" >&6
14854 echo "$as_me:14854: checking ipv6 stack type" >&5
14855 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
14856 for i in v6d toshiba kame inria zeta linux; do
14859 cat >conftest.$ac_ext <<_ACEOF
14860 #line 14860 "configure"
14861 #include "confdefs.h"
14863 #include </usr/local/v6/include/sys/types.h>
14868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14869 egrep "yes" >/dev/null 2>&1; then
14870 v6type=$i; v6lib=v6;
14871 v6libdir=/usr/local/v6/lib;
14872 CFLAGS="-I/usr/local/v6/include $CFLAGS"
14878 cat >conftest.$ac_ext <<_ACEOF
14879 #line 14879 "configure"
14880 #include "confdefs.h"
14882 #include <sys/param.h>
14883 #ifdef _TOSHIBA_INET6
14887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14888 egrep "yes" >/dev/null 2>&1; then
14889 v6type=$i; v6lib=inet6;
14890 v6libdir=/usr/local/v6/lib;
14891 CFLAGS="-DINET6 $CFLAGS"
14897 cat >conftest.$ac_ext <<_ACEOF
14898 #line 14898 "configure"
14899 #include "confdefs.h"
14901 #include <netinet/in.h>
14906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14907 egrep "yes" >/dev/null 2>&1; then
14908 v6type=$i; v6lib=inet6;
14909 v6libdir=/usr/local/v6/lib;
14910 CFLAGS="-DINET6 $CFLAGS"
14916 cat >conftest.$ac_ext <<_ACEOF
14917 #line 14917 "configure"
14918 #include "confdefs.h"
14920 #include <netinet/in.h>
14921 #ifdef IPV6_INRIA_VERSION
14925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14926 egrep "yes" >/dev/null 2>&1; then
14927 v6type=$i; CFLAGS="-DINET6 $CFLAGS"
14933 cat >conftest.$ac_ext <<_ACEOF
14934 #line 14934 "configure"
14935 #include "confdefs.h"
14937 #include <sys/param.h>
14938 #ifdef _ZETA_MINAMI_INET6
14942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14943 egrep "yes" >/dev/null 2>&1; then
14944 v6type=$i; v6lib=inet6;
14945 v6libdir=/usr/local/v6/lib;
14946 CFLAGS="-DINET6 $CFLAGS"
14952 if test -d /usr/inet6; then
14955 v6libdir=/usr/inet6
14956 CFLAGS="-DINET6 $CFLAGS"
14960 if test "$v6type" != "unknown"; then
14964 echo "$as_me:14964: result: $v6type" >&5
14965 echo "${ECHO_T}$v6type" >&6
14967 if test "$v6lib" != "none"; then
14968 for dir in $v6libdir /usr/local/v6/lib /usr/local/lib; do
14969 if test -d $dir -a -f $dir/lib$v6lib.a; then
14970 LIBS="-L$dir -l$v6lib $LIBS"
14975 cat >conftest.$ac_ext <<_ACEOF
14976 #line 14976 "configure"
14977 #include "confdefs.h"
14979 #ifdef HAVE_SYS_TYPES_H
14980 #include <sys/types.h>
14982 #ifdef HAVE_SYS_SOCKET_H
14983 #include <sys/socket.h>
14985 #ifdef HAVE_NETINET_IN_H
14986 #include <netinet/in.h>
14988 #ifdef HAVE_NETINET_IN6_H
14989 #include <netinet/in6.h>
14996 struct sockaddr_in6 sin6;
14999 s = socket(AF_INET6, SOCK_DGRAM, 0);
15001 sin6.sin6_family = AF_INET6;
15002 sin6.sin6_port = htons(17);
15003 sin6.sin6_addr = in6addr_any;
15004 bind(s, (struct sockaddr *)&sin6, sizeof(sin6));
15010 rm -f conftest.$ac_objext conftest$ac_exeext
15011 if { (eval echo $as_me:15011: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
15014 echo "$as_me: failed program was:" >&5
15015 cat conftest.$ac_ext >&5
15018 rm -f conftest$ac_exeext conftest.$ac_ext
15021 echo "$as_me:15021: checking for IPv6" >&5
15022 echo $ECHO_N "checking for IPv6... $ECHO_C" >&6
15023 echo "$as_me:15023: result: $ac_cv_lib_ipv6" >&5
15024 echo "${ECHO_T}$ac_cv_lib_ipv6" >&6
15025 if test "$ac_cv_lib_ipv6" = yes; then
15027 cat >>confdefs.h <<\EOF
15028 #define HAVE_IPV6 1
15032 CFLAGS="${save_CFLAGS}"
15035 echo "$as_me:15035: checking for socket" >&5
15036 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15037 if test "${ac_cv_funclib_socket+set}" = set; then
15038 echo $ECHO_N "(cached) $ECHO_C" >&6
15041 if eval "test \"\$ac_cv_func_socket\" != yes" ; then
15042 ac_save_LIBS="$LIBS"
15043 for ac_lib in "" socket; do
15044 if test -n "$ac_lib"; then
15049 LIBS=" $ac_lib $ac_save_LIBS"
15050 cat >conftest.$ac_ext <<_ACEOF
15051 #line 15051 "configure"
15052 #include "confdefs.h"
15062 rm -f conftest.$ac_objext conftest$ac_exeext
15063 if { (eval echo $as_me:15063: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
15064 eval "if test -n \"$ac_lib\";then ac_cv_funclib_socket=$ac_lib; else ac_cv_funclib_socket=yes; fi";break
15066 echo "$as_me: failed program was:" >&5
15067 cat conftest.$ac_ext >&5
15069 rm -f conftest$ac_exeext conftest.$ac_ext
15071 eval "ac_cv_funclib_socket=\${ac_cv_funclib_socket-no}"
15072 LIBS="$ac_save_LIBS"
15077 eval "ac_res=\$ac_cv_funclib_socket"
15081 for ac_func in socket
15083 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
15084 echo "$as_me:15084: checking for $ac_func" >&5
15085 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15086 if eval "test \"\${$ac_ac_var+set}\" = set"; then
15087 echo $ECHO_N "(cached) $ECHO_C" >&6
15089 cat >conftest.$ac_ext <<_ACEOF
15090 #line 15090 "configure"
15091 #include "confdefs.h"
15092 /* System header to define __stub macros and hopefully few prototypes,
15093 which can conflict with char $ac_func (); below. */
15094 #include <assert.h>
15095 /* Override any gcc2 internal prototype to avoid an error. */
15099 /* We use char because int might match the return type of a gcc2
15100 builtin and then its argument prototype would still apply. */
15107 /* The GNU C library defines this for functions which it implements
15108 to always fail with ENOSYS. Some functions are actually named
15109 something starting with __ and the normal name is an alias. */
15110 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15120 rm -f conftest.$ac_objext conftest$ac_exeext
15121 if { (eval echo $as_me:15121: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
15122 eval "$ac_ac_var=yes"
15124 echo "$as_me: failed program was:" >&5
15125 cat conftest.$ac_ext >&5
15126 eval "$ac_ac_var=no"
15128 rm -f conftest$ac_exeext conftest.$ac_ext
15130 echo "$as_me:15130: result: `eval echo '${'$ac_ac_var'}'`" >&5
15131 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
15132 if test `eval echo '${'$ac_ac_var'}'` = yes; then
15133 cat >>confdefs.h <<EOF
15134 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
15142 eval "ac_tr_func=HAVE_`echo socket | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15143 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15144 eval "LIB_socket=$ac_res"
15148 eval "ac_cv_func_socket=yes"
15150 cat >>confdefs.h <<EOF
15151 #define $ac_tr_func 1
15154 echo "$as_me:15154: result: yes" >&5
15155 echo "${ECHO_T}yes" >&6
15158 eval "ac_cv_func_socket=no"
15160 echo "$as_me:15160: result: no" >&5
15161 echo "${ECHO_T}no" >&6
15164 eval "ac_cv_func_socket=yes"
15165 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
15166 cat >>confdefs.h <<EOF
15167 #define $ac_tr_func 1
15170 cat >>confdefs.h <<EOF
15171 #define $ac_tr_lib 1
15174 echo "$as_me:15174: result: yes, in $ac_res" >&5
15175 echo "${ECHO_T}yes, in $ac_res" >&6
15179 if test -n "$LIB_socket"; then
15180 LIBS="$LIB_socket $LIBS"
15183 echo "$as_me:15183: checking for gethostbyname" >&5
15184 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
15185 if test "${ac_cv_funclib_gethostbyname+set}" = set; then
15186 echo $ECHO_N "(cached) $ECHO_C" >&6
15189 if eval "test \"\$ac_cv_func_gethostbyname\" != yes" ; then
15190 ac_save_LIBS="$LIBS"
15191 for ac_lib in "" nsl; do
15192 if test -n "$ac_lib"; then
15197 LIBS=" $ac_lib $ac_save_LIBS"
15198 cat >conftest.$ac_ext <<_ACEOF
15199 #line 15199 "configure"
15200 #include "confdefs.h"
15210 rm -f conftest.$ac_objext conftest$ac_exeext
15211 if { (eval echo $as_me:15211: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
15212 eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname=$ac_lib; else ac_cv_funclib_gethostbyname=yes; fi";break
15214 echo "$as_me: failed program was:" >&5
15215 cat conftest.$ac_ext >&5
15217 rm -f conftest$ac_exeext conftest.$ac_ext
15219 eval "ac_cv_funclib_gethostbyname=\${ac_cv_funclib_gethostbyname-no}"
15220 LIBS="$ac_save_LIBS"
15225 eval "ac_res=\$ac_cv_funclib_gethostbyname"
15229 for ac_func in gethostbyname
15231 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
15232 echo "$as_me:15232: checking for $ac_func" >&5
15233 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15234 if eval "test \"\${$ac_ac_var+set}\" = set"; then
15235 echo $ECHO_N "(cached) $ECHO_C" >&6
15237 cat >conftest.$ac_ext <<_ACEOF
15238 #line 15238 "configure"
15239 #include "confdefs.h"
15240 /* System header to define __stub macros and hopefully few prototypes,
15241 which can conflict with char $ac_func (); below. */
15242 #include <assert.h>
15243 /* Override any gcc2 internal prototype to avoid an error. */
15247 /* We use char because int might match the return type of a gcc2
15248 builtin and then its argument prototype would still apply. */
15255 /* The GNU C library defines this for functions which it implements
15256 to always fail with ENOSYS. Some functions are actually named
15257 something starting with __ and the normal name is an alias. */
15258 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15268 rm -f conftest.$ac_objext conftest$ac_exeext
15269 if { (eval echo $as_me:15269: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
15270 eval "$ac_ac_var=yes"
15272 echo "$as_me: failed program was:" >&5
15273 cat conftest.$ac_ext >&5
15274 eval "$ac_ac_var=no"
15276 rm -f conftest$ac_exeext conftest.$ac_ext
15278 echo "$as_me:15278: result: `eval echo '${'$ac_ac_var'}'`" >&5
15279 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
15280 if test `eval echo '${'$ac_ac_var'}'` = yes; then
15281 cat >>confdefs.h <<EOF
15282 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
15290 eval "ac_tr_func=HAVE_`echo gethostbyname | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15291 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15292 eval "LIB_gethostbyname=$ac_res"
15296 eval "ac_cv_func_gethostbyname=yes"
15297 eval "LIB_gethostbyname="
15298 cat >>confdefs.h <<EOF
15299 #define $ac_tr_func 1
15302 echo "$as_me:15302: result: yes" >&5
15303 echo "${ECHO_T}yes" >&6
15306 eval "ac_cv_func_gethostbyname=no"
15307 eval "LIB_gethostbyname="
15308 echo "$as_me:15308: result: no" >&5
15309 echo "${ECHO_T}no" >&6
15312 eval "ac_cv_func_gethostbyname=yes"
15313 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
15314 cat >>confdefs.h <<EOF
15315 #define $ac_tr_func 1
15318 cat >>confdefs.h <<EOF
15319 #define $ac_tr_lib 1
15322 echo "$as_me:15322: result: yes, in $ac_res" >&5
15323 echo "${ECHO_T}yes, in $ac_res" >&6
15327 if test -n "$LIB_gethostbyname"; then
15328 LIBS="$LIB_gethostbyname $LIBS"
15331 echo "$as_me:15331: checking for syslog" >&5
15332 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
15333 if test "${ac_cv_funclib_syslog+set}" = set; then
15334 echo $ECHO_N "(cached) $ECHO_C" >&6
15337 if eval "test \"\$ac_cv_func_syslog\" != yes" ; then
15338 ac_save_LIBS="$LIBS"
15339 for ac_lib in "" syslog; do
15340 if test -n "$ac_lib"; then
15345 LIBS=" $ac_lib $ac_save_LIBS"
15346 cat >conftest.$ac_ext <<_ACEOF
15347 #line 15347 "configure"
15348 #include "confdefs.h"
15358 rm -f conftest.$ac_objext conftest$ac_exeext
15359 if { (eval echo $as_me:15359: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
15360 eval "if test -n \"$ac_lib\";then ac_cv_funclib_syslog=$ac_lib; else ac_cv_funclib_syslog=yes; fi";break
15362 echo "$as_me: failed program was:" >&5
15363 cat conftest.$ac_ext >&5
15365 rm -f conftest$ac_exeext conftest.$ac_ext
15367 eval "ac_cv_funclib_syslog=\${ac_cv_funclib_syslog-no}"
15368 LIBS="$ac_save_LIBS"
15373 eval "ac_res=\$ac_cv_funclib_syslog"
15377 for ac_func in syslog
15379 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
15380 echo "$as_me:15380: checking for $ac_func" >&5
15381 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15382 if eval "test \"\${$ac_ac_var+set}\" = set"; then
15383 echo $ECHO_N "(cached) $ECHO_C" >&6
15385 cat >conftest.$ac_ext <<_ACEOF
15386 #line 15386 "configure"
15387 #include "confdefs.h"
15388 /* System header to define __stub macros and hopefully few prototypes,
15389 which can conflict with char $ac_func (); below. */
15390 #include <assert.h>
15391 /* Override any gcc2 internal prototype to avoid an error. */
15395 /* We use char because int might match the return type of a gcc2
15396 builtin and then its argument prototype would still apply. */
15403 /* The GNU C library defines this for functions which it implements
15404 to always fail with ENOSYS. Some functions are actually named
15405 something starting with __ and the normal name is an alias. */
15406 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15416 rm -f conftest.$ac_objext conftest$ac_exeext
15417 if { (eval echo $as_me:15417: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
15418 eval "$ac_ac_var=yes"
15420 echo "$as_me: failed program was:" >&5
15421 cat conftest.$ac_ext >&5
15422 eval "$ac_ac_var=no"
15424 rm -f conftest$ac_exeext conftest.$ac_ext
15426 echo "$as_me:15426: result: `eval echo '${'$ac_ac_var'}'`" >&5
15427 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
15428 if test `eval echo '${'$ac_ac_var'}'` = yes; then
15429 cat >>confdefs.h <<EOF
15430 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
15438 eval "ac_tr_func=HAVE_`echo syslog | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15439 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15440 eval "LIB_syslog=$ac_res"
15444 eval "ac_cv_func_syslog=yes"
15446 cat >>confdefs.h <<EOF
15447 #define $ac_tr_func 1
15450 echo "$as_me:15450: result: yes" >&5
15451 echo "${ECHO_T}yes" >&6
15454 eval "ac_cv_func_syslog=no"
15456 echo "$as_me:15456: result: no" >&5
15457 echo "${ECHO_T}no" >&6
15460 eval "ac_cv_func_syslog=yes"
15461 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
15462 cat >>confdefs.h <<EOF
15463 #define $ac_tr_func 1
15466 cat >>confdefs.h <<EOF
15467 #define $ac_tr_lib 1
15470 echo "$as_me:15470: result: yes, in $ac_res" >&5
15471 echo "${ECHO_T}yes, in $ac_res" >&6
15475 if test -n "$LIB_syslog"; then
15476 LIBS="$LIB_syslog $LIBS"
15479 echo "$as_me:15479: checking for logwtmp" >&5
15480 echo $ECHO_N "checking for logwtmp... $ECHO_C" >&6
15481 if test "${ac_cv_funclib_logwtmp+set}" = set; then
15482 echo $ECHO_N "(cached) $ECHO_C" >&6
15485 if eval "test \"\$ac_cv_func_logwtmp\" != yes" ; then
15486 ac_save_LIBS="$LIBS"
15487 for ac_lib in "" util; do
15488 if test -n "$ac_lib"; then
15493 LIBS=" $ac_lib $ac_save_LIBS"
15494 cat >conftest.$ac_ext <<_ACEOF
15495 #line 15495 "configure"
15496 #include "confdefs.h"
15506 rm -f conftest.$ac_objext conftest$ac_exeext
15507 if { (eval echo $as_me:15507: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
15508 eval "if test -n \"$ac_lib\";then ac_cv_funclib_logwtmp=$ac_lib; else ac_cv_funclib_logwtmp=yes; fi";break
15510 echo "$as_me: failed program was:" >&5
15511 cat conftest.$ac_ext >&5
15513 rm -f conftest$ac_exeext conftest.$ac_ext
15515 eval "ac_cv_funclib_logwtmp=\${ac_cv_funclib_logwtmp-no}"
15516 LIBS="$ac_save_LIBS"
15521 eval "ac_res=\$ac_cv_funclib_logwtmp"
15525 for ac_func in logwtmp
15527 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
15528 echo "$as_me:15528: checking for $ac_func" >&5
15529 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15530 if eval "test \"\${$ac_ac_var+set}\" = set"; then
15531 echo $ECHO_N "(cached) $ECHO_C" >&6
15533 cat >conftest.$ac_ext <<_ACEOF
15534 #line 15534 "configure"
15535 #include "confdefs.h"
15536 /* System header to define __stub macros and hopefully few prototypes,
15537 which can conflict with char $ac_func (); below. */
15538 #include <assert.h>
15539 /* Override any gcc2 internal prototype to avoid an error. */
15543 /* We use char because int might match the return type of a gcc2
15544 builtin and then its argument prototype would still apply. */
15551 /* The GNU C library defines this for functions which it implements
15552 to always fail with ENOSYS. Some functions are actually named
15553 something starting with __ and the normal name is an alias. */
15554 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15564 rm -f conftest.$ac_objext conftest$ac_exeext
15565 if { (eval echo $as_me:15565: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
15566 eval "$ac_ac_var=yes"
15568 echo "$as_me: failed program was:" >&5
15569 cat conftest.$ac_ext >&5
15570 eval "$ac_ac_var=no"
15572 rm -f conftest$ac_exeext conftest.$ac_ext
15574 echo "$as_me:15574: result: `eval echo '${'$ac_ac_var'}'`" >&5
15575 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
15576 if test `eval echo '${'$ac_ac_var'}'` = yes; then
15577 cat >>confdefs.h <<EOF
15578 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
15586 eval "ac_tr_func=HAVE_`echo logwtmp | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15587 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15588 eval "LIB_logwtmp=$ac_res"
15592 eval "ac_cv_func_logwtmp=yes"
15593 eval "LIB_logwtmp="
15594 cat >>confdefs.h <<EOF
15595 #define $ac_tr_func 1
15598 echo "$as_me:15598: result: yes" >&5
15599 echo "${ECHO_T}yes" >&6
15602 eval "ac_cv_func_logwtmp=no"
15603 eval "LIB_logwtmp="
15604 echo "$as_me:15604: result: no" >&5
15605 echo "${ECHO_T}no" >&6
15608 eval "ac_cv_func_logwtmp=yes"
15609 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
15610 cat >>confdefs.h <<EOF
15611 #define $ac_tr_func 1
15614 cat >>confdefs.h <<EOF
15615 #define $ac_tr_lib 1
15618 echo "$as_me:15618: result: yes, in $ac_res" >&5
15619 echo "${ECHO_T}yes, in $ac_res" >&6
15623 echo "$as_me:15623: checking for tgetent" >&5
15624 echo $ECHO_N "checking for tgetent... $ECHO_C" >&6
15625 if test "${ac_cv_funclib_tgetent+set}" = set; then
15626 echo $ECHO_N "(cached) $ECHO_C" >&6
15629 if eval "test \"\$ac_cv_func_tgetent\" != yes" ; then
15630 ac_save_LIBS="$LIBS"
15631 for ac_lib in "" termcap ncurses curses; do
15632 if test -n "$ac_lib"; then
15637 LIBS=" $ac_lib $ac_save_LIBS"
15638 cat >conftest.$ac_ext <<_ACEOF
15639 #line 15639 "configure"
15640 #include "confdefs.h"
15650 rm -f conftest.$ac_objext conftest$ac_exeext
15651 if { (eval echo $as_me:15651: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
15652 eval "if test -n \"$ac_lib\";then ac_cv_funclib_tgetent=$ac_lib; else ac_cv_funclib_tgetent=yes; fi";break
15654 echo "$as_me: failed program was:" >&5
15655 cat conftest.$ac_ext >&5
15657 rm -f conftest$ac_exeext conftest.$ac_ext
15659 eval "ac_cv_funclib_tgetent=\${ac_cv_funclib_tgetent-no}"
15660 LIBS="$ac_save_LIBS"
15665 eval "ac_res=\$ac_cv_funclib_tgetent"
15669 for ac_func in tgetent
15671 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
15672 echo "$as_me:15672: checking for $ac_func" >&5
15673 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15674 if eval "test \"\${$ac_ac_var+set}\" = set"; then
15675 echo $ECHO_N "(cached) $ECHO_C" >&6
15677 cat >conftest.$ac_ext <<_ACEOF
15678 #line 15678 "configure"
15679 #include "confdefs.h"
15680 /* System header to define __stub macros and hopefully few prototypes,
15681 which can conflict with char $ac_func (); below. */
15682 #include <assert.h>
15683 /* Override any gcc2 internal prototype to avoid an error. */
15687 /* We use char because int might match the return type of a gcc2
15688 builtin and then its argument prototype would still apply. */
15695 /* The GNU C library defines this for functions which it implements
15696 to always fail with ENOSYS. Some functions are actually named
15697 something starting with __ and the normal name is an alias. */
15698 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15708 rm -f conftest.$ac_objext conftest$ac_exeext
15709 if { (eval echo $as_me:15709: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
15710 eval "$ac_ac_var=yes"
15712 echo "$as_me: failed program was:" >&5
15713 cat conftest.$ac_ext >&5
15714 eval "$ac_ac_var=no"
15716 rm -f conftest$ac_exeext conftest.$ac_ext
15718 echo "$as_me:15718: result: `eval echo '${'$ac_ac_var'}'`" >&5
15719 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
15720 if test `eval echo '${'$ac_ac_var'}'` = yes; then
15721 cat >>confdefs.h <<EOF
15722 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
15730 eval "ac_tr_func=HAVE_`echo tgetent | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15731 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15732 eval "LIB_tgetent=$ac_res"
15736 eval "ac_cv_func_tgetent=yes"
15737 eval "LIB_tgetent="
15738 cat >>confdefs.h <<EOF
15739 #define $ac_tr_func 1
15742 echo "$as_me:15742: result: yes" >&5
15743 echo "${ECHO_T}yes" >&6
15746 eval "ac_cv_func_tgetent=no"
15747 eval "LIB_tgetent="
15748 echo "$as_me:15748: result: no" >&5
15749 echo "${ECHO_T}no" >&6
15752 eval "ac_cv_func_tgetent=yes"
15753 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
15754 cat >>confdefs.h <<EOF
15755 #define $ac_tr_func 1
15758 cat >>confdefs.h <<EOF
15759 #define $ac_tr_lib 1
15762 echo "$as_me:15762: result: yes, in $ac_res" >&5
15763 echo "${ECHO_T}yes, in $ac_res" >&6
15767 echo "$as_me:15767: checking for gethostbyname2" >&5
15768 echo $ECHO_N "checking for gethostbyname2... $ECHO_C" >&6
15769 if test "${ac_cv_funclib_gethostbyname2+set}" = set; then
15770 echo $ECHO_N "(cached) $ECHO_C" >&6
15773 if eval "test \"\$ac_cv_func_gethostbyname2\" != yes" ; then
15774 ac_save_LIBS="$LIBS"
15775 for ac_lib in "" inet6 ip6; do
15776 if test -n "$ac_lib"; then
15781 LIBS=" $ac_lib $ac_save_LIBS"
15782 cat >conftest.$ac_ext <<_ACEOF
15783 #line 15783 "configure"
15784 #include "confdefs.h"
15794 rm -f conftest.$ac_objext conftest$ac_exeext
15795 if { (eval echo $as_me:15795: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
15796 eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname2=$ac_lib; else ac_cv_funclib_gethostbyname2=yes; fi";break
15798 echo "$as_me: failed program was:" >&5
15799 cat conftest.$ac_ext >&5
15801 rm -f conftest$ac_exeext conftest.$ac_ext
15803 eval "ac_cv_funclib_gethostbyname2=\${ac_cv_funclib_gethostbyname2-no}"
15804 LIBS="$ac_save_LIBS"
15809 eval "ac_res=\$ac_cv_funclib_gethostbyname2"
15813 for ac_func in gethostbyname2
15815 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
15816 echo "$as_me:15816: checking for $ac_func" >&5
15817 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15818 if eval "test \"\${$ac_ac_var+set}\" = set"; then
15819 echo $ECHO_N "(cached) $ECHO_C" >&6
15821 cat >conftest.$ac_ext <<_ACEOF
15822 #line 15822 "configure"
15823 #include "confdefs.h"
15824 /* System header to define __stub macros and hopefully few prototypes,
15825 which can conflict with char $ac_func (); below. */
15826 #include <assert.h>
15827 /* Override any gcc2 internal prototype to avoid an error. */
15831 /* We use char because int might match the return type of a gcc2
15832 builtin and then its argument prototype would still apply. */
15839 /* The GNU C library defines this for functions which it implements
15840 to always fail with ENOSYS. Some functions are actually named
15841 something starting with __ and the normal name is an alias. */
15842 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15852 rm -f conftest.$ac_objext conftest$ac_exeext
15853 if { (eval echo $as_me:15853: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
15854 eval "$ac_ac_var=yes"
15856 echo "$as_me: failed program was:" >&5
15857 cat conftest.$ac_ext >&5
15858 eval "$ac_ac_var=no"
15860 rm -f conftest$ac_exeext conftest.$ac_ext
15862 echo "$as_me:15862: result: `eval echo '${'$ac_ac_var'}'`" >&5
15863 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
15864 if test `eval echo '${'$ac_ac_var'}'` = yes; then
15865 cat >>confdefs.h <<EOF
15866 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
15874 eval "ac_tr_func=HAVE_`echo gethostbyname2 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15875 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15876 eval "LIB_gethostbyname2=$ac_res"
15880 eval "ac_cv_func_gethostbyname2=yes"
15881 eval "LIB_gethostbyname2="
15882 cat >>confdefs.h <<EOF
15883 #define $ac_tr_func 1
15886 echo "$as_me:15886: result: yes" >&5
15887 echo "${ECHO_T}yes" >&6
15890 eval "ac_cv_func_gethostbyname2=no"
15891 eval "LIB_gethostbyname2="
15892 echo "$as_me:15892: result: no" >&5
15893 echo "${ECHO_T}no" >&6
15896 eval "ac_cv_func_gethostbyname2=yes"
15897 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
15898 cat >>confdefs.h <<EOF
15899 #define $ac_tr_func 1
15902 cat >>confdefs.h <<EOF
15903 #define $ac_tr_lib 1
15906 echo "$as_me:15906: result: yes, in $ac_res" >&5
15907 echo "${ECHO_T}yes, in $ac_res" >&6
15911 if test -n "$LIB_gethostbyname2"; then
15912 LIBS="$LIB_gethostbyname2 $LIBS"
15915 echo "$as_me:15915: checking for res_search" >&5
15916 echo $ECHO_N "checking for res_search... $ECHO_C" >&6
15917 if test "${ac_cv_funclib_res_search+set}" = set; then
15918 echo $ECHO_N "(cached) $ECHO_C" >&6
15921 if eval "test \"\$ac_cv_func_res_search\" != yes" ; then
15922 ac_save_LIBS="$LIBS"
15923 for ac_lib in "" resolv; do
15924 if test -n "$ac_lib"; then
15929 LIBS=" $ac_lib $ac_save_LIBS"
15930 cat >conftest.$ac_ext <<_ACEOF
15931 #line 15931 "configure"
15932 #include "confdefs.h"
15935 #ifdef HAVE_SYS_TYPES_H
15936 #include <sys/types.h>
15938 #ifdef HAVE_NETINET_IN_H
15939 #include <netinet/in.h>
15941 #ifdef HAVE_ARPA_NAMESER_H
15942 #include <arpa/nameser.h>
15944 #ifdef HAVE_RESOLV_H
15945 #include <resolv.h>
15951 res_search(0,0,0,0,0)
15956 rm -f conftest.$ac_objext conftest$ac_exeext
15957 if { (eval echo $as_me:15957: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
15958 eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_search=$ac_lib; else ac_cv_funclib_res_search=yes; fi";break
15960 echo "$as_me: failed program was:" >&5
15961 cat conftest.$ac_ext >&5
15963 rm -f conftest$ac_exeext conftest.$ac_ext
15965 eval "ac_cv_funclib_res_search=\${ac_cv_funclib_res_search-no}"
15966 LIBS="$ac_save_LIBS"
15971 eval "ac_res=\$ac_cv_funclib_res_search"
15975 for ac_func in res_search
15977 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
15978 echo "$as_me:15978: checking for $ac_func" >&5
15979 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15980 if eval "test \"\${$ac_ac_var+set}\" = set"; then
15981 echo $ECHO_N "(cached) $ECHO_C" >&6
15983 cat >conftest.$ac_ext <<_ACEOF
15984 #line 15984 "configure"
15985 #include "confdefs.h"
15986 /* System header to define __stub macros and hopefully few prototypes,
15987 which can conflict with char $ac_func (); below. */
15988 #include <assert.h>
15989 /* Override any gcc2 internal prototype to avoid an error. */
15993 /* We use char because int might match the return type of a gcc2
15994 builtin and then its argument prototype would still apply. */
16001 /* The GNU C library defines this for functions which it implements
16002 to always fail with ENOSYS. Some functions are actually named
16003 something starting with __ and the normal name is an alias. */
16004 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16014 rm -f conftest.$ac_objext conftest$ac_exeext
16015 if { (eval echo $as_me:16015: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
16016 eval "$ac_ac_var=yes"
16018 echo "$as_me: failed program was:" >&5
16019 cat conftest.$ac_ext >&5
16020 eval "$ac_ac_var=no"
16022 rm -f conftest$ac_exeext conftest.$ac_ext
16024 echo "$as_me:16024: result: `eval echo '${'$ac_ac_var'}'`" >&5
16025 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
16026 if test `eval echo '${'$ac_ac_var'}'` = yes; then
16027 cat >>confdefs.h <<EOF
16028 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
16036 eval "ac_tr_func=HAVE_`echo res_search | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
16037 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
16038 eval "LIB_res_search=$ac_res"
16042 eval "ac_cv_func_res_search=yes"
16043 eval "LIB_res_search="
16044 cat >>confdefs.h <<EOF
16045 #define $ac_tr_func 1
16048 echo "$as_me:16048: result: yes" >&5
16049 echo "${ECHO_T}yes" >&6
16052 eval "ac_cv_func_res_search=no"
16053 eval "LIB_res_search="
16054 echo "$as_me:16054: result: no" >&5
16055 echo "${ECHO_T}no" >&6
16058 eval "ac_cv_func_res_search=yes"
16059 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
16060 cat >>confdefs.h <<EOF
16061 #define $ac_tr_func 1
16064 cat >>confdefs.h <<EOF
16065 #define $ac_tr_lib 1
16068 echo "$as_me:16068: result: yes, in $ac_res" >&5
16069 echo "${ECHO_T}yes, in $ac_res" >&6
16073 if test -n "$LIB_res_search"; then
16074 LIBS="$LIB_res_search $LIBS"
16077 echo "$as_me:16077: checking for dn_expand" >&5
16078 echo $ECHO_N "checking for dn_expand... $ECHO_C" >&6
16079 if test "${ac_cv_funclib_dn_expand+set}" = set; then
16080 echo $ECHO_N "(cached) $ECHO_C" >&6
16083 if eval "test \"\$ac_cv_func_dn_expand\" != yes" ; then
16084 ac_save_LIBS="$LIBS"
16085 for ac_lib in "" resolv; do
16086 if test -n "$ac_lib"; then
16091 LIBS=" $ac_lib $ac_save_LIBS"
16092 cat >conftest.$ac_ext <<_ACEOF
16093 #line 16093 "configure"
16094 #include "confdefs.h"
16097 #ifdef HAVE_SYS_TYPES_H
16098 #include <sys/types.h>
16100 #ifdef HAVE_NETINET_IN_H
16101 #include <netinet/in.h>
16103 #ifdef HAVE_ARPA_NAMESER_H
16104 #include <arpa/nameser.h>
16106 #ifdef HAVE_RESOLV_H
16107 #include <resolv.h>
16113 dn_expand(0,0,0,0,0)
16118 rm -f conftest.$ac_objext conftest$ac_exeext
16119 if { (eval echo $as_me:16119: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
16120 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dn_expand=$ac_lib; else ac_cv_funclib_dn_expand=yes; fi";break
16122 echo "$as_me: failed program was:" >&5
16123 cat conftest.$ac_ext >&5
16125 rm -f conftest$ac_exeext conftest.$ac_ext
16127 eval "ac_cv_funclib_dn_expand=\${ac_cv_funclib_dn_expand-no}"
16128 LIBS="$ac_save_LIBS"
16133 eval "ac_res=\$ac_cv_funclib_dn_expand"
16137 for ac_func in dn_expand
16139 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
16140 echo "$as_me:16140: checking for $ac_func" >&5
16141 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16142 if eval "test \"\${$ac_ac_var+set}\" = set"; then
16143 echo $ECHO_N "(cached) $ECHO_C" >&6
16145 cat >conftest.$ac_ext <<_ACEOF
16146 #line 16146 "configure"
16147 #include "confdefs.h"
16148 /* System header to define __stub macros and hopefully few prototypes,
16149 which can conflict with char $ac_func (); below. */
16150 #include <assert.h>
16151 /* Override any gcc2 internal prototype to avoid an error. */
16155 /* We use char because int might match the return type of a gcc2
16156 builtin and then its argument prototype would still apply. */
16163 /* The GNU C library defines this for functions which it implements
16164 to always fail with ENOSYS. Some functions are actually named
16165 something starting with __ and the normal name is an alias. */
16166 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16176 rm -f conftest.$ac_objext conftest$ac_exeext
16177 if { (eval echo $as_me:16177: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
16178 eval "$ac_ac_var=yes"
16180 echo "$as_me: failed program was:" >&5
16181 cat conftest.$ac_ext >&5
16182 eval "$ac_ac_var=no"
16184 rm -f conftest$ac_exeext conftest.$ac_ext
16186 echo "$as_me:16186: result: `eval echo '${'$ac_ac_var'}'`" >&5
16187 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
16188 if test `eval echo '${'$ac_ac_var'}'` = yes; then
16189 cat >>confdefs.h <<EOF
16190 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
16198 eval "ac_tr_func=HAVE_`echo dn_expand | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
16199 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
16200 eval "LIB_dn_expand=$ac_res"
16204 eval "ac_cv_func_dn_expand=yes"
16205 eval "LIB_dn_expand="
16206 cat >>confdefs.h <<EOF
16207 #define $ac_tr_func 1
16210 echo "$as_me:16210: result: yes" >&5
16211 echo "${ECHO_T}yes" >&6
16214 eval "ac_cv_func_dn_expand=no"
16215 eval "LIB_dn_expand="
16216 echo "$as_me:16216: result: no" >&5
16217 echo "${ECHO_T}no" >&6
16220 eval "ac_cv_func_dn_expand=yes"
16221 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
16222 cat >>confdefs.h <<EOF
16223 #define $ac_tr_func 1
16226 cat >>confdefs.h <<EOF
16227 #define $ac_tr_lib 1
16230 echo "$as_me:16230: result: yes, in $ac_res" >&5
16231 echo "${ECHO_T}yes, in $ac_res" >&6
16235 if test -n "$LIB_dn_expand"; then
16236 LIBS="$LIB_dn_expand $LIBS"
16239 echo "$as_me:16239: checking for working snprintf" >&5
16240 echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6
16241 if test "${ac_cv_func_snprintf_working+set}" = set; then
16242 echo $ECHO_N "(cached) $ECHO_C" >&6
16244 ac_cv_func_snprintf_working=yes
16245 if test "$cross_compiling" = yes; then
16248 cat >conftest.$ac_ext <<_ACEOF
16249 #line 16249 "configure"
16250 #include "confdefs.h"
16253 #include <string.h>
16257 snprintf(foo, 2, "12");
16258 return strcmp(foo, "1");
16261 rm -f conftest$ac_exeext
16262 { (eval echo $as_me:16262: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } &&
16263 (./conftest$ac_exeext) >&5 2>&1;
16265 if test $ac_status = 0; then
16268 echo "$as_me: program exited with status $ac_status" >&5
16269 echo "$as_me: failed program was:" >&5
16270 cat conftest.$ac_ext >&5
16271 ac_cv_func_snprintf_working=no
16274 rm -f conftest$ac_exeext conftest.$ac_ext
16278 echo "$as_me:16278: result: $ac_cv_func_snprintf_working" >&5
16279 echo "${ECHO_T}$ac_cv_func_snprintf_working" >&6
16281 if test "$ac_cv_func_snprintf_working" = yes; then
16283 cat >>confdefs.h <<EOF
16284 #define HAVE_SNPRINTF 1
16288 if test "$ac_cv_func_snprintf_working" = yes; then
16290 if test "$ac_cv_func_snprintf+set" != set -o "$ac_cv_func_snprintf" = yes; then
16291 echo "$as_me:16291: checking if snprintf needs a prototype" >&5
16292 echo $ECHO_N "checking if snprintf needs a prototype... $ECHO_C" >&6
16293 if test "${ac_cv_func_snprintf_noproto+set}" = set; then
16294 echo $ECHO_N "(cached) $ECHO_C" >&6
16296 cat >conftest.$ac_ext <<_ACEOF
16297 #line 16297 "configure"
16298 #include "confdefs.h"
16303 struct foo { int foo; } xx;
16304 extern int snprintf (struct foo*);
16311 rm -f conftest.$ac_objext
16312 if { (eval echo $as_me:16312: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
16313 eval "ac_cv_func_snprintf_noproto=yes"
16315 echo "$as_me: failed program was:" >&5
16316 cat conftest.$ac_ext >&5
16317 eval "ac_cv_func_snprintf_noproto=no"
16319 rm -f conftest.$ac_objext conftest.$ac_ext
16321 echo "$as_me:16321: result: $ac_cv_func_snprintf_noproto" >&5
16322 echo "${ECHO_T}$ac_cv_func_snprintf_noproto" >&6
16324 if test "$ac_cv_func_snprintf_noproto" = yes; then
16326 cat >>confdefs.h <<\EOF
16327 #define NEED_SNPRINTF_PROTO 1
16336 echo "$as_me:16336: checking for working vsnprintf" >&5
16337 echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6
16338 if test "${ac_cv_func_vsnprintf_working+set}" = set; then
16339 echo $ECHO_N "(cached) $ECHO_C" >&6
16341 ac_cv_func_vsnprintf_working=yes
16342 if test "$cross_compiling" = yes; then
16345 cat >conftest.$ac_ext <<_ACEOF
16346 #line 16346 "configure"
16347 #include "confdefs.h"
16350 #include <string.h>
16351 #include <stdarg.h>
16353 int foo(int num, ...)
16357 va_start(arg, num);
16358 vsnprintf(bar, 2, "%s", arg);
16360 return strcmp(bar, "1");
16365 return foo(0, "12");
16368 rm -f conftest$ac_exeext
16369 { (eval echo $as_me:16369: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } &&
16370 (./conftest$ac_exeext) >&5 2>&1;
16372 if test $ac_status = 0; then
16375 echo "$as_me: program exited with status $ac_status" >&5
16376 echo "$as_me: failed program was:" >&5
16377 cat conftest.$ac_ext >&5
16378 ac_cv_func_vsnprintf_working=no
16381 rm -f conftest$ac_exeext conftest.$ac_ext
16385 echo "$as_me:16385: result: $ac_cv_func_vsnprintf_working" >&5
16386 echo "${ECHO_T}$ac_cv_func_vsnprintf_working" >&6
16388 if test "$ac_cv_func_vsnprintf_working" = yes; then
16390 cat >>confdefs.h <<EOF
16391 #define HAVE_VSNPRINTF 1
16395 if test "$ac_cv_func_vsnprintf_working" = yes; then
16397 if test "$ac_cv_func_vsnprintf+set" != set -o "$ac_cv_func_vsnprintf" = yes; then
16398 echo "$as_me:16398: checking if vsnprintf needs a prototype" >&5
16399 echo $ECHO_N "checking if vsnprintf needs a prototype... $ECHO_C" >&6
16400 if test "${ac_cv_func_vsnprintf_noproto+set}" = set; then
16401 echo $ECHO_N "(cached) $ECHO_C" >&6
16403 cat >conftest.$ac_ext <<_ACEOF
16404 #line 16404 "configure"
16405 #include "confdefs.h"
16410 struct foo { int foo; } xx;
16411 extern int vsnprintf (struct foo*);
16418 rm -f conftest.$ac_objext
16419 if { (eval echo $as_me:16419: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
16420 eval "ac_cv_func_vsnprintf_noproto=yes"
16422 echo "$as_me: failed program was:" >&5
16423 cat conftest.$ac_ext >&5
16424 eval "ac_cv_func_vsnprintf_noproto=no"
16426 rm -f conftest.$ac_objext conftest.$ac_ext
16428 echo "$as_me:16428: result: $ac_cv_func_vsnprintf_noproto" >&5
16429 echo "${ECHO_T}$ac_cv_func_vsnprintf_noproto" >&6
16431 if test "$ac_cv_func_vsnprintf_noproto" = yes; then
16433 cat >>confdefs.h <<\EOF
16434 #define NEED_VSNPRINTF_PROTO 1
16474 yp_get_default_domain \
16477 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
16478 echo "$as_me:16478: checking for $ac_func" >&5
16479 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16480 if eval "test \"\${$ac_ac_var+set}\" = set"; then
16481 echo $ECHO_N "(cached) $ECHO_C" >&6
16483 cat >conftest.$ac_ext <<_ACEOF
16484 #line 16484 "configure"
16485 #include "confdefs.h"
16486 /* System header to define __stub macros and hopefully few prototypes,
16487 which can conflict with char $ac_func (); below. */
16488 #include <assert.h>
16489 /* Override any gcc2 internal prototype to avoid an error. */
16493 /* We use char because int might match the return type of a gcc2
16494 builtin and then its argument prototype would still apply. */
16501 /* The GNU C library defines this for functions which it implements
16502 to always fail with ENOSYS. Some functions are actually named
16503 something starting with __ and the normal name is an alias. */
16504 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16514 rm -f conftest.$ac_objext conftest$ac_exeext
16515 if { (eval echo $as_me:16515: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
16516 eval "$ac_ac_var=yes"
16518 echo "$as_me: failed program was:" >&5
16519 cat conftest.$ac_ext >&5
16520 eval "$ac_ac_var=no"
16522 rm -f conftest$ac_exeext conftest.$ac_ext
16524 echo "$as_me:16524: result: `eval echo '${'$ac_ac_var'}'`" >&5
16525 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
16526 if test `eval echo '${'$ac_ac_var'}'` = yes; then
16527 cat >>confdefs.h <<EOF
16528 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
16534 for ac_header in capability.h sys/capability.h
16536 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
16538 echo "$as_me:16538: checking for $ac_header" >&5
16539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16540 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
16541 echo $ECHO_N "(cached) $ECHO_C" >&6
16543 cat >conftest.$ac_ext <<_ACEOF
16544 #line 16544 "configure"
16545 #include "confdefs.h"
16546 #include <$ac_header>
16549 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err"
16550 if { (eval echo $as_me:16550: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then
16551 if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then
16552 ac_cpp_err=$ac_c_preproc_warn_flag
16560 if test -z "$ac_cpp_err"; then
16561 eval "$ac_ac_Header=yes"
16563 cat conftest.err >&5
16564 echo "$as_me: failed program was:" >&5
16565 cat conftest.$ac_ext >&5
16566 eval "$ac_ac_Header=no"
16571 echo "$as_me:16571: result: `eval echo '${'$ac_ac_Header'}'`" >&5
16572 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
16573 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
16574 cat >>confdefs.h <<EOF
16575 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
16581 for ac_func in sgi_getcapabilitybyname cap_set_proc
16583 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
16584 echo "$as_me:16584: checking for $ac_func" >&5
16585 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16586 if eval "test \"\${$ac_ac_var+set}\" = set"; then
16587 echo $ECHO_N "(cached) $ECHO_C" >&6
16589 cat >conftest.$ac_ext <<_ACEOF
16590 #line 16590 "configure"
16591 #include "confdefs.h"
16592 /* System header to define __stub macros and hopefully few prototypes,
16593 which can conflict with char $ac_func (); below. */
16594 #include <assert.h>
16595 /* Override any gcc2 internal prototype to avoid an error. */
16599 /* We use char because int might match the return type of a gcc2
16600 builtin and then its argument prototype would still apply. */
16607 /* The GNU C library defines this for functions which it implements
16608 to always fail with ENOSYS. Some functions are actually named
16609 something starting with __ and the normal name is an alias. */
16610 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16620 rm -f conftest.$ac_objext conftest$ac_exeext
16621 if { (eval echo $as_me:16621: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
16622 eval "$ac_ac_var=yes"
16624 echo "$as_me: failed program was:" >&5
16625 cat conftest.$ac_ext >&5
16626 eval "$ac_ac_var=no"
16628 rm -f conftest$ac_exeext conftest.$ac_ext
16630 echo "$as_me:16630: result: `eval echo '${'$ac_ac_var'}'`" >&5
16631 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
16632 if test `eval echo '${'$ac_ac_var'}'` = yes; then
16633 cat >>confdefs.h <<EOF
16634 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
16640 echo "$as_me:16640: checking for getpwnam_r" >&5
16641 echo $ECHO_N "checking for getpwnam_r... $ECHO_C" >&6
16642 if test "${ac_cv_funclib_getpwnam_r+set}" = set; then
16643 echo $ECHO_N "(cached) $ECHO_C" >&6
16646 if eval "test \"\$ac_cv_func_getpwnam_r\" != yes" ; then
16647 ac_save_LIBS="$LIBS"
16648 for ac_lib in "" c_r; do
16649 if test -n "$ac_lib"; then
16654 LIBS=" $ac_lib $ac_save_LIBS"
16655 cat >conftest.$ac_ext <<_ACEOF
16656 #line 16656 "configure"
16657 #include "confdefs.h"
16667 rm -f conftest.$ac_objext conftest$ac_exeext
16668 if { (eval echo $as_me:16668: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
16669 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getpwnam_r=$ac_lib; else ac_cv_funclib_getpwnam_r=yes; fi";break
16671 echo "$as_me: failed program was:" >&5
16672 cat conftest.$ac_ext >&5
16674 rm -f conftest$ac_exeext conftest.$ac_ext
16676 eval "ac_cv_funclib_getpwnam_r=\${ac_cv_funclib_getpwnam_r-no}"
16677 LIBS="$ac_save_LIBS"
16682 eval "ac_res=\$ac_cv_funclib_getpwnam_r"
16686 for ac_func in getpwnam_r
16688 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
16689 echo "$as_me:16689: checking for $ac_func" >&5
16690 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16691 if eval "test \"\${$ac_ac_var+set}\" = set"; then
16692 echo $ECHO_N "(cached) $ECHO_C" >&6
16694 cat >conftest.$ac_ext <<_ACEOF
16695 #line 16695 "configure"
16696 #include "confdefs.h"
16697 /* System header to define __stub macros and hopefully few prototypes,
16698 which can conflict with char $ac_func (); below. */
16699 #include <assert.h>
16700 /* Override any gcc2 internal prototype to avoid an error. */
16704 /* We use char because int might match the return type of a gcc2
16705 builtin and then its argument prototype would still apply. */
16712 /* The GNU C library defines this for functions which it implements
16713 to always fail with ENOSYS. Some functions are actually named
16714 something starting with __ and the normal name is an alias. */
16715 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16725 rm -f conftest.$ac_objext conftest$ac_exeext
16726 if { (eval echo $as_me:16726: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
16727 eval "$ac_ac_var=yes"
16729 echo "$as_me: failed program was:" >&5
16730 cat conftest.$ac_ext >&5
16731 eval "$ac_ac_var=no"
16733 rm -f conftest$ac_exeext conftest.$ac_ext
16735 echo "$as_me:16735: result: `eval echo '${'$ac_ac_var'}'`" >&5
16736 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
16737 if test `eval echo '${'$ac_ac_var'}'` = yes; then
16738 cat >>confdefs.h <<EOF
16739 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
16747 eval "ac_tr_func=HAVE_`echo getpwnam_r | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
16748 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
16749 eval "LIB_getpwnam_r=$ac_res"
16753 eval "ac_cv_func_getpwnam_r=yes"
16754 eval "LIB_getpwnam_r="
16755 cat >>confdefs.h <<EOF
16756 #define $ac_tr_func 1
16759 echo "$as_me:16759: result: yes" >&5
16760 echo "${ECHO_T}yes" >&6
16763 eval "ac_cv_func_getpwnam_r=no"
16764 eval "LIB_getpwnam_r="
16765 echo "$as_me:16765: result: no" >&5
16766 echo "${ECHO_T}no" >&6
16769 eval "ac_cv_func_getpwnam_r=yes"
16770 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
16771 cat >>confdefs.h <<EOF
16772 #define $ac_tr_func 1
16775 cat >>confdefs.h <<EOF
16776 #define $ac_tr_lib 1
16779 echo "$as_me:16779: result: yes, in $ac_res" >&5
16780 echo "${ECHO_T}yes, in $ac_res" >&6
16784 if test "$ac_cv_func_getpwnam_r" = yes; then
16785 echo "$as_me:16785: checking if getpwnam_r is posix" >&5
16786 echo $ECHO_N "checking if getpwnam_r is posix... $ECHO_C" >&6
16787 if test "${ac_cv_func_getpwnam_r_posix+set}" = set; then
16788 echo $ECHO_N "(cached) $ECHO_C" >&6
16791 LIBS="$LIBS $LIB_getpwnam_r"
16792 if test "$cross_compiling" = yes; then
16795 cat >conftest.$ac_ext <<_ACEOF
16796 #line 16796 "configure"
16797 #include "confdefs.h"
16802 struct passwd pw, *pwd;
16803 return getpwnam_r("", &pw, NULL, 0, &pwd) < 0;
16807 rm -f conftest$ac_exeext
16808 { (eval echo $as_me:16808: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } &&
16809 (./conftest$ac_exeext) >&5 2>&1;
16811 if test $ac_status = 0; then
16812 ac_cv_func_getpwnam_r_posix=yes
16814 echo "$as_me: program exited with status $ac_status" >&5
16815 echo "$as_me: failed program was:" >&5
16816 cat conftest.$ac_ext >&5
16817 ac_cv_func_getpwnam_r_posix=no
16820 rm -f conftest$ac_exeext conftest.$ac_ext
16825 echo "$as_me:16825: result: $ac_cv_func_getpwnam_r_posix" >&5
16826 echo "${ECHO_T}$ac_cv_func_getpwnam_r_posix" >&6
16827 if test "$ac_cv_func_getpwnam_r_posix" = yes; then
16829 cat >>confdefs.h <<\EOF
16830 #define POSIX_GETPWNAM_R 1
16836 echo "$as_me:16836: checking for getsockopt" >&5
16837 echo $ECHO_N "checking for getsockopt... $ECHO_C" >&6
16838 if test "${ac_cv_funclib_getsockopt+set}" = set; then
16839 echo $ECHO_N "(cached) $ECHO_C" >&6
16842 if eval "test \"\$ac_cv_func_getsockopt\" != yes" ; then
16843 ac_save_LIBS="$LIBS"
16844 for ac_lib in "" ; do
16845 if test -n "$ac_lib"; then
16850 LIBS=" $ac_lib $ac_save_LIBS"
16851 cat >conftest.$ac_ext <<_ACEOF
16852 #line 16852 "configure"
16853 #include "confdefs.h"
16854 #ifdef HAVE_SYS_TYPES_H
16855 #include <sys/types.h>
16857 #ifdef HAVE_SYS_SOCKET_H
16858 #include <sys/socket.h>
16863 getsockopt(0,0,0,0,0)
16868 rm -f conftest.$ac_objext conftest$ac_exeext
16869 if { (eval echo $as_me:16869: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
16870 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getsockopt=$ac_lib; else ac_cv_funclib_getsockopt=yes; fi";break
16872 echo "$as_me: failed program was:" >&5
16873 cat conftest.$ac_ext >&5
16875 rm -f conftest$ac_exeext conftest.$ac_ext
16877 eval "ac_cv_funclib_getsockopt=\${ac_cv_funclib_getsockopt-no}"
16878 LIBS="$ac_save_LIBS"
16883 eval "ac_res=\$ac_cv_funclib_getsockopt"
16887 for ac_func in getsockopt
16889 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
16890 echo "$as_me:16890: checking for $ac_func" >&5
16891 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16892 if eval "test \"\${$ac_ac_var+set}\" = set"; then
16893 echo $ECHO_N "(cached) $ECHO_C" >&6
16895 cat >conftest.$ac_ext <<_ACEOF
16896 #line 16896 "configure"
16897 #include "confdefs.h"
16898 /* System header to define __stub macros and hopefully few prototypes,
16899 which can conflict with char $ac_func (); below. */
16900 #include <assert.h>
16901 /* Override any gcc2 internal prototype to avoid an error. */
16905 /* We use char because int might match the return type of a gcc2
16906 builtin and then its argument prototype would still apply. */
16913 /* The GNU C library defines this for functions which it implements
16914 to always fail with ENOSYS. Some functions are actually named
16915 something starting with __ and the normal name is an alias. */
16916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16926 rm -f conftest.$ac_objext conftest$ac_exeext
16927 if { (eval echo $as_me:16927: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
16928 eval "$ac_ac_var=yes"
16930 echo "$as_me: failed program was:" >&5
16931 cat conftest.$ac_ext >&5
16932 eval "$ac_ac_var=no"
16934 rm -f conftest$ac_exeext conftest.$ac_ext
16936 echo "$as_me:16936: result: `eval echo '${'$ac_ac_var'}'`" >&5
16937 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
16938 if test `eval echo '${'$ac_ac_var'}'` = yes; then
16939 cat >>confdefs.h <<EOF
16940 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
16948 eval "ac_tr_func=HAVE_`echo getsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
16949 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
16950 eval "LIB_getsockopt=$ac_res"
16954 eval "ac_cv_func_getsockopt=yes"
16955 eval "LIB_getsockopt="
16956 cat >>confdefs.h <<EOF
16957 #define $ac_tr_func 1
16960 echo "$as_me:16960: result: yes" >&5
16961 echo "${ECHO_T}yes" >&6
16964 eval "ac_cv_func_getsockopt=no"
16965 eval "LIB_getsockopt="
16966 echo "$as_me:16966: result: no" >&5
16967 echo "${ECHO_T}no" >&6
16970 eval "ac_cv_func_getsockopt=yes"
16971 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
16972 cat >>confdefs.h <<EOF
16973 #define $ac_tr_func 1
16976 cat >>confdefs.h <<EOF
16977 #define $ac_tr_lib 1
16980 echo "$as_me:16980: result: yes, in $ac_res" >&5
16981 echo "${ECHO_T}yes, in $ac_res" >&6
16985 echo "$as_me:16985: checking for setsockopt" >&5
16986 echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
16987 if test "${ac_cv_funclib_setsockopt+set}" = set; then
16988 echo $ECHO_N "(cached) $ECHO_C" >&6
16991 if eval "test \"\$ac_cv_func_setsockopt\" != yes" ; then
16992 ac_save_LIBS="$LIBS"
16993 for ac_lib in "" ; do
16994 if test -n "$ac_lib"; then
16999 LIBS=" $ac_lib $ac_save_LIBS"
17000 cat >conftest.$ac_ext <<_ACEOF
17001 #line 17001 "configure"
17002 #include "confdefs.h"
17003 #ifdef HAVE_SYS_TYPES_H
17004 #include <sys/types.h>
17006 #ifdef HAVE_SYS_SOCKET_H
17007 #include <sys/socket.h>
17012 setsockopt(0,0,0,0,0)
17017 rm -f conftest.$ac_objext conftest$ac_exeext
17018 if { (eval echo $as_me:17018: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
17019 eval "if test -n \"$ac_lib\";then ac_cv_funclib_setsockopt=$ac_lib; else ac_cv_funclib_setsockopt=yes; fi";break
17021 echo "$as_me: failed program was:" >&5
17022 cat conftest.$ac_ext >&5
17024 rm -f conftest$ac_exeext conftest.$ac_ext
17026 eval "ac_cv_funclib_setsockopt=\${ac_cv_funclib_setsockopt-no}"
17027 LIBS="$ac_save_LIBS"
17032 eval "ac_res=\$ac_cv_funclib_setsockopt"
17036 for ac_func in setsockopt
17038 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
17039 echo "$as_me:17039: checking for $ac_func" >&5
17040 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17041 if eval "test \"\${$ac_ac_var+set}\" = set"; then
17042 echo $ECHO_N "(cached) $ECHO_C" >&6
17044 cat >conftest.$ac_ext <<_ACEOF
17045 #line 17045 "configure"
17046 #include "confdefs.h"
17047 /* System header to define __stub macros and hopefully few prototypes,
17048 which can conflict with char $ac_func (); below. */
17049 #include <assert.h>
17050 /* Override any gcc2 internal prototype to avoid an error. */
17054 /* We use char because int might match the return type of a gcc2
17055 builtin and then its argument prototype would still apply. */
17062 /* The GNU C library defines this for functions which it implements
17063 to always fail with ENOSYS. Some functions are actually named
17064 something starting with __ and the normal name is an alias. */
17065 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17075 rm -f conftest.$ac_objext conftest$ac_exeext
17076 if { (eval echo $as_me:17076: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
17077 eval "$ac_ac_var=yes"
17079 echo "$as_me: failed program was:" >&5
17080 cat conftest.$ac_ext >&5
17081 eval "$ac_ac_var=no"
17083 rm -f conftest$ac_exeext conftest.$ac_ext
17085 echo "$as_me:17085: result: `eval echo '${'$ac_ac_var'}'`" >&5
17086 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
17087 if test `eval echo '${'$ac_ac_var'}'` = yes; then
17088 cat >>confdefs.h <<EOF
17089 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
17097 eval "ac_tr_func=HAVE_`echo setsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
17098 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
17099 eval "LIB_setsockopt=$ac_res"
17103 eval "ac_cv_func_setsockopt=yes"
17104 eval "LIB_setsockopt="
17105 cat >>confdefs.h <<EOF
17106 #define $ac_tr_func 1
17109 echo "$as_me:17109: result: yes" >&5
17110 echo "${ECHO_T}yes" >&6
17113 eval "ac_cv_func_setsockopt=no"
17114 eval "LIB_setsockopt="
17115 echo "$as_me:17115: result: no" >&5
17116 echo "${ECHO_T}no" >&6
17119 eval "ac_cv_func_setsockopt=yes"
17120 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
17121 cat >>confdefs.h <<EOF
17122 #define $ac_tr_func 1
17125 cat >>confdefs.h <<EOF
17126 #define $ac_tr_lib 1
17129 echo "$as_me:17129: result: yes, in $ac_res" >&5
17130 echo "${ECHO_T}yes, in $ac_res" >&6
17134 for ac_func in getudbnam setlim
17136 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
17137 echo "$as_me:17137: checking for $ac_func" >&5
17138 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17139 if eval "test \"\${$ac_ac_var+set}\" = set"; then
17140 echo $ECHO_N "(cached) $ECHO_C" >&6
17142 cat >conftest.$ac_ext <<_ACEOF
17143 #line 17143 "configure"
17144 #include "confdefs.h"
17145 /* System header to define __stub macros and hopefully few prototypes,
17146 which can conflict with char $ac_func (); below. */
17147 #include <assert.h>
17148 /* Override any gcc2 internal prototype to avoid an error. */
17152 /* We use char because int might match the return type of a gcc2
17153 builtin and then its argument prototype would still apply. */
17160 /* The GNU C library defines this for functions which it implements
17161 to always fail with ENOSYS. Some functions are actually named
17162 something starting with __ and the normal name is an alias. */
17163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17173 rm -f conftest.$ac_objext conftest$ac_exeext
17174 if { (eval echo $as_me:17174: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
17175 eval "$ac_ac_var=yes"
17177 echo "$as_me: failed program was:" >&5
17178 cat conftest.$ac_ext >&5
17179 eval "$ac_ac_var=no"
17181 rm -f conftest$ac_exeext conftest.$ac_ext
17183 echo "$as_me:17183: result: `eval echo '${'$ac_ac_var'}'`" >&5
17184 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
17185 if test `eval echo '${'$ac_ac_var'}'` = yes; then
17186 cat >>confdefs.h <<EOF
17187 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
17193 echo "$as_me:17193: checking return type of signal handlers" >&5
17194 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
17195 if test "${ac_cv_type_signal+set}" = set; then
17196 echo $ECHO_N "(cached) $ECHO_C" >&6
17198 cat >conftest.$ac_ext <<_ACEOF
17199 #line 17199 "configure"
17200 #include "confdefs.h"
17201 #include <sys/types.h>
17202 #include <signal.h>
17207 extern "C" void (*signal (int, void (*)(int)))(int);
17209 void (*signal ()) ();
17220 rm -f conftest.$ac_objext
17221 if { (eval echo $as_me:17221: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
17222 ac_cv_type_signal=void
17224 echo "$as_me: failed program was:" >&5
17225 cat conftest.$ac_ext >&5
17226 ac_cv_type_signal=int
17228 rm -f conftest.$ac_objext conftest.$ac_ext
17230 echo "$as_me:17230: result: $ac_cv_type_signal" >&5
17231 echo "${ECHO_T}$ac_cv_type_signal" >&6
17233 cat >>confdefs.h <<EOF
17234 #define RETSIGTYPE $ac_cv_type_signal
17237 if test "$ac_cv_type_signal" = "void" ; then
17239 cat >>confdefs.h <<\EOF
17240 #define VOID_RETSIGTYPE 1
17245 echo "$as_me:17245: checking if realloc if broken" >&5
17246 echo $ECHO_N "checking if realloc if broken... $ECHO_C" >&6
17247 if test "${ac_cv_func_realloc_broken+set}" = set; then
17248 echo $ECHO_N "(cached) $ECHO_C" >&6
17251 ac_cv_func_realloc_broken=no
17252 if test "$cross_compiling" = yes; then
17255 cat >conftest.$ac_ext <<_ACEOF
17256 #line 17256 "configure"
17257 #include "confdefs.h"
17259 #include <stddef.h>
17260 #include <stdlib.h>
17264 return realloc(NULL, 17) == NULL;
17268 rm -f conftest$ac_exeext
17269 { (eval echo $as_me:17269: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } &&
17270 (./conftest$ac_exeext) >&5 2>&1;
17272 if test $ac_status = 0; then
17275 echo "$as_me: program exited with status $ac_status" >&5
17276 echo "$as_me: failed program was:" >&5
17277 cat conftest.$ac_ext >&5
17278 ac_cv_func_realloc_broken=yes
17281 rm -f conftest$ac_exeext conftest.$ac_ext
17285 echo "$as_me:17285: result: $ac_cv_func_realloc_broken" >&5
17286 echo "${ECHO_T}$ac_cv_func_realloc_broken" >&6
17287 if test "$ac_cv_func_realloc_broken" = yes ; then
17289 cat >>confdefs.h <<\EOF
17290 #define BROKEN_REALLOC 1
17295 echo "$as_me:17295: checking for ut_addr in struct utmp" >&5
17296 echo $ECHO_N "checking for ut_addr in struct utmp... $ECHO_C" >&6
17297 if test "${ac_cv_type_struct_utmp_ut_addr+set}" = set; then
17298 echo $ECHO_N "(cached) $ECHO_C" >&6
17301 cat >conftest.$ac_ext <<_ACEOF
17302 #line 17302 "configure"
17303 #include "confdefs.h"
17308 struct utmp x; x.ut_addr;
17313 rm -f conftest.$ac_objext
17314 if { (eval echo $as_me:17314: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
17315 ac_cv_type_struct_utmp_ut_addr=yes
17317 echo "$as_me: failed program was:" >&5
17318 cat conftest.$ac_ext >&5
17319 ac_cv_type_struct_utmp_ut_addr=no
17321 rm -f conftest.$ac_objext conftest.$ac_ext
17323 echo "$as_me:17323: result: $ac_cv_type_struct_utmp_ut_addr" >&5
17324 echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_addr" >&6
17325 if test "$ac_cv_type_struct_utmp_ut_addr" = yes; then
17327 cat >>confdefs.h <<\EOF
17328 #define HAVE_STRUCT_UTMP_UT_ADDR 1
17333 echo "$as_me:17333: checking for ut_host in struct utmp" >&5
17334 echo $ECHO_N "checking for ut_host in struct utmp... $ECHO_C" >&6
17335 if test "${ac_cv_type_struct_utmp_ut_host+set}" = set; then
17336 echo $ECHO_N "(cached) $ECHO_C" >&6
17339 cat >conftest.$ac_ext <<_ACEOF
17340 #line 17340 "configure"
17341 #include "confdefs.h"
17346 struct utmp x; x.ut_host;
17351 rm -f conftest.$ac_objext
17352 if { (eval echo $as_me:17352: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
17353 ac_cv_type_struct_utmp_ut_host=yes
17355 echo "$as_me: failed program was:" >&5
17356 cat conftest.$ac_ext >&5
17357 ac_cv_type_struct_utmp_ut_host=no
17359 rm -f conftest.$ac_objext conftest.$ac_ext
17361 echo "$as_me:17361: result: $ac_cv_type_struct_utmp_ut_host" >&5
17362 echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_host" >&6
17363 if test "$ac_cv_type_struct_utmp_ut_host" = yes; then
17365 cat >>confdefs.h <<\EOF
17366 #define HAVE_STRUCT_UTMP_UT_HOST 1
17371 echo "$as_me:17371: checking for ut_id in struct utmp" >&5
17372 echo $ECHO_N "checking for ut_id in struct utmp... $ECHO_C" >&6
17373 if test "${ac_cv_type_struct_utmp_ut_id+set}" = set; then
17374 echo $ECHO_N "(cached) $ECHO_C" >&6
17377 cat >conftest.$ac_ext <<_ACEOF
17378 #line 17378 "configure"
17379 #include "confdefs.h"
17384 struct utmp x; x.ut_id;
17389 rm -f conftest.$ac_objext
17390 if { (eval echo $as_me:17390: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
17391 ac_cv_type_struct_utmp_ut_id=yes
17393 echo "$as_me: failed program was:" >&5
17394 cat conftest.$ac_ext >&5
17395 ac_cv_type_struct_utmp_ut_id=no
17397 rm -f conftest.$ac_objext conftest.$ac_ext
17399 echo "$as_me:17399: result: $ac_cv_type_struct_utmp_ut_id" >&5
17400 echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_id" >&6
17401 if test "$ac_cv_type_struct_utmp_ut_id" = yes; then
17403 cat >>confdefs.h <<\EOF
17404 #define HAVE_STRUCT_UTMP_UT_ID 1
17409 echo "$as_me:17409: checking for ut_pid in struct utmp" >&5
17410 echo $ECHO_N "checking for ut_pid in struct utmp... $ECHO_C" >&6
17411 if test "${ac_cv_type_struct_utmp_ut_pid+set}" = set; then
17412 echo $ECHO_N "(cached) $ECHO_C" >&6
17415 cat >conftest.$ac_ext <<_ACEOF
17416 #line 17416 "configure"
17417 #include "confdefs.h"
17422 struct utmp x; x.ut_pid;
17427 rm -f conftest.$ac_objext
17428 if { (eval echo $as_me:17428: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
17429 ac_cv_type_struct_utmp_ut_pid=yes
17431 echo "$as_me: failed program was:" >&5
17432 cat conftest.$ac_ext >&5
17433 ac_cv_type_struct_utmp_ut_pid=no
17435 rm -f conftest.$ac_objext conftest.$ac_ext
17437 echo "$as_me:17437: result: $ac_cv_type_struct_utmp_ut_pid" >&5
17438 echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_pid" >&6
17439 if test "$ac_cv_type_struct_utmp_ut_pid" = yes; then
17441 cat >>confdefs.h <<\EOF
17442 #define HAVE_STRUCT_UTMP_UT_PID 1
17447 echo "$as_me:17447: checking for ut_type in struct utmp" >&5
17448 echo $ECHO_N "checking for ut_type in struct utmp... $ECHO_C" >&6
17449 if test "${ac_cv_type_struct_utmp_ut_type+set}" = set; then
17450 echo $ECHO_N "(cached) $ECHO_C" >&6
17453 cat >conftest.$ac_ext <<_ACEOF
17454 #line 17454 "configure"
17455 #include "confdefs.h"
17460 struct utmp x; x.ut_type;
17465 rm -f conftest.$ac_objext
17466 if { (eval echo $as_me:17466: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
17467 ac_cv_type_struct_utmp_ut_type=yes
17469 echo "$as_me: failed program was:" >&5
17470 cat conftest.$ac_ext >&5
17471 ac_cv_type_struct_utmp_ut_type=no
17473 rm -f conftest.$ac_objext conftest.$ac_ext
17475 echo "$as_me:17475: result: $ac_cv_type_struct_utmp_ut_type" >&5
17476 echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_type" >&6
17477 if test "$ac_cv_type_struct_utmp_ut_type" = yes; then
17479 cat >>confdefs.h <<\EOF
17480 #define HAVE_STRUCT_UTMP_UT_TYPE 1
17485 echo "$as_me:17485: checking for ut_user in struct utmp" >&5
17486 echo $ECHO_N "checking for ut_user in struct utmp... $ECHO_C" >&6
17487 if test "${ac_cv_type_struct_utmp_ut_user+set}" = set; then
17488 echo $ECHO_N "(cached) $ECHO_C" >&6
17491 cat >conftest.$ac_ext <<_ACEOF
17492 #line 17492 "configure"
17493 #include "confdefs.h"
17498 struct utmp x; x.ut_user;
17503 rm -f conftest.$ac_objext
17504 if { (eval echo $as_me:17504: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
17505 ac_cv_type_struct_utmp_ut_user=yes
17507 echo "$as_me: failed program was:" >&5
17508 cat conftest.$ac_ext >&5
17509 ac_cv_type_struct_utmp_ut_user=no
17511 rm -f conftest.$ac_objext conftest.$ac_ext
17513 echo "$as_me:17513: result: $ac_cv_type_struct_utmp_ut_user" >&5
17514 echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_user" >&6
17515 if test "$ac_cv_type_struct_utmp_ut_user" = yes; then
17517 cat >>confdefs.h <<\EOF
17518 #define HAVE_STRUCT_UTMP_UT_USER 1
17523 echo "$as_me:17523: checking for ut_exit in struct utmpx" >&5
17524 echo $ECHO_N "checking for ut_exit in struct utmpx... $ECHO_C" >&6
17525 if test "${ac_cv_type_struct_utmpx_ut_exit+set}" = set; then
17526 echo $ECHO_N "(cached) $ECHO_C" >&6
17529 cat >conftest.$ac_ext <<_ACEOF
17530 #line 17530 "configure"
17531 #include "confdefs.h"
17536 struct utmpx x; x.ut_exit;
17541 rm -f conftest.$ac_objext
17542 if { (eval echo $as_me:17542: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
17543 ac_cv_type_struct_utmpx_ut_exit=yes
17545 echo "$as_me: failed program was:" >&5
17546 cat conftest.$ac_ext >&5
17547 ac_cv_type_struct_utmpx_ut_exit=no
17549 rm -f conftest.$ac_objext conftest.$ac_ext
17551 echo "$as_me:17551: result: $ac_cv_type_struct_utmpx_ut_exit" >&5
17552 echo "${ECHO_T}$ac_cv_type_struct_utmpx_ut_exit" >&6
17553 if test "$ac_cv_type_struct_utmpx_ut_exit" = yes; then
17555 cat >>confdefs.h <<\EOF
17556 #define HAVE_STRUCT_UTMPX_UT_EXIT 1
17561 echo "$as_me:17561: checking for ut_syslen in struct utmpx" >&5
17562 echo $ECHO_N "checking for ut_syslen in struct utmpx... $ECHO_C" >&6
17563 if test "${ac_cv_type_struct_utmpx_ut_syslen+set}" = set; then
17564 echo $ECHO_N "(cached) $ECHO_C" >&6
17567 cat >conftest.$ac_ext <<_ACEOF
17568 #line 17568 "configure"
17569 #include "confdefs.h"
17574 struct utmpx x; x.ut_syslen;
17579 rm -f conftest.$ac_objext
17580 if { (eval echo $as_me:17580: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
17581 ac_cv_type_struct_utmpx_ut_syslen=yes
17583 echo "$as_me: failed program was:" >&5
17584 cat conftest.$ac_ext >&5
17585 ac_cv_type_struct_utmpx_ut_syslen=no
17587 rm -f conftest.$ac_objext conftest.$ac_ext
17589 echo "$as_me:17589: result: $ac_cv_type_struct_utmpx_ut_syslen" >&5
17590 echo "${ECHO_T}$ac_cv_type_struct_utmpx_ut_syslen" >&6
17591 if test "$ac_cv_type_struct_utmpx_ut_syslen" = yes; then
17593 cat >>confdefs.h <<\EOF
17594 #define HAVE_STRUCT_UTMPX_UT_SYSLEN 1
17599 echo "$as_me:17599: checking for tm_gmtoff in struct tm" >&5
17600 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
17601 if test "${ac_cv_type_struct_tm_tm_gmtoff+set}" = set; then
17602 echo $ECHO_N "(cached) $ECHO_C" >&6
17605 cat >conftest.$ac_ext <<_ACEOF
17606 #line 17606 "configure"
17607 #include "confdefs.h"
17612 struct tm x; x.tm_gmtoff;
17617 rm -f conftest.$ac_objext
17618 if { (eval echo $as_me:17618: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
17619 ac_cv_type_struct_tm_tm_gmtoff=yes
17621 echo "$as_me: failed program was:" >&5
17622 cat conftest.$ac_ext >&5
17623 ac_cv_type_struct_tm_tm_gmtoff=no
17625 rm -f conftest.$ac_objext conftest.$ac_ext
17627 echo "$as_me:17627: result: $ac_cv_type_struct_tm_tm_gmtoff" >&5
17628 echo "${ECHO_T}$ac_cv_type_struct_tm_tm_gmtoff" >&6
17629 if test "$ac_cv_type_struct_tm_tm_gmtoff" = yes; then
17631 cat >>confdefs.h <<\EOF
17632 #define HAVE_STRUCT_TM_TM_GMTOFF 1
17637 echo "$as_me:17637: checking for tm_zone in struct tm" >&5
17638 echo $ECHO_N "checking for tm_zone in struct tm... $ECHO_C" >&6
17639 if test "${ac_cv_type_struct_tm_tm_zone+set}" = set; then
17640 echo $ECHO_N "(cached) $ECHO_C" >&6
17643 cat >conftest.$ac_ext <<_ACEOF
17644 #line 17644 "configure"
17645 #include "confdefs.h"
17650 struct tm x; x.tm_zone;
17655 rm -f conftest.$ac_objext
17656 if { (eval echo $as_me:17656: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
17657 ac_cv_type_struct_tm_tm_zone=yes
17659 echo "$as_me: failed program was:" >&5
17660 cat conftest.$ac_ext >&5
17661 ac_cv_type_struct_tm_tm_zone=no
17663 rm -f conftest.$ac_objext conftest.$ac_ext
17665 echo "$as_me:17665: result: $ac_cv_type_struct_tm_tm_zone" >&5
17666 echo "${ECHO_T}$ac_cv_type_struct_tm_tm_zone" >&6
17667 if test "$ac_cv_type_struct_tm_tm_zone" = yes; then
17669 cat >>confdefs.h <<\EOF
17670 #define HAVE_STRUCT_TM_TM_ZONE 1
17675 echo "$as_me:17675: checking for timezone" >&5
17676 echo $ECHO_N "checking for timezone... $ECHO_C" >&6
17677 if test "${ac_cv_var_timezone+set}" = set; then
17678 echo $ECHO_N "(cached) $ECHO_C" >&6
17681 cat >conftest.$ac_ext <<_ACEOF
17682 #line 17682 "configure"
17683 #include "confdefs.h"
17684 extern int timezone;
17685 int foo() { return timezone; }
17694 rm -f conftest.$ac_objext conftest$ac_exeext
17695 if { (eval echo $as_me:17695: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
17696 ac_cv_var_timezone=yes
17698 echo "$as_me: failed program was:" >&5
17699 cat conftest.$ac_ext >&5
17700 ac_cv_var_timezone=no
17702 rm -f conftest$ac_exeext conftest.$ac_ext
17706 ac_foo=`eval echo \\$ac_cv_var_timezone`
17707 echo "$as_me:17707: result: $ac_foo" >&5
17708 echo "${ECHO_T}$ac_foo" >&6
17709 if test "$ac_foo" = yes; then
17711 cat >>confdefs.h <<EOF
17712 #define HAVE_TIMEZONE 1
17715 echo "$as_me:17715: checking if timezone is properly declared" >&5
17716 echo $ECHO_N "checking if timezone is properly declared... $ECHO_C" >&6
17717 if test "${ac_cv_var_timezone_declaration+set}" = set; then
17718 echo $ECHO_N "(cached) $ECHO_C" >&6
17721 cat >conftest.$ac_ext <<_ACEOF
17722 #line 17722 "configure"
17723 #include "confdefs.h"
17725 extern struct { int foo; } timezone;
17734 rm -f conftest.$ac_objext
17735 if { (eval echo $as_me:17735: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
17736 eval "ac_cv_var_timezone_declaration=no"
17738 echo "$as_me: failed program was:" >&5
17739 cat conftest.$ac_ext >&5
17740 eval "ac_cv_var_timezone_declaration=yes"
17742 rm -f conftest.$ac_objext conftest.$ac_ext
17746 echo "$as_me:17746: result: $ac_cv_var_timezone_declaration" >&5
17747 echo "${ECHO_T}$ac_cv_var_timezone_declaration" >&6
17748 if eval "test \"\$ac_cv_var_timezone_declaration\" = yes"; then
17750 cat >>confdefs.h <<\EOF
17751 #define HAVE_TIMEZONE_DECLARATION 1
17758 cv=`echo "sa_family_t" | sed 'y%./+- %__p__%'`
17759 echo "$as_me:17759: checking for sa_family_t" >&5
17760 echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
17761 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
17762 echo $ECHO_N "(cached) $ECHO_C" >&6
17764 cat >conftest.$ac_ext <<_ACEOF
17765 #line 17765 "configure"
17766 #include "confdefs.h"
17767 #include <sys/types.h>
17769 #include <stdlib.h>
17770 #include <stddef.h>
17772 #include <sys/socket.h>
17781 rm -f conftest.$ac_objext
17782 if { (eval echo $as_me:17782: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
17783 eval "ac_cv_type_$cv=yes"
17785 echo "$as_me: failed program was:" >&5
17786 cat conftest.$ac_ext >&5
17787 eval "ac_cv_type_$cv=no"
17789 rm -f conftest.$ac_objext conftest.$ac_ext
17791 ac_foo=`eval echo \\$ac_cv_type_$cv`
17792 echo "$as_me:17792: result: $ac_foo" >&5
17793 echo "${ECHO_T}$ac_foo" >&6
17794 if test "$ac_foo" = yes; then
17795 ac_tr_hdr=HAVE_`echo sa_family_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
17797 echo "$as_me:17797: checking for sa_family_t" >&5
17798 echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
17799 if test "${ac_cv_type_sa_family_t+set}" = set; then
17800 echo $ECHO_N "(cached) $ECHO_C" >&6
17802 cat >conftest.$ac_ext <<_ACEOF
17803 #line 17803 "configure"
17804 #include "confdefs.h"
17805 $ac_includes_default
17809 if ((sa_family_t *) 0)
17811 if (sizeof (sa_family_t))
17817 rm -f conftest.$ac_objext
17818 if { (eval echo $as_me:17818: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
17819 ac_cv_type_sa_family_t=yes
17821 echo "$as_me: failed program was:" >&5
17822 cat conftest.$ac_ext >&5
17823 ac_cv_type_sa_family_t=no
17825 rm -f conftest.$ac_objext conftest.$ac_ext
17827 echo "$as_me:17827: result: $ac_cv_type_sa_family_t" >&5
17828 echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6
17829 if test $ac_cv_type_sa_family_t = yes; then
17831 cat >>confdefs.h <<EOF
17832 #define HAVE_SA_FAMILY_T 1
17839 cat >>confdefs.h <<EOF
17840 #define $ac_tr_hdr 1
17845 cv=`echo "socklen_t" | sed 'y%./+- %__p__%'`
17846 echo "$as_me:17846: checking for socklen_t" >&5
17847 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
17848 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
17849 echo $ECHO_N "(cached) $ECHO_C" >&6
17851 cat >conftest.$ac_ext <<_ACEOF
17852 #line 17852 "configure"
17853 #include "confdefs.h"
17854 #include <sys/types.h>
17856 #include <stdlib.h>
17857 #include <stddef.h>
17859 #include <sys/socket.h>
17868 rm -f conftest.$ac_objext
17869 if { (eval echo $as_me:17869: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
17870 eval "ac_cv_type_$cv=yes"
17872 echo "$as_me: failed program was:" >&5
17873 cat conftest.$ac_ext >&5
17874 eval "ac_cv_type_$cv=no"
17876 rm -f conftest.$ac_objext conftest.$ac_ext
17878 ac_foo=`eval echo \\$ac_cv_type_$cv`
17879 echo "$as_me:17879: result: $ac_foo" >&5
17880 echo "${ECHO_T}$ac_foo" >&6
17881 if test "$ac_foo" = yes; then
17882 ac_tr_hdr=HAVE_`echo socklen_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
17884 echo "$as_me:17884: checking for socklen_t" >&5
17885 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
17886 if test "${ac_cv_type_socklen_t+set}" = set; then
17887 echo $ECHO_N "(cached) $ECHO_C" >&6
17889 cat >conftest.$ac_ext <<_ACEOF
17890 #line 17890 "configure"
17891 #include "confdefs.h"
17892 $ac_includes_default
17896 if ((socklen_t *) 0)
17898 if (sizeof (socklen_t))
17904 rm -f conftest.$ac_objext
17905 if { (eval echo $as_me:17905: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
17906 ac_cv_type_socklen_t=yes
17908 echo "$as_me: failed program was:" >&5
17909 cat conftest.$ac_ext >&5
17910 ac_cv_type_socklen_t=no
17912 rm -f conftest.$ac_objext conftest.$ac_ext
17914 echo "$as_me:17914: result: $ac_cv_type_socklen_t" >&5
17915 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
17916 if test $ac_cv_type_socklen_t = yes; then
17918 cat >>confdefs.h <<EOF
17919 #define HAVE_SOCKLEN_T 1
17926 cat >>confdefs.h <<EOF
17927 #define $ac_tr_hdr 1
17932 cv=`echo "struct sockaddr" | sed 'y%./+- %__p__%'`
17933 echo "$as_me:17933: checking for struct sockaddr" >&5
17934 echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6
17935 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
17936 echo $ECHO_N "(cached) $ECHO_C" >&6
17938 cat >conftest.$ac_ext <<_ACEOF
17939 #line 17939 "configure"
17940 #include "confdefs.h"
17941 #include <sys/types.h>
17943 #include <stdlib.h>
17944 #include <stddef.h>
17946 #include <sys/socket.h>
17950 struct sockaddr foo;
17955 rm -f conftest.$ac_objext
17956 if { (eval echo $as_me:17956: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
17957 eval "ac_cv_type_$cv=yes"
17959 echo "$as_me: failed program was:" >&5
17960 cat conftest.$ac_ext >&5
17961 eval "ac_cv_type_$cv=no"
17963 rm -f conftest.$ac_objext conftest.$ac_ext
17965 ac_foo=`eval echo \\$ac_cv_type_$cv`
17966 echo "$as_me:17966: result: $ac_foo" >&5
17967 echo "${ECHO_T}$ac_foo" >&6
17968 if test "$ac_foo" = yes; then
17969 ac_tr_hdr=HAVE_`echo struct sockaddr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
17971 echo "$as_me:17971: checking for struct sockaddr" >&5
17972 echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6
17973 if test "${ac_cv_type_struct_sockaddr+set}" = set; then
17974 echo $ECHO_N "(cached) $ECHO_C" >&6
17976 cat >conftest.$ac_ext <<_ACEOF
17977 #line 17977 "configure"
17978 #include "confdefs.h"
17979 $ac_includes_default
17983 if ((struct sockaddr *) 0)
17985 if (sizeof (struct sockaddr))
17991 rm -f conftest.$ac_objext
17992 if { (eval echo $as_me:17992: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
17993 ac_cv_type_struct_sockaddr=yes
17995 echo "$as_me: failed program was:" >&5
17996 cat conftest.$ac_ext >&5
17997 ac_cv_type_struct_sockaddr=no
17999 rm -f conftest.$ac_objext conftest.$ac_ext
18001 echo "$as_me:18001: result: $ac_cv_type_struct_sockaddr" >&5
18002 echo "${ECHO_T}$ac_cv_type_struct_sockaddr" >&6
18003 if test $ac_cv_type_struct_sockaddr = yes; then
18005 cat >>confdefs.h <<EOF
18006 #define HAVE_STRUCT_SOCKADDR 1
18013 cat >>confdefs.h <<EOF
18014 #define $ac_tr_hdr 1
18019 cv=`echo "struct sockaddr_storage" | sed 'y%./+- %__p__%'`
18020 echo "$as_me:18020: checking for struct sockaddr_storage" >&5
18021 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
18022 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
18023 echo $ECHO_N "(cached) $ECHO_C" >&6
18025 cat >conftest.$ac_ext <<_ACEOF
18026 #line 18026 "configure"
18027 #include "confdefs.h"
18028 #include <sys/types.h>
18030 #include <stdlib.h>
18031 #include <stddef.h>
18033 #include <sys/socket.h>
18037 struct sockaddr_storage foo;
18042 rm -f conftest.$ac_objext
18043 if { (eval echo $as_me:18043: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
18044 eval "ac_cv_type_$cv=yes"
18046 echo "$as_me: failed program was:" >&5
18047 cat conftest.$ac_ext >&5
18048 eval "ac_cv_type_$cv=no"
18050 rm -f conftest.$ac_objext conftest.$ac_ext
18052 ac_foo=`eval echo \\$ac_cv_type_$cv`
18053 echo "$as_me:18053: result: $ac_foo" >&5
18054 echo "${ECHO_T}$ac_foo" >&6
18055 if test "$ac_foo" = yes; then
18056 ac_tr_hdr=HAVE_`echo struct sockaddr_storage | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
18058 echo "$as_me:18058: checking for struct sockaddr_storage" >&5
18059 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
18060 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
18061 echo $ECHO_N "(cached) $ECHO_C" >&6
18063 cat >conftest.$ac_ext <<_ACEOF
18064 #line 18064 "configure"
18065 #include "confdefs.h"
18066 $ac_includes_default
18070 if ((struct sockaddr_storage *) 0)
18072 if (sizeof (struct sockaddr_storage))
18078 rm -f conftest.$ac_objext
18079 if { (eval echo $as_me:18079: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
18080 ac_cv_type_struct_sockaddr_storage=yes
18082 echo "$as_me: failed program was:" >&5
18083 cat conftest.$ac_ext >&5
18084 ac_cv_type_struct_sockaddr_storage=no
18086 rm -f conftest.$ac_objext conftest.$ac_ext
18088 echo "$as_me:18088: result: $ac_cv_type_struct_sockaddr_storage" >&5
18089 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
18090 if test $ac_cv_type_struct_sockaddr_storage = yes; then
18092 cat >>confdefs.h <<EOF
18093 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
18100 cat >>confdefs.h <<EOF
18101 #define $ac_tr_hdr 1
18106 cv=`echo "struct addrinfo" | sed 'y%./+- %__p__%'`
18107 echo "$as_me:18107: checking for struct addrinfo" >&5
18108 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
18109 if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
18110 echo $ECHO_N "(cached) $ECHO_C" >&6
18112 cat >conftest.$ac_ext <<_ACEOF
18113 #line 18113 "configure"
18114 #include "confdefs.h"
18115 #include <sys/types.h>
18117 #include <stdlib.h>
18118 #include <stddef.h>
18124 struct addrinfo foo;
18129 rm -f conftest.$ac_objext
18130 if { (eval echo $as_me:18130: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
18131 eval "ac_cv_type_$cv=yes"
18133 echo "$as_me: failed program was:" >&5
18134 cat conftest.$ac_ext >&5
18135 eval "ac_cv_type_$cv=no"
18137 rm -f conftest.$ac_objext conftest.$ac_ext
18139 ac_foo=`eval echo \\$ac_cv_type_$cv`
18140 echo "$as_me:18140: result: $ac_foo" >&5
18141 echo "${ECHO_T}$ac_foo" >&6
18142 if test "$ac_foo" = yes; then
18143 ac_tr_hdr=HAVE_`echo struct addrinfo | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
18145 echo "$as_me:18145: checking for struct addrinfo" >&5
18146 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
18147 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
18148 echo $ECHO_N "(cached) $ECHO_C" >&6
18150 cat >conftest.$ac_ext <<_ACEOF
18151 #line 18151 "configure"
18152 #include "confdefs.h"
18153 $ac_includes_default
18157 if ((struct addrinfo *) 0)
18159 if (sizeof (struct addrinfo))
18165 rm -f conftest.$ac_objext
18166 if { (eval echo $as_me:18166: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
18167 ac_cv_type_struct_addrinfo=yes
18169 echo "$as_me: failed program was:" >&5
18170 cat conftest.$ac_ext >&5
18171 ac_cv_type_struct_addrinfo=no
18173 rm -f conftest.$ac_objext conftest.$ac_ext
18175 echo "$as_me:18175: result: $ac_cv_type_struct_addrinfo" >&5
18176 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
18177 if test $ac_cv_type_struct_addrinfo = yes; then
18179 cat >>confdefs.h <<EOF
18180 #define HAVE_STRUCT_ADDRINFO 1
18187 cat >>confdefs.h <<EOF
18188 #define $ac_tr_hdr 1
18193 echo "$as_me:18193: checking for struct winsize" >&5
18194 echo $ECHO_N "checking for struct winsize... $ECHO_C" >&6
18195 if test "${ac_cv_struct_winsize+set}" = set; then
18196 echo $ECHO_N "(cached) $ECHO_C" >&6
18199 ac_cv_struct_winsize=no
18200 for i in sys/termios.h sys/ioctl.h; do
18201 cat >conftest.$ac_ext <<_ACEOF
18202 #line 18202 "configure"
18203 #include "confdefs.h"
18207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18208 egrep "struct[ ]*winsize" >/dev/null 2>&1; then
18209 ac_cv_struct_winsize=yes; break
18216 if test "$ac_cv_struct_winsize" = "yes"; then
18218 cat >>confdefs.h <<\EOF
18219 #define HAVE_STRUCT_WINSIZE 1
18223 echo "$as_me:18223: result: $ac_cv_struct_winsize" >&5
18224 echo "${ECHO_T}$ac_cv_struct_winsize" >&6
18225 cat >conftest.$ac_ext <<_ACEOF
18226 #line 18226 "configure"
18227 #include "confdefs.h"
18228 #include <termios.h>
18231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18232 egrep "ws_xpixel" >/dev/null 2>&1; then
18234 cat >>confdefs.h <<\EOF
18235 #define HAVE_WS_XPIXEL 1
18241 cat >conftest.$ac_ext <<_ACEOF
18242 #line 18242 "configure"
18243 #include "confdefs.h"
18244 #include <termios.h>
18247 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18248 egrep "ws_ypixel" >/dev/null 2>&1; then
18250 cat >>confdefs.h <<\EOF
18251 #define HAVE_WS_YPIXEL 1
18257 echo "$as_me:18257: checking for struct spwd" >&5
18258 echo $ECHO_N "checking for struct spwd... $ECHO_C" >&6
18259 if test "${ac_cv_struct_spwd+set}" = set; then
18260 echo $ECHO_N "(cached) $ECHO_C" >&6
18263 cat >conftest.$ac_ext <<_ACEOF
18264 #line 18264 "configure"
18265 #include "confdefs.h"
18267 #ifdef HAVE_SHADOW_H
18268 #include <shadow.h>
18278 rm -f conftest.$ac_objext
18279 if { (eval echo $as_me:18279: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
18280 ac_cv_struct_spwd=yes
18282 echo "$as_me: failed program was:" >&5
18283 cat conftest.$ac_ext >&5
18284 ac_cv_struct_spwd=no
18286 rm -f conftest.$ac_objext conftest.$ac_ext
18290 echo "$as_me:18290: result: $ac_cv_struct_spwd" >&5
18291 echo "${ECHO_T}$ac_cv_struct_spwd" >&6
18293 if test "$ac_cv_struct_spwd" = "yes"; then
18295 cat >>confdefs.h <<\EOF
18296 #define HAVE_STRUCT_SPWD 1
18301 echo "$as_me:18301: checking for sa_len in struct sockaddr" >&5
18302 echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
18303 if test "${ac_cv_type_struct_sockaddr_sa_len+set}" = set; then
18304 echo $ECHO_N "(cached) $ECHO_C" >&6
18307 cat >conftest.$ac_ext <<_ACEOF
18308 #line 18308 "configure"
18309 #include "confdefs.h"
18310 #include <sys/types.h>
18311 #include <sys/socket.h>
18315 struct sockaddr x; x.sa_len;
18320 rm -f conftest.$ac_objext
18321 if { (eval echo $as_me:18321: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
18322 ac_cv_type_struct_sockaddr_sa_len=yes
18324 echo "$as_me: failed program was:" >&5
18325 cat conftest.$ac_ext >&5
18326 ac_cv_type_struct_sockaddr_sa_len=no
18328 rm -f conftest.$ac_objext conftest.$ac_ext
18330 echo "$as_me:18330: result: $ac_cv_type_struct_sockaddr_sa_len" >&5
18331 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_sa_len" >&6
18332 if test "$ac_cv_type_struct_sockaddr_sa_len" = yes; then
18334 cat >>confdefs.h <<\EOF
18335 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
18340 for i in int8_t int16_t int32_t int64_t \
18341 u_int8_t u_int16_t u_int32_t u_int64_t \
18342 uint8_t uint16_t uint32_t uint64_t; do
18343 echo "$as_me:18343: checking for $i" >&5
18344 echo $ECHO_N "checking for $i... $ECHO_C" >&6
18346 if eval "test \"\${ac_cv_type_$i+set}\" = set"; then
18347 echo $ECHO_N "(cached) $ECHO_C" >&6
18349 cat >conftest.$ac_ext <<_ACEOF
18350 #line 18350 "configure"
18351 #include "confdefs.h"
18353 #ifdef HAVE_INTTYPES_H
18354 #include <inttypes.h>
18356 #ifdef HAVE_SYS_TYPES_H
18357 #include <sys/types.h>
18359 #ifdef HAVE_SYS_BITYPES_H
18360 #include <sys/bitypes.h>
18362 #ifdef HAVE_BIND_BITYPES_H
18363 #include <bind/bitypes.h>
18365 #ifdef HAVE_NETINET_IN6_MACHTYPES_H
18366 #include <netinet/in6_machtypes.h>
18378 rm -f conftest.$ac_objext
18379 if { (eval echo $as_me:18379: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
18380 eval ac_cv_type_$i=yes
18382 echo "$as_me: failed program was:" >&5
18383 cat conftest.$ac_ext >&5
18384 eval ac_cv_type_$i=no
18386 rm -f conftest.$ac_objext conftest.$ac_ext
18389 eval ac_res=\$ac_cv_type_$i
18390 if test "$ac_res" = yes; then
18391 type=HAVE_`echo $i | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
18392 cat >>confdefs.h <<EOF
18397 echo "$as_me:18397: result: $ac_res" >&5
18398 echo "${ECHO_T}$ac_res" >&6
18409 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
18411 echo "$as_me:18411: checking for $ac_header" >&5
18412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18413 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
18414 echo $ECHO_N "(cached) $ECHO_C" >&6
18416 cat >conftest.$ac_ext <<_ACEOF
18417 #line 18417 "configure"
18418 #include "confdefs.h"
18419 #include <$ac_header>
18422 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.err"
18423 if { (eval echo $as_me:18423: \"$ac_try\") >&5; (eval $ac_try) 2>&5; }; then
18424 if egrep -v '^ *\+' conftest.err | grep . >/dev/null; then
18425 ac_cpp_err=$ac_c_preproc_warn_flag
18433 if test -z "$ac_cpp_err"; then
18434 eval "$ac_ac_Header=yes"
18436 cat conftest.err >&5
18437 echo "$as_me: failed program was:" >&5
18438 cat conftest.$ac_ext >&5
18439 eval "$ac_ac_Header=no"
18444 echo "$as_me:18444: result: `eval echo '${'$ac_ac_Header'}'`" >&5
18445 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
18446 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
18447 cat >>confdefs.h <<EOF
18448 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
18454 echo "$as_me:18454: checking for MD4_Init" >&5
18455 echo $ECHO_N "checking for MD4_Init... $ECHO_C" >&6
18456 if test "${ac_cv_funclib_MD4_Init+set}" = set; then
18457 echo $ECHO_N "(cached) $ECHO_C" >&6
18460 if eval "test \"\$ac_cv_func_MD4_Init\" != yes" ; then
18461 ac_save_LIBS="$LIBS"
18462 for ac_lib in crypto des; do
18463 if test -n "$ac_lib"; then
18468 LIBS="$test_LIB_krb4 $ac_lib $ac_save_LIBS"
18469 cat >conftest.$ac_ext <<_ACEOF
18470 #line 18470 "configure"
18471 #include "confdefs.h"
18481 rm -f conftest.$ac_objext conftest$ac_exeext
18482 if { (eval echo $as_me:18482: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
18483 eval "if test -n \"$ac_lib\";then ac_cv_funclib_MD4_Init=$ac_lib; else ac_cv_funclib_MD4_Init=yes; fi";break
18485 echo "$as_me: failed program was:" >&5
18486 cat conftest.$ac_ext >&5
18488 rm -f conftest$ac_exeext conftest.$ac_ext
18490 eval "ac_cv_funclib_MD4_Init=\${ac_cv_funclib_MD4_Init-no}"
18491 LIBS="$ac_save_LIBS"
18496 eval "ac_res=\$ac_cv_funclib_MD4_Init"
18500 for ac_func in MD4_Init
18502 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
18503 echo "$as_me:18503: checking for $ac_func" >&5
18504 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18505 if eval "test \"\${$ac_ac_var+set}\" = set"; then
18506 echo $ECHO_N "(cached) $ECHO_C" >&6
18508 cat >conftest.$ac_ext <<_ACEOF
18509 #line 18509 "configure"
18510 #include "confdefs.h"
18511 /* System header to define __stub macros and hopefully few prototypes,
18512 which can conflict with char $ac_func (); below. */
18513 #include <assert.h>
18514 /* Override any gcc2 internal prototype to avoid an error. */
18518 /* We use char because int might match the return type of a gcc2
18519 builtin and then its argument prototype would still apply. */
18526 /* The GNU C library defines this for functions which it implements
18527 to always fail with ENOSYS. Some functions are actually named
18528 something starting with __ and the normal name is an alias. */
18529 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18539 rm -f conftest.$ac_objext conftest$ac_exeext
18540 if { (eval echo $as_me:18540: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
18541 eval "$ac_ac_var=yes"
18543 echo "$as_me: failed program was:" >&5
18544 cat conftest.$ac_ext >&5
18545 eval "$ac_ac_var=no"
18547 rm -f conftest$ac_exeext conftest.$ac_ext
18549 echo "$as_me:18549: result: `eval echo '${'$ac_ac_var'}'`" >&5
18550 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
18551 if test `eval echo '${'$ac_ac_var'}'` = yes; then
18552 cat >>confdefs.h <<EOF
18553 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
18561 eval "ac_tr_func=HAVE_`echo MD4_Init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
18562 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
18563 eval "LIB_MD4_Init=$ac_res"
18567 eval "ac_cv_func_MD4_Init=yes"
18568 eval "LIB_MD4_Init="
18569 cat >>confdefs.h <<EOF
18570 #define $ac_tr_func 1
18573 echo "$as_me:18573: result: yes" >&5
18574 echo "${ECHO_T}yes" >&6
18577 eval "ac_cv_func_MD4_Init=no"
18578 eval "LIB_MD4_Init="
18579 echo "$as_me:18579: result: no" >&5
18580 echo "${ECHO_T}no" >&6
18583 eval "ac_cv_func_MD4_Init=yes"
18584 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
18585 cat >>confdefs.h <<EOF
18586 #define $ac_tr_func 1
18589 cat >>confdefs.h <<EOF
18590 #define $ac_tr_lib 1
18593 echo "$as_me:18593: result: yes, in $ac_res" >&5
18594 echo "${ECHO_T}yes, in $ac_res" >&6
18598 echo "$as_me:18598: checking for MD5_Init" >&5
18599 echo $ECHO_N "checking for MD5_Init... $ECHO_C" >&6
18600 if test "${ac_cv_funclib_MD5_Init+set}" = set; then
18601 echo $ECHO_N "(cached) $ECHO_C" >&6
18604 if eval "test \"\$ac_cv_func_MD5_Init\" != yes" ; then
18605 ac_save_LIBS="$LIBS"
18606 for ac_lib in crypto des; do
18607 if test -n "$ac_lib"; then
18612 LIBS="$test_LIB_krb4 $ac_lib $ac_save_LIBS"
18613 cat >conftest.$ac_ext <<_ACEOF
18614 #line 18614 "configure"
18615 #include "confdefs.h"
18625 rm -f conftest.$ac_objext conftest$ac_exeext
18626 if { (eval echo $as_me:18626: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
18627 eval "if test -n \"$ac_lib\";then ac_cv_funclib_MD5_Init=$ac_lib; else ac_cv_funclib_MD5_Init=yes; fi";break
18629 echo "$as_me: failed program was:" >&5
18630 cat conftest.$ac_ext >&5
18632 rm -f conftest$ac_exeext conftest.$ac_ext
18634 eval "ac_cv_funclib_MD5_Init=\${ac_cv_funclib_MD5_Init-no}"
18635 LIBS="$ac_save_LIBS"
18640 eval "ac_res=\$ac_cv_funclib_MD5_Init"
18644 for ac_func in MD5_Init
18646 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
18647 echo "$as_me:18647: checking for $ac_func" >&5
18648 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18649 if eval "test \"\${$ac_ac_var+set}\" = set"; then
18650 echo $ECHO_N "(cached) $ECHO_C" >&6
18652 cat >conftest.$ac_ext <<_ACEOF
18653 #line 18653 "configure"
18654 #include "confdefs.h"
18655 /* System header to define __stub macros and hopefully few prototypes,
18656 which can conflict with char $ac_func (); below. */
18657 #include <assert.h>
18658 /* Override any gcc2 internal prototype to avoid an error. */
18662 /* We use char because int might match the return type of a gcc2
18663 builtin and then its argument prototype would still apply. */
18670 /* The GNU C library defines this for functions which it implements
18671 to always fail with ENOSYS. Some functions are actually named
18672 something starting with __ and the normal name is an alias. */
18673 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18683 rm -f conftest.$ac_objext conftest$ac_exeext
18684 if { (eval echo $as_me:18684: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
18685 eval "$ac_ac_var=yes"
18687 echo "$as_me: failed program was:" >&5
18688 cat conftest.$ac_ext >&5
18689 eval "$ac_ac_var=no"
18691 rm -f conftest$ac_exeext conftest.$ac_ext
18693 echo "$as_me:18693: result: `eval echo '${'$ac_ac_var'}'`" >&5
18694 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
18695 if test `eval echo '${'$ac_ac_var'}'` = yes; then
18696 cat >>confdefs.h <<EOF
18697 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
18705 eval "ac_tr_func=HAVE_`echo MD5_Init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
18706 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
18707 eval "LIB_MD5_Init=$ac_res"
18711 eval "ac_cv_func_MD5_Init=yes"
18712 eval "LIB_MD5_Init="
18713 cat >>confdefs.h <<EOF
18714 #define $ac_tr_func 1
18717 echo "$as_me:18717: result: yes" >&5
18718 echo "${ECHO_T}yes" >&6
18721 eval "ac_cv_func_MD5_Init=no"
18722 eval "LIB_MD5_Init="
18723 echo "$as_me:18723: result: no" >&5
18724 echo "${ECHO_T}no" >&6
18727 eval "ac_cv_func_MD5_Init=yes"
18728 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
18729 cat >>confdefs.h <<EOF
18730 #define $ac_tr_func 1
18733 cat >>confdefs.h <<EOF
18734 #define $ac_tr_lib 1
18737 echo "$as_me:18737: result: yes, in $ac_res" >&5
18738 echo "${ECHO_T}yes, in $ac_res" >&6
18742 echo "$as_me:18742: checking for SHA1_Init" >&5
18743 echo $ECHO_N "checking for SHA1_Init... $ECHO_C" >&6
18744 if test "${ac_cv_funclib_SHA1_Init+set}" = set; then
18745 echo $ECHO_N "(cached) $ECHO_C" >&6
18748 if eval "test \"\$ac_cv_func_SHA1_Init\" != yes" ; then
18749 ac_save_LIBS="$LIBS"
18750 for ac_lib in crypto des; do
18751 if test -n "$ac_lib"; then
18756 LIBS="$test_LIB_krb4 $ac_lib $ac_save_LIBS"
18757 cat >conftest.$ac_ext <<_ACEOF
18758 #line 18758 "configure"
18759 #include "confdefs.h"
18769 rm -f conftest.$ac_objext conftest$ac_exeext
18770 if { (eval echo $as_me:18770: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
18771 eval "if test -n \"$ac_lib\";then ac_cv_funclib_SHA1_Init=$ac_lib; else ac_cv_funclib_SHA1_Init=yes; fi";break
18773 echo "$as_me: failed program was:" >&5
18774 cat conftest.$ac_ext >&5
18776 rm -f conftest$ac_exeext conftest.$ac_ext
18778 eval "ac_cv_funclib_SHA1_Init=\${ac_cv_funclib_SHA1_Init-no}"
18779 LIBS="$ac_save_LIBS"
18784 eval "ac_res=\$ac_cv_funclib_SHA1_Init"
18788 for ac_func in SHA1_Init
18790 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
18791 echo "$as_me:18791: checking for $ac_func" >&5
18792 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18793 if eval "test \"\${$ac_ac_var+set}\" = set"; then
18794 echo $ECHO_N "(cached) $ECHO_C" >&6
18796 cat >conftest.$ac_ext <<_ACEOF
18797 #line 18797 "configure"
18798 #include "confdefs.h"
18799 /* System header to define __stub macros and hopefully few prototypes,
18800 which can conflict with char $ac_func (); below. */
18801 #include <assert.h>
18802 /* Override any gcc2 internal prototype to avoid an error. */
18806 /* We use char because int might match the return type of a gcc2
18807 builtin and then its argument prototype would still apply. */
18814 /* The GNU C library defines this for functions which it implements
18815 to always fail with ENOSYS. Some functions are actually named
18816 something starting with __ and the normal name is an alias. */
18817 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18827 rm -f conftest.$ac_objext conftest$ac_exeext
18828 if { (eval echo $as_me:18828: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
18829 eval "$ac_ac_var=yes"
18831 echo "$as_me: failed program was:" >&5
18832 cat conftest.$ac_ext >&5
18833 eval "$ac_ac_var=no"
18835 rm -f conftest$ac_exeext conftest.$ac_ext
18837 echo "$as_me:18837: result: `eval echo '${'$ac_ac_var'}'`" >&5
18838 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
18839 if test `eval echo '${'$ac_ac_var'}'` = yes; then
18840 cat >>confdefs.h <<EOF
18841 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
18849 eval "ac_tr_func=HAVE_`echo SHA1_Init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
18850 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
18851 eval "LIB_SHA1_Init=$ac_res"
18855 eval "ac_cv_func_SHA1_Init=yes"
18856 eval "LIB_SHA1_Init="
18857 cat >>confdefs.h <<EOF
18858 #define $ac_tr_func 1
18861 echo "$as_me:18861: result: yes" >&5
18862 echo "${ECHO_T}yes" >&6
18865 eval "ac_cv_func_SHA1_Init=no"
18866 eval "LIB_SHA1_Init="
18867 echo "$as_me:18867: result: no" >&5
18868 echo "${ECHO_T}no" >&6
18871 eval "ac_cv_func_SHA1_Init=yes"
18872 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
18873 cat >>confdefs.h <<EOF
18874 #define $ac_tr_func 1
18877 cat >>confdefs.h <<EOF
18878 #define $ac_tr_lib 1
18881 echo "$as_me:18881: result: yes, in $ac_res" >&5
18882 echo "${ECHO_T}yes, in $ac_res" >&6
18886 echo "$as_me:18886: checking for des_cbc_encrypt" >&5
18887 echo $ECHO_N "checking for des_cbc_encrypt... $ECHO_C" >&6
18888 if test "${ac_cv_funclib_des_cbc_encrypt+set}" = set; then
18889 echo $ECHO_N "(cached) $ECHO_C" >&6
18892 if eval "test \"\$ac_cv_func_des_cbc_encrypt\" != yes" ; then
18893 ac_save_LIBS="$LIBS"
18894 for ac_lib in crypto des; do
18895 if test -n "$ac_lib"; then
18900 LIBS="$test_LIB_krb4 $ac_lib $ac_save_LIBS"
18901 cat >conftest.$ac_ext <<_ACEOF
18902 #line 18902 "configure"
18903 #include "confdefs.h"
18913 rm -f conftest.$ac_objext conftest$ac_exeext
18914 if { (eval echo $as_me:18914: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
18915 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
18917 echo "$as_me: failed program was:" >&5
18918 cat conftest.$ac_ext >&5
18920 rm -f conftest$ac_exeext conftest.$ac_ext
18922 eval "ac_cv_funclib_des_cbc_encrypt=\${ac_cv_funclib_des_cbc_encrypt-no}"
18923 LIBS="$ac_save_LIBS"
18928 eval "ac_res=\$ac_cv_funclib_des_cbc_encrypt"
18932 for ac_func in des_cbc_encrypt
18934 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
18935 echo "$as_me:18935: checking for $ac_func" >&5
18936 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18937 if eval "test \"\${$ac_ac_var+set}\" = set"; then
18938 echo $ECHO_N "(cached) $ECHO_C" >&6
18940 cat >conftest.$ac_ext <<_ACEOF
18941 #line 18941 "configure"
18942 #include "confdefs.h"
18943 /* System header to define __stub macros and hopefully few prototypes,
18944 which can conflict with char $ac_func (); below. */
18945 #include <assert.h>
18946 /* Override any gcc2 internal prototype to avoid an error. */
18950 /* We use char because int might match the return type of a gcc2
18951 builtin and then its argument prototype would still apply. */
18958 /* The GNU C library defines this for functions which it implements
18959 to always fail with ENOSYS. Some functions are actually named
18960 something starting with __ and the normal name is an alias. */
18961 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18971 rm -f conftest.$ac_objext conftest$ac_exeext
18972 if { (eval echo $as_me:18972: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
18973 eval "$ac_ac_var=yes"
18975 echo "$as_me: failed program was:" >&5
18976 cat conftest.$ac_ext >&5
18977 eval "$ac_ac_var=no"
18979 rm -f conftest$ac_exeext conftest.$ac_ext
18981 echo "$as_me:18981: result: `eval echo '${'$ac_ac_var'}'`" >&5
18982 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
18983 if test `eval echo '${'$ac_ac_var'}'` = yes; then
18984 cat >>confdefs.h <<EOF
18985 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
18993 eval "ac_tr_func=HAVE_`echo des_cbc_encrypt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
18994 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
18995 eval "LIB_des_cbc_encrypt=$ac_res"
18999 eval "ac_cv_func_des_cbc_encrypt=yes"
19000 eval "LIB_des_cbc_encrypt="
19001 cat >>confdefs.h <<EOF
19002 #define $ac_tr_func 1
19005 echo "$as_me:19005: result: yes" >&5
19006 echo "${ECHO_T}yes" >&6
19009 eval "ac_cv_func_des_cbc_encrypt=no"
19010 eval "LIB_des_cbc_encrypt="
19011 echo "$as_me:19011: result: no" >&5
19012 echo "${ECHO_T}no" >&6
19015 eval "ac_cv_func_des_cbc_encrypt=yes"
19016 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
19017 cat >>confdefs.h <<EOF
19018 #define $ac_tr_func 1
19021 cat >>confdefs.h <<EOF
19022 #define $ac_tr_lib 1
19025 echo "$as_me:19025: result: yes, in $ac_res" >&5
19026 echo "${ECHO_T}yes, in $ac_res" >&6
19030 echo "$as_me:19030: checking for RC4" >&5
19031 echo $ECHO_N "checking for RC4... $ECHO_C" >&6
19032 if test "${ac_cv_funclib_RC4+set}" = set; then
19033 echo $ECHO_N "(cached) $ECHO_C" >&6
19036 if eval "test \"\$ac_cv_func_RC4\" != yes" ; then
19037 ac_save_LIBS="$LIBS"
19038 for ac_lib in crypto des; do
19039 if test -n "$ac_lib"; then
19044 LIBS="$test_LIB_krb4 $ac_lib $ac_save_LIBS"
19045 cat >conftest.$ac_ext <<_ACEOF
19046 #line 19046 "configure"
19047 #include "confdefs.h"
19057 rm -f conftest.$ac_objext conftest$ac_exeext
19058 if { (eval echo $as_me:19058: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
19059 eval "if test -n \"$ac_lib\";then ac_cv_funclib_RC4=$ac_lib; else ac_cv_funclib_RC4=yes; fi";break
19061 echo "$as_me: failed program was:" >&5
19062 cat conftest.$ac_ext >&5
19064 rm -f conftest$ac_exeext conftest.$ac_ext
19066 eval "ac_cv_funclib_RC4=\${ac_cv_funclib_RC4-no}"
19067 LIBS="$ac_save_LIBS"
19072 eval "ac_res=\$ac_cv_funclib_RC4"
19078 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
19079 echo "$as_me:19079: checking for $ac_func" >&5
19080 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19081 if eval "test \"\${$ac_ac_var+set}\" = set"; then
19082 echo $ECHO_N "(cached) $ECHO_C" >&6
19084 cat >conftest.$ac_ext <<_ACEOF
19085 #line 19085 "configure"
19086 #include "confdefs.h"
19087 /* System header to define __stub macros and hopefully few prototypes,
19088 which can conflict with char $ac_func (); below. */
19089 #include <assert.h>
19090 /* Override any gcc2 internal prototype to avoid an error. */
19094 /* We use char because int might match the return type of a gcc2
19095 builtin and then its argument prototype would still apply. */
19102 /* The GNU C library defines this for functions which it implements
19103 to always fail with ENOSYS. Some functions are actually named
19104 something starting with __ and the normal name is an alias. */
19105 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19115 rm -f conftest.$ac_objext conftest$ac_exeext
19116 if { (eval echo $as_me:19116: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
19117 eval "$ac_ac_var=yes"
19119 echo "$as_me: failed program was:" >&5
19120 cat conftest.$ac_ext >&5
19121 eval "$ac_ac_var=no"
19123 rm -f conftest$ac_exeext conftest.$ac_ext
19125 echo "$as_me:19125: result: `eval echo '${'$ac_ac_var'}'`" >&5
19126 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
19127 if test `eval echo '${'$ac_ac_var'}'` = yes; then
19128 cat >>confdefs.h <<EOF
19129 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
19137 eval "ac_tr_func=HAVE_`echo RC4 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
19138 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
19139 eval "LIB_RC4=$ac_res"
19143 eval "ac_cv_func_RC4=yes"
19145 cat >>confdefs.h <<EOF
19146 #define $ac_tr_func 1
19149 echo "$as_me:19149: result: yes" >&5
19150 echo "${ECHO_T}yes" >&6
19153 eval "ac_cv_func_RC4=no"
19155 echo "$as_me:19155: result: no" >&5
19156 echo "${ECHO_T}no" >&6
19159 eval "ac_cv_func_RC4=yes"
19160 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
19161 cat >>confdefs.h <<EOF
19162 #define $ac_tr_func 1
19165 cat >>confdefs.h <<EOF
19166 #define $ac_tr_lib 1
19169 echo "$as_me:19169: result: yes, in $ac_res" >&5
19170 echo "${ECHO_T}yes, in $ac_res" >&6
19174 if test "$ac_cv_func_des_cbc_encrypt" = "yes" -a \
19175 "$ac_cv_func_MD4_Init" = "yes" -a \
19176 "$ac_cv_func_MD5_Init" = "yes" -a \
19177 "$ac_cv_func_SHA1_Init" = "yes" -a \
19178 "$ac_cv_func_RC4" = "yes"; then
19181 if test "$krb4_libdir" != ""; then
19182 LIB_des="-R $krb4_libdir -L$krb4_libdir"
19184 LIB_des="$LIB_des $ac_cv_funclib_MD4_Init"
19185 LIB_des_appl="$LIB_des"
19188 LIB_des='$(top_builddir)/lib/des/libdes.la'
19189 LIB_des_appl="-ldes"
19192 echo "$as_me:19192: checking for el_init" >&5
19193 echo $ECHO_N "checking for el_init... $ECHO_C" >&6
19194 if test "${ac_cv_funclib_el_init+set}" = set; then
19195 echo $ECHO_N "(cached) $ECHO_C" >&6
19198 if eval "test \"\$ac_cv_func_el_init\" != yes" ; then
19199 ac_save_LIBS="$LIBS"
19200 for ac_lib in "" edit; do
19201 if test -n "$ac_lib"; then
19206 LIBS=" $ac_lib $LIB_tgetent $ac_save_LIBS"
19207 cat >conftest.$ac_ext <<_ACEOF
19208 #line 19208 "configure"
19209 #include "confdefs.h"
19219 rm -f conftest.$ac_objext conftest$ac_exeext
19220 if { (eval echo $as_me:19220: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
19221 eval "if test -n \"$ac_lib\";then ac_cv_funclib_el_init=$ac_lib; else ac_cv_funclib_el_init=yes; fi";break
19223 echo "$as_me: failed program was:" >&5
19224 cat conftest.$ac_ext >&5
19226 rm -f conftest$ac_exeext conftest.$ac_ext
19228 eval "ac_cv_funclib_el_init=\${ac_cv_funclib_el_init-no}"
19229 LIBS="$ac_save_LIBS"
19234 eval "ac_res=\$ac_cv_funclib_el_init"
19238 for ac_func in el_init
19240 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
19241 echo "$as_me:19241: checking for $ac_func" >&5
19242 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19243 if eval "test \"\${$ac_ac_var+set}\" = set"; then
19244 echo $ECHO_N "(cached) $ECHO_C" >&6
19246 cat >conftest.$ac_ext <<_ACEOF
19247 #line 19247 "configure"
19248 #include "confdefs.h"
19249 /* System header to define __stub macros and hopefully few prototypes,
19250 which can conflict with char $ac_func (); below. */
19251 #include <assert.h>
19252 /* Override any gcc2 internal prototype to avoid an error. */
19256 /* We use char because int might match the return type of a gcc2
19257 builtin and then its argument prototype would still apply. */
19264 /* The GNU C library defines this for functions which it implements
19265 to always fail with ENOSYS. Some functions are actually named
19266 something starting with __ and the normal name is an alias. */
19267 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19277 rm -f conftest.$ac_objext conftest$ac_exeext
19278 if { (eval echo $as_me:19278: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
19279 eval "$ac_ac_var=yes"
19281 echo "$as_me: failed program was:" >&5
19282 cat conftest.$ac_ext >&5
19283 eval "$ac_ac_var=no"
19285 rm -f conftest$ac_exeext conftest.$ac_ext
19287 echo "$as_me:19287: result: `eval echo '${'$ac_ac_var'}'`" >&5
19288 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
19289 if test `eval echo '${'$ac_ac_var'}'` = yes; then
19290 cat >>confdefs.h <<EOF
19291 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
19299 eval "ac_tr_func=HAVE_`echo el_init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
19300 eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
19301 eval "LIB_el_init=$ac_res"
19305 eval "ac_cv_func_el_init=yes"
19306 eval "LIB_el_init="
19307 cat >>confdefs.h <<EOF
19308 #define $ac_tr_func 1
19311 echo "$as_me:19311: result: yes" >&5
19312 echo "${ECHO_T}yes" >&6
19315 eval "ac_cv_func_el_init=no"
19316 eval "LIB_el_init="
19317 echo "$as_me:19317: result: no" >&5
19318 echo "${ECHO_T}no" >&6
19321 eval "ac_cv_func_el_init=yes"
19322 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
19323 cat >>confdefs.h <<EOF
19324 #define $ac_tr_func 1
19327 cat >>confdefs.h <<EOF
19328 #define $ac_tr_lib 1
19331 echo "$as_me:19331: result: yes, in $ac_res" >&5
19332 echo "${ECHO_T}yes, in $ac_res" >&6
19336 if test "$ac_cv_func_el_init" = yes ; then
19337 echo "$as_me:19337: checking for four argument el_init" >&5
19338 echo $ECHO_N "checking for four argument el_init... $ECHO_C" >&6
19339 if test "${ac_cv_func_el_init_four+set}" = set; then
19340 echo $ECHO_N "(cached) $ECHO_C" >&6
19343 cat >conftest.$ac_ext <<_ACEOF
19344 #line 19344 "configure"
19345 #include "confdefs.h"
19347 #include <histedit.h>
19351 el_init("", NULL, NULL, NULL);
19356 rm -f conftest.$ac_objext
19357 if { (eval echo $as_me:19357: \"$ac_compile\") >&5; (eval $ac_compile) 2>&5; } && test -s conftest.$ac_objext; then
19358 ac_cv_func_el_init_four=yes
19360 echo "$as_me: failed program was:" >&5
19361 cat conftest.$ac_ext >&5
19362 ac_cv_func_el_init_four=no
19364 rm -f conftest.$ac_objext conftest.$ac_ext
19366 echo "$as_me:19366: result: $ac_cv_func_el_init_four" >&5
19367 echo "${ECHO_T}$ac_cv_func_el_init_four" >&6
19368 if test "$ac_cv_func_el_init_four" = yes; then
19370 cat >>confdefs.h <<\EOF
19371 #define HAVE_FOUR_VALUED_EL_INIT 1
19378 if test "$with_readline" = yes; then
19380 elif test "$ac_cv_func_readline" = yes; then
19382 elif test "$ac_cv_func_el_init" = yes; then
19384 LIB_readline="\$(top_builddir)/lib/editline/libel_compat.la $LIB_el_init"
19386 LIB_readline='$(top_builddir)/lib/editline/libeditline.la'
19389 if test "$ac_foo" = yes; then
19391 el_compat_FALSE='#'
19396 if test "$readline_libdir"; then
19397 LIB_readline="-rpath $readline_libdir $LIB_readline"
19399 LIB_readline="$LIB_readline \$(LIB_tgetent)"
19401 cat >>confdefs.h <<\EOF
19402 #define HAVE_READLINE 1
19405 cat >>confdefs.h <<\EOF
19406 #define AUTHENTICATION 1
19409 cat >>confdefs.h <<\EOF
19410 #define ENCRYPTION 1
19413 cat >>confdefs.h <<\EOF
19414 #define DES_ENCRYPTION 1
19417 cat >>confdefs.h <<\EOF
19418 #define DIAGNOSTICS 1
19421 cat >>confdefs.h <<\EOF
19422 #define OLD_ENVIRON 1
19426 cat >>confdefs.h <<\EOF
19432 # Simple test for streamspty, based on the existance of getmsg(), alas
19433 # this breaks on SunOS4 which have streams but BSD-like ptys
19435 # And also something wierd has happend with dec-osf1, fallback to bsd-ptys
19437 echo "$as_me:19437: checking for getmsg" >&5
19438 echo $ECHO_N "checking for getmsg... $ECHO_C" >&6
19439 if test "${ac_cv_func_getmsg+set}" = set; then
19440 echo $ECHO_N "(cached) $ECHO_C" >&6
19442 cat >conftest.$ac_ext <<_ACEOF
19443 #line 19443 "configure"
19444 #include "confdefs.h"
19445 /* System header to define __stub macros and hopefully few prototypes,
19446 which can conflict with char getmsg (); below. */
19447 #include <assert.h>
19448 /* Override any gcc2 internal prototype to avoid an error. */
19452 /* We use char because int might match the return type of a gcc2
19453 builtin and then its argument prototype would still apply. */
19460 /* The GNU C library defines this for functions which it implements
19461 to always fail with ENOSYS. Some functions are actually named
19462 something starting with __ and the normal name is an alias. */
19463 #if defined (__stub_getmsg) || defined (__stub___getmsg)
19473 rm -f conftest.$ac_objext conftest$ac_exeext
19474 if { (eval echo $as_me:19474: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
19475 ac_cv_func_getmsg=yes
19477 echo "$as_me: failed program was:" >&5
19478 cat conftest.$ac_ext >&5
19479 ac_cv_func_getmsg=no
19481 rm -f conftest$ac_exeext conftest.$ac_ext
19483 echo "$as_me:19483: result: $ac_cv_func_getmsg" >&5
19484 echo "${ECHO_T}$ac_cv_func_getmsg" >&6
19486 if test "$ac_cv_func_getmsg" = "yes"; then
19488 echo "$as_me:19488: checking for working getmsg" >&5
19489 echo $ECHO_N "checking for working getmsg... $ECHO_C" >&6
19490 if test "${ac_cv_func_getmsg_work+set}" = set; then
19491 echo $ECHO_N "(cached) $ECHO_C" >&6
19493 if test "$cross_compiling" = yes; then
19494 ac_cv_func_getmsg_work=no
19496 cat >conftest.$ac_ext <<_ACEOF
19497 #line 19497 "configure"
19498 #include "confdefs.h"
19506 ret = getmsg(open("/dev/null", 0), NULL, NULL, NULL);
19507 if(ret < 0 && errno == ENOSYS)
19513 rm -f conftest$ac_exeext
19514 { (eval echo $as_me:19514: \"$ac_link\") >&5; (eval $ac_link) 2>&5; } &&
19515 (./conftest$ac_exeext) >&5 2>&1;
19517 if test $ac_status = 0; then
19518 ac_cv_func_getmsg_work=yes
19520 echo "$as_me: program exited with status $ac_status" >&5
19521 echo "$as_me: failed program was:" >&5
19522 cat conftest.$ac_ext >&5
19523 ac_cv_func_getmsg_work=no
19526 rm -f conftest$ac_exeext conftest.$ac_ext
19530 echo "$as_me:19530: result: $ac_cv_func_getmsg_work" >&5
19531 echo "${ECHO_T}$ac_cv_func_getmsg_work" >&6
19532 test "$ac_cv_func_getmsg_work" = "yes" &&
19534 cat >>confdefs.h <<\EOF
19535 #define HAVE_GETMSG 1
19540 if test "$ac_cv_func_getmsg_work" = yes; then
19541 echo "$as_me:19541: checking for streamspty" >&5
19542 echo $ECHO_N "checking for streamspty... $ECHO_C" >&6
19544 *-*-aix3*|*-*-sunos4*|*-*-osf*|*-*-hpux1[01]*)
19545 krb_cv_sys_streamspty=no
19548 krb_cv_sys_streamspty=yes
19551 echo "$as_me:19551: result: $krb_cv_sys_streamspty" >&5
19552 echo "${ECHO_T}$krb_cv_sys_streamspty" >&6
19554 if test "$krb_cv_sys_streamspty" = yes; then
19556 cat >>confdefs.h <<\EOF
19557 #define STREAMSPTY 1
19562 echo "$as_me:19562: checking which authentication modules should be built" >&5
19563 echo $ECHO_N "checking which authentication modules should be built... $ECHO_C" >&6
19567 if test "$ac_cv_header_siad_h" = yes; then
19568 LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS sia"
19571 if test "$ac_cv_header_security_pam_modules_h" = yes -a "$enable_shared" = yes; then
19572 LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS pam"
19576 *-*-irix[56]*) LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS afskauthlib" ;;
19579 echo "$as_me:19579: result: $LIB_AUTH_SUBDIRS" >&5
19580 echo "${ECHO_T}$LIB_AUTH_SUBDIRS" >&6
19582 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19583 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19585 for i in bin lib libexec sbin; do
19587 foo=`echo $i | tr 'xindiscernible' 'XINDISCERNIBLE'`
19590 while test "x$y" != "x$x"; do
19594 cat >>confdefs.h <<EOF
19601 # hack to shut up automake
19602 LIBOBJS="$LIBOBJS make-print-version.o"
19604 LTLIBOBJS=`echo "$LIBOBJS" | sed 's/\.o/\.lo/g'`
19606 ac_config_files="$ac_config_files Makefile \
19608 include/kadm5/Makefile \
19611 lib/auth/Makefile \
19612 lib/auth/afskauthlib/Makefile \
19613 lib/auth/pam/Makefile \
19614 lib/auth/sia/Makefile \
19615 lib/asn1/Makefile \
19616 lib/com_err/Makefile \
19618 lib/editline/Makefile \
19619 lib/gssapi/Makefile \
19621 lib/kadm5/Makefile \
19622 lib/kafs/Makefile \
19623 lib/kdfs/Makefile \
19624 lib/krb5/Makefile \
19626 lib/roken/Makefile \
19628 lib/vers/Makefile \
19635 appl/afsutil/Makefile \
19636 appl/ftp/Makefile \
19637 appl/ftp/common/Makefile \
19638 appl/ftp/ftp/Makefile \
19639 appl/ftp/ftpd/Makefile \
19641 appl/login/Makefile \
19642 appl/otp/Makefile \
19643 appl/popper/Makefile \
19644 appl/push/Makefile \
19645 appl/rsh/Makefile \
19646 appl/rcp/Makefile \
19648 appl/xnlock/Makefile \
19649 appl/telnet/Makefile \
19650 appl/telnet/libtelnet/Makefile \
19651 appl/telnet/telnet/Makefile \
19652 appl/telnet/telnetd/Makefile \
19653 appl/test/Makefile \
19655 appl/dceutils/Makefile \
19660 cat >confcache <<\_ACEOF
19661 # This file is a shell script that caches the results of configure
19662 # tests run on this system so they can be shared between configure
19663 # scripts and configure runs, see configure's option --config-cache.
19664 # It is not useful on other systems. If it contains results you don't
19665 # want to keep, you may remove or edit it.
19667 # config.status only pays attention to the cache file if you give it
19668 # the --recheck option to rerun configure.
19670 # `ac_cv_env_foo' variables (set or unset) will be overriden when
19671 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19672 # following values.
19676 # The following way of writing the cache mishandles newlines in values,
19677 # but we know of no workaround that is simple, portable, and efficient.
19678 # So, don't put newlines in cache variables' values.
19679 # Ultrix sh set writes to stderr and can't be redirected directly,
19680 # and sets the high bit in the cache file unless we assign to the vars.
19683 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19685 # `set' does not quote correctly, so add quotes (double-quote
19686 # substitution turns \\\\ into \\, and sed turns \\ into \).
19689 s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19692 # `set' quotes correctly as required by POSIX, so do not add quotes.
19694 "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19701 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19703 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19705 if cmp -s $cache_file confcache; then :; else
19706 if test -w $cache_file; then
19707 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19708 cat confcache >$cache_file
19710 echo "not updating unwritable cache $cache_file"
19715 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19716 # Let make expand exec_prefix.
19717 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19719 # Any assignment to VPATH causes Sun make to only execute
19720 # the first set of double-colon rules, so remove it if not needed.
19721 # If there is a colon in the path, we need to keep it.
19722 if test "x$srcdir" = x.; then
19723 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
19726 DEFS=-DHAVE_CONFIG_H
19728 # Save into config.log some information that might help in debugging.
19730 echo "Cache variables:" >&5
19731 # The following way of writing the cache mishandles newlines in values,
19732 # but we know of no workaround that is simple, portable, and efficient.
19733 # So, don't put newlines in cache variables' values.
19734 # Ultrix sh set writes to stderr and can't be redirected directly,
19735 # and sets the high bit in the cache file unless we assign to the vars.
19738 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19740 # `set' does not quote correctly, so add quotes (double-quote
19741 # substitution turns \\\\ into \\, and sed turns \\ into \).
19744 s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19747 # `set' quotes correctly as required by POSIX, so do not add quotes.
19749 "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19752 } | sed 's/^/| /' >&5
19754 echo "confdefs.h:" >&5
19755 sed '/^$/d;s/^/| /' confdefs.h >&5
19757 : ${CONFIG_STATUS=./config.status}
19758 ac_clean_files_save=$ac_clean_files
19759 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19760 { echo "$as_me:19760: creating $CONFIG_STATUS" >&5
19761 echo "creating $CONFIG_STATUS" >&6;}
19762 cat >$CONFIG_STATUS <<\_ACEOF
19764 # Generated automatically by configure.
19765 # Run this file to recreate the current configuration.
19766 # Compiler output produced by configure, useful for debugging
19767 # configure, is in config.log if it exists.
19770 as_me=`echo "$0" | sed 's,.*/,,'`
19771 SHELL=${CONFIG_SHELL-/bin/sh}
19773 # Be Bourne compatible
19774 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19777 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19781 if expr a : '\(a\)' >/dev/null 2>&1; then
19786 # Support unset when possible.
19787 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
19794 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
19795 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
19796 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
19797 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
19798 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
19799 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
19800 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
19801 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
19804 # We need space, tab and new line, in precisely that order.
19810 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
19812 # File descriptor usage:
19815 # 2 errors and warnings
19816 # 3 some systems may open it to /dev/tty
19817 # 4 used on the Kubota Titan
19818 # 6 checking for... messages and results
19819 # 5 compiler messages saved in config.log
19820 if test "$silent" = yes; then
19829 ----------------------------------------------------------------------
19831 This file was extended by $as_me (heimdal 0.3f) 2.49b, executed with
19833 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19839 # Files that config.status was made for.
19840 if test -n "$ac_config_files"; then
19841 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19844 if test -n "$ac_config_headers"; then
19845 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19848 if test -n "$ac_config_links"; then
19849 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19852 if test -n "$ac_config_commands"; then
19853 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19856 cat >>$CONFIG_STATUS <<\EOF
19859 \`$as_me' instantiates files from templates according to the
19860 current configuration.
19862 Usage: $0 [OPTIONS] [FILE]...
19864 -h, --help print this help, then exit
19865 -V, --version print version number, then exit
19866 -d, --debug don't remove temporary files
19867 --recheck update $as_me by reconfiguring in the same conditions
19868 --file=FILE[:TEMPLATE]
19869 instantiate the configuration file FILE
19870 --header=FILE[:TEMPLATE]
19871 instantiate the configuration header FILE
19873 Configuration files:
19876 Configuration headers:
19879 Configuration commands:
19882 Report bugs to <bug-autoconf@gnu.org>."
19885 cat >>$CONFIG_STATUS <<EOF
19887 $CONFIG_STATUS generated by $as_me (Autoconf 2.49b).
19888 Configured on host $ac_hostname by
19889 `echo "$0 $ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`"
19891 ac_given_srcdir=$srcdir
19892 ac_given_INSTALL="$INSTALL"
19895 cat >>$CONFIG_STATUS <<\EOF
19896 # If no file are specified by the user, then we need to provide default
19897 # value. By we need to know if files were specified by the user.
19903 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19904 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19906 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
19910 *) # This is not an option, so the user has probably given explicit
19912 ac_need_defaults=false;;
19916 # Handling of the options.
19918 cat >>$CONFIG_STATUS <<EOF
19919 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19920 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
19921 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
19923 cat >>$CONFIG_STATUS <<\EOF
19924 --version | --vers* | -V )
19925 echo "$ac_cs_version"; exit 0 ;;
19927 # Conflict between --help and --header
19928 { echo "$as_me: error: ambiguous option: $1
19929 Try \`$0 --help' for more information." >&2
19930 { (exit 1); exit; }; };;
19931 --help | --hel | -h )
19932 echo "$ac_cs_usage"; exit 0 ;;
19933 --debug | --d* | -d )
19935 --file | --fil | --fi | --f )
19937 CONFIG_FILES="$CONFIG_FILES $1"
19938 ac_need_defaults=false;;
19939 --header | --heade | --head | --hea )
19941 CONFIG_HEADERS="$CONFIG_HEADERS $1"
19942 ac_need_defaults=false;;
19944 # Handling of arguments.
19945 'Makefile' ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19946 'include/Makefile' ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
19947 'include/kadm5/Makefile' ) CONFIG_FILES="$CONFIG_FILES include/kadm5/Makefile" ;;
19948 'lib/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
19949 'lib/45/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/45/Makefile" ;;
19950 'lib/auth/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/auth/Makefile" ;;
19951 'lib/auth/afskauthlib/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/auth/afskauthlib/Makefile" ;;
19952 'lib/auth/pam/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/auth/pam/Makefile" ;;
19953 'lib/auth/sia/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/auth/sia/Makefile" ;;
19954 'lib/asn1/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/asn1/Makefile" ;;
19955 'lib/com_err/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/com_err/Makefile" ;;
19956 'lib/des/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/des/Makefile" ;;
19957 'lib/editline/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/editline/Makefile" ;;
19958 'lib/gssapi/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/gssapi/Makefile" ;;
19959 'lib/hdb/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/hdb/Makefile" ;;
19960 'lib/kadm5/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/kadm5/Makefile" ;;
19961 'lib/kafs/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/kafs/Makefile" ;;
19962 'lib/kdfs/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/kdfs/Makefile" ;;
19963 'lib/krb5/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/krb5/Makefile" ;;
19964 'lib/otp/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/otp/Makefile" ;;
19965 'lib/roken/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/roken/Makefile" ;;
19966 'lib/sl/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/sl/Makefile" ;;
19967 'lib/vers/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/vers/Makefile" ;;
19968 'kuser/Makefile' ) CONFIG_FILES="$CONFIG_FILES kuser/Makefile" ;;
19969 'kpasswd/Makefile' ) CONFIG_FILES="$CONFIG_FILES kpasswd/Makefile" ;;
19970 'kadmin/Makefile' ) CONFIG_FILES="$CONFIG_FILES kadmin/Makefile" ;;
19971 'admin/Makefile' ) CONFIG_FILES="$CONFIG_FILES admin/Makefile" ;;
19972 'kdc/Makefile' ) CONFIG_FILES="$CONFIG_FILES kdc/Makefile" ;;
19973 'appl/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/Makefile" ;;
19974 'appl/afsutil/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/afsutil/Makefile" ;;
19975 'appl/ftp/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/ftp/Makefile" ;;
19976 'appl/ftp/common/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/ftp/common/Makefile" ;;
19977 'appl/ftp/ftp/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/ftp/ftp/Makefile" ;;
19978 'appl/ftp/ftpd/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/ftp/ftpd/Makefile" ;;
19979 'appl/kx/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/kx/Makefile" ;;
19980 'appl/login/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/login/Makefile" ;;
19981 'appl/otp/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/otp/Makefile" ;;
19982 'appl/popper/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/popper/Makefile" ;;
19983 'appl/push/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/push/Makefile" ;;
19984 'appl/rsh/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/rsh/Makefile" ;;
19985 'appl/rcp/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/rcp/Makefile" ;;
19986 'appl/su/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/su/Makefile" ;;
19987 'appl/xnlock/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/xnlock/Makefile" ;;
19988 'appl/telnet/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/telnet/Makefile" ;;
19989 'appl/telnet/libtelnet/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/telnet/libtelnet/Makefile" ;;
19990 'appl/telnet/telnet/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/telnet/telnet/Makefile" ;;
19991 'appl/telnet/telnetd/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/telnet/telnetd/Makefile" ;;
19992 'appl/test/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/test/Makefile" ;;
19993 'appl/kf/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/kf/Makefile" ;;
19994 'appl/dceutils/Makefile' ) CONFIG_FILES="$CONFIG_FILES appl/dceutils/Makefile" ;;
19995 'doc/Makefile' ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19996 'tools/Makefile' ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
19997 'default-1' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
19998 'default-2' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
19999 'include/config.h' ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
20001 # This is an error.
20002 -*) { echo "$as_me: error: unrecognized option: $1
20003 Try \`$0 --help' for more information." >&2
20004 { (exit 1); exit; }; } ;;
20005 *) { echo "$as_me: error: invalid argument: $1" >&2
20006 { (exit 1); exit; }; };;
20013 cat >>$CONFIG_STATUS <<\EOF
20014 # If the user did not use the arguments to specify the items to instantiate,
20015 # then the envvar interface is used. Set only those that are not.
20016 if $ac_need_defaults; then
20017 CONFIG_FILES=${CONFIG_FILES="$config_files"}
20018 CONFIG_HEADERS=${CONFIG_HEADERS="$config_headers"}
20019 CONFIG_COMMANDS=${CONFIG_COMMANDS="$config_commands"}
20022 # Create a temporary directory, and hook for its removal unless debugging.
20025 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20026 trap '{ (exit $?); exit; }' 1 2 13 15
20029 # Create a (secure) tmp directory for tmp files.
20032 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
20033 test -n "$tmp" && test -d "$tmp"
20036 tmp=$TMPDIR/cs$$-$RANDOM
20037 (umask 077 && mkdir $tmp)
20040 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
20041 { (exit 1); exit; }
20046 cat >>$CONFIG_STATUS <<EOF
20048 # INIT-COMMANDS section.
20052 for am_file in include/config.h; do
20053 case " $CONFIG_HEADERS " in
20055 echo timestamp > `echo $am_file | sed 's%:.*%%;s%[^/]*$%%'`stamp-h$am_indx
20058 am_indx=\`expr \$am_indx + 1\`
20061 ac_aux_dir="$ac_aux_dir"
20065 cat >>$CONFIG_STATUS <<EOF
20068 # CONFIG_FILES section.
20071 # No need to generate the scripts if there are no CONFIG_FILES.
20072 # This happens for instance when ./config.status config.h
20073 if test -n "\$CONFIG_FILES"; then
20074 # Protect against being on the right side of a sed subst in config.status.
20075 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20076 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20077 s,@SHELL@,$SHELL,;t t
20078 s,@exec_prefix@,$exec_prefix,;t t
20079 s,@prefix@,$prefix,;t t
20080 s,@program_transform_name@,$program_transform_name,;t t
20081 s,@bindir@,$bindir,;t t
20082 s,@sbindir@,$sbindir,;t t
20083 s,@libexecdir@,$libexecdir,;t t
20084 s,@datadir@,$datadir,;t t
20085 s,@sysconfdir@,$sysconfdir,;t t
20086 s,@sharedstatedir@,$sharedstatedir,;t t
20087 s,@localstatedir@,$localstatedir,;t t
20088 s,@libdir@,$libdir,;t t
20089 s,@includedir@,$includedir,;t t
20090 s,@oldincludedir@,$oldincludedir,;t t
20091 s,@infodir@,$infodir,;t t
20092 s,@mandir@,$mandir,;t t
20093 s,@ECHO_C@,$ECHO_C,;t t
20094 s,@ECHO_N@,$ECHO_N,;t t
20095 s,@ECHO_T@,$ECHO_T,;t t
20096 s,@CFLAGS@,$CFLAGS,;t t
20097 s,@CPPFLAGS@,$CPPFLAGS,;t t
20098 s,@CXXFLAGS@,$CXXFLAGS,;t t
20099 s,@FFLAGS@,$FFLAGS,;t t
20100 s,@DEFS@,$DEFS,;t t
20101 s,@LDFLAGS@,$LDFLAGS,;t t
20102 s,@LIBS@,$LIBS,;t t
20104 s,@ac_ct_CC@,$ac_ct_CC,;t t
20105 s,@OBJEXT@,$OBJEXT,;t t
20106 s,@EXEEXT@,$EXEEXT,;t t
20108 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20109 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20110 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20111 s,@PACKAGE@,$PACKAGE,;t t
20112 s,@VERSION@,$VERSION,;t t
20113 s,@ACLOCAL@,$ACLOCAL,;t t
20114 s,@AUTOCONF@,$AUTOCONF,;t t
20115 s,@AUTOMAKE@,$AUTOMAKE,;t t
20116 s,@AUTOHEADER@,$AUTOHEADER,;t t
20117 s,@MAKEINFO@,$MAKEINFO,;t t
20118 s,@AMTAR@,$AMTAR,;t t
20119 s,@install_sh@,$install_sh,;t t
20121 s,@SET_MAKE@,$SET_MAKE,;t t
20122 s,@AMDEP@,$AMDEP,;t t
20123 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20124 s,@DEPDIR@,$DEPDIR,;t t
20125 s,@CCDEPMODE@,$CCDEPMODE,;t t
20126 s,@build@,$build,;t t
20127 s,@build_cpu@,$build_cpu,;t t
20128 s,@build_vendor@,$build_vendor,;t t
20129 s,@build_os@,$build_os,;t t
20130 s,@host@,$host,;t t
20131 s,@host_cpu@,$host_cpu,;t t
20132 s,@host_vendor@,$host_vendor,;t t
20133 s,@host_os@,$host_os,;t t
20134 s,@CANONICAL_HOST@,$CANONICAL_HOST,;t t
20135 s,@YACC@,$YACC,;t t
20137 s,@LEXLIB@,$LEXLIB,;t t
20138 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
20139 s,@RANLIB@,$RANLIB,;t t
20140 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20141 s,@LN_S@,$LN_S,;t t
20142 s,@STRIP@,$STRIP,;t t
20143 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20144 s,@LIBTOOL@,$LIBTOOL,;t t
20145 s,@WFLAGS@,$WFLAGS,;t t
20146 s,@WFLAGS_NOUNUSED@,$WFLAGS_NOUNUSED,;t t
20147 s,@WFLAGS_NOIMPLICITINT@,$WFLAGS_NOIMPLICITINT,;t t
20148 s,@LIB_dbopen@,$LIB_dbopen,;t t
20149 s,@LIB_dbm_firstkey@,$LIB_dbm_firstkey,;t t
20150 s,@LIB_db_create@,$LIB_db_create,;t t
20151 s,@DBLIB@,$DBLIB,;t t
20152 s,@VOID_RETSIGTYPE@,$VOID_RETSIGTYPE,;t t
20153 s,@have_err_h_TRUE@,$have_err_h_TRUE,;t t
20154 s,@have_err_h_FALSE@,$have_err_h_FALSE,;t t
20155 s,@have_fnmatch_h_TRUE@,$have_fnmatch_h_TRUE,;t t
20156 s,@have_fnmatch_h_FALSE@,$have_fnmatch_h_FALSE,;t t
20157 s,@have_ifaddrs_h_TRUE@,$have_ifaddrs_h_TRUE,;t t
20158 s,@have_ifaddrs_h_FALSE@,$have_ifaddrs_h_FALSE,;t t
20159 s,@have_vis_h_TRUE@,$have_vis_h_TRUE,;t t
20160 s,@have_vis_h_FALSE@,$have_vis_h_FALSE,;t t
20161 s,@LIB_socket@,$LIB_socket,;t t
20162 s,@LIB_gethostbyname@,$LIB_gethostbyname,;t t
20163 s,@LIB_syslog@,$LIB_syslog,;t t
20164 s,@LIB_gethostbyname2@,$LIB_gethostbyname2,;t t
20165 s,@LIB_res_search@,$LIB_res_search,;t t
20166 s,@LIB_dn_expand@,$LIB_dn_expand,;t t
20167 s,@have_glob_h_TRUE@,$have_glob_h_TRUE,;t t
20168 s,@have_glob_h_FALSE@,$have_glob_h_FALSE,;t t
20169 s,@LIB_getsockopt@,$LIB_getsockopt,;t t
20170 s,@LIB_setsockopt@,$LIB_setsockopt,;t t
20171 s,@LIB_hstrerror@,$LIB_hstrerror,;t t
20172 s,@LIBOBJS@,$LIBOBJS,;t t
20173 s,@LIB_bswap16@,$LIB_bswap16,;t t
20174 s,@LIB_bswap32@,$LIB_bswap32,;t t
20175 s,@LIB_pidfile@,$LIB_pidfile,;t t
20176 s,@LIB_crypt@,$LIB_crypt,;t t
20177 s,@DIR_roken@,$DIR_roken,;t t
20178 s,@LIB_roken@,$LIB_roken,;t t
20179 s,@INCLUDES_roken@,$INCLUDES_roken,;t t
20180 s,@INCLUDE_openldap@,$INCLUDE_openldap,;t t
20181 s,@LIB_openldap@,$LIB_openldap,;t t
20182 s,@INCLUDE_krb4@,$INCLUDE_krb4,;t t
20183 s,@LIB_krb4@,$LIB_krb4,;t t
20184 s,@EXTRA_LIB45@,$EXTRA_LIB45,;t t
20185 s,@LIB_krb_enable_debug@,$LIB_krb_enable_debug,;t t
20186 s,@LIB_krb_disable_debug@,$LIB_krb_disable_debug,;t t
20187 s,@LIB_krb_get_our_ip_for_realm@,$LIB_krb_get_our_ip_for_realm,;t t
20188 s,@KRB4_TRUE@,$KRB4_TRUE,;t t
20189 s,@KRB4_FALSE@,$KRB4_FALSE,;t t
20190 s,@KRB5_TRUE@,$KRB5_TRUE,;t t
20191 s,@KRB5_FALSE@,$KRB5_FALSE,;t t
20192 s,@do_roken_rename_TRUE@,$do_roken_rename_TRUE,;t t
20193 s,@do_roken_rename_FALSE@,$do_roken_rename_FALSE,;t t
20194 s,@LIB_kdb@,$LIB_kdb,;t t
20195 s,@DCE_TRUE@,$DCE_TRUE,;t t
20196 s,@DCE_FALSE@,$DCE_FALSE,;t t
20197 s,@dpagaix_CFLAGS@,$dpagaix_CFLAGS,;t t
20198 s,@dpagaix_LDADD@,$dpagaix_LDADD,;t t
20199 s,@LIB_otp@,$LIB_otp,;t t
20200 s,@OTP_TRUE@,$OTP_TRUE,;t t
20201 s,@OTP_FALSE@,$OTP_FALSE,;t t
20202 s,@LIB_security@,$LIB_security,;t t
20203 s,@NROFF@,$NROFF,;t t
20204 s,@GROFF@,$GROFF,;t t
20205 s,@CATMAN@,$CATMAN,;t t
20206 s,@CATMAN_TRUE@,$CATMAN_TRUE,;t t
20207 s,@CATMAN_FALSE@,$CATMAN_FALSE,;t t
20208 s,@CATMANEXT@,$CATMANEXT,;t t
20209 s,@INCLUDE_readline@,$INCLUDE_readline,;t t
20210 s,@LIB_readline@,$LIB_readline,;t t
20211 s,@INCLUDE_hesiod@,$INCLUDE_hesiod,;t t
20212 s,@LIB_hesiod@,$LIB_hesiod,;t t
20213 s,@AIX_TRUE@,$AIX_TRUE,;t t
20214 s,@AIX_FALSE@,$AIX_FALSE,;t t
20215 s,@AIX4_TRUE@,$AIX4_TRUE,;t t
20216 s,@AIX4_FALSE@,$AIX4_FALSE,;t t
20217 s,@AIX_DYNAMIC_AFS_TRUE@,$AIX_DYNAMIC_AFS_TRUE,;t t
20218 s,@AIX_DYNAMIC_AFS_FALSE@,$AIX_DYNAMIC_AFS_FALSE,;t t
20219 s,@LIB_dlopen@,$LIB_dlopen,;t t
20220 s,@HAVE_DLOPEN_TRUE@,$HAVE_DLOPEN_TRUE,;t t
20221 s,@HAVE_DLOPEN_FALSE@,$HAVE_DLOPEN_FALSE,;t t
20222 s,@AIX_EXTRA_KAFS@,$AIX_EXTRA_KAFS,;t t
20223 s,@IRIX_TRUE@,$IRIX_TRUE,;t t
20224 s,@IRIX_FALSE@,$IRIX_FALSE,;t t
20225 s,@X_CFLAGS@,$X_CFLAGS,;t t
20226 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
20227 s,@X_LIBS@,$X_LIBS,;t t
20228 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
20229 s,@HAVE_X_TRUE@,$HAVE_X_TRUE,;t t
20230 s,@HAVE_X_FALSE@,$HAVE_X_FALSE,;t t
20231 s,@LIB_XauWriteAuth@,$LIB_XauWriteAuth,;t t
20232 s,@LIB_XauReadAuth@,$LIB_XauReadAuth,;t t
20233 s,@LIB_XauFileName@,$LIB_XauFileName,;t t
20234 s,@NEED_WRITEAUTH_TRUE@,$NEED_WRITEAUTH_TRUE,;t t
20235 s,@NEED_WRITEAUTH_FALSE@,$NEED_WRITEAUTH_FALSE,;t t
20236 s,@LIB_logwtmp@,$LIB_logwtmp,;t t
20237 s,@LIB_tgetent@,$LIB_tgetent,;t t
20238 s,@LIB_getpwnam_r@,$LIB_getpwnam_r,;t t
20239 s,@LIB_MD4_Init@,$LIB_MD4_Init,;t t
20240 s,@LIB_MD5_Init@,$LIB_MD5_Init,;t t
20241 s,@LIB_SHA1_Init@,$LIB_SHA1_Init,;t t
20242 s,@LIB_des_cbc_encrypt@,$LIB_des_cbc_encrypt,;t t
20243 s,@LIB_RC4@,$LIB_RC4,;t t
20244 s,@DIR_des@,$DIR_des,;t t
20245 s,@LIB_des@,$LIB_des,;t t
20246 s,@LIB_des_appl@,$LIB_des_appl,;t t
20247 s,@LIB_el_init@,$LIB_el_init,;t t
20248 s,@el_compat_TRUE@,$el_compat_TRUE,;t t
20249 s,@el_compat_FALSE@,$el_compat_FALSE,;t t
20250 s,@LIB_AUTH_SUBDIRS@,$LIB_AUTH_SUBDIRS,;t t
20251 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20256 cat >>$CONFIG_STATUS <<\EOF
20257 # Split the substitutions into bite-sized pieces for seds with
20258 # small command number limits, like on Digital OSF/1 and HP-UX.
20259 ac_max_sed_lines=48
20260 ac_sed_frag=1 # Number of current file.
20261 ac_beg=1 # First line for current file.
20262 ac_end=$ac_max_sed_lines # Line after last line for current file.
20265 while $ac_more_lines; do
20266 if test $ac_beg -gt 1; then
20267 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20269 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20271 if test ! -s $tmp/subs.frag; then
20272 ac_more_lines=false
20274 # The purpose of the label and of the branching condition is to
20275 # speed up the sed processing (if there are no `@' at all, there
20276 # is no need to browse any of the substitutions).
20277 # These are the two extra sed commands mentioned above.
20279 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20280 if test -z "$ac_sed_cmds"; then
20281 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20283 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20285 ac_sed_frag=`expr $ac_sed_frag + 1`
20287 ac_end=`expr $ac_end + $ac_max_sed_lines`
20290 if test -z "$ac_sed_cmds"; then
20293 fi # test -n "$CONFIG_FILES"
20296 cat >>$CONFIG_STATUS <<\EOF
20297 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20298 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20300 - | *:- | *:-:* ) # input from stdin
20302 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20303 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20304 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20305 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20306 * ) ac_file_in=$ac_file.in ;;
20309 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
20310 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20311 X"$ac_file" : 'X\(//\)[^/]' \| \
20312 X"$ac_file" : 'X\(//\)$' \| \
20313 X"$ac_file" : 'X\(/\)' \| \
20314 . : '\(.\)' 2>/dev/null ||
20316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20317 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20318 /^X\(\/\/\)$/{ s//\1/; q; }
20319 /^X\(\/\).*/{ s//\1/; q; }
20321 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
20322 { case "$ac_dir" in
20323 [\\/]* | ?:[\\/]* ) ac_incr_dir=;;
20327 for ac_mkdir_dir in `IFS=/; set X $ac_dummy; shift; echo "$@"`; do
20328 ac_incr_dir=$ac_incr_dir/$ac_mkdir_dir
20329 test -d $ac_incr_dir || mkdir $ac_incr_dir
20332 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
20333 # A "../" for each directory in $ac_dir_suffix.
20334 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
20336 ac_dir_suffix= ac_dots=
20339 case $ac_given_srcdir in
20341 if test -z "$ac_dots"; then top_srcdir=.
20342 else top_srcdir=`echo $ac_dots | sed 's,/$,,'`; fi ;;
20343 [\\/]* | ?:[\\/]* )
20344 srcdir=$ac_given_srcdir$ac_dir_suffix;
20345 top_srcdir=$ac_given_srcdir ;;
20346 *) # Relative path.
20347 srcdir=$ac_dots$ac_given_srcdir$ac_dir_suffix
20348 top_srcdir=$ac_dots$ac_given_srcdir ;;
20351 case $ac_given_INSTALL in
20352 [\\/$]* | ?:[\\/]* ) INSTALL=$ac_given_INSTALL ;;
20353 *) INSTALL=$ac_dots$ac_given_INSTALL ;;
20356 if test x"$ac_file" != x-; then
20357 { echo "$as_me:20357: creating $ac_file" >&5
20358 echo "creating $ac_file" >&6;}
20361 # Let's still pretend it is `configure' which instantiates (i.e., don't
20362 # use $as_me), people would be surprised to read:
20363 # /* config.h. Generated automatically by config.status. */
20364 configure_input="Generated automatically from `echo $ac_file_in |
20365 sed 's,.*/,,'` by configure."
20367 # Don't redirect the output to AC_FILE directly: use `mv' so that
20368 # updating is atomic, and doesn't need trapping.
20370 # First look for the input files in the build tree, otherwise in the
20372 ac_file_inputs=`IFS=:
20373 for f in $ac_file_in; do
20375 -) echo $tmp/stdin ;;
20376 [\\/$]* | ?:[\\/]*)
20378 test -f "$f" || { echo "$as_me: error: cannot find input file: $f" >&2
20379 { (exit 1); exit; }; }
20382 if test -f "$f"; then
20385 elif test -f "$ac_given_srcdir/$f"; then
20387 echo $ac_given_srcdir/$f
20390 { echo "$as_me: error: cannot find input file: $f" >&2
20391 { (exit 1); exit; }; }
20394 done` || { (exit 1); exit; }
20396 cat >>$CONFIG_STATUS <<EOF
20400 cat >>$CONFIG_STATUS <<\EOF
20402 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20403 s,@configure_input@,$configure_input,;t t
20404 s,@srcdir@,$srcdir,;t t
20405 s,@top_srcdir@,$top_srcdir,;t t
20406 s,@INSTALL@,$INSTALL,;t t
20407 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20409 if test x"$ac_file" != x-; then
20410 mv $tmp/out $ac_file
20418 cat >>$CONFIG_STATUS <<\EOF
20421 # CONFIG_HEADER section.
20424 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20425 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20427 # ac_d sets the value in "#define NAME VALUE" lines.
20428 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20429 ac_dB='[ ].*$,\1#\2'
20432 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20433 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20434 ac_uB='$,\1#\2define\3'
20438 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20439 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20441 - | *:- | *:-:* ) # input from stdin
20443 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20444 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20445 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20446 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20447 * ) ac_file_in=$ac_file.in ;;
20450 test x"$ac_file" != x- && { echo "$as_me:20450: creating $ac_file" >&5
20451 echo "creating $ac_file" >&6;}
20453 # First look for the input files in the build tree, otherwise in the
20455 ac_file_inputs=`IFS=:
20456 for f in $ac_file_in; do
20458 -) echo $tmp/stdin ;;
20459 [\\/$]* | ?:[\\/]*)
20461 test -f "$f" || { echo "$as_me: error: cannot find input file: $f" >&2
20462 { (exit 1); exit; }; }
20465 if test -f "$f"; then
20468 elif test -f "$ac_given_srcdir/$f"; then
20470 echo $ac_given_srcdir/$f
20473 { echo "$as_me: error: cannot find input file: $f" >&2
20474 { (exit 1); exit; }; }
20477 done` || { (exit 1); exit; }
20478 # Remove the trailing spaces.
20479 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20483 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20484 # `conftest.undefs', that substitutes the proper values into
20485 # config.h.in to produce config.h. The first handles `#define'
20486 # templates, and the second `#undef' templates.
20487 # And first: Protect against being on the right side of a sed subst in
20488 # config.status. Protect against being in an unquoted here document
20489 # in config.status.
20490 rm -f conftest.defines conftest.undefs
20491 # Using a here document instead of a string reduces the quoting nightmare.
20492 # Putting comments in sed scripts is not portable.
20494 # `end' is used to avoid that the second main sed command (meant for
20495 # 0-ary CPP macros) applies to n-ary macro definitions.
20496 # See the Autoconf documentation for `clear'.
20497 cat >confdef2sed.sed <<\EOF
20502 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
20504 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20507 # If some macros were called several times there might be several times
20508 # the same #defines, which is useless. Nevertheless, we may not want to
20509 # sort them, since we want the *last* AC_DEFINE to be honored.
20510 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20511 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20512 rm -f confdef2sed.sed
20514 # This sed command replaces #undef with comments. This is necessary, for
20515 # example, in the case of _POSIX_SOURCE, which is predefined and required
20516 # on some systems where configure will not decide to define it.
20517 cat >>conftest.undefs <<\EOF
20518 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20521 # Break up conftest.defines because some shells have a limit on the size
20522 # of here documents, and old seds have small limits too (100 cmds).
20523 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20524 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20525 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20526 echo ' :' >>$CONFIG_STATUS
20527 rm -f conftest.tail
20528 while grep . conftest.defines >/dev/null
20530 # Write a limited-size here document to $tmp/defines.sed.
20531 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20532 # Speed up: don't consider the non `#define' lines.
20533 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20534 # Work around the forget-to-reset-the-flag bug.
20535 echo 't clr' >>$CONFIG_STATUS
20536 echo ': clr' >>$CONFIG_STATUS
20537 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20539 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20541 mv $tmp/out $tmp/in
20543 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20544 rm -f conftest.defines
20545 mv conftest.tail conftest.defines
20547 rm -f conftest.defines
20548 echo ' fi # egrep' >>$CONFIG_STATUS
20549 echo >>$CONFIG_STATUS
20551 # Break up conftest.undefs because some shells have a limit on the size
20552 # of here documents, and old seds have small limits too (100 cmds).
20553 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20554 rm -f conftest.tail
20555 while grep . conftest.undefs >/dev/null
20557 # Write a limited-size here document to $tmp/undefs.sed.
20558 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20559 # Speed up: don't consider the non `#undef'
20560 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20561 # Work around the forget-to-reset-the-flag bug.
20562 echo 't clr' >>$CONFIG_STATUS
20563 echo ': clr' >>$CONFIG_STATUS
20564 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20566 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20568 mv $tmp/out $tmp/in
20570 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20571 rm -f conftest.undefs
20572 mv conftest.tail conftest.undefs
20574 rm -f conftest.undefs
20576 cat >>$CONFIG_STATUS <<\EOF
20577 # Let's still pretend it is `configure' which instantiates (i.e., don't
20578 # use $as_me), people would be surprised to read:
20579 # /* config.h. Generated automatically by config.status. */
20580 if test x"$ac_file" = x-; then
20581 echo "/* Generated automatically by configure. */" >$tmp/config.h
20583 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
20585 cat $tmp/in >>$tmp/config.h
20587 if test x"$ac_file" != x-; then
20588 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
20589 { echo "$as_me:20589: $ac_file is unchanged" >&5
20590 echo "$ac_file is unchanged" >&6;}
20592 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20593 X"$ac_file" : 'X\(//\)[^/]' \| \
20594 X"$ac_file" : 'X\(//\)$' \| \
20595 X"$ac_file" : 'X\(/\)' \| \
20596 . : '\(.\)' 2>/dev/null ||
20598 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20599 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20600 /^X\(\/\/\)$/{ s//\1/; q; }
20601 /^X\(\/\).*/{ s//\1/; q; }
20603 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
20604 { case "$ac_dir" in
20605 [\\/]* | ?:[\\/]* ) ac_incr_dir=;;
20609 for ac_mkdir_dir in `IFS=/; set X $ac_dummy; shift; echo "$@"`; do
20610 ac_incr_dir=$ac_incr_dir/$ac_mkdir_dir
20611 test -d $ac_incr_dir || mkdir $ac_incr_dir
20616 mv $tmp/config.h $ac_file
20620 rm -f $tmp/config.h
20624 cat >>$CONFIG_STATUS <<\EOF
20627 # CONFIG_COMMANDS section.
20629 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20630 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20631 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20634 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > include/stamp-h ;;
20636 test x"$AMDEP" != x"" ||
20637 for mf in $CONFIG_FILES; do
20639 Makefile) dirpart=.;;
20640 */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
20643 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
20644 # Extract the definition of DEP_FILES from the Makefile without
20646 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
20647 test -z "$DEPDIR" && continue
20648 # When using ansi2knr, U may be empty or an underscore; expand it
20649 U=`sed -n -e '/^U = / s///p' < "$mf"`
20650 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
20651 # We invoke sed twice because it is the simplest approach to
20652 # changing $(DEPDIR) to its actual value in the expansion.
20653 for file in `sed -n -e '
20654 /^DEP_FILES = .*\\\\$/ {
20663 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
20664 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20665 # Make sure the directory exists.
20666 test -f "$dirpart/$file" && continue
20667 fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
20668 $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
20669 # echo "creating $dirpart/$file"
20670 echo '# dummy' > "$dirpart/$file"
20678 cat >>$CONFIG_STATUS <<\EOF
20682 chmod +x $CONFIG_STATUS
20683 ac_clean_files=$ac_clean_files_save
20685 test "$no_create" = yes || $SHELL $CONFIG_STATUS || { (exit 1); exit; }
20687 HEIMDALVERSION="$PACKAGE-$VERSION"
20689 cat > include/newversion.h.in <<EOF
20690 const char *heimdal_long_version = "@(#)\$Version: $HEIMDALVERSION by @USER@ on @HOST@ ($host) @DATE@ \$";
20691 const char *heimdal_version = "$HEIMDALVERSION";
20694 if test -f include/version.h && cmp -s include/newversion.h.in include/version.h.in; then
20695 echo "include/version.h is unchanged"
20696 rm -f include/newversion.h.in
20698 echo "creating include/version.h"
20699 User=${USER-${LOGNAME}}
20700 Host=`(hostname || uname -n || echo unknown) 2>/dev/null | sed 1q`
20702 mv -f include/newversion.h.in include/version.h.in
20703 sed -e "s/@USER@/$User/" -e "s/@HOST@/$Host/" -e "s/@DATE@/$Date/" include/version.h.in > include/version.h