3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-afs Include AFS support
16 --without-afs Don't include AFS support (default)"
18 --with-dfs Include DFS support
19 --without-dfs Don't include DFS support (default)"
21 --with-automount Include AUTOMOUNT support
22 --without-automount Don't include AUTOMOUNT support (default)"
24 --with-ldap Include LDAP support
25 --without-ldap Don't include LDAP support (default)"
27 --with-nisplus Include NISPLUS password database support
28 --without-nisplus Don't include NISPLUS password database support (default)"
30 --with-ssl Include SSL support
31 --without-ssl Don't include SSL support (default)"
33 --with-mmap Include experimental MMAP support
34 --without-mmap Don't include MMAP support (default)"
36 --with-syslog Include experimental SYSLOG support
37 --without-syslog Don't include SYSLOG support (default)"
39 # Initialize some variables set by options.
40 # The variables have the same names as the options, with
41 # dashes changed to underlines.
43 cache_file=./config.cache
52 program_transform_name=s,x,x,
60 bindir='${exec_prefix}/bin'
61 sbindir='${exec_prefix}/sbin'
62 libexecdir='${exec_prefix}/libexec'
63 datadir='${prefix}/share'
64 sysconfdir='${prefix}/etc'
65 sharedstatedir='${prefix}/com'
66 localstatedir='${prefix}/var'
67 libdir='${exec_prefix}/lib'
68 includedir='${prefix}/include'
69 oldincludedir='/usr/include'
70 infodir='${prefix}/info'
71 mandir='${prefix}/man'
73 # Initialize some other variables.
76 # Maximum number of lines to put in a shell here document.
83 # If the previous option needs an argument, assign it.
84 if test -n "$ac_prev"; then
85 eval "$ac_prev=\$ac_option"
91 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
95 # Accept the important Cygnus configure options, so we can diagnose typos.
99 -bindir | --bindir | --bindi | --bind | --bin | --bi)
101 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
102 bindir="$ac_optarg" ;;
104 -build | --build | --buil | --bui | --bu)
106 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
107 build="$ac_optarg" ;;
109 -cache-file | --cache-file | --cache-fil | --cache-fi \
110 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
111 ac_prev=cache_file ;;
112 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
113 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
114 cache_file="$ac_optarg" ;;
116 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
118 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
120 datadir="$ac_optarg" ;;
122 -disable-* | --disable-*)
123 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
124 # Reject names that are not valid shell variable names.
125 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
126 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
128 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
129 eval "enable_${ac_feature}=no" ;;
131 -enable-* | --enable-*)
132 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
133 # Reject names that are not valid shell variable names.
134 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
135 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
137 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
142 eval "enable_${ac_feature}='$ac_optarg'" ;;
144 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
145 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
146 | --exec | --exe | --ex)
147 ac_prev=exec_prefix ;;
148 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
149 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
150 | --exec=* | --exe=* | --ex=*)
151 exec_prefix="$ac_optarg" ;;
153 -gas | --gas | --ga | --g)
154 # Obsolete; use --with-gas.
157 -help | --help | --hel | --he)
158 # Omit some internal or obsolete options to make the list less imposing.
159 # This message is too long to be a string in the A/UX 3.1 sh.
161 Usage: configure [options] [host]
162 Options: [defaults in brackets after descriptions]
164 --cache-file=FILE cache test results in FILE
165 --help print this message
166 --no-create do not create output files
167 --quiet, --silent do not print \`checking...' messages
168 --version print the version of autoconf that created configure
169 Directory and file names:
170 --prefix=PREFIX install architecture-independent files in PREFIX
172 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
174 --bindir=DIR user executables in DIR [EPREFIX/bin]
175 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
176 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
177 --datadir=DIR read-only architecture-independent data in DIR
179 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
180 --sharedstatedir=DIR modifiable architecture-independent data in DIR
182 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
183 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
184 --includedir=DIR C header files in DIR [PREFIX/include]
185 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
186 --infodir=DIR info documentation in DIR [PREFIX/info]
187 --mandir=DIR man documentation in DIR [PREFIX/man]
188 --srcdir=DIR find the sources in DIR [configure dir or ..]
189 --program-prefix=PREFIX prepend PREFIX to installed program names
190 --program-suffix=SUFFIX append SUFFIX to installed program names
191 --program-transform-name=PROGRAM
192 run sed PROGRAM on installed program names
196 --build=BUILD configure for building on BUILD [BUILD=HOST]
197 --host=HOST configure for HOST [guessed]
198 --target=TARGET configure for TARGET [TARGET=HOST]
199 Features and packages:
200 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
201 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
202 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
203 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
204 --x-includes=DIR X include files are in DIR
205 --x-libraries=DIR X library files are in DIR
207 if test -n "$ac_help"; then
208 echo "--enable and --with options recognized:$ac_help"
212 -host | --host | --hos | --ho)
214 -host=* | --host=* | --hos=* | --ho=*)
217 -includedir | --includedir | --includedi | --included | --include \
218 | --includ | --inclu | --incl | --inc)
219 ac_prev=includedir ;;
220 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
221 | --includ=* | --inclu=* | --incl=* | --inc=*)
222 includedir="$ac_optarg" ;;
224 -infodir | --infodir | --infodi | --infod | --info | --inf)
226 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
227 infodir="$ac_optarg" ;;
229 -libdir | --libdir | --libdi | --libd)
231 -libdir=* | --libdir=* | --libdi=* | --libd=*)
232 libdir="$ac_optarg" ;;
234 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
235 | --libexe | --libex | --libe)
236 ac_prev=libexecdir ;;
237 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
238 | --libexe=* | --libex=* | --libe=*)
239 libexecdir="$ac_optarg" ;;
241 -localstatedir | --localstatedir | --localstatedi | --localstated \
242 | --localstate | --localstat | --localsta | --localst \
243 | --locals | --local | --loca | --loc | --lo)
244 ac_prev=localstatedir ;;
245 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
246 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
247 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
248 localstatedir="$ac_optarg" ;;
250 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
252 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
253 mandir="$ac_optarg" ;;
256 # Obsolete; use --without-fp.
259 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
263 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
264 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
267 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
268 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
269 | --oldin | --oldi | --old | --ol | --o)
270 ac_prev=oldincludedir ;;
271 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
272 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
273 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
274 oldincludedir="$ac_optarg" ;;
276 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
278 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
279 prefix="$ac_optarg" ;;
281 -program-prefix | --program-prefix | --program-prefi | --program-pref \
282 | --program-pre | --program-pr | --program-p)
283 ac_prev=program_prefix ;;
284 -program-prefix=* | --program-prefix=* | --program-prefi=* \
285 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
286 program_prefix="$ac_optarg" ;;
288 -program-suffix | --program-suffix | --program-suffi | --program-suff \
289 | --program-suf | --program-su | --program-s)
290 ac_prev=program_suffix ;;
291 -program-suffix=* | --program-suffix=* | --program-suffi=* \
292 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
293 program_suffix="$ac_optarg" ;;
295 -program-transform-name | --program-transform-name \
296 | --program-transform-nam | --program-transform-na \
297 | --program-transform-n | --program-transform- \
298 | --program-transform | --program-transfor \
299 | --program-transfo | --program-transf \
300 | --program-trans | --program-tran \
301 | --progr-tra | --program-tr | --program-t)
302 ac_prev=program_transform_name ;;
303 -program-transform-name=* | --program-transform-name=* \
304 | --program-transform-nam=* | --program-transform-na=* \
305 | --program-transform-n=* | --program-transform-=* \
306 | --program-transform=* | --program-transfor=* \
307 | --program-transfo=* | --program-transf=* \
308 | --program-trans=* | --program-tran=* \
309 | --progr-tra=* | --program-tr=* | --program-t=*)
310 program_transform_name="$ac_optarg" ;;
312 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
313 | -silent | --silent | --silen | --sile | --sil)
316 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
318 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
320 sbindir="$ac_optarg" ;;
322 -sharedstatedir | --sharedstatedir | --sharedstatedi \
323 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
324 | --sharedst | --shareds | --shared | --share | --shar \
326 ac_prev=sharedstatedir ;;
327 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
328 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
329 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
331 sharedstatedir="$ac_optarg" ;;
333 -site | --site | --sit)
335 -site=* | --site=* | --sit=*)
338 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
340 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
341 srcdir="$ac_optarg" ;;
343 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
344 | --syscon | --sysco | --sysc | --sys | --sy)
345 ac_prev=sysconfdir ;;
346 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
347 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
348 sysconfdir="$ac_optarg" ;;
350 -target | --target | --targe | --targ | --tar | --ta | --t)
352 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
353 target="$ac_optarg" ;;
355 -v | -verbose | --verbose | --verbos | --verbo | --verb)
358 -version | --version | --versio | --versi | --vers)
359 echo "configure generated by autoconf version 2.12"
363 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
364 # Reject names that are not valid shell variable names.
365 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
366 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
368 ac_package=`echo $ac_package| sed 's/-/_/g'`
373 eval "with_${ac_package}='$ac_optarg'" ;;
375 -without-* | --without-*)
376 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
377 # Reject names that are not valid shell variable names.
378 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
379 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
381 ac_package=`echo $ac_package| sed 's/-/_/g'`
382 eval "with_${ac_package}=no" ;;
385 # Obsolete; use --with-x.
388 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
389 | --x-incl | --x-inc | --x-in | --x-i)
390 ac_prev=x_includes ;;
391 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
392 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
393 x_includes="$ac_optarg" ;;
395 -x-libraries | --x-libraries | --x-librarie | --x-librari \
396 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
397 ac_prev=x_libraries ;;
398 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
399 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
400 x_libraries="$ac_optarg" ;;
402 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
406 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
407 echo "configure: warning: $ac_option: invalid host type" 1>&2
409 if test "x$nonopt" != xNONE; then
410 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
418 if test -n "$ac_prev"; then
419 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
422 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
424 # File descriptor usage:
427 # 2 errors and warnings
428 # 3 some systems may open it to /dev/tty
429 # 4 used on the Kubota Titan
430 # 6 checking for... messages and results
431 # 5 compiler messages saved in config.log
432 if test "$silent" = yes; then
440 This file contains any messages produced by compilers while
441 running configure, to aid debugging if configure makes a mistake.
444 # Strip out --no-create and --no-recursion so they do not pile up.
445 # Also quote any args containing shell metacharacters.
450 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
451 | --no-cr | --no-c) ;;
452 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
453 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
454 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
455 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
456 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
461 # Only set these to C if already set. These must not be set unconditionally
462 # because not all systems understand e.g. LANG=C (notably SCO).
463 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
464 # Non-C LC_CTYPE values break the ctype check.
465 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
466 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
467 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
468 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
470 # confdefs.h avoids OS command line length limits that DEFS can exceed.
471 rm -rf conftest* confdefs.h
472 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
475 # A filename unique to this package, relative to the directory that
476 # configure is in, which we can look for to find out if srcdir is correct.
477 ac_unique_file=byteorder.h
479 # Find the source files, if location was not specified.
480 if test -z "$srcdir"; then
481 ac_srcdir_defaulted=yes
482 # Try the directory containing this script, then its parent.
484 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
485 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
487 if test ! -r $srcdir/$ac_unique_file; then
491 ac_srcdir_defaulted=no
493 if test ! -r $srcdir/$ac_unique_file; then
494 if test "$ac_srcdir_defaulted" = yes; then
495 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
497 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
500 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
502 # Prefer explicitly selected file to automatically selected ones.
503 if test -z "$CONFIG_SITE"; then
504 if test "x$prefix" != xNONE; then
505 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
507 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
510 for ac_site_file in $CONFIG_SITE; do
511 if test -r "$ac_site_file"; then
512 echo "loading site script $ac_site_file"
517 if test -r "$cache_file"; then
518 echo "loading cache $cache_file"
521 echo "creating cache $cache_file"
526 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
527 ac_cpp='$CPP $CPPFLAGS'
528 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
529 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
530 cross_compiling=$ac_cv_prog_cc_cross
532 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
533 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
534 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
541 ac_n= ac_c='\c' ac_t=
547 # Extract the first word of "gcc", so it can be a program name with args.
548 set dummy gcc; ac_word=$2
549 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
550 echo "configure:551: checking for $ac_word" >&5
551 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
552 echo $ac_n "(cached) $ac_c" 1>&6
554 if test -n "$CC"; then
555 ac_cv_prog_CC="$CC" # Let the user override the test.
557 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
558 for ac_dir in $PATH; do
559 test -z "$ac_dir" && ac_dir=.
560 if test -f $ac_dir/$ac_word; then
569 if test -n "$CC"; then
570 echo "$ac_t""$CC" 1>&6
572 echo "$ac_t""no" 1>&6
575 if test -z "$CC"; then
576 # Extract the first word of "cc", so it can be a program name with args.
577 set dummy cc; ac_word=$2
578 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
579 echo "configure:580: checking for $ac_word" >&5
580 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
581 echo $ac_n "(cached) $ac_c" 1>&6
583 if test -n "$CC"; then
584 ac_cv_prog_CC="$CC" # Let the user override the test.
586 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
588 for ac_dir in $PATH; do
589 test -z "$ac_dir" && ac_dir=.
590 if test -f $ac_dir/$ac_word; then
591 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
600 if test $ac_prog_rejected = yes; then
601 # We found a bogon in the path, so make sure we never use it.
602 set dummy $ac_cv_prog_CC
604 if test $# -gt 0; then
605 # We chose a different compiler from the bogus one.
606 # However, it has the same basename, so the bogon will be chosen
607 # first if we set CC to just the basename; use the full file name.
609 set dummy "$ac_dir/$ac_word" "$@"
617 if test -n "$CC"; then
618 echo "$ac_t""$CC" 1>&6
620 echo "$ac_t""no" 1>&6
623 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
626 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
627 echo "configure:628: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
630 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
631 ac_cpp='$CPP $CPPFLAGS'
632 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
633 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
634 cross_compiling=$ac_cv_prog_cc_cross
636 cat > conftest.$ac_ext <<EOF
637 #line 638 "configure"
638 #include "confdefs.h"
641 if { (eval echo configure:642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
642 ac_cv_prog_cc_works=yes
643 # If we can't run a trivial program, we are probably using a cross compiler.
644 if (./conftest; exit) 2>/dev/null; then
645 ac_cv_prog_cc_cross=no
647 ac_cv_prog_cc_cross=yes
650 echo "configure: failed program was:" >&5
651 cat conftest.$ac_ext >&5
652 ac_cv_prog_cc_works=no
656 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
657 if test $ac_cv_prog_cc_works = no; then
658 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
660 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
661 echo "configure:662: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
662 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
663 cross_compiling=$ac_cv_prog_cc_cross
665 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
666 echo "configure:667: checking whether we are using GNU C" >&5
667 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
668 echo $ac_n "(cached) $ac_c" 1>&6
670 cat > conftest.c <<EOF
675 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:676: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
682 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
684 if test $ac_cv_prog_gcc = yes; then
686 ac_test_CFLAGS="${CFLAGS+set}"
687 ac_save_CFLAGS="$CFLAGS"
689 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
690 echo "configure:691: checking whether ${CC-cc} accepts -g" >&5
691 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
692 echo $ac_n "(cached) $ac_c" 1>&6
694 echo 'void f(){}' > conftest.c
695 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
704 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
705 if test "$ac_test_CFLAGS" = set; then
706 CFLAGS="$ac_save_CFLAGS"
707 elif test $ac_cv_prog_cc_g = yes; then
714 test "${CFLAGS+set}" = set || CFLAGS="-g"
718 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
719 if test -f $ac_dir/install-sh; then
721 ac_install_sh="$ac_aux_dir/install-sh -c"
723 elif test -f $ac_dir/install.sh; then
725 ac_install_sh="$ac_aux_dir/install.sh -c"
729 if test -z "$ac_aux_dir"; then
730 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
732 ac_config_guess=$ac_aux_dir/config.guess
733 ac_config_sub=$ac_aux_dir/config.sub
734 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
736 # Find a good install program. We prefer a C program (faster),
737 # so one script is as good as another. But avoid the broken or
738 # incompatible versions:
739 # SysV /etc/install, /usr/sbin/install
740 # SunOS /usr/etc/install
743 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
744 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
745 # ./install, which can be erroneously created by make from ./install.sh.
746 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
747 echo "configure:748: checking for a BSD compatible install" >&5
748 if test -z "$INSTALL"; then
749 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
750 echo $ac_n "(cached) $ac_c" 1>&6
752 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
753 for ac_dir in $PATH; do
754 # Account for people who put trailing slashes in PATH elements.
756 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
758 # OSF1 and SCO ODT 3.0 have their own names for install.
759 for ac_prog in ginstall installbsd scoinst install; do
760 if test -f $ac_dir/$ac_prog; then
761 if test $ac_prog = install &&
762 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
763 # AIX install. It has an incompatible calling convention.
764 # OSF/1 installbsd also uses dspmsg, but is usable.
767 ac_cv_path_install="$ac_dir/$ac_prog -c"
778 if test "${ac_cv_path_install+set}" = set; then
779 INSTALL="$ac_cv_path_install"
781 # As a last resort, use the slow shell script. We don't cache a
782 # path for INSTALL within a source directory, because that will
783 # break other packages using the cache if that directory is
784 # removed, or if the path is relative.
785 INSTALL="$ac_install_sh"
788 echo "$ac_t""$INSTALL" 1>&6
790 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
791 # It thinks the first close brace ends the variable substitution.
792 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
794 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
797 for ac_prog in mawk gawk nawk awk
799 # Extract the first word of "$ac_prog", so it can be a program name with args.
800 set dummy $ac_prog; ac_word=$2
801 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
802 echo "configure:803: checking for $ac_word" >&5
803 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
804 echo $ac_n "(cached) $ac_c" 1>&6
806 if test -n "$AWK"; then
807 ac_cv_prog_AWK="$AWK" # Let the user override the test.
809 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
810 for ac_dir in $PATH; do
811 test -z "$ac_dir" && ac_dir=.
812 if test -f $ac_dir/$ac_word; then
813 ac_cv_prog_AWK="$ac_prog"
820 AWK="$ac_cv_prog_AWK"
821 if test -n "$AWK"; then
822 echo "$ac_t""$AWK" 1>&6
824 echo "$ac_t""no" 1>&6
827 test -n "$AWK" && break
832 # Do some error checking and defaulting for the host and target type.
834 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
837 # 1. You are not allowed to specify --host, --target, and nonopt at the
839 # 2. Host defaults to nonopt.
840 # 3. If nonopt is not specified, then host defaults to the current host,
841 # as determined by config.guess.
842 # 4. Target and build default to nonopt.
843 # 5. If nonopt is not specified, then target and build default to host.
845 # The aliases save the names the user supplied, while $host etc.
846 # will get canonicalized.
847 case $host---$target---$nonopt in
848 NONE---*---* | *---NONE---* | *---*---NONE) ;;
849 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
853 # Make sure we can run config.sub.
854 if $ac_config_sub sun4 >/dev/null 2>&1; then :
855 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
858 echo $ac_n "checking host system type""... $ac_c" 1>&6
859 echo "configure:860: checking host system type" >&5
862 case "$host_alias" in
866 if host_alias=`$ac_config_guess`; then :
867 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
869 *) host_alias=$nonopt ;;
873 host=`$ac_config_sub $host_alias`
874 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
875 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
876 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
877 echo "$ac_t""$host" 1>&6
879 echo $ac_n "checking target system type""... $ac_c" 1>&6
880 echo "configure:881: checking target system type" >&5
883 case "$target_alias" in
886 NONE) target_alias=$host_alias ;;
887 *) target_alias=$nonopt ;;
891 target=`$ac_config_sub $target_alias`
892 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
893 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
894 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
895 echo "$ac_t""$target" 1>&6
897 echo $ac_n "checking build system type""... $ac_c" 1>&6
898 echo "configure:899: checking build system type" >&5
901 case "$build_alias" in
904 NONE) build_alias=$host_alias ;;
905 *) build_alias=$nonopt ;;
909 build=`$ac_config_sub $build_alias`
910 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
911 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
912 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
913 echo "$ac_t""$build" 1>&6
915 test "$host_alias" != "$target_alias" &&
916 test "$program_prefix$program_suffix$program_transform_name" = \
918 program_prefix=${target_alias}-
921 *linux*) cat >> confdefs.h <<\EOF
925 *solaris*) cat >> confdefs.h <<\EOF
929 *sunos*) cat >> confdefs.h <<\EOF
933 *irix*) cat >> confdefs.h <<\EOF
937 *aix*) cat >> confdefs.h <<\EOF
941 *hpux*) cat >> confdefs.h <<\EOF
945 *qnx*) cat >> confdefs.h <<\EOF
949 *osf1*) cat >> confdefs.h <<\EOF
953 *sco*) cat >> confdefs.h <<\EOF
957 *next2*) cat >> confdefs.h <<\EOF
963 echo $ac_n "checking for inline""... $ac_c" 1>&6
964 echo "configure:965: checking for inline" >&5
965 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
966 echo $ac_n "(cached) $ac_c" 1>&6
969 for ac_kw in inline __inline__ __inline; do
970 cat > conftest.$ac_ext <<EOF
971 #line 972 "configure"
972 #include "confdefs.h"
978 if { (eval echo configure:979: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
980 ac_cv_c_inline=$ac_kw; break
982 echo "configure: failed program was:" >&5
983 cat conftest.$ac_ext >&5
990 echo "$ac_t""$ac_cv_c_inline" 1>&6
991 case "$ac_cv_c_inline" in
993 no) cat >> confdefs.h <<\EOF
997 *) cat >> confdefs.h <<EOF
998 #define inline $ac_cv_c_inline
1003 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1004 echo "configure:1005: checking how to run the C preprocessor" >&5
1005 # On Suns, sometimes $CPP names a directory.
1006 if test -n "$CPP" && test -d "$CPP"; then
1009 if test -z "$CPP"; then
1010 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1011 echo $ac_n "(cached) $ac_c" 1>&6
1013 # This must be in double quotes, not single quotes, because CPP may get
1014 # substituted into the Makefile and "${CC-cc}" will confuse make.
1016 # On the NeXT, cc -E runs the code through the compiler's parser,
1017 # not just through cpp.
1018 cat > conftest.$ac_ext <<EOF
1019 #line 1020 "configure"
1020 #include "confdefs.h"
1024 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1025 { (eval echo configure:1026: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1026 ac_err=`grep -v '^ *+' conftest.out`
1027 if test -z "$ac_err"; then
1031 echo "configure: failed program was:" >&5
1032 cat conftest.$ac_ext >&5
1034 CPP="${CC-cc} -E -traditional-cpp"
1035 cat > conftest.$ac_ext <<EOF
1036 #line 1037 "configure"
1037 #include "confdefs.h"
1041 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1042 { (eval echo configure:1043: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1043 ac_err=`grep -v '^ *+' conftest.out`
1044 if test -z "$ac_err"; then
1048 echo "configure: failed program was:" >&5
1049 cat conftest.$ac_ext >&5
1056 ac_cv_prog_CPP="$CPP"
1058 CPP="$ac_cv_prog_CPP"
1060 ac_cv_prog_CPP="$CPP"
1062 echo "$ac_t""$CPP" 1>&6
1064 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1065 echo "configure:1066: checking for ANSI C header files" >&5
1066 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1067 echo $ac_n "(cached) $ac_c" 1>&6
1069 cat > conftest.$ac_ext <<EOF
1070 #line 1071 "configure"
1071 #include "confdefs.h"
1077 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1078 { (eval echo configure:1079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1079 ac_err=`grep -v '^ *+' conftest.out`
1080 if test -z "$ac_err"; then
1082 ac_cv_header_stdc=yes
1085 echo "configure: failed program was:" >&5
1086 cat conftest.$ac_ext >&5
1088 ac_cv_header_stdc=no
1092 if test $ac_cv_header_stdc = yes; then
1093 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1094 cat > conftest.$ac_ext <<EOF
1095 #line 1096 "configure"
1096 #include "confdefs.h"
1099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1100 egrep "memchr" >/dev/null 2>&1; then
1104 ac_cv_header_stdc=no
1110 if test $ac_cv_header_stdc = yes; then
1111 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1112 cat > conftest.$ac_ext <<EOF
1113 #line 1114 "configure"
1114 #include "confdefs.h"
1117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1118 egrep "free" >/dev/null 2>&1; then
1122 ac_cv_header_stdc=no
1128 if test $ac_cv_header_stdc = yes; then
1129 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1130 if test "$cross_compiling" = yes; then
1133 cat > conftest.$ac_ext <<EOF
1134 #line 1135 "configure"
1135 #include "confdefs.h"
1137 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1138 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1139 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1140 int main () { int i; for (i = 0; i < 256; i++)
1141 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1145 if { (eval echo configure:1146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1149 echo "configure: failed program was:" >&5
1150 cat conftest.$ac_ext >&5
1152 ac_cv_header_stdc=no
1160 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1161 if test $ac_cv_header_stdc = yes; then
1162 cat >> confdefs.h <<\EOF
1163 #define STDC_HEADERS 1
1169 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1171 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1172 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1173 echo "configure:1174: checking for $ac_hdr that defines DIR" >&5
1174 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1175 echo $ac_n "(cached) $ac_c" 1>&6
1177 cat > conftest.$ac_ext <<EOF
1178 #line 1179 "configure"
1179 #include "confdefs.h"
1180 #include <sys/types.h>
1186 if { (eval echo configure:1187: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1188 eval "ac_cv_header_dirent_$ac_safe=yes"
1190 echo "configure: failed program was:" >&5
1191 cat conftest.$ac_ext >&5
1193 eval "ac_cv_header_dirent_$ac_safe=no"
1197 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1198 echo "$ac_t""yes" 1>&6
1199 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1200 cat >> confdefs.h <<EOF
1201 #define $ac_tr_hdr 1
1203 ac_header_dirent=$ac_hdr; break
1205 echo "$ac_t""no" 1>&6
1208 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1209 if test $ac_header_dirent = dirent.h; then
1210 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1211 echo "configure:1212: checking for opendir in -ldir" >&5
1212 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1213 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1214 echo $ac_n "(cached) $ac_c" 1>&6
1216 ac_save_LIBS="$LIBS"
1218 cat > conftest.$ac_ext <<EOF
1219 #line 1220 "configure"
1220 #include "confdefs.h"
1221 /* Override any gcc2 internal prototype to avoid an error. */
1222 /* We use char because int might match the return type of a gcc2
1223 builtin and then its argument prototype would still apply. */
1230 if { (eval echo configure:1231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1232 eval "ac_cv_lib_$ac_lib_var=yes"
1234 echo "configure: failed program was:" >&5
1235 cat conftest.$ac_ext >&5
1237 eval "ac_cv_lib_$ac_lib_var=no"
1240 LIBS="$ac_save_LIBS"
1243 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1244 echo "$ac_t""yes" 1>&6
1247 echo "$ac_t""no" 1>&6
1251 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1252 echo "configure:1253: checking for opendir in -lx" >&5
1253 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1254 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1255 echo $ac_n "(cached) $ac_c" 1>&6
1257 ac_save_LIBS="$LIBS"
1259 cat > conftest.$ac_ext <<EOF
1260 #line 1261 "configure"
1261 #include "confdefs.h"
1262 /* Override any gcc2 internal prototype to avoid an error. */
1263 /* We use char because int might match the return type of a gcc2
1264 builtin and then its argument prototype would still apply. */
1271 if { (eval echo configure:1272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1273 eval "ac_cv_lib_$ac_lib_var=yes"
1275 echo "configure: failed program was:" >&5
1276 cat conftest.$ac_ext >&5
1278 eval "ac_cv_lib_$ac_lib_var=no"
1281 LIBS="$ac_save_LIBS"
1284 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1285 echo "$ac_t""yes" 1>&6
1288 echo "$ac_t""no" 1>&6
1293 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1294 echo "configure:1295: checking whether time.h and sys/time.h may both be included" >&5
1295 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1296 echo $ac_n "(cached) $ac_c" 1>&6
1298 cat > conftest.$ac_ext <<EOF
1299 #line 1300 "configure"
1300 #include "confdefs.h"
1301 #include <sys/types.h>
1302 #include <sys/time.h>
1308 if { (eval echo configure:1309: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1310 ac_cv_header_time=yes
1312 echo "configure: failed program was:" >&5
1313 cat conftest.$ac_ext >&5
1315 ac_cv_header_time=no
1320 echo "$ac_t""$ac_cv_header_time" 1>&6
1321 if test $ac_cv_header_time = yes; then
1322 cat >> confdefs.h <<\EOF
1323 #define TIME_WITH_SYS_TIME 1
1328 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1329 echo "configure:1330: checking for sys/wait.h that is POSIX.1 compatible" >&5
1330 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1331 echo $ac_n "(cached) $ac_c" 1>&6
1333 cat > conftest.$ac_ext <<EOF
1334 #line 1335 "configure"
1335 #include "confdefs.h"
1336 #include <sys/types.h>
1337 #include <sys/wait.h>
1339 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1342 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1347 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1350 if { (eval echo configure:1351: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1352 ac_cv_header_sys_wait_h=yes
1354 echo "configure: failed program was:" >&5
1355 cat conftest.$ac_ext >&5
1357 ac_cv_header_sys_wait_h=no
1362 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1363 if test $ac_cv_header_sys_wait_h = yes; then
1364 cat >> confdefs.h <<\EOF
1365 #define HAVE_SYS_WAIT_H 1
1370 for ac_hdr in sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
1372 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1373 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1374 echo "configure:1375: checking for $ac_hdr" >&5
1375 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1376 echo $ac_n "(cached) $ac_c" 1>&6
1378 cat > conftest.$ac_ext <<EOF
1379 #line 1380 "configure"
1380 #include "confdefs.h"
1383 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1384 { (eval echo configure:1385: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1385 ac_err=`grep -v '^ *+' conftest.out`
1386 if test -z "$ac_err"; then
1388 eval "ac_cv_header_$ac_safe=yes"
1391 echo "configure: failed program was:" >&5
1392 cat conftest.$ac_ext >&5
1394 eval "ac_cv_header_$ac_safe=no"
1398 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1399 echo "$ac_t""yes" 1>&6
1400 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1401 cat >> confdefs.h <<EOF
1402 #define $ac_tr_hdr 1
1406 echo "$ac_t""no" 1>&6
1410 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h net/if.h
1412 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1413 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1414 echo "configure:1415: checking for $ac_hdr" >&5
1415 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1416 echo $ac_n "(cached) $ac_c" 1>&6
1418 cat > conftest.$ac_ext <<EOF
1419 #line 1420 "configure"
1420 #include "confdefs.h"
1423 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1424 { (eval echo configure:1425: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1425 ac_err=`grep -v '^ *+' conftest.out`
1426 if test -z "$ac_err"; then
1428 eval "ac_cv_header_$ac_safe=yes"
1431 echo "configure: failed program was:" >&5
1432 cat conftest.$ac_ext >&5
1434 eval "ac_cv_header_$ac_safe=no"
1438 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1439 echo "$ac_t""yes" 1>&6
1440 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1441 cat >> confdefs.h <<EOF
1442 #define $ac_tr_hdr 1
1446 echo "$ac_t""no" 1>&6
1450 for ac_hdr in compat.h sys/param.h ctype.h sys/wait.h sys/ioctl.h
1452 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1453 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1454 echo "configure:1455: checking for $ac_hdr" >&5
1455 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1456 echo $ac_n "(cached) $ac_c" 1>&6
1458 cat > conftest.$ac_ext <<EOF
1459 #line 1460 "configure"
1460 #include "confdefs.h"
1463 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1464 { (eval echo configure:1465: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1465 ac_err=`grep -v '^ *+' conftest.out`
1466 if test -z "$ac_err"; then
1468 eval "ac_cv_header_$ac_safe=yes"
1471 echo "configure: failed program was:" >&5
1472 cat conftest.$ac_ext >&5
1474 eval "ac_cv_header_$ac_safe=no"
1478 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1479 echo "$ac_t""yes" 1>&6
1480 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1481 cat >> confdefs.h <<EOF
1482 #define $ac_tr_hdr 1
1486 echo "$ac_t""no" 1>&6
1490 for ac_hdr in sys/filio.h string.h stdlib.h sys/socket.h sys/mode.h
1492 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1493 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1494 echo "configure:1495: checking for $ac_hdr" >&5
1495 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1496 echo $ac_n "(cached) $ac_c" 1>&6
1498 cat > conftest.$ac_ext <<EOF
1499 #line 1500 "configure"
1500 #include "confdefs.h"
1503 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1504 { (eval echo configure:1505: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1505 ac_err=`grep -v '^ *+' conftest.out`
1506 if test -z "$ac_err"; then
1508 eval "ac_cv_header_$ac_safe=yes"
1511 echo "configure: failed program was:" >&5
1512 cat conftest.$ac_ext >&5
1514 eval "ac_cv_header_$ac_safe=no"
1518 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1519 echo "$ac_t""yes" 1>&6
1520 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1521 cat >> confdefs.h <<EOF
1522 #define $ac_tr_hdr 1
1526 echo "$ac_t""no" 1>&6
1530 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h
1532 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1533 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1534 echo "configure:1535: checking for $ac_hdr" >&5
1535 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1536 echo $ac_n "(cached) $ac_c" 1>&6
1538 cat > conftest.$ac_ext <<EOF
1539 #line 1540 "configure"
1540 #include "confdefs.h"
1543 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1544 { (eval echo configure:1545: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1545 ac_err=`grep -v '^ *+' conftest.out`
1546 if test -z "$ac_err"; then
1548 eval "ac_cv_header_$ac_safe=yes"
1551 echo "configure: failed program was:" >&5
1552 cat conftest.$ac_ext >&5
1554 eval "ac_cv_header_$ac_safe=no"
1558 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1559 echo "$ac_t""yes" 1>&6
1560 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1561 cat >> confdefs.h <<EOF
1562 #define $ac_tr_hdr 1
1566 echo "$ac_t""no" 1>&6
1570 for ac_hdr in sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
1572 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1573 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1574 echo "configure:1575: checking for $ac_hdr" >&5
1575 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1576 echo $ac_n "(cached) $ac_c" 1>&6
1578 cat > conftest.$ac_ext <<EOF
1579 #line 1580 "configure"
1580 #include "confdefs.h"
1583 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1584 { (eval echo configure:1585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1585 ac_err=`grep -v '^ *+' conftest.out`
1586 if test -z "$ac_err"; then
1588 eval "ac_cv_header_$ac_safe=yes"
1591 echo "configure: failed program was:" >&5
1592 cat conftest.$ac_ext >&5
1594 eval "ac_cv_header_$ac_safe=no"
1598 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1599 echo "$ac_t""yes" 1>&6
1600 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1601 cat >> confdefs.h <<EOF
1602 #define $ac_tr_hdr 1
1606 echo "$ac_t""no" 1>&6
1610 for ac_hdr in shadow.h netinet/tcp.h sys/security.h security/pam_appl.h
1612 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1613 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1614 echo "configure:1615: checking for $ac_hdr" >&5
1615 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1616 echo $ac_n "(cached) $ac_c" 1>&6
1618 cat > conftest.$ac_ext <<EOF
1619 #line 1620 "configure"
1620 #include "confdefs.h"
1623 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1624 { (eval echo configure:1625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1625 ac_err=`grep -v '^ *+' conftest.out`
1626 if test -z "$ac_err"; then
1628 eval "ac_cv_header_$ac_safe=yes"
1631 echo "configure: failed program was:" >&5
1632 cat conftest.$ac_ext >&5
1634 eval "ac_cv_header_$ac_safe=no"
1638 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1639 echo "$ac_t""yes" 1>&6
1640 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1641 cat >> confdefs.h <<EOF
1642 #define $ac_tr_hdr 1
1646 echo "$ac_t""no" 1>&6
1651 echo $ac_n "checking size of int""... $ac_c" 1>&6
1652 echo "configure:1653: checking size of int" >&5
1653 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1654 echo $ac_n "(cached) $ac_c" 1>&6
1656 if test "$cross_compiling" = yes; then
1657 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1659 cat > conftest.$ac_ext <<EOF
1660 #line 1661 "configure"
1661 #include "confdefs.h"
1665 FILE *f=fopen("conftestval", "w");
1667 fprintf(f, "%d\n", sizeof(int));
1671 if { (eval echo configure:1672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1673 ac_cv_sizeof_int=`cat conftestval`
1675 echo "configure: failed program was:" >&5
1676 cat conftest.$ac_ext >&5
1684 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1685 cat >> confdefs.h <<EOF
1686 #define SIZEOF_INT $ac_cv_sizeof_int
1690 echo $ac_n "checking size of long""... $ac_c" 1>&6
1691 echo "configure:1692: checking size of long" >&5
1692 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1693 echo $ac_n "(cached) $ac_c" 1>&6
1695 if test "$cross_compiling" = yes; then
1696 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1698 cat > conftest.$ac_ext <<EOF
1699 #line 1700 "configure"
1700 #include "confdefs.h"
1704 FILE *f=fopen("conftestval", "w");
1706 fprintf(f, "%d\n", sizeof(long));
1710 if { (eval echo configure:1711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1712 ac_cv_sizeof_long=`cat conftestval`
1714 echo "configure: failed program was:" >&5
1715 cat conftest.$ac_ext >&5
1723 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1724 cat >> confdefs.h <<EOF
1725 #define SIZEOF_LONG $ac_cv_sizeof_long
1729 echo $ac_n "checking size of short""... $ac_c" 1>&6
1730 echo "configure:1731: checking size of short" >&5
1731 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1732 echo $ac_n "(cached) $ac_c" 1>&6
1734 if test "$cross_compiling" = yes; then
1735 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1737 cat > conftest.$ac_ext <<EOF
1738 #line 1739 "configure"
1739 #include "confdefs.h"
1743 FILE *f=fopen("conftestval", "w");
1745 fprintf(f, "%d\n", sizeof(short));
1749 if { (eval echo configure:1750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1751 ac_cv_sizeof_short=`cat conftestval`
1753 echo "configure: failed program was:" >&5
1754 cat conftest.$ac_ext >&5
1756 ac_cv_sizeof_short=0
1762 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
1763 cat >> confdefs.h <<EOF
1764 #define SIZEOF_SHORT $ac_cv_sizeof_short
1769 echo $ac_n "checking for working const""... $ac_c" 1>&6
1770 echo "configure:1771: checking for working const" >&5
1771 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1772 echo $ac_n "(cached) $ac_c" 1>&6
1774 cat > conftest.$ac_ext <<EOF
1775 #line 1776 "configure"
1776 #include "confdefs.h"
1780 /* Ultrix mips cc rejects this. */
1781 typedef int charset[2]; const charset x;
1782 /* SunOS 4.1.1 cc rejects this. */
1783 char const *const *ccp;
1785 /* NEC SVR4.0.2 mips cc rejects this. */
1786 struct point {int x, y;};
1787 static struct point const zero = {0,0};
1788 /* AIX XL C 1.02.0.0 rejects this.
1789 It does not let you subtract one const X* pointer from another in an arm
1790 of an if-expression whose if-part is not a constant expression */
1791 const char *g = "string";
1792 ccp = &g + (g ? g-g : 0);
1793 /* HPUX 7.0 cc rejects these. */
1796 ccp = (char const *const *) p;
1797 { /* SCO 3.2v4 cc rejects this. */
1799 char const *s = 0 ? (char *) 0 : (char const *) 0;
1803 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1805 const int *foo = &x[0];
1808 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1809 typedef const int *iptr;
1813 { /* AIX XL C 1.02.0.0 rejects this saying
1814 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1815 struct s { int j; const int *ap[3]; };
1816 struct s *b; b->j = 5;
1818 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1824 if { (eval echo configure:1825: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1828 echo "configure: failed program was:" >&5
1829 cat conftest.$ac_ext >&5
1836 echo "$ac_t""$ac_cv_c_const" 1>&6
1837 if test $ac_cv_c_const = no; then
1838 cat >> confdefs.h <<\EOF
1844 echo $ac_n "checking for inline""... $ac_c" 1>&6
1845 echo "configure:1846: checking for inline" >&5
1846 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1847 echo $ac_n "(cached) $ac_c" 1>&6
1850 for ac_kw in inline __inline__ __inline; do
1851 cat > conftest.$ac_ext <<EOF
1852 #line 1853 "configure"
1853 #include "confdefs.h"
1859 if { (eval echo configure:1860: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1861 ac_cv_c_inline=$ac_kw; break
1863 echo "configure: failed program was:" >&5
1864 cat conftest.$ac_ext >&5
1871 echo "$ac_t""$ac_cv_c_inline" 1>&6
1872 case "$ac_cv_c_inline" in
1874 no) cat >> confdefs.h <<\EOF
1878 *) cat >> confdefs.h <<EOF
1879 #define inline $ac_cv_c_inline
1884 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1885 echo "configure:1886: checking whether byte ordering is bigendian" >&5
1886 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1887 echo $ac_n "(cached) $ac_c" 1>&6
1889 ac_cv_c_bigendian=unknown
1890 # See if sys/param.h defines the BYTE_ORDER macro.
1891 cat > conftest.$ac_ext <<EOF
1892 #line 1893 "configure"
1893 #include "confdefs.h"
1894 #include <sys/types.h>
1895 #include <sys/param.h>
1898 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1903 if { (eval echo configure:1904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1905 # It does; now see whether it defined to BIG_ENDIAN or not.
1906 cat > conftest.$ac_ext <<EOF
1907 #line 1908 "configure"
1908 #include "confdefs.h"
1909 #include <sys/types.h>
1910 #include <sys/param.h>
1913 #if BYTE_ORDER != BIG_ENDIAN
1918 if { (eval echo configure:1919: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1920 ac_cv_c_bigendian=yes
1922 echo "configure: failed program was:" >&5
1923 cat conftest.$ac_ext >&5
1925 ac_cv_c_bigendian=no
1929 echo "configure: failed program was:" >&5
1930 cat conftest.$ac_ext >&5
1933 if test $ac_cv_c_bigendian = unknown; then
1934 if test "$cross_compiling" = yes; then
1935 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1937 cat > conftest.$ac_ext <<EOF
1938 #line 1939 "configure"
1939 #include "confdefs.h"
1941 /* Are we little or big endian? From Harbison&Steele. */
1945 char c[sizeof (long)];
1948 exit (u.c[sizeof (long) - 1] == 1);
1951 if { (eval echo configure:1952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1953 ac_cv_c_bigendian=no
1955 echo "configure: failed program was:" >&5
1956 cat conftest.$ac_ext >&5
1958 ac_cv_c_bigendian=yes
1966 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1967 if test $ac_cv_c_bigendian = yes; then
1968 cat >> confdefs.h <<\EOF
1969 #define WORDS_BIGENDIAN 1
1974 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
1975 echo "configure:1976: checking whether char is unsigned" >&5
1976 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
1977 echo $ac_n "(cached) $ac_c" 1>&6
1979 if test "$GCC" = yes; then
1980 # GCC predefines this symbol on systems where it applies.
1981 cat > conftest.$ac_ext <<EOF
1982 #line 1983 "configure"
1983 #include "confdefs.h"
1984 #ifdef __CHAR_UNSIGNED__
1989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1990 egrep "yes" >/dev/null 2>&1; then
1992 ac_cv_c_char_unsigned=yes
1995 ac_cv_c_char_unsigned=no
2000 if test "$cross_compiling" = yes; then
2001 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2003 cat > conftest.$ac_ext <<EOF
2004 #line 2005 "configure"
2005 #include "confdefs.h"
2006 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
2007 #if !defined(__STDC__) || __STDC__ != 1
2011 volatile char c = 255; exit(c < 0);
2014 if { (eval echo configure:2015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2016 ac_cv_c_char_unsigned=yes
2018 echo "configure: failed program was:" >&5
2019 cat conftest.$ac_ext >&5
2021 ac_cv_c_char_unsigned=no
2029 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
2030 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
2031 cat >> confdefs.h <<\EOF
2032 #define __CHAR_UNSIGNED__ 1
2038 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2039 echo "configure:2040: checking return type of signal handlers" >&5
2040 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2041 echo $ac_n "(cached) $ac_c" 1>&6
2043 cat > conftest.$ac_ext <<EOF
2044 #line 2045 "configure"
2045 #include "confdefs.h"
2046 #include <sys/types.h>
2052 extern "C" void (*signal (int, void (*)(int)))(int);
2054 void (*signal ()) ();
2061 if { (eval echo configure:2062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2063 ac_cv_type_signal=void
2065 echo "configure: failed program was:" >&5
2066 cat conftest.$ac_ext >&5
2068 ac_cv_type_signal=int
2073 echo "$ac_t""$ac_cv_type_signal" 1>&6
2074 cat >> confdefs.h <<EOF
2075 #define RETSIGTYPE $ac_cv_type_signal
2079 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2080 echo "configure:2081: checking for uid_t in sys/types.h" >&5
2081 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2082 echo $ac_n "(cached) $ac_c" 1>&6
2084 cat > conftest.$ac_ext <<EOF
2085 #line 2086 "configure"
2086 #include "confdefs.h"
2087 #include <sys/types.h>
2089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2090 egrep "uid_t" >/dev/null 2>&1; then
2092 ac_cv_type_uid_t=yes
2101 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2102 if test $ac_cv_type_uid_t = no; then
2103 cat >> confdefs.h <<\EOF
2107 cat >> confdefs.h <<\EOF
2113 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2114 echo "configure:2115: checking for mode_t" >&5
2115 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2116 echo $ac_n "(cached) $ac_c" 1>&6
2118 cat > conftest.$ac_ext <<EOF
2119 #line 2120 "configure"
2120 #include "confdefs.h"
2121 #include <sys/types.h>
2127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2128 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2130 ac_cv_type_mode_t=yes
2133 ac_cv_type_mode_t=no
2138 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
2139 if test $ac_cv_type_mode_t = no; then
2140 cat >> confdefs.h <<\EOF
2146 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2147 echo "configure:2148: checking for off_t" >&5
2148 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2149 echo $ac_n "(cached) $ac_c" 1>&6
2151 cat > conftest.$ac_ext <<EOF
2152 #line 2153 "configure"
2153 #include "confdefs.h"
2154 #include <sys/types.h>
2160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2161 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2163 ac_cv_type_off_t=yes
2171 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2172 if test $ac_cv_type_off_t = no; then
2173 cat >> confdefs.h <<\EOF
2179 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2180 echo "configure:2181: checking for size_t" >&5
2181 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2182 echo $ac_n "(cached) $ac_c" 1>&6
2184 cat > conftest.$ac_ext <<EOF
2185 #line 2186 "configure"
2186 #include "confdefs.h"
2187 #include <sys/types.h>
2193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2194 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2196 ac_cv_type_size_t=yes
2199 ac_cv_type_size_t=no
2204 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2205 if test $ac_cv_type_size_t = no; then
2206 cat >> confdefs.h <<\EOF
2207 #define size_t unsigned
2212 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2213 echo "configure:2214: checking for pid_t" >&5
2214 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2215 echo $ac_n "(cached) $ac_c" 1>&6
2217 cat > conftest.$ac_ext <<EOF
2218 #line 2219 "configure"
2219 #include "confdefs.h"
2220 #include <sys/types.h>
2226 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2227 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2229 ac_cv_type_pid_t=yes
2237 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2238 if test $ac_cv_type_pid_t = no; then
2239 cat >> confdefs.h <<\EOF
2245 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
2246 echo "configure:2247: checking for st_rdev in struct stat" >&5
2247 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
2248 echo $ac_n "(cached) $ac_c" 1>&6
2250 cat > conftest.$ac_ext <<EOF
2251 #line 2252 "configure"
2252 #include "confdefs.h"
2253 #include <sys/types.h>
2254 #include <sys/stat.h>
2256 struct stat s; s.st_rdev;
2259 if { (eval echo configure:2260: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2261 ac_cv_struct_st_rdev=yes
2263 echo "configure: failed program was:" >&5
2264 cat conftest.$ac_ext >&5
2266 ac_cv_struct_st_rdev=no
2271 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
2272 if test $ac_cv_struct_st_rdev = yes; then
2273 cat >> confdefs.h <<\EOF
2274 #define HAVE_ST_RDEV 1
2279 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
2280 echo "configure:2281: checking for ino_t" >&5
2281 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
2282 echo $ac_n "(cached) $ac_c" 1>&6
2284 cat > conftest.$ac_ext <<EOF
2285 #line 2286 "configure"
2286 #include "confdefs.h"
2287 #include <sys/types.h>
2293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2294 egrep "ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2296 ac_cv_type_ino_t=yes
2304 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
2305 if test $ac_cv_type_ino_t = no; then
2306 cat >> confdefs.h <<\EOF
2307 #define ino_t unsigned
2313 echo $ac_n "checking for errno in errno.h... $ac_c"
2314 cat > conftest.$ac_ext <<EOF
2315 #line 2316 "configure"
2316 #include "confdefs.h"
2322 if { (eval echo configure:2323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2324 echo yes; cat >> confdefs.h <<\EOF
2325 #define HAVE_ERRNO_DECL 1
2329 echo "configure: failed program was:" >&5
2330 cat conftest.$ac_ext >&5
2336 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
2337 echo "configure:2338: checking for 8-bit clean memcmp" >&5
2338 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
2339 echo $ac_n "(cached) $ac_c" 1>&6
2341 if test "$cross_compiling" = yes; then
2342 ac_cv_func_memcmp_clean=no
2344 cat > conftest.$ac_ext <<EOF
2345 #line 2346 "configure"
2346 #include "confdefs.h"
2350 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
2351 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
2355 if { (eval echo configure:2356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2357 ac_cv_func_memcmp_clean=yes
2359 echo "configure: failed program was:" >&5
2360 cat conftest.$ac_ext >&5
2362 ac_cv_func_memcmp_clean=no
2369 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
2370 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
2373 ###############################################
2374 # test for where we get crypt() from
2375 if test "$ac_cv_lib_crypt_crypt" = "yes"; then
2376 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
2377 echo "configure:2378: checking for crypt in -lcrypt" >&5
2378 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
2379 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2380 echo $ac_n "(cached) $ac_c" 1>&6
2382 ac_save_LIBS="$LIBS"
2383 LIBS="-lcrypt $LIBS"
2384 cat > conftest.$ac_ext <<EOF
2385 #line 2386 "configure"
2386 #include "confdefs.h"
2387 /* Override any gcc2 internal prototype to avoid an error. */
2388 /* We use char because int might match the return type of a gcc2
2389 builtin and then its argument prototype would still apply. */
2396 if { (eval echo configure:2397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2398 eval "ac_cv_lib_$ac_lib_var=yes"
2400 echo "configure: failed program was:" >&5
2401 cat conftest.$ac_ext >&5
2403 eval "ac_cv_lib_$ac_lib_var=no"
2406 LIBS="$ac_save_LIBS"
2409 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2410 echo "$ac_t""yes" 1>&6
2411 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2412 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2413 cat >> confdefs.h <<EOF
2414 #define $ac_tr_lib 1
2417 LIBS="-lcrypt $LIBS"
2420 echo "$ac_t""no" 1>&6
2423 cat >> confdefs.h <<\EOF
2424 #define HAVE_CRYPT 1
2428 if test "$ac_cv_lib_crypt_crypt" = "no" ||
2429 test "$ac_cv_lib_crypt_crypt" = ""; then
2431 echo $ac_n "checking for crypt""... $ac_c" 1>&6
2432 echo "configure:2433: checking for crypt" >&5
2433 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
2434 echo $ac_n "(cached) $ac_c" 1>&6
2436 cat > conftest.$ac_ext <<EOF
2437 #line 2438 "configure"
2438 #include "confdefs.h"
2439 /* System header to define __stub macros and hopefully few prototypes,
2440 which can conflict with char crypt(); below. */
2442 /* Override any gcc2 internal prototype to avoid an error. */
2443 /* We use char because int might match the return type of a gcc2
2444 builtin and then its argument prototype would still apply. */
2449 /* The GNU C library defines this for functions which it implements
2450 to always fail with ENOSYS. Some functions are actually named
2451 something starting with __ and the normal name is an alias. */
2452 #if defined (__stub_crypt) || defined (__stub___crypt)
2460 if { (eval echo configure:2461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2462 eval "ac_cv_func_crypt=yes"
2464 echo "configure: failed program was:" >&5
2465 cat conftest.$ac_ext >&5
2467 eval "ac_cv_func_crypt=no"
2472 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
2473 echo "$ac_t""yes" 1>&6
2474 cat >> confdefs.h <<\EOF
2475 #define HAVE_CRYPT 1
2479 echo "$ac_t""no" 1>&6
2482 *) echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
2483 echo "configure:2484: checking for crypt in -lcrypt" >&5
2484 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
2485 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2486 echo $ac_n "(cached) $ac_c" 1>&6
2488 ac_save_LIBS="$LIBS"
2489 LIBS="-lcrypt $LIBS"
2490 cat > conftest.$ac_ext <<EOF
2491 #line 2492 "configure"
2492 #include "confdefs.h"
2493 /* Override any gcc2 internal prototype to avoid an error. */
2494 /* We use char because int might match the return type of a gcc2
2495 builtin and then its argument prototype would still apply. */
2502 if { (eval echo configure:2503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2504 eval "ac_cv_lib_$ac_lib_var=yes"
2506 echo "configure: failed program was:" >&5
2507 cat conftest.$ac_ext >&5
2509 eval "ac_cv_lib_$ac_lib_var=no"
2512 LIBS="$ac_save_LIBS"
2515 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2516 echo "$ac_t""yes" 1>&6
2517 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2518 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2519 cat >> confdefs.h <<EOF
2520 #define $ac_tr_lib 1
2523 LIBS="-lcrypt $LIBS"
2526 echo "$ac_t""no" 1>&6
2530 if test "$ac_cv_lib_crypt_crypt" = "yes"; then
2531 ac_cv_func_crypt=yes
2532 cat >> confdefs.h <<\EOF
2533 #define HAVE_CRYPT 1
2542 ###############################################
2543 # test for where we get pam_authenticate() from
2544 # might need libdl for this to work
2545 if test "$ac_cv_header_security_pam_appl_h" = "yes"; then
2546 echo $ac_n "checking for -ldl""... $ac_c" 1>&6
2547 echo "configure:2548: checking for -ldl" >&5
2548 if eval "test \"`echo '$''{'ac_cv_lib_dl'+set}'`\" = set"; then
2549 echo $ac_n "(cached) $ac_c" 1>&6
2551 ac_save_LIBS="$LIBS"
2553 cat > conftest.$ac_ext <<EOF
2554 #line 2555 "configure"
2555 #include "confdefs.h"
2561 if { (eval echo configure:2562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2565 echo "configure: failed program was:" >&5
2566 cat conftest.$ac_ext >&5
2571 LIBS="$ac_save_LIBS"
2574 echo "$ac_t""$ac_cv_lib_dl" 1>&6
2575 if test "$ac_cv_lib_dl" = yes; then
2576 cat >> confdefs.h <<\EOF
2577 #define HAVE_LIBDL 1
2585 if test "$ac_cv_lib_pam_pam_authenticate" = "yes"; then
2586 echo $ac_n "checking for pam_authenticate in -lpam""... $ac_c" 1>&6
2587 echo "configure:2588: checking for pam_authenticate in -lpam" >&5
2588 ac_lib_var=`echo pam'_'pam_authenticate | sed 'y%./+-%__p_%'`
2589 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2590 echo $ac_n "(cached) $ac_c" 1>&6
2592 ac_save_LIBS="$LIBS"
2594 cat > conftest.$ac_ext <<EOF
2595 #line 2596 "configure"
2596 #include "confdefs.h"
2597 /* Override any gcc2 internal prototype to avoid an error. */
2598 /* We use char because int might match the return type of a gcc2
2599 builtin and then its argument prototype would still apply. */
2600 char pam_authenticate();
2606 if { (eval echo configure:2607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2608 eval "ac_cv_lib_$ac_lib_var=yes"
2610 echo "configure: failed program was:" >&5
2611 cat conftest.$ac_ext >&5
2613 eval "ac_cv_lib_$ac_lib_var=no"
2616 LIBS="$ac_save_LIBS"
2619 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2620 echo "$ac_t""yes" 1>&6
2621 ac_tr_lib=HAVE_LIB`echo pam | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2622 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2623 cat >> confdefs.h <<EOF
2624 #define $ac_tr_lib 1
2630 echo "$ac_t""no" 1>&6
2633 cat >> confdefs.h <<\EOF
2634 #define HAVE_PAM_AUTHENTICATE 1
2638 if test "$ac_cv_lib_pam_pam_authenticate" = "no" ||
2639 test "$ac_cv_lib_pam_pam_authenticate" = ""; then
2640 # look for pam_authenticate
2641 echo $ac_n "checking for pam_authenticate""... $ac_c" 1>&6
2642 echo "configure:2643: checking for pam_authenticate" >&5
2643 if eval "test \"`echo '$''{'ac_cv_func_pam_authenticate'+set}'`\" = set"; then
2644 echo $ac_n "(cached) $ac_c" 1>&6
2646 cat > conftest.$ac_ext <<EOF
2647 #line 2648 "configure"
2648 #include "confdefs.h"
2649 /* System header to define __stub macros and hopefully few prototypes,
2650 which can conflict with char pam_authenticate(); below. */
2652 /* Override any gcc2 internal prototype to avoid an error. */
2653 /* We use char because int might match the return type of a gcc2
2654 builtin and then its argument prototype would still apply. */
2655 char pam_authenticate();
2659 /* The GNU C library defines this for functions which it implements
2660 to always fail with ENOSYS. Some functions are actually named
2661 something starting with __ and the normal name is an alias. */
2662 #if defined (__stub_pam_authenticate) || defined (__stub___pam_authenticate)
2670 if { (eval echo configure:2671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2672 eval "ac_cv_func_pam_authenticate=yes"
2674 echo "configure: failed program was:" >&5
2675 cat conftest.$ac_ext >&5
2677 eval "ac_cv_func_pam_authenticate=no"
2682 if eval "test \"`echo '$ac_cv_func_'pam_authenticate`\" = yes"; then
2683 echo "$ac_t""yes" 1>&6
2684 cat >> confdefs.h <<\EOF
2685 #define HAVE_PAM_AUTHENTICATE 1
2689 echo "$ac_t""no" 1>&6
2692 *) echo $ac_n "checking for pam_authenticate in -lpam""... $ac_c" 1>&6
2693 echo "configure:2694: checking for pam_authenticate in -lpam" >&5
2694 ac_lib_var=`echo pam'_'pam_authenticate | sed 'y%./+-%__p_%'`
2695 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2696 echo $ac_n "(cached) $ac_c" 1>&6
2698 ac_save_LIBS="$LIBS"
2700 cat > conftest.$ac_ext <<EOF
2701 #line 2702 "configure"
2702 #include "confdefs.h"
2703 /* Override any gcc2 internal prototype to avoid an error. */
2704 /* We use char because int might match the return type of a gcc2
2705 builtin and then its argument prototype would still apply. */
2706 char pam_authenticate();
2712 if { (eval echo configure:2713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2714 eval "ac_cv_lib_$ac_lib_var=yes"
2716 echo "configure: failed program was:" >&5
2717 cat conftest.$ac_ext >&5
2719 eval "ac_cv_lib_$ac_lib_var=no"
2722 LIBS="$ac_save_LIBS"
2725 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2726 echo "$ac_t""yes" 1>&6
2727 ac_tr_lib=HAVE_LIB`echo pam | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2728 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2729 cat >> confdefs.h <<EOF
2730 #define $ac_tr_lib 1
2736 echo "$ac_t""no" 1>&6
2740 if test "$ac_cv_lib_pam_pam_authenticate" = "yes"; then
2741 ac_cv_func_pam_authenticate=yes
2742 cat >> confdefs.h <<\EOF
2743 #define HAVE_PAM_AUTHENTICATE 1
2752 for ac_func in waitpid getcwd strdup strerror chown chmod chroot
2754 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2755 echo "configure:2756: checking for $ac_func" >&5
2756 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2757 echo $ac_n "(cached) $ac_c" 1>&6
2759 cat > conftest.$ac_ext <<EOF
2760 #line 2761 "configure"
2761 #include "confdefs.h"
2762 /* System header to define __stub macros and hopefully few prototypes,
2763 which can conflict with char $ac_func(); below. */
2765 /* Override any gcc2 internal prototype to avoid an error. */
2766 /* We use char because int might match the return type of a gcc2
2767 builtin and then its argument prototype would still apply. */
2772 /* The GNU C library defines this for functions which it implements
2773 to always fail with ENOSYS. Some functions are actually named
2774 something starting with __ and the normal name is an alias. */
2775 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2783 if { (eval echo configure:2784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2785 eval "ac_cv_func_$ac_func=yes"
2787 echo "configure: failed program was:" >&5
2788 cat conftest.$ac_ext >&5
2790 eval "ac_cv_func_$ac_func=no"
2795 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2796 echo "$ac_t""yes" 1>&6
2797 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2798 cat >> confdefs.h <<EOF
2799 #define $ac_tr_func 1
2803 echo "$ac_t""no" 1>&6
2807 for ac_func in fstat strchr utime utimes getrlimit fsync execl
2809 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2810 echo "configure:2811: checking for $ac_func" >&5
2811 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2812 echo $ac_n "(cached) $ac_c" 1>&6
2814 cat > conftest.$ac_ext <<EOF
2815 #line 2816 "configure"
2816 #include "confdefs.h"
2817 /* System header to define __stub macros and hopefully few prototypes,
2818 which can conflict with char $ac_func(); below. */
2820 /* Override any gcc2 internal prototype to avoid an error. */
2821 /* We use char because int might match the return type of a gcc2
2822 builtin and then its argument prototype would still apply. */
2827 /* The GNU C library defines this for functions which it implements
2828 to always fail with ENOSYS. Some functions are actually named
2829 something starting with __ and the normal name is an alias. */
2830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2838 if { (eval echo configure:2839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2840 eval "ac_cv_func_$ac_func=yes"
2842 echo "configure: failed program was:" >&5
2843 cat conftest.$ac_ext >&5
2845 eval "ac_cv_func_$ac_func=no"
2850 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2851 echo "$ac_t""yes" 1>&6
2852 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2853 cat >> confdefs.h <<EOF
2854 #define $ac_tr_func 1
2858 echo "$ac_t""no" 1>&6
2862 for ac_func in memmove vsnprintf setsid glob strpbrk pipe crypt16 getauthuid
2864 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2865 echo "configure:2866: checking for $ac_func" >&5
2866 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2867 echo $ac_n "(cached) $ac_c" 1>&6
2869 cat > conftest.$ac_ext <<EOF
2870 #line 2871 "configure"
2871 #include "confdefs.h"
2872 /* System header to define __stub macros and hopefully few prototypes,
2873 which can conflict with char $ac_func(); below. */
2875 /* Override any gcc2 internal prototype to avoid an error. */
2876 /* We use char because int might match the return type of a gcc2
2877 builtin and then its argument prototype would still apply. */
2882 /* The GNU C library defines this for functions which it implements
2883 to always fail with ENOSYS. Some functions are actually named
2884 something starting with __ and the normal name is an alias. */
2885 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2893 if { (eval echo configure:2894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2895 eval "ac_cv_func_$ac_func=yes"
2897 echo "configure: failed program was:" >&5
2898 cat conftest.$ac_ext >&5
2900 eval "ac_cv_func_$ac_func=no"
2905 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2906 echo "$ac_t""yes" 1>&6
2907 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2908 cat >> confdefs.h <<EOF
2909 #define $ac_tr_func 1
2913 echo "$ac_t""no" 1>&6
2917 for ac_func in strftime sigprocmask sigblock sigaction innetgr
2919 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2920 echo "configure:2921: checking for $ac_func" >&5
2921 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2922 echo $ac_n "(cached) $ac_c" 1>&6
2924 cat > conftest.$ac_ext <<EOF
2925 #line 2926 "configure"
2926 #include "confdefs.h"
2927 /* System header to define __stub macros and hopefully few prototypes,
2928 which can conflict with char $ac_func(); below. */
2930 /* Override any gcc2 internal prototype to avoid an error. */
2931 /* We use char because int might match the return type of a gcc2
2932 builtin and then its argument prototype would still apply. */
2937 /* The GNU C library defines this for functions which it implements
2938 to always fail with ENOSYS. Some functions are actually named
2939 something starting with __ and the normal name is an alias. */
2940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2948 if { (eval echo configure:2949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2950 eval "ac_cv_func_$ac_func=yes"
2952 echo "configure: failed program was:" >&5
2953 cat conftest.$ac_ext >&5
2955 eval "ac_cv_func_$ac_func=no"
2960 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2961 echo "$ac_t""yes" 1>&6
2962 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2963 cat >> confdefs.h <<EOF
2964 #define $ac_tr_func 1
2968 echo "$ac_t""no" 1>&6
2972 for ac_func in initgroups select rdchk getgrnam pathconf putprpwnam
2974 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2975 echo "configure:2976: checking for $ac_func" >&5
2976 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2977 echo $ac_n "(cached) $ac_c" 1>&6
2979 cat > conftest.$ac_ext <<EOF
2980 #line 2981 "configure"
2981 #include "confdefs.h"
2982 /* System header to define __stub macros and hopefully few prototypes,
2983 which can conflict with char $ac_func(); below. */
2985 /* Override any gcc2 internal prototype to avoid an error. */
2986 /* We use char because int might match the return type of a gcc2
2987 builtin and then its argument prototype would still apply. */
2992 /* The GNU C library defines this for functions which it implements
2993 to always fail with ENOSYS. Some functions are actually named
2994 something starting with __ and the normal name is an alias. */
2995 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3003 if { (eval echo configure:3004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3005 eval "ac_cv_func_$ac_func=yes"
3007 echo "configure: failed program was:" >&5
3008 cat conftest.$ac_ext >&5
3010 eval "ac_cv_func_$ac_func=no"
3015 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3016 echo "$ac_t""yes" 1>&6
3017 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3018 cat >> confdefs.h <<EOF
3019 #define $ac_tr_func 1
3023 echo "$ac_t""no" 1>&6
3027 for ac_func in setresuid setuidx setgroups mktime rename ftruncate
3029 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3030 echo "configure:3031: checking for $ac_func" >&5
3031 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3032 echo $ac_n "(cached) $ac_c" 1>&6
3034 cat > conftest.$ac_ext <<EOF
3035 #line 3036 "configure"
3036 #include "confdefs.h"
3037 /* System header to define __stub macros and hopefully few prototypes,
3038 which can conflict with char $ac_func(); below. */
3040 /* Override any gcc2 internal prototype to avoid an error. */
3041 /* We use char because int might match the return type of a gcc2
3042 builtin and then its argument prototype would still apply. */
3047 /* The GNU C library defines this for functions which it implements
3048 to always fail with ENOSYS. Some functions are actually named
3049 something starting with __ and the normal name is an alias. */
3050 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3058 if { (eval echo configure:3059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3060 eval "ac_cv_func_$ac_func=yes"
3062 echo "configure: failed program was:" >&5
3063 cat conftest.$ac_ext >&5
3065 eval "ac_cv_func_$ac_func=no"
3070 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3071 echo "$ac_t""yes" 1>&6
3072 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3073 cat >> confdefs.h <<EOF
3074 #define $ac_tr_func 1
3078 echo "$ac_t""no" 1>&6
3082 for ac_func in set_auth_parameters atexit grantpt getspnam dup2
3084 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3085 echo "configure:3086: checking for $ac_func" >&5
3086 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3087 echo $ac_n "(cached) $ac_c" 1>&6
3089 cat > conftest.$ac_ext <<EOF
3090 #line 3091 "configure"
3091 #include "confdefs.h"
3092 /* System header to define __stub macros and hopefully few prototypes,
3093 which can conflict with char $ac_func(); below. */
3095 /* Override any gcc2 internal prototype to avoid an error. */
3096 /* We use char because int might match the return type of a gcc2
3097 builtin and then its argument prototype would still apply. */
3102 /* The GNU C library defines this for functions which it implements
3103 to always fail with ENOSYS. Some functions are actually named
3104 something starting with __ and the normal name is an alias. */
3105 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3113 if { (eval echo configure:3114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3115 eval "ac_cv_func_$ac_func=yes"
3117 echo "configure: failed program was:" >&5
3118 cat conftest.$ac_ext >&5
3120 eval "ac_cv_func_$ac_func=no"
3125 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3126 echo "$ac_t""yes" 1>&6
3127 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3128 cat >> confdefs.h <<EOF
3129 #define $ac_tr_func 1
3133 echo "$ac_t""no" 1>&6
3137 for ac_func in bigcrypt getprpwnam setluid yp_get_default_domain
3139 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3140 echo "configure:3141: checking for $ac_func" >&5
3141 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3142 echo $ac_n "(cached) $ac_c" 1>&6
3144 cat > conftest.$ac_ext <<EOF
3145 #line 3146 "configure"
3146 #include "confdefs.h"
3147 /* System header to define __stub macros and hopefully few prototypes,
3148 which can conflict with char $ac_func(); below. */
3150 /* Override any gcc2 internal prototype to avoid an error. */
3151 /* We use char because int might match the return type of a gcc2
3152 builtin and then its argument prototype would still apply. */
3157 /* The GNU C library defines this for functions which it implements
3158 to always fail with ENOSYS. Some functions are actually named
3159 something starting with __ and the normal name is an alias. */
3160 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3168 if { (eval echo configure:3169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3170 eval "ac_cv_func_$ac_func=yes"
3172 echo "configure: failed program was:" >&5
3173 cat conftest.$ac_ext >&5
3175 eval "ac_cv_func_$ac_func=no"
3180 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3181 echo "$ac_t""yes" 1>&6
3182 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3183 cat >> confdefs.h <<EOF
3184 #define $ac_tr_func 1
3188 echo "$ac_t""no" 1>&6
3193 echo $ac_n "checking for long long ... $ac_c"
3194 if test "$cross_compiling" = yes; then
3195 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3197 cat > conftest.$ac_ext <<EOF
3198 #line 3199 "configure"
3199 #include "confdefs.h"
3201 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
3203 if { (eval echo configure:3204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3205 echo yes;cat >> confdefs.h <<\EOF
3206 #define HAVE_LONGLONG 1
3210 echo "configure: failed program was:" >&5
3211 cat conftest.$ac_ext >&5
3219 echo $ac_n "checking for off64_t ... $ac_c"
3220 if test "$cross_compiling" = yes; then
3221 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3223 cat > conftest.$ac_ext <<EOF
3224 #line 3225 "configure"
3225 #include "confdefs.h"
3227 #include <sys/stat.h>
3228 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
3230 if { (eval echo configure:3231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3232 echo yes;cat >> confdefs.h <<\EOF
3233 #define HAVE_OFF64_T 1
3237 echo "configure: failed program was:" >&5
3238 cat conftest.$ac_ext >&5
3246 echo $ac_n "checking for union semun ... $ac_c"
3247 if test "$cross_compiling" = yes; then
3248 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3250 cat > conftest.$ac_ext <<EOF
3251 #line 3252 "configure"
3252 #include "confdefs.h"
3254 #include <sys/types.h>
3255 #include <sys/ipc.h>
3256 #include <sys/sem.h>
3257 main() { union semun ss; exit(0); }
3259 if { (eval echo configure:3260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3261 echo yes;cat >> confdefs.h <<\EOF
3262 #define HAVE_UNION_SEMUN 1
3266 echo "configure: failed program was:" >&5
3267 cat conftest.$ac_ext >&5
3275 echo $ac_n "checking for unsigned char ... $ac_c"
3276 if test "$cross_compiling" = yes; then
3277 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3279 cat > conftest.$ac_ext <<EOF
3280 #line 3281 "configure"
3281 #include "confdefs.h"
3283 main() { char c; c=250; exit((c > 0)?0:1); }
3285 if { (eval echo configure:3286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3287 echo yes;cat >> confdefs.h <<\EOF
3288 #define HAVE_UNSIGNED_CHAR 1
3292 echo "configure: failed program was:" >&5
3293 cat conftest.$ac_ext >&5
3301 echo $ac_n "checking for sin_len in sock ... $ac_c"
3302 cat > conftest.$ac_ext <<EOF
3303 #line 3304 "configure"
3304 #include "confdefs.h"
3305 #include <sys/types.h>
3306 #include <sys/socket.h>
3307 #include <netinet/in.h>
3309 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
3312 if { (eval echo configure:3313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3314 echo yes;cat >> confdefs.h <<\EOF
3315 #define HAVE_SOCK_SIN_LEN 1
3319 echo "configure: failed program was:" >&5
3320 cat conftest.$ac_ext >&5
3326 echo $ac_n "checking for __FUNCTION__ macro ... $ac_c"
3327 cat > conftest.$ac_ext <<EOF
3328 #line 3329 "configure"
3329 #include "confdefs.h"
3332 printf("%s\n", __FUNCTION__);
3335 if { (eval echo configure:3336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3337 echo yes;cat >> confdefs.h <<\EOF
3338 #define HAVE_FUNCTION_MACRO 1
3342 echo "configure: failed program was:" >&5
3343 cat conftest.$ac_ext >&5
3349 echo $ac_n "checking if gettimeofday takes tz argument ... $ac_c"
3350 if test "$cross_compiling" = yes; then
3351 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3353 cat > conftest.$ac_ext <<EOF
3354 #line 3355 "configure"
3355 #include "confdefs.h"
3357 #include <sys/time.h>
3359 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
3361 if { (eval echo configure:3362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3363 echo yes;cat >> confdefs.h <<\EOF
3364 #define HAVE_GETTIMEOFDAY_TZ 1
3368 echo "configure: failed program was:" >&5
3369 cat conftest.$ac_ext >&5
3378 echo $ac_n "checking for broken readdir ... $ac_c"
3379 if test "$cross_compiling" = yes; then
3380 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3382 cat > conftest.$ac_ext <<EOF
3383 #line 3384 "configure"
3384 #include "confdefs.h"
3385 #include <sys/types.h>
3387 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
3388 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
3389 di->d_name[0] == 0) exit(0); exit(1);}
3391 if { (eval echo configure:3392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3393 echo yes - you are using the broken /usr/ucb/cc;cat >> confdefs.h <<\EOF
3394 #define HAVE_BROKEN_READDIR 1
3398 echo "configure: failed program was:" >&5
3399 cat conftest.$ac_ext >&5
3407 echo $ac_n "checking for utimbuf ... $ac_c"
3408 cat > conftest.$ac_ext <<EOF
3409 #line 3410 "configure"
3410 #include "confdefs.h"
3411 #include <sys/types.h>
3414 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
3417 if { (eval echo configure:3418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3419 echo yes;cat >> confdefs.h <<\EOF
3420 #define HAVE_UTIMBUF 1
3424 echo "configure: failed program was:" >&5
3425 cat conftest.$ac_ext >&5
3431 echo $ac_n "checking for ftruncate extend ... $ac_c"
3432 if test "$cross_compiling" = yes; then
3433 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3435 cat > conftest.$ac_ext <<EOF
3436 #line 3437 "configure"
3437 #include "confdefs.h"
3438 #include "tests/ftruncate.c"
3440 if { (eval echo configure:3441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3442 echo yes;cat >> confdefs.h <<\EOF
3443 #define HAVE_FTRUNCATE_EXTEND 1
3447 echo "configure: failed program was:" >&5
3448 cat conftest.$ac_ext >&5
3456 # The following test taken from the cvs sources
3457 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
3458 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
3459 # libsocket.so which has a bad implementation of gethostbyname (it
3460 # only looks in /etc/hosts), so we only look for -lsocket if we need
3462 echo $ac_n "checking for connect""... $ac_c" 1>&6
3463 echo "configure:3464: checking for connect" >&5
3464 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3465 echo $ac_n "(cached) $ac_c" 1>&6
3467 cat > conftest.$ac_ext <<EOF
3468 #line 3469 "configure"
3469 #include "confdefs.h"
3470 /* System header to define __stub macros and hopefully few prototypes,
3471 which can conflict with char connect(); below. */
3473 /* Override any gcc2 internal prototype to avoid an error. */
3474 /* We use char because int might match the return type of a gcc2
3475 builtin and then its argument prototype would still apply. */
3480 /* The GNU C library defines this for functions which it implements
3481 to always fail with ENOSYS. Some functions are actually named
3482 something starting with __ and the normal name is an alias. */
3483 #if defined (__stub_connect) || defined (__stub___connect)
3491 if { (eval echo configure:3492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3493 eval "ac_cv_func_connect=yes"
3495 echo "configure: failed program was:" >&5
3496 cat conftest.$ac_ext >&5
3498 eval "ac_cv_func_connect=no"
3503 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3504 echo "$ac_t""yes" 1>&6
3507 echo "$ac_t""no" 1>&6
3510 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
3511 echo "configure:3512: checking for printf in -lnsl_s" >&5
3512 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
3513 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3514 echo $ac_n "(cached) $ac_c" 1>&6
3516 ac_save_LIBS="$LIBS"
3517 LIBS="-lnsl_s $LIBS"
3518 cat > conftest.$ac_ext <<EOF
3519 #line 3520 "configure"
3520 #include "confdefs.h"
3521 /* Override any gcc2 internal prototype to avoid an error. */
3522 /* We use char because int might match the return type of a gcc2
3523 builtin and then its argument prototype would still apply. */
3530 if { (eval echo configure:3531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3532 eval "ac_cv_lib_$ac_lib_var=yes"
3534 echo "configure: failed program was:" >&5
3535 cat conftest.$ac_ext >&5
3537 eval "ac_cv_lib_$ac_lib_var=no"
3540 LIBS="$ac_save_LIBS"
3543 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3544 echo "$ac_t""yes" 1>&6
3545 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3546 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3547 cat >> confdefs.h <<EOF
3548 #define $ac_tr_lib 1
3551 LIBS="-lnsl_s $LIBS"
3554 echo "$ac_t""no" 1>&6
3560 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
3561 echo "configure:3562: checking for printf in -lnsl" >&5
3562 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
3563 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3564 echo $ac_n "(cached) $ac_c" 1>&6
3566 ac_save_LIBS="$LIBS"
3568 cat > conftest.$ac_ext <<EOF
3569 #line 3570 "configure"
3570 #include "confdefs.h"
3571 /* Override any gcc2 internal prototype to avoid an error. */
3572 /* We use char because int might match the return type of a gcc2
3573 builtin and then its argument prototype would still apply. */
3580 if { (eval echo configure:3581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3582 eval "ac_cv_lib_$ac_lib_var=yes"
3584 echo "configure: failed program was:" >&5
3585 cat conftest.$ac_ext >&5
3587 eval "ac_cv_lib_$ac_lib_var=no"
3590 LIBS="$ac_save_LIBS"
3593 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3594 echo "$ac_t""yes" 1>&6
3595 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3596 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3597 cat >> confdefs.h <<EOF
3598 #define $ac_tr_lib 1
3604 echo "$ac_t""no" 1>&6
3610 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3611 echo "configure:3612: checking for connect in -lsocket" >&5
3612 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3613 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3614 echo $ac_n "(cached) $ac_c" 1>&6
3616 ac_save_LIBS="$LIBS"
3617 LIBS="-lsocket $LIBS"
3618 cat > conftest.$ac_ext <<EOF
3619 #line 3620 "configure"
3620 #include "confdefs.h"
3621 /* Override any gcc2 internal prototype to avoid an error. */
3622 /* We use char because int might match the return type of a gcc2
3623 builtin and then its argument prototype would still apply. */
3630 if { (eval echo configure:3631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3632 eval "ac_cv_lib_$ac_lib_var=yes"
3634 echo "configure: failed program was:" >&5
3635 cat conftest.$ac_ext >&5
3637 eval "ac_cv_lib_$ac_lib_var=no"
3640 LIBS="$ac_save_LIBS"
3643 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3644 echo "$ac_t""yes" 1>&6
3645 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3646 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3647 cat >> confdefs.h <<EOF
3648 #define $ac_tr_lib 1
3651 LIBS="-lsocket $LIBS"
3654 echo "$ac_t""no" 1>&6
3660 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
3661 echo "configure:3662: checking for connect in -linet" >&5
3662 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
3663 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3664 echo $ac_n "(cached) $ac_c" 1>&6
3666 ac_save_LIBS="$LIBS"
3668 cat > conftest.$ac_ext <<EOF
3669 #line 3670 "configure"
3670 #include "confdefs.h"
3671 /* Override any gcc2 internal prototype to avoid an error. */
3672 /* We use char because int might match the return type of a gcc2
3673 builtin and then its argument prototype would still apply. */
3680 if { (eval echo configure:3681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3682 eval "ac_cv_lib_$ac_lib_var=yes"
3684 echo "configure: failed program was:" >&5
3685 cat conftest.$ac_ext >&5
3687 eval "ac_cv_lib_$ac_lib_var=no"
3690 LIBS="$ac_save_LIBS"
3693 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3694 echo "$ac_t""yes" 1>&6
3695 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3696 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3697 cat >> confdefs.h <<EOF
3698 #define $ac_tr_lib 1
3704 echo "$ac_t""no" 1>&6
3708 if test "$ac_cv_lib_socket_connect" = "yes" ||
3709 test "$ac_cv_lib_inet_connect" = "yes"; then
3710 ac_cv_func_connect=yes
3711 cat >> confdefs.h <<\EOF
3712 #define HAVE_CONNECT 1
3719 echo $ac_n "checking for broken getgroups ... $ac_c"
3720 if test "$cross_compiling" = yes; then
3721 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3723 cat > conftest.$ac_ext <<EOF
3724 #line 3725 "configure"
3725 #include "confdefs.h"
3726 #include "tests/getgroups.c"
3728 if { (eval echo configure:3729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3730 echo yes;cat >> confdefs.h <<\EOF
3731 #define HAVE_BROKEN_GETGROUPS 1
3735 echo "configure: failed program was:" >&5
3736 cat conftest.$ac_ext >&5
3745 echo $ac_n "checking for broken inet_ntoa ... $ac_c"
3746 if test "$cross_compiling" = yes; then
3747 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3749 cat > conftest.$ac_ext <<EOF
3750 #line 3751 "configure"
3751 #include "confdefs.h"
3754 #include <sys/types.h>
3755 #include <netinet/in.h>
3756 #include <arpa/inet.h>
3757 main() { struct in_addr ip; ip.s_addr = 0x12345678;
3758 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
3759 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
3762 if { (eval echo configure:3763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3764 echo yes;cat >> confdefs.h <<\EOF
3765 #define REPLACE_INET_NTOA 1
3769 echo "configure: failed program was:" >&5
3770 cat conftest.$ac_ext >&5
3778 echo $ac_n "checking for root ... $ac_c"
3779 if test "$cross_compiling" = yes; then
3780 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3782 cat > conftest.$ac_ext <<EOF
3783 #line 3784 "configure"
3784 #include "confdefs.h"
3785 main() { exit(getuid() != 0); }
3787 if { (eval echo configure:3788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3789 echo yes;cat >> confdefs.h <<\EOF
3794 echo "configure: failed program was:" >&5
3795 cat conftest.$ac_ext >&5
3797 echo WARNING: running as non-root will disable some tests;
3804 echo $ac_n "checking for netmask ifconf ... $ac_c"
3805 if test "$cross_compiling" = yes; then
3806 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3808 cat > conftest.$ac_ext <<EOF
3809 #line 3810 "configure"
3810 #include "confdefs.h"
3812 #define HAVE_NETMASK_IFCONF 1
3814 #include "netmask.c"
3816 if { (eval echo configure:3817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3818 echo yes;netmask=yes;cat >> confdefs.h <<\EOF
3819 #define HAVE_NETMASK_IFCONF 1
3823 echo "configure: failed program was:" >&5
3824 cat conftest.$ac_ext >&5
3832 if test $netmask = no; then
3833 echo $ac_n "checking for netmask ifreq ... $ac_c"
3834 if test "$cross_compiling" = yes; then
3835 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3837 cat > conftest.$ac_ext <<EOF
3838 #line 3839 "configure"
3839 #include "confdefs.h"
3841 #define HAVE_NETMASK_IFREQ 1
3843 #include "netmask.c"
3845 if { (eval echo configure:3846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3847 echo yes;netmask=yes;cat >> confdefs.h <<\EOF
3848 #define HAVE_NETMASK_IFREQ 1
3852 echo "configure: failed program was:" >&5
3853 cat conftest.$ac_ext >&5
3862 if test $netmask = no; then
3863 echo $ac_n "checking for netmask AIX ... $ac_c"
3864 if test "$cross_compiling" = yes; then
3865 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3867 cat > conftest.$ac_ext <<EOF
3868 #line 3869 "configure"
3869 #include "confdefs.h"
3871 #define HAVE_NETMASK_AIX 1
3873 #include "netmask.c"
3875 if { (eval echo configure:3876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3877 echo yes;netmask=yes;cat >> confdefs.h <<\EOF
3878 #define HAVE_NETMASK_AIX 1
3882 echo "configure: failed program was:" >&5
3883 cat conftest.$ac_ext >&5
3892 echo $ac_n "checking for trapdoor seteuid ... $ac_c"
3893 if test "$cross_compiling" = yes; then
3894 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3896 cat > conftest.$ac_ext <<EOF
3897 #line 3898 "configure"
3898 #include "confdefs.h"
3899 #include "tests/trapdoor.c"
3901 if { (eval echo configure:3902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3905 echo "configure: failed program was:" >&5
3906 cat conftest.$ac_ext >&5
3908 echo yes;cat >> confdefs.h <<\EOF
3909 #define HAVE_TRAPDOOR_UID 1
3917 echo $ac_n "checking for shared mmap ... $ac_c"
3918 if test "$cross_compiling" = yes; then
3919 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3921 cat > conftest.$ac_ext <<EOF
3922 #line 3923 "configure"
3923 #include "confdefs.h"
3924 #include "tests/shared_mmap.c"
3926 if { (eval echo configure:3927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3928 echo yes;cat >> confdefs.h <<\EOF
3929 #define HAVE_SHARED_MMAP 1
3933 echo "configure: failed program was:" >&5
3934 cat conftest.$ac_ext >&5
3942 echo $ac_n "checking for fcntl locking ... $ac_c"
3943 if test "$cross_compiling" = yes; then
3944 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3946 cat > conftest.$ac_ext <<EOF
3947 #line 3948 "configure"
3948 #include "confdefs.h"
3949 #include "tests/fcntl_lock.c"
3951 if { (eval echo configure:3952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3953 echo yes;cat >> confdefs.h <<\EOF
3954 #define HAVE_FCNTL_LOCK 1
3958 echo "configure: failed program was:" >&5
3959 cat conftest.$ac_ext >&5
3967 echo $ac_n "checking for sysv ipc ... $ac_c"
3968 if test "$cross_compiling" = yes; then
3969 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3971 cat > conftest.$ac_ext <<EOF
3972 #line 3973 "configure"
3973 #include "confdefs.h"
3974 #include "tests/sysv_ipc.c"
3976 if { (eval echo configure:3977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3978 echo yes;cat >> confdefs.h <<\EOF
3979 #define HAVE_SYSV_IPC 1
3983 echo "configure: failed program was:" >&5
3984 cat conftest.$ac_ext >&5
3992 #################################################
3993 # check for the AFS filesystem
3994 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
3995 echo "configure:3996: checking whether to use AFS" >&5
3996 # Check whether --with-afs or --without-afs was given.
3997 if test "${with_afs+set}" = set; then
4001 echo "$ac_t""yes" 1>&6
4002 cat >> confdefs.h <<\EOF
4008 echo "$ac_t""no" 1>&6
4012 echo "$ac_t""no" 1>&6
4018 #################################################
4019 # check for the DFS auth system
4020 echo $ac_n "checking whether to use DFS auth""... $ac_c" 1>&6
4021 echo "configure:4022: checking whether to use DFS auth" >&5
4022 # Check whether --with-dfs or --without-dfs was given.
4023 if test "${with_dfs+set}" = set; then
4027 echo "$ac_t""yes" 1>&6
4028 cat >> confdefs.h <<\EOF
4034 echo "$ac_t""no" 1>&6
4038 echo "$ac_t""no" 1>&6
4043 #################################################
4044 # check for automount support
4045 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
4046 echo "configure:4047: checking whether to use AUTOMOUNT" >&5
4047 # Check whether --with-automount or --without-automount was given.
4048 if test "${with_automount+set}" = set; then
4049 withval="$with_automount"
4052 echo "$ac_t""yes" 1>&6
4053 cat >> confdefs.h <<\EOF
4054 #define WITH_AUTOMOUNT 1
4059 echo "$ac_t""no" 1>&6
4063 echo "$ac_t""no" 1>&6
4068 #################################################
4069 # check for a LDAP password database
4070 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
4071 echo "configure:4072: checking whether to use LDAP password database" >&5
4072 # Check whether --with-ldap or --without-ldap was given.
4073 if test "${with_ldap+set}" = set; then
4074 withval="$with_ldap"
4077 echo "$ac_t""yes" 1>&6
4078 cat >> confdefs.h <<\EOF
4084 echo "$ac_t""no" 1>&6
4088 echo "$ac_t""no" 1>&6
4093 #################################################
4094 # check for a NISPLUS password database
4095 echo $ac_n "checking whether to use NISPLUS password database""... $ac_c" 1>&6
4096 echo "configure:4097: checking whether to use NISPLUS password database" >&5
4097 # Check whether --with-nisplus or --without-nisplus was given.
4098 if test "${with_nisplus+set}" = set; then
4099 withval="$with_nisplus"