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 --enable-maintainer-mode enable some make rules for maintainers"
17 --with-afs Include AFS support
18 --without-afs Don't include AFS support (default)"
20 --with-dfs Include DFS support
21 --without-dfs Don't include DFS support (default)"
23 --with-krb4=base-dir Include Kerberos IV support
24 --whithout-krb4 Don't include Kerbers IV support (default)"
26 --with-automount Include AUTOMOUNT support
27 --without-automount Don't include AUTOMOUNT support (default)"
29 --with-smbmount Include SMBMOUNT (Linux only) support
30 --without-smbmount Don't include SMBMOUNT support (default)"
32 --with-ldap Include LDAP support
33 --without-ldap Don't include LDAP support (default)"
35 --with-nisplus Include NISPLUS password database support
36 --without-nisplus Don't include NISPLUS password database support (default)"
38 --with-nisplus-home Include NISPLUS_HOME support
39 --without-nisplus-home Don't include NISPLUS_HOME support (default)"
41 --with-ssl Include SSL support
42 --without-ssl Don't include SSL support (default)"
44 --with-mmap Include experimental MMAP support
45 --without-mmap Don't include MMAP support (default)"
47 --with-syslog Include experimental SYSLOG support
48 --without-syslog Don't include SYSLOG support (default)"
50 --with-netatalk Include experimental Netatalk support
51 --without-netatalk Don't include experimental Netatalk support (default)"
53 --with-quotas Include experimental disk-quota support
54 --without-quotas Don't include experimental disk-quota support (default)"
56 # Initialize some variables set by options.
57 # The variables have the same names as the options, with
58 # dashes changed to underlines.
60 cache_file=./config.cache
69 program_transform_name=s,x,x,
77 bindir='${exec_prefix}/bin'
78 sbindir='${exec_prefix}/sbin'
79 libexecdir='${exec_prefix}/libexec'
80 datadir='${prefix}/share'
81 sysconfdir='${prefix}/etc'
82 sharedstatedir='${prefix}/com'
83 localstatedir='${prefix}/var'
84 libdir='${exec_prefix}/lib'
85 includedir='${prefix}/include'
86 oldincludedir='/usr/include'
87 infodir='${prefix}/info'
88 mandir='${prefix}/man'
90 # Initialize some other variables.
93 # Maximum number of lines to put in a shell here document.
100 # If the previous option needs an argument, assign it.
101 if test -n "$ac_prev"; then
102 eval "$ac_prev=\$ac_option"
108 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
112 # Accept the important Cygnus configure options, so we can diagnose typos.
116 -bindir | --bindir | --bindi | --bind | --bin | --bi)
118 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
119 bindir="$ac_optarg" ;;
121 -build | --build | --buil | --bui | --bu)
123 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
124 build="$ac_optarg" ;;
126 -cache-file | --cache-file | --cache-fil | --cache-fi \
127 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
128 ac_prev=cache_file ;;
129 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
130 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
131 cache_file="$ac_optarg" ;;
133 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
135 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
137 datadir="$ac_optarg" ;;
139 -disable-* | --disable-*)
140 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
141 # Reject names that are not valid shell variable names.
142 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
143 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
145 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
146 eval "enable_${ac_feature}=no" ;;
148 -enable-* | --enable-*)
149 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
150 # Reject names that are not valid shell variable names.
151 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
152 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
154 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
159 eval "enable_${ac_feature}='$ac_optarg'" ;;
161 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
162 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
163 | --exec | --exe | --ex)
164 ac_prev=exec_prefix ;;
165 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
166 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
167 | --exec=* | --exe=* | --ex=*)
168 exec_prefix="$ac_optarg" ;;
170 -gas | --gas | --ga | --g)
171 # Obsolete; use --with-gas.
174 -help | --help | --hel | --he)
175 # Omit some internal or obsolete options to make the list less imposing.
176 # This message is too long to be a string in the A/UX 3.1 sh.
178 Usage: configure [options] [host]
179 Options: [defaults in brackets after descriptions]
181 --cache-file=FILE cache test results in FILE
182 --help print this message
183 --no-create do not create output files
184 --quiet, --silent do not print \`checking...' messages
185 --version print the version of autoconf that created configure
186 Directory and file names:
187 --prefix=PREFIX install architecture-independent files in PREFIX
189 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
191 --bindir=DIR user executables in DIR [EPREFIX/bin]
192 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
193 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
194 --datadir=DIR read-only architecture-independent data in DIR
196 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
197 --sharedstatedir=DIR modifiable architecture-independent data in DIR
199 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
200 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
201 --includedir=DIR C header files in DIR [PREFIX/include]
202 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
203 --infodir=DIR info documentation in DIR [PREFIX/info]
204 --mandir=DIR man documentation in DIR [PREFIX/man]
205 --srcdir=DIR find the sources in DIR [configure dir or ..]
206 --program-prefix=PREFIX prepend PREFIX to installed program names
207 --program-suffix=SUFFIX append SUFFIX to installed program names
208 --program-transform-name=PROGRAM
209 run sed PROGRAM on installed program names
213 --build=BUILD configure for building on BUILD [BUILD=HOST]
214 --host=HOST configure for HOST [guessed]
215 --target=TARGET configure for TARGET [TARGET=HOST]
216 Features and packages:
217 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
218 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
219 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
220 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
221 --x-includes=DIR X include files are in DIR
222 --x-libraries=DIR X library files are in DIR
224 if test -n "$ac_help"; then
225 echo "--enable and --with options recognized:$ac_help"
229 -host | --host | --hos | --ho)
231 -host=* | --host=* | --hos=* | --ho=*)
234 -includedir | --includedir | --includedi | --included | --include \
235 | --includ | --inclu | --incl | --inc)
236 ac_prev=includedir ;;
237 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
238 | --includ=* | --inclu=* | --incl=* | --inc=*)
239 includedir="$ac_optarg" ;;
241 -infodir | --infodir | --infodi | --infod | --info | --inf)
243 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
244 infodir="$ac_optarg" ;;
246 -libdir | --libdir | --libdi | --libd)
248 -libdir=* | --libdir=* | --libdi=* | --libd=*)
249 libdir="$ac_optarg" ;;
251 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
252 | --libexe | --libex | --libe)
253 ac_prev=libexecdir ;;
254 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
255 | --libexe=* | --libex=* | --libe=*)
256 libexecdir="$ac_optarg" ;;
258 -localstatedir | --localstatedir | --localstatedi | --localstated \
259 | --localstate | --localstat | --localsta | --localst \
260 | --locals | --local | --loca | --loc | --lo)
261 ac_prev=localstatedir ;;
262 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
263 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
264 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
265 localstatedir="$ac_optarg" ;;
267 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
269 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
270 mandir="$ac_optarg" ;;
273 # Obsolete; use --without-fp.
276 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
280 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
281 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
284 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
285 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
286 | --oldin | --oldi | --old | --ol | --o)
287 ac_prev=oldincludedir ;;
288 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
289 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
290 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
291 oldincludedir="$ac_optarg" ;;
293 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
295 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
296 prefix="$ac_optarg" ;;
298 -program-prefix | --program-prefix | --program-prefi | --program-pref \
299 | --program-pre | --program-pr | --program-p)
300 ac_prev=program_prefix ;;
301 -program-prefix=* | --program-prefix=* | --program-prefi=* \
302 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
303 program_prefix="$ac_optarg" ;;
305 -program-suffix | --program-suffix | --program-suffi | --program-suff \
306 | --program-suf | --program-su | --program-s)
307 ac_prev=program_suffix ;;
308 -program-suffix=* | --program-suffix=* | --program-suffi=* \
309 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
310 program_suffix="$ac_optarg" ;;
312 -program-transform-name | --program-transform-name \
313 | --program-transform-nam | --program-transform-na \
314 | --program-transform-n | --program-transform- \
315 | --program-transform | --program-transfor \
316 | --program-transfo | --program-transf \
317 | --program-trans | --program-tran \
318 | --progr-tra | --program-tr | --program-t)
319 ac_prev=program_transform_name ;;
320 -program-transform-name=* | --program-transform-name=* \
321 | --program-transform-nam=* | --program-transform-na=* \
322 | --program-transform-n=* | --program-transform-=* \
323 | --program-transform=* | --program-transfor=* \
324 | --program-transfo=* | --program-transf=* \
325 | --program-trans=* | --program-tran=* \
326 | --progr-tra=* | --program-tr=* | --program-t=*)
327 program_transform_name="$ac_optarg" ;;
329 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
330 | -silent | --silent | --silen | --sile | --sil)
333 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
335 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
337 sbindir="$ac_optarg" ;;
339 -sharedstatedir | --sharedstatedir | --sharedstatedi \
340 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
341 | --sharedst | --shareds | --shared | --share | --shar \
343 ac_prev=sharedstatedir ;;
344 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
345 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
346 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
348 sharedstatedir="$ac_optarg" ;;
350 -site | --site | --sit)
352 -site=* | --site=* | --sit=*)
355 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
357 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
358 srcdir="$ac_optarg" ;;
360 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
361 | --syscon | --sysco | --sysc | --sys | --sy)
362 ac_prev=sysconfdir ;;
363 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
364 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
365 sysconfdir="$ac_optarg" ;;
367 -target | --target | --targe | --targ | --tar | --ta | --t)
369 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
370 target="$ac_optarg" ;;
372 -v | -verbose | --verbose | --verbos | --verbo | --verb)
375 -version | --version | --versio | --versi | --vers)
376 echo "configure generated by autoconf version 2.12"
380 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
381 # Reject names that are not valid shell variable names.
382 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
383 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
385 ac_package=`echo $ac_package| sed 's/-/_/g'`
390 eval "with_${ac_package}='$ac_optarg'" ;;
392 -without-* | --without-*)
393 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
394 # Reject names that are not valid shell variable names.
395 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
396 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
398 ac_package=`echo $ac_package| sed 's/-/_/g'`
399 eval "with_${ac_package}=no" ;;
402 # Obsolete; use --with-x.
405 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
406 | --x-incl | --x-inc | --x-in | --x-i)
407 ac_prev=x_includes ;;
408 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
409 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
410 x_includes="$ac_optarg" ;;
412 -x-libraries | --x-libraries | --x-librarie | --x-librari \
413 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
414 ac_prev=x_libraries ;;
415 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
416 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
417 x_libraries="$ac_optarg" ;;
419 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
423 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
424 echo "configure: warning: $ac_option: invalid host type" 1>&2
426 if test "x$nonopt" != xNONE; then
427 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
435 if test -n "$ac_prev"; then
436 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
439 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
441 # File descriptor usage:
444 # 2 errors and warnings
445 # 3 some systems may open it to /dev/tty
446 # 4 used on the Kubota Titan
447 # 6 checking for... messages and results
448 # 5 compiler messages saved in config.log
449 if test "$silent" = yes; then
457 This file contains any messages produced by compilers while
458 running configure, to aid debugging if configure makes a mistake.
461 # Strip out --no-create and --no-recursion so they do not pile up.
462 # Also quote any args containing shell metacharacters.
467 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
468 | --no-cr | --no-c) ;;
469 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
470 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
471 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
472 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
473 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
478 # Only set these to C if already set. These must not be set unconditionally
479 # because not all systems understand e.g. LANG=C (notably SCO).
480 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
481 # Non-C LC_CTYPE values break the ctype check.
482 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
483 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
484 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
485 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
487 # confdefs.h avoids OS command line length limits that DEFS can exceed.
488 rm -rf conftest* confdefs.h
489 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
492 # A filename unique to this package, relative to the directory that
493 # configure is in, which we can look for to find out if srcdir is correct.
494 ac_unique_file=include/includes.h
496 # Find the source files, if location was not specified.
497 if test -z "$srcdir"; then
498 ac_srcdir_defaulted=yes
499 # Try the directory containing this script, then its parent.
501 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
502 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
504 if test ! -r $srcdir/$ac_unique_file; then
508 ac_srcdir_defaulted=no
510 if test ! -r $srcdir/$ac_unique_file; then
511 if test "$ac_srcdir_defaulted" = yes; then
512 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
514 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
517 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
519 # Prefer explicitly selected file to automatically selected ones.
520 if test -z "$CONFIG_SITE"; then
521 if test "x$prefix" != xNONE; then
522 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
524 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
527 for ac_site_file in $CONFIG_SITE; do
528 if test -r "$ac_site_file"; then
529 echo "loading site script $ac_site_file"
534 if test -r "$cache_file"; then
535 echo "loading cache $cache_file"
538 echo "creating cache $cache_file"
543 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
544 ac_cpp='$CPP $CPPFLAGS'
545 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
546 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
547 cross_compiling=$ac_cv_prog_cc_cross
549 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
550 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
551 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
558 ac_n= ac_c='\c' ac_t=
564 # Extract the first word of "gcc", so it can be a program name with args.
565 set dummy gcc; ac_word=$2
566 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
567 echo "configure:568: checking for $ac_word" >&5
568 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
569 echo $ac_n "(cached) $ac_c" 1>&6
571 if test -n "$CC"; then
572 ac_cv_prog_CC="$CC" # Let the user override the test.
574 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
575 for ac_dir in $PATH; do
576 test -z "$ac_dir" && ac_dir=.
577 if test -f $ac_dir/$ac_word; then
586 if test -n "$CC"; then
587 echo "$ac_t""$CC" 1>&6
589 echo "$ac_t""no" 1>&6
592 if test -z "$CC"; then
593 # Extract the first word of "cc", so it can be a program name with args.
594 set dummy cc; ac_word=$2
595 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
596 echo "configure:597: checking for $ac_word" >&5
597 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
598 echo $ac_n "(cached) $ac_c" 1>&6
600 if test -n "$CC"; then
601 ac_cv_prog_CC="$CC" # Let the user override the test.
603 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
605 for ac_dir in $PATH; do
606 test -z "$ac_dir" && ac_dir=.
607 if test -f $ac_dir/$ac_word; then
608 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
617 if test $ac_prog_rejected = yes; then
618 # We found a bogon in the path, so make sure we never use it.
619 set dummy $ac_cv_prog_CC
621 if test $# -gt 0; then
622 # We chose a different compiler from the bogus one.
623 # However, it has the same basename, so the bogon will be chosen
624 # first if we set CC to just the basename; use the full file name.
626 set dummy "$ac_dir/$ac_word" "$@"
634 if test -n "$CC"; then
635 echo "$ac_t""$CC" 1>&6
637 echo "$ac_t""no" 1>&6
640 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
643 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
644 echo "configure:645: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
647 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
648 ac_cpp='$CPP $CPPFLAGS'
649 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
650 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
651 cross_compiling=$ac_cv_prog_cc_cross
653 cat > conftest.$ac_ext <<EOF
654 #line 655 "configure"
655 #include "confdefs.h"
658 if { (eval echo configure:659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
659 ac_cv_prog_cc_works=yes
660 # If we can't run a trivial program, we are probably using a cross compiler.
661 if (./conftest; exit) 2>/dev/null; then
662 ac_cv_prog_cc_cross=no
664 ac_cv_prog_cc_cross=yes
667 echo "configure: failed program was:" >&5
668 cat conftest.$ac_ext >&5
669 ac_cv_prog_cc_works=no
673 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
674 if test $ac_cv_prog_cc_works = no; then
675 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
677 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
678 echo "configure:679: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
679 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
680 cross_compiling=$ac_cv_prog_cc_cross
682 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
683 echo "configure:684: checking whether we are using GNU C" >&5
684 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
685 echo $ac_n "(cached) $ac_c" 1>&6
687 cat > conftest.c <<EOF
692 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:693: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
699 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
701 if test $ac_cv_prog_gcc = yes; then
703 ac_test_CFLAGS="${CFLAGS+set}"
704 ac_save_CFLAGS="$CFLAGS"
706 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
707 echo "configure:708: checking whether ${CC-cc} accepts -g" >&5
708 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
709 echo $ac_n "(cached) $ac_c" 1>&6
711 echo 'void f(){}' > conftest.c
712 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
721 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
722 if test "$ac_test_CFLAGS" = set; then
723 CFLAGS="$ac_save_CFLAGS"
724 elif test $ac_cv_prog_cc_g = yes; then
731 test "${CFLAGS+set}" = set || CFLAGS="-g"
735 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
736 if test -f $ac_dir/install-sh; then
738 ac_install_sh="$ac_aux_dir/install-sh -c"
740 elif test -f $ac_dir/install.sh; then
742 ac_install_sh="$ac_aux_dir/install.sh -c"
746 if test -z "$ac_aux_dir"; then
747 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
749 ac_config_guess=$ac_aux_dir/config.guess
750 ac_config_sub=$ac_aux_dir/config.sub
751 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
753 # Find a good install program. We prefer a C program (faster),
754 # so one script is as good as another. But avoid the broken or
755 # incompatible versions:
756 # SysV /etc/install, /usr/sbin/install
757 # SunOS /usr/etc/install
760 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
761 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
762 # ./install, which can be erroneously created by make from ./install.sh.
763 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
764 echo "configure:765: checking for a BSD compatible install" >&5
765 if test -z "$INSTALL"; then
766 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
767 echo $ac_n "(cached) $ac_c" 1>&6
769 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
770 for ac_dir in $PATH; do
771 # Account for people who put trailing slashes in PATH elements.
773 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
775 # OSF1 and SCO ODT 3.0 have their own names for install.
776 for ac_prog in ginstall installbsd scoinst install; do
777 if test -f $ac_dir/$ac_prog; then
778 if test $ac_prog = install &&
779 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
780 # AIX install. It has an incompatible calling convention.
781 # OSF/1 installbsd also uses dspmsg, but is usable.
784 ac_cv_path_install="$ac_dir/$ac_prog -c"
795 if test "${ac_cv_path_install+set}" = set; then
796 INSTALL="$ac_cv_path_install"
798 # As a last resort, use the slow shell script. We don't cache a
799 # path for INSTALL within a source directory, because that will
800 # break other packages using the cache if that directory is
801 # removed, or if the path is relative.
802 INSTALL="$ac_install_sh"
805 echo "$ac_t""$INSTALL" 1>&6
807 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
808 # It thinks the first close brace ends the variable substitution.
809 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
811 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
820 for ac_prog in mawk gawk nawk awk
822 # Extract the first word of "$ac_prog", so it can be a program name with args.
823 set dummy $ac_prog; ac_word=$2
824 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
825 echo "configure:826: checking for $ac_word" >&5
826 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
827 echo $ac_n "(cached) $ac_c" 1>&6
829 if test -n "$AWK"; then
830 ac_cv_prog_AWK="$AWK" # Let the user override the test.
832 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
833 for ac_dir in $PATH; do
834 test -z "$ac_dir" && ac_dir=.
835 if test -f $ac_dir/$ac_word; then
836 ac_cv_prog_AWK="$ac_prog"
843 AWK="$ac_cv_prog_AWK"
844 if test -n "$AWK"; then
845 echo "$ac_t""$AWK" 1>&6
847 echo "$ac_t""no" 1>&6
850 test -n "$AWK" && break
855 # Do some error checking and defaulting for the host and target type.
857 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
860 # 1. You are not allowed to specify --host, --target, and nonopt at the
862 # 2. Host defaults to nonopt.
863 # 3. If nonopt is not specified, then host defaults to the current host,
864 # as determined by config.guess.
865 # 4. Target and build default to nonopt.
866 # 5. If nonopt is not specified, then target and build default to host.
868 # The aliases save the names the user supplied, while $host etc.
869 # will get canonicalized.
870 case $host---$target---$nonopt in
871 NONE---*---* | *---NONE---* | *---*---NONE) ;;
872 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
876 # Make sure we can run config.sub.
877 if $ac_config_sub sun4 >/dev/null 2>&1; then :
878 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
881 echo $ac_n "checking host system type""... $ac_c" 1>&6
882 echo "configure:883: checking host system type" >&5
885 case "$host_alias" in
889 if host_alias=`$ac_config_guess`; then :
890 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
892 *) host_alias=$nonopt ;;
896 host=`$ac_config_sub $host_alias`
897 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
898 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
899 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
900 echo "$ac_t""$host" 1>&6
902 echo $ac_n "checking target system type""... $ac_c" 1>&6
903 echo "configure:904: checking target system type" >&5
906 case "$target_alias" in
909 NONE) target_alias=$host_alias ;;
910 *) target_alias=$nonopt ;;
914 target=`$ac_config_sub $target_alias`
915 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
916 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
917 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
918 echo "$ac_t""$target" 1>&6
920 echo $ac_n "checking build system type""... $ac_c" 1>&6
921 echo "configure:922: checking build system type" >&5
924 case "$build_alias" in
927 NONE) build_alias=$host_alias ;;
928 *) build_alias=$nonopt ;;
932 build=`$ac_config_sub $build_alias`
933 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
934 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
935 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
936 echo "$ac_t""$build" 1>&6
938 test "$host_alias" != "$target_alias" &&
939 test "$program_prefix$program_suffix$program_transform_name" = \
941 program_prefix=${target_alias}-
945 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
946 echo "configure:947: checking config.cache system type" >&5
947 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
948 test x"$ac_cv_host_system_type" != x"$host"; } ||
949 { test x"${ac_cv_build_system_type+set}" = x"set" &&
950 test x"$ac_cv_build_system_type" != x"$build"; } ||
951 { test x"${ac_cv_target_system_type+set}" = x"set" &&
952 test x"$ac_cv_target_system_type" != x"$target"; }; then
953 echo "$ac_t""different" 1>&6
954 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
956 echo "$ac_t""same" 1>&6
958 ac_cv_host_system_type="$host"
959 ac_cv_build_system_type="$build"
960 ac_cv_target_system_type="$target"
963 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
964 if test "${enable_maintainer_mode+set}" = set; then
965 enableval="$enable_maintainer_mode"
966 maint_mode=$enableval
971 if test x"$maint_mode" = x"yes"; then MAINT=; else MAINT='#'; fi
973 # Extract the first word of "autoconf", so it can be a program name with args.
974 set dummy autoconf; ac_word=$2
975 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
976 echo "configure:977: checking for $ac_word" >&5
977 if eval "test \"`echo '$''{'ac_cv_path_AUTOCONF'+set}'`\" = set"; then
978 echo $ac_n "(cached) $ac_c" 1>&6
982 ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a path.
985 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
986 for ac_dir in $PATH; do
987 test -z "$ac_dir" && ac_dir=.
988 if test -f $ac_dir/$ac_word; then
989 ac_cv_path_AUTOCONF="$ac_dir/$ac_word"
994 test -z "$ac_cv_path_AUTOCONF" && ac_cv_path_AUTOCONF="autoconf"
998 AUTOCONF="$ac_cv_path_AUTOCONF"
999 if test -n "$AUTOCONF"; then
1000 echo "$ac_t""$AUTOCONF" 1>&6
1002 echo "$ac_t""no" 1>&6
1006 # Extract the first word of "autoheader", so it can be a program name with args.
1007 set dummy autoheader; ac_word=$2
1008 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1009 echo "configure:1010: checking for $ac_word" >&5
1010 if eval "test \"`echo '$''{'ac_cv_path_AUTOHEADER'+set}'`\" = set"; then
1011 echo $ac_n "(cached) $ac_c" 1>&6
1013 case "$AUTOHEADER" in
1015 ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a path.
1018 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1019 for ac_dir in $PATH; do
1020 test -z "$ac_dir" && ac_dir=.
1021 if test -f $ac_dir/$ac_word; then
1022 ac_cv_path_AUTOHEADER="$ac_dir/$ac_word"
1027 test -z "$ac_cv_path_AUTOHEADER" && ac_cv_path_AUTOHEADER="autoheader"
1031 AUTOHEADER="$ac_cv_path_AUTOHEADER"
1032 if test -n "$AUTOHEADER"; then
1033 echo "$ac_t""$AUTOHEADER" 1>&6
1035 echo "$ac_t""no" 1>&6
1043 # this bit needs to be modified for each OS that is suported by
1044 # smbwrapper. You need to specify how to created a shared library and
1045 # how to compile C code to produce PIC object files
1047 # these are the defaults, good for lots of systems
1051 # and these are for particular systems
1053 *linux*) cat >> confdefs.h <<\EOF
1057 *solaris*) cat >> confdefs.h <<\EOF
1063 *sunos*) cat >> confdefs.h <<\EOF
1069 *bsd*) LDSHFLAGS="-shared -Bshareable"
1071 *irix*) cat >> confdefs.h <<\EOF
1075 WRAP32=bin/smbwrapper.32.so
1077 *aix*) cat >> confdefs.h <<\EOF
1081 *hpux*) cat >> confdefs.h <<\EOF
1085 *qnx*) cat >> confdefs.h <<\EOF
1089 *osf*) cat >> confdefs.h <<\EOF
1093 *sco*) cat >> confdefs.h <<\EOF
1097 *next2*) cat >> confdefs.h <<\EOF
1104 # try to work out how to produce pic code with this compiler
1106 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
1107 echo "configure:1108: checking whether ${CC-cc} accepts -fpic" >&5
1108 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
1109 echo $ac_n "(cached) $ac_c" 1>&6
1111 echo 'void f(){}' > conftest.c
1112 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
1113 ac_cv_prog_cc_fpic=yes
1115 ac_cv_prog_cc_fpic=no
1121 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
1122 if test $ac_cv_prog_cc_fpic = yes; then
1125 if test x$PICFLAG = x; then
1126 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
1127 echo "configure:1128: checking whether ${CC-cc} accepts -Kpic" >&5
1128 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
1129 echo $ac_n "(cached) $ac_c" 1>&6
1131 echo 'void f(){}' > conftest.c
1132 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
1133 ac_cv_prog_cc_Kpic=yes
1135 ac_cv_prog_cc_Kpic=no
1141 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
1142 if test $ac_cv_prog_cc_Kpic = yes; then
1146 if test x$PICFLAG = x; then
1147 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
1148 echo "configure:1149: checking whether ${CC-cc} accepts -KPIC" >&5
1149 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
1150 echo $ac_n "(cached) $ac_c" 1>&6
1152 echo 'void f(){}' > conftest.c
1153 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
1154 ac_cv_prog_cc_KPIC=yes
1156 ac_cv_prog_cc_KPIC=no
1162 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
1163 if test $ac_cv_prog_cc_KPIC = yes; then
1168 # we can only support smbsh and smbwrapper if we can produce PIC code
1169 if test x$PICFLAG = x; then
1170 echo No support for PIC code - disabling smbwrapper and smbsh
1173 WRAP="bin/smbsh bin/smbwrapper.so"
1176 echo $ac_n "checking for inline""... $ac_c" 1>&6
1177 echo "configure:1178: checking for inline" >&5
1178 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1179 echo $ac_n "(cached) $ac_c" 1>&6
1182 for ac_kw in inline __inline__ __inline; do
1183 cat > conftest.$ac_ext <<EOF
1184 #line 1185 "configure"
1185 #include "confdefs.h"
1191 if { (eval echo configure:1192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1193 ac_cv_c_inline=$ac_kw; break
1195 echo "configure: failed program was:" >&5
1196 cat conftest.$ac_ext >&5
1203 echo "$ac_t""$ac_cv_c_inline" 1>&6
1204 case "$ac_cv_c_inline" in
1206 no) cat >> confdefs.h <<\EOF
1210 *) cat >> confdefs.h <<EOF
1211 #define inline $ac_cv_c_inline
1216 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1217 echo "configure:1218: checking how to run the C preprocessor" >&5
1218 # On Suns, sometimes $CPP names a directory.
1219 if test -n "$CPP" && test -d "$CPP"; then
1222 if test -z "$CPP"; then
1223 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1224 echo $ac_n "(cached) $ac_c" 1>&6
1226 # This must be in double quotes, not single quotes, because CPP may get
1227 # substituted into the Makefile and "${CC-cc}" will confuse make.
1229 # On the NeXT, cc -E runs the code through the compiler's parser,
1230 # not just through cpp.
1231 cat > conftest.$ac_ext <<EOF
1232 #line 1233 "configure"
1233 #include "confdefs.h"
1237 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1238 { (eval echo configure:1239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1239 ac_err=`grep -v '^ *+' conftest.out`
1240 if test -z "$ac_err"; then
1244 echo "configure: failed program was:" >&5
1245 cat conftest.$ac_ext >&5
1247 CPP="${CC-cc} -E -traditional-cpp"
1248 cat > conftest.$ac_ext <<EOF
1249 #line 1250 "configure"
1250 #include "confdefs.h"
1254 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1255 { (eval echo configure:1256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1256 ac_err=`grep -v '^ *+' conftest.out`
1257 if test -z "$ac_err"; then
1261 echo "configure: failed program was:" >&5
1262 cat conftest.$ac_ext >&5
1269 ac_cv_prog_CPP="$CPP"
1271 CPP="$ac_cv_prog_CPP"
1273 ac_cv_prog_CPP="$CPP"
1275 echo "$ac_t""$CPP" 1>&6
1277 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1278 echo "configure:1279: checking for ANSI C header files" >&5
1279 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1280 echo $ac_n "(cached) $ac_c" 1>&6
1282 cat > conftest.$ac_ext <<EOF
1283 #line 1284 "configure"
1284 #include "confdefs.h"
1290 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1291 { (eval echo configure:1292: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1292 ac_err=`grep -v '^ *+' conftest.out`
1293 if test -z "$ac_err"; then
1295 ac_cv_header_stdc=yes
1298 echo "configure: failed program was:" >&5
1299 cat conftest.$ac_ext >&5
1301 ac_cv_header_stdc=no
1305 if test $ac_cv_header_stdc = yes; then
1306 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1307 cat > conftest.$ac_ext <<EOF
1308 #line 1309 "configure"
1309 #include "confdefs.h"
1312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1313 egrep "memchr" >/dev/null 2>&1; then
1317 ac_cv_header_stdc=no
1323 if test $ac_cv_header_stdc = yes; then
1324 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1325 cat > conftest.$ac_ext <<EOF
1326 #line 1327 "configure"
1327 #include "confdefs.h"
1330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1331 egrep "free" >/dev/null 2>&1; then
1335 ac_cv_header_stdc=no
1341 if test $ac_cv_header_stdc = yes; then
1342 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1343 if test "$cross_compiling" = yes; then
1346 cat > conftest.$ac_ext <<EOF
1347 #line 1348 "configure"
1348 #include "confdefs.h"
1350 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1351 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1352 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1353 int main () { int i; for (i = 0; i < 256; i++)
1354 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1358 if { (eval echo configure:1359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1362 echo "configure: failed program was:" >&5
1363 cat conftest.$ac_ext >&5
1365 ac_cv_header_stdc=no
1373 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1374 if test $ac_cv_header_stdc = yes; then
1375 cat >> confdefs.h <<\EOF
1376 #define STDC_HEADERS 1
1382 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1384 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1385 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1386 echo "configure:1387: checking for $ac_hdr that defines DIR" >&5
1387 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1388 echo $ac_n "(cached) $ac_c" 1>&6
1390 cat > conftest.$ac_ext <<EOF
1391 #line 1392 "configure"
1392 #include "confdefs.h"
1393 #include <sys/types.h>
1399 if { (eval echo configure:1400: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1401 eval "ac_cv_header_dirent_$ac_safe=yes"
1403 echo "configure: failed program was:" >&5
1404 cat conftest.$ac_ext >&5
1406 eval "ac_cv_header_dirent_$ac_safe=no"
1410 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1411 echo "$ac_t""yes" 1>&6
1412 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1413 cat >> confdefs.h <<EOF
1414 #define $ac_tr_hdr 1
1416 ac_header_dirent=$ac_hdr; break
1418 echo "$ac_t""no" 1>&6
1421 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1422 if test $ac_header_dirent = dirent.h; then
1423 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1424 echo "configure:1425: checking for opendir in -ldir" >&5
1425 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1426 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1427 echo $ac_n "(cached) $ac_c" 1>&6
1429 ac_save_LIBS="$LIBS"
1431 cat > conftest.$ac_ext <<EOF
1432 #line 1433 "configure"
1433 #include "confdefs.h"
1434 /* Override any gcc2 internal prototype to avoid an error. */
1435 /* We use char because int might match the return type of a gcc2
1436 builtin and then its argument prototype would still apply. */
1443 if { (eval echo configure:1444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1445 eval "ac_cv_lib_$ac_lib_var=yes"
1447 echo "configure: failed program was:" >&5
1448 cat conftest.$ac_ext >&5
1450 eval "ac_cv_lib_$ac_lib_var=no"
1453 LIBS="$ac_save_LIBS"
1456 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1457 echo "$ac_t""yes" 1>&6
1460 echo "$ac_t""no" 1>&6
1464 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1465 echo "configure:1466: checking for opendir in -lx" >&5
1466 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1467 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1468 echo $ac_n "(cached) $ac_c" 1>&6
1470 ac_save_LIBS="$LIBS"
1472 cat > conftest.$ac_ext <<EOF
1473 #line 1474 "configure"
1474 #include "confdefs.h"
1475 /* Override any gcc2 internal prototype to avoid an error. */
1476 /* We use char because int might match the return type of a gcc2
1477 builtin and then its argument prototype would still apply. */
1484 if { (eval echo configure:1485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1486 eval "ac_cv_lib_$ac_lib_var=yes"
1488 echo "configure: failed program was:" >&5
1489 cat conftest.$ac_ext >&5
1491 eval "ac_cv_lib_$ac_lib_var=no"
1494 LIBS="$ac_save_LIBS"
1497 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1498 echo "$ac_t""yes" 1>&6
1501 echo "$ac_t""no" 1>&6
1506 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1507 echo "configure:1508: checking whether time.h and sys/time.h may both be included" >&5
1508 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1509 echo $ac_n "(cached) $ac_c" 1>&6
1511 cat > conftest.$ac_ext <<EOF
1512 #line 1513 "configure"
1513 #include "confdefs.h"
1514 #include <sys/types.h>
1515 #include <sys/time.h>
1521 if { (eval echo configure:1522: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1523 ac_cv_header_time=yes
1525 echo "configure: failed program was:" >&5
1526 cat conftest.$ac_ext >&5
1528 ac_cv_header_time=no
1533 echo "$ac_t""$ac_cv_header_time" 1>&6
1534 if test $ac_cv_header_time = yes; then
1535 cat >> confdefs.h <<\EOF
1536 #define TIME_WITH_SYS_TIME 1
1541 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1542 echo "configure:1543: checking for sys/wait.h that is POSIX.1 compatible" >&5
1543 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1544 echo $ac_n "(cached) $ac_c" 1>&6
1546 cat > conftest.$ac_ext <<EOF
1547 #line 1548 "configure"
1548 #include "confdefs.h"
1549 #include <sys/types.h>
1550 #include <sys/wait.h>
1552 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1555 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1560 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1563 if { (eval echo configure:1564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1565 ac_cv_header_sys_wait_h=yes
1567 echo "configure: failed program was:" >&5
1568 cat conftest.$ac_ext >&5
1570 ac_cv_header_sys_wait_h=no
1575 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1576 if test $ac_cv_header_sys_wait_h = yes; then
1577 cat >> confdefs.h <<\EOF
1578 #define HAVE_SYS_WAIT_H 1
1583 for ac_hdr in sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
1585 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1586 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1587 echo "configure:1588: checking for $ac_hdr" >&5
1588 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1589 echo $ac_n "(cached) $ac_c" 1>&6
1591 cat > conftest.$ac_ext <<EOF
1592 #line 1593 "configure"
1593 #include "confdefs.h"
1596 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1597 { (eval echo configure:1598: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1598 ac_err=`grep -v '^ *+' conftest.out`
1599 if test -z "$ac_err"; then
1601 eval "ac_cv_header_$ac_safe=yes"
1604 echo "configure: failed program was:" >&5
1605 cat conftest.$ac_ext >&5
1607 eval "ac_cv_header_$ac_safe=no"
1611 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1612 echo "$ac_t""yes" 1>&6
1613 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1614 cat >> confdefs.h <<EOF
1615 #define $ac_tr_hdr 1
1619 echo "$ac_t""no" 1>&6
1623 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
1625 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1626 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1627 echo "configure:1628: checking for $ac_hdr" >&5
1628 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1629 echo $ac_n "(cached) $ac_c" 1>&6
1631 cat > conftest.$ac_ext <<EOF
1632 #line 1633 "configure"
1633 #include "confdefs.h"
1636 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1637 { (eval echo configure:1638: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1638 ac_err=`grep -v '^ *+' conftest.out`
1639 if test -z "$ac_err"; then
1641 eval "ac_cv_header_$ac_safe=yes"
1644 echo "configure: failed program was:" >&5
1645 cat conftest.$ac_ext >&5
1647 eval "ac_cv_header_$ac_safe=no"
1651 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1652 echo "$ac_t""yes" 1>&6
1653 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1654 cat >> confdefs.h <<EOF
1655 #define $ac_tr_hdr 1
1659 echo "$ac_t""no" 1>&6
1663 for ac_hdr in compat.h rpc/types.h rpc/xdr.h rpc/auth.h rpc/clnt.h
1665 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1666 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1667 echo "configure:1668: checking for $ac_hdr" >&5
1668 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1669 echo $ac_n "(cached) $ac_c" 1>&6
1671 cat > conftest.$ac_ext <<EOF
1672 #line 1673 "configure"
1673 #include "confdefs.h"
1676 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1677 { (eval echo configure:1678: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1678 ac_err=`grep -v '^ *+' conftest.out`
1679 if test -z "$ac_err"; then
1681 eval "ac_cv_header_$ac_safe=yes"
1684 echo "configure: failed program was:" >&5
1685 cat conftest.$ac_ext >&5
1687 eval "ac_cv_header_$ac_safe=no"
1691 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1692 echo "$ac_t""yes" 1>&6
1693 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1694 cat >> confdefs.h <<EOF
1695 #define $ac_tr_hdr 1
1699 echo "$ac_t""no" 1>&6
1703 for ac_hdr in rpcsvc/yp_prot.h rpcsvc/ypclnt.h sys/param.h ctype.h
1705 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1706 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1707 echo "configure:1708: checking for $ac_hdr" >&5
1708 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1709 echo $ac_n "(cached) $ac_c" 1>&6
1711 cat > conftest.$ac_ext <<EOF
1712 #line 1713 "configure"
1713 #include "confdefs.h"
1716 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1717 { (eval echo configure:1718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1718 ac_err=`grep -v '^ *+' conftest.out`
1719 if test -z "$ac_err"; then
1721 eval "ac_cv_header_$ac_safe=yes"
1724 echo "configure: failed program was:" >&5
1725 cat conftest.$ac_ext >&5
1727 eval "ac_cv_header_$ac_safe=no"
1731 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1732 echo "$ac_t""yes" 1>&6
1733 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1734 cat >> confdefs.h <<EOF
1735 #define $ac_tr_hdr 1
1739 echo "$ac_t""no" 1>&6
1743 for ac_hdr in sys/wait.h sys/resource.h sys/ioctl.h sys/mode.h
1745 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1746 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1747 echo "configure:1748: checking for $ac_hdr" >&5
1748 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1749 echo $ac_n "(cached) $ac_c" 1>&6
1751 cat > conftest.$ac_ext <<EOF
1752 #line 1753 "configure"
1753 #include "confdefs.h"
1756 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1757 { (eval echo configure:1758: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1758 ac_err=`grep -v '^ *+' conftest.out`
1759 if test -z "$ac_err"; then
1761 eval "ac_cv_header_$ac_safe=yes"
1764 echo "configure: failed program was:" >&5
1765 cat conftest.$ac_ext >&5
1767 eval "ac_cv_header_$ac_safe=no"
1771 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1772 echo "$ac_t""yes" 1>&6
1773 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1774 cat >> confdefs.h <<EOF
1775 #define $ac_tr_hdr 1
1779 echo "$ac_t""no" 1>&6
1783 for ac_hdr in sys/filio.h string.h strings.h stdlib.h sys/socket.h
1785 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1786 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1787 echo "configure:1788: checking for $ac_hdr" >&5
1788 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1789 echo $ac_n "(cached) $ac_c" 1>&6
1791 cat > conftest.$ac_ext <<EOF
1792 #line 1793 "configure"
1793 #include "confdefs.h"
1796 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1797 { (eval echo configure:1798: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1798 ac_err=`grep -v '^ *+' conftest.out`
1799 if test -z "$ac_err"; then
1801 eval "ac_cv_header_$ac_safe=yes"
1804 echo "configure: failed program was:" >&5
1805 cat conftest.$ac_ext >&5
1807 eval "ac_cv_header_$ac_safe=no"
1811 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1812 echo "$ac_t""yes" 1>&6
1813 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1814 cat >> confdefs.h <<EOF
1815 #define $ac_tr_hdr 1
1819 echo "$ac_t""no" 1>&6
1823 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h
1825 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1826 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1827 echo "configure:1828: checking for $ac_hdr" >&5
1828 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1829 echo $ac_n "(cached) $ac_c" 1>&6
1831 cat > conftest.$ac_ext <<EOF
1832 #line 1833 "configure"
1833 #include "confdefs.h"
1836 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1837 { (eval echo configure:1838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1838 ac_err=`grep -v '^ *+' conftest.out`
1839 if test -z "$ac_err"; then
1841 eval "ac_cv_header_$ac_safe=yes"
1844 echo "configure: failed program was:" >&5
1845 cat conftest.$ac_ext >&5
1847 eval "ac_cv_header_$ac_safe=no"
1851 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1852 echo "$ac_t""yes" 1>&6
1853 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1854 cat >> confdefs.h <<EOF
1855 #define $ac_tr_hdr 1
1859 echo "$ac_t""no" 1>&6
1863 for ac_hdr in sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
1865 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1866 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1867 echo "configure:1868: checking for $ac_hdr" >&5
1868 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1869 echo $ac_n "(cached) $ac_c" 1>&6
1871 cat > conftest.$ac_ext <<EOF
1872 #line 1873 "configure"
1873 #include "confdefs.h"
1876 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1877 { (eval echo configure:1878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1878 ac_err=`grep -v '^ *+' conftest.out`
1879 if test -z "$ac_err"; then
1881 eval "ac_cv_header_$ac_safe=yes"
1884 echo "configure: failed program was:" >&5
1885 cat conftest.$ac_ext >&5
1887 eval "ac_cv_header_$ac_safe=no"
1891 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1892 echo "$ac_t""yes" 1>&6
1893 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1894 cat >> confdefs.h <<EOF
1895 #define $ac_tr_hdr 1
1899 echo "$ac_t""no" 1>&6
1903 for ac_hdr in shadow.h netinet/tcp.h sys/security.h security/pam_appl.h
1905 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1906 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1907 echo "configure:1908: checking for $ac_hdr" >&5
1908 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1909 echo $ac_n "(cached) $ac_c" 1>&6
1911 cat > conftest.$ac_ext <<EOF
1912 #line 1913 "configure"
1913 #include "confdefs.h"
1916 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1917 { (eval echo configure:1918: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1918 ac_err=`grep -v '^ *+' conftest.out`
1919 if test -z "$ac_err"; then
1921 eval "ac_cv_header_$ac_safe=yes"
1924 echo "configure: failed program was:" >&5
1925 cat conftest.$ac_ext >&5
1927 eval "ac_cv_header_$ac_safe=no"
1931 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1932 echo "$ac_t""yes" 1>&6
1933 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1934 cat >> confdefs.h <<EOF
1935 #define $ac_tr_hdr 1
1939 echo "$ac_t""no" 1>&6
1943 for ac_hdr in stropts.h poll.h readline.h history.h readline/readline.h
1945 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1946 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1947 echo "configure:1948: checking for $ac_hdr" >&5
1948 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1949 echo $ac_n "(cached) $ac_c" 1>&6
1951 cat > conftest.$ac_ext <<EOF
1952 #line 1953 "configure"
1953 #include "confdefs.h"
1956 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1957 { (eval echo configure:1958: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1958 ac_err=`grep -v '^ *+' conftest.out`
1959 if test -z "$ac_err"; then
1961 eval "ac_cv_header_$ac_safe=yes"
1964 echo "configure: failed program was:" >&5
1965 cat conftest.$ac_ext >&5
1967 eval "ac_cv_header_$ac_safe=no"
1971 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1972 echo "$ac_t""yes" 1>&6
1973 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1974 cat >> confdefs.h <<EOF
1975 #define $ac_tr_hdr 1
1979 echo "$ac_t""no" 1>&6
1983 for ac_hdr in readline/history.h sys/capability.h syscall.h sys/syscall.h
1985 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1986 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1987 echo "configure:1988: checking for $ac_hdr" >&5
1988 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1989 echo $ac_n "(cached) $ac_c" 1>&6
1991 cat > conftest.$ac_ext <<EOF
1992 #line 1993 "configure"
1993 #include "confdefs.h"
1996 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1997 { (eval echo configure:1998: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1998 ac_err=`grep -v '^ *+' conftest.out`
1999 if test -z "$ac_err"; then
2001 eval "ac_cv_header_$ac_safe=yes"
2004 echo "configure: failed program was:" >&5
2005 cat conftest.$ac_ext >&5
2007 eval "ac_cv_header_$ac_safe=no"
2011 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2012 echo "$ac_t""yes" 1>&6
2013 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2014 cat >> confdefs.h <<EOF
2015 #define $ac_tr_hdr 1
2019 echo "$ac_t""no" 1>&6
2023 for ac_hdr in sys/acl.h sys/cdefs.h
2025 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2026 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2027 echo "configure:2028: checking for $ac_hdr" >&5
2028 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2029 echo $ac_n "(cached) $ac_c" 1>&6
2031 cat > conftest.$ac_ext <<EOF
2032 #line 2033 "configure"
2033 #include "confdefs.h"
2036 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2037 { (eval echo configure:2038: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2038 ac_err=`grep -v '^ *+' conftest.out`
2039 if test -z "$ac_err"; then
2041 eval "ac_cv_header_$ac_safe=yes"
2044 echo "configure: failed program was:" >&5
2045 cat conftest.$ac_ext >&5
2047 eval "ac_cv_header_$ac_safe=no"
2051 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2052 echo "$ac_t""yes" 1>&6
2053 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2054 cat >> confdefs.h <<EOF
2055 #define $ac_tr_hdr 1
2059 echo "$ac_t""no" 1>&6
2064 echo $ac_n "checking size of int""... $ac_c" 1>&6
2065 echo "configure:2066: checking size of int" >&5
2066 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2067 echo $ac_n "(cached) $ac_c" 1>&6
2069 if test "$cross_compiling" = yes; then
2070 ac_cv_sizeof_int=cross
2072 cat > conftest.$ac_ext <<EOF
2073 #line 2074 "configure"
2074 #include "confdefs.h"
2078 FILE *f=fopen("conftestval", "w");
2080 fprintf(f, "%d\n", sizeof(int));
2084 if { (eval echo configure:2085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2086 ac_cv_sizeof_int=`cat conftestval`
2088 echo "configure: failed program was:" >&5
2089 cat conftest.$ac_ext >&5
2097 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2098 cat >> confdefs.h <<EOF
2099 #define SIZEOF_INT $ac_cv_sizeof_int
2103 echo $ac_n "checking size of long""... $ac_c" 1>&6
2104 echo "configure:2105: checking size of long" >&5
2105 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2106 echo $ac_n "(cached) $ac_c" 1>&6
2108 if test "$cross_compiling" = yes; then
2109 ac_cv_sizeof_long=cross
2111 cat > conftest.$ac_ext <<EOF
2112 #line 2113 "configure"
2113 #include "confdefs.h"
2117 FILE *f=fopen("conftestval", "w");
2119 fprintf(f, "%d\n", sizeof(long));
2123 if { (eval echo configure:2124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2125 ac_cv_sizeof_long=`cat conftestval`
2127 echo "configure: failed program was:" >&5
2128 cat conftest.$ac_ext >&5
2136 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2137 cat >> confdefs.h <<EOF
2138 #define SIZEOF_LONG $ac_cv_sizeof_long
2142 echo $ac_n "checking size of short""... $ac_c" 1>&6
2143 echo "configure:2144: checking size of short" >&5
2144 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2145 echo $ac_n "(cached) $ac_c" 1>&6
2147 if test "$cross_compiling" = yes; then
2148 ac_cv_sizeof_short=cross
2150 cat > conftest.$ac_ext <<EOF
2151 #line 2152 "configure"
2152 #include "confdefs.h"
2156 FILE *f=fopen("conftestval", "w");
2158 fprintf(f, "%d\n", sizeof(short));
2162 if { (eval echo configure:2163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2164 ac_cv_sizeof_short=`cat conftestval`
2166 echo "configure: failed program was:" >&5
2167 cat conftest.$ac_ext >&5
2169 ac_cv_sizeof_short=0
2175 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2176 cat >> confdefs.h <<EOF
2177 #define SIZEOF_SHORT $ac_cv_sizeof_short
2182 echo $ac_n "checking for working const""... $ac_c" 1>&6
2183 echo "configure:2184: checking for working const" >&5
2184 if eval "test \"`echo '$''{'ac_cv_c_const'+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"
2193 /* Ultrix mips cc rejects this. */
2194 typedef int charset[2]; const charset x;
2195 /* SunOS 4.1.1 cc rejects this. */
2196 char const *const *ccp;
2198 /* NEC SVR4.0.2 mips cc rejects this. */
2199 struct point {int x, y;};
2200 static struct point const zero = {0,0};
2201 /* AIX XL C 1.02.0.0 rejects this.
2202 It does not let you subtract one const X* pointer from another in an arm
2203 of an if-expression whose if-part is not a constant expression */
2204 const char *g = "string";
2205 ccp = &g + (g ? g-g : 0);
2206 /* HPUX 7.0 cc rejects these. */
2209 ccp = (char const *const *) p;
2210 { /* SCO 3.2v4 cc rejects this. */
2212 char const *s = 0 ? (char *) 0 : (char const *) 0;
2216 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2218 const int *foo = &x[0];
2221 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2222 typedef const int *iptr;
2226 { /* AIX XL C 1.02.0.0 rejects this saying
2227 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2228 struct s { int j; const int *ap[3]; };
2229 struct s *b; b->j = 5;
2231 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2237 if { (eval echo configure:2238: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2241 echo "configure: failed program was:" >&5
2242 cat conftest.$ac_ext >&5
2249 echo "$ac_t""$ac_cv_c_const" 1>&6
2250 if test $ac_cv_c_const = no; then
2251 cat >> confdefs.h <<\EOF
2257 echo $ac_n "checking for inline""... $ac_c" 1>&6
2258 echo "configure:2259: checking for inline" >&5
2259 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2260 echo $ac_n "(cached) $ac_c" 1>&6
2263 for ac_kw in inline __inline__ __inline; do
2264 cat > conftest.$ac_ext <<EOF
2265 #line 2266 "configure"
2266 #include "confdefs.h"
2272 if { (eval echo configure:2273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2274 ac_cv_c_inline=$ac_kw; break
2276 echo "configure: failed program was:" >&5
2277 cat conftest.$ac_ext >&5
2284 echo "$ac_t""$ac_cv_c_inline" 1>&6
2285 case "$ac_cv_c_inline" in
2287 no) cat >> confdefs.h <<\EOF
2291 *) cat >> confdefs.h <<EOF
2292 #define inline $ac_cv_c_inline
2297 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2298 echo "configure:2299: checking whether byte ordering is bigendian" >&5
2299 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2300 echo $ac_n "(cached) $ac_c" 1>&6
2302 ac_cv_c_bigendian=unknown
2303 # See if sys/param.h defines the BYTE_ORDER macro.
2304 cat > conftest.$ac_ext <<EOF
2305 #line 2306 "configure"
2306 #include "confdefs.h"
2307 #include <sys/types.h>
2308 #include <sys/param.h>
2311 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2316 if { (eval echo configure:2317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2318 # It does; now see whether it defined to BIG_ENDIAN or not.
2319 cat > conftest.$ac_ext <<EOF
2320 #line 2321 "configure"
2321 #include "confdefs.h"
2322 #include <sys/types.h>
2323 #include <sys/param.h>
2326 #if BYTE_ORDER != BIG_ENDIAN
2331 if { (eval echo configure:2332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2333 ac_cv_c_bigendian=yes
2335 echo "configure: failed program was:" >&5
2336 cat conftest.$ac_ext >&5
2338 ac_cv_c_bigendian=no
2342 echo "configure: failed program was:" >&5
2343 cat conftest.$ac_ext >&5
2346 if test $ac_cv_c_bigendian = unknown; then
2347 if test "$cross_compiling" = yes; then
2348 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2350 cat > conftest.$ac_ext <<EOF
2351 #line 2352 "configure"
2352 #include "confdefs.h"
2354 /* Are we little or big endian? From Harbison&Steele. */
2358 char c[sizeof (long)];
2361 exit (u.c[sizeof (long) - 1] == 1);
2364 if { (eval echo configure:2365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2366 ac_cv_c_bigendian=no
2368 echo "configure: failed program was:" >&5
2369 cat conftest.$ac_ext >&5
2371 ac_cv_c_bigendian=yes
2379 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2380 if test $ac_cv_c_bigendian = yes; then
2381 cat >> confdefs.h <<\EOF
2382 #define WORDS_BIGENDIAN 1
2387 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
2388 echo "configure:2389: checking whether char is unsigned" >&5
2389 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
2390 echo $ac_n "(cached) $ac_c" 1>&6
2392 if test "$GCC" = yes; then
2393 # GCC predefines this symbol on systems where it applies.
2394 cat > conftest.$ac_ext <<EOF
2395 #line 2396 "configure"
2396 #include "confdefs.h"
2397 #ifdef __CHAR_UNSIGNED__
2402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2403 egrep "yes" >/dev/null 2>&1; then
2405 ac_cv_c_char_unsigned=yes
2408 ac_cv_c_char_unsigned=no
2413 if test "$cross_compiling" = yes; then
2414 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2416 cat > conftest.$ac_ext <<EOF
2417 #line 2418 "configure"
2418 #include "confdefs.h"
2419 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
2420 #if !defined(__STDC__) || __STDC__ != 1
2424 volatile char c = 255; exit(c < 0);
2427 if { (eval echo configure:2428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2429 ac_cv_c_char_unsigned=yes
2431 echo "configure: failed program was:" >&5
2432 cat conftest.$ac_ext >&5
2434 ac_cv_c_char_unsigned=no
2442 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
2443 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
2444 cat >> confdefs.h <<\EOF
2445 #define __CHAR_UNSIGNED__ 1
2451 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2452 echo "configure:2453: checking return type of signal handlers" >&5
2453 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2454 echo $ac_n "(cached) $ac_c" 1>&6
2456 cat > conftest.$ac_ext <<EOF
2457 #line 2458 "configure"
2458 #include "confdefs.h"
2459 #include <sys/types.h>
2465 extern "C" void (*signal (int, void (*)(int)))(int);
2467 void (*signal ()) ();
2474 if { (eval echo configure:2475: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2476 ac_cv_type_signal=void
2478 echo "configure: failed program was:" >&5
2479 cat conftest.$ac_ext >&5
2481 ac_cv_type_signal=int
2486 echo "$ac_t""$ac_cv_type_signal" 1>&6
2487 cat >> confdefs.h <<EOF
2488 #define RETSIGTYPE $ac_cv_type_signal
2492 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2493 echo "configure:2494: checking for uid_t in sys/types.h" >&5
2494 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2495 echo $ac_n "(cached) $ac_c" 1>&6
2497 cat > conftest.$ac_ext <<EOF
2498 #line 2499 "configure"
2499 #include "confdefs.h"
2500 #include <sys/types.h>
2502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2503 egrep "uid_t" >/dev/null 2>&1; then
2505 ac_cv_type_uid_t=yes
2514 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2515 if test $ac_cv_type_uid_t = no; then
2516 cat >> confdefs.h <<\EOF
2520 cat >> confdefs.h <<\EOF
2526 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2527 echo "configure:2528: checking for mode_t" >&5
2528 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2529 echo $ac_n "(cached) $ac_c" 1>&6
2531 cat > conftest.$ac_ext <<EOF
2532 #line 2533 "configure"
2533 #include "confdefs.h"
2534 #include <sys/types.h>
2540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2541 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2543 ac_cv_type_mode_t=yes
2546 ac_cv_type_mode_t=no
2551 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
2552 if test $ac_cv_type_mode_t = no; then
2553 cat >> confdefs.h <<\EOF
2559 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2560 echo "configure:2561: checking for off_t" >&5
2561 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2562 echo $ac_n "(cached) $ac_c" 1>&6
2564 cat > conftest.$ac_ext <<EOF
2565 #line 2566 "configure"
2566 #include "confdefs.h"
2567 #include <sys/types.h>
2573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2574 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2576 ac_cv_type_off_t=yes
2584 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2585 if test $ac_cv_type_off_t = no; then
2586 cat >> confdefs.h <<\EOF
2592 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2593 echo "configure:2594: checking for size_t" >&5
2594 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2595 echo $ac_n "(cached) $ac_c" 1>&6
2597 cat > conftest.$ac_ext <<EOF
2598 #line 2599 "configure"
2599 #include "confdefs.h"
2600 #include <sys/types.h>
2606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2607 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2609 ac_cv_type_size_t=yes
2612 ac_cv_type_size_t=no
2617 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2618 if test $ac_cv_type_size_t = no; then
2619 cat >> confdefs.h <<\EOF
2620 #define size_t unsigned
2625 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2626 echo "configure:2627: checking for pid_t" >&5
2627 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2628 echo $ac_n "(cached) $ac_c" 1>&6
2630 cat > conftest.$ac_ext <<EOF
2631 #line 2632 "configure"
2632 #include "confdefs.h"
2633 #include <sys/types.h>
2639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2640 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2642 ac_cv_type_pid_t=yes
2650 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2651 if test $ac_cv_type_pid_t = no; then
2652 cat >> confdefs.h <<\EOF
2658 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
2659 echo "configure:2660: checking for st_rdev in struct stat" >&5
2660 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
2661 echo $ac_n "(cached) $ac_c" 1>&6
2663 cat > conftest.$ac_ext <<EOF
2664 #line 2665 "configure"
2665 #include "confdefs.h"
2666 #include <sys/types.h>
2667 #include <sys/stat.h>
2669 struct stat s; s.st_rdev;
2672 if { (eval echo configure:2673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2674 ac_cv_struct_st_rdev=yes
2676 echo "configure: failed program was:" >&5
2677 cat conftest.$ac_ext >&5
2679 ac_cv_struct_st_rdev=no
2684 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
2685 if test $ac_cv_struct_st_rdev = yes; then
2686 cat >> confdefs.h <<\EOF
2687 #define HAVE_ST_RDEV 1
2692 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
2693 echo "configure:2694: checking for d_off in dirent" >&5
2694 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
2695 echo $ac_n "(cached) $ac_c" 1>&6
2697 cat > conftest.$ac_ext <<EOF
2698 #line 2699 "configure"
2699 #include "confdefs.h"
2702 #include <sys/types.h>
2705 struct dirent d; d.d_off;
2708 if { (eval echo configure:2709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2710 ac_cv_dirent_d_off=yes
2712 echo "configure: failed program was:" >&5
2713 cat conftest.$ac_ext >&5
2715 ac_cv_dirent_d_off=no
2720 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
2721 if test $ac_cv_dirent_d_off = yes; then
2722 cat >> confdefs.h <<\EOF
2723 #define HAVE_DIRENT_D_OFF 1
2728 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
2729 echo "configure:2730: checking for ino_t" >&5
2730 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
2731 echo $ac_n "(cached) $ac_c" 1>&6
2733 cat > conftest.$ac_ext <<EOF
2734 #line 2735 "configure"
2735 #include "confdefs.h"
2736 #include <sys/types.h>
2742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2743 egrep "ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2745 ac_cv_type_ino_t=yes
2753 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
2754 if test $ac_cv_type_ino_t = no; then
2755 cat >> confdefs.h <<\EOF
2756 #define ino_t unsigned
2761 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
2762 echo "configure:2763: checking for loff_t" >&5
2763 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
2764 echo $ac_n "(cached) $ac_c" 1>&6
2766 cat > conftest.$ac_ext <<EOF
2767 #line 2768 "configure"
2768 #include "confdefs.h"
2769 #include <sys/types.h>
2775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2776 egrep "loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2778 ac_cv_type_loff_t=yes
2781 ac_cv_type_loff_t=no
2786 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
2787 if test $ac_cv_type_loff_t = no; then
2788 cat >> confdefs.h <<\EOF
2789 #define loff_t off_t
2794 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
2795 echo "configure:2796: checking for offset_t" >&5
2796 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
2797 echo $ac_n "(cached) $ac_c" 1>&6
2799 cat > conftest.$ac_ext <<EOF
2800 #line 2801 "configure"
2801 #include "confdefs.h"
2802 #include <sys/types.h>
2808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2809 egrep "offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2811 ac_cv_type_offset_t=yes
2814 ac_cv_type_offset_t=no
2819 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
2820 if test $ac_cv_type_offset_t = no; then
2821 cat >> confdefs.h <<\EOF
2822 #define offset_t loff_t
2827 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
2828 echo "configure:2829: checking for ssize_t" >&5
2829 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
2830 echo $ac_n "(cached) $ac_c" 1>&6
2832 cat > conftest.$ac_ext <<EOF
2833 #line 2834 "configure"
2834 #include "confdefs.h"
2835 #include <sys/types.h>
2841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2842 egrep "ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2844 ac_cv_type_ssize_t=yes
2847 ac_cv_type_ssize_t=no
2852 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
2853 if test $ac_cv_type_ssize_t = no; then
2854 cat >> confdefs.h <<\EOF
2861 echo $ac_n "checking for errno in errno.h""... $ac_c" 1>&6
2862 echo "configure:2863: checking for errno in errno.h" >&5
2863 if eval "test \"`echo '$''{'samba_cv_errno'+set}'`\" = set"; then
2864 echo $ac_n "(cached) $ac_c" 1>&6
2867 cat > conftest.$ac_ext <<EOF
2868 #line 2869 "configure"
2869 #include "confdefs.h"
2875 if { (eval echo configure:2876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2879 echo "configure: failed program was:" >&5
2880 cat conftest.$ac_ext >&5
2882 samba_cv_have_errno_decl=no
2887 echo "$ac_t""$samba_cv_errno" 1>&6
2888 if test x"$samba_cv_errno" = x"yes"; then
2889 cat >> confdefs.h <<\EOF
2890 #define HAVE_ERRNO_DECL 1
2895 # stupid glibc has the functions but no declaration. grrrr.
2896 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
2897 echo "configure:2898: checking for setresuid declaration" >&5
2898 if eval "test \"`echo '$''{'samba_cv_have_setresuid_decl'+set}'`\" = set"; then
2899 echo $ac_n "(cached) $ac_c" 1>&6
2902 cat > conftest.$ac_ext <<EOF
2903 #line 2904 "configure"
2904 #include "confdefs.h"
2907 int i = (int)setresuid
2910 if { (eval echo configure:2911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2912 samba_cv_have_setresuid_decl=yes
2914 echo "configure: failed program was:" >&5
2915 cat conftest.$ac_ext >&5
2917 samba_cv_have_setresuid_decl=no
2922 echo "$ac_t""$samba_cv_have_setresuid_decl" 1>&6
2923 if test x"$samba_cv_have_setresuid_decl" = x"yes"; then
2924 cat >> confdefs.h <<\EOF
2925 #define HAVE_SETRESUID_DECL 1
2930 # stupid glibc has the functions but no declaration. grrrr.
2931 echo $ac_n "checking for crypt declaration""... $ac_c" 1>&6
2932 echo "configure:2933: checking for crypt declaration" >&5
2933 if eval "test \"`echo '$''{'samba_cv_have_crypt_decl'+set}'`\" = set"; then
2934 echo $ac_n "(cached) $ac_c" 1>&6
2937 cat > conftest.$ac_ext <<EOF
2938 #line 2939 "configure"
2939 #include "confdefs.h"
2945 if { (eval echo configure:2946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2947 samba_cv_have_crypt_decl=yes
2949 echo "configure: failed program was:" >&5
2950 cat conftest.$ac_ext >&5
2952 samba_cv_have_crypt_decl=no
2957 echo "$ac_t""$samba_cv_have_crypt_decl" 1>&6
2958 if test x"$samba_cv_have_crypt_decl" = x"yes"; then
2959 cat >> confdefs.h <<\EOF
2960 #define HAVE_CRYPT_DECL 1
2965 # and glibc has setresuid under linux but the function does
2966 # nothing until kernel 2.1.44! very dumb.
2967 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
2968 echo "configure:2969: checking for real setresuid" >&5
2969 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
2970 echo $ac_n "(cached) $ac_c" 1>&6
2973 if test "$cross_compiling" = yes; then
2974 samba_cv_have_setresuid=cross
2976 cat > conftest.$ac_ext <<EOF
2977 #line 2978 "configure"
2978 #include "confdefs.h"
2980 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
2982 if { (eval echo configure:2983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2984 samba_cv_have_setresuid=yes
2986 echo "configure: failed program was:" >&5
2987 cat conftest.$ac_ext >&5
2989 samba_cv_have_setresuid=no
2996 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
2997 if test x"$samba_cv_have_setresuid" = x"yes"; then
2998 cat >> confdefs.h <<\EOF
2999 #define HAVE_SETRESUID 1
3004 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
3005 echo "configure:3006: checking for 8-bit clean memcmp" >&5
3006 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
3007 echo $ac_n "(cached) $ac_c" 1>&6
3009 if test "$cross_compiling" = yes; then
3010 ac_cv_func_memcmp_clean=no
3012 cat > conftest.$ac_ext <<EOF
3013 #line 3014 "configure"
3014 #include "confdefs.h"
3018 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
3019 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
3023 if { (eval echo configure:3024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3025 ac_cv_func_memcmp_clean=yes
3027 echo "configure: failed program was:" >&5
3028 cat conftest.$ac_ext >&5
3030 ac_cv_func_memcmp_clean=no
3037 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
3038 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
3041 ###############################################
3042 # test for where we get crypt() from
3043 for ac_func in crypt
3045 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3046 echo "configure:3047: checking for $ac_func" >&5
3047 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3048 echo $ac_n "(cached) $ac_c" 1>&6
3050 cat > conftest.$ac_ext <<EOF
3051 #line 3052 "configure"
3052 #include "confdefs.h"
3053 /* System header to define __stub macros and hopefully few prototypes,
3054 which can conflict with char $ac_func(); below. */
3056 /* Override any gcc2 internal prototype to avoid an error. */
3057 /* We use char because int might match the return type of a gcc2
3058 builtin and then its argument prototype would still apply. */
3063 /* The GNU C library defines this for functions which it implements
3064 to always fail with ENOSYS. Some functions are actually named
3065 something starting with __ and the normal name is an alias. */
3066 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3074 if { (eval echo configure:3075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3076 eval "ac_cv_func_$ac_func=yes"
3078 echo "configure: failed program was:" >&5
3079 cat conftest.$ac_ext >&5
3081 eval "ac_cv_func_$ac_func=no"
3086 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3087 echo "$ac_t""yes" 1>&6
3088 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3089 cat >> confdefs.h <<EOF
3090 #define $ac_tr_func 1
3094 echo "$ac_t""no" 1>&6
3098 if test x"$ac_cv_func_crypt" = x"no"; then
3099 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
3100 echo "configure:3101: checking for crypt in -lcrypt" >&5
3101 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
3102 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3103 echo $ac_n "(cached) $ac_c" 1>&6
3105 ac_save_LIBS="$LIBS"
3106 LIBS="-lcrypt $LIBS"
3107 cat > conftest.$ac_ext <<EOF
3108 #line 3109 "configure"
3109 #include "confdefs.h"
3110 /* Override any gcc2 internal prototype to avoid an error. */
3111 /* We use char because int might match the return type of a gcc2
3112 builtin and then its argument prototype would still apply. */
3119 if { (eval echo configure:3120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3121 eval "ac_cv_lib_$ac_lib_var=yes"
3123 echo "configure: failed program was:" >&5
3124 cat conftest.$ac_ext >&5
3126 eval "ac_cv_lib_$ac_lib_var=no"
3129 LIBS="$ac_save_LIBS"
3132 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3133 echo "$ac_t""yes" 1>&6
3134 LIBS="$LIBS -lcrypt";
3135 cat >> confdefs.h <<\EOF
3136 #define HAVE_CRYPT 1
3140 echo "$ac_t""no" 1>&6
3146 ###############################################
3147 # test for where we get pam_authenticate() from
3148 # might need libdl for this to work
3149 if test "$ac_cv_header_security_pam_appl_h" = "yes"; then
3150 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
3151 echo "configure:3152: checking for main in -ldl" >&5
3152 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
3153 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3154 echo $ac_n "(cached) $ac_c" 1>&6
3156 ac_save_LIBS="$LIBS"
3158 cat > conftest.$ac_ext <<EOF
3159 #line 3160 "configure"
3160 #include "confdefs.h"
3166 if { (eval echo configure:3167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3168 eval "ac_cv_lib_$ac_lib_var=yes"
3170 echo "configure: failed program was:" >&5
3171 cat conftest.$ac_ext >&5
3173 eval "ac_cv_lib_$ac_lib_var=no"
3176 LIBS="$ac_save_LIBS"
3179 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3180 echo "$ac_t""yes" 1>&6
3181 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3182 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3183 cat >> confdefs.h <<EOF
3184 #define $ac_tr_lib 1
3190 echo "$ac_t""no" 1>&6
3194 for ac_func in pam_authenticate
3196 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3197 echo "configure:3198: checking for $ac_func" >&5
3198 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3199 echo $ac_n "(cached) $ac_c" 1>&6
3201 cat > conftest.$ac_ext <<EOF
3202 #line 3203 "configure"
3203 #include "confdefs.h"
3204 /* System header to define __stub macros and hopefully few prototypes,
3205 which can conflict with char $ac_func(); below. */
3207 /* Override any gcc2 internal prototype to avoid an error. */
3208 /* We use char because int might match the return type of a gcc2
3209 builtin and then its argument prototype would still apply. */
3214 /* The GNU C library defines this for functions which it implements
3215 to always fail with ENOSYS. Some functions are actually named
3216 something starting with __ and the normal name is an alias. */
3217 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3225 if { (eval echo configure:3226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3227 eval "ac_cv_func_$ac_func=yes"
3229 echo "configure: failed program was:" >&5
3230 cat conftest.$ac_ext >&5
3232 eval "ac_cv_func_$ac_func=no"
3237 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3238 echo "$ac_t""yes" 1>&6
3239 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3240 cat >> confdefs.h <<EOF
3241 #define $ac_tr_func 1
3245 echo "$ac_t""no" 1>&6
3249 if test x"$ac_cv_func_pam_authenticate" = x"no"; then
3250 echo $ac_n "checking for pam_authenticate in -lpam""... $ac_c" 1>&6
3251 echo "configure:3252: checking for pam_authenticate in -lpam" >&5
3252 ac_lib_var=`echo pam'_'pam_authenticate | sed 'y%./+-%__p_%'`
3253 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3254 echo $ac_n "(cached) $ac_c" 1>&6
3256 ac_save_LIBS="$LIBS"
3258 cat > conftest.$ac_ext <<EOF
3259 #line 3260 "configure"
3260 #include "confdefs.h"
3261 /* Override any gcc2 internal prototype to avoid an error. */
3262 /* We use char because int might match the return type of a gcc2
3263 builtin and then its argument prototype would still apply. */
3264 char pam_authenticate();
3270 if { (eval echo configure:3271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3272 eval "ac_cv_lib_$ac_lib_var=yes"
3274 echo "configure: failed program was:" >&5
3275 cat conftest.$ac_ext >&5
3277 eval "ac_cv_lib_$ac_lib_var=no"
3280 LIBS="$ac_save_LIBS"
3283 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3284 echo "$ac_t""yes" 1>&6
3286 cat >> confdefs.h <<\EOF
3287 #define HAVE_PAM_AUTHENTICATE 1
3291 echo "$ac_t""no" 1>&6
3297 ###############################################
3298 # test for where we get readline() from
3299 if test "$ac_cv_header_readline_h" = "yes" ||
3300 test "$ac_cv_header_readline_readline_h" = "yes"; then
3301 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
3302 echo "configure:3303: checking for readline in -lreadline" >&5
3303 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
3304 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3305 echo $ac_n "(cached) $ac_c" 1>&6
3307 ac_save_LIBS="$LIBS"
3308 LIBS="-lreadline $LIBS"
3309 cat > conftest.$ac_ext <<EOF
3310 #line 3311 "configure"
3311 #include "confdefs.h"
3312 /* Override any gcc2 internal prototype to avoid an error. */
3313 /* We use char because int might match the return type of a gcc2
3314 builtin and then its argument prototype would still apply. */
3321 if { (eval echo configure:3322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3323 eval "ac_cv_lib_$ac_lib_var=yes"
3325 echo "configure: failed program was:" >&5
3326 cat conftest.$ac_ext >&5
3328 eval "ac_cv_lib_$ac_lib_var=no"
3331 LIBS="$ac_save_LIBS"
3334 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3335 echo "$ac_t""yes" 1>&6
3336 ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3337 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3338 cat >> confdefs.h <<EOF
3339 #define $ac_tr_lib 1
3342 LIBS="-lreadline $LIBS"
3345 echo "$ac_t""no" 1>&6
3351 # The following test taken from the cvs sources
3352 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
3353 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
3354 # libsocket.so which has a bad implementation of gethostbyname (it
3355 # only looks in /etc/hosts), so we only look for -lsocket if we need
3357 for ac_func in connect
3359 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3360 echo "configure:3361: checking for $ac_func" >&5
3361 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3362 echo $ac_n "(cached) $ac_c" 1>&6
3364 cat > conftest.$ac_ext <<EOF
3365 #line 3366 "configure"
3366 #include "confdefs.h"
3367 /* System header to define __stub macros and hopefully few prototypes,
3368 which can conflict with char $ac_func(); below. */
3370 /* Override any gcc2 internal prototype to avoid an error. */
3371 /* We use char because int might match the return type of a gcc2
3372 builtin and then its argument prototype would still apply. */
3377 /* The GNU C library defines this for functions which it implements
3378 to always fail with ENOSYS. Some functions are actually named
3379 something starting with __ and the normal name is an alias. */
3380 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3388 if { (eval echo configure:3389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3390 eval "ac_cv_func_$ac_func=yes"
3392 echo "configure: failed program was:" >&5
3393 cat conftest.$ac_ext >&5
3395 eval "ac_cv_func_$ac_func=no"
3400 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3401 echo "$ac_t""yes" 1>&6
3402 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3403 cat >> confdefs.h <<EOF
3404 #define $ac_tr_func 1
3408 echo "$ac_t""no" 1>&6
3412 if test x"$ac_cv_func_connect" = x"no"; then
3415 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
3416 echo "configure:3417: checking for printf in -lnsl_s" >&5
3417 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
3418 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3419 echo $ac_n "(cached) $ac_c" 1>&6
3421 ac_save_LIBS="$LIBS"
3422 LIBS="-lnsl_s $LIBS"
3423 cat > conftest.$ac_ext <<EOF
3424 #line 3425 "configure"
3425 #include "confdefs.h"
3426 /* Override any gcc2 internal prototype to avoid an error. */
3427 /* We use char because int might match the return type of a gcc2
3428 builtin and then its argument prototype would still apply. */
3435 if { (eval echo configure:3436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3437 eval "ac_cv_lib_$ac_lib_var=yes"
3439 echo "configure: failed program was:" >&5
3440 cat conftest.$ac_ext >&5
3442 eval "ac_cv_lib_$ac_lib_var=no"
3445 LIBS="$ac_save_LIBS"
3448 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3449 echo "$ac_t""yes" 1>&6
3450 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3451 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3452 cat >> confdefs.h <<EOF
3453 #define $ac_tr_lib 1
3456 LIBS="-lnsl_s $LIBS"
3459 echo "$ac_t""no" 1>&6
3465 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
3466 echo "configure:3467: checking for printf in -lnsl" >&5
3467 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
3468 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3469 echo $ac_n "(cached) $ac_c" 1>&6
3471 ac_save_LIBS="$LIBS"
3473 cat > conftest.$ac_ext <<EOF
3474 #line 3475 "configure"
3475 #include "confdefs.h"
3476 /* Override any gcc2 internal prototype to avoid an error. */
3477 /* We use char because int might match the return type of a gcc2
3478 builtin and then its argument prototype would still apply. */
3485 if { (eval echo configure:3486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3487 eval "ac_cv_lib_$ac_lib_var=yes"
3489 echo "configure: failed program was:" >&5
3490 cat conftest.$ac_ext >&5
3492 eval "ac_cv_lib_$ac_lib_var=no"
3495 LIBS="$ac_save_LIBS"
3498 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3499 echo "$ac_t""yes" 1>&6
3500 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3501 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3502 cat >> confdefs.h <<EOF
3503 #define $ac_tr_lib 1
3509 echo "$ac_t""no" 1>&6
3515 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3516 echo "configure:3517: checking for connect in -lsocket" >&5
3517 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3518 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3519 echo $ac_n "(cached) $ac_c" 1>&6
3521 ac_save_LIBS="$LIBS"
3522 LIBS="-lsocket $LIBS"
3523 cat > conftest.$ac_ext <<EOF
3524 #line 3525 "configure"
3525 #include "confdefs.h"
3526 /* Override any gcc2 internal prototype to avoid an error. */
3527 /* We use char because int might match the return type of a gcc2
3528 builtin and then its argument prototype would still apply. */
3535 if { (eval echo configure:3536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3537 eval "ac_cv_lib_$ac_lib_var=yes"
3539 echo "configure: failed program was:" >&5
3540 cat conftest.$ac_ext >&5
3542 eval "ac_cv_lib_$ac_lib_var=no"
3545 LIBS="$ac_save_LIBS"
3548 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3549 echo "$ac_t""yes" 1>&6
3550 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3551 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3552 cat >> confdefs.h <<EOF
3553 #define $ac_tr_lib 1
3556 LIBS="-lsocket $LIBS"
3559 echo "$ac_t""no" 1>&6
3565 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
3566 echo "configure:3567: checking for connect in -linet" >&5
3567 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
3568 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3569 echo $ac_n "(cached) $ac_c" 1>&6
3571 ac_save_LIBS="$LIBS"
3573 cat > conftest.$ac_ext <<EOF
3574 #line 3575 "configure"
3575 #include "confdefs.h"
3576 /* Override any gcc2 internal prototype to avoid an error. */
3577 /* We use char because int might match the return type of a gcc2
3578 builtin and then its argument prototype would still apply. */
3585 if { (eval echo configure:3586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3587 eval "ac_cv_lib_$ac_lib_var=yes"
3589 echo "configure: failed program was:" >&5
3590 cat conftest.$ac_ext >&5
3592 eval "ac_cv_lib_$ac_lib_var=no"
3595 LIBS="$ac_save_LIBS"
3598 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3599 echo "$ac_t""yes" 1>&6
3600 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3601 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3602 cat >> confdefs.h <<EOF
3603 #define $ac_tr_lib 1
3609 echo "$ac_t""no" 1>&6
3613 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
3614 test x"$ac_cv_lib_inet_connect" = x"yes"; then
3615 # ac_cv_func_connect=yes
3616 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
3617 cat >> confdefs.h <<\EOF
3618 #define HAVE_CONNECT 1
3625 for ac_func in waitpid getcwd strdup strerror chown chmod chroot
3627 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3628 echo "configure:3629: checking for $ac_func" >&5
3629 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3630 echo $ac_n "(cached) $ac_c" 1>&6
3632 cat > conftest.$ac_ext <<EOF
3633 #line 3634 "configure"
3634 #include "confdefs.h"
3635 /* System header to define __stub macros and hopefully few prototypes,
3636 which can conflict with char $ac_func(); below. */
3638 /* Override any gcc2 internal prototype to avoid an error. */
3639 /* We use char because int might match the return type of a gcc2
3640 builtin and then its argument prototype would still apply. */
3645 /* The GNU C library defines this for functions which it implements
3646 to always fail with ENOSYS. Some functions are actually named
3647 something starting with __ and the normal name is an alias. */
3648 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3656 if { (eval echo configure:3657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3658 eval "ac_cv_func_$ac_func=yes"
3660 echo "configure: failed program was:" >&5
3661 cat conftest.$ac_ext >&5
3663 eval "ac_cv_func_$ac_func=no"
3668 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3669 echo "$ac_t""yes" 1>&6
3670 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3671 cat >> confdefs.h <<EOF
3672 #define $ac_tr_func 1
3676 echo "$ac_t""no" 1>&6
3680 for ac_func in fstat strchr utime utimes getrlimit fsync execl bzero memset
3682 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3683 echo "configure:3684: checking for $ac_func" >&5
3684 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3685 echo $ac_n "(cached) $ac_c" 1>&6
3687 cat > conftest.$ac_ext <<EOF
3688 #line 3689 "configure"
3689 #include "confdefs.h"
3690 /* System header to define __stub macros and hopefully few prototypes,
3691 which can conflict with char $ac_func(); below. */
3693 /* Override any gcc2 internal prototype to avoid an error. */
3694 /* We use char because int might match the return type of a gcc2
3695 builtin and then its argument prototype would still apply. */
3700 /* The GNU C library defines this for functions which it implements
3701 to always fail with ENOSYS. Some functions are actually named
3702 something starting with __ and the normal name is an alias. */
3703 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3711 if { (eval echo configure:3712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3713 eval "ac_cv_func_$ac_func=yes"
3715 echo "configure: failed program was:" >&5
3716 cat conftest.$ac_ext >&5
3718 eval "ac_cv_func_$ac_func=no"
3723 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3724 echo "$ac_t""yes" 1>&6
3725 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3726 cat >> confdefs.h <<EOF
3727 #define $ac_tr_func 1
3731 echo "$ac_t""no" 1>&6
3735 for ac_func in memmove vsnprintf snprintf setsid glob strpbrk pipe crypt16 getauthuid
3737 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3738 echo "configure:3739: checking for $ac_func" >&5
3739 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3740 echo $ac_n "(cached) $ac_c" 1>&6
3742 cat > conftest.$ac_ext <<EOF
3743 #line 3744 "configure"
3744 #include "confdefs.h"
3745 /* System header to define __stub macros and hopefully few prototypes,
3746 which can conflict with char $ac_func(); below. */
3748 /* Override any gcc2 internal prototype to avoid an error. */
3749 /* We use char because int might match the return type of a gcc2
3750 builtin and then its argument prototype would still apply. */
3755 /* The GNU C library defines this for functions which it implements
3756 to always fail with ENOSYS. Some functions are actually named
3757 something starting with __ and the normal name is an alias. */
3758 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3766 if { (eval echo configure:3767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3768 eval "ac_cv_func_$ac_func=yes"
3770 echo "configure: failed program was:" >&5
3771 cat conftest.$ac_ext >&5
3773 eval "ac_cv_func_$ac_func=no"
3778 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3779 echo "$ac_t""yes" 1>&6
3780 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3781 cat >> confdefs.h <<EOF
3782 #define $ac_tr_func 1
3786 echo "$ac_t""no" 1>&6
3790 for ac_func in strftime sigprocmask sigblock sigaction innetgr
3792 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3793 echo "configure:3794: checking for $ac_func" >&5
3794 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3795 echo $ac_n "(cached) $ac_c" 1>&6
3797 cat > conftest.$ac_ext <<EOF
3798 #line 3799 "configure"
3799 #include "confdefs.h"
3800 /* System header to define __stub macros and hopefully few prototypes,
3801 which can conflict with char $ac_func(); below. */
3803 /* Override any gcc2 internal prototype to avoid an error. */
3804 /* We use char because int might match the return type of a gcc2
3805 builtin and then its argument prototype would still apply. */
3810 /* The GNU C library defines this for functions which it implements
3811 to always fail with ENOSYS. Some functions are actually named
3812 something starting with __ and the normal name is an alias. */
3813 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3821 if { (eval echo configure:3822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3823 eval "ac_cv_func_$ac_func=yes"
3825 echo "configure: failed program was:" >&5
3826 cat conftest.$ac_ext >&5
3828 eval "ac_cv_func_$ac_func=no"
3833 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3834 echo "$ac_t""yes" 1>&6
3835 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3836 cat >> confdefs.h <<EOF
3837 #define $ac_tr_func 1
3841 echo "$ac_t""no" 1>&6
3845 for ac_func in initgroups select rdchk getgrnam pathconf putprpwnam
3847 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3848 echo "configure:3849: checking for $ac_func" >&5
3849 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3850 echo $ac_n "(cached) $ac_c" 1>&6
3852 cat > conftest.$ac_ext <<EOF
3853 #line 3854 "configure"
3854 #include "confdefs.h"
3855 /* System header to define __stub macros and hopefully few prototypes,
3856 which can conflict with char $ac_func(); below. */
3858 /* Override any gcc2 internal prototype to avoid an error. */
3859 /* We use char because int might match the return type of a gcc2
3860 builtin and then its argument prototype would still apply. */
3865 /* The GNU C library defines this for functions which it implements
3866 to always fail with ENOSYS. Some functions are actually named
3867 something starting with __ and the normal name is an alias. */
3868 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3876 if { (eval echo configure:3877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3878 eval "ac_cv_func_$ac_func=yes"
3880 echo "configure: failed program was:" >&5
3881 cat conftest.$ac_ext >&5
3883 eval "ac_cv_func_$ac_func=no"
3888 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3889 echo "$ac_t""yes" 1>&6
3890 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3891 cat >> confdefs.h <<EOF
3892 #define $ac_tr_func 1
3896 echo "$ac_t""no" 1>&6
3900 for ac_func in setuidx setgroups mktime rename ftruncate stat64 fstat64 lstat64
3902 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3903 echo "configure:3904: checking for $ac_func" >&5
3904 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3905 echo $ac_n "(cached) $ac_c" 1>&6
3907 cat > conftest.$ac_ext <<EOF
3908 #line 3909 "configure"
3909 #include "confdefs.h"
3910 /* System header to define __stub macros and hopefully few prototypes,
3911 which can conflict with char $ac_func(); below. */
3913 /* Override any gcc2 internal prototype to avoid an error. */
3914 /* We use char because int might match the return type of a gcc2
3915 builtin and then its argument prototype would still apply. */
3920 /* The GNU C library defines this for functions which it implements
3921 to always fail with ENOSYS. Some functions are actually named
3922 something starting with __ and the normal name is an alias. */
3923 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3931 if { (eval echo configure:3932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3933 eval "ac_cv_func_$ac_func=yes"
3935 echo "configure: failed program was:" >&5
3936 cat conftest.$ac_ext >&5
3938 eval "ac_cv_func_$ac_func=no"
3943 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3944 echo "$ac_t""yes" 1>&6
3945 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3946 cat >> confdefs.h <<EOF
3947 #define $ac_tr_func 1
3951 echo "$ac_t""no" 1>&6
3955 for ac_func in set_auth_parameters atexit grantpt getspnam dup2 lseek64 ftruncate64
3957 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3958 echo "configure:3959: checking for $ac_func" >&5
3959 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3960 echo $ac_n "(cached) $ac_c" 1>&6
3962 cat > conftest.$ac_ext <<EOF
3963 #line 3964 "configure"
3964 #include "confdefs.h"
3965 /* System header to define __stub macros and hopefully few prototypes,
3966 which can conflict with char $ac_func(); below. */
3968 /* Override any gcc2 internal prototype to avoid an error. */
3969 /* We use char because int might match the return type of a gcc2
3970 builtin and then its argument prototype would still apply. */
3975 /* The GNU C library defines this for functions which it implements
3976 to always fail with ENOSYS. Some functions are actually named
3977 something starting with __ and the normal name is an alias. */
3978 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3986 if { (eval echo configure:3987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3988 eval "ac_cv_func_$ac_func=yes"
3990 echo "configure: failed program was:" >&5
3991 cat conftest.$ac_ext >&5
3993 eval "ac_cv_func_$ac_func=no"
3998 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3999 echo "$ac_t""yes" 1>&6
4000 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4001 cat >> confdefs.h <<EOF
4002 #define $ac_tr_func 1
4006 echo "$ac_t""no" 1>&6
4010 for ac_func in fseek64 ftell64 bigcrypt getprpwnam setluid yp_get_default_domain getpwanam
4012 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4013 echo "configure:4014: checking for $ac_func" >&5
4014 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4015 echo $ac_n "(cached) $ac_c" 1>&6
4017 cat > conftest.$ac_ext <<EOF
4018 #line 4019 "configure"
4019 #include "confdefs.h"
4020 /* System header to define __stub macros and hopefully few prototypes,
4021 which can conflict with char $ac_func(); below. */
4023 /* Override any gcc2 internal prototype to avoid an error. */
4024 /* We use char because int might match the return type of a gcc2
4025 builtin and then its argument prototype would still apply. */
4030 /* The GNU C library defines this for functions which it implements
4031 to always fail with ENOSYS. Some functions are actually named
4032 something starting with __ and the normal name is an alias. */
4033 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4041 if { (eval echo configure:4042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4043 eval "ac_cv_func_$ac_func=yes"
4045 echo "configure: failed program was:" >&5
4046 cat conftest.$ac_ext >&5
4048 eval "ac_cv_func_$ac_func=no"
4053 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4054 echo "$ac_t""yes" 1>&6
4055 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4056 cat >> confdefs.h <<EOF
4057 #define $ac_tr_func 1
4061 echo "$ac_t""no" 1>&6
4065 for ac_func in srandom random srand rand setenv
4067 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4068 echo "configure:4069: checking for $ac_func" >&5
4069 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4070 echo $ac_n "(cached) $ac_c" 1>&6
4072 cat > conftest.$ac_ext <<EOF
4073 #line 4074 "configure"
4074 #include "confdefs.h"
4075 /* System header to define __stub macros and hopefully few prototypes,
4076 which can conflict with char $ac_func(); below. */
4078 /* Override any gcc2 internal prototype to avoid an error. */
4079 /* We use char because int might match the return type of a gcc2
4080 builtin and then its argument prototype would still apply. */
4085 /* The GNU C library defines this for functions which it implements
4086 to always fail with ENOSYS. Some functions are actually named
4087 something starting with __ and the normal name is an alias. */
4088 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4096 if { (eval echo configure:4097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4098 eval "ac_cv_func_$ac_func=yes"
4100 echo "configure: failed program was:" >&5
4101 cat conftest.$ac_ext >&5
4103 eval "ac_cv_func_$ac_func=no"
4108 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4109 echo "$ac_t""yes" 1>&6
4110 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4111 cat >> confdefs.h <<EOF
4112 #define $ac_tr_func 1
4116 echo "$ac_t""no" 1>&6
4121 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
4123 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4124 echo "configure:4125: checking for $ac_func" >&5
4125 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4126 echo $ac_n "(cached) $ac_c" 1>&6
4128 cat > conftest.$ac_ext <<EOF
4129 #line 4130 "configure"
4130 #include "confdefs.h"
4131 /* System header to define __stub macros and hopefully few prototypes,
4132 which can conflict with char $ac_func(); below. */
4134 /* Override any gcc2 internal prototype to avoid an error. */
4135 /* We use char because int might match the return type of a gcc2
4136 builtin and then its argument prototype would still apply. */
4141 /* The GNU C library defines this for functions which it implements
4142 to always fail with ENOSYS. Some functions are actually named
4143 something starting with __ and the normal name is an alias. */
4144 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4152 if { (eval echo configure:4153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4154 eval "ac_cv_func_$ac_func=yes"
4156 echo "configure: failed program was:" >&5
4157 cat conftest.$ac_ext >&5
4159 eval "ac_cv_func_$ac_func=no"
4164 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4165 echo "$ac_t""yes" 1>&6
4166 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4167 cat >> confdefs.h <<EOF
4168 #define $ac_tr_func 1
4172 echo "$ac_t""no" 1>&6
4176 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
4178 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4179 echo "configure:4180: checking for $ac_func" >&5
4180 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4181 echo $ac_n "(cached) $ac_c" 1>&6
4183 cat > conftest.$ac_ext <<EOF
4184 #line 4185 "configure"
4185 #include "confdefs.h"
4186 /* System header to define __stub macros and hopefully few prototypes,
4187 which can conflict with char $ac_func(); below. */
4189 /* Override any gcc2 internal prototype to avoid an error. */
4190 /* We use char because int might match the return type of a gcc2
4191 builtin and then its argument prototype would still apply. */
4196 /* The GNU C library defines this for functions which it implements
4197 to always fail with ENOSYS. Some functions are actually named
4198 something starting with __ and the normal name is an alias. */
4199 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4207 if { (eval echo configure:4208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4209 eval "ac_cv_func_$ac_func=yes"
4211 echo "configure: failed program was:" >&5
4212 cat conftest.$ac_ext >&5
4214 eval "ac_cv_func_$ac_func=no"
4219 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4220 echo "$ac_t""yes" 1>&6
4221 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4222 cat >> confdefs.h <<EOF
4223 #define $ac_tr_func 1
4227 echo "$ac_t""no" 1>&6
4231 for ac_func in __getcwd _getcwd
4233 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4234 echo "configure:4235: checking for $ac_func" >&5
4235 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4236 echo $ac_n "(cached) $ac_c" 1>&6
4238 cat > conftest.$ac_ext <<EOF
4239 #line 4240 "configure"
4240 #include "confdefs.h"
4241 /* System header to define __stub macros and hopefully few prototypes,
4242 which can conflict with char $ac_func(); below. */
4244 /* Override any gcc2 internal prototype to avoid an error. */
4245 /* We use char because int might match the return type of a gcc2
4246 builtin and then its argument prototype would still apply. */
4251 /* The GNU C library defines this for functions which it implements
4252 to always fail with ENOSYS. Some functions are actually named
4253 something starting with __ and the normal name is an alias. */
4254 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4262 if { (eval echo configure:4263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4264 eval "ac_cv_func_$ac_func=yes"
4266 echo "configure: failed program was:" >&5
4267 cat conftest.$ac_ext >&5
4269 eval "ac_cv_func_$ac_func=no"
4274 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4275 echo "$ac_t""yes" 1>&6
4276 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4277 cat >> confdefs.h <<EOF
4278 #define $ac_tr_func 1
4282 echo "$ac_t""no" 1>&6
4286 for ac_func in __xstat __fxstat __lxstat
4288 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4289 echo "configure:4290: checking for $ac_func" >&5
4290 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4291 echo $ac_n "(cached) $ac_c" 1>&6
4293 cat > conftest.$ac_ext <<EOF
4294 #line 4295 "configure"
4295 #include "confdefs.h"
4296 /* System header to define __stub macros and hopefully few prototypes,
4297 which can conflict with char $ac_func(); below. */
4299 /* Override any gcc2 internal prototype to avoid an error. */
4300 /* We use char because int might match the return type of a gcc2
4301 builtin and then its argument prototype would still apply. */
4306 /* The GNU C library defines this for functions which it implements
4307 to always fail with ENOSYS. Some functions are actually named
4308 something starting with __ and the normal name is an alias. */
4309 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4317 if { (eval echo configure:4318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4319 eval "ac_cv_func_$ac_func=yes"
4321 echo "configure: failed program was:" >&5
4322 cat conftest.$ac_ext >&5
4324 eval "ac_cv_func_$ac_func=no"
4329 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4330 echo "$ac_t""yes" 1>&6
4331 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4332 cat >> confdefs.h <<EOF
4333 #define $ac_tr_func 1
4337 echo "$ac_t""no" 1>&6
4341 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
4343 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4344 echo "configure:4345: checking for $ac_func" >&5
4345 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4346 echo $ac_n "(cached) $ac_c" 1>&6
4348 cat > conftest.$ac_ext <<EOF
4349 #line 4350 "configure"
4350 #include "confdefs.h"
4351 /* System header to define __stub macros and hopefully few prototypes,
4352 which can conflict with char $ac_func(); below. */
4354 /* Override any gcc2 internal prototype to avoid an error. */
4355 /* We use char because int might match the return type of a gcc2
4356 builtin and then its argument prototype would still apply. */
4361 /* The GNU C library defines this for functions which it implements
4362 to always fail with ENOSYS. Some functions are actually named
4363 something starting with __ and the normal name is an alias. */
4364 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4372 if { (eval echo configure:4373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4374 eval "ac_cv_func_$ac_func=yes"
4376 echo "configure: failed program was:" >&5
4377 cat conftest.$ac_ext >&5
4379 eval "ac_cv_func_$ac_func=no"
4384 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4385 echo "$ac_t""yes" 1>&6
4386 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4387 cat >> confdefs.h <<EOF
4388 #define $ac_tr_func 1
4392 echo "$ac_t""no" 1>&6
4396 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
4398 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4399 echo "configure:4400: checking for $ac_func" >&5
4400 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4401 echo $ac_n "(cached) $ac_c" 1>&6
4403 cat > conftest.$ac_ext <<EOF
4404 #line 4405 "configure"
4405 #include "confdefs.h"
4406 /* System header to define __stub macros and hopefully few prototypes,
4407 which can conflict with char $ac_func(); below. */
4409 /* Override any gcc2 internal prototype to avoid an error. */
4410 /* We use char because int might match the return type of a gcc2
4411 builtin and then its argument prototype would still apply. */
4416 /* The GNU C library defines this for functions which it implements
4417 to always fail with ENOSYS. Some functions are actually named
4418 something starting with __ and the normal name is an alias. */
4419 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4427 if { (eval echo configure:4428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4429 eval "ac_cv_func_$ac_func=yes"
4431 echo "configure: failed program was:" >&5
4432 cat conftest.$ac_ext >&5
4434 eval "ac_cv_func_$ac_func=no"
4439 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4440 echo "$ac_t""yes" 1>&6
4441 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4442 cat >> confdefs.h <<EOF
4443 #define $ac_tr_func 1
4447 echo "$ac_t""no" 1>&6
4451 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
4453 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4454 echo "configure:4455: checking for $ac_func" >&5
4455 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4456 echo $ac_n "(cached) $ac_c" 1>&6
4458 cat > conftest.$ac_ext <<EOF
4459 #line 4460 "configure"
4460 #include "confdefs.h"
4461 /* System header to define __stub macros and hopefully few prototypes,
4462 which can conflict with char $ac_func(); below. */
4464 /* Override any gcc2 internal prototype to avoid an error. */
4465 /* We use char because int might match the return type of a gcc2
4466 builtin and then its argument prototype would still apply. */
4471 /* The GNU C library defines this for functions which it implements
4472 to always fail with ENOSYS. Some functions are actually named
4473 something starting with __ and the normal name is an alias. */
4474 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4482 if { (eval echo configure:4483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4484 eval "ac_cv_func_$ac_func=yes"
4486 echo "configure: failed program was:" >&5
4487 cat conftest.$ac_ext >&5
4489 eval "ac_cv_func_$ac_func=no"
4494 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4495 echo "$ac_t""yes" 1>&6
4496 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4497 cat >> confdefs.h <<EOF
4498 #define $ac_tr_func 1
4502 echo "$ac_t""no" 1>&6
4506 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
4508 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4509 echo "configure:4510: checking for $ac_func" >&5
4510 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4511 echo $ac_n "(cached) $ac_c" 1>&6
4513 cat > conftest.$ac_ext <<EOF
4514 #line 4515 "configure"
4515 #include "confdefs.h"
4516 /* System header to define __stub macros and hopefully few prototypes,
4517 which can conflict with char $ac_func(); below. */
4519 /* Override any gcc2 internal prototype to avoid an error. */
4520 /* We use char because int might match the return type of a gcc2
4521 builtin and then its argument prototype would still apply. */
4526 /* The GNU C library defines this for functions which it implements
4527 to always fail with ENOSYS. Some functions are actually named
4528 something starting with __ and the normal name is an alias. */
4529 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4537 if { (eval echo configure:4538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4539 eval "ac_cv_func_$ac_func=yes"
4541 echo "configure: failed program was:" >&5
4542 cat conftest.$ac_ext >&5
4544 eval "ac_cv_func_$ac_func=no"
4549 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4550 echo "$ac_t""yes" 1>&6
4551 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4552 cat >> confdefs.h <<EOF
4553 #define $ac_tr_func 1
4557 echo "$ac_t""no" 1>&6
4561 for ac_func in _write __write _fork __fork
4563 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4564 echo "configure:4565: checking for $ac_func" >&5
4565 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4566 echo $ac_n "(cached) $ac_c" 1>&6
4568 cat > conftest.$ac_ext <<EOF
4569 #line 4570 "configure"
4570 #include "confdefs.h"
4571 /* System header to define __stub macros and hopefully few prototypes,
4572 which can conflict with char $ac_func(); below. */
4574 /* Override any gcc2 internal prototype to avoid an error. */
4575 /* We use char because int might match the return type of a gcc2
4576 builtin and then its argument prototype would still apply. */
4581 /* The GNU C library defines this for functions which it implements
4582 to always fail with ENOSYS. Some functions are actually named
4583 something starting with __ and the normal name is an alias. */
4584 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4592 if { (eval echo configure:4593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4594 eval "ac_cv_func_$ac_func=yes"
4596 echo "configure: failed program was:" >&5
4597 cat conftest.$ac_ext >&5
4599 eval "ac_cv_func_$ac_func=no"
4604 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4605 echo "$ac_t""yes" 1>&6
4606 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4607 cat >> confdefs.h <<EOF
4608 #define $ac_tr_func 1
4612 echo "$ac_t""no" 1>&6
4616 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
4618 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4619 echo "configure:4620: checking for $ac_func" >&5
4620 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4621 echo $ac_n "(cached) $ac_c" 1>&6
4623 cat > conftest.$ac_ext <<EOF
4624 #line 4625 "configure"
4625 #include "confdefs.h"
4626 /* System header to define __stub macros and hopefully few prototypes,
4627 which can conflict with char $ac_func(); below. */
4629 /* Override any gcc2 internal prototype to avoid an error. */
4630 /* We use char because int might match the return type of a gcc2
4631 builtin and then its argument prototype would still apply. */
4636 /* The GNU C library defines this for functions which it implements
4637 to always fail with ENOSYS. Some functions are actually named
4638 something starting with __ and the normal name is an alias. */
4639 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4647 if { (eval echo configure:4648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4649 eval "ac_cv_func_$ac_func=yes"
4651 echo "configure: failed program was:" >&5
4652 cat conftest.$ac_ext >&5
4654 eval "ac_cv_func_$ac_func=no"
4659 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4660 echo "$ac_t""yes" 1>&6
4661 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4662 cat >> confdefs.h <<EOF
4663 #define $ac_tr_func 1
4667 echo "$ac_t""no" 1>&6
4671 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
4673 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4674 echo "configure:4675: checking for $ac_func" >&5
4675 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4676 echo $ac_n "(cached) $ac_c" 1>&6
4678 cat > conftest.$ac_ext <<EOF
4679 #line 4680 "configure"
4680 #include "confdefs.h"
4681 /* System header to define __stub macros and hopefully few prototypes,
4682 which can conflict with char $ac_func(); below. */
4684 /* Override any gcc2 internal prototype to avoid an error. */
4685 /* We use char because int might match the return type of a gcc2
4686 builtin and then its argument prototype would still apply. */
4691 /* The GNU C library defines this for functions which it implements
4692 to always fail with ENOSYS. Some functions are actually named
4693 something starting with __ and the normal name is an alias. */
4694 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4702 if { (eval echo configure:4703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4704 eval "ac_cv_func_$ac_func=yes"
4706 echo "configure: failed program was:" >&5
4707 cat conftest.$ac_ext >&5
4709 eval "ac_cv_func_$ac_func=no"
4714 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4715 echo "$ac_t""yes" 1>&6
4716 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4717 cat >> confdefs.h <<EOF
4718 #define $ac_tr_func 1
4722 echo "$ac_t""no" 1>&6
4726 for ac_func in pread _pread __pread pread64 _pread64 __pread64
4728 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4729 echo "configure:4730: checking for $ac_func" >&5
4730 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4731 echo $ac_n "(cached) $ac_c" 1>&6
4733 cat > conftest.$ac_ext <<EOF
4734 #line 4735 "configure"
4735 #include "confdefs.h"
4736 /* System header to define __stub macros and hopefully few prototypes,
4737 which can conflict with char $ac_func(); below. */
4739 /* Override any gcc2 internal prototype to avoid an error. */
4740 /* We use char because int might match the return type of a gcc2
4741 builtin and then its argument prototype would still apply. */
4746 /* The GNU C library defines this for functions which it implements
4747 to always fail with ENOSYS. Some functions are actually named
4748 something starting with __ and the normal name is an alias. */
4749 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4757 if { (eval echo configure:4758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4759 eval "ac_cv_func_$ac_func=yes"
4761 echo "configure: failed program was:" >&5
4762 cat conftest.$ac_ext >&5
4764 eval "ac_cv_func_$ac_func=no"
4769 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4770 echo "$ac_t""yes" 1>&6
4771 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4772 cat >> confdefs.h <<EOF
4773 #define $ac_tr_func 1
4777 echo "$ac_t""no" 1>&6
4781 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
4783 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4784 echo "configure:4785: checking for $ac_func" >&5
4785 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4786 echo $ac_n "(cached) $ac_c" 1>&6
4788 cat > conftest.$ac_ext <<EOF
4789 #line 4790 "configure"
4790 #include "confdefs.h"
4791 /* System header to define __stub macros and hopefully few prototypes,
4792 which can conflict with char $ac_func(); below. */
4794 /* Override any gcc2 internal prototype to avoid an error. */
4795 /* We use char because int might match the return type of a gcc2
4796 builtin and then its argument prototype would still apply. */
4801 /* The GNU C library defines this for functions which it implements
4802 to always fail with ENOSYS. Some functions are actually named
4803 something starting with __ and the normal name is an alias. */
4804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4812 if { (eval echo configure:4813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4814 eval "ac_cv_func_$ac_func=yes"
4816 echo "configure: failed program was:" >&5
4817 cat conftest.$ac_ext >&5
4819 eval "ac_cv_func_$ac_func=no"
4824 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4825 echo "$ac_t""yes" 1>&6
4826 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4827 cat >> confdefs.h <<EOF
4828 #define $ac_tr_func 1
4832 echo "$ac_t""no" 1>&6
4836 for ac_func in open64 _open64 __open64 creat64
4838 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4839 echo "configure:4840: checking for $ac_func" >&5
4840 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4841 echo $ac_n "(cached) $ac_c" 1>&6
4843 cat > conftest.$ac_ext <<EOF
4844 #line 4845 "configure"
4845 #include "confdefs.h"
4846 /* System header to define __stub macros and hopefully few prototypes,
4847 which can conflict with char $ac_func(); below. */
4849 /* Override any gcc2 internal prototype to avoid an error. */
4850 /* We use char because int might match the return type of a gcc2
4851 builtin and then its argument prototype would still apply. */
4856 /* The GNU C library defines this for functions which it implements
4857 to always fail with ENOSYS. Some functions are actually named
4858 something starting with __ and the normal name is an alias. */
4859 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4867 if { (eval echo configure:4868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4869 eval "ac_cv_func_$ac_func=yes"
4871 echo "configure: failed program was:" >&5
4872 cat conftest.$ac_ext >&5
4874 eval "ac_cv_func_$ac_func=no"
4879 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4880 echo "$ac_t""yes" 1>&6
4881 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4882 cat >> confdefs.h <<EOF
4883 #define $ac_tr_func 1
4887 echo "$ac_t""no" 1>&6
4892 echo $ac_n "checking for long long""... $ac_c" 1>&6
4893 echo "configure:4894: checking for long long" >&5
4894 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
4895 echo $ac_n "(cached) $ac_c" 1>&6
4898 if test "$cross_compiling" = yes; then
4899 samba_cv_have_longlong=cross
4901 cat > conftest.$ac_ext <<EOF
4902 #line 4903 "configure"
4903 #include "confdefs.h"
4905 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
4907 if { (eval echo configure:4908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4909 samba_cv_have_longlong=yes
4911 echo "configure: failed program was:" >&5
4912 cat conftest.$ac_ext >&5
4914 samba_cv_have_longlong=no
4921 echo "$ac_t""$samba_cv_have_longlong" 1>&6
4922 if test x"$samba_cv_have_longlong" = x"yes"; then
4923 cat >> confdefs.h <<\EOF
4924 #define HAVE_LONGLONG 1
4929 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
4930 echo "configure:4931: checking for 64 bit off_t" >&5
4931 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
4932 echo $ac_n "(cached) $ac_c" 1>&6
4935 if test "$cross_compiling" = yes; then
4936 samba_cv_SIZEOF_OFF_T=cross
4938 cat > conftest.$ac_ext <<EOF
4939 #line 4940 "configure"
4940 #include "confdefs.h"
4942 #include <sys/stat.h>
4943 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
4945 if { (eval echo configure:4946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4947 samba_cv_SIZEOF_OFF_T=yes
4949 echo "configure: failed program was:" >&5
4950 cat conftest.$ac_ext >&5
4952 samba_cv_SIZEOF_OFF_T=no
4959 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
4960 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
4961 cat >> confdefs.h <<\EOF
4962 #define SIZEOF_OFF_T 8
4967 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
4968 echo "configure:4969: checking for off64_t" >&5
4969 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
4970 echo $ac_n "(cached) $ac_c" 1>&6
4973 if test "$cross_compiling" = yes; then
4974 samba_cv_HAVE_OFF64_T=cross
4976 cat > conftest.$ac_ext <<EOF
4977 #line 4978 "configure"
4978 #include "confdefs.h"
4980 #include <sys/stat.h>
4981 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
4983 if { (eval echo configure:4984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4985 samba_cv_HAVE_OFF64_T=yes
4987 echo "configure: failed program was:" >&5
4988 cat conftest.$ac_ext >&5
4990 samba_cv_HAVE_OFF64_T=no
4997 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
4998 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
4999 cat >> confdefs.h <<\EOF
5000 #define HAVE_OFF64_T 1
5005 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
5006 echo "configure:5007: checking for 64 bit ino_t" >&5
5007 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
5008 echo $ac_n "(cached) $ac_c" 1>&6
5011 if test "$cross_compiling" = yes; then
5012 samba_cv_SIZEOF_INO_T=cross
5014 cat > conftest.$ac_ext <<EOF
5015 #line 5016 "configure"
5016 #include "confdefs.h"
5018 #include <sys/stat.h>
5019 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
5021 if { (eval echo configure:5022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5023 samba_cv_SIZEOF_INO_T=yes
5025 echo "configure: failed program was:" >&5
5026 cat conftest.$ac_ext >&5
5028 samba_cv_SIZEOF_INO_T=no
5035 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
5036 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
5037 cat >> confdefs.h <<\EOF
5038 #define SIZEOF_INO_T 8
5043 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
5044 echo "configure:5045: checking for ino64_t" >&5
5045 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
5046 echo $ac_n "(cached) $ac_c" 1>&6
5049 if test "$cross_compiling" = yes; then
5050 samba_cv_HAVE_INO64_T=cross
5052 cat > conftest.$ac_ext <<EOF
5053 #line 5054 "configure"
5054 #include "confdefs.h"
5056 #include <sys/stat.h>
5057 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
5059 if { (eval echo configure:5060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5061 samba_cv_HAVE_INO64_T=yes
5063 echo "configure: failed program was:" >&5
5064 cat conftest.$ac_ext >&5
5066 samba_cv_HAVE_INO64_T=no
5073 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
5074 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
5075 cat >> confdefs.h <<\EOF
5076 #define HAVE_INO64_T 1
5081 echo $ac_n "checking for union semun""... $ac_c" 1>&6
5082 echo "configure:5083: checking for union semun" >&5
5083 if eval "test \"`echo '$''{'samba_cv_HAVE_UNION_SEMUN'+set}'`\" = set"; then
5084 echo $ac_n "(cached) $ac_c" 1>&6
5087 if test "$cross_compiling" = yes; then
5088 samba_cv_HAVE_UNION_SEMUN=cross
5090 cat > conftest.$ac_ext <<EOF
5091 #line 5092 "configure"
5092 #include "confdefs.h"
5094 #include <sys/types.h>
5095 #include <sys/ipc.h>
5096 #include <sys/sem.h>
5097 main() { union semun ss; exit(0); }
5099 if { (eval echo configure:5100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5101 samba_cv_HAVE_UNION_SEMUN=yes
5103 echo "configure: failed program was:" >&5
5104 cat conftest.$ac_ext >&5
5106 samba_cv_HAVE_UNION_SEMUN=no
5113 echo "$ac_t""$samba_cv_HAVE_UNION_SEMUN" 1>&6
5114 if test x"$samba_cv_HAVE_UNION_SEMUN" = x"yes"; then
5115 cat >> confdefs.h <<\EOF
5116 #define HAVE_UNION_SEMUN 1
5121 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
5122 echo "configure:5123: checking for unsigned char" >&5
5123 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
5124 echo $ac_n "(cached) $ac_c" 1>&6
5127 if test "$cross_compiling" = yes; then
5128 samba_cv_HAVE_UNSIGNED_CHAR=cross
5130 cat > conftest.$ac_ext <<EOF
5131 #line 5132 "configure"
5132 #include "confdefs.h"
5134 main() { char c; c=250; exit((c > 0)?0:1); }
5136 if { (eval echo configure:5137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5138 samba_cv_HAVE_UNSIGNED_CHAR=yes
5140 echo "configure: failed program was:" >&5
5141 cat conftest.$ac_ext >&5
5143 samba_cv_HAVE_UNSIGNED_CHAR=no
5150 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
5151 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
5152 cat >> confdefs.h <<\EOF
5153 #define HAVE_UNSIGNED_CHAR 1
5158 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
5159 echo "configure:5160: checking for sin_len in sock" >&5
5160 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
5161 echo $ac_n "(cached) $ac_c" 1>&6
5164 cat > conftest.$ac_ext <<EOF
5165 #line 5166 "configure"
5166 #include "confdefs.h"
5167 #include <sys/types.h>
5168 #include <sys/socket.h>
5169 #include <netinet/in.h>
5171 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
5174 if { (eval echo configure:5175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5176 samba_cv_HAVE_SOCK_SIN_LEN=yes
5178 echo "configure: failed program was:" >&5
5179 cat conftest.$ac_ext >&5
5181 samba_cv_HAVE_SOCK_SIN_LEN=no
5186 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
5187 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
5188 cat >> confdefs.h <<\EOF
5189 #define HAVE_SOCK_SIN_LEN 1
5194 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
5195 echo "configure:5196: checking whether seekdir returns void" >&5
5196 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
5197 echo $ac_n "(cached) $ac_c" 1>&6
5200 cat > conftest.$ac_ext <<EOF
5201 #line 5202 "configure"
5202 #include "confdefs.h"
5203 #include <sys/types.h>
5205 void seekdir(DIR *d, long loc) { return; }
5210 if { (eval echo configure:5211: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5212 samba_cv_SEEKDIR_RETURNS_VOID=yes
5214 echo "configure: failed program was:" >&5
5215 cat conftest.$ac_ext >&5
5217 samba_cv_SEEKDIR_RETURNS_VOID=no
5222 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
5223 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
5224 cat >> confdefs.h <<\EOF
5225 #define SEEKDIR_RETURNS_VOID 1
5230 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
5231 echo "configure:5232: checking for __FILE__ macro" >&5
5232 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
5233 echo $ac_n "(cached) $ac_c" 1>&6
5236 cat > conftest.$ac_ext <<EOF
5237 #line 5238 "configure"
5238 #include "confdefs.h"
5241 printf("%s\n", __FILE__);
5244 if { (eval echo configure:5245: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5246 samba_cv_HAVE_FILE_MACRO=yes
5248 echo "configure: failed program was:" >&5
5249 cat conftest.$ac_ext >&5
5251 samba_cv_HAVE_FILE_MACRO=no
5256 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
5257 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
5258 cat >> confdefs.h <<\EOF
5259 #define HAVE_FILE_MACRO 1
5264 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
5265 echo "configure:5266: checking for __FUNCTION__ macro" >&5
5266 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
5267 echo $ac_n "(cached) $ac_c" 1>&6
5270 cat > conftest.$ac_ext <<EOF
5271 #line 5272 "configure"
5272 #include "confdefs.h"
5275 printf("%s\n", __FUNCTION__);
5278 if { (eval echo configure:5279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5280 samba_cv_HAVE_FUNCTION_MACRO=yes
5282 echo "configure: failed program was:" >&5
5283 cat conftest.$ac_ext >&5
5285 samba_cv_HAVE_FUNCTION_MACRO=no
5290 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
5291 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
5292 cat >> confdefs.h <<\EOF
5293 #define HAVE_FUNCTION_MACRO 1
5298 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
5299 echo "configure:5300: checking if gettimeofday takes tz argument" >&5
5300 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
5301 echo $ac_n "(cached) $ac_c" 1>&6
5304 if test "$cross_compiling" = yes; then
5305 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
5307 cat > conftest.$ac_ext <<EOF
5308 #line 5309 "configure"
5309 #include "confdefs.h"
5311 #include <sys/time.h>
5313 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
5315 if { (eval echo configure:5316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5317 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
5319 echo "configure: failed program was:" >&5
5320 cat conftest.$ac_ext >&5
5322 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
5329 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
5330 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
5331 cat >> confdefs.h <<\EOF
5332 #define HAVE_GETTIMEOFDAY_TZ 1
5338 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
5339 echo "configure:5340: checking for broken readdir" >&5
5340 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
5341 echo $ac_n "(cached) $ac_c" 1>&6
5344 if test "$cross_compiling" = yes; then
5345 samba_cv_HAVE_BROKEN_READDIR=cross
5347 cat > conftest.$ac_ext <<EOF
5348 #line 5349 "configure"
5349 #include "confdefs.h"
5350 #include <sys/types.h>
5352 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
5353 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
5354 di->d_name[0] == 0) exit(0); exit(1);}
5356 if { (eval echo configure:5357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5358 samba_cv_HAVE_BROKEN_READDIR=yes
5360 echo "configure: failed program was:" >&5
5361 cat conftest.$ac_ext >&5
5363 samba_cv_HAVE_BROKEN_READDIR=no
5370 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
5371 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
5372 cat >> confdefs.h <<\EOF
5373 #define HAVE_BROKEN_READDIR 1
5378 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
5379 echo "configure:5380: checking for utimbuf" >&5
5380 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
5381 echo $ac_n "(cached) $ac_c" 1>&6
5384 cat > conftest.$ac_ext <<EOF
5385 #line 5386 "configure"
5386 #include "confdefs.h"
5387 #include <sys/types.h>
5390 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
5393 if { (eval echo configure:5394: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5395 samba_cv_HAVE_UTIMBUF=yes
5397 echo "configure: failed program was:" >&5
5398 cat conftest.$ac_ext >&5
5400 samba_cv_HAVE_UTIMBUF=no
5405 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
5406 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
5407 cat >> confdefs.h <<\EOF
5408 #define HAVE_UTIMBUF 1
5413 echo $ac_n "checking for kernel oplock type definitions""... $ac_c" 1>&6
5414 echo "configure:5415: checking for kernel oplock type definitions" >&5
5415 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS'+set}'`\" = set"; then
5416 echo $ac_n "(cached) $ac_c" 1>&6
5419 cat > conftest.$ac_ext <<EOF
5420 #line 5421 "configure"
5421 #include "confdefs.h"
5422 #include <sys/types.h>
5425 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
5428 if { (eval echo configure:5429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5430 samba_cv_HAVE_KERNEL_OPLOCKS=yes
5432 echo "configure: failed program was:" >&5
5433 cat conftest.$ac_ext >&5
5435 samba_cv_HAVE_KERNEL_OPLOCKS=no
5440 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS" 1>&6
5441 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS" = x"yes"; then
5442 cat >> confdefs.h <<\EOF
5443 #define HAVE_KERNEL_OPLOCKS 1
5448 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
5449 echo "configure:5450: checking for irix specific capabilities" >&5
5450 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
5451 echo $ac_n "(cached) $ac_c" 1>&6
5454 if test "$cross_compiling" = yes; then
5455 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
5457 cat > conftest.$ac_ext <<EOF
5458 #line 5459 "configure"
5459 #include "confdefs.h"
5460 #include <sys/types.h>
5461 #include <sys/capability.h>
5464 if ((cap = cap_get_proc()) == NULL)
5466 cap->cap_effective |= CAP_NETWORK_MGT;
5467 cap->cap_inheritable |= CAP_NETWORK_MGT;
5473 if { (eval echo configure:5474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5475 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
5477 echo "configure: failed program was:" >&5
5478 cat conftest.$ac_ext >&5
5480 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
5487 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
5488 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
5489 cat >> confdefs.h <<\EOF
5490 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
5495 echo $ac_n "checking for test routines""... $ac_c" 1>&6
5496 echo "configure:5497: checking for test routines" >&5
5497 if test "$cross_compiling" = yes; then
5498 echo "configure: warning: cannot run when cross-compiling" 1>&2
5500 cat > conftest.$ac_ext <<EOF
5501 #line 5502 "configure"
5502 #include "confdefs.h"
5503 #include "${srcdir-.}/tests/trivial.c"
5505 if { (eval echo configure:5506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5507 echo "$ac_t""yes" 1>&6
5509 echo "configure: failed program was:" >&5
5510 cat conftest.$ac_ext >&5
5512 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
5518 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
5519 echo "configure:5520: checking for ftruncate extend" >&5
5520 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
5521 echo $ac_n "(cached) $ac_c" 1>&6
5524 if test "$cross_compiling" = yes; then
5525 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
5527 cat > conftest.$ac_ext <<EOF
5528 #line 5529 "configure"
5529 #include "confdefs.h"
5530 #include "${srcdir-.}/tests/ftruncate.c"
5532 if { (eval echo configure:5533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5534 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
5536 echo "configure: failed program was:" >&5
5537 cat conftest.$ac_ext >&5
5539 samba_cv_HAVE_FTRUNCATE_EXTEND=no
5546 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
5547 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
5548 cat >> confdefs.h <<\EOF
5549 #define HAVE_FTRUNCATE_EXTEND 1
5554 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
5555 echo "configure:5556: checking for broken getgroups" >&5
5556 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
5557 echo $ac_n "(cached) $ac_c" 1>&6
5560 if test "$cross_compiling" = yes; then
5561 samba_cv_HAVE_BROKEN_GETGROUPS=cross
5563 cat > conftest.$ac_ext <<EOF
5564 #line 5565 "configure"
5565 #include "confdefs.h"
5566 #include "${srcdir-.}/tests/getgroups.c"
5568 if { (eval echo configure:5569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5570 samba_cv_HAVE_BROKEN_GETGROUPS=yes
5572 echo "configure: failed program was:" >&5
5573 cat conftest.$ac_ext >&5
5575 samba_cv_HAVE_BROKEN_GETGROUPS=no
5582 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
5583 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
5584 cat >> confdefs.h <<\EOF
5585 #define HAVE_BROKEN_GETGROUPS 1
5590 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
5591 echo "configure:5592: checking whether getpass should be replaced" >&5
5592 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
5593 echo $ac_n "(cached) $ac_c" 1>&6
5596 SAVE_CPPFLAGS="$CPPFLAGS"
5597 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/include -I${srcdir-.}/ubiqx"
5598 cat > conftest.$ac_ext <<EOF
5599 #line 5600 "configure"
5600 #include "confdefs.h"
5602 #define REPLACE_GETPASS 1
5603 #define NO_CONFIG_H 1
5604 #define main dont_declare_main
5605 #include "${srcdir-.}/lib/getsmbpass.c"
5612 if { (eval echo configure:5613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5614 samba_cv_REPLACE_GETPASS=yes
5616 echo "configure: failed program was:" >&5
5617 cat conftest.$ac_ext >&5
5619 samba_cv_REPLACE_GETPASS=no
5622 CPPFLAGS="$SAVE_CPPFLAGS"
5626 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
5627 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
5628 cat >> confdefs.h <<\EOF
5629 #define REPLACE_GETPASS 1
5634 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
5635 echo "configure:5636: checking for broken inet_ntoa" >&5
5636 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
5637 echo $ac_n "(cached) $ac_c" 1>&6
5640 if test "$cross_compiling" = yes; then
5641 samba_cv_REPLACE_INET_NTOA=cross
5643 cat > conftest.$ac_ext <<EOF
5644 #line 5645 "configure"
5645 #include "confdefs.h"
5648 #include <sys/types.h>
5649 #include <netinet/in.h>
5650 #include <arpa/inet.h>
5651 main() { struct in_addr ip; ip.s_addr = 0x12345678;
5652 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
5653 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
5656 if { (eval echo configure:5657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5658 samba_cv_REPLACE_INET_NTOA=yes
5660 echo "configure: failed program was:" >&5
5661 cat conftest.$ac_ext >&5
5663 samba_cv_REPLACE_INET_NTOA=no
5670 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
5671 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
5672 cat >> confdefs.h <<\EOF
5673 #define REPLACE_INET_NTOA 1
5678 echo $ac_n "checking for root""... $ac_c" 1>&6
5679 echo "configure:5680: checking for root" >&5
5680 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
5681 echo $ac_n "(cached) $ac_c" 1>&6
5684 if test "$cross_compiling" = yes; then
5685 samba_cv_HAVE_ROOT=cross
5687 cat > conftest.$ac_ext <<EOF
5688 #line 5689 "configure"
5689 #include "confdefs.h"
5690 main() { exit(getuid() != 0); }
5692 if { (eval echo configure:5693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5694 samba_cv_HAVE_ROOT=yes
5696 echo "configure: failed program was:" >&5
5697 cat conftest.$ac_ext >&5
5699 samba_cv_HAVE_ROOT=no
5706 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
5707 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
5708 cat >> confdefs.h <<\EOF
5713 echo "configure: warning: running as non-root will disable some tests" 1>&2
5717 echo $ac_n "checking for netmask ifconf""... $ac_c" 1>&6
5718 echo "configure:5719: checking for netmask ifconf" >&5
5719 if eval "test \"`echo '$''{'samba_cv_HAVE_NETMASK_IFCONF'+set}'`\" = set"; then
5720 echo $ac_n "(cached) $ac_c" 1>&6
5723 if test "$cross_compiling" = yes; then
5724 samba_cv_HAVE_NETMASK_IFCONF=cross
5726 cat > conftest.$ac_ext <<EOF
5727 #line 5728 "configure"
5728 #include "confdefs.h"
5730 #define HAVE_NETMASK_IFCONF 1
5732 #include "${srcdir-.}/lib/netmask.c"
5734 if { (eval echo configure:5735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5736 samba_cv_HAVE_NETMASK_IFCONF=yes
5738 echo "configure: failed program was:" >&5
5739 cat conftest.$ac_ext >&5
5741 samba_cv_HAVE_NETMASK_IFCONF=no
5748 echo "$ac_t""$samba_cv_HAVE_NETMASK_IFCONF" 1>&6
5749 if test x"$samba_cv_HAVE_NETMASK_IFCONF" = x"yes"; then
5750 netmask=yes;cat >> confdefs.h <<\EOF
5751 #define HAVE_NETMASK_IFCONF 1
5756 if test $netmask = no; then
5757 echo $ac_n "checking for netmask ifreq""... $ac_c" 1>&6
5758 echo "configure:5759: checking for netmask ifreq" >&5
5759 if eval "test \"`echo '$''{'samba_cv_HAVE_NETMASK_IFREQ'+set}'`\" = set"; then
5760 echo $ac_n "(cached) $ac_c" 1>&6
5763 if test "$cross_compiling" = yes; then
5764 samba_cv_HAVE_NETMASK_IFREQ=cross
5766 cat > conftest.$ac_ext <<EOF
5767 #line 5768 "configure"
5768 #include "confdefs.h"
5770 #define HAVE_NETMASK_IFREQ 1
5772 #include "${srcdir-.}/lib/netmask.c"
5774 if { (eval echo configure:5775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5776 samba_cv_HAVE_NETMASK_IFREQ=yes
5778 echo "configure: failed program was:" >&5
5779 cat conftest.$ac_ext >&5
5781 samba_cv_HAVE_NETMASK_IFREQ=no
5788 echo "$ac_t""$samba_cv_HAVE_NETMASK_IFREQ" 1>&6
5789 if test x"$samba_cv_HAVE_NETMASK_IFREQ" = x"yes"; then
5790 netmask=yes;cat >> confdefs.h <<\EOF
5791 #define HAVE_NETMASK_IFREQ 1
5797 if test $netmask = no; then
5798 echo $ac_n "checking for netmask AIX""... $ac_c" 1>&6
5799 echo "configure:5800: checking for netmask AIX" >&5
5800 if eval "test \"`echo '$''{'samba_cv_HAVE_NETMASK_AIX'+set}'`\" = set"; then
5801 echo $ac_n "(cached) $ac_c" 1>&6
5804 if test "$cross_compiling" = yes; then
5805 samba_cv_HAVE_NETMASK_AIX=cross
5807 cat > conftest.$ac_ext <<EOF
5808 #line 5809 "configure"
5809 #include "confdefs.h"
5811 #define HAVE_NETMASK_AIX 1
5813 #include "${srcdir-.}/lib/netmask.c"
5815 if { (eval echo configure:5816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5817 samba_cv_HAVE_NETMASK_AIX=yes
5819 echo "configure: failed program was:" >&5
5820 cat conftest.$ac_ext >&5
5822 samba_cv_HAVE_NETMASK_AIX=no
5829 echo "$ac_t""$samba_cv_HAVE_NETMASK_AIX" 1>&6
5830 if test x"$samba_cv_HAVE_NETMASK_AIX" = x"yes"; then
5831 netmask=yes;cat >> confdefs.h <<\EOF
5832 #define HAVE_NETMASK_AIX 1
5838 echo $ac_n "checking for trapdoor seteuid""... $ac_c" 1>&6
5839 echo "configure:5840: checking for trapdoor seteuid" >&5
5840 if eval "test \"`echo '$''{'samba_cv_HAVE_TRAPDOOR_UID'+set}'`\" = set"; then
5841 echo $ac_n "(cached) $ac_c" 1>&6
5844 if test "$cross_compiling" = yes; then
5847 cat > conftest.$ac_ext <<EOF
5848 #line 5849 "configure"
5849 #include "confdefs.h"
5850 #include "${srcdir-.}/tests/trapdoor.c"
5852 if { (eval echo configure:5853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5854 samba_cv_HAVE_TRAPDOOR_UID=no
5856 echo "configure: failed program was:" >&5
5857 cat conftest.$ac_ext >&5
5859 samba_cv_HAVE_TRAPDOOR_UID=yes
5866 echo "$ac_t""$samba_cv_HAVE_TRAPDOOR_UID" 1>&6
5867 if test x"$samba_cv_HAVE_TRAPDOOR_UID" = x"yes"; then
5868 cat >> confdefs.h <<\EOF
5869 #define HAVE_TRAPDOOR_UID 1
5874 echo $ac_n "checking for shared mmap""... $ac_c" 1>&6
5875 echo "configure:5876: checking for shared mmap" >&5
5876 if eval "test \"`echo '$''{'samba_cv_HAVE_SHARED_MMAP'+set}'`\" = set"; then
5877 echo $ac_n "(cached) $ac_c" 1>&6
5880 if test "$cross_compiling" = yes; then
5881 samba_cv_HAVE_SHARED_MMAP=cross
5883 cat > conftest.$ac_ext <<EOF
5884 #line 5885 "configure"
5885 #include "confdefs.h"
5886 #include "${srcdir-.}/tests/shared_mmap.c"
5888 if { (eval echo configure:5889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5890 samba_cv_HAVE_SHARED_MMAP=yes
5892 echo "configure: failed program was:" >&5
5893 cat conftest.$ac_ext >&5
5895 samba_cv_HAVE_SHARED_MMAP=no
5902 echo "$ac_t""$samba_cv_HAVE_SHARED_MMAP" 1>&6
5903 if test x"$samba_cv_HAVE_SHARED_MMAP" = x"yes"; then
5904 cat >> confdefs.h <<\EOF
5905 #define HAVE_SHARED_MMAP 1
5910 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
5911 echo "configure:5912: checking for fcntl locking" >&5
5912 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
5913 echo $ac_n "(cached) $ac_c" 1>&6
5916 if test "$cross_compiling" = yes; then
5917 samba_cv_HAVE_FCNTL_LOCK=cross
5919 cat > conftest.$ac_ext <<EOF
5920 #line 5921 "configure"
5921 #include "confdefs.h"
5922 #include "${srcdir-.}/tests/fcntl_lock.c"
5924 if { (eval echo configure:5925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5926 samba_cv_HAVE_FCNTL_LOCK=yes
5928 echo "configure: failed program was:" >&5
5929 cat conftest.$ac_ext >&5
5931 samba_cv_HAVE_FCNTL_LOCK=no
5938 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
5939 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
5940 cat >> confdefs.h <<\EOF
5941 #define HAVE_FCNTL_LOCK 1
5946 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
5947 echo "configure:5948: checking for 64 bit fcntl locking" >&5
5948 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
5949 echo $ac_n "(cached) $ac_c" 1>&6
5952 if test "$cross_compiling" = yes; then
5953 samba_cv_HAVE_STRUCT_FLOCK64=cross
5955 cat > conftest.$ac_ext <<EOF
5956 #line 5957 "configure"
5957 #include "confdefs.h"
5966 #ifdef HAVE_SYS_FCNTL_H
5967 #include <sys/fcntl.h>
5969 main() { struct flock64 fl64;
5970 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
5977 if { (eval echo configure:5978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5979 samba_cv_HAVE_STRUCT_FLOCK64=yes
5981 echo "configure: failed program was:" >&5
5982 cat conftest.$ac_ext >&5
5984 samba_cv_HAVE_STRUCT_FLOCK64=no
5991 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
5992 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
5993 cat >> confdefs.h <<\EOF
5994 #define HAVE_STRUCT_FLOCK64 1
5999 echo $ac_n "checking for sysv ipc""... $ac_c" 1>&6
6000 echo "configure:6001: checking for sysv ipc" >&5
6001 if eval "test \"`echo '$''{'samba_cv_HAVE_SYSV_IPC'+set}'`\" = set"; then
6002 echo $ac_n "(cached) $ac_c" 1>&6
6005 if test "$cross_compiling" = yes; then
6006 samba_cv_HAVE_SYSV_IPC=cross
6008 cat > conftest.$ac_ext <<EOF
6009 #line 6010 "configure"
6010 #include "confdefs.h"
6011 #include "${srcdir-.}/tests/sysv_ipc.c"
6013 if { (eval echo configure:6014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6015 samba_cv_HAVE_SYSV_IPC=yes
6017 echo "configure: failed program was:" >&5
6018 cat conftest.$ac_ext >&5
6020 samba_cv_HAVE_SYSV_IPC=no
6027 echo "$ac_t""$samba_cv_HAVE_SYSV_IPC" 1>&6
6028 if test x"$samba_cv_HAVE_SYSV_IPC" = x"yes"; then
6029 cat >> confdefs.h <<\EOF
6030 #define HAVE_SYSV_IPC 1
6035 #################################################
6036 # check for the AFS filesystem
6037 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
6038 echo "configure:6039: checking whether to use AFS" >&5
6039 # Check whether --with-afs or --without-afs was given.
6040 if test "${with_afs+set}" = set; then
6044 echo "$ac_t""yes" 1>&6
6045 cat >> confdefs.h <<\EOF
6051 echo "$ac_t""no" 1>&6
6055 echo "$ac_t""no" 1>&6
6061 #################################################
6062 # check for the DFS auth system
6063 echo $ac_n "checking whether to use DFS auth""... $ac_c" 1>&6
6064 echo "configure:6065: checking whether to use DFS auth" >&5
6065 # Check whether --with-dfs or --without-dfs was given.
6066 if test "${with_dfs+set}" = set; then
6070 echo "$ac_t""yes" 1>&6
6071 cat >> confdefs.h <<\EOF
6077 echo "$ac_t""no" 1>&6
6081 echo "$ac_t""no" 1>&6
6086 #################################################
6087 # check for Kerberos IV auth system
6088 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
6089 echo "configure:6090: checking whether to use Kerberos IV" >&5
6090 # Check whether --with-krb4 or --without-krb4 was given.
6091 if test "${with_krb4+set}" = set; then
6092 withval="$with_krb4"
6093 echo "$ac_t""yes" 1>&6
6094 cat >> confdefs.h <<\EOF
6098 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
6099 echo "configure:6100: checking for dn_expand in -lresolv" >&5
6100 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
6101 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6102 echo $ac_n "(cached) $ac_c" 1>&6
6104 ac_save_LIBS="$LIBS"
6105 LIBS="-lresolv $LIBS"
6106 cat > conftest.$ac_ext <<EOF
6107 #line 6108 "configure"
6108 #include "confdefs.h"
6109 /* Override any gcc2 internal prototype to avoid an error. */
6110 /* We use char because int might match the return type of a gcc2
6111 builtin and then its argument prototype would still apply. */
6118 if { (eval echo configure:6119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6120 eval "ac_cv_lib_$ac_lib_var=yes"
6122 echo "configure: failed program was:" >&5
6123 cat conftest.$ac_ext >&5
6125 eval "ac_cv_lib_$ac_lib_var=no"
6128 LIBS="$ac_save_LIBS"
6131 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6132 echo "$ac_t""yes" 1>&6
6133 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6134 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6135 cat >> confdefs.h <<EOF
6136 #define $ac_tr_lib 1
6139 LIBS="-lresolv $LIBS"
6142 echo "$ac_t""no" 1>&6
6145 LIBS="$LIBS -lkrb -ldes"
6146 CFLAGS="$CFLAGS -I$withval/include"
6147 LDFLAGS="$LDFLAGS -L$withval/lib"
6149 echo "$ac_t""no" 1>&6
6154 #################################################
6155 # check for automount support
6156 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
6157 echo "configure:6158: checking whether to use AUTOMOUNT" >&5
6158 # Check whether --with-automount or --without-automount was given.
6159 if test "${with_automount+set}" = set; then
6160 withval="$with_automount"
6163 echo "$ac_t""yes" 1>&6
6164 cat >> confdefs.h <<\EOF
6165 #define WITH_AUTOMOUNT 1
6170 echo "$ac_t""no" 1>&6
6174 echo "$ac_t""no" 1>&6
6179 #################################################
6180 # check for smbmount support
6181 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
6182 echo "configure:6183: checking whether to use SMBMOUNT" >&5
6183 # Check whether --with-smbmount or --without-smbmount was given.
6184 if test "${with_smbmount+set}" = set; then
6185 withval="$with_smbmount"
6188 echo "$ac_t""yes" 1>&6
6189 cat >> confdefs.h <<\EOF
6190 #define WITH_SMBMOUNT 1
6193 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
6196 echo "$ac_t""no" 1>&6
6201 echo "$ac_t""no" 1>&6
6207 #################################################
6208 # check for a LDAP password database
6209 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
6210 echo "configure:6211: checking whether to use LDAP password database" >&5
6211 # Check whether --with-ldap or --without-ldap was given.
6212 if test "${with_ldap+set}" = set; then
6213 withval="$with_ldap"
6216 echo "$ac_t""yes" 1>&6
6217 cat >> confdefs.h <<\EOF
6223 echo "$ac_t""no" 1>&6
6227 echo "$ac_t""no" 1>&6
6232 #################################################
6233 # check for a NISPLUS password database
6234 echo $ac_n "checking whether to use NISPLUS password database""... $ac_c" 1>&6
6235 echo "configure:6236: checking whether to use NISPLUS password database" >&5
6236 # Check whether --with-nisplus or --without-nisplus was given.
6237 if test "${with_nisplus+set}" = set; then
6238 withval="$with_nisplus"
6241 echo "$ac_t""yes" 1>&6
6242 cat >> confdefs.h <<\EOF
6243 #define WITH_NISPLUS 1
6248 echo "$ac_t""no" 1>&6
6252 echo "$ac_t""no" 1>&6
6257 #################################################
6258 # check for a NISPLUS_HOME support
6259 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
6260 echo "configure:6261: checking whether to use NISPLUS_HOME" >&5
6261 # Check whether --with-nisplus-home or --without-nisplus-home was given.
6262 if test "${with_nisplus_home+set}" = set; then
6263 withval="$with_nisplus_home"
6266 echo "$ac_t""yes" 1>&6
6267 cat >> confdefs.h <<\EOF
6268 #define WITH_NISPLUS_HOME 1
6273 echo "$ac_t""no" 1>&6
6277 echo "$ac_t""no" 1>&6
6282 #################################################
6283 # check for the secure socket layer
6284 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
6285 echo "configure:6286: checking whether to use SSL" >&5
6286 # Check whether --with-ssl or --without-ssl was given.
6287 if test "${with_ssl+set}" = set; then
6291 echo "$ac_t""yes" 1>&6
6292 cat >> confdefs.h <<\EOF
6298 echo "$ac_t""no" 1>&6
6302 echo "$ac_t""no" 1>&6
6307 #################################################
6308 # check for experimental mmap support
6309 echo $ac_n "checking whether to use MMAP""... $ac_c" 1>&6
6310 echo "configure:6311: checking whether to use MMAP" >&5
6311 # Check whether --with-mmap or --without-mmap was given.
6312 if test "${with_mmap+set}" = set; then
6313 withval="$with_mmap"
6316 echo "$ac_t""yes" 1>&6
6317 cat >> confdefs.h <<\EOF
6323 echo "$ac_t""no" 1>&6
6327 echo "$ac_t""no" 1>&6
6332 #################################################
6333 # check for syslog logging
6334 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
6335 echo "configure:6336: checking whether to use syslog logging" >&5
6336 # Check whether --with-syslog or --without-syslog was given.
6337 if test "${with_syslog+set}" = set; then
6338 withval="$with_syslog"
6341 echo "$ac_t""yes" 1>&6
6342 cat >> confdefs.h <<\EOF
6343 #define WITH_SYSLOG 1
6348 echo "$ac_t""no" 1>&6
6352 echo "$ac_t""no" 1>&6
6357 #################################################
6358 # check for experimental netatalk resource fork support
6359 echo $ac_n "checking whether to support netatalk""... $ac_c" 1>&6
6360 echo "configure:6361: checking whether to support netatalk" >&5
6361 # Check whether --with-netatalk or --without-netatalk was given.
6362 if test "${with_netatalk+set}" = set; then
6363 withval="$with_netatalk"
6366 echo "$ac_t""yes" 1>&6
6367 cat >> confdefs.h <<\EOF
6368 #define WITH_NETATALK 1
6373 echo "$ac_t""no" 1>&6
6377 echo "$ac_t""no" 1>&6
6382 #################################################
6383 # check for experimental disk-quotas support
6384 QUOTAOBJS=noquotas.o
6386 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
6387 echo "configure:6388: checking whether to support disk-quotas" >&5
6388 # Check whether --with-quotas or --without-quotas was given.
6389 if test "${with_quotas+set}" = set; then
6390 withval="$with_quotas"
6393 echo "$ac_t""yes" 1>&6
6397 echo "$ac_t""no" 1>&6
6401 echo "$ac_t""no" 1>&6
6407 #################################################
6408 # these tests are taken from the GNU fileutils package
6409 echo "checking how to get filesystem space usage" 1>&6
6410 echo "configure:6411: checking how to get filesystem space usage" >&5
6413 # Test for statvfs64.
6414 if test $space = no; then
6416 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
6417 echo "configure:6418: checking statvfs64 function (SVR4)" >&5
6418 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
6419 echo $ac_n "(cached) $ac_c" 1>&6
6421 if test "$cross_compiling" = yes; then
6422 fu_cv_sys_stat_statvfs64=cross
6424 cat > conftest.$ac_ext <<EOF
6425 #line 6426 "configure"
6426 #include "confdefs.h"
6428 #include <sys/types.h>
6429 #include <sys/statvfs.h>
6432 struct statvfs64 fsd;
6433 exit (statfs64 (".", &fsd));
6436 if { (eval echo configure:6437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6438 fu_cv_sys_stat_statvfs64=yes
6440 echo "configure: failed program was:" >&5
6441 cat conftest.$ac_ext >&5
6443 fu_cv_sys_stat_statvfs64=no
6450 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
6451 if test $fu_cv_sys_stat_statvfs64 = yes; then
6453 cat >> confdefs.h <<\EOF
6454 #define STAT_STATVFS64 1
6460 # Perform only the link test since it seems there are no variants of the
6461 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
6462 # because that got a false positive on SCO OSR5. Adding the declaration
6463 # of a `struct statvfs' causes this test to fail (as it should) on such
6464 # systems. That system is reported to work fine with STAT_STATFS4 which
6465 # is what it gets when this test fails.
6466 if test $space = no; then
6468 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
6469 echo "configure:6470: checking statvfs function (SVR4)" >&5
6470 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
6471 echo $ac_n "(cached) $ac_c" 1>&6
6473 cat > conftest.$ac_ext <<EOF
6474 #line 6475 "configure"
6475 #include "confdefs.h"
6476 #include <sys/types.h>
6477 #include <sys/statvfs.h>
6479 struct statvfs fsd; statvfs (0, &fsd);
6482 if { (eval echo configure:6483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6484 fu_cv_sys_stat_statvfs=yes
6486 echo "configure: failed program was:" >&5
6487 cat conftest.$ac_ext >&5
6489 fu_cv_sys_stat_statvfs=no
6494 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
6495 if test $fu_cv_sys_stat_statvfs = yes; then
6497 cat >> confdefs.h <<\EOF
6498 #define STAT_STATVFS 1
6504 if test $space = no; then
6505 # DEC Alpha running OSF/1
6506 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
6507 echo "configure:6508: checking for 3-argument statfs function (DEC OSF/1)" >&5
6508 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
6509 echo $ac_n "(cached) $ac_c" 1>&6
6511 if test "$cross_compiling" = yes; then
6512 fu_cv_sys_stat_statfs3_osf1=no
6514 cat > conftest.$ac_ext <<EOF
6515 #line 6516 "configure"
6516 #include "confdefs.h"
6518 #include <sys/param.h>
6519 #include <sys/types.h>
6520 #include <sys/mount.h>
6525 exit (statfs (".", &fsd, sizeof (struct statfs)));
6528 if { (eval echo configure:6529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6530 fu_cv_sys_stat_statfs3_osf1=yes
6532 echo "configure: failed program was:" >&5
6533 cat conftest.$ac_ext >&5
6535 fu_cv_sys_stat_statfs3_osf1=no
6542 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
6543 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
6545 cat >> confdefs.h <<\EOF
6546 #define STAT_STATFS3_OSF1 1
6552 if test $space = no; then
6554 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
6555 echo "configure:6556: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
6556 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
6557 echo $ac_n "(cached) $ac_c" 1>&6
6559 if test "$cross_compiling" = yes; then
6560 fu_cv_sys_stat_statfs2_bsize=no
6562 cat > conftest.$ac_ext <<EOF
6563 #line 6564 "configure"
6564 #include "confdefs.h"
6566 #ifdef HAVE_SYS_PARAM_H
6567 #include <sys/param.h>
6569 #ifdef HAVE_SYS_MOUNT_H
6570 #include <sys/mount.h>
6572 #ifdef HAVE_SYS_VFS_H
6573 #include <sys/vfs.h>
6579 exit (statfs (".", &fsd));
6582 if { (eval echo configure:6583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6584 fu_cv_sys_stat_statfs2_bsize=yes
6586 echo "configure: failed program was:" >&5
6587 cat conftest.$ac_ext >&5
6589 fu_cv_sys_stat_statfs2_bsize=no
6596 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
6597 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
6599 cat >> confdefs.h <<\EOF
6600 #define STAT_STATFS2_BSIZE 1
6606 if test $space = no; then
6608 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
6609 echo "configure:6610: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
6610 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
6611 echo $ac_n "(cached) $ac_c" 1>&6
6613 if test "$cross_compiling" = yes; then
6614 fu_cv_sys_stat_statfs4=no
6616 cat > conftest.$ac_ext <<EOF
6617 #line 6618 "configure"
6618 #include "confdefs.h"
6619 #include <sys/types.h>
6620 #include <sys/statfs.h>
6624 exit (statfs (".", &fsd, sizeof fsd, 0));
6627 if { (eval echo configure:6628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6629 fu_cv_sys_stat_statfs4=yes
6631 echo "configure: failed program was:" >&5
6632 cat conftest.$ac_ext >&5
6634 fu_cv_sys_stat_statfs4=no
6641 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
6642 if test $fu_cv_sys_stat_statfs4 = yes; then
6644 cat >> confdefs.h <<\EOF
6645 #define STAT_STATFS4 1
6651 if test $space = no; then
6653 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
6654 echo "configure:6655: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
6655 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
6656 echo $ac_n "(cached) $ac_c" 1>&6
6658 if test "$cross_compiling" = yes; then
6659 fu_cv_sys_stat_statfs2_fsize=no
6661 cat > conftest.$ac_ext <<EOF
6662 #line 6663 "configure"
6663 #include "confdefs.h"
6664 #include <sys/types.h>
6665 #ifdef HAVE_SYS_PARAM_H
6666 #include <sys/param.h>
6668 #ifdef HAVE_SYS_MOUNT_H
6669 #include <sys/mount.h>
6675 exit (statfs (".", &fsd));
6678 if { (eval echo configure:6679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6680 fu_cv_sys_stat_statfs2_fsize=yes
6682 echo "configure: failed program was:" >&5
6683 cat conftest.$ac_ext >&5
6685 fu_cv_sys_stat_statfs2_fsize=no
6692 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
6693 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
6695 cat >> confdefs.h <<\EOF
6696 #define STAT_STATFS2_FSIZE 1
6702 if test $space = no; then
6704 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
6705 echo "configure:6706: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
6706 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
6707 echo $ac_n "(cached) $ac_c" 1>&6
6709 if test "$cross_compiling" = yes; then
6710 fu_cv_sys_stat_fs_data=no
6712 cat > conftest.$ac_ext <<EOF
6713 #line 6714 "configure"
6714 #include "confdefs.h"
6715 #include <sys/types.h>
6716 #ifdef HAVE_SYS_PARAM_H
6717 #include <sys/param.h>
6719 #ifdef HAVE_SYS_MOUNT_H
6720 #include <sys/mount.h>
6722 #ifdef HAVE_SYS_FS_TYPES_H
6723 #include <sys/fs_types.h>
6728 /* Ultrix's statfs returns 1 for success,
6729 0 for not mounted, -1 for failure. */
6730 exit (statfs (".", &fsd) != 1);
6733 if { (eval echo configure:6734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6735 fu_cv_sys_stat_fs_data=yes
6737 echo "configure: failed program was:" >&5
6738 cat conftest.$ac_ext >&5
6740 fu_cv_sys_stat_fs_data=no
6747 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
6748 if test $fu_cv_sys_stat_fs_data = yes; then
6750 cat >> confdefs.h <<\EOF
6751 #define STAT_STATFS2_FS_DATA 1
6757 echo "checking configure summary"
6758 if test "$cross_compiling" = yes; then
6761 cat > conftest.$ac_ext <<EOF
6762 #line 6763 "configure"
6763 #include "confdefs.h"
6764 #include "${srcdir-.}/tests/summary.c"
6766 if { (eval echo configure:6767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6768 echo "configure OK";
6770 echo "configure: failed program was:" >&5
6771 cat conftest.$ac_ext >&5
6773 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
6783 cat > confcache <<\EOF
6784 # This file is a shell script that caches the results of configure
6785 # tests run on this system so they can be shared between configure
6786 # scripts and configure runs. It is not useful on other systems.
6787 # If it contains results you don't want to keep, you may remove or edit it.
6789 # By default, configure uses ./config.cache as the cache file,
6790 # creating it if it does not exist already. You can give configure
6791 # the --cache-file=FILE option to use a different cache file; that is
6792 # what configure does when it calls configure scripts in
6793 # subdirectories, so they share the cache.
6794 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6795 # config.status only pays attention to the cache file if you give it the
6796 # --recheck option to rerun configure.
6799 # The following way of writing the cache mishandles newlines in values,
6800 # but we know of no workaround that is simple, portable, and efficient.
6801 # So, don't put newlines in cache variables' values.
6802 # Ultrix sh set writes to stderr and can't be redirected directly,
6803 # and sets the high bit in the cache file unless we assign to the vars.
6805 case `(ac_space=' '; set) 2>&1` in
6807 # `set' does not quote correctly, so add quotes (double-quote substitution
6808 # turns \\\\ into \\, and sed turns \\ into \).
6810 -e "s/'/'\\\\''/g" \
6811 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6814 # `set' quotes correctly as required by POSIX, so do not add quotes.
6815 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6818 if cmp -s $cache_file confcache; then
6821 if test -w $cache_file; then
6822 echo "updating cache $cache_file"
6823 cat confcache > $cache_file
6825 echo "not updating unwritable cache $cache_file"
6830 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6832 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6833 # Let make expand exec_prefix.
6834 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6836 # Any assignment to VPATH causes Sun make to only execute
6837 # the first set of double-colon rules, so remove it if not needed.
6838 # If there is a colon in the path, we need to keep it.
6839 if test "x$srcdir" = x.; then
6840 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6843 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6845 DEFS=-DHAVE_CONFIG_H
6847 # Without the "./", some shells look in PATH for config.status.
6848 : ${CONFIG_STATUS=./config.status}
6850 echo creating $CONFIG_STATUS
6851 rm -f $CONFIG_STATUS
6852 cat > $CONFIG_STATUS <<EOF
6854 # Generated automatically by configure.
6855 # Run this file to recreate the current configuration.
6856 # This directory was configured as follows,
6857 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6859 # $0 $ac_configure_args
6861 # Compiler output produced by configure, useful for debugging
6862 # configure, is in ./config.log if it exists.
6864 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6867 case "\$ac_option" in
6868 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6869 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6870 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6871 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6872 echo "$CONFIG_STATUS generated by autoconf version 2.12"
6874 -help | --help | --hel | --he | --h)
6875 echo "\$ac_cs_usage"; exit 0 ;;
6876 *) echo "\$ac_cs_usage"; exit 1 ;;
6880 ac_given_srcdir=$srcdir
6881 ac_given_INSTALL="$INSTALL"
6883 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6885 cat >> $CONFIG_STATUS <<EOF
6887 # Protect against being on the right side of a sed subst in config.status.
6888 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6889 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6892 s%@CFLAGS@%$CFLAGS%g
6893 s%@CPPFLAGS@%$CPPFLAGS%g
6894 s%@CXXFLAGS@%$CXXFLAGS%g
6896 s%@LDFLAGS@%$LDFLAGS%g
6898 s%@exec_prefix@%$exec_prefix%g
6899 s%@prefix@%$prefix%g
6900 s%@program_transform_name@%$program_transform_name%g
6901 s%@bindir@%$bindir%g
6902 s%@sbindir@%$sbindir%g
6903 s%@libexecdir@%$libexecdir%g
6904 s%@datadir@%$datadir%g
6905 s%@sysconfdir@%$sysconfdir%g
6906 s%@sharedstatedir@%$sharedstatedir%g
6907 s%@localstatedir@%$localstatedir%g
6908 s%@libdir@%$libdir%g
6909 s%@includedir@%$includedir%g
6910 s%@oldincludedir@%$oldincludedir%g
6911 s%@infodir@%$infodir%g
6912 s%@mandir@%$mandir%g
6914 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6915 s%@INSTALL_DATA@%$INSTALL_DATA%g
6917 s%@MPROGS@%$MPROGS%g
6918 s%@LDSHFLAGS@%$LDSHFLAGS%g
6919 s%@HOST_OS@%$HOST_OS%g
6921 s%@WRAP32@%$WRAP32%g
6922 s%@PICFLAG@%$PICFLAG%g
6925 s%@host_alias@%$host_alias%g
6926 s%@host_cpu@%$host_cpu%g
6927 s%@host_vendor@%$host_vendor%g
6928 s%@host_os@%$host_os%g
6929 s%@target@%$target%g
6930 s%@target_alias@%$target_alias%g
6931 s%@target_cpu@%$target_cpu%g
6932 s%@target_vendor@%$target_vendor%g
6933 s%@target_os@%$target_os%g
6935 s%@build_alias@%$build_alias%g
6936 s%@build_cpu@%$build_cpu%g
6937 s%@build_vendor@%$build_vendor%g
6938 s%@build_os@%$build_os%g
6940 s%@AUTOCONF@%$AUTOCONF%g
6941 s%@AUTOHEADER@%$AUTOHEADER%g
6943 s%@LIBOBJS@%$LIBOBJS%g
6944 s%@QUOTAOBJS@%$QUOTAOBJS%g
6945 s%@builddir@%$builddir%g
6950 cat >> $CONFIG_STATUS <<\EOF
6952 # Split the substitutions into bite-sized pieces for seds with
6953 # small command number limits, like on Digital OSF/1 and HP-UX.
6954 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6955 ac_file=1 # Number of current file.
6956 ac_beg=1 # First line for current file.
6957 ac_end=$ac_max_sed_cmds # Line after last line for current file.
6960 while $ac_more_lines; do
6961 if test $ac_beg -gt 1; then
6962 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6964 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6966 if test ! -s conftest.s$ac_file; then
6968 rm -f conftest.s$ac_file
6970 if test -z "$ac_sed_cmds"; then
6971 ac_sed_cmds="sed -f conftest.s$ac_file"
6973 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6975 ac_file=`expr $ac_file + 1`
6977 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6980 if test -z "$ac_sed_cmds"; then
6985 cat >> $CONFIG_STATUS <<EOF
6987 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
6989 cat >> $CONFIG_STATUS <<\EOF
6990 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6991 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6993 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6994 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6995 *) ac_file_in="${ac_file}.in" ;;
6998 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7000 # Remove last slash and all that follows it. Not all systems have dirname.
7001 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7002 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7003 # The file is in a subdirectory.
7004 test ! -d "$ac_dir" && mkdir "$ac_dir"
7005 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7006 # A "../" for each directory in $ac_dir_suffix.
7007 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7009 ac_dir_suffix= ac_dots=
7012 case "$ac_given_srcdir" in
7014 if test -z "$ac_dots"; then top_srcdir=.
7015 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7016 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7018 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7019 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7022 case "$ac_given_INSTALL" in
7023 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7024 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7027 echo creating "$ac_file"
7029 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7031 *Makefile*) ac_comsub="1i\\
7032 # $configure_input" ;;
7036 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7038 s%@configure_input@%$configure_input%g
7039 s%@srcdir@%$srcdir%g
7040 s%@top_srcdir@%$top_srcdir%g
7041 s%@INSTALL@%$INSTALL%g
7042 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7046 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7047 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7049 # ac_d sets the value in "#define NAME VALUE" lines.
7050 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7051 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7054 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7055 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7056 ac_uB='\([ ]\)%\1#\2define\3'
7059 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7060 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7061 ac_eB='$%\1#\2define\3'
7065 if test "${CONFIG_HEADERS+set}" != set; then
7067 cat >> $CONFIG_STATUS <<EOF
7068 CONFIG_HEADERS="include/config.h"
7070 cat >> $CONFIG_STATUS <<\EOF
7072 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7073 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7075 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7076 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7077 *) ac_file_in="${ac_file}.in" ;;
7080 echo creating $ac_file
7082 rm -f conftest.frag conftest.in conftest.out
7083 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7084 cat $ac_file_inputs > conftest.in
7088 # Transform confdefs.h into a sed script conftest.vals that substitutes
7089 # the proper values into config.h.in to produce config.h. And first:
7090 # Protect against being on the right side of a sed subst in config.status.
7091 # Protect against being in an unquoted here document in config.status.
7093 cat > conftest.hdr <<\EOF
7096 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7100 sed -n -f conftest.hdr confdefs.h > conftest.vals
7103 # This sed command replaces #undef with comments. This is necessary, for
7104 # example, in the case of _POSIX_SOURCE, which is predefined and required
7105 # on some systems where configure will not decide to define it.
7106 cat >> conftest.vals <<\EOF
7107 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7110 # Break up conftest.vals because some shells have a limit on
7111 # the size of here documents, and old seds have small limits too.
7116 ac_lines=`grep -c . conftest.vals`
7117 # grep -c gives empty output for an empty file on some AIX systems.
7118 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7119 # Write a limited-size here document to conftest.frag.
7120 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7121 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7123 sed -f conftest.frag conftest.in > conftest.out
7125 mv conftest.out conftest.in
7127 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7129 mv conftest.tail conftest.vals
7133 cat >> $CONFIG_STATUS <<\EOF
7134 rm -f conftest.frag conftest.h
7135 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7136 cat conftest.in >> conftest.h
7138 if cmp -s $ac_file conftest.h 2>/dev/null; then
7139 echo "$ac_file is unchanged"
7142 # Remove last slash and all that follows it. Not all systems have dirname.
7143 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7144 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7145 # The file is in a subdirectory.
7146 test ! -d "$ac_dir" && mkdir "$ac_dir"
7149 mv conftest.h $ac_file
7154 cat >> $CONFIG_STATUS <<EOF
7157 cat >> $CONFIG_STATUS <<\EOF
7161 chmod +x $CONFIG_STATUS
7162 rm -fr confdefs* $ac_clean_files
7163 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1