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-nisplus-home Include NISPLUS_HOME support
31 --without-nisplus-home Don't include NISPLUS_HOME support (default)"
33 --with-ssl Include SSL support
34 --without-ssl Don't include SSL support (default)"
36 --with-mmap Include experimental MMAP support
37 --without-mmap Don't include MMAP support (default)"
39 --with-syslog Include experimental SYSLOG support
40 --without-syslog Don't include SYSLOG support (default)"
42 # Initialize some variables set by options.
43 # The variables have the same names as the options, with
44 # dashes changed to underlines.
46 cache_file=./config.cache
55 program_transform_name=s,x,x,
63 bindir='${exec_prefix}/bin'
64 sbindir='${exec_prefix}/sbin'
65 libexecdir='${exec_prefix}/libexec'
66 datadir='${prefix}/share'
67 sysconfdir='${prefix}/etc'
68 sharedstatedir='${prefix}/com'
69 localstatedir='${prefix}/var'
70 libdir='${exec_prefix}/lib'
71 includedir='${prefix}/include'
72 oldincludedir='/usr/include'
73 infodir='${prefix}/info'
74 mandir='${prefix}/man'
76 # Initialize some other variables.
79 # Maximum number of lines to put in a shell here document.
86 # If the previous option needs an argument, assign it.
87 if test -n "$ac_prev"; then
88 eval "$ac_prev=\$ac_option"
94 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
98 # Accept the important Cygnus configure options, so we can diagnose typos.
102 -bindir | --bindir | --bindi | --bind | --bin | --bi)
104 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
105 bindir="$ac_optarg" ;;
107 -build | --build | --buil | --bui | --bu)
109 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
110 build="$ac_optarg" ;;
112 -cache-file | --cache-file | --cache-fil | --cache-fi \
113 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
114 ac_prev=cache_file ;;
115 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
116 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
117 cache_file="$ac_optarg" ;;
119 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
121 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
123 datadir="$ac_optarg" ;;
125 -disable-* | --disable-*)
126 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
127 # Reject names that are not valid shell variable names.
128 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
129 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
131 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
132 eval "enable_${ac_feature}=no" ;;
134 -enable-* | --enable-*)
135 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
136 # Reject names that are not valid shell variable names.
137 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
138 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
140 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
145 eval "enable_${ac_feature}='$ac_optarg'" ;;
147 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
148 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
149 | --exec | --exe | --ex)
150 ac_prev=exec_prefix ;;
151 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
152 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
153 | --exec=* | --exe=* | --ex=*)
154 exec_prefix="$ac_optarg" ;;
156 -gas | --gas | --ga | --g)
157 # Obsolete; use --with-gas.
160 -help | --help | --hel | --he)
161 # Omit some internal or obsolete options to make the list less imposing.
162 # This message is too long to be a string in the A/UX 3.1 sh.
164 Usage: configure [options] [host]
165 Options: [defaults in brackets after descriptions]
167 --cache-file=FILE cache test results in FILE
168 --help print this message
169 --no-create do not create output files
170 --quiet, --silent do not print \`checking...' messages
171 --version print the version of autoconf that created configure
172 Directory and file names:
173 --prefix=PREFIX install architecture-independent files in PREFIX
175 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
177 --bindir=DIR user executables in DIR [EPREFIX/bin]
178 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
179 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
180 --datadir=DIR read-only architecture-independent data in DIR
182 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
183 --sharedstatedir=DIR modifiable architecture-independent data in DIR
185 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
186 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
187 --includedir=DIR C header files in DIR [PREFIX/include]
188 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
189 --infodir=DIR info documentation in DIR [PREFIX/info]
190 --mandir=DIR man documentation in DIR [PREFIX/man]
191 --srcdir=DIR find the sources in DIR [configure dir or ..]
192 --program-prefix=PREFIX prepend PREFIX to installed program names
193 --program-suffix=SUFFIX append SUFFIX to installed program names
194 --program-transform-name=PROGRAM
195 run sed PROGRAM on installed program names
199 --build=BUILD configure for building on BUILD [BUILD=HOST]
200 --host=HOST configure for HOST [guessed]
201 --target=TARGET configure for TARGET [TARGET=HOST]
202 Features and packages:
203 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
204 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
205 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
206 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
207 --x-includes=DIR X include files are in DIR
208 --x-libraries=DIR X library files are in DIR
210 if test -n "$ac_help"; then
211 echo "--enable and --with options recognized:$ac_help"
215 -host | --host | --hos | --ho)
217 -host=* | --host=* | --hos=* | --ho=*)
220 -includedir | --includedir | --includedi | --included | --include \
221 | --includ | --inclu | --incl | --inc)
222 ac_prev=includedir ;;
223 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
224 | --includ=* | --inclu=* | --incl=* | --inc=*)
225 includedir="$ac_optarg" ;;
227 -infodir | --infodir | --infodi | --infod | --info | --inf)
229 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
230 infodir="$ac_optarg" ;;
232 -libdir | --libdir | --libdi | --libd)
234 -libdir=* | --libdir=* | --libdi=* | --libd=*)
235 libdir="$ac_optarg" ;;
237 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
238 | --libexe | --libex | --libe)
239 ac_prev=libexecdir ;;
240 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
241 | --libexe=* | --libex=* | --libe=*)
242 libexecdir="$ac_optarg" ;;
244 -localstatedir | --localstatedir | --localstatedi | --localstated \
245 | --localstate | --localstat | --localsta | --localst \
246 | --locals | --local | --loca | --loc | --lo)
247 ac_prev=localstatedir ;;
248 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
249 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
250 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
251 localstatedir="$ac_optarg" ;;
253 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
255 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
256 mandir="$ac_optarg" ;;
259 # Obsolete; use --without-fp.
262 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
266 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
267 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
270 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
271 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
272 | --oldin | --oldi | --old | --ol | --o)
273 ac_prev=oldincludedir ;;
274 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
275 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
276 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
277 oldincludedir="$ac_optarg" ;;
279 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
281 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
282 prefix="$ac_optarg" ;;
284 -program-prefix | --program-prefix | --program-prefi | --program-pref \
285 | --program-pre | --program-pr | --program-p)
286 ac_prev=program_prefix ;;
287 -program-prefix=* | --program-prefix=* | --program-prefi=* \
288 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
289 program_prefix="$ac_optarg" ;;
291 -program-suffix | --program-suffix | --program-suffi | --program-suff \
292 | --program-suf | --program-su | --program-s)
293 ac_prev=program_suffix ;;
294 -program-suffix=* | --program-suffix=* | --program-suffi=* \
295 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
296 program_suffix="$ac_optarg" ;;
298 -program-transform-name | --program-transform-name \
299 | --program-transform-nam | --program-transform-na \
300 | --program-transform-n | --program-transform- \
301 | --program-transform | --program-transfor \
302 | --program-transfo | --program-transf \
303 | --program-trans | --program-tran \
304 | --progr-tra | --program-tr | --program-t)
305 ac_prev=program_transform_name ;;
306 -program-transform-name=* | --program-transform-name=* \
307 | --program-transform-nam=* | --program-transform-na=* \
308 | --program-transform-n=* | --program-transform-=* \
309 | --program-transform=* | --program-transfor=* \
310 | --program-transfo=* | --program-transf=* \
311 | --program-trans=* | --program-tran=* \
312 | --progr-tra=* | --program-tr=* | --program-t=*)
313 program_transform_name="$ac_optarg" ;;
315 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
316 | -silent | --silent | --silen | --sile | --sil)
319 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
321 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
323 sbindir="$ac_optarg" ;;
325 -sharedstatedir | --sharedstatedir | --sharedstatedi \
326 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
327 | --sharedst | --shareds | --shared | --share | --shar \
329 ac_prev=sharedstatedir ;;
330 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
331 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
332 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
334 sharedstatedir="$ac_optarg" ;;
336 -site | --site | --sit)
338 -site=* | --site=* | --sit=*)
341 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
343 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
344 srcdir="$ac_optarg" ;;
346 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
347 | --syscon | --sysco | --sysc | --sys | --sy)
348 ac_prev=sysconfdir ;;
349 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
350 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
351 sysconfdir="$ac_optarg" ;;
353 -target | --target | --targe | --targ | --tar | --ta | --t)
355 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
356 target="$ac_optarg" ;;
358 -v | -verbose | --verbose | --verbos | --verbo | --verb)
361 -version | --version | --versio | --versi | --vers)
362 echo "configure generated by autoconf version 2.12"
366 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
367 # Reject names that are not valid shell variable names.
368 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
369 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
371 ac_package=`echo $ac_package| sed 's/-/_/g'`
376 eval "with_${ac_package}='$ac_optarg'" ;;
378 -without-* | --without-*)
379 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
380 # Reject names that are not valid shell variable names.
381 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
382 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
384 ac_package=`echo $ac_package| sed 's/-/_/g'`
385 eval "with_${ac_package}=no" ;;
388 # Obsolete; use --with-x.
391 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
392 | --x-incl | --x-inc | --x-in | --x-i)
393 ac_prev=x_includes ;;
394 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
395 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
396 x_includes="$ac_optarg" ;;
398 -x-libraries | --x-libraries | --x-librarie | --x-librari \
399 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
400 ac_prev=x_libraries ;;
401 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
402 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
403 x_libraries="$ac_optarg" ;;
405 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
409 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
410 echo "configure: warning: $ac_option: invalid host type" 1>&2
412 if test "x$nonopt" != xNONE; then
413 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
421 if test -n "$ac_prev"; then
422 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
425 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
427 # File descriptor usage:
430 # 2 errors and warnings
431 # 3 some systems may open it to /dev/tty
432 # 4 used on the Kubota Titan
433 # 6 checking for... messages and results
434 # 5 compiler messages saved in config.log
435 if test "$silent" = yes; then
443 This file contains any messages produced by compilers while
444 running configure, to aid debugging if configure makes a mistake.
447 # Strip out --no-create and --no-recursion so they do not pile up.
448 # Also quote any args containing shell metacharacters.
453 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
454 | --no-cr | --no-c) ;;
455 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
456 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
457 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
458 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
459 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
464 # Only set these to C if already set. These must not be set unconditionally
465 # because not all systems understand e.g. LANG=C (notably SCO).
466 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
467 # Non-C LC_CTYPE values break the ctype check.
468 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
469 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
470 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
471 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
473 # confdefs.h avoids OS command line length limits that DEFS can exceed.
474 rm -rf conftest* confdefs.h
475 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
478 # A filename unique to this package, relative to the directory that
479 # configure is in, which we can look for to find out if srcdir is correct.
480 ac_unique_file=byteorder.h
482 # Find the source files, if location was not specified.
483 if test -z "$srcdir"; then
484 ac_srcdir_defaulted=yes
485 # Try the directory containing this script, then its parent.
487 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
488 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
490 if test ! -r $srcdir/$ac_unique_file; then
494 ac_srcdir_defaulted=no
496 if test ! -r $srcdir/$ac_unique_file; then
497 if test "$ac_srcdir_defaulted" = yes; then
498 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
500 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
503 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
505 # Prefer explicitly selected file to automatically selected ones.
506 if test -z "$CONFIG_SITE"; then
507 if test "x$prefix" != xNONE; then
508 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
510 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
513 for ac_site_file in $CONFIG_SITE; do
514 if test -r "$ac_site_file"; then
515 echo "loading site script $ac_site_file"
520 if test -r "$cache_file"; then
521 echo "loading cache $cache_file"
524 echo "creating cache $cache_file"
529 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
530 ac_cpp='$CPP $CPPFLAGS'
531 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
532 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
533 cross_compiling=$ac_cv_prog_cc_cross
535 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
536 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
537 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
544 ac_n= ac_c='\c' ac_t=
550 # Extract the first word of "gcc", so it can be a program name with args.
551 set dummy gcc; ac_word=$2
552 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
553 echo "configure:554: checking for $ac_word" >&5
554 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
555 echo $ac_n "(cached) $ac_c" 1>&6
557 if test -n "$CC"; then
558 ac_cv_prog_CC="$CC" # Let the user override the test.
560 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
561 for ac_dir in $PATH; do
562 test -z "$ac_dir" && ac_dir=.
563 if test -f $ac_dir/$ac_word; then
572 if test -n "$CC"; then
573 echo "$ac_t""$CC" 1>&6
575 echo "$ac_t""no" 1>&6
578 if test -z "$CC"; then
579 # Extract the first word of "cc", so it can be a program name with args.
580 set dummy cc; ac_word=$2
581 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
582 echo "configure:583: checking for $ac_word" >&5
583 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
584 echo $ac_n "(cached) $ac_c" 1>&6
586 if test -n "$CC"; then
587 ac_cv_prog_CC="$CC" # Let the user override the test.
589 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
591 for ac_dir in $PATH; do
592 test -z "$ac_dir" && ac_dir=.
593 if test -f $ac_dir/$ac_word; then
594 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
603 if test $ac_prog_rejected = yes; then
604 # We found a bogon in the path, so make sure we never use it.
605 set dummy $ac_cv_prog_CC
607 if test $# -gt 0; then
608 # We chose a different compiler from the bogus one.
609 # However, it has the same basename, so the bogon will be chosen
610 # first if we set CC to just the basename; use the full file name.
612 set dummy "$ac_dir/$ac_word" "$@"
620 if test -n "$CC"; then
621 echo "$ac_t""$CC" 1>&6
623 echo "$ac_t""no" 1>&6
626 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
629 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
630 echo "configure:631: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
633 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
634 ac_cpp='$CPP $CPPFLAGS'
635 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
636 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
637 cross_compiling=$ac_cv_prog_cc_cross
639 cat > conftest.$ac_ext <<EOF
640 #line 641 "configure"
641 #include "confdefs.h"
644 if { (eval echo configure:645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
645 ac_cv_prog_cc_works=yes
646 # If we can't run a trivial program, we are probably using a cross compiler.
647 if (./conftest; exit) 2>/dev/null; then
648 ac_cv_prog_cc_cross=no
650 ac_cv_prog_cc_cross=yes
653 echo "configure: failed program was:" >&5
654 cat conftest.$ac_ext >&5
655 ac_cv_prog_cc_works=no
659 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
660 if test $ac_cv_prog_cc_works = no; then
661 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
663 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
664 echo "configure:665: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
665 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
666 cross_compiling=$ac_cv_prog_cc_cross
668 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
669 echo "configure:670: checking whether we are using GNU C" >&5
670 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
671 echo $ac_n "(cached) $ac_c" 1>&6
673 cat > conftest.c <<EOF
678 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
685 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
687 if test $ac_cv_prog_gcc = yes; then
689 ac_test_CFLAGS="${CFLAGS+set}"
690 ac_save_CFLAGS="$CFLAGS"
692 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
693 echo "configure:694: checking whether ${CC-cc} accepts -g" >&5
694 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
695 echo $ac_n "(cached) $ac_c" 1>&6
697 echo 'void f(){}' > conftest.c
698 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
707 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
708 if test "$ac_test_CFLAGS" = set; then
709 CFLAGS="$ac_save_CFLAGS"
710 elif test $ac_cv_prog_cc_g = yes; then
717 test "${CFLAGS+set}" = set || CFLAGS="-g"
721 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
722 if test -f $ac_dir/install-sh; then
724 ac_install_sh="$ac_aux_dir/install-sh -c"
726 elif test -f $ac_dir/install.sh; then
728 ac_install_sh="$ac_aux_dir/install.sh -c"
732 if test -z "$ac_aux_dir"; then
733 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
735 ac_config_guess=$ac_aux_dir/config.guess
736 ac_config_sub=$ac_aux_dir/config.sub
737 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
739 # Find a good install program. We prefer a C program (faster),
740 # so one script is as good as another. But avoid the broken or
741 # incompatible versions:
742 # SysV /etc/install, /usr/sbin/install
743 # SunOS /usr/etc/install
746 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
747 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
748 # ./install, which can be erroneously created by make from ./install.sh.
749 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
750 echo "configure:751: checking for a BSD compatible install" >&5
751 if test -z "$INSTALL"; then
752 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
753 echo $ac_n "(cached) $ac_c" 1>&6
755 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
756 for ac_dir in $PATH; do
757 # Account for people who put trailing slashes in PATH elements.
759 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
761 # OSF1 and SCO ODT 3.0 have their own names for install.
762 for ac_prog in ginstall installbsd scoinst install; do
763 if test -f $ac_dir/$ac_prog; then
764 if test $ac_prog = install &&
765 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
766 # AIX install. It has an incompatible calling convention.
767 # OSF/1 installbsd also uses dspmsg, but is usable.
770 ac_cv_path_install="$ac_dir/$ac_prog -c"
781 if test "${ac_cv_path_install+set}" = set; then
782 INSTALL="$ac_cv_path_install"
784 # As a last resort, use the slow shell script. We don't cache a
785 # path for INSTALL within a source directory, because that will
786 # break other packages using the cache if that directory is
787 # removed, or if the path is relative.
788 INSTALL="$ac_install_sh"
791 echo "$ac_t""$INSTALL" 1>&6
793 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
794 # It thinks the first close brace ends the variable substitution.
795 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
797 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
800 for ac_prog in mawk gawk nawk awk
802 # Extract the first word of "$ac_prog", so it can be a program name with args.
803 set dummy $ac_prog; ac_word=$2
804 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
805 echo "configure:806: checking for $ac_word" >&5
806 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
807 echo $ac_n "(cached) $ac_c" 1>&6
809 if test -n "$AWK"; then
810 ac_cv_prog_AWK="$AWK" # Let the user override the test.
812 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
813 for ac_dir in $PATH; do
814 test -z "$ac_dir" && ac_dir=.
815 if test -f $ac_dir/$ac_word; then
816 ac_cv_prog_AWK="$ac_prog"
823 AWK="$ac_cv_prog_AWK"
824 if test -n "$AWK"; then
825 echo "$ac_t""$AWK" 1>&6
827 echo "$ac_t""no" 1>&6
830 test -n "$AWK" && break
835 # Do some error checking and defaulting for the host and target type.
837 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
840 # 1. You are not allowed to specify --host, --target, and nonopt at the
842 # 2. Host defaults to nonopt.
843 # 3. If nonopt is not specified, then host defaults to the current host,
844 # as determined by config.guess.
845 # 4. Target and build default to nonopt.
846 # 5. If nonopt is not specified, then target and build default to host.
848 # The aliases save the names the user supplied, while $host etc.
849 # will get canonicalized.
850 case $host---$target---$nonopt in
851 NONE---*---* | *---NONE---* | *---*---NONE) ;;
852 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
856 # Make sure we can run config.sub.
857 if $ac_config_sub sun4 >/dev/null 2>&1; then :
858 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
861 echo $ac_n "checking host system type""... $ac_c" 1>&6
862 echo "configure:863: checking host system type" >&5
865 case "$host_alias" in
869 if host_alias=`$ac_config_guess`; then :
870 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
872 *) host_alias=$nonopt ;;
876 host=`$ac_config_sub $host_alias`
877 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
878 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
879 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
880 echo "$ac_t""$host" 1>&6
882 echo $ac_n "checking target system type""... $ac_c" 1>&6
883 echo "configure:884: checking target system type" >&5
886 case "$target_alias" in
889 NONE) target_alias=$host_alias ;;
890 *) target_alias=$nonopt ;;
894 target=`$ac_config_sub $target_alias`
895 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
896 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
897 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
898 echo "$ac_t""$target" 1>&6
900 echo $ac_n "checking build system type""... $ac_c" 1>&6
901 echo "configure:902: checking build system type" >&5
904 case "$build_alias" in
907 NONE) build_alias=$host_alias ;;
908 *) build_alias=$nonopt ;;
912 build=`$ac_config_sub $build_alias`
913 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
914 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
915 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
916 echo "$ac_t""$build" 1>&6
918 test "$host_alias" != "$target_alias" &&
919 test "$program_prefix$program_suffix$program_transform_name" = \
921 program_prefix=${target_alias}-
924 *linux*) cat >> confdefs.h <<\EOF
928 *solaris*) cat >> confdefs.h <<\EOF
932 *sunos*) cat >> confdefs.h <<\EOF
936 *irix*) cat >> confdefs.h <<\EOF
940 *aix*) cat >> confdefs.h <<\EOF
944 *hpux*) cat >> confdefs.h <<\EOF
948 *qnx*) cat >> confdefs.h <<\EOF
952 *osf1*) cat >> confdefs.h <<\EOF
956 *sco*) cat >> confdefs.h <<\EOF
960 *next2*) cat >> confdefs.h <<\EOF
966 echo $ac_n "checking for inline""... $ac_c" 1>&6
967 echo "configure:968: checking for inline" >&5
968 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
969 echo $ac_n "(cached) $ac_c" 1>&6
972 for ac_kw in inline __inline__ __inline; do
973 cat > conftest.$ac_ext <<EOF
974 #line 975 "configure"
975 #include "confdefs.h"
981 if { (eval echo configure:982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
983 ac_cv_c_inline=$ac_kw; break
985 echo "configure: failed program was:" >&5
986 cat conftest.$ac_ext >&5
993 echo "$ac_t""$ac_cv_c_inline" 1>&6
994 case "$ac_cv_c_inline" in
996 no) cat >> confdefs.h <<\EOF
1000 *) cat >> confdefs.h <<EOF
1001 #define inline $ac_cv_c_inline
1006 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1007 echo "configure:1008: checking how to run the C preprocessor" >&5
1008 # On Suns, sometimes $CPP names a directory.
1009 if test -n "$CPP" && test -d "$CPP"; then
1012 if test -z "$CPP"; then
1013 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1014 echo $ac_n "(cached) $ac_c" 1>&6
1016 # This must be in double quotes, not single quotes, because CPP may get
1017 # substituted into the Makefile and "${CC-cc}" will confuse make.
1019 # On the NeXT, cc -E runs the code through the compiler's parser,
1020 # not just through cpp.
1021 cat > conftest.$ac_ext <<EOF
1022 #line 1023 "configure"
1023 #include "confdefs.h"
1027 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1028 { (eval echo configure:1029: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1029 ac_err=`grep -v '^ *+' conftest.out`
1030 if test -z "$ac_err"; then
1034 echo "configure: failed program was:" >&5
1035 cat conftest.$ac_ext >&5
1037 CPP="${CC-cc} -E -traditional-cpp"
1038 cat > conftest.$ac_ext <<EOF
1039 #line 1040 "configure"
1040 #include "confdefs.h"
1044 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1045 { (eval echo configure:1046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1046 ac_err=`grep -v '^ *+' conftest.out`
1047 if test -z "$ac_err"; then
1051 echo "configure: failed program was:" >&5
1052 cat conftest.$ac_ext >&5
1059 ac_cv_prog_CPP="$CPP"
1061 CPP="$ac_cv_prog_CPP"
1063 ac_cv_prog_CPP="$CPP"
1065 echo "$ac_t""$CPP" 1>&6
1067 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1068 echo "configure:1069: checking for ANSI C header files" >&5
1069 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1070 echo $ac_n "(cached) $ac_c" 1>&6
1072 cat > conftest.$ac_ext <<EOF
1073 #line 1074 "configure"
1074 #include "confdefs.h"
1080 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1081 { (eval echo configure:1082: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1082 ac_err=`grep -v '^ *+' conftest.out`
1083 if test -z "$ac_err"; then
1085 ac_cv_header_stdc=yes
1088 echo "configure: failed program was:" >&5
1089 cat conftest.$ac_ext >&5
1091 ac_cv_header_stdc=no
1095 if test $ac_cv_header_stdc = yes; then
1096 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1097 cat > conftest.$ac_ext <<EOF
1098 #line 1099 "configure"
1099 #include "confdefs.h"
1102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1103 egrep "memchr" >/dev/null 2>&1; then
1107 ac_cv_header_stdc=no
1113 if test $ac_cv_header_stdc = yes; then
1114 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1115 cat > conftest.$ac_ext <<EOF
1116 #line 1117 "configure"
1117 #include "confdefs.h"
1120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1121 egrep "free" >/dev/null 2>&1; then
1125 ac_cv_header_stdc=no
1131 if test $ac_cv_header_stdc = yes; then
1132 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1133 if test "$cross_compiling" = yes; then
1136 cat > conftest.$ac_ext <<EOF
1137 #line 1138 "configure"
1138 #include "confdefs.h"
1140 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1141 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1142 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1143 int main () { int i; for (i = 0; i < 256; i++)
1144 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1148 if { (eval echo configure:1149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1152 echo "configure: failed program was:" >&5
1153 cat conftest.$ac_ext >&5
1155 ac_cv_header_stdc=no
1163 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1164 if test $ac_cv_header_stdc = yes; then
1165 cat >> confdefs.h <<\EOF
1166 #define STDC_HEADERS 1
1172 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1174 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1175 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1176 echo "configure:1177: checking for $ac_hdr that defines DIR" >&5
1177 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1178 echo $ac_n "(cached) $ac_c" 1>&6
1180 cat > conftest.$ac_ext <<EOF
1181 #line 1182 "configure"
1182 #include "confdefs.h"
1183 #include <sys/types.h>
1189 if { (eval echo configure:1190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1191 eval "ac_cv_header_dirent_$ac_safe=yes"
1193 echo "configure: failed program was:" >&5
1194 cat conftest.$ac_ext >&5
1196 eval "ac_cv_header_dirent_$ac_safe=no"
1200 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1201 echo "$ac_t""yes" 1>&6
1202 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1203 cat >> confdefs.h <<EOF
1204 #define $ac_tr_hdr 1
1206 ac_header_dirent=$ac_hdr; break
1208 echo "$ac_t""no" 1>&6
1211 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1212 if test $ac_header_dirent = dirent.h; then
1213 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1214 echo "configure:1215: checking for opendir in -ldir" >&5
1215 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1216 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1217 echo $ac_n "(cached) $ac_c" 1>&6
1219 ac_save_LIBS="$LIBS"
1221 cat > conftest.$ac_ext <<EOF
1222 #line 1223 "configure"
1223 #include "confdefs.h"
1224 /* Override any gcc2 internal prototype to avoid an error. */
1225 /* We use char because int might match the return type of a gcc2
1226 builtin and then its argument prototype would still apply. */
1233 if { (eval echo configure:1234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1235 eval "ac_cv_lib_$ac_lib_var=yes"
1237 echo "configure: failed program was:" >&5
1238 cat conftest.$ac_ext >&5
1240 eval "ac_cv_lib_$ac_lib_var=no"
1243 LIBS="$ac_save_LIBS"
1246 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1247 echo "$ac_t""yes" 1>&6
1250 echo "$ac_t""no" 1>&6
1254 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1255 echo "configure:1256: checking for opendir in -lx" >&5
1256 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1257 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1258 echo $ac_n "(cached) $ac_c" 1>&6
1260 ac_save_LIBS="$LIBS"
1262 cat > conftest.$ac_ext <<EOF
1263 #line 1264 "configure"
1264 #include "confdefs.h"
1265 /* Override any gcc2 internal prototype to avoid an error. */
1266 /* We use char because int might match the return type of a gcc2
1267 builtin and then its argument prototype would still apply. */
1274 if { (eval echo configure:1275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1276 eval "ac_cv_lib_$ac_lib_var=yes"
1278 echo "configure: failed program was:" >&5
1279 cat conftest.$ac_ext >&5
1281 eval "ac_cv_lib_$ac_lib_var=no"
1284 LIBS="$ac_save_LIBS"
1287 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1288 echo "$ac_t""yes" 1>&6
1291 echo "$ac_t""no" 1>&6
1296 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1297 echo "configure:1298: checking whether time.h and sys/time.h may both be included" >&5
1298 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1299 echo $ac_n "(cached) $ac_c" 1>&6
1301 cat > conftest.$ac_ext <<EOF
1302 #line 1303 "configure"
1303 #include "confdefs.h"
1304 #include <sys/types.h>
1305 #include <sys/time.h>
1311 if { (eval echo configure:1312: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1313 ac_cv_header_time=yes
1315 echo "configure: failed program was:" >&5
1316 cat conftest.$ac_ext >&5
1318 ac_cv_header_time=no
1323 echo "$ac_t""$ac_cv_header_time" 1>&6
1324 if test $ac_cv_header_time = yes; then
1325 cat >> confdefs.h <<\EOF
1326 #define TIME_WITH_SYS_TIME 1
1331 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1332 echo "configure:1333: checking for sys/wait.h that is POSIX.1 compatible" >&5
1333 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1334 echo $ac_n "(cached) $ac_c" 1>&6
1336 cat > conftest.$ac_ext <<EOF
1337 #line 1338 "configure"
1338 #include "confdefs.h"
1339 #include <sys/types.h>
1340 #include <sys/wait.h>
1342 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1345 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1350 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1353 if { (eval echo configure:1354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1355 ac_cv_header_sys_wait_h=yes
1357 echo "configure: failed program was:" >&5
1358 cat conftest.$ac_ext >&5
1360 ac_cv_header_sys_wait_h=no
1365 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1366 if test $ac_cv_header_sys_wait_h = yes; then
1367 cat >> confdefs.h <<\EOF
1368 #define HAVE_SYS_WAIT_H 1
1373 for ac_hdr in sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
1375 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1376 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1377 echo "configure:1378: checking for $ac_hdr" >&5
1378 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1379 echo $ac_n "(cached) $ac_c" 1>&6
1381 cat > conftest.$ac_ext <<EOF
1382 #line 1383 "configure"
1383 #include "confdefs.h"
1386 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1387 { (eval echo configure:1388: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1388 ac_err=`grep -v '^ *+' conftest.out`
1389 if test -z "$ac_err"; then
1391 eval "ac_cv_header_$ac_safe=yes"
1394 echo "configure: failed program was:" >&5
1395 cat conftest.$ac_ext >&5
1397 eval "ac_cv_header_$ac_safe=no"
1401 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1402 echo "$ac_t""yes" 1>&6
1403 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1404 cat >> confdefs.h <<EOF
1405 #define $ac_tr_hdr 1
1409 echo "$ac_t""no" 1>&6
1413 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h net/if.h
1415 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1416 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1417 echo "configure:1418: checking for $ac_hdr" >&5
1418 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1419 echo $ac_n "(cached) $ac_c" 1>&6
1421 cat > conftest.$ac_ext <<EOF
1422 #line 1423 "configure"
1423 #include "confdefs.h"
1426 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1427 { (eval echo configure:1428: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1428 ac_err=`grep -v '^ *+' conftest.out`
1429 if test -z "$ac_err"; then
1431 eval "ac_cv_header_$ac_safe=yes"
1434 echo "configure: failed program was:" >&5
1435 cat conftest.$ac_ext >&5
1437 eval "ac_cv_header_$ac_safe=no"
1441 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1442 echo "$ac_t""yes" 1>&6
1443 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1444 cat >> confdefs.h <<EOF
1445 #define $ac_tr_hdr 1
1449 echo "$ac_t""no" 1>&6
1453 for ac_hdr in compat.h sys/param.h ctype.h sys/wait.h sys/ioctl.h
1455 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1456 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1457 echo "configure:1458: checking for $ac_hdr" >&5
1458 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1459 echo $ac_n "(cached) $ac_c" 1>&6
1461 cat > conftest.$ac_ext <<EOF
1462 #line 1463 "configure"
1463 #include "confdefs.h"
1466 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1467 { (eval echo configure:1468: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1468 ac_err=`grep -v '^ *+' conftest.out`
1469 if test -z "$ac_err"; then
1471 eval "ac_cv_header_$ac_safe=yes"
1474 echo "configure: failed program was:" >&5
1475 cat conftest.$ac_ext >&5
1477 eval "ac_cv_header_$ac_safe=no"
1481 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1482 echo "$ac_t""yes" 1>&6
1483 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1484 cat >> confdefs.h <<EOF
1485 #define $ac_tr_hdr 1
1489 echo "$ac_t""no" 1>&6
1493 for ac_hdr in sys/filio.h string.h stdlib.h sys/socket.h sys/mode.h
1495 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1496 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1497 echo "configure:1498: checking for $ac_hdr" >&5
1498 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1499 echo $ac_n "(cached) $ac_c" 1>&6
1501 cat > conftest.$ac_ext <<EOF
1502 #line 1503 "configure"
1503 #include "confdefs.h"
1506 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1507 { (eval echo configure:1508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1508 ac_err=`grep -v '^ *+' conftest.out`
1509 if test -z "$ac_err"; then
1511 eval "ac_cv_header_$ac_safe=yes"
1514 echo "configure: failed program was:" >&5
1515 cat conftest.$ac_ext >&5
1517 eval "ac_cv_header_$ac_safe=no"
1521 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1522 echo "$ac_t""yes" 1>&6
1523 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1524 cat >> confdefs.h <<EOF
1525 #define $ac_tr_hdr 1
1529 echo "$ac_t""no" 1>&6
1533 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h
1535 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1536 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1537 echo "configure:1538: checking for $ac_hdr" >&5
1538 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1539 echo $ac_n "(cached) $ac_c" 1>&6
1541 cat > conftest.$ac_ext <<EOF
1542 #line 1543 "configure"
1543 #include "confdefs.h"
1546 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1547 { (eval echo configure:1548: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1548 ac_err=`grep -v '^ *+' conftest.out`
1549 if test -z "$ac_err"; then
1551 eval "ac_cv_header_$ac_safe=yes"
1554 echo "configure: failed program was:" >&5
1555 cat conftest.$ac_ext >&5
1557 eval "ac_cv_header_$ac_safe=no"
1561 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1562 echo "$ac_t""yes" 1>&6
1563 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1564 cat >> confdefs.h <<EOF
1565 #define $ac_tr_hdr 1
1569 echo "$ac_t""no" 1>&6
1573 for ac_hdr in sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
1575 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1576 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1577 echo "configure:1578: checking for $ac_hdr" >&5
1578 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1579 echo $ac_n "(cached) $ac_c" 1>&6
1581 cat > conftest.$ac_ext <<EOF
1582 #line 1583 "configure"
1583 #include "confdefs.h"
1586 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1587 { (eval echo configure:1588: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1588 ac_err=`grep -v '^ *+' conftest.out`
1589 if test -z "$ac_err"; then
1591 eval "ac_cv_header_$ac_safe=yes"
1594 echo "configure: failed program was:" >&5
1595 cat conftest.$ac_ext >&5
1597 eval "ac_cv_header_$ac_safe=no"
1601 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1602 echo "$ac_t""yes" 1>&6
1603 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1604 cat >> confdefs.h <<EOF
1605 #define $ac_tr_hdr 1
1609 echo "$ac_t""no" 1>&6
1613 for ac_hdr in shadow.h netinet/tcp.h sys/security.h security/pam_appl.h
1615 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1616 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1617 echo "configure:1618: checking for $ac_hdr" >&5
1618 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1619 echo $ac_n "(cached) $ac_c" 1>&6
1621 cat > conftest.$ac_ext <<EOF
1622 #line 1623 "configure"
1623 #include "confdefs.h"
1626 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1627 { (eval echo configure:1628: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1628 ac_err=`grep -v '^ *+' conftest.out`
1629 if test -z "$ac_err"; then
1631 eval "ac_cv_header_$ac_safe=yes"
1634 echo "configure: failed program was:" >&5
1635 cat conftest.$ac_ext >&5
1637 eval "ac_cv_header_$ac_safe=no"
1641 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1642 echo "$ac_t""yes" 1>&6
1643 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1644 cat >> confdefs.h <<EOF
1645 #define $ac_tr_hdr 1
1649 echo "$ac_t""no" 1>&6
1654 echo $ac_n "checking size of int""... $ac_c" 1>&6
1655 echo "configure:1656: checking size of int" >&5
1656 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1657 echo $ac_n "(cached) $ac_c" 1>&6
1659 if test "$cross_compiling" = yes; then
1660 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1662 cat > conftest.$ac_ext <<EOF
1663 #line 1664 "configure"
1664 #include "confdefs.h"
1668 FILE *f=fopen("conftestval", "w");
1670 fprintf(f, "%d\n", sizeof(int));
1674 if { (eval echo configure:1675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1676 ac_cv_sizeof_int=`cat conftestval`
1678 echo "configure: failed program was:" >&5
1679 cat conftest.$ac_ext >&5
1687 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1688 cat >> confdefs.h <<EOF
1689 #define SIZEOF_INT $ac_cv_sizeof_int
1693 echo $ac_n "checking size of long""... $ac_c" 1>&6
1694 echo "configure:1695: checking size of long" >&5
1695 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1696 echo $ac_n "(cached) $ac_c" 1>&6
1698 if test "$cross_compiling" = yes; then
1699 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1701 cat > conftest.$ac_ext <<EOF
1702 #line 1703 "configure"
1703 #include "confdefs.h"
1707 FILE *f=fopen("conftestval", "w");
1709 fprintf(f, "%d\n", sizeof(long));
1713 if { (eval echo configure:1714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1715 ac_cv_sizeof_long=`cat conftestval`
1717 echo "configure: failed program was:" >&5
1718 cat conftest.$ac_ext >&5
1726 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1727 cat >> confdefs.h <<EOF
1728 #define SIZEOF_LONG $ac_cv_sizeof_long
1732 echo $ac_n "checking size of short""... $ac_c" 1>&6
1733 echo "configure:1734: checking size of short" >&5
1734 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1735 echo $ac_n "(cached) $ac_c" 1>&6
1737 if test "$cross_compiling" = yes; then
1738 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1740 cat > conftest.$ac_ext <<EOF
1741 #line 1742 "configure"
1742 #include "confdefs.h"
1746 FILE *f=fopen("conftestval", "w");
1748 fprintf(f, "%d\n", sizeof(short));
1752 if { (eval echo configure:1753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1754 ac_cv_sizeof_short=`cat conftestval`
1756 echo "configure: failed program was:" >&5
1757 cat conftest.$ac_ext >&5
1759 ac_cv_sizeof_short=0
1765 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
1766 cat >> confdefs.h <<EOF
1767 #define SIZEOF_SHORT $ac_cv_sizeof_short
1772 echo $ac_n "checking for working const""... $ac_c" 1>&6
1773 echo "configure:1774: checking for working const" >&5
1774 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1775 echo $ac_n "(cached) $ac_c" 1>&6
1777 cat > conftest.$ac_ext <<EOF
1778 #line 1779 "configure"
1779 #include "confdefs.h"
1783 /* Ultrix mips cc rejects this. */
1784 typedef int charset[2]; const charset x;
1785 /* SunOS 4.1.1 cc rejects this. */
1786 char const *const *ccp;
1788 /* NEC SVR4.0.2 mips cc rejects this. */
1789 struct point {int x, y;};
1790 static struct point const zero = {0,0};
1791 /* AIX XL C 1.02.0.0 rejects this.
1792 It does not let you subtract one const X* pointer from another in an arm
1793 of an if-expression whose if-part is not a constant expression */
1794 const char *g = "string";
1795 ccp = &g + (g ? g-g : 0);
1796 /* HPUX 7.0 cc rejects these. */
1799 ccp = (char const *const *) p;
1800 { /* SCO 3.2v4 cc rejects this. */
1802 char const *s = 0 ? (char *) 0 : (char const *) 0;
1806 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1808 const int *foo = &x[0];
1811 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1812 typedef const int *iptr;
1816 { /* AIX XL C 1.02.0.0 rejects this saying
1817 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1818 struct s { int j; const int *ap[3]; };
1819 struct s *b; b->j = 5;
1821 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1827 if { (eval echo configure:1828: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1831 echo "configure: failed program was:" >&5
1832 cat conftest.$ac_ext >&5
1839 echo "$ac_t""$ac_cv_c_const" 1>&6
1840 if test $ac_cv_c_const = no; then
1841 cat >> confdefs.h <<\EOF
1847 echo $ac_n "checking for inline""... $ac_c" 1>&6
1848 echo "configure:1849: checking for inline" >&5
1849 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1850 echo $ac_n "(cached) $ac_c" 1>&6
1853 for ac_kw in inline __inline__ __inline; do
1854 cat > conftest.$ac_ext <<EOF
1855 #line 1856 "configure"
1856 #include "confdefs.h"
1862 if { (eval echo configure:1863: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1864 ac_cv_c_inline=$ac_kw; break
1866 echo "configure: failed program was:" >&5
1867 cat conftest.$ac_ext >&5
1874 echo "$ac_t""$ac_cv_c_inline" 1>&6
1875 case "$ac_cv_c_inline" in
1877 no) cat >> confdefs.h <<\EOF
1881 *) cat >> confdefs.h <<EOF
1882 #define inline $ac_cv_c_inline
1887 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1888 echo "configure:1889: checking whether byte ordering is bigendian" >&5
1889 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1890 echo $ac_n "(cached) $ac_c" 1>&6
1892 ac_cv_c_bigendian=unknown
1893 # See if sys/param.h defines the BYTE_ORDER macro.
1894 cat > conftest.$ac_ext <<EOF
1895 #line 1896 "configure"
1896 #include "confdefs.h"
1897 #include <sys/types.h>
1898 #include <sys/param.h>
1901 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1906 if { (eval echo configure:1907: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1908 # It does; now see whether it defined to BIG_ENDIAN or not.
1909 cat > conftest.$ac_ext <<EOF
1910 #line 1911 "configure"
1911 #include "confdefs.h"
1912 #include <sys/types.h>
1913 #include <sys/param.h>
1916 #if BYTE_ORDER != BIG_ENDIAN
1921 if { (eval echo configure:1922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1923 ac_cv_c_bigendian=yes
1925 echo "configure: failed program was:" >&5
1926 cat conftest.$ac_ext >&5
1928 ac_cv_c_bigendian=no
1932 echo "configure: failed program was:" >&5
1933 cat conftest.$ac_ext >&5
1936 if test $ac_cv_c_bigendian = unknown; then
1937 if test "$cross_compiling" = yes; then
1938 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1940 cat > conftest.$ac_ext <<EOF
1941 #line 1942 "configure"
1942 #include "confdefs.h"
1944 /* Are we little or big endian? From Harbison&Steele. */
1948 char c[sizeof (long)];
1951 exit (u.c[sizeof (long) - 1] == 1);
1954 if { (eval echo configure:1955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1956 ac_cv_c_bigendian=no
1958 echo "configure: failed program was:" >&5
1959 cat conftest.$ac_ext >&5
1961 ac_cv_c_bigendian=yes
1969 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1970 if test $ac_cv_c_bigendian = yes; then
1971 cat >> confdefs.h <<\EOF
1972 #define WORDS_BIGENDIAN 1
1977 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
1978 echo "configure:1979: checking whether char is unsigned" >&5
1979 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
1980 echo $ac_n "(cached) $ac_c" 1>&6
1982 if test "$GCC" = yes; then
1983 # GCC predefines this symbol on systems where it applies.
1984 cat > conftest.$ac_ext <<EOF
1985 #line 1986 "configure"
1986 #include "confdefs.h"
1987 #ifdef __CHAR_UNSIGNED__
1992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1993 egrep "yes" >/dev/null 2>&1; then
1995 ac_cv_c_char_unsigned=yes
1998 ac_cv_c_char_unsigned=no
2003 if test "$cross_compiling" = yes; then
2004 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2006 cat > conftest.$ac_ext <<EOF
2007 #line 2008 "configure"
2008 #include "confdefs.h"
2009 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
2010 #if !defined(__STDC__) || __STDC__ != 1
2014 volatile char c = 255; exit(c < 0);
2017 if { (eval echo configure:2018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2019 ac_cv_c_char_unsigned=yes
2021 echo "configure: failed program was:" >&5
2022 cat conftest.$ac_ext >&5
2024 ac_cv_c_char_unsigned=no
2032 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
2033 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
2034 cat >> confdefs.h <<\EOF
2035 #define __CHAR_UNSIGNED__ 1
2041 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2042 echo "configure:2043: checking return type of signal handlers" >&5
2043 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2044 echo $ac_n "(cached) $ac_c" 1>&6
2046 cat > conftest.$ac_ext <<EOF
2047 #line 2048 "configure"
2048 #include "confdefs.h"
2049 #include <sys/types.h>
2055 extern "C" void (*signal (int, void (*)(int)))(int);
2057 void (*signal ()) ();
2064 if { (eval echo configure:2065: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2066 ac_cv_type_signal=void
2068 echo "configure: failed program was:" >&5
2069 cat conftest.$ac_ext >&5
2071 ac_cv_type_signal=int
2076 echo "$ac_t""$ac_cv_type_signal" 1>&6
2077 cat >> confdefs.h <<EOF
2078 #define RETSIGTYPE $ac_cv_type_signal
2082 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2083 echo "configure:2084: checking for uid_t in sys/types.h" >&5
2084 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2085 echo $ac_n "(cached) $ac_c" 1>&6
2087 cat > conftest.$ac_ext <<EOF
2088 #line 2089 "configure"
2089 #include "confdefs.h"
2090 #include <sys/types.h>
2092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2093 egrep "uid_t" >/dev/null 2>&1; then
2095 ac_cv_type_uid_t=yes
2104 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2105 if test $ac_cv_type_uid_t = no; then
2106 cat >> confdefs.h <<\EOF
2110 cat >> confdefs.h <<\EOF
2116 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2117 echo "configure:2118: checking for mode_t" >&5
2118 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2119 echo $ac_n "(cached) $ac_c" 1>&6
2121 cat > conftest.$ac_ext <<EOF
2122 #line 2123 "configure"
2123 #include "confdefs.h"
2124 #include <sys/types.h>
2130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2131 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2133 ac_cv_type_mode_t=yes
2136 ac_cv_type_mode_t=no
2141 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
2142 if test $ac_cv_type_mode_t = no; then
2143 cat >> confdefs.h <<\EOF
2149 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2150 echo "configure:2151: checking for off_t" >&5
2151 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2152 echo $ac_n "(cached) $ac_c" 1>&6
2154 cat > conftest.$ac_ext <<EOF
2155 #line 2156 "configure"
2156 #include "confdefs.h"
2157 #include <sys/types.h>
2163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2164 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2166 ac_cv_type_off_t=yes
2174 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2175 if test $ac_cv_type_off_t = no; then
2176 cat >> confdefs.h <<\EOF
2182 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2183 echo "configure:2184: checking for size_t" >&5
2184 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2185 echo $ac_n "(cached) $ac_c" 1>&6
2187 cat > conftest.$ac_ext <<EOF
2188 #line 2189 "configure"
2189 #include "confdefs.h"
2190 #include <sys/types.h>
2196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2197 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2199 ac_cv_type_size_t=yes
2202 ac_cv_type_size_t=no
2207 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2208 if test $ac_cv_type_size_t = no; then
2209 cat >> confdefs.h <<\EOF
2210 #define size_t unsigned
2215 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2216 echo "configure:2217: checking for pid_t" >&5
2217 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2218 echo $ac_n "(cached) $ac_c" 1>&6
2220 cat > conftest.$ac_ext <<EOF
2221 #line 2222 "configure"
2222 #include "confdefs.h"
2223 #include <sys/types.h>
2229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2230 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2232 ac_cv_type_pid_t=yes
2240 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2241 if test $ac_cv_type_pid_t = no; then
2242 cat >> confdefs.h <<\EOF
2248 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
2249 echo "configure:2250: checking for st_rdev in struct stat" >&5
2250 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
2251 echo $ac_n "(cached) $ac_c" 1>&6
2253 cat > conftest.$ac_ext <<EOF
2254 #line 2255 "configure"
2255 #include "confdefs.h"
2256 #include <sys/types.h>
2257 #include <sys/stat.h>
2259 struct stat s; s.st_rdev;
2262 if { (eval echo configure:2263: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2264 ac_cv_struct_st_rdev=yes
2266 echo "configure: failed program was:" >&5
2267 cat conftest.$ac_ext >&5
2269 ac_cv_struct_st_rdev=no
2274 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
2275 if test $ac_cv_struct_st_rdev = yes; then
2276 cat >> confdefs.h <<\EOF
2277 #define HAVE_ST_RDEV 1
2282 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
2283 echo "configure:2284: checking for ino_t" >&5
2284 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
2285 echo $ac_n "(cached) $ac_c" 1>&6
2287 cat > conftest.$ac_ext <<EOF
2288 #line 2289 "configure"
2289 #include "confdefs.h"
2290 #include <sys/types.h>
2296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2297 egrep "ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2299 ac_cv_type_ino_t=yes
2307 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
2308 if test $ac_cv_type_ino_t = no; then
2309 cat >> confdefs.h <<\EOF
2310 #define ino_t unsigned
2316 echo $ac_n "checking for errno in errno.h... $ac_c"
2317 cat > conftest.$ac_ext <<EOF
2318 #line 2319 "configure"
2319 #include "confdefs.h"
2325 if { (eval echo configure:2326: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2327 echo yes; cat >> confdefs.h <<\EOF
2328 #define HAVE_ERRNO_DECL 1
2332 echo "configure: failed program was:" >&5
2333 cat conftest.$ac_ext >&5
2339 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
2340 echo "configure:2341: checking for 8-bit clean memcmp" >&5
2341 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
2342 echo $ac_n "(cached) $ac_c" 1>&6
2344 if test "$cross_compiling" = yes; then
2345 ac_cv_func_memcmp_clean=no
2347 cat > conftest.$ac_ext <<EOF
2348 #line 2349 "configure"
2349 #include "confdefs.h"
2353 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
2354 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
2358 if { (eval echo configure:2359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2360 ac_cv_func_memcmp_clean=yes
2362 echo "configure: failed program was:" >&5
2363 cat conftest.$ac_ext >&5
2365 ac_cv_func_memcmp_clean=no
2372 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
2373 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
2376 ###############################################
2377 # test for where we get crypt() from
2378 if test "$ac_cv_lib_crypt_crypt" = "yes"; then
2379 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
2380 echo "configure:2381: checking for crypt in -lcrypt" >&5
2381 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
2382 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2383 echo $ac_n "(cached) $ac_c" 1>&6
2385 ac_save_LIBS="$LIBS"
2386 LIBS="-lcrypt $LIBS"
2387 cat > conftest.$ac_ext <<EOF
2388 #line 2389 "configure"
2389 #include "confdefs.h"
2390 /* Override any gcc2 internal prototype to avoid an error. */
2391 /* We use char because int might match the return type of a gcc2
2392 builtin and then its argument prototype would still apply. */
2399 if { (eval echo configure:2400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2401 eval "ac_cv_lib_$ac_lib_var=yes"
2403 echo "configure: failed program was:" >&5
2404 cat conftest.$ac_ext >&5
2406 eval "ac_cv_lib_$ac_lib_var=no"
2409 LIBS="$ac_save_LIBS"
2412 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2413 echo "$ac_t""yes" 1>&6
2414 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2415 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2416 cat >> confdefs.h <<EOF
2417 #define $ac_tr_lib 1
2420 LIBS="-lcrypt $LIBS"
2423 echo "$ac_t""no" 1>&6
2426 cat >> confdefs.h <<\EOF
2427 #define HAVE_CRYPT 1
2431 if test "$ac_cv_lib_crypt_crypt" = "no" ||
2432 test "$ac_cv_lib_crypt_crypt" = ""; then
2434 echo $ac_n "checking for crypt""... $ac_c" 1>&6
2435 echo "configure:2436: checking for crypt" >&5
2436 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
2437 echo $ac_n "(cached) $ac_c" 1>&6
2439 cat > conftest.$ac_ext <<EOF
2440 #line 2441 "configure"
2441 #include "confdefs.h"
2442 /* System header to define __stub macros and hopefully few prototypes,
2443 which can conflict with char crypt(); below. */
2445 /* Override any gcc2 internal prototype to avoid an error. */
2446 /* We use char because int might match the return type of a gcc2
2447 builtin and then its argument prototype would still apply. */
2452 /* The GNU C library defines this for functions which it implements
2453 to always fail with ENOSYS. Some functions are actually named
2454 something starting with __ and the normal name is an alias. */
2455 #if defined (__stub_crypt) || defined (__stub___crypt)
2463 if { (eval echo configure:2464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2465 eval "ac_cv_func_crypt=yes"
2467 echo "configure: failed program was:" >&5
2468 cat conftest.$ac_ext >&5
2470 eval "ac_cv_func_crypt=no"
2475 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
2476 echo "$ac_t""yes" 1>&6
2477 cat >> confdefs.h <<\EOF
2478 #define HAVE_CRYPT 1
2482 echo "$ac_t""no" 1>&6
2485 *) echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
2486 echo "configure:2487: checking for crypt in -lcrypt" >&5
2487 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
2488 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2489 echo $ac_n "(cached) $ac_c" 1>&6
2491 ac_save_LIBS="$LIBS"
2492 LIBS="-lcrypt $LIBS"
2493 cat > conftest.$ac_ext <<EOF
2494 #line 2495 "configure"
2495 #include "confdefs.h"
2496 /* Override any gcc2 internal prototype to avoid an error. */
2497 /* We use char because int might match the return type of a gcc2
2498 builtin and then its argument prototype would still apply. */
2505 if { (eval echo configure:2506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2507 eval "ac_cv_lib_$ac_lib_var=yes"
2509 echo "configure: failed program was:" >&5
2510 cat conftest.$ac_ext >&5
2512 eval "ac_cv_lib_$ac_lib_var=no"
2515 LIBS="$ac_save_LIBS"
2518 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2519 echo "$ac_t""yes" 1>&6
2520 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2521 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2522 cat >> confdefs.h <<EOF
2523 #define $ac_tr_lib 1
2526 LIBS="-lcrypt $LIBS"
2529 echo "$ac_t""no" 1>&6
2533 if test "$ac_cv_lib_crypt_crypt" = "yes"; then
2534 ac_cv_func_crypt=yes
2535 cat >> confdefs.h <<\EOF
2536 #define HAVE_CRYPT 1
2545 ###############################################
2546 # test for where we get pam_authenticate() from
2547 # might need libdl for this to work
2548 if test "$ac_cv_header_security_pam_appl_h" = "yes"; then
2549 echo $ac_n "checking for -ldl""... $ac_c" 1>&6
2550 echo "configure:2551: checking for -ldl" >&5
2551 if eval "test \"`echo '$''{'ac_cv_lib_dl'+set}'`\" = set"; then
2552 echo $ac_n "(cached) $ac_c" 1>&6
2554 ac_save_LIBS="$LIBS"
2556 cat > conftest.$ac_ext <<EOF
2557 #line 2558 "configure"
2558 #include "confdefs.h"
2564 if { (eval echo configure:2565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2568 echo "configure: failed program was:" >&5
2569 cat conftest.$ac_ext >&5
2574 LIBS="$ac_save_LIBS"
2577 echo "$ac_t""$ac_cv_lib_dl" 1>&6
2578 if test "$ac_cv_lib_dl" = yes; then
2579 cat >> confdefs.h <<\EOF
2580 #define HAVE_LIBDL 1
2588 if test "$ac_cv_lib_pam_pam_authenticate" = "yes"; then
2589 echo $ac_n "checking for pam_authenticate in -lpam""... $ac_c" 1>&6
2590 echo "configure:2591: checking for pam_authenticate in -lpam" >&5
2591 ac_lib_var=`echo pam'_'pam_authenticate | sed 'y%./+-%__p_%'`
2592 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2593 echo $ac_n "(cached) $ac_c" 1>&6
2595 ac_save_LIBS="$LIBS"
2597 cat > conftest.$ac_ext <<EOF
2598 #line 2599 "configure"
2599 #include "confdefs.h"
2600 /* Override any gcc2 internal prototype to avoid an error. */
2601 /* We use char because int might match the return type of a gcc2
2602 builtin and then its argument prototype would still apply. */
2603 char pam_authenticate();
2609 if { (eval echo configure:2610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2611 eval "ac_cv_lib_$ac_lib_var=yes"
2613 echo "configure: failed program was:" >&5
2614 cat conftest.$ac_ext >&5
2616 eval "ac_cv_lib_$ac_lib_var=no"
2619 LIBS="$ac_save_LIBS"
2622 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2623 echo "$ac_t""yes" 1>&6
2624 ac_tr_lib=HAVE_LIB`echo pam | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2625 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2626 cat >> confdefs.h <<EOF
2627 #define $ac_tr_lib 1
2633 echo "$ac_t""no" 1>&6
2636 cat >> confdefs.h <<\EOF
2637 #define HAVE_PAM_AUTHENTICATE 1
2641 if test "$ac_cv_lib_pam_pam_authenticate" = "no" ||
2642 test "$ac_cv_lib_pam_pam_authenticate" = ""; then
2643 # look for pam_authenticate
2644 echo $ac_n "checking for pam_authenticate""... $ac_c" 1>&6
2645 echo "configure:2646: checking for pam_authenticate" >&5
2646 if eval "test \"`echo '$''{'ac_cv_func_pam_authenticate'+set}'`\" = set"; then
2647 echo $ac_n "(cached) $ac_c" 1>&6
2649 cat > conftest.$ac_ext <<EOF
2650 #line 2651 "configure"
2651 #include "confdefs.h"
2652 /* System header to define __stub macros and hopefully few prototypes,
2653 which can conflict with char pam_authenticate(); below. */
2655 /* Override any gcc2 internal prototype to avoid an error. */
2656 /* We use char because int might match the return type of a gcc2
2657 builtin and then its argument prototype would still apply. */
2658 char pam_authenticate();
2662 /* The GNU C library defines this for functions which it implements
2663 to always fail with ENOSYS. Some functions are actually named
2664 something starting with __ and the normal name is an alias. */
2665 #if defined (__stub_pam_authenticate) || defined (__stub___pam_authenticate)
2673 if { (eval echo configure:2674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2675 eval "ac_cv_func_pam_authenticate=yes"
2677 echo "configure: failed program was:" >&5
2678 cat conftest.$ac_ext >&5
2680 eval "ac_cv_func_pam_authenticate=no"
2685 if eval "test \"`echo '$ac_cv_func_'pam_authenticate`\" = yes"; then
2686 echo "$ac_t""yes" 1>&6
2687 cat >> confdefs.h <<\EOF
2688 #define HAVE_PAM_AUTHENTICATE 1
2692 echo "$ac_t""no" 1>&6
2695 *) echo $ac_n "checking for pam_authenticate in -lpam""... $ac_c" 1>&6
2696 echo "configure:2697: checking for pam_authenticate in -lpam" >&5
2697 ac_lib_var=`echo pam'_'pam_authenticate | sed 'y%./+-%__p_%'`
2698 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2699 echo $ac_n "(cached) $ac_c" 1>&6
2701 ac_save_LIBS="$LIBS"
2703 cat > conftest.$ac_ext <<EOF
2704 #line 2705 "configure"
2705 #include "confdefs.h"
2706 /* Override any gcc2 internal prototype to avoid an error. */
2707 /* We use char because int might match the return type of a gcc2
2708 builtin and then its argument prototype would still apply. */
2709 char pam_authenticate();
2715 if { (eval echo configure:2716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2717 eval "ac_cv_lib_$ac_lib_var=yes"
2719 echo "configure: failed program was:" >&5
2720 cat conftest.$ac_ext >&5
2722 eval "ac_cv_lib_$ac_lib_var=no"
2725 LIBS="$ac_save_LIBS"
2728 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2729 echo "$ac_t""yes" 1>&6
2730 ac_tr_lib=HAVE_LIB`echo pam | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2731 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2732 cat >> confdefs.h <<EOF
2733 #define $ac_tr_lib 1
2739 echo "$ac_t""no" 1>&6
2743 if test "$ac_cv_lib_pam_pam_authenticate" = "yes"; then
2744 ac_cv_func_pam_authenticate=yes
2745 cat >> confdefs.h <<\EOF
2746 #define HAVE_PAM_AUTHENTICATE 1
2754 # The following test taken from the cvs sources
2755 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
2756 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
2757 # libsocket.so which has a bad implementation of gethostbyname (it
2758 # only looks in /etc/hosts), so we only look for -lsocket if we need
2760 echo $ac_n "checking for connect""... $ac_c" 1>&6
2761 echo "configure:2762: checking for connect" >&5
2762 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
2763 echo $ac_n "(cached) $ac_c" 1>&6
2765 cat > conftest.$ac_ext <<EOF
2766 #line 2767 "configure"
2767 #include "confdefs.h"
2768 /* System header to define __stub macros and hopefully few prototypes,
2769 which can conflict with char connect(); below. */
2771 /* Override any gcc2 internal prototype to avoid an error. */
2772 /* We use char because int might match the return type of a gcc2
2773 builtin and then its argument prototype would still apply. */
2778 /* The GNU C library defines this for functions which it implements
2779 to always fail with ENOSYS. Some functions are actually named
2780 something starting with __ and the normal name is an alias. */
2781 #if defined (__stub_connect) || defined (__stub___connect)
2789 if { (eval echo configure:2790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2791 eval "ac_cv_func_connect=yes"
2793 echo "configure: failed program was:" >&5
2794 cat conftest.$ac_ext >&5
2796 eval "ac_cv_func_connect=no"
2801 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
2802 echo "$ac_t""yes" 1>&6
2805 echo "$ac_t""no" 1>&6
2808 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
2809 echo "configure:2810: checking for printf in -lnsl_s" >&5
2810 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
2811 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2812 echo $ac_n "(cached) $ac_c" 1>&6
2814 ac_save_LIBS="$LIBS"
2815 LIBS="-lnsl_s $LIBS"
2816 cat > conftest.$ac_ext <<EOF
2817 #line 2818 "configure"
2818 #include "confdefs.h"
2819 /* Override any gcc2 internal prototype to avoid an error. */
2820 /* We use char because int might match the return type of a gcc2
2821 builtin and then its argument prototype would still apply. */
2828 if { (eval echo configure:2829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2830 eval "ac_cv_lib_$ac_lib_var=yes"
2832 echo "configure: failed program was:" >&5
2833 cat conftest.$ac_ext >&5
2835 eval "ac_cv_lib_$ac_lib_var=no"
2838 LIBS="$ac_save_LIBS"
2841 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2842 echo "$ac_t""yes" 1>&6
2843 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2844 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2845 cat >> confdefs.h <<EOF
2846 #define $ac_tr_lib 1
2849 LIBS="-lnsl_s $LIBS"
2852 echo "$ac_t""no" 1>&6
2858 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
2859 echo "configure:2860: checking for printf in -lnsl" >&5
2860 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
2861 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2862 echo $ac_n "(cached) $ac_c" 1>&6
2864 ac_save_LIBS="$LIBS"
2866 cat > conftest.$ac_ext <<EOF
2867 #line 2868 "configure"
2868 #include "confdefs.h"
2869 /* Override any gcc2 internal prototype to avoid an error. */
2870 /* We use char because int might match the return type of a gcc2
2871 builtin and then its argument prototype would still apply. */
2878 if { (eval echo configure:2879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2880 eval "ac_cv_lib_$ac_lib_var=yes"
2882 echo "configure: failed program was:" >&5
2883 cat conftest.$ac_ext >&5
2885 eval "ac_cv_lib_$ac_lib_var=no"
2888 LIBS="$ac_save_LIBS"
2891 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2892 echo "$ac_t""yes" 1>&6
2893 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2894 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2895 cat >> confdefs.h <<EOF
2896 #define $ac_tr_lib 1
2902 echo "$ac_t""no" 1>&6
2908 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2909 echo "configure:2910: checking for connect in -lsocket" >&5
2910 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2911 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2912 echo $ac_n "(cached) $ac_c" 1>&6
2914 ac_save_LIBS="$LIBS"
2915 LIBS="-lsocket $LIBS"
2916 cat > conftest.$ac_ext <<EOF
2917 #line 2918 "configure"
2918 #include "confdefs.h"
2919 /* Override any gcc2 internal prototype to avoid an error. */
2920 /* We use char because int might match the return type of a gcc2
2921 builtin and then its argument prototype would still apply. */
2928 if { (eval echo configure:2929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2930 eval "ac_cv_lib_$ac_lib_var=yes"
2932 echo "configure: failed program was:" >&5
2933 cat conftest.$ac_ext >&5
2935 eval "ac_cv_lib_$ac_lib_var=no"
2938 LIBS="$ac_save_LIBS"
2941 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2942 echo "$ac_t""yes" 1>&6
2943 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2944 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2945 cat >> confdefs.h <<EOF
2946 #define $ac_tr_lib 1
2949 LIBS="-lsocket $LIBS"
2952 echo "$ac_t""no" 1>&6
2958 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
2959 echo "configure:2960: checking for connect in -linet" >&5
2960 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
2961 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2962 echo $ac_n "(cached) $ac_c" 1>&6
2964 ac_save_LIBS="$LIBS"
2966 cat > conftest.$ac_ext <<EOF
2967 #line 2968 "configure"
2968 #include "confdefs.h"
2969 /* Override any gcc2 internal prototype to avoid an error. */
2970 /* We use char because int might match the return type of a gcc2
2971 builtin and then its argument prototype would still apply. */
2978 if { (eval echo configure:2979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2980 eval "ac_cv_lib_$ac_lib_var=yes"
2982 echo "configure: failed program was:" >&5
2983 cat conftest.$ac_ext >&5
2985 eval "ac_cv_lib_$ac_lib_var=no"
2988 LIBS="$ac_save_LIBS"
2991 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2992 echo "$ac_t""yes" 1>&6
2993 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2994 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2995 cat >> confdefs.h <<EOF
2996 #define $ac_tr_lib 1
3002 echo "$ac_t""no" 1>&6
3006 if test "$ac_cv_lib_socket_connect" = "yes" ||
3007 test "$ac_cv_lib_inet_connect" = "yes"; then
3008 ac_cv_func_connect=yes
3009 cat >> confdefs.h <<\EOF
3010 #define HAVE_CONNECT 1
3018 for ac_func in waitpid getcwd strdup strerror chown chmod chroot
3020 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3021 echo "configure:3022: checking for $ac_func" >&5
3022 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3023 echo $ac_n "(cached) $ac_c" 1>&6
3025 cat > conftest.$ac_ext <<EOF
3026 #line 3027 "configure"
3027 #include "confdefs.h"
3028 /* System header to define __stub macros and hopefully few prototypes,
3029 which can conflict with char $ac_func(); below. */
3031 /* Override any gcc2 internal prototype to avoid an error. */
3032 /* We use char because int might match the return type of a gcc2
3033 builtin and then its argument prototype would still apply. */
3038 /* The GNU C library defines this for functions which it implements
3039 to always fail with ENOSYS. Some functions are actually named
3040 something starting with __ and the normal name is an alias. */
3041 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3049 if { (eval echo configure:3050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3051 eval "ac_cv_func_$ac_func=yes"
3053 echo "configure: failed program was:" >&5
3054 cat conftest.$ac_ext >&5
3056 eval "ac_cv_func_$ac_func=no"
3061 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3062 echo "$ac_t""yes" 1>&6
3063 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3064 cat >> confdefs.h <<EOF
3065 #define $ac_tr_func 1
3069 echo "$ac_t""no" 1>&6
3073 for ac_func in fstat strchr utime utimes getrlimit fsync execl
3075 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3076 echo "configure:3077: checking for $ac_func" >&5
3077 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3078 echo $ac_n "(cached) $ac_c" 1>&6
3080 cat > conftest.$ac_ext <<EOF
3081 #line 3082 "configure"
3082 #include "confdefs.h"
3083 /* System header to define __stub macros and hopefully few prototypes,
3084 which can conflict with char $ac_func(); below. */
3086 /* Override any gcc2 internal prototype to avoid an error. */
3087 /* We use char because int might match the return type of a gcc2
3088 builtin and then its argument prototype would still apply. */
3093 /* The GNU C library defines this for functions which it implements
3094 to always fail with ENOSYS. Some functions are actually named
3095 something starting with __ and the normal name is an alias. */
3096 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3104 if { (eval echo configure:3105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3106 eval "ac_cv_func_$ac_func=yes"
3108 echo "configure: failed program was:" >&5
3109 cat conftest.$ac_ext >&5
3111 eval "ac_cv_func_$ac_func=no"
3116 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3117 echo "$ac_t""yes" 1>&6
3118 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3119 cat >> confdefs.h <<EOF
3120 #define $ac_tr_func 1
3124 echo "$ac_t""no" 1>&6
3128 for ac_func in memmove vsnprintf setsid glob strpbrk pipe crypt16 getauthuid
3130 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3131 echo "configure:3132: checking for $ac_func" >&5
3132 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3133 echo $ac_n "(cached) $ac_c" 1>&6
3135 cat > conftest.$ac_ext <<EOF
3136 #line 3137 "configure"
3137 #include "confdefs.h"
3138 /* System header to define __stub macros and hopefully few prototypes,
3139 which can conflict with char $ac_func(); below. */
3141 /* Override any gcc2 internal prototype to avoid an error. */
3142 /* We use char because int might match the return type of a gcc2
3143 builtin and then its argument prototype would still apply. */
3148 /* The GNU C library defines this for functions which it implements
3149 to always fail with ENOSYS. Some functions are actually named
3150 something starting with __ and the normal name is an alias. */
3151 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3159 if { (eval echo configure:3160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3161 eval "ac_cv_func_$ac_func=yes"
3163 echo "configure: failed program was:" >&5
3164 cat conftest.$ac_ext >&5
3166 eval "ac_cv_func_$ac_func=no"
3171 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3172 echo "$ac_t""yes" 1>&6
3173 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3174 cat >> confdefs.h <<EOF
3175 #define $ac_tr_func 1
3179 echo "$ac_t""no" 1>&6
3183 for ac_func in strftime sigprocmask sigblock sigaction innetgr
3185 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3186 echo "configure:3187: checking for $ac_func" >&5
3187 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3188 echo $ac_n "(cached) $ac_c" 1>&6
3190 cat > conftest.$ac_ext <<EOF
3191 #line 3192 "configure"
3192 #include "confdefs.h"
3193 /* System header to define __stub macros and hopefully few prototypes,
3194 which can conflict with char $ac_func(); below. */
3196 /* Override any gcc2 internal prototype to avoid an error. */
3197 /* We use char because int might match the return type of a gcc2
3198 builtin and then its argument prototype would still apply. */
3203 /* The GNU C library defines this for functions which it implements
3204 to always fail with ENOSYS. Some functions are actually named
3205 something starting with __ and the normal name is an alias. */
3206 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3214 if { (eval echo configure:3215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3216 eval "ac_cv_func_$ac_func=yes"
3218 echo "configure: failed program was:" >&5
3219 cat conftest.$ac_ext >&5
3221 eval "ac_cv_func_$ac_func=no"
3226 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3227 echo "$ac_t""yes" 1>&6
3228 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3229 cat >> confdefs.h <<EOF
3230 #define $ac_tr_func 1
3234 echo "$ac_t""no" 1>&6
3238 for ac_func in initgroups select rdchk getgrnam pathconf putprpwnam
3240 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3241 echo "configure:3242: checking for $ac_func" >&5
3242 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3243 echo $ac_n "(cached) $ac_c" 1>&6
3245 cat > conftest.$ac_ext <<EOF
3246 #line 3247 "configure"
3247 #include "confdefs.h"
3248 /* System header to define __stub macros and hopefully few prototypes,
3249 which can conflict with char $ac_func(); below. */
3251 /* Override any gcc2 internal prototype to avoid an error. */
3252 /* We use char because int might match the return type of a gcc2
3253 builtin and then its argument prototype would still apply. */
3258 /* The GNU C library defines this for functions which it implements
3259 to always fail with ENOSYS. Some functions are actually named
3260 something starting with __ and the normal name is an alias. */
3261 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3269 if { (eval echo configure:3270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3271 eval "ac_cv_func_$ac_func=yes"
3273 echo "configure: failed program was:" >&5
3274 cat conftest.$ac_ext >&5
3276 eval "ac_cv_func_$ac_func=no"
3281 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3282 echo "$ac_t""yes" 1>&6
3283 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3284 cat >> confdefs.h <<EOF
3285 #define $ac_tr_func 1
3289 echo "$ac_t""no" 1>&6
3293 for ac_func in setresuid setuidx setgroups mktime rename ftruncate
3295 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3296 echo "configure:3297: checking for $ac_func" >&5
3297 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3298 echo $ac_n "(cached) $ac_c" 1>&6
3300 cat > conftest.$ac_ext <<EOF
3301 #line 3302 "configure"
3302 #include "confdefs.h"
3303 /* System header to define __stub macros and hopefully few prototypes,
3304 which can conflict with char $ac_func(); below. */
3306 /* Override any gcc2 internal prototype to avoid an error. */
3307 /* We use char because int might match the return type of a gcc2
3308 builtin and then its argument prototype would still apply. */
3313 /* The GNU C library defines this for functions which it implements
3314 to always fail with ENOSYS. Some functions are actually named
3315 something starting with __ and the normal name is an alias. */
3316 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3324 if { (eval echo configure:3325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3326 eval "ac_cv_func_$ac_func=yes"
3328 echo "configure: failed program was:" >&5
3329 cat conftest.$ac_ext >&5
3331 eval "ac_cv_func_$ac_func=no"
3336 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3337 echo "$ac_t""yes" 1>&6
3338 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3339 cat >> confdefs.h <<EOF
3340 #define $ac_tr_func 1
3344 echo "$ac_t""no" 1>&6
3348 for ac_func in set_auth_parameters atexit grantpt getspnam dup2
3350 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3351 echo "configure:3352: checking for $ac_func" >&5
3352 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3353 echo $ac_n "(cached) $ac_c" 1>&6
3355 cat > conftest.$ac_ext <<EOF
3356 #line 3357 "configure"
3357 #include "confdefs.h"
3358 /* System header to define __stub macros and hopefully few prototypes,
3359 which can conflict with char $ac_func(); below. */
3361 /* Override any gcc2 internal prototype to avoid an error. */
3362 /* We use char because int might match the return type of a gcc2
3363 builtin and then its argument prototype would still apply. */
3368 /* The GNU C library defines this for functions which it implements
3369 to always fail with ENOSYS. Some functions are actually named
3370 something starting with __ and the normal name is an alias. */
3371 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3379 if { (eval echo configure:3380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3381 eval "ac_cv_func_$ac_func=yes"
3383 echo "configure: failed program was:" >&5
3384 cat conftest.$ac_ext >&5
3386 eval "ac_cv_func_$ac_func=no"
3391 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3392 echo "$ac_t""yes" 1>&6
3393 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3394 cat >> confdefs.h <<EOF
3395 #define $ac_tr_func 1
3399 echo "$ac_t""no" 1>&6
3403 for ac_func in bigcrypt getprpwnam setluid yp_get_default_domain getpwanam
3405 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3406 echo "configure:3407: checking for $ac_func" >&5
3407 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3408 echo $ac_n "(cached) $ac_c" 1>&6
3410 cat > conftest.$ac_ext <<EOF
3411 #line 3412 "configure"
3412 #include "confdefs.h"
3413 /* System header to define __stub macros and hopefully few prototypes,
3414 which can conflict with char $ac_func(); below. */
3416 /* Override any gcc2 internal prototype to avoid an error. */
3417 /* We use char because int might match the return type of a gcc2
3418 builtin and then its argument prototype would still apply. */
3423 /* The GNU C library defines this for functions which it implements
3424 to always fail with ENOSYS. Some functions are actually named
3425 something starting with __ and the normal name is an alias. */
3426 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3434 if { (eval echo configure:3435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3436 eval "ac_cv_func_$ac_func=yes"
3438 echo "configure: failed program was:" >&5
3439 cat conftest.$ac_ext >&5
3441 eval "ac_cv_func_$ac_func=no"
3446 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3447 echo "$ac_t""yes" 1>&6
3448 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3449 cat >> confdefs.h <<EOF
3450 #define $ac_tr_func 1
3454 echo "$ac_t""no" 1>&6
3459 echo $ac_n "checking for long long ... $ac_c"
3460 if test "$cross_compiling" = yes; then
3461 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3463 cat > conftest.$ac_ext <<EOF
3464 #line 3465 "configure"
3465 #include "confdefs.h"
3467 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
3469 if { (eval echo configure:3470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3471 echo yes;cat >> confdefs.h <<\EOF
3472 #define HAVE_LONGLONG 1
3476 echo "configure: failed program was:" >&5
3477 cat conftest.$ac_ext >&5
3485 echo $ac_n "checking for off64_t ... $ac_c"
3486 if test "$cross_compiling" = yes; then
3487 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3489 cat > conftest.$ac_ext <<EOF
3490 #line 3491 "configure"
3491 #include "confdefs.h"
3493 #include <sys/stat.h>
3494 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
3496 if { (eval echo configure:3497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3498 echo yes;cat >> confdefs.h <<\EOF
3499 #define HAVE_OFF64_T 1
3503 echo "configure: failed program was:" >&5
3504 cat conftest.$ac_ext >&5
3512 echo $ac_n "checking for union semun ... $ac_c"
3513 if test "$cross_compiling" = yes; then
3514 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3516 cat > conftest.$ac_ext <<EOF
3517 #line 3518 "configure"
3518 #include "confdefs.h"
3520 #include <sys/types.h>
3521 #include <sys/ipc.h>
3522 #include <sys/sem.h>
3523 main() { union semun ss; exit(0); }
3525 if { (eval echo configure:3526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3527 echo yes;cat >> confdefs.h <<\EOF
3528 #define HAVE_UNION_SEMUN 1
3532 echo "configure: failed program was:" >&5
3533 cat conftest.$ac_ext >&5
3541 echo $ac_n "checking for unsigned char ... $ac_c"
3542 if test "$cross_compiling" = yes; then
3543 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3545 cat > conftest.$ac_ext <<EOF
3546 #line 3547 "configure"
3547 #include "confdefs.h"
3549 main() { char c; c=250; exit((c > 0)?0:1); }
3551 if { (eval echo configure:3552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3553 echo yes;cat >> confdefs.h <<\EOF
3554 #define HAVE_UNSIGNED_CHAR 1
3558 echo "configure: failed program was:" >&5
3559 cat conftest.$ac_ext >&5
3567 echo $ac_n "checking for sin_len in sock ... $ac_c"
3568 cat > conftest.$ac_ext <<EOF
3569 #line 3570 "configure"
3570 #include "confdefs.h"
3571 #include <sys/types.h>
3572 #include <sys/socket.h>
3573 #include <netinet/in.h>
3575 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
3578 if { (eval echo configure:3579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3580 echo yes;cat >> confdefs.h <<\EOF
3581 #define HAVE_SOCK_SIN_LEN 1
3585 echo "configure: failed program was:" >&5
3586 cat conftest.$ac_ext >&5
3592 echo $ac_n "checking for __FILE__ macro ... $ac_c"
3593 cat > conftest.$ac_ext <<EOF
3594 #line 3595 "configure"
3595 #include "confdefs.h"
3598 printf("%s\n", __FILE__);
3601 if { (eval echo configure:3602: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3603 echo yes;cat >> confdefs.h <<\EOF
3604 #define HAVE_FILE_MACRO 1
3608 echo "configure: failed program was:" >&5
3609 cat conftest.$ac_ext >&5
3615 echo $ac_n "checking for __FUNCTION__ macro ... $ac_c"
3616 cat > conftest.$ac_ext <<EOF
3617 #line 3618 "configure"
3618 #include "confdefs.h"
3621 printf("%s\n", __FUNCTION__);
3624 if { (eval echo configure:3625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3626 echo yes;cat >> confdefs.h <<\EOF
3627 #define HAVE_FUNCTION_MACRO 1
3631 echo "configure: failed program was:" >&5
3632 cat conftest.$ac_ext >&5
3638 echo $ac_n "checking if gettimeofday takes tz argument ... $ac_c"
3639 if test "$cross_compiling" = yes; then
3640 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3642 cat > conftest.$ac_ext <<EOF
3643 #line 3644 "configure"
3644 #include "confdefs.h"
3646 #include <sys/time.h>
3648 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
3650 if { (eval echo configure:3651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3652 echo yes;cat >> confdefs.h <<\EOF
3653 #define HAVE_GETTIMEOFDAY_TZ 1
3657 echo "configure: failed program was:" >&5
3658 cat conftest.$ac_ext >&5
3667 echo $ac_n "checking for broken readdir ... $ac_c"
3668 if test "$cross_compiling" = yes; then
3669 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3671 cat > conftest.$ac_ext <<EOF
3672 #line 3673 "configure"
3673 #include "confdefs.h"
3674 #include <sys/types.h>
3676 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
3677 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
3678 di->d_name[0] == 0) exit(0); exit(1);}
3680 if { (eval echo configure:3681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3682 echo yes - you are using the broken /usr/ucb/cc;cat >> confdefs.h <<\EOF
3683 #define HAVE_BROKEN_READDIR 1
3687 echo "configure: failed program was:" >&5
3688 cat conftest.$ac_ext >&5
3696 echo $ac_n "checking for utimbuf ... $ac_c"
3697 cat > conftest.$ac_ext <<EOF
3698 #line 3699 "configure"
3699 #include "confdefs.h"
3700 #include <sys/types.h>
3703 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
3706 if { (eval echo configure:3707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3708 echo yes;cat >> confdefs.h <<\EOF
3709 #define HAVE_UTIMBUF 1
3713 echo "configure: failed program was:" >&5
3714 cat conftest.$ac_ext >&5
3720 echo $ac_n "checking for ftruncate extend ... $ac_c"
3721 if test "$cross_compiling" = yes; then
3722 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3724 cat > conftest.$ac_ext <<EOF
3725 #line 3726 "configure"
3726 #include "confdefs.h"
3727 #include "tests/ftruncate.c"
3729 if { (eval echo configure:3730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3731 echo yes;cat >> confdefs.h <<\EOF
3732 #define HAVE_FTRUNCATE_EXTEND 1
3736 echo "configure: failed program was:" >&5
3737 cat conftest.$ac_ext >&5
3745 echo $ac_n "checking for broken getgroups ... $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"
3752 #include "tests/getgroups.c"
3754 if { (eval echo configure:3755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3756 echo yes;cat >> confdefs.h <<\EOF
3757 #define HAVE_BROKEN_GETGROUPS 1
3761 echo "configure: failed program was:" >&5
3762 cat conftest.$ac_ext >&5
3771 echo $ac_n "checking for broken inet_ntoa ... $ac_c"
3772 if test "$cross_compiling" = yes; then
3773 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3775 cat > conftest.$ac_ext <<EOF
3776 #line 3777 "configure"
3777 #include "confdefs.h"
3780 #include <sys/types.h>
3781 #include <netinet/in.h>
3782 #include <arpa/inet.h>
3783 main() { struct in_addr ip; ip.s_addr = 0x12345678;
3784 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
3785 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
3788 if { (eval echo configure:3789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3790 echo yes;cat >> confdefs.h <<\EOF
3791 #define REPLACE_INET_NTOA 1
3795 echo "configure: failed program was:" >&5
3796 cat conftest.$ac_ext >&5
3804 echo $ac_n "checking for root ... $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"
3811 main() { exit(getuid() != 0); }
3813 if { (eval echo configure:3814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3815 echo yes;cat >> confdefs.h <<\EOF
3820 echo "configure: failed program was:" >&5
3821 cat conftest.$ac_ext >&5
3823 echo WARNING: running as non-root will disable some tests;
3830 echo $ac_n "checking for netmask ifconf ... $ac_c"
3831 if test "$cross_compiling" = yes; then
3832 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3834 cat > conftest.$ac_ext <<EOF
3835 #line 3836 "configure"
3836 #include "confdefs.h"
3838 #define HAVE_NETMASK_IFCONF 1
3840 #include "netmask.c"
3842 if { (eval echo configure:3843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3844 echo yes;netmask=yes;cat >> confdefs.h <<\EOF
3845 #define HAVE_NETMASK_IFCONF 1
3849 echo "configure: failed program was:" >&5
3850 cat conftest.$ac_ext >&5
3858 if test $netmask = no; then
3859 echo $ac_n "checking for netmask ifreq ... $ac_c"
3860 if test "$cross_compiling" = yes; then
3861 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3863 cat > conftest.$ac_ext <<EOF
3864 #line 3865 "configure"
3865 #include "confdefs.h"
3867 #define HAVE_NETMASK_IFREQ 1
3869 #include "netmask.c"
3871 if { (eval echo configure:3872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3873 echo yes;netmask=yes;cat >> confdefs.h <<\EOF
3874 #define HAVE_NETMASK_IFREQ 1
3878 echo "configure: failed program was:" >&5
3879 cat conftest.$ac_ext >&5
3888 if test $netmask = no; then
3889 echo $ac_n "checking for netmask AIX ... $ac_c"
3890 if test "$cross_compiling" = yes; then
3891 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3893 cat > conftest.$ac_ext <<EOF
3894 #line 3895 "configure"
3895 #include "confdefs.h"
3897 #define HAVE_NETMASK_AIX 1
3899 #include "netmask.c"
3901 if { (eval echo configure:3902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3903 echo yes;netmask=yes;cat >> confdefs.h <<\EOF
3904 #define HAVE_NETMASK_AIX 1
3908 echo "configure: failed program was:" >&5
3909 cat conftest.$ac_ext >&5
3918 echo $ac_n "checking for trapdoor seteuid ... $ac_c"
3919 if test "$cross_compiling" = yes; then
3920 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3922 cat > conftest.$ac_ext <<EOF
3923 #line 3924 "configure"
3924 #include "confdefs.h"
3925 #include "tests/trapdoor.c"
3927 if { (eval echo configure:3928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3931 echo "configure: failed program was:" >&5
3932 cat conftest.$ac_ext >&5
3934 echo yes;cat >> confdefs.h <<\EOF
3935 #define HAVE_TRAPDOOR_UID 1
3943 echo $ac_n "checking for shared mmap ... $ac_c"
3944 if test "$cross_compiling" = yes; then
3945 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3947 cat > conftest.$ac_ext <<EOF
3948 #line 3949 "configure"
3949 #include "confdefs.h"
3950 #include "tests/shared_mmap.c"
3952 if { (eval echo configure:3953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3954 echo yes;cat >> confdefs.h <<\EOF
3955 #define HAVE_SHARED_MMAP 1
3959 echo "configure: failed program was:" >&5
3960 cat conftest.$ac_ext >&5
3968 echo $ac_n "checking for fcntl locking ... $ac_c"
3969 if test "$cross_compiling" = yes; then
3970 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3972 cat > conftest.$ac_ext <<EOF
3973 #line 3974 "configure"
3974 #include "confdefs.h"
3975 #include "tests/fcntl_lock.c"
3977 if { (eval echo configure:3978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3979 echo yes;cat >> confdefs.h <<\EOF
3980 #define HAVE_FCNTL_LOCK 1
3984 echo "configure: failed program was:" >&5
3985 cat conftest.$ac_ext >&5
3993 echo $ac_n "checking for sysv ipc ... $ac_c"
3994 if test "$cross_compiling" = yes; then
3995 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3997 cat > conftest.$ac_ext <<EOF
3998 #line 3999 "configure"
3999 #include "confdefs.h"
4000 #include "tests/sysv_ipc.c"
4002 if { (eval echo configure:4003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4004 echo yes;cat >> confdefs.h <<\EOF
4005 #define HAVE_SYSV_IPC 1
4009 echo "configure: failed program was:" >&5
4010 cat conftest.$ac_ext >&5
4018 #################################################
4019 # check for the AFS filesystem
4020 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
4021 echo "configure:4022: checking whether to use AFS" >&5
4022 # Check whether --with-afs or --without-afs was given.
4023 if test "${with_afs+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
4044 #################################################
4045 # check for the DFS auth system
4046 echo $ac_n "checking whether to use DFS auth""... $ac_c" 1>&6
4047 echo "configure:4048: checking whether to use DFS auth" >&5
4048 # Check whether --with-dfs or --without-dfs was given.
4049 if test "${with_dfs+set}" = set; then
4053 echo "$ac_t""yes" 1>&6
4054 cat >> confdefs.h <<\EOF
4060 echo "$ac_t""no" 1>&6
4064 echo "$ac_t""no" 1>&6
4069 #################################################
4070 # check for automount support
4071 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
4072 echo "configure:4073: checking whether to use AUTOMOUNT" >&5
4073 # Check whether --with-automount or --without-automount was given.
4074 if test "${with_automount+set}" = set; then
4075 withval="$with_automount"
4078 echo "$ac_t""yes" 1>&6
4079 cat >> confdefs.h <<\EOF
4080 #define WITH_AUTOMOUNT 1
4085 echo "$ac_t""no" 1>&6
4089 echo "$ac_t""no" 1>&6
4094 #################################################
4095 # check for a LDAP password database
4096 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
4097 echo "configure:4098: checking whether to use LDAP password database" >&5
4098 # Check whether --with-ldap or --without-ldap was given.
4099 if test "${with_ldap+set}" = set; then
4100 withval="$with_ldap"
4103 echo "$ac_t""yes" 1>&6
4104 cat >> confdefs.h <<\EOF
4110 echo "$ac_t""no" 1>&6
4114 echo "$ac_t""no" 1>&6
4119 #################################################
4120 # check for a NISPLUS password database
4121 echo $ac_n "checking whether to use NISPLUS password database""... $ac_c" 1>&6
4122 echo "configure:4123: checking whether to use NISPLUS password database" >&5
4123 # Check whether --with-nisplus or --without-nisplus was given.
4124 if test "${with_nisplus+set}" = set; then
4125 withval="$with_nisplus"
4128 echo "$ac_t""yes" 1>&6
4129 cat >> confdefs.h <<\EOF
4130 #define WITH_NISPLUS 1
4135 echo "$ac_t""no" 1>&6
4139 echo "$ac_t""no" 1>&6
4144 #################################################
4145 # check for a NISPLUS_HOME support
4146 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
4147 echo "configure:4148: checking whether to use NISPLUS_HOME" >&5
4148 # Check whether --with-nisplus-home or --without-nisplus-home was given.
4149 if test "${with_nisplus_home+set}" = set; then
4150 withval="$with_nisplus_home"
4153 echo "$ac_t""yes" 1>&6
4154 cat >> confdefs.h <<\EOF
4155 #define WITH_NISPLUS_HOME 1
4160 echo "$ac_t""no" 1>&6
4164 echo "$ac_t""no" 1>&6
4169 #################################################
4170 # check for the secure socket layer
4171 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
4172 echo "configure:4173: checking whether to use SSL" >&5
4173 # Check whether --with-ssl or --without-ssl was given.
4174 if test "${with_ssl+set}" = set; then
4178 echo "$ac_t""yes" 1>&6
4179 cat >> confdefs.h <<\EOF
4185 echo "$ac_t""no" 1>&6
4189 echo "$ac_t""no" 1>&6
4194 #################################################
4195 # check for experimental mmap support
4196 echo $ac_n "checking whether to use MMAP""... $ac_c" 1>&6
4197 echo "configure:4198: checking whether to use MMAP" >&5
4198 # Check whether --with-mmap or --without-mmap was given.
4199 if test "${with_mmap+set}" = set; then
4200 withval="$with_mmap"
4203 echo "$ac_t""yes" 1>&6
4204 cat >> confdefs.h <<\EOF
4210 echo "$ac_t""no" 1>&6
4214 echo "$ac_t""no" 1>&6
4219 #################################################
4220 # check for syslog logging
4221 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
4222 echo "configure:4223: checking whether to use syslog logging" >&5
4223 # Check whether --with-syslog or --without-syslog was given.
4224 if test "${with_syslog+set}" = set; then
4225 withval="$with_syslog"
4228 echo "$ac_t""yes" 1>&6
4229 cat >> confdefs.h <<\EOF
4230 #define WITH_SYSLOG 1
4235 echo "$ac_t""no" 1>&6
4239 echo "$ac_t""no" 1>&6
4245 #################################################
4246 # these tests are taken from the GNU fileutils package
4247 echo "checking how to get filesystem space usage" 1>&6
4248 echo "configure:4249: checking how to get filesystem space usage" >&5
4251 # Perform only the link test since it seems there are no variants of the
4252 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
4253 # because that got a false positive on SCO OSR5. Adding the declaration
4254 # of a `struct statvfs' causes this test to fail (as it should) on such
4255 # systems. That system is reported to work fine with STAT_STATFS4 which
4256 # is what it gets when this test fails.
4257 if test $space = no; then
4259 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
4260 echo "configure:4261: checking statvfs function (SVR4)" >&5
4261 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
4262 echo $ac_n "(cached) $ac_c" 1>&6
4264 cat > conftest.$ac_ext <<EOF
4265 #line 4266 "configure"
4266 #include "confdefs.h"
4267 #include <sys/types.h>
4268 #include <sys/statvfs.h>
4270 struct statvfs fsd; statvfs (0, &fsd);
4273 if { (eval echo configure:4274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4275 fu_cv_sys_stat_statvfs=yes
4277 echo "configure: failed program was:" >&5
4278 cat conftest.$ac_ext >&5
4280 fu_cv_sys_stat_statvfs=no
4285 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
4286 if test $fu_cv_sys_stat_statvfs = yes; then
4288 cat >> confdefs.h <<\EOF
4289 #define STAT_STATVFS 1
4295 if test $space = no; then
4296 # DEC Alpha running OSF/1
4297 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
4298 echo "configure:4299: checking for 3-argument statfs function (DEC OSF/1)" >&5
4299 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
4300 echo $ac_n "(cached) $ac_c" 1>&6
4302 if test "$cross_compiling" = yes; then
4303 fu_cv_sys_stat_statfs3_osf1=no
4305 cat > conftest.$ac_ext <<EOF
4306 #line 4307 "configure"
4307 #include "confdefs.h"
4309 #include <sys/param.h>
4310 #include <sys/types.h>
4311 #include <sys/mount.h>
4316 exit (statfs (".", &fsd, sizeof (struct statfs)));
4319 if { (eval echo configure:4320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4321 fu_cv_sys_stat_statfs3_osf1=yes
4323 echo "configure: failed program was:" >&5
4324 cat conftest.$ac_ext >&5
4326 fu_cv_sys_stat_statfs3_osf1=no
4333 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
4334 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
4336 cat >> confdefs.h <<\EOF
4337 #define STAT_STATFS3_OSF1 1
4343 if test $space = no; then
4345 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
4346 echo "configure:4347: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
4347 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
4348 echo $ac_n "(cached) $ac_c" 1>&6
4350 if test "$cross_compiling" = yes; then
4351 fu_cv_sys_stat_statfs2_bsize=no
4353 cat > conftest.$ac_ext <<EOF
4354 #line 4355 "configure"
4355 #include "confdefs.h"
4357 #ifdef HAVE_SYS_PARAM_H
4358 #include <sys/param.h>
4360 #ifdef HAVE_SYS_MOUNT_H
4361 #include <sys/mount.h>
4363 #ifdef HAVE_SYS_VFS_H
4364 #include <sys/vfs.h>
4370 exit (statfs (".", &fsd));
4373 if { (eval echo configure:4374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4375 fu_cv_sys_stat_statfs2_bsize=yes
4377 echo "configure: failed program was:" >&5
4378 cat conftest.$ac_ext >&5
4380 fu_cv_sys_stat_statfs2_bsize=no
4387 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
4388 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
4390 cat >> confdefs.h <<\EOF
4391 #define STAT_STATFS2_BSIZE 1
4397 if test $space = no; then
4399 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
4400 echo "configure:4401: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
4401 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
4402 echo $ac_n "(cached) $ac_c" 1>&6
4404 if test "$cross_compiling" = yes; then
4405 fu_cv_sys_stat_statfs4=no
4407 cat > conftest.$ac_ext <<EOF
4408 #line 4409 "configure"
4409 #include "confdefs.h"
4410 #include <sys/types.h>
4411 #include <sys/statfs.h>
4415 exit (statfs (".", &fsd, sizeof fsd, 0));
4418 if { (eval echo configure:4419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4420 fu_cv_sys_stat_statfs4=yes
4422 echo "configure: failed program was:" >&5
4423 cat conftest.$ac_ext >&5
4425 fu_cv_sys_stat_statfs4=no
4432 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
4433 if test $fu_cv_sys_stat_statfs4 = yes; then
4435 cat >> confdefs.h <<\EOF
4436 #define STAT_STATFS4 1
4442 if test $space = no; then
4444 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
4445 echo "configure:4446: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
4446 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
4447 echo $ac_n "(cached) $ac_c" 1>&6
4449 if test "$cross_compiling" = yes; then
4450 fu_cv_sys_stat_statfs2_fsize=no
4452 cat > conftest.$ac_ext <<EOF
4453 #line 4454 "configure"
4454 #include "confdefs.h"
4455 #include <sys/types.h>
4456 #ifdef HAVE_SYS_PARAM_H
4457 #include <sys/param.h>
4459 #ifdef HAVE_SYS_MOUNT_H
4460 #include <sys/mount.h>
4466 exit (statfs (".", &fsd));
4469 if { (eval echo configure:4470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4471 fu_cv_sys_stat_statfs2_fsize=yes
4473 echo "configure: failed program was:" >&5
4474 cat conftest.$ac_ext >&5
4476 fu_cv_sys_stat_statfs2_fsize=no
4483 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
4484 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
4486 cat >> confdefs.h <<\EOF
4487 #define STAT_STATFS2_FSIZE 1
4493 if test $space = no; then
4495 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
4496 echo "configure:4497: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
4497 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
4498 echo $ac_n "(cached) $ac_c" 1>&6
4500 if test "$cross_compiling" = yes; then
4501 fu_cv_sys_stat_fs_data=no
4503 cat > conftest.$ac_ext <<EOF
4504 #line 4505 "configure"
4505 #include "confdefs.h"
4506 #include <sys/types.h>
4507 #ifdef HAVE_SYS_PARAM_H
4508 #include <sys/param.h>
4510 #ifdef HAVE_SYS_MOUNT_H
4511 #include <sys/mount.h>
4513 #ifdef HAVE_SYS_FS_TYPES_H
4514 #include <sys/fs_types.h>
4519 /* Ultrix's statfs returns 1 for success,
4520 0 for not mounted, -1 for failure. */
4521 exit (statfs (".", &fsd) != 1);
4524 if { (eval echo configure:4525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4526 fu_cv_sys_stat_fs_data=yes
4528 echo "configure: failed program was:" >&5
4529 cat conftest.$ac_ext >&5
4531 fu_cv_sys_stat_fs_data=no
4538 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
4539 if test $fu_cv_sys_stat_fs_data = yes; then
4541 cat >> confdefs.h <<\EOF
4542 #define STAT_STATFS2_FS_DATA 1
4550 cat > confcache <<\EOF
4551 # This file is a shell script that caches the results of configure
4552 # tests run on this system so they can be shared between configure
4553 # scripts and configure runs. It is not useful on other systems.
4554 # If it contains results you don't want to keep, you may remove or edit it.
4556 # By default, configure uses ./config.cache as the cache file,
4557 # creating it if it does not exist already. You can give configure
4558 # the --cache-file=FILE option to use a different cache file; that is
4559 # what configure does when it calls configure scripts in
4560 # subdirectories, so they share the cache.
4561 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4562 # config.status only pays attention to the cache file if you give it the
4563 # --recheck option to rerun configure.
4566 # The following way of writing the cache mishandles newlines in values,
4567 # but we know of no workaround that is simple, portable, and efficient.
4568 # So, don't put newlines in cache variables' values.
4569 # Ultrix sh set writes to stderr and can't be redirected directly,
4570 # and sets the high bit in the cache file unless we assign to the vars.
4572 case `(ac_space=' '; set) 2>&1` in
4574 # `set' does not quote correctly, so add quotes (double-quote substitution
4575 # turns \\\\ into \\, and sed turns \\ into \).
4577 -e "s/'/'\\\\''/g" \
4578 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4581 # `set' quotes correctly as required by POSIX, so do not add quotes.
4582 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4585 if cmp -s $cache_file confcache; then
4588 if test -w $cache_file; then
4589 echo "updating cache $cache_file"
4590 cat confcache > $cache_file
4592 echo "not updating unwritable cache $cache_file"
4597 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4599 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4600 # Let make expand exec_prefix.
4601 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4603 # Any assignment to VPATH causes Sun make to only execute
4604 # the first set of double-colon rules, so remove it if not needed.
4605 # If there is a colon in the path, we need to keep it.
4606 if test "x$srcdir" = x.; then
4607 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4610 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4612 DEFS=-DHAVE_CONFIG_H
4614 # Without the "./", some shells look in PATH for config.status.
4615 : ${CONFIG_STATUS=./config.status}
4617 echo creating $CONFIG_STATUS
4618 rm -f $CONFIG_STATUS
4619 cat > $CONFIG_STATUS <<EOF
4621 # Generated automatically by configure.
4622 # Run this file to recreate the current configuration.
4623 # This directory was configured as follows,
4624 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4626 # $0 $ac_configure_args
4628 # Compiler output produced by configure, useful for debugging
4629 # configure, is in ./config.log if it exists.
4631 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4634 case "\$ac_option" in
4635 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4636 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4637 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4638 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4639 echo "$CONFIG_STATUS generated by autoconf version 2.12"
4641 -help | --help | --hel | --he | --h)
4642 echo "\$ac_cs_usage"; exit 0 ;;
4643 *) echo "\$ac_cs_usage"; exit 1 ;;
4647 ac_given_srcdir=$srcdir
4648 ac_given_INSTALL="$INSTALL"
4650 trap 'rm -fr `echo "Makefile tests/dummy client/dummy lib/dummy lib/rpc/dummy
4651 lib/rpc/client/dummy lib/rpc/include/dummy lib/rpc/parse/dummy
4652 lib/rpc/server/dummy lib/smb/dummy ubiqx/dummy web/dummy config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4654 cat >> $CONFIG_STATUS <<EOF
4656 # Protect against being on the right side of a sed subst in config.status.
4657 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4658 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4661 s%@CFLAGS@%$CFLAGS%g
4662 s%@CPPFLAGS@%$CPPFLAGS%g
4663 s%@CXXFLAGS@%$CXXFLAGS%g
4665 s%@LDFLAGS@%$LDFLAGS%g
4667 s%@exec_prefix@%$exec_prefix%g
4668 s%@prefix@%$prefix%g
4669 s%@program_transform_name@%$program_transform_name%g
4670 s%@bindir@%$bindir%g
4671 s%@sbindir@%$sbindir%g
4672 s%@libexecdir@%$libexecdir%g
4673 s%@datadir@%$datadir%g
4674 s%@sysconfdir@%$sysconfdir%g
4675 s%@sharedstatedir@%$sharedstatedir%g
4676 s%@localstatedir@%$localstatedir%g
4677 s%@libdir@%$libdir%g
4678 s%@includedir@%$includedir%g
4679 s%@oldincludedir@%$oldincludedir%g
4680 s%@infodir@%$infodir%g
4681 s%@mandir@%$mandir%g
4683 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4684 s%@INSTALL_DATA@%$INSTALL_DATA%g
4688 s%@host_alias@%$host_alias%g
4689 s%@host_cpu@%$host_cpu%g
4690 s%@host_vendor@%$host_vendor%g
4691 s%@host_os@%$host_os%g
4692 s%@target@%$target%g
4693 s%@target_alias@%$target_alias%g
4694 s%@target_cpu@%$target_cpu%g
4695 s%@target_vendor@%$target_vendor%g
4696 s%@target_os@%$target_os%g
4698 s%@build_alias@%$build_alias%g
4699 s%@build_cpu@%$build_cpu%g
4700 s%@build_vendor@%$build_vendor%g
4701 s%@build_os@%$build_os%g
4703 s%@LIBOBJS@%$LIBOBJS%g
4708 cat >> $CONFIG_STATUS <<\EOF
4710 # Split the substitutions into bite-sized pieces for seds with
4711 # small command number limits, like on Digital OSF/1 and HP-UX.
4712 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4713 ac_file=1 # Number of current file.
4714 ac_beg=1 # First line for current file.
4715 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4718 while $ac_more_lines; do
4719 if test $ac_beg -gt 1; then
4720 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4722 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4724 if test ! -s conftest.s$ac_file; then
4726 rm -f conftest.s$ac_file
4728 if test -z "$ac_sed_cmds"; then
4729 ac_sed_cmds="sed -f conftest.s$ac_file"
4731 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4733 ac_file=`expr $ac_file + 1`
4735 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4738 if test -z "$ac_sed_cmds"; then
4743 cat >> $CONFIG_STATUS <<EOF
4745 CONFIG_FILES=\${CONFIG_FILES-"Makefile tests/dummy client/dummy lib/dummy lib/rpc/dummy
4746 lib/rpc/client/dummy lib/rpc/include/dummy lib/rpc/parse/dummy
4747 lib/rpc/server/dummy lib/smb/dummy ubiqx/dummy web/dummy"}
4749 cat >> $CONFIG_STATUS <<\EOF
4750 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4751 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4753 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4754 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4755 *) ac_file_in="${ac_file}.in" ;;
4758 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4760 # Remove last slash and all that follows it. Not all systems have dirname.
4761 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4762 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4763 # The file is in a subdirectory.
4764 test ! -d "$ac_dir" && mkdir "$ac_dir"
4765 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4766 # A "../" for each directory in $ac_dir_suffix.
4767 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4769 ac_dir_suffix= ac_dots=
4772 case "$ac_given_srcdir" in
4774 if test -z "$ac_dots"; then top_srcdir=.
4775 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4776 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4778 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4779 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4782 case "$ac_given_INSTALL" in
4783 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4784 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4787 echo creating "$ac_file"
4789 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4791 *Makefile*) ac_comsub="1i\\
4792 # $configure_input" ;;
4796 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4798 s%@configure_input@%$configure_input%g
4799 s%@srcdir@%$srcdir%g
4800 s%@top_srcdir@%$top_srcdir%g
4801 s%@INSTALL@%$INSTALL%g
4802 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4806 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4807 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4809 # ac_d sets the value in "#define NAME VALUE" lines.
4810 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4811 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4814 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4815 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4816 ac_uB='\([ ]\)%\1#\2define\3'
4819 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4820 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4821 ac_eB='$%\1#\2define\3'
4825 if test "${CONFIG_HEADERS+set}" != set; then
4827 cat >> $CONFIG_STATUS <<EOF
4828 CONFIG_HEADERS="config.h"
4830 cat >> $CONFIG_STATUS <<\EOF
4832 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4833 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4835 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4836 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4837 *) ac_file_in="${ac_file}.in" ;;
4840 echo creating $ac_file
4842 rm -f conftest.frag conftest.in conftest.out
4843 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4844 cat $ac_file_inputs > conftest.in
4848 # Transform confdefs.h into a sed script conftest.vals that substitutes
4849 # the proper values into config.h.in to produce config.h. And first:
4850 # Protect against being on the right side of a sed subst in config.status.
4851 # Protect against being in an unquoted here document in config.status.
4853 cat > conftest.hdr <<\EOF
4856 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4860 sed -n -f conftest.hdr confdefs.h > conftest.vals
4863 # This sed command replaces #undef with comments. This is necessary, for
4864 # example, in the case of _POSIX_SOURCE, which is predefined and required
4865 # on some systems where configure will not decide to define it.
4866 cat >> conftest.vals <<\EOF
4867 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4870 # Break up conftest.vals because some shells have a limit on
4871 # the size of here documents, and old seds have small limits too.
4876 ac_lines=`grep -c . conftest.vals`
4877 # grep -c gives empty output for an empty file on some AIX systems.
4878 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4879 # Write a limited-size here document to conftest.frag.
4880 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4881 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4883 sed -f conftest.frag conftest.in > conftest.out
4885 mv conftest.out conftest.in
4887 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4889 mv conftest.tail conftest.vals
4893 cat >> $CONFIG_STATUS <<\EOF
4894 rm -f conftest.frag conftest.h
4895 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4896 cat conftest.in >> conftest.h
4898 if cmp -s $ac_file conftest.h 2>/dev/null; then
4899 echo "$ac_file is unchanged"
4902 # Remove last slash and all that follows it. Not all systems have dirname.
4903 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4904 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4905 # The file is in a subdirectory.
4906 test ! -d "$ac_dir" && mkdir "$ac_dir"
4909 mv conftest.h $ac_file
4914 cat >> $CONFIG_STATUS <<EOF
4917 cat >> $CONFIG_STATUS <<\EOF
4921 chmod +x $CONFIG_STATUS
4922 rm -fr confdefs* $ac_clean_files
4923 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1