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*) cat >> confdefs.h <<\EOF
1073 LDSHFLAGS="-shared -Bshareable"
1075 *irix*) cat >> confdefs.h <<\EOF
1079 WRAP32=bin/smbwrapper.32.so
1081 *aix*) cat >> confdefs.h <<\EOF
1085 *hpux*) cat >> confdefs.h <<\EOF
1089 *qnx*) cat >> confdefs.h <<\EOF
1093 *osf*) cat >> confdefs.h <<\EOF
1097 *sco*) cat >> confdefs.h <<\EOF
1101 *next2*) cat >> confdefs.h <<\EOF
1108 # try to work out how to produce pic code with this compiler
1110 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
1111 echo "configure:1112: checking whether ${CC-cc} accepts -fpic" >&5
1112 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
1113 echo $ac_n "(cached) $ac_c" 1>&6
1115 echo 'void f(){}' > conftest.c
1116 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
1117 ac_cv_prog_cc_fpic=yes
1119 ac_cv_prog_cc_fpic=no
1125 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
1126 if test $ac_cv_prog_cc_fpic = yes; then
1129 if test x$PICFLAG = x; then
1130 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
1131 echo "configure:1132: checking whether ${CC-cc} accepts -Kpic" >&5
1132 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
1133 echo $ac_n "(cached) $ac_c" 1>&6
1135 echo 'void f(){}' > conftest.c
1136 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
1137 ac_cv_prog_cc_Kpic=yes
1139 ac_cv_prog_cc_Kpic=no
1145 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
1146 if test $ac_cv_prog_cc_Kpic = yes; then
1150 if test x$PICFLAG = x; then
1151 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
1152 echo "configure:1153: checking whether ${CC-cc} accepts -KPIC" >&5
1153 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
1154 echo $ac_n "(cached) $ac_c" 1>&6
1156 echo 'void f(){}' > conftest.c
1157 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
1158 ac_cv_prog_cc_KPIC=yes
1160 ac_cv_prog_cc_KPIC=no
1166 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
1167 if test $ac_cv_prog_cc_KPIC = yes; then
1172 # we can only support smbsh and smbwrapper if we can produce PIC code
1173 if test x$PICFLAG = x; then
1174 echo No support for PIC code - disabling smbwrapper and smbsh
1177 WRAP="bin/smbsh bin/smbwrapper.so"
1180 echo $ac_n "checking for inline""... $ac_c" 1>&6
1181 echo "configure:1182: checking for inline" >&5
1182 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1183 echo $ac_n "(cached) $ac_c" 1>&6
1186 for ac_kw in inline __inline__ __inline; do
1187 cat > conftest.$ac_ext <<EOF
1188 #line 1189 "configure"
1189 #include "confdefs.h"
1195 if { (eval echo configure:1196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1197 ac_cv_c_inline=$ac_kw; break
1199 echo "configure: failed program was:" >&5
1200 cat conftest.$ac_ext >&5
1207 echo "$ac_t""$ac_cv_c_inline" 1>&6
1208 case "$ac_cv_c_inline" in
1210 no) cat >> confdefs.h <<\EOF
1214 *) cat >> confdefs.h <<EOF
1215 #define inline $ac_cv_c_inline
1220 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1221 echo "configure:1222: checking how to run the C preprocessor" >&5
1222 # On Suns, sometimes $CPP names a directory.
1223 if test -n "$CPP" && test -d "$CPP"; then
1226 if test -z "$CPP"; then
1227 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1228 echo $ac_n "(cached) $ac_c" 1>&6
1230 # This must be in double quotes, not single quotes, because CPP may get
1231 # substituted into the Makefile and "${CC-cc}" will confuse make.
1233 # On the NeXT, cc -E runs the code through the compiler's parser,
1234 # not just through cpp.
1235 cat > conftest.$ac_ext <<EOF
1236 #line 1237 "configure"
1237 #include "confdefs.h"
1241 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1242 { (eval echo configure:1243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1243 ac_err=`grep -v '^ *+' conftest.out`
1244 if test -z "$ac_err"; then
1248 echo "configure: failed program was:" >&5
1249 cat conftest.$ac_ext >&5
1251 CPP="${CC-cc} -E -traditional-cpp"
1252 cat > conftest.$ac_ext <<EOF
1253 #line 1254 "configure"
1254 #include "confdefs.h"
1258 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1259 { (eval echo configure:1260: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1260 ac_err=`grep -v '^ *+' conftest.out`
1261 if test -z "$ac_err"; then
1265 echo "configure: failed program was:" >&5
1266 cat conftest.$ac_ext >&5
1273 ac_cv_prog_CPP="$CPP"
1275 CPP="$ac_cv_prog_CPP"
1277 ac_cv_prog_CPP="$CPP"
1279 echo "$ac_t""$CPP" 1>&6
1281 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1282 echo "configure:1283: checking for ANSI C header files" >&5
1283 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1284 echo $ac_n "(cached) $ac_c" 1>&6
1286 cat > conftest.$ac_ext <<EOF
1287 #line 1288 "configure"
1288 #include "confdefs.h"
1294 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1295 { (eval echo configure:1296: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1296 ac_err=`grep -v '^ *+' conftest.out`
1297 if test -z "$ac_err"; then
1299 ac_cv_header_stdc=yes
1302 echo "configure: failed program was:" >&5
1303 cat conftest.$ac_ext >&5
1305 ac_cv_header_stdc=no
1309 if test $ac_cv_header_stdc = yes; then
1310 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1311 cat > conftest.$ac_ext <<EOF
1312 #line 1313 "configure"
1313 #include "confdefs.h"
1316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1317 egrep "memchr" >/dev/null 2>&1; then
1321 ac_cv_header_stdc=no
1327 if test $ac_cv_header_stdc = yes; then
1328 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1329 cat > conftest.$ac_ext <<EOF
1330 #line 1331 "configure"
1331 #include "confdefs.h"
1334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1335 egrep "free" >/dev/null 2>&1; then
1339 ac_cv_header_stdc=no
1345 if test $ac_cv_header_stdc = yes; then
1346 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1347 if test "$cross_compiling" = yes; then
1350 cat > conftest.$ac_ext <<EOF
1351 #line 1352 "configure"
1352 #include "confdefs.h"
1354 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1355 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1356 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1357 int main () { int i; for (i = 0; i < 256; i++)
1358 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1362 if { (eval echo configure:1363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1366 echo "configure: failed program was:" >&5
1367 cat conftest.$ac_ext >&5
1369 ac_cv_header_stdc=no
1377 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1378 if test $ac_cv_header_stdc = yes; then
1379 cat >> confdefs.h <<\EOF
1380 #define STDC_HEADERS 1
1386 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1388 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1389 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1390 echo "configure:1391: checking for $ac_hdr that defines DIR" >&5
1391 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1392 echo $ac_n "(cached) $ac_c" 1>&6
1394 cat > conftest.$ac_ext <<EOF
1395 #line 1396 "configure"
1396 #include "confdefs.h"
1397 #include <sys/types.h>
1403 if { (eval echo configure:1404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1405 eval "ac_cv_header_dirent_$ac_safe=yes"
1407 echo "configure: failed program was:" >&5
1408 cat conftest.$ac_ext >&5
1410 eval "ac_cv_header_dirent_$ac_safe=no"
1414 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1415 echo "$ac_t""yes" 1>&6
1416 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1417 cat >> confdefs.h <<EOF
1418 #define $ac_tr_hdr 1
1420 ac_header_dirent=$ac_hdr; break
1422 echo "$ac_t""no" 1>&6
1425 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1426 if test $ac_header_dirent = dirent.h; then
1427 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1428 echo "configure:1429: checking for opendir in -ldir" >&5
1429 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1430 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1431 echo $ac_n "(cached) $ac_c" 1>&6
1433 ac_save_LIBS="$LIBS"
1435 cat > conftest.$ac_ext <<EOF
1436 #line 1437 "configure"
1437 #include "confdefs.h"
1438 /* Override any gcc2 internal prototype to avoid an error. */
1439 /* We use char because int might match the return type of a gcc2
1440 builtin and then its argument prototype would still apply. */
1447 if { (eval echo configure:1448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1449 eval "ac_cv_lib_$ac_lib_var=yes"
1451 echo "configure: failed program was:" >&5
1452 cat conftest.$ac_ext >&5
1454 eval "ac_cv_lib_$ac_lib_var=no"
1457 LIBS="$ac_save_LIBS"
1460 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1461 echo "$ac_t""yes" 1>&6
1464 echo "$ac_t""no" 1>&6
1468 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1469 echo "configure:1470: checking for opendir in -lx" >&5
1470 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1471 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1472 echo $ac_n "(cached) $ac_c" 1>&6
1474 ac_save_LIBS="$LIBS"
1476 cat > conftest.$ac_ext <<EOF
1477 #line 1478 "configure"
1478 #include "confdefs.h"
1479 /* Override any gcc2 internal prototype to avoid an error. */
1480 /* We use char because int might match the return type of a gcc2
1481 builtin and then its argument prototype would still apply. */
1488 if { (eval echo configure:1489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1490 eval "ac_cv_lib_$ac_lib_var=yes"
1492 echo "configure: failed program was:" >&5
1493 cat conftest.$ac_ext >&5
1495 eval "ac_cv_lib_$ac_lib_var=no"
1498 LIBS="$ac_save_LIBS"
1501 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1502 echo "$ac_t""yes" 1>&6
1505 echo "$ac_t""no" 1>&6
1510 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1511 echo "configure:1512: checking whether time.h and sys/time.h may both be included" >&5
1512 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1513 echo $ac_n "(cached) $ac_c" 1>&6
1515 cat > conftest.$ac_ext <<EOF
1516 #line 1517 "configure"
1517 #include "confdefs.h"
1518 #include <sys/types.h>
1519 #include <sys/time.h>
1525 if { (eval echo configure:1526: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1527 ac_cv_header_time=yes
1529 echo "configure: failed program was:" >&5
1530 cat conftest.$ac_ext >&5
1532 ac_cv_header_time=no
1537 echo "$ac_t""$ac_cv_header_time" 1>&6
1538 if test $ac_cv_header_time = yes; then
1539 cat >> confdefs.h <<\EOF
1540 #define TIME_WITH_SYS_TIME 1
1545 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1546 echo "configure:1547: checking for sys/wait.h that is POSIX.1 compatible" >&5
1547 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1548 echo $ac_n "(cached) $ac_c" 1>&6
1550 cat > conftest.$ac_ext <<EOF
1551 #line 1552 "configure"
1552 #include "confdefs.h"
1553 #include <sys/types.h>
1554 #include <sys/wait.h>
1556 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1559 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1564 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1567 if { (eval echo configure:1568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1569 ac_cv_header_sys_wait_h=yes
1571 echo "configure: failed program was:" >&5
1572 cat conftest.$ac_ext >&5
1574 ac_cv_header_sys_wait_h=no
1579 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1580 if test $ac_cv_header_sys_wait_h = yes; then
1581 cat >> confdefs.h <<\EOF
1582 #define HAVE_SYS_WAIT_H 1
1587 for ac_hdr in sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
1589 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1590 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1591 echo "configure:1592: checking for $ac_hdr" >&5
1592 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1593 echo $ac_n "(cached) $ac_c" 1>&6
1595 cat > conftest.$ac_ext <<EOF
1596 #line 1597 "configure"
1597 #include "confdefs.h"
1600 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1601 { (eval echo configure:1602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1602 ac_err=`grep -v '^ *+' conftest.out`
1603 if test -z "$ac_err"; then
1605 eval "ac_cv_header_$ac_safe=yes"
1608 echo "configure: failed program was:" >&5
1609 cat conftest.$ac_ext >&5
1611 eval "ac_cv_header_$ac_safe=no"
1615 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1616 echo "$ac_t""yes" 1>&6
1617 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1618 cat >> confdefs.h <<EOF
1619 #define $ac_tr_hdr 1
1623 echo "$ac_t""no" 1>&6
1627 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
1629 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1630 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1631 echo "configure:1632: checking for $ac_hdr" >&5
1632 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1633 echo $ac_n "(cached) $ac_c" 1>&6
1635 cat > conftest.$ac_ext <<EOF
1636 #line 1637 "configure"
1637 #include "confdefs.h"
1640 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1641 { (eval echo configure:1642: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1642 ac_err=`grep -v '^ *+' conftest.out`
1643 if test -z "$ac_err"; then
1645 eval "ac_cv_header_$ac_safe=yes"
1648 echo "configure: failed program was:" >&5
1649 cat conftest.$ac_ext >&5
1651 eval "ac_cv_header_$ac_safe=no"
1655 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1656 echo "$ac_t""yes" 1>&6
1657 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1658 cat >> confdefs.h <<EOF
1659 #define $ac_tr_hdr 1
1663 echo "$ac_t""no" 1>&6
1667 for ac_hdr in compat.h rpc/types.h rpc/xdr.h rpc/auth.h rpc/clnt.h
1669 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1670 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1671 echo "configure:1672: checking for $ac_hdr" >&5
1672 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1673 echo $ac_n "(cached) $ac_c" 1>&6
1675 cat > conftest.$ac_ext <<EOF
1676 #line 1677 "configure"
1677 #include "confdefs.h"
1680 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1681 { (eval echo configure:1682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1682 ac_err=`grep -v '^ *+' conftest.out`
1683 if test -z "$ac_err"; then
1685 eval "ac_cv_header_$ac_safe=yes"
1688 echo "configure: failed program was:" >&5
1689 cat conftest.$ac_ext >&5
1691 eval "ac_cv_header_$ac_safe=no"
1695 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1696 echo "$ac_t""yes" 1>&6
1697 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1698 cat >> confdefs.h <<EOF
1699 #define $ac_tr_hdr 1
1703 echo "$ac_t""no" 1>&6
1707 for ac_hdr in rpcsvc/yp_prot.h rpcsvc/ypclnt.h sys/param.h ctype.h
1709 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1710 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1711 echo "configure:1712: checking for $ac_hdr" >&5
1712 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1713 echo $ac_n "(cached) $ac_c" 1>&6
1715 cat > conftest.$ac_ext <<EOF
1716 #line 1717 "configure"
1717 #include "confdefs.h"
1720 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1721 { (eval echo configure:1722: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1722 ac_err=`grep -v '^ *+' conftest.out`
1723 if test -z "$ac_err"; then
1725 eval "ac_cv_header_$ac_safe=yes"
1728 echo "configure: failed program was:" >&5
1729 cat conftest.$ac_ext >&5
1731 eval "ac_cv_header_$ac_safe=no"
1735 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1736 echo "$ac_t""yes" 1>&6
1737 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1738 cat >> confdefs.h <<EOF
1739 #define $ac_tr_hdr 1
1743 echo "$ac_t""no" 1>&6
1747 for ac_hdr in sys/wait.h sys/resource.h sys/ioctl.h sys/mode.h
1749 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1750 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1751 echo "configure:1752: checking for $ac_hdr" >&5
1752 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1753 echo $ac_n "(cached) $ac_c" 1>&6
1755 cat > conftest.$ac_ext <<EOF
1756 #line 1757 "configure"
1757 #include "confdefs.h"
1760 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1761 { (eval echo configure:1762: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1762 ac_err=`grep -v '^ *+' conftest.out`
1763 if test -z "$ac_err"; then
1765 eval "ac_cv_header_$ac_safe=yes"
1768 echo "configure: failed program was:" >&5
1769 cat conftest.$ac_ext >&5
1771 eval "ac_cv_header_$ac_safe=no"
1775 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1776 echo "$ac_t""yes" 1>&6
1777 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1778 cat >> confdefs.h <<EOF
1779 #define $ac_tr_hdr 1
1783 echo "$ac_t""no" 1>&6
1787 for ac_hdr in sys/filio.h string.h strings.h stdlib.h sys/socket.h
1789 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1790 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1791 echo "configure:1792: checking for $ac_hdr" >&5
1792 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1793 echo $ac_n "(cached) $ac_c" 1>&6
1795 cat > conftest.$ac_ext <<EOF
1796 #line 1797 "configure"
1797 #include "confdefs.h"
1800 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1801 { (eval echo configure:1802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1802 ac_err=`grep -v '^ *+' conftest.out`
1803 if test -z "$ac_err"; then
1805 eval "ac_cv_header_$ac_safe=yes"
1808 echo "configure: failed program was:" >&5
1809 cat conftest.$ac_ext >&5
1811 eval "ac_cv_header_$ac_safe=no"
1815 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1816 echo "$ac_t""yes" 1>&6
1817 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1818 cat >> confdefs.h <<EOF
1819 #define $ac_tr_hdr 1
1823 echo "$ac_t""no" 1>&6
1827 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h
1829 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1830 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1831 echo "configure:1832: checking for $ac_hdr" >&5
1832 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1833 echo $ac_n "(cached) $ac_c" 1>&6
1835 cat > conftest.$ac_ext <<EOF
1836 #line 1837 "configure"
1837 #include "confdefs.h"
1840 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1841 { (eval echo configure:1842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1842 ac_err=`grep -v '^ *+' conftest.out`
1843 if test -z "$ac_err"; then
1845 eval "ac_cv_header_$ac_safe=yes"
1848 echo "configure: failed program was:" >&5
1849 cat conftest.$ac_ext >&5
1851 eval "ac_cv_header_$ac_safe=no"
1855 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1856 echo "$ac_t""yes" 1>&6
1857 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1858 cat >> confdefs.h <<EOF
1859 #define $ac_tr_hdr 1
1863 echo "$ac_t""no" 1>&6
1867 for ac_hdr in sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
1869 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1870 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1871 echo "configure:1872: checking for $ac_hdr" >&5
1872 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1873 echo $ac_n "(cached) $ac_c" 1>&6
1875 cat > conftest.$ac_ext <<EOF
1876 #line 1877 "configure"
1877 #include "confdefs.h"
1880 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1881 { (eval echo configure:1882: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1882 ac_err=`grep -v '^ *+' conftest.out`
1883 if test -z "$ac_err"; then
1885 eval "ac_cv_header_$ac_safe=yes"
1888 echo "configure: failed program was:" >&5
1889 cat conftest.$ac_ext >&5
1891 eval "ac_cv_header_$ac_safe=no"
1895 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1896 echo "$ac_t""yes" 1>&6
1897 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1898 cat >> confdefs.h <<EOF
1899 #define $ac_tr_hdr 1
1903 echo "$ac_t""no" 1>&6
1907 for ac_hdr in shadow.h netinet/tcp.h sys/security.h security/pam_appl.h
1909 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1910 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1911 echo "configure:1912: checking for $ac_hdr" >&5
1912 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1913 echo $ac_n "(cached) $ac_c" 1>&6
1915 cat > conftest.$ac_ext <<EOF
1916 #line 1917 "configure"
1917 #include "confdefs.h"
1920 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1921 { (eval echo configure:1922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1922 ac_err=`grep -v '^ *+' conftest.out`
1923 if test -z "$ac_err"; then
1925 eval "ac_cv_header_$ac_safe=yes"
1928 echo "configure: failed program was:" >&5
1929 cat conftest.$ac_ext >&5
1931 eval "ac_cv_header_$ac_safe=no"
1935 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1936 echo "$ac_t""yes" 1>&6
1937 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1938 cat >> confdefs.h <<EOF
1939 #define $ac_tr_hdr 1
1943 echo "$ac_t""no" 1>&6
1947 for ac_hdr in stropts.h poll.h readline.h history.h readline/readline.h
1949 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1950 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1951 echo "configure:1952: checking for $ac_hdr" >&5
1952 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1953 echo $ac_n "(cached) $ac_c" 1>&6
1955 cat > conftest.$ac_ext <<EOF
1956 #line 1957 "configure"
1957 #include "confdefs.h"
1960 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1961 { (eval echo configure:1962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1962 ac_err=`grep -v '^ *+' conftest.out`
1963 if test -z "$ac_err"; then
1965 eval "ac_cv_header_$ac_safe=yes"
1968 echo "configure: failed program was:" >&5
1969 cat conftest.$ac_ext >&5
1971 eval "ac_cv_header_$ac_safe=no"
1975 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1976 echo "$ac_t""yes" 1>&6
1977 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1978 cat >> confdefs.h <<EOF
1979 #define $ac_tr_hdr 1
1983 echo "$ac_t""no" 1>&6
1987 for ac_hdr in readline/history.h sys/capability.h syscall.h sys/syscall.h
1989 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1990 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1991 echo "configure:1992: checking for $ac_hdr" >&5
1992 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1993 echo $ac_n "(cached) $ac_c" 1>&6
1995 cat > conftest.$ac_ext <<EOF
1996 #line 1997 "configure"
1997 #include "confdefs.h"
2000 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2001 { (eval echo configure:2002: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2002 ac_err=`grep -v '^ *+' conftest.out`
2003 if test -z "$ac_err"; then
2005 eval "ac_cv_header_$ac_safe=yes"
2008 echo "configure: failed program was:" >&5
2009 cat conftest.$ac_ext >&5
2011 eval "ac_cv_header_$ac_safe=no"
2015 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2016 echo "$ac_t""yes" 1>&6
2017 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2018 cat >> confdefs.h <<EOF
2019 #define $ac_tr_hdr 1
2023 echo "$ac_t""no" 1>&6
2027 for ac_hdr in sys/acl.h sys/cdefs.h
2029 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2030 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2031 echo "configure:2032: checking for $ac_hdr" >&5
2032 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2033 echo $ac_n "(cached) $ac_c" 1>&6
2035 cat > conftest.$ac_ext <<EOF
2036 #line 2037 "configure"
2037 #include "confdefs.h"
2040 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2041 { (eval echo configure:2042: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2042 ac_err=`grep -v '^ *+' conftest.out`
2043 if test -z "$ac_err"; then
2045 eval "ac_cv_header_$ac_safe=yes"
2048 echo "configure: failed program was:" >&5
2049 cat conftest.$ac_ext >&5
2051 eval "ac_cv_header_$ac_safe=no"
2055 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2056 echo "$ac_t""yes" 1>&6
2057 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2058 cat >> confdefs.h <<EOF
2059 #define $ac_tr_hdr 1
2063 echo "$ac_t""no" 1>&6
2068 echo $ac_n "checking size of int""... $ac_c" 1>&6
2069 echo "configure:2070: checking size of int" >&5
2070 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2071 echo $ac_n "(cached) $ac_c" 1>&6
2073 if test "$cross_compiling" = yes; then
2074 ac_cv_sizeof_int=cross
2076 cat > conftest.$ac_ext <<EOF
2077 #line 2078 "configure"
2078 #include "confdefs.h"
2082 FILE *f=fopen("conftestval", "w");
2084 fprintf(f, "%d\n", sizeof(int));
2088 if { (eval echo configure:2089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2090 ac_cv_sizeof_int=`cat conftestval`
2092 echo "configure: failed program was:" >&5
2093 cat conftest.$ac_ext >&5
2101 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2102 cat >> confdefs.h <<EOF
2103 #define SIZEOF_INT $ac_cv_sizeof_int
2107 echo $ac_n "checking size of long""... $ac_c" 1>&6
2108 echo "configure:2109: checking size of long" >&5
2109 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2110 echo $ac_n "(cached) $ac_c" 1>&6
2112 if test "$cross_compiling" = yes; then
2113 ac_cv_sizeof_long=cross
2115 cat > conftest.$ac_ext <<EOF
2116 #line 2117 "configure"
2117 #include "confdefs.h"
2121 FILE *f=fopen("conftestval", "w");
2123 fprintf(f, "%d\n", sizeof(long));
2127 if { (eval echo configure:2128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2129 ac_cv_sizeof_long=`cat conftestval`
2131 echo "configure: failed program was:" >&5
2132 cat conftest.$ac_ext >&5
2140 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2141 cat >> confdefs.h <<EOF
2142 #define SIZEOF_LONG $ac_cv_sizeof_long
2146 echo $ac_n "checking size of short""... $ac_c" 1>&6
2147 echo "configure:2148: checking size of short" >&5
2148 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2149 echo $ac_n "(cached) $ac_c" 1>&6
2151 if test "$cross_compiling" = yes; then
2152 ac_cv_sizeof_short=cross
2154 cat > conftest.$ac_ext <<EOF
2155 #line 2156 "configure"
2156 #include "confdefs.h"
2160 FILE *f=fopen("conftestval", "w");
2162 fprintf(f, "%d\n", sizeof(short));
2166 if { (eval echo configure:2167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2168 ac_cv_sizeof_short=`cat conftestval`
2170 echo "configure: failed program was:" >&5
2171 cat conftest.$ac_ext >&5
2173 ac_cv_sizeof_short=0
2179 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2180 cat >> confdefs.h <<EOF
2181 #define SIZEOF_SHORT $ac_cv_sizeof_short
2186 echo $ac_n "checking for working const""... $ac_c" 1>&6
2187 echo "configure:2188: checking for working const" >&5
2188 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2189 echo $ac_n "(cached) $ac_c" 1>&6
2191 cat > conftest.$ac_ext <<EOF
2192 #line 2193 "configure"
2193 #include "confdefs.h"
2197 /* Ultrix mips cc rejects this. */
2198 typedef int charset[2]; const charset x;
2199 /* SunOS 4.1.1 cc rejects this. */
2200 char const *const *ccp;
2202 /* NEC SVR4.0.2 mips cc rejects this. */
2203 struct point {int x, y;};
2204 static struct point const zero = {0,0};
2205 /* AIX XL C 1.02.0.0 rejects this.
2206 It does not let you subtract one const X* pointer from another in an arm
2207 of an if-expression whose if-part is not a constant expression */
2208 const char *g = "string";
2209 ccp = &g + (g ? g-g : 0);
2210 /* HPUX 7.0 cc rejects these. */
2213 ccp = (char const *const *) p;
2214 { /* SCO 3.2v4 cc rejects this. */
2216 char const *s = 0 ? (char *) 0 : (char const *) 0;
2220 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2222 const int *foo = &x[0];
2225 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2226 typedef const int *iptr;
2230 { /* AIX XL C 1.02.0.0 rejects this saying
2231 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2232 struct s { int j; const int *ap[3]; };
2233 struct s *b; b->j = 5;
2235 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2241 if { (eval echo configure:2242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2245 echo "configure: failed program was:" >&5
2246 cat conftest.$ac_ext >&5
2253 echo "$ac_t""$ac_cv_c_const" 1>&6
2254 if test $ac_cv_c_const = no; then
2255 cat >> confdefs.h <<\EOF
2261 echo $ac_n "checking for inline""... $ac_c" 1>&6
2262 echo "configure:2263: checking for inline" >&5
2263 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2264 echo $ac_n "(cached) $ac_c" 1>&6
2267 for ac_kw in inline __inline__ __inline; do
2268 cat > conftest.$ac_ext <<EOF
2269 #line 2270 "configure"
2270 #include "confdefs.h"
2276 if { (eval echo configure:2277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2278 ac_cv_c_inline=$ac_kw; break
2280 echo "configure: failed program was:" >&5
2281 cat conftest.$ac_ext >&5
2288 echo "$ac_t""$ac_cv_c_inline" 1>&6
2289 case "$ac_cv_c_inline" in
2291 no) cat >> confdefs.h <<\EOF
2295 *) cat >> confdefs.h <<EOF
2296 #define inline $ac_cv_c_inline
2301 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2302 echo "configure:2303: checking whether byte ordering is bigendian" >&5
2303 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2304 echo $ac_n "(cached) $ac_c" 1>&6
2306 ac_cv_c_bigendian=unknown
2307 # See if sys/param.h defines the BYTE_ORDER macro.
2308 cat > conftest.$ac_ext <<EOF
2309 #line 2310 "configure"
2310 #include "confdefs.h"
2311 #include <sys/types.h>
2312 #include <sys/param.h>
2315 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2320 if { (eval echo configure:2321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2322 # It does; now see whether it defined to BIG_ENDIAN or not.
2323 cat > conftest.$ac_ext <<EOF
2324 #line 2325 "configure"
2325 #include "confdefs.h"
2326 #include <sys/types.h>
2327 #include <sys/param.h>
2330 #if BYTE_ORDER != BIG_ENDIAN
2335 if { (eval echo configure:2336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2337 ac_cv_c_bigendian=yes
2339 echo "configure: failed program was:" >&5
2340 cat conftest.$ac_ext >&5
2342 ac_cv_c_bigendian=no
2346 echo "configure: failed program was:" >&5
2347 cat conftest.$ac_ext >&5
2350 if test $ac_cv_c_bigendian = unknown; then
2351 if test "$cross_compiling" = yes; then
2352 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2354 cat > conftest.$ac_ext <<EOF
2355 #line 2356 "configure"
2356 #include "confdefs.h"
2358 /* Are we little or big endian? From Harbison&Steele. */
2362 char c[sizeof (long)];
2365 exit (u.c[sizeof (long) - 1] == 1);
2368 if { (eval echo configure:2369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2370 ac_cv_c_bigendian=no
2372 echo "configure: failed program was:" >&5
2373 cat conftest.$ac_ext >&5
2375 ac_cv_c_bigendian=yes
2383 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2384 if test $ac_cv_c_bigendian = yes; then
2385 cat >> confdefs.h <<\EOF
2386 #define WORDS_BIGENDIAN 1
2391 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
2392 echo "configure:2393: checking whether char is unsigned" >&5
2393 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
2394 echo $ac_n "(cached) $ac_c" 1>&6
2396 if test "$GCC" = yes; then
2397 # GCC predefines this symbol on systems where it applies.
2398 cat > conftest.$ac_ext <<EOF
2399 #line 2400 "configure"
2400 #include "confdefs.h"
2401 #ifdef __CHAR_UNSIGNED__
2406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2407 egrep "yes" >/dev/null 2>&1; then
2409 ac_cv_c_char_unsigned=yes
2412 ac_cv_c_char_unsigned=no
2417 if test "$cross_compiling" = yes; then
2418 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2420 cat > conftest.$ac_ext <<EOF
2421 #line 2422 "configure"
2422 #include "confdefs.h"
2423 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
2424 #if !defined(__STDC__) || __STDC__ != 1
2428 volatile char c = 255; exit(c < 0);
2431 if { (eval echo configure:2432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2433 ac_cv_c_char_unsigned=yes
2435 echo "configure: failed program was:" >&5
2436 cat conftest.$ac_ext >&5
2438 ac_cv_c_char_unsigned=no
2446 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
2447 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
2448 cat >> confdefs.h <<\EOF
2449 #define __CHAR_UNSIGNED__ 1
2455 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2456 echo "configure:2457: checking return type of signal handlers" >&5
2457 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2458 echo $ac_n "(cached) $ac_c" 1>&6
2460 cat > conftest.$ac_ext <<EOF
2461 #line 2462 "configure"
2462 #include "confdefs.h"
2463 #include <sys/types.h>
2469 extern "C" void (*signal (int, void (*)(int)))(int);
2471 void (*signal ()) ();
2478 if { (eval echo configure:2479: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2480 ac_cv_type_signal=void
2482 echo "configure: failed program was:" >&5
2483 cat conftest.$ac_ext >&5
2485 ac_cv_type_signal=int
2490 echo "$ac_t""$ac_cv_type_signal" 1>&6
2491 cat >> confdefs.h <<EOF
2492 #define RETSIGTYPE $ac_cv_type_signal
2496 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2497 echo "configure:2498: checking for uid_t in sys/types.h" >&5
2498 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2499 echo $ac_n "(cached) $ac_c" 1>&6
2501 cat > conftest.$ac_ext <<EOF
2502 #line 2503 "configure"
2503 #include "confdefs.h"
2504 #include <sys/types.h>
2506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2507 egrep "uid_t" >/dev/null 2>&1; then
2509 ac_cv_type_uid_t=yes
2518 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2519 if test $ac_cv_type_uid_t = no; then
2520 cat >> confdefs.h <<\EOF
2524 cat >> confdefs.h <<\EOF
2530 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2531 echo "configure:2532: checking for mode_t" >&5
2532 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2533 echo $ac_n "(cached) $ac_c" 1>&6
2535 cat > conftest.$ac_ext <<EOF
2536 #line 2537 "configure"
2537 #include "confdefs.h"
2538 #include <sys/types.h>
2544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2545 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2547 ac_cv_type_mode_t=yes
2550 ac_cv_type_mode_t=no
2555 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
2556 if test $ac_cv_type_mode_t = no; then
2557 cat >> confdefs.h <<\EOF
2563 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2564 echo "configure:2565: checking for off_t" >&5
2565 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2566 echo $ac_n "(cached) $ac_c" 1>&6
2568 cat > conftest.$ac_ext <<EOF
2569 #line 2570 "configure"
2570 #include "confdefs.h"
2571 #include <sys/types.h>
2577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2578 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2580 ac_cv_type_off_t=yes
2588 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2589 if test $ac_cv_type_off_t = no; then
2590 cat >> confdefs.h <<\EOF
2596 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2597 echo "configure:2598: checking for size_t" >&5
2598 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2599 echo $ac_n "(cached) $ac_c" 1>&6
2601 cat > conftest.$ac_ext <<EOF
2602 #line 2603 "configure"
2603 #include "confdefs.h"
2604 #include <sys/types.h>
2610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2611 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2613 ac_cv_type_size_t=yes
2616 ac_cv_type_size_t=no
2621 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2622 if test $ac_cv_type_size_t = no; then
2623 cat >> confdefs.h <<\EOF
2624 #define size_t unsigned
2629 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2630 echo "configure:2631: checking for pid_t" >&5
2631 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2632 echo $ac_n "(cached) $ac_c" 1>&6
2634 cat > conftest.$ac_ext <<EOF
2635 #line 2636 "configure"
2636 #include "confdefs.h"
2637 #include <sys/types.h>
2643 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2644 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2646 ac_cv_type_pid_t=yes
2654 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2655 if test $ac_cv_type_pid_t = no; then
2656 cat >> confdefs.h <<\EOF
2662 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
2663 echo "configure:2664: checking for st_rdev in struct stat" >&5
2664 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
2665 echo $ac_n "(cached) $ac_c" 1>&6
2667 cat > conftest.$ac_ext <<EOF
2668 #line 2669 "configure"
2669 #include "confdefs.h"
2670 #include <sys/types.h>
2671 #include <sys/stat.h>
2673 struct stat s; s.st_rdev;
2676 if { (eval echo configure:2677: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2678 ac_cv_struct_st_rdev=yes
2680 echo "configure: failed program was:" >&5
2681 cat conftest.$ac_ext >&5
2683 ac_cv_struct_st_rdev=no
2688 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
2689 if test $ac_cv_struct_st_rdev = yes; then
2690 cat >> confdefs.h <<\EOF
2691 #define HAVE_ST_RDEV 1
2696 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
2697 echo "configure:2698: checking for d_off in dirent" >&5
2698 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
2699 echo $ac_n "(cached) $ac_c" 1>&6
2701 cat > conftest.$ac_ext <<EOF
2702 #line 2703 "configure"
2703 #include "confdefs.h"
2706 #include <sys/types.h>
2709 struct dirent d; d.d_off;
2712 if { (eval echo configure:2713: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2714 ac_cv_dirent_d_off=yes
2716 echo "configure: failed program was:" >&5
2717 cat conftest.$ac_ext >&5
2719 ac_cv_dirent_d_off=no
2724 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
2725 if test $ac_cv_dirent_d_off = yes; then
2726 cat >> confdefs.h <<\EOF
2727 #define HAVE_DIRENT_D_OFF 1
2732 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
2733 echo "configure:2734: checking for ino_t" >&5
2734 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
2735 echo $ac_n "(cached) $ac_c" 1>&6
2737 cat > conftest.$ac_ext <<EOF
2738 #line 2739 "configure"
2739 #include "confdefs.h"
2740 #include <sys/types.h>
2746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2747 egrep "ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2749 ac_cv_type_ino_t=yes
2757 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
2758 if test $ac_cv_type_ino_t = no; then
2759 cat >> confdefs.h <<\EOF
2760 #define ino_t unsigned
2765 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
2766 echo "configure:2767: checking for loff_t" >&5
2767 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
2768 echo $ac_n "(cached) $ac_c" 1>&6
2770 cat > conftest.$ac_ext <<EOF
2771 #line 2772 "configure"
2772 #include "confdefs.h"
2773 #include <sys/types.h>
2779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2780 egrep "loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2782 ac_cv_type_loff_t=yes
2785 ac_cv_type_loff_t=no
2790 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
2791 if test $ac_cv_type_loff_t = no; then
2792 cat >> confdefs.h <<\EOF
2793 #define loff_t off_t
2798 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
2799 echo "configure:2800: checking for offset_t" >&5
2800 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
2801 echo $ac_n "(cached) $ac_c" 1>&6
2803 cat > conftest.$ac_ext <<EOF
2804 #line 2805 "configure"
2805 #include "confdefs.h"
2806 #include <sys/types.h>
2812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2813 egrep "offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2815 ac_cv_type_offset_t=yes
2818 ac_cv_type_offset_t=no
2823 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
2824 if test $ac_cv_type_offset_t = no; then
2825 cat >> confdefs.h <<\EOF
2826 #define offset_t loff_t
2831 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
2832 echo "configure:2833: checking for ssize_t" >&5
2833 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
2834 echo $ac_n "(cached) $ac_c" 1>&6
2836 cat > conftest.$ac_ext <<EOF
2837 #line 2838 "configure"
2838 #include "confdefs.h"
2839 #include <sys/types.h>
2845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2846 egrep "ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2848 ac_cv_type_ssize_t=yes
2851 ac_cv_type_ssize_t=no
2856 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
2857 if test $ac_cv_type_ssize_t = no; then
2858 cat >> confdefs.h <<\EOF
2865 echo $ac_n "checking for errno in errno.h""... $ac_c" 1>&6
2866 echo "configure:2867: checking for errno in errno.h" >&5
2867 if eval "test \"`echo '$''{'samba_cv_errno'+set}'`\" = set"; then
2868 echo $ac_n "(cached) $ac_c" 1>&6
2871 cat > conftest.$ac_ext <<EOF
2872 #line 2873 "configure"
2873 #include "confdefs.h"
2879 if { (eval echo configure:2880: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2883 echo "configure: failed program was:" >&5
2884 cat conftest.$ac_ext >&5
2886 samba_cv_have_errno_decl=no
2891 echo "$ac_t""$samba_cv_errno" 1>&6
2892 if test x"$samba_cv_errno" = x"yes"; then
2893 cat >> confdefs.h <<\EOF
2894 #define HAVE_ERRNO_DECL 1
2899 # stupid glibc has the functions but no declaration. grrrr.
2900 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
2901 echo "configure:2902: checking for setresuid declaration" >&5
2902 if eval "test \"`echo '$''{'samba_cv_have_setresuid_decl'+set}'`\" = set"; then
2903 echo $ac_n "(cached) $ac_c" 1>&6
2906 cat > conftest.$ac_ext <<EOF
2907 #line 2908 "configure"
2908 #include "confdefs.h"
2911 int i = (int)setresuid
2914 if { (eval echo configure:2915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2916 samba_cv_have_setresuid_decl=yes
2918 echo "configure: failed program was:" >&5
2919 cat conftest.$ac_ext >&5
2921 samba_cv_have_setresuid_decl=no
2926 echo "$ac_t""$samba_cv_have_setresuid_decl" 1>&6
2927 if test x"$samba_cv_have_setresuid_decl" = x"yes"; then
2928 cat >> confdefs.h <<\EOF
2929 #define HAVE_SETRESUID_DECL 1
2934 # stupid glibc has the functions but no declaration. grrrr.
2935 echo $ac_n "checking for crypt declaration""... $ac_c" 1>&6
2936 echo "configure:2937: checking for crypt declaration" >&5
2937 if eval "test \"`echo '$''{'samba_cv_have_crypt_decl'+set}'`\" = set"; then
2938 echo $ac_n "(cached) $ac_c" 1>&6
2941 cat > conftest.$ac_ext <<EOF
2942 #line 2943 "configure"
2943 #include "confdefs.h"
2949 if { (eval echo configure:2950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2951 samba_cv_have_crypt_decl=yes
2953 echo "configure: failed program was:" >&5
2954 cat conftest.$ac_ext >&5
2956 samba_cv_have_crypt_decl=no
2961 echo "$ac_t""$samba_cv_have_crypt_decl" 1>&6
2962 if test x"$samba_cv_have_crypt_decl" = x"yes"; then
2963 cat >> confdefs.h <<\EOF
2964 #define HAVE_CRYPT_DECL 1
2969 # and glibc has setresuid under linux but the function does
2970 # nothing until kernel 2.1.44! very dumb.
2971 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
2972 echo "configure:2973: checking for real setresuid" >&5
2973 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
2974 echo $ac_n "(cached) $ac_c" 1>&6
2977 if test "$cross_compiling" = yes; then
2978 samba_cv_have_setresuid=cross
2980 cat > conftest.$ac_ext <<EOF
2981 #line 2982 "configure"
2982 #include "confdefs.h"
2984 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
2986 if { (eval echo configure:2987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2988 samba_cv_have_setresuid=yes
2990 echo "configure: failed program was:" >&5
2991 cat conftest.$ac_ext >&5
2993 samba_cv_have_setresuid=no
3000 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
3001 if test x"$samba_cv_have_setresuid" = x"yes"; then
3002 cat >> confdefs.h <<\EOF
3003 #define HAVE_SETRESUID 1
3008 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
3009 echo "configure:3010: checking for 8-bit clean memcmp" >&5
3010 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
3011 echo $ac_n "(cached) $ac_c" 1>&6
3013 if test "$cross_compiling" = yes; then
3014 ac_cv_func_memcmp_clean=no
3016 cat > conftest.$ac_ext <<EOF
3017 #line 3018 "configure"
3018 #include "confdefs.h"
3022 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
3023 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
3027 if { (eval echo configure:3028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3029 ac_cv_func_memcmp_clean=yes
3031 echo "configure: failed program was:" >&5
3032 cat conftest.$ac_ext >&5
3034 ac_cv_func_memcmp_clean=no
3041 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
3042 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
3045 ###############################################
3046 # test for where we get crypt() from
3047 for ac_func in crypt
3049 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3050 echo "configure:3051: checking for $ac_func" >&5
3051 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3052 echo $ac_n "(cached) $ac_c" 1>&6
3054 cat > conftest.$ac_ext <<EOF
3055 #line 3056 "configure"
3056 #include "confdefs.h"
3057 /* System header to define __stub macros and hopefully few prototypes,
3058 which can conflict with char $ac_func(); below. */
3060 /* Override any gcc2 internal prototype to avoid an error. */
3061 /* We use char because int might match the return type of a gcc2
3062 builtin and then its argument prototype would still apply. */
3067 /* The GNU C library defines this for functions which it implements
3068 to always fail with ENOSYS. Some functions are actually named
3069 something starting with __ and the normal name is an alias. */
3070 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3078 if { (eval echo configure:3079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3080 eval "ac_cv_func_$ac_func=yes"
3082 echo "configure: failed program was:" >&5
3083 cat conftest.$ac_ext >&5
3085 eval "ac_cv_func_$ac_func=no"
3090 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3091 echo "$ac_t""yes" 1>&6
3092 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3093 cat >> confdefs.h <<EOF
3094 #define $ac_tr_func 1
3098 echo "$ac_t""no" 1>&6
3102 if test x"$ac_cv_func_crypt" = x"no"; then
3103 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
3104 echo "configure:3105: checking for crypt in -lcrypt" >&5
3105 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
3106 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3107 echo $ac_n "(cached) $ac_c" 1>&6
3109 ac_save_LIBS="$LIBS"
3110 LIBS="-lcrypt $LIBS"
3111 cat > conftest.$ac_ext <<EOF
3112 #line 3113 "configure"
3113 #include "confdefs.h"
3114 /* Override any gcc2 internal prototype to avoid an error. */
3115 /* We use char because int might match the return type of a gcc2
3116 builtin and then its argument prototype would still apply. */
3123 if { (eval echo configure:3124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3125 eval "ac_cv_lib_$ac_lib_var=yes"
3127 echo "configure: failed program was:" >&5
3128 cat conftest.$ac_ext >&5
3130 eval "ac_cv_lib_$ac_lib_var=no"
3133 LIBS="$ac_save_LIBS"
3136 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3137 echo "$ac_t""yes" 1>&6
3138 LIBS="$LIBS -lcrypt";
3139 cat >> confdefs.h <<\EOF
3140 #define HAVE_CRYPT 1
3144 echo "$ac_t""no" 1>&6
3150 ###############################################
3151 # test for where we get pam_authenticate() from
3152 # might need libdl for this to work
3153 if test "$ac_cv_header_security_pam_appl_h" = "yes"; then
3154 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
3155 echo "configure:3156: checking for main in -ldl" >&5
3156 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
3157 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3158 echo $ac_n "(cached) $ac_c" 1>&6
3160 ac_save_LIBS="$LIBS"
3162 cat > conftest.$ac_ext <<EOF
3163 #line 3164 "configure"
3164 #include "confdefs.h"
3170 if { (eval echo configure:3171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3172 eval "ac_cv_lib_$ac_lib_var=yes"
3174 echo "configure: failed program was:" >&5
3175 cat conftest.$ac_ext >&5
3177 eval "ac_cv_lib_$ac_lib_var=no"
3180 LIBS="$ac_save_LIBS"
3183 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3184 echo "$ac_t""yes" 1>&6
3185 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3186 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3187 cat >> confdefs.h <<EOF
3188 #define $ac_tr_lib 1
3194 echo "$ac_t""no" 1>&6
3198 for ac_func in pam_authenticate
3200 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3201 echo "configure:3202: checking for $ac_func" >&5
3202 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3203 echo $ac_n "(cached) $ac_c" 1>&6
3205 cat > conftest.$ac_ext <<EOF
3206 #line 3207 "configure"
3207 #include "confdefs.h"
3208 /* System header to define __stub macros and hopefully few prototypes,
3209 which can conflict with char $ac_func(); below. */
3211 /* Override any gcc2 internal prototype to avoid an error. */
3212 /* We use char because int might match the return type of a gcc2
3213 builtin and then its argument prototype would still apply. */
3218 /* The GNU C library defines this for functions which it implements
3219 to always fail with ENOSYS. Some functions are actually named
3220 something starting with __ and the normal name is an alias. */
3221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3229 if { (eval echo configure:3230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3231 eval "ac_cv_func_$ac_func=yes"
3233 echo "configure: failed program was:" >&5
3234 cat conftest.$ac_ext >&5
3236 eval "ac_cv_func_$ac_func=no"
3241 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3242 echo "$ac_t""yes" 1>&6
3243 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3244 cat >> confdefs.h <<EOF
3245 #define $ac_tr_func 1
3249 echo "$ac_t""no" 1>&6
3253 if test x"$ac_cv_func_pam_authenticate" = x"no"; then
3254 echo $ac_n "checking for pam_authenticate in -lpam""... $ac_c" 1>&6
3255 echo "configure:3256: checking for pam_authenticate in -lpam" >&5
3256 ac_lib_var=`echo pam'_'pam_authenticate | sed 'y%./+-%__p_%'`
3257 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3258 echo $ac_n "(cached) $ac_c" 1>&6
3260 ac_save_LIBS="$LIBS"
3262 cat > conftest.$ac_ext <<EOF
3263 #line 3264 "configure"
3264 #include "confdefs.h"
3265 /* Override any gcc2 internal prototype to avoid an error. */
3266 /* We use char because int might match the return type of a gcc2
3267 builtin and then its argument prototype would still apply. */
3268 char pam_authenticate();
3274 if { (eval echo configure:3275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3276 eval "ac_cv_lib_$ac_lib_var=yes"
3278 echo "configure: failed program was:" >&5
3279 cat conftest.$ac_ext >&5
3281 eval "ac_cv_lib_$ac_lib_var=no"
3284 LIBS="$ac_save_LIBS"
3287 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3288 echo "$ac_t""yes" 1>&6
3290 cat >> confdefs.h <<\EOF
3291 #define HAVE_PAM_AUTHENTICATE 1
3295 echo "$ac_t""no" 1>&6
3301 ###############################################
3302 # test for where we get readline() from
3303 if test "$ac_cv_header_readline_h" = "yes" ||
3304 test "$ac_cv_header_readline_readline_h" = "yes"; then
3305 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
3306 echo "configure:3307: checking for readline in -lreadline" >&5
3307 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
3308 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3309 echo $ac_n "(cached) $ac_c" 1>&6
3311 ac_save_LIBS="$LIBS"
3312 LIBS="-lreadline $LIBS"
3313 cat > conftest.$ac_ext <<EOF
3314 #line 3315 "configure"
3315 #include "confdefs.h"
3316 /* Override any gcc2 internal prototype to avoid an error. */
3317 /* We use char because int might match the return type of a gcc2
3318 builtin and then its argument prototype would still apply. */
3325 if { (eval echo configure:3326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3327 eval "ac_cv_lib_$ac_lib_var=yes"
3329 echo "configure: failed program was:" >&5
3330 cat conftest.$ac_ext >&5
3332 eval "ac_cv_lib_$ac_lib_var=no"
3335 LIBS="$ac_save_LIBS"
3338 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3339 echo "$ac_t""yes" 1>&6
3340 ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3341 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3342 cat >> confdefs.h <<EOF
3343 #define $ac_tr_lib 1
3346 LIBS="-lreadline $LIBS"
3349 echo "$ac_t""no" 1>&6
3355 # The following test taken from the cvs sources
3356 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
3357 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
3358 # libsocket.so which has a bad implementation of gethostbyname (it
3359 # only looks in /etc/hosts), so we only look for -lsocket if we need
3361 for ac_func in connect
3363 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3364 echo "configure:3365: checking for $ac_func" >&5
3365 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3366 echo $ac_n "(cached) $ac_c" 1>&6
3368 cat > conftest.$ac_ext <<EOF
3369 #line 3370 "configure"
3370 #include "confdefs.h"
3371 /* System header to define __stub macros and hopefully few prototypes,
3372 which can conflict with char $ac_func(); below. */
3374 /* Override any gcc2 internal prototype to avoid an error. */
3375 /* We use char because int might match the return type of a gcc2
3376 builtin and then its argument prototype would still apply. */
3381 /* The GNU C library defines this for functions which it implements
3382 to always fail with ENOSYS. Some functions are actually named
3383 something starting with __ and the normal name is an alias. */
3384 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3392 if { (eval echo configure:3393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3394 eval "ac_cv_func_$ac_func=yes"
3396 echo "configure: failed program was:" >&5
3397 cat conftest.$ac_ext >&5
3399 eval "ac_cv_func_$ac_func=no"
3404 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3405 echo "$ac_t""yes" 1>&6
3406 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3407 cat >> confdefs.h <<EOF
3408 #define $ac_tr_func 1
3412 echo "$ac_t""no" 1>&6
3416 if test x"$ac_cv_func_connect" = x"no"; then
3419 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
3420 echo "configure:3421: checking for printf in -lnsl_s" >&5
3421 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
3422 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3423 echo $ac_n "(cached) $ac_c" 1>&6
3425 ac_save_LIBS="$LIBS"
3426 LIBS="-lnsl_s $LIBS"
3427 cat > conftest.$ac_ext <<EOF
3428 #line 3429 "configure"
3429 #include "confdefs.h"
3430 /* Override any gcc2 internal prototype to avoid an error. */
3431 /* We use char because int might match the return type of a gcc2
3432 builtin and then its argument prototype would still apply. */
3439 if { (eval echo configure:3440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3441 eval "ac_cv_lib_$ac_lib_var=yes"
3443 echo "configure: failed program was:" >&5
3444 cat conftest.$ac_ext >&5
3446 eval "ac_cv_lib_$ac_lib_var=no"
3449 LIBS="$ac_save_LIBS"
3452 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3453 echo "$ac_t""yes" 1>&6
3454 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3455 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3456 cat >> confdefs.h <<EOF
3457 #define $ac_tr_lib 1
3460 LIBS="-lnsl_s $LIBS"
3463 echo "$ac_t""no" 1>&6
3469 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
3470 echo "configure:3471: checking for printf in -lnsl" >&5
3471 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
3472 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3473 echo $ac_n "(cached) $ac_c" 1>&6
3475 ac_save_LIBS="$LIBS"
3477 cat > conftest.$ac_ext <<EOF
3478 #line 3479 "configure"
3479 #include "confdefs.h"
3480 /* Override any gcc2 internal prototype to avoid an error. */
3481 /* We use char because int might match the return type of a gcc2
3482 builtin and then its argument prototype would still apply. */
3489 if { (eval echo configure:3490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3491 eval "ac_cv_lib_$ac_lib_var=yes"
3493 echo "configure: failed program was:" >&5
3494 cat conftest.$ac_ext >&5
3496 eval "ac_cv_lib_$ac_lib_var=no"
3499 LIBS="$ac_save_LIBS"
3502 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3503 echo "$ac_t""yes" 1>&6
3504 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3505 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3506 cat >> confdefs.h <<EOF
3507 #define $ac_tr_lib 1
3513 echo "$ac_t""no" 1>&6
3519 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3520 echo "configure:3521: checking for connect in -lsocket" >&5
3521 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3522 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3523 echo $ac_n "(cached) $ac_c" 1>&6
3525 ac_save_LIBS="$LIBS"
3526 LIBS="-lsocket $LIBS"
3527 cat > conftest.$ac_ext <<EOF
3528 #line 3529 "configure"
3529 #include "confdefs.h"
3530 /* Override any gcc2 internal prototype to avoid an error. */
3531 /* We use char because int might match the return type of a gcc2
3532 builtin and then its argument prototype would still apply. */
3539 if { (eval echo configure:3540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3541 eval "ac_cv_lib_$ac_lib_var=yes"
3543 echo "configure: failed program was:" >&5
3544 cat conftest.$ac_ext >&5
3546 eval "ac_cv_lib_$ac_lib_var=no"
3549 LIBS="$ac_save_LIBS"
3552 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3553 echo "$ac_t""yes" 1>&6
3554 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3555 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3556 cat >> confdefs.h <<EOF
3557 #define $ac_tr_lib 1
3560 LIBS="-lsocket $LIBS"
3563 echo "$ac_t""no" 1>&6
3569 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
3570 echo "configure:3571: checking for connect in -linet" >&5
3571 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
3572 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3573 echo $ac_n "(cached) $ac_c" 1>&6
3575 ac_save_LIBS="$LIBS"
3577 cat > conftest.$ac_ext <<EOF
3578 #line 3579 "configure"
3579 #include "confdefs.h"
3580 /* Override any gcc2 internal prototype to avoid an error. */
3581 /* We use char because int might match the return type of a gcc2
3582 builtin and then its argument prototype would still apply. */
3589 if { (eval echo configure:3590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3591 eval "ac_cv_lib_$ac_lib_var=yes"
3593 echo "configure: failed program was:" >&5
3594 cat conftest.$ac_ext >&5
3596 eval "ac_cv_lib_$ac_lib_var=no"
3599 LIBS="$ac_save_LIBS"
3602 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3603 echo "$ac_t""yes" 1>&6
3604 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3605 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3606 cat >> confdefs.h <<EOF
3607 #define $ac_tr_lib 1
3613 echo "$ac_t""no" 1>&6
3617 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
3618 test x"$ac_cv_lib_inet_connect" = x"yes"; then
3619 # ac_cv_func_connect=yes
3620 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
3621 cat >> confdefs.h <<\EOF
3622 #define HAVE_CONNECT 1
3629 for ac_func in waitpid getcwd strdup strerror chown chmod chroot
3631 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3632 echo "configure:3633: checking for $ac_func" >&5
3633 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3634 echo $ac_n "(cached) $ac_c" 1>&6
3636 cat > conftest.$ac_ext <<EOF
3637 #line 3638 "configure"
3638 #include "confdefs.h"
3639 /* System header to define __stub macros and hopefully few prototypes,
3640 which can conflict with char $ac_func(); below. */
3642 /* Override any gcc2 internal prototype to avoid an error. */
3643 /* We use char because int might match the return type of a gcc2
3644 builtin and then its argument prototype would still apply. */
3649 /* The GNU C library defines this for functions which it implements
3650 to always fail with ENOSYS. Some functions are actually named
3651 something starting with __ and the normal name is an alias. */
3652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3660 if { (eval echo configure:3661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3662 eval "ac_cv_func_$ac_func=yes"
3664 echo "configure: failed program was:" >&5
3665 cat conftest.$ac_ext >&5
3667 eval "ac_cv_func_$ac_func=no"
3672 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3673 echo "$ac_t""yes" 1>&6
3674 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3675 cat >> confdefs.h <<EOF
3676 #define $ac_tr_func 1
3680 echo "$ac_t""no" 1>&6
3684 for ac_func in fstat strchr utime utimes getrlimit fsync execl bzero memset
3686 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3687 echo "configure:3688: checking for $ac_func" >&5
3688 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3689 echo $ac_n "(cached) $ac_c" 1>&6
3691 cat > conftest.$ac_ext <<EOF
3692 #line 3693 "configure"
3693 #include "confdefs.h"
3694 /* System header to define __stub macros and hopefully few prototypes,
3695 which can conflict with char $ac_func(); below. */
3697 /* Override any gcc2 internal prototype to avoid an error. */
3698 /* We use char because int might match the return type of a gcc2
3699 builtin and then its argument prototype would still apply. */
3704 /* The GNU C library defines this for functions which it implements
3705 to always fail with ENOSYS. Some functions are actually named
3706 something starting with __ and the normal name is an alias. */
3707 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3715 if { (eval echo configure:3716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3717 eval "ac_cv_func_$ac_func=yes"
3719 echo "configure: failed program was:" >&5
3720 cat conftest.$ac_ext >&5
3722 eval "ac_cv_func_$ac_func=no"
3727 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3728 echo "$ac_t""yes" 1>&6
3729 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3730 cat >> confdefs.h <<EOF
3731 #define $ac_tr_func 1
3735 echo "$ac_t""no" 1>&6
3739 for ac_func in memmove vsnprintf snprintf setsid glob strpbrk pipe crypt16 getauthuid
3741 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3742 echo "configure:3743: checking for $ac_func" >&5
3743 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3744 echo $ac_n "(cached) $ac_c" 1>&6
3746 cat > conftest.$ac_ext <<EOF
3747 #line 3748 "configure"
3748 #include "confdefs.h"
3749 /* System header to define __stub macros and hopefully few prototypes,
3750 which can conflict with char $ac_func(); below. */
3752 /* Override any gcc2 internal prototype to avoid an error. */
3753 /* We use char because int might match the return type of a gcc2
3754 builtin and then its argument prototype would still apply. */
3759 /* The GNU C library defines this for functions which it implements
3760 to always fail with ENOSYS. Some functions are actually named
3761 something starting with __ and the normal name is an alias. */
3762 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3770 if { (eval echo configure:3771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3772 eval "ac_cv_func_$ac_func=yes"
3774 echo "configure: failed program was:" >&5
3775 cat conftest.$ac_ext >&5
3777 eval "ac_cv_func_$ac_func=no"
3782 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3783 echo "$ac_t""yes" 1>&6
3784 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3785 cat >> confdefs.h <<EOF
3786 #define $ac_tr_func 1
3790 echo "$ac_t""no" 1>&6
3794 for ac_func in strftime sigprocmask sigblock sigaction innetgr
3796 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3797 echo "configure:3798: checking for $ac_func" >&5
3798 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3799 echo $ac_n "(cached) $ac_c" 1>&6
3801 cat > conftest.$ac_ext <<EOF
3802 #line 3803 "configure"
3803 #include "confdefs.h"
3804 /* System header to define __stub macros and hopefully few prototypes,
3805 which can conflict with char $ac_func(); below. */
3807 /* Override any gcc2 internal prototype to avoid an error. */
3808 /* We use char because int might match the return type of a gcc2
3809 builtin and then its argument prototype would still apply. */
3814 /* The GNU C library defines this for functions which it implements
3815 to always fail with ENOSYS. Some functions are actually named
3816 something starting with __ and the normal name is an alias. */
3817 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3825 if { (eval echo configure:3826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3827 eval "ac_cv_func_$ac_func=yes"
3829 echo "configure: failed program was:" >&5
3830 cat conftest.$ac_ext >&5
3832 eval "ac_cv_func_$ac_func=no"
3837 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3838 echo "$ac_t""yes" 1>&6
3839 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3840 cat >> confdefs.h <<EOF
3841 #define $ac_tr_func 1
3845 echo "$ac_t""no" 1>&6
3849 for ac_func in initgroups select rdchk getgrnam pathconf putprpwnam
3851 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3852 echo "configure:3853: checking for $ac_func" >&5
3853 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3854 echo $ac_n "(cached) $ac_c" 1>&6
3856 cat > conftest.$ac_ext <<EOF
3857 #line 3858 "configure"
3858 #include "confdefs.h"
3859 /* System header to define __stub macros and hopefully few prototypes,
3860 which can conflict with char $ac_func(); below. */
3862 /* Override any gcc2 internal prototype to avoid an error. */
3863 /* We use char because int might match the return type of a gcc2
3864 builtin and then its argument prototype would still apply. */
3869 /* The GNU C library defines this for functions which it implements
3870 to always fail with ENOSYS. Some functions are actually named
3871 something starting with __ and the normal name is an alias. */
3872 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3880 if { (eval echo configure:3881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3882 eval "ac_cv_func_$ac_func=yes"
3884 echo "configure: failed program was:" >&5
3885 cat conftest.$ac_ext >&5
3887 eval "ac_cv_func_$ac_func=no"
3892 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3893 echo "$ac_t""yes" 1>&6
3894 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3895 cat >> confdefs.h <<EOF
3896 #define $ac_tr_func 1
3900 echo "$ac_t""no" 1>&6
3904 for ac_func in setuidx setgroups mktime rename ftruncate stat64 fstat64 lstat64
3906 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3907 echo "configure:3908: checking for $ac_func" >&5
3908 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3909 echo $ac_n "(cached) $ac_c" 1>&6
3911 cat > conftest.$ac_ext <<EOF
3912 #line 3913 "configure"
3913 #include "confdefs.h"
3914 /* System header to define __stub macros and hopefully few prototypes,
3915 which can conflict with char $ac_func(); below. */
3917 /* Override any gcc2 internal prototype to avoid an error. */
3918 /* We use char because int might match the return type of a gcc2
3919 builtin and then its argument prototype would still apply. */
3924 /* The GNU C library defines this for functions which it implements
3925 to always fail with ENOSYS. Some functions are actually named
3926 something starting with __ and the normal name is an alias. */
3927 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3935 if { (eval echo configure:3936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3937 eval "ac_cv_func_$ac_func=yes"
3939 echo "configure: failed program was:" >&5
3940 cat conftest.$ac_ext >&5
3942 eval "ac_cv_func_$ac_func=no"
3947 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3948 echo "$ac_t""yes" 1>&6
3949 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3950 cat >> confdefs.h <<EOF
3951 #define $ac_tr_func 1
3955 echo "$ac_t""no" 1>&6
3959 for ac_func in set_auth_parameters atexit grantpt getspnam dup2 lseek64 ftruncate64
3961 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3962 echo "configure:3963: checking for $ac_func" >&5
3963 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3964 echo $ac_n "(cached) $ac_c" 1>&6
3966 cat > conftest.$ac_ext <<EOF
3967 #line 3968 "configure"
3968 #include "confdefs.h"
3969 /* System header to define __stub macros and hopefully few prototypes,
3970 which can conflict with char $ac_func(); below. */
3972 /* Override any gcc2 internal prototype to avoid an error. */
3973 /* We use char because int might match the return type of a gcc2
3974 builtin and then its argument prototype would still apply. */
3979 /* The GNU C library defines this for functions which it implements
3980 to always fail with ENOSYS. Some functions are actually named
3981 something starting with __ and the normal name is an alias. */
3982 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3990 if { (eval echo configure:3991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3992 eval "ac_cv_func_$ac_func=yes"
3994 echo "configure: failed program was:" >&5
3995 cat conftest.$ac_ext >&5
3997 eval "ac_cv_func_$ac_func=no"
4002 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4003 echo "$ac_t""yes" 1>&6
4004 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4005 cat >> confdefs.h <<EOF
4006 #define $ac_tr_func 1
4010 echo "$ac_t""no" 1>&6
4014 for ac_func in fseek64 ftell64 bigcrypt getprpwnam setluid yp_get_default_domain getpwanam
4016 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4017 echo "configure:4018: checking for $ac_func" >&5
4018 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4019 echo $ac_n "(cached) $ac_c" 1>&6
4021 cat > conftest.$ac_ext <<EOF
4022 #line 4023 "configure"
4023 #include "confdefs.h"
4024 /* System header to define __stub macros and hopefully few prototypes,
4025 which can conflict with char $ac_func(); below. */
4027 /* Override any gcc2 internal prototype to avoid an error. */
4028 /* We use char because int might match the return type of a gcc2
4029 builtin and then its argument prototype would still apply. */
4034 /* The GNU C library defines this for functions which it implements
4035 to always fail with ENOSYS. Some functions are actually named
4036 something starting with __ and the normal name is an alias. */
4037 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4045 if { (eval echo configure:4046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4047 eval "ac_cv_func_$ac_func=yes"
4049 echo "configure: failed program was:" >&5
4050 cat conftest.$ac_ext >&5
4052 eval "ac_cv_func_$ac_func=no"
4057 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4058 echo "$ac_t""yes" 1>&6
4059 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4060 cat >> confdefs.h <<EOF
4061 #define $ac_tr_func 1
4065 echo "$ac_t""no" 1>&6
4069 for ac_func in srandom random srand rand setenv
4071 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4072 echo "configure:4073: checking for $ac_func" >&5
4073 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4074 echo $ac_n "(cached) $ac_c" 1>&6
4076 cat > conftest.$ac_ext <<EOF
4077 #line 4078 "configure"
4078 #include "confdefs.h"
4079 /* System header to define __stub macros and hopefully few prototypes,
4080 which can conflict with char $ac_func(); below. */
4082 /* Override any gcc2 internal prototype to avoid an error. */
4083 /* We use char because int might match the return type of a gcc2
4084 builtin and then its argument prototype would still apply. */
4089 /* The GNU C library defines this for functions which it implements
4090 to always fail with ENOSYS. Some functions are actually named
4091 something starting with __ and the normal name is an alias. */
4092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4100 if { (eval echo configure:4101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4102 eval "ac_cv_func_$ac_func=yes"
4104 echo "configure: failed program was:" >&5
4105 cat conftest.$ac_ext >&5
4107 eval "ac_cv_func_$ac_func=no"
4112 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4113 echo "$ac_t""yes" 1>&6
4114 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4115 cat >> confdefs.h <<EOF
4116 #define $ac_tr_func 1
4120 echo "$ac_t""no" 1>&6
4125 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
4127 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4128 echo "configure:4129: checking for $ac_func" >&5
4129 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4130 echo $ac_n "(cached) $ac_c" 1>&6
4132 cat > conftest.$ac_ext <<EOF
4133 #line 4134 "configure"
4134 #include "confdefs.h"
4135 /* System header to define __stub macros and hopefully few prototypes,
4136 which can conflict with char $ac_func(); below. */
4138 /* Override any gcc2 internal prototype to avoid an error. */
4139 /* We use char because int might match the return type of a gcc2
4140 builtin and then its argument prototype would still apply. */
4145 /* The GNU C library defines this for functions which it implements
4146 to always fail with ENOSYS. Some functions are actually named
4147 something starting with __ and the normal name is an alias. */
4148 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4156 if { (eval echo configure:4157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4158 eval "ac_cv_func_$ac_func=yes"
4160 echo "configure: failed program was:" >&5
4161 cat conftest.$ac_ext >&5
4163 eval "ac_cv_func_$ac_func=no"
4168 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4169 echo "$ac_t""yes" 1>&6
4170 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4171 cat >> confdefs.h <<EOF
4172 #define $ac_tr_func 1
4176 echo "$ac_t""no" 1>&6
4180 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
4182 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4183 echo "configure:4184: checking for $ac_func" >&5
4184 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4185 echo $ac_n "(cached) $ac_c" 1>&6
4187 cat > conftest.$ac_ext <<EOF
4188 #line 4189 "configure"
4189 #include "confdefs.h"
4190 /* System header to define __stub macros and hopefully few prototypes,
4191 which can conflict with char $ac_func(); below. */
4193 /* Override any gcc2 internal prototype to avoid an error. */
4194 /* We use char because int might match the return type of a gcc2
4195 builtin and then its argument prototype would still apply. */
4200 /* The GNU C library defines this for functions which it implements
4201 to always fail with ENOSYS. Some functions are actually named
4202 something starting with __ and the normal name is an alias. */
4203 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4211 if { (eval echo configure:4212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4213 eval "ac_cv_func_$ac_func=yes"
4215 echo "configure: failed program was:" >&5
4216 cat conftest.$ac_ext >&5
4218 eval "ac_cv_func_$ac_func=no"
4223 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4224 echo "$ac_t""yes" 1>&6
4225 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4226 cat >> confdefs.h <<EOF
4227 #define $ac_tr_func 1
4231 echo "$ac_t""no" 1>&6
4235 for ac_func in __getcwd _getcwd
4237 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4238 echo "configure:4239: checking for $ac_func" >&5
4239 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4240 echo $ac_n "(cached) $ac_c" 1>&6
4242 cat > conftest.$ac_ext <<EOF
4243 #line 4244 "configure"
4244 #include "confdefs.h"
4245 /* System header to define __stub macros and hopefully few prototypes,
4246 which can conflict with char $ac_func(); below. */
4248 /* Override any gcc2 internal prototype to avoid an error. */
4249 /* We use char because int might match the return type of a gcc2
4250 builtin and then its argument prototype would still apply. */
4255 /* The GNU C library defines this for functions which it implements
4256 to always fail with ENOSYS. Some functions are actually named
4257 something starting with __ and the normal name is an alias. */
4258 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4266 if { (eval echo configure:4267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4268 eval "ac_cv_func_$ac_func=yes"
4270 echo "configure: failed program was:" >&5
4271 cat conftest.$ac_ext >&5
4273 eval "ac_cv_func_$ac_func=no"
4278 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4279 echo "$ac_t""yes" 1>&6
4280 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4281 cat >> confdefs.h <<EOF
4282 #define $ac_tr_func 1
4286 echo "$ac_t""no" 1>&6
4290 for ac_func in __xstat __fxstat __lxstat
4292 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4293 echo "configure:4294: checking for $ac_func" >&5
4294 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4295 echo $ac_n "(cached) $ac_c" 1>&6
4297 cat > conftest.$ac_ext <<EOF
4298 #line 4299 "configure"
4299 #include "confdefs.h"
4300 /* System header to define __stub macros and hopefully few prototypes,
4301 which can conflict with char $ac_func(); below. */
4303 /* Override any gcc2 internal prototype to avoid an error. */
4304 /* We use char because int might match the return type of a gcc2
4305 builtin and then its argument prototype would still apply. */
4310 /* The GNU C library defines this for functions which it implements
4311 to always fail with ENOSYS. Some functions are actually named
4312 something starting with __ and the normal name is an alias. */
4313 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4321 if { (eval echo configure:4322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4323 eval "ac_cv_func_$ac_func=yes"
4325 echo "configure: failed program was:" >&5
4326 cat conftest.$ac_ext >&5
4328 eval "ac_cv_func_$ac_func=no"
4333 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4334 echo "$ac_t""yes" 1>&6
4335 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4336 cat >> confdefs.h <<EOF
4337 #define $ac_tr_func 1
4341 echo "$ac_t""no" 1>&6
4345 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
4347 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4348 echo "configure:4349: checking for $ac_func" >&5
4349 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4350 echo $ac_n "(cached) $ac_c" 1>&6
4352 cat > conftest.$ac_ext <<EOF
4353 #line 4354 "configure"
4354 #include "confdefs.h"
4355 /* System header to define __stub macros and hopefully few prototypes,
4356 which can conflict with char $ac_func(); below. */
4358 /* Override any gcc2 internal prototype to avoid an error. */
4359 /* We use char because int might match the return type of a gcc2
4360 builtin and then its argument prototype would still apply. */
4365 /* The GNU C library defines this for functions which it implements
4366 to always fail with ENOSYS. Some functions are actually named
4367 something starting with __ and the normal name is an alias. */
4368 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4376 if { (eval echo configure:4377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4378 eval "ac_cv_func_$ac_func=yes"
4380 echo "configure: failed program was:" >&5
4381 cat conftest.$ac_ext >&5
4383 eval "ac_cv_func_$ac_func=no"
4388 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4389 echo "$ac_t""yes" 1>&6
4390 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4391 cat >> confdefs.h <<EOF
4392 #define $ac_tr_func 1
4396 echo "$ac_t""no" 1>&6
4400 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
4402 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4403 echo "configure:4404: checking for $ac_func" >&5
4404 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4405 echo $ac_n "(cached) $ac_c" 1>&6
4407 cat > conftest.$ac_ext <<EOF
4408 #line 4409 "configure"
4409 #include "confdefs.h"
4410 /* System header to define __stub macros and hopefully few prototypes,
4411 which can conflict with char $ac_func(); below. */
4413 /* Override any gcc2 internal prototype to avoid an error. */
4414 /* We use char because int might match the return type of a gcc2
4415 builtin and then its argument prototype would still apply. */
4420 /* The GNU C library defines this for functions which it implements
4421 to always fail with ENOSYS. Some functions are actually named
4422 something starting with __ and the normal name is an alias. */
4423 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4431 if { (eval echo configure:4432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4433 eval "ac_cv_func_$ac_func=yes"
4435 echo "configure: failed program was:" >&5
4436 cat conftest.$ac_ext >&5
4438 eval "ac_cv_func_$ac_func=no"
4443 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4444 echo "$ac_t""yes" 1>&6
4445 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4446 cat >> confdefs.h <<EOF
4447 #define $ac_tr_func 1
4451 echo "$ac_t""no" 1>&6
4455 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
4457 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4458 echo "configure:4459: checking for $ac_func" >&5
4459 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4460 echo $ac_n "(cached) $ac_c" 1>&6
4462 cat > conftest.$ac_ext <<EOF
4463 #line 4464 "configure"
4464 #include "confdefs.h"
4465 /* System header to define __stub macros and hopefully few prototypes,
4466 which can conflict with char $ac_func(); below. */
4468 /* Override any gcc2 internal prototype to avoid an error. */
4469 /* We use char because int might match the return type of a gcc2
4470 builtin and then its argument prototype would still apply. */
4475 /* The GNU C library defines this for functions which it implements
4476 to always fail with ENOSYS. Some functions are actually named
4477 something starting with __ and the normal name is an alias. */
4478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4486 if { (eval echo configure:4487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4488 eval "ac_cv_func_$ac_func=yes"
4490 echo "configure: failed program was:" >&5
4491 cat conftest.$ac_ext >&5
4493 eval "ac_cv_func_$ac_func=no"
4498 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4499 echo "$ac_t""yes" 1>&6
4500 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4501 cat >> confdefs.h <<EOF
4502 #define $ac_tr_func 1
4506 echo "$ac_t""no" 1>&6
4510 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
4512 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4513 echo "configure:4514: checking for $ac_func" >&5
4514 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4515 echo $ac_n "(cached) $ac_c" 1>&6
4517 cat > conftest.$ac_ext <<EOF
4518 #line 4519 "configure"
4519 #include "confdefs.h"
4520 /* System header to define __stub macros and hopefully few prototypes,
4521 which can conflict with char $ac_func(); below. */
4523 /* Override any gcc2 internal prototype to avoid an error. */
4524 /* We use char because int might match the return type of a gcc2
4525 builtin and then its argument prototype would still apply. */
4530 /* The GNU C library defines this for functions which it implements
4531 to always fail with ENOSYS. Some functions are actually named
4532 something starting with __ and the normal name is an alias. */
4533 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4541 if { (eval echo configure:4542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4543 eval "ac_cv_func_$ac_func=yes"
4545 echo "configure: failed program was:" >&5
4546 cat conftest.$ac_ext >&5
4548 eval "ac_cv_func_$ac_func=no"
4553 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4554 echo "$ac_t""yes" 1>&6
4555 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4556 cat >> confdefs.h <<EOF
4557 #define $ac_tr_func 1
4561 echo "$ac_t""no" 1>&6
4565 for ac_func in _write __write _fork __fork
4567 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4568 echo "configure:4569: checking for $ac_func" >&5
4569 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4570 echo $ac_n "(cached) $ac_c" 1>&6
4572 cat > conftest.$ac_ext <<EOF
4573 #line 4574 "configure"
4574 #include "confdefs.h"
4575 /* System header to define __stub macros and hopefully few prototypes,
4576 which can conflict with char $ac_func(); below. */
4578 /* Override any gcc2 internal prototype to avoid an error. */
4579 /* We use char because int might match the return type of a gcc2
4580 builtin and then its argument prototype would still apply. */
4585 /* The GNU C library defines this for functions which it implements
4586 to always fail with ENOSYS. Some functions are actually named
4587 something starting with __ and the normal name is an alias. */
4588 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4596 if { (eval echo configure:4597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4598 eval "ac_cv_func_$ac_func=yes"
4600 echo "configure: failed program was:" >&5
4601 cat conftest.$ac_ext >&5
4603 eval "ac_cv_func_$ac_func=no"
4608 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4609 echo "$ac_t""yes" 1>&6
4610 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4611 cat >> confdefs.h <<EOF
4612 #define $ac_tr_func 1
4616 echo "$ac_t""no" 1>&6
4620 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
4622 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4623 echo "configure:4624: checking for $ac_func" >&5
4624 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4625 echo $ac_n "(cached) $ac_c" 1>&6
4627 cat > conftest.$ac_ext <<EOF
4628 #line 4629 "configure"
4629 #include "confdefs.h"
4630 /* System header to define __stub macros and hopefully few prototypes,
4631 which can conflict with char $ac_func(); below. */
4633 /* Override any gcc2 internal prototype to avoid an error. */
4634 /* We use char because int might match the return type of a gcc2
4635 builtin and then its argument prototype would still apply. */
4640 /* The GNU C library defines this for functions which it implements
4641 to always fail with ENOSYS. Some functions are actually named
4642 something starting with __ and the normal name is an alias. */
4643 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4651 if { (eval echo configure:4652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4653 eval "ac_cv_func_$ac_func=yes"
4655 echo "configure: failed program was:" >&5
4656 cat conftest.$ac_ext >&5
4658 eval "ac_cv_func_$ac_func=no"
4663 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4664 echo "$ac_t""yes" 1>&6
4665 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4666 cat >> confdefs.h <<EOF
4667 #define $ac_tr_func 1
4671 echo "$ac_t""no" 1>&6
4675 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
4677 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4678 echo "configure:4679: checking for $ac_func" >&5
4679 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4680 echo $ac_n "(cached) $ac_c" 1>&6
4682 cat > conftest.$ac_ext <<EOF
4683 #line 4684 "configure"
4684 #include "confdefs.h"
4685 /* System header to define __stub macros and hopefully few prototypes,
4686 which can conflict with char $ac_func(); below. */
4688 /* Override any gcc2 internal prototype to avoid an error. */
4689 /* We use char because int might match the return type of a gcc2
4690 builtin and then its argument prototype would still apply. */
4695 /* The GNU C library defines this for functions which it implements
4696 to always fail with ENOSYS. Some functions are actually named
4697 something starting with __ and the normal name is an alias. */
4698 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4706 if { (eval echo configure:4707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4708 eval "ac_cv_func_$ac_func=yes"
4710 echo "configure: failed program was:" >&5
4711 cat conftest.$ac_ext >&5
4713 eval "ac_cv_func_$ac_func=no"
4718 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4719 echo "$ac_t""yes" 1>&6
4720 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4721 cat >> confdefs.h <<EOF
4722 #define $ac_tr_func 1
4726 echo "$ac_t""no" 1>&6
4730 for ac_func in pread _pread __pread pread64 _pread64 __pread64
4732 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4733 echo "configure:4734: checking for $ac_func" >&5
4734 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4735 echo $ac_n "(cached) $ac_c" 1>&6
4737 cat > conftest.$ac_ext <<EOF
4738 #line 4739 "configure"
4739 #include "confdefs.h"
4740 /* System header to define __stub macros and hopefully few prototypes,
4741 which can conflict with char $ac_func(); below. */
4743 /* Override any gcc2 internal prototype to avoid an error. */
4744 /* We use char because int might match the return type of a gcc2
4745 builtin and then its argument prototype would still apply. */
4750 /* The GNU C library defines this for functions which it implements
4751 to always fail with ENOSYS. Some functions are actually named
4752 something starting with __ and the normal name is an alias. */
4753 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4761 if { (eval echo configure:4762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4763 eval "ac_cv_func_$ac_func=yes"
4765 echo "configure: failed program was:" >&5
4766 cat conftest.$ac_ext >&5
4768 eval "ac_cv_func_$ac_func=no"
4773 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4774 echo "$ac_t""yes" 1>&6
4775 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4776 cat >> confdefs.h <<EOF
4777 #define $ac_tr_func 1
4781 echo "$ac_t""no" 1>&6
4785 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
4787 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4788 echo "configure:4789: checking for $ac_func" >&5
4789 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4790 echo $ac_n "(cached) $ac_c" 1>&6
4792 cat > conftest.$ac_ext <<EOF
4793 #line 4794 "configure"
4794 #include "confdefs.h"
4795 /* System header to define __stub macros and hopefully few prototypes,
4796 which can conflict with char $ac_func(); below. */
4798 /* Override any gcc2 internal prototype to avoid an error. */
4799 /* We use char because int might match the return type of a gcc2
4800 builtin and then its argument prototype would still apply. */
4805 /* The GNU C library defines this for functions which it implements
4806 to always fail with ENOSYS. Some functions are actually named
4807 something starting with __ and the normal name is an alias. */
4808 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4816 if { (eval echo configure:4817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4818 eval "ac_cv_func_$ac_func=yes"
4820 echo "configure: failed program was:" >&5
4821 cat conftest.$ac_ext >&5
4823 eval "ac_cv_func_$ac_func=no"
4828 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4829 echo "$ac_t""yes" 1>&6
4830 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4831 cat >> confdefs.h <<EOF
4832 #define $ac_tr_func 1
4836 echo "$ac_t""no" 1>&6
4840 for ac_func in open64 _open64 __open64 creat64
4842 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4843 echo "configure:4844: checking for $ac_func" >&5
4844 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4845 echo $ac_n "(cached) $ac_c" 1>&6
4847 cat > conftest.$ac_ext <<EOF
4848 #line 4849 "configure"
4849 #include "confdefs.h"
4850 /* System header to define __stub macros and hopefully few prototypes,
4851 which can conflict with char $ac_func(); below. */
4853 /* Override any gcc2 internal prototype to avoid an error. */
4854 /* We use char because int might match the return type of a gcc2
4855 builtin and then its argument prototype would still apply. */
4860 /* The GNU C library defines this for functions which it implements
4861 to always fail with ENOSYS. Some functions are actually named
4862 something starting with __ and the normal name is an alias. */
4863 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4871 if { (eval echo configure:4872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4873 eval "ac_cv_func_$ac_func=yes"
4875 echo "configure: failed program was:" >&5
4876 cat conftest.$ac_ext >&5
4878 eval "ac_cv_func_$ac_func=no"
4883 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4884 echo "$ac_t""yes" 1>&6
4885 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4886 cat >> confdefs.h <<EOF
4887 #define $ac_tr_func 1
4891 echo "$ac_t""no" 1>&6
4896 echo $ac_n "checking for long long""... $ac_c" 1>&6
4897 echo "configure:4898: checking for long long" >&5
4898 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
4899 echo $ac_n "(cached) $ac_c" 1>&6
4902 if test "$cross_compiling" = yes; then
4903 samba_cv_have_longlong=cross
4905 cat > conftest.$ac_ext <<EOF
4906 #line 4907 "configure"
4907 #include "confdefs.h"
4909 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
4911 if { (eval echo configure:4912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4913 samba_cv_have_longlong=yes
4915 echo "configure: failed program was:" >&5
4916 cat conftest.$ac_ext >&5
4918 samba_cv_have_longlong=no
4925 echo "$ac_t""$samba_cv_have_longlong" 1>&6
4926 if test x"$samba_cv_have_longlong" = x"yes"; then
4927 cat >> confdefs.h <<\EOF
4928 #define HAVE_LONGLONG 1
4933 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
4934 echo "configure:4935: checking for 64 bit off_t" >&5
4935 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
4936 echo $ac_n "(cached) $ac_c" 1>&6
4939 if test "$cross_compiling" = yes; then
4940 samba_cv_SIZEOF_OFF_T=cross
4942 cat > conftest.$ac_ext <<EOF
4943 #line 4944 "configure"
4944 #include "confdefs.h"
4946 #include <sys/stat.h>
4947 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
4949 if { (eval echo configure:4950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4951 samba_cv_SIZEOF_OFF_T=yes
4953 echo "configure: failed program was:" >&5
4954 cat conftest.$ac_ext >&5
4956 samba_cv_SIZEOF_OFF_T=no
4963 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
4964 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
4965 cat >> confdefs.h <<\EOF
4966 #define SIZEOF_OFF_T 8
4971 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
4972 echo "configure:4973: checking for off64_t" >&5
4973 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
4974 echo $ac_n "(cached) $ac_c" 1>&6
4977 if test "$cross_compiling" = yes; then
4978 samba_cv_HAVE_OFF64_T=cross
4980 cat > conftest.$ac_ext <<EOF
4981 #line 4982 "configure"
4982 #include "confdefs.h"
4984 #include <sys/stat.h>
4985 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
4987 if { (eval echo configure:4988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4989 samba_cv_HAVE_OFF64_T=yes
4991 echo "configure: failed program was:" >&5
4992 cat conftest.$ac_ext >&5
4994 samba_cv_HAVE_OFF64_T=no
5001 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
5002 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
5003 cat >> confdefs.h <<\EOF
5004 #define HAVE_OFF64_T 1
5009 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
5010 echo "configure:5011: checking for 64 bit ino_t" >&5
5011 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
5012 echo $ac_n "(cached) $ac_c" 1>&6
5015 if test "$cross_compiling" = yes; then
5016 samba_cv_SIZEOF_INO_T=cross
5018 cat > conftest.$ac_ext <<EOF
5019 #line 5020 "configure"
5020 #include "confdefs.h"
5022 #include <sys/stat.h>
5023 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
5025 if { (eval echo configure:5026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5027 samba_cv_SIZEOF_INO_T=yes
5029 echo "configure: failed program was:" >&5
5030 cat conftest.$ac_ext >&5
5032 samba_cv_SIZEOF_INO_T=no
5039 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
5040 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
5041 cat >> confdefs.h <<\EOF
5042 #define SIZEOF_INO_T 8
5047 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
5048 echo "configure:5049: checking for ino64_t" >&5
5049 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
5050 echo $ac_n "(cached) $ac_c" 1>&6
5053 if test "$cross_compiling" = yes; then
5054 samba_cv_HAVE_INO64_T=cross
5056 cat > conftest.$ac_ext <<EOF
5057 #line 5058 "configure"
5058 #include "confdefs.h"
5060 #include <sys/stat.h>
5061 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
5063 if { (eval echo configure:5064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5065 samba_cv_HAVE_INO64_T=yes
5067 echo "configure: failed program was:" >&5
5068 cat conftest.$ac_ext >&5
5070 samba_cv_HAVE_INO64_T=no
5077 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
5078 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
5079 cat >> confdefs.h <<\EOF
5080 #define HAVE_INO64_T 1
5085 echo $ac_n "checking for union semun""... $ac_c" 1>&6
5086 echo "configure:5087: checking for union semun" >&5
5087 if eval "test \"`echo '$''{'samba_cv_HAVE_UNION_SEMUN'+set}'`\" = set"; then
5088 echo $ac_n "(cached) $ac_c" 1>&6
5091 if test "$cross_compiling" = yes; then
5092 samba_cv_HAVE_UNION_SEMUN=cross
5094 cat > conftest.$ac_ext <<EOF
5095 #line 5096 "configure"
5096 #include "confdefs.h"
5098 #include <sys/types.h>
5099 #include <sys/ipc.h>
5100 #include <sys/sem.h>
5101 main() { union semun ss; exit(0); }
5103 if { (eval echo configure:5104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5105 samba_cv_HAVE_UNION_SEMUN=yes
5107 echo "configure: failed program was:" >&5
5108 cat conftest.$ac_ext >&5
5110 samba_cv_HAVE_UNION_SEMUN=no
5117 echo "$ac_t""$samba_cv_HAVE_UNION_SEMUN" 1>&6
5118 if test x"$samba_cv_HAVE_UNION_SEMUN" = x"yes"; then
5119 cat >> confdefs.h <<\EOF
5120 #define HAVE_UNION_SEMUN 1
5125 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
5126 echo "configure:5127: checking for unsigned char" >&5
5127 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
5128 echo $ac_n "(cached) $ac_c" 1>&6
5131 if test "$cross_compiling" = yes; then
5132 samba_cv_HAVE_UNSIGNED_CHAR=cross
5134 cat > conftest.$ac_ext <<EOF
5135 #line 5136 "configure"
5136 #include "confdefs.h"
5138 main() { char c; c=250; exit((c > 0)?0:1); }
5140 if { (eval echo configure:5141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5142 samba_cv_HAVE_UNSIGNED_CHAR=yes
5144 echo "configure: failed program was:" >&5
5145 cat conftest.$ac_ext >&5
5147 samba_cv_HAVE_UNSIGNED_CHAR=no
5154 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
5155 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
5156 cat >> confdefs.h <<\EOF
5157 #define HAVE_UNSIGNED_CHAR 1
5162 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
5163 echo "configure:5164: checking for sin_len in sock" >&5
5164 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
5165 echo $ac_n "(cached) $ac_c" 1>&6
5168 cat > conftest.$ac_ext <<EOF
5169 #line 5170 "configure"
5170 #include "confdefs.h"
5171 #include <sys/types.h>
5172 #include <sys/socket.h>
5173 #include <netinet/in.h>
5175 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
5178 if { (eval echo configure:5179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5180 samba_cv_HAVE_SOCK_SIN_LEN=yes
5182 echo "configure: failed program was:" >&5
5183 cat conftest.$ac_ext >&5
5185 samba_cv_HAVE_SOCK_SIN_LEN=no
5190 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
5191 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
5192 cat >> confdefs.h <<\EOF
5193 #define HAVE_SOCK_SIN_LEN 1
5198 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
5199 echo "configure:5200: checking whether seekdir returns void" >&5
5200 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
5201 echo $ac_n "(cached) $ac_c" 1>&6
5204 cat > conftest.$ac_ext <<EOF
5205 #line 5206 "configure"
5206 #include "confdefs.h"
5207 #include <sys/types.h>
5209 void seekdir(DIR *d, long loc) { return; }
5214 if { (eval echo configure:5215: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5216 samba_cv_SEEKDIR_RETURNS_VOID=yes
5218 echo "configure: failed program was:" >&5
5219 cat conftest.$ac_ext >&5
5221 samba_cv_SEEKDIR_RETURNS_VOID=no
5226 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
5227 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
5228 cat >> confdefs.h <<\EOF
5229 #define SEEKDIR_RETURNS_VOID 1
5234 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
5235 echo "configure:5236: checking for __FILE__ macro" >&5
5236 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
5237 echo $ac_n "(cached) $ac_c" 1>&6
5240 cat > conftest.$ac_ext <<EOF
5241 #line 5242 "configure"
5242 #include "confdefs.h"
5245 printf("%s\n", __FILE__);
5248 if { (eval echo configure:5249: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5250 samba_cv_HAVE_FILE_MACRO=yes
5252 echo "configure: failed program was:" >&5
5253 cat conftest.$ac_ext >&5
5255 samba_cv_HAVE_FILE_MACRO=no
5260 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
5261 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
5262 cat >> confdefs.h <<\EOF
5263 #define HAVE_FILE_MACRO 1
5268 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
5269 echo "configure:5270: checking for __FUNCTION__ macro" >&5
5270 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
5271 echo $ac_n "(cached) $ac_c" 1>&6
5274 cat > conftest.$ac_ext <<EOF
5275 #line 5276 "configure"
5276 #include "confdefs.h"
5279 printf("%s\n", __FUNCTION__);
5282 if { (eval echo configure:5283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5284 samba_cv_HAVE_FUNCTION_MACRO=yes
5286 echo "configure: failed program was:" >&5
5287 cat conftest.$ac_ext >&5
5289 samba_cv_HAVE_FUNCTION_MACRO=no
5294 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
5295 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
5296 cat >> confdefs.h <<\EOF
5297 #define HAVE_FUNCTION_MACRO 1
5302 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
5303 echo "configure:5304: checking if gettimeofday takes tz argument" >&5
5304 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
5305 echo $ac_n "(cached) $ac_c" 1>&6
5308 if test "$cross_compiling" = yes; then
5309 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
5311 cat > conftest.$ac_ext <<EOF
5312 #line 5313 "configure"
5313 #include "confdefs.h"
5315 #include <sys/time.h>
5317 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
5319 if { (eval echo configure:5320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5321 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
5323 echo "configure: failed program was:" >&5
5324 cat conftest.$ac_ext >&5
5326 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
5333 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
5334 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
5335 cat >> confdefs.h <<\EOF
5336 #define HAVE_GETTIMEOFDAY_TZ 1
5342 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
5343 echo "configure:5344: checking for broken readdir" >&5
5344 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
5345 echo $ac_n "(cached) $ac_c" 1>&6
5348 if test "$cross_compiling" = yes; then
5349 samba_cv_HAVE_BROKEN_READDIR=cross
5351 cat > conftest.$ac_ext <<EOF
5352 #line 5353 "configure"
5353 #include "confdefs.h"
5354 #include <sys/types.h>
5356 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
5357 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
5358 di->d_name[0] == 0) exit(0); exit(1);}
5360 if { (eval echo configure:5361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5362 samba_cv_HAVE_BROKEN_READDIR=yes
5364 echo "configure: failed program was:" >&5
5365 cat conftest.$ac_ext >&5
5367 samba_cv_HAVE_BROKEN_READDIR=no
5374 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
5375 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
5376 cat >> confdefs.h <<\EOF
5377 #define HAVE_BROKEN_READDIR 1
5382 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
5383 echo "configure:5384: checking for utimbuf" >&5
5384 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
5385 echo $ac_n "(cached) $ac_c" 1>&6
5388 cat > conftest.$ac_ext <<EOF
5389 #line 5390 "configure"
5390 #include "confdefs.h"
5391 #include <sys/types.h>
5394 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
5397 if { (eval echo configure:5398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5399 samba_cv_HAVE_UTIMBUF=yes
5401 echo "configure: failed program was:" >&5
5402 cat conftest.$ac_ext >&5
5404 samba_cv_HAVE_UTIMBUF=no
5409 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
5410 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
5411 cat >> confdefs.h <<\EOF
5412 #define HAVE_UTIMBUF 1
5417 echo $ac_n "checking for kernel oplock type definitions""... $ac_c" 1>&6
5418 echo "configure:5419: checking for kernel oplock type definitions" >&5
5419 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS'+set}'`\" = set"; then
5420 echo $ac_n "(cached) $ac_c" 1>&6
5423 cat > conftest.$ac_ext <<EOF
5424 #line 5425 "configure"
5425 #include "confdefs.h"
5426 #include <sys/types.h>
5429 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
5432 if { (eval echo configure:5433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5434 samba_cv_HAVE_KERNEL_OPLOCKS=yes
5436 echo "configure: failed program was:" >&5
5437 cat conftest.$ac_ext >&5
5439 samba_cv_HAVE_KERNEL_OPLOCKS=no
5444 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS" 1>&6
5445 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS" = x"yes"; then
5446 cat >> confdefs.h <<\EOF
5447 #define HAVE_KERNEL_OPLOCKS 1
5452 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
5453 echo "configure:5454: checking for irix specific capabilities" >&5
5454 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
5455 echo $ac_n "(cached) $ac_c" 1>&6
5458 if test "$cross_compiling" = yes; then
5459 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
5461 cat > conftest.$ac_ext <<EOF
5462 #line 5463 "configure"
5463 #include "confdefs.h"
5464 #include <sys/types.h>
5465 #include <sys/capability.h>
5468 if ((cap = cap_get_proc()) == NULL)
5470 cap->cap_effective |= CAP_NETWORK_MGT;
5471 cap->cap_inheritable |= CAP_NETWORK_MGT;
5477 if { (eval echo configure:5478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5479 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
5481 echo "configure: failed program was:" >&5
5482 cat conftest.$ac_ext >&5
5484 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
5491 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
5492 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
5493 cat >> confdefs.h <<\EOF
5494 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
5499 echo $ac_n "checking for test routines""... $ac_c" 1>&6
5500 echo "configure:5501: checking for test routines" >&5
5501 if test "$cross_compiling" = yes; then
5502 echo "configure: warning: cannot run when cross-compiling" 1>&2
5504 cat > conftest.$ac_ext <<EOF
5505 #line 5506 "configure"
5506 #include "confdefs.h"
5507 #include "${srcdir-.}/tests/trivial.c"
5509 if { (eval echo configure:5510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5511 echo "$ac_t""yes" 1>&6
5513 echo "configure: failed program was:" >&5
5514 cat conftest.$ac_ext >&5
5516 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
5522 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
5523 echo "configure:5524: checking for ftruncate extend" >&5
5524 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
5525 echo $ac_n "(cached) $ac_c" 1>&6
5528 if test "$cross_compiling" = yes; then
5529 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
5531 cat > conftest.$ac_ext <<EOF
5532 #line 5533 "configure"
5533 #include "confdefs.h"
5534 #include "${srcdir-.}/tests/ftruncate.c"
5536 if { (eval echo configure:5537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5538 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
5540 echo "configure: failed program was:" >&5
5541 cat conftest.$ac_ext >&5
5543 samba_cv_HAVE_FTRUNCATE_EXTEND=no
5550 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
5551 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
5552 cat >> confdefs.h <<\EOF
5553 #define HAVE_FTRUNCATE_EXTEND 1
5558 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
5559 echo "configure:5560: checking for broken getgroups" >&5
5560 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
5561 echo $ac_n "(cached) $ac_c" 1>&6
5564 if test "$cross_compiling" = yes; then
5565 samba_cv_HAVE_BROKEN_GETGROUPS=cross
5567 cat > conftest.$ac_ext <<EOF
5568 #line 5569 "configure"
5569 #include "confdefs.h"
5570 #include "${srcdir-.}/tests/getgroups.c"
5572 if { (eval echo configure:5573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5574 samba_cv_HAVE_BROKEN_GETGROUPS=yes
5576 echo "configure: failed program was:" >&5
5577 cat conftest.$ac_ext >&5
5579 samba_cv_HAVE_BROKEN_GETGROUPS=no
5586 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
5587 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
5588 cat >> confdefs.h <<\EOF
5589 #define HAVE_BROKEN_GETGROUPS 1
5594 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
5595 echo "configure:5596: checking whether getpass should be replaced" >&5
5596 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
5597 echo $ac_n "(cached) $ac_c" 1>&6
5600 SAVE_CPPFLAGS="$CPPFLAGS"
5601 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/include -I${srcdir-.}/ubiqx"
5602 cat > conftest.$ac_ext <<EOF
5603 #line 5604 "configure"
5604 #include "confdefs.h"
5606 #define REPLACE_GETPASS 1
5607 #define NO_CONFIG_H 1
5608 #define main dont_declare_main
5609 #include "${srcdir-.}/lib/getsmbpass.c"
5616 if { (eval echo configure:5617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5618 samba_cv_REPLACE_GETPASS=yes
5620 echo "configure: failed program was:" >&5
5621 cat conftest.$ac_ext >&5
5623 samba_cv_REPLACE_GETPASS=no
5626 CPPFLAGS="$SAVE_CPPFLAGS"
5630 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
5631 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
5632 cat >> confdefs.h <<\EOF
5633 #define REPLACE_GETPASS 1
5638 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
5639 echo "configure:5640: checking for broken inet_ntoa" >&5
5640 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
5641 echo $ac_n "(cached) $ac_c" 1>&6
5644 if test "$cross_compiling" = yes; then
5645 samba_cv_REPLACE_INET_NTOA=cross
5647 cat > conftest.$ac_ext <<EOF
5648 #line 5649 "configure"
5649 #include "confdefs.h"
5652 #include <sys/types.h>
5653 #include <netinet/in.h>
5654 #include <arpa/inet.h>
5655 main() { struct in_addr ip; ip.s_addr = 0x12345678;
5656 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
5657 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
5660 if { (eval echo configure:5661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5662 samba_cv_REPLACE_INET_NTOA=yes
5664 echo "configure: failed program was:" >&5
5665 cat conftest.$ac_ext >&5
5667 samba_cv_REPLACE_INET_NTOA=no
5674 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
5675 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
5676 cat >> confdefs.h <<\EOF
5677 #define REPLACE_INET_NTOA 1
5682 echo $ac_n "checking for root""... $ac_c" 1>&6
5683 echo "configure:5684: checking for root" >&5
5684 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
5685 echo $ac_n "(cached) $ac_c" 1>&6
5688 if test "$cross_compiling" = yes; then
5689 samba_cv_HAVE_ROOT=cross
5691 cat > conftest.$ac_ext <<EOF
5692 #line 5693 "configure"
5693 #include "confdefs.h"
5694 main() { exit(getuid() != 0); }
5696 if { (eval echo configure:5697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5698 samba_cv_HAVE_ROOT=yes
5700 echo "configure: failed program was:" >&5
5701 cat conftest.$ac_ext >&5
5703 samba_cv_HAVE_ROOT=no
5710 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
5711 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
5712 cat >> confdefs.h <<\EOF
5717 echo "configure: warning: running as non-root will disable some tests" 1>&2
5721 echo $ac_n "checking for netmask ifconf""... $ac_c" 1>&6
5722 echo "configure:5723: checking for netmask ifconf" >&5
5723 if eval "test \"`echo '$''{'samba_cv_HAVE_NETMASK_IFCONF'+set}'`\" = set"; then
5724 echo $ac_n "(cached) $ac_c" 1>&6
5727 if test "$cross_compiling" = yes; then
5728 samba_cv_HAVE_NETMASK_IFCONF=cross
5730 cat > conftest.$ac_ext <<EOF
5731 #line 5732 "configure"
5732 #include "confdefs.h"
5734 #define HAVE_NETMASK_IFCONF 1
5736 #include "${srcdir-.}/lib/netmask.c"
5738 if { (eval echo configure:5739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5740 samba_cv_HAVE_NETMASK_IFCONF=yes
5742 echo "configure: failed program was:" >&5
5743 cat conftest.$ac_ext >&5
5745 samba_cv_HAVE_NETMASK_IFCONF=no
5752 echo "$ac_t""$samba_cv_HAVE_NETMASK_IFCONF" 1>&6
5753 if test x"$samba_cv_HAVE_NETMASK_IFCONF" = x"yes"; then
5754 netmask=yes;cat >> confdefs.h <<\EOF
5755 #define HAVE_NETMASK_IFCONF 1
5760 if test $netmask = no; then
5761 echo $ac_n "checking for netmask ifreq""... $ac_c" 1>&6
5762 echo "configure:5763: checking for netmask ifreq" >&5
5763 if eval "test \"`echo '$''{'samba_cv_HAVE_NETMASK_IFREQ'+set}'`\" = set"; then
5764 echo $ac_n "(cached) $ac_c" 1>&6
5767 if test "$cross_compiling" = yes; then
5768 samba_cv_HAVE_NETMASK_IFREQ=cross
5770 cat > conftest.$ac_ext <<EOF
5771 #line 5772 "configure"
5772 #include "confdefs.h"
5774 #define HAVE_NETMASK_IFREQ 1
5776 #include "${srcdir-.}/lib/netmask.c"
5778 if { (eval echo configure:5779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5780 samba_cv_HAVE_NETMASK_IFREQ=yes
5782 echo "configure: failed program was:" >&5
5783 cat conftest.$ac_ext >&5
5785 samba_cv_HAVE_NETMASK_IFREQ=no
5792 echo "$ac_t""$samba_cv_HAVE_NETMASK_IFREQ" 1>&6
5793 if test x"$samba_cv_HAVE_NETMASK_IFREQ" = x"yes"; then
5794 netmask=yes;cat >> confdefs.h <<\EOF
5795 #define HAVE_NETMASK_IFREQ 1
5801 if test $netmask = no; then
5802 echo $ac_n "checking for netmask AIX""... $ac_c" 1>&6
5803 echo "configure:5804: checking for netmask AIX" >&5
5804 if eval "test \"`echo '$''{'samba_cv_HAVE_NETMASK_AIX'+set}'`\" = set"; then
5805 echo $ac_n "(cached) $ac_c" 1>&6
5808 if test "$cross_compiling" = yes; then
5809 samba_cv_HAVE_NETMASK_AIX=cross
5811 cat > conftest.$ac_ext <<EOF
5812 #line 5813 "configure"
5813 #include "confdefs.h"
5815 #define HAVE_NETMASK_AIX 1
5817 #include "${srcdir-.}/lib/netmask.c"
5819 if { (eval echo configure:5820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5821 samba_cv_HAVE_NETMASK_AIX=yes
5823 echo "configure: failed program was:" >&5
5824 cat conftest.$ac_ext >&5
5826 samba_cv_HAVE_NETMASK_AIX=no
5833 echo "$ac_t""$samba_cv_HAVE_NETMASK_AIX" 1>&6
5834 if test x"$samba_cv_HAVE_NETMASK_AIX" = x"yes"; then
5835 netmask=yes;cat >> confdefs.h <<\EOF
5836 #define HAVE_NETMASK_AIX 1
5842 echo $ac_n "checking for trapdoor seteuid""... $ac_c" 1>&6
5843 echo "configure:5844: checking for trapdoor seteuid" >&5
5844 if eval "test \"`echo '$''{'samba_cv_HAVE_TRAPDOOR_UID'+set}'`\" = set"; then
5845 echo $ac_n "(cached) $ac_c" 1>&6
5848 if test "$cross_compiling" = yes; then
5851 cat > conftest.$ac_ext <<EOF
5852 #line 5853 "configure"
5853 #include "confdefs.h"
5854 #include "${srcdir-.}/tests/trapdoor.c"
5856 if { (eval echo configure:5857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5858 samba_cv_HAVE_TRAPDOOR_UID=no
5860 echo "configure: failed program was:" >&5
5861 cat conftest.$ac_ext >&5
5863 samba_cv_HAVE_TRAPDOOR_UID=yes
5870 echo "$ac_t""$samba_cv_HAVE_TRAPDOOR_UID" 1>&6
5871 if test x"$samba_cv_HAVE_TRAPDOOR_UID" = x"yes"; then
5872 cat >> confdefs.h <<\EOF
5873 #define HAVE_TRAPDOOR_UID 1
5878 echo $ac_n "checking for shared mmap""... $ac_c" 1>&6
5879 echo "configure:5880: checking for shared mmap" >&5
5880 if eval "test \"`echo '$''{'samba_cv_HAVE_SHARED_MMAP'+set}'`\" = set"; then
5881 echo $ac_n "(cached) $ac_c" 1>&6
5884 if test "$cross_compiling" = yes; then
5885 samba_cv_HAVE_SHARED_MMAP=cross
5887 cat > conftest.$ac_ext <<EOF
5888 #line 5889 "configure"
5889 #include "confdefs.h"
5890 #include "${srcdir-.}/tests/shared_mmap.c"
5892 if { (eval echo configure:5893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5894 samba_cv_HAVE_SHARED_MMAP=yes
5896 echo "configure: failed program was:" >&5
5897 cat conftest.$ac_ext >&5
5899 samba_cv_HAVE_SHARED_MMAP=no
5906 echo "$ac_t""$samba_cv_HAVE_SHARED_MMAP" 1>&6
5907 if test x"$samba_cv_HAVE_SHARED_MMAP" = x"yes"; then
5908 cat >> confdefs.h <<\EOF
5909 #define HAVE_SHARED_MMAP 1
5914 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
5915 echo "configure:5916: checking for fcntl locking" >&5
5916 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
5917 echo $ac_n "(cached) $ac_c" 1>&6
5920 if test "$cross_compiling" = yes; then
5921 samba_cv_HAVE_FCNTL_LOCK=cross
5923 cat > conftest.$ac_ext <<EOF
5924 #line 5925 "configure"
5925 #include "confdefs.h"
5926 #include "${srcdir-.}/tests/fcntl_lock.c"
5928 if { (eval echo configure:5929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5930 samba_cv_HAVE_FCNTL_LOCK=yes
5932 echo "configure: failed program was:" >&5
5933 cat conftest.$ac_ext >&5
5935 samba_cv_HAVE_FCNTL_LOCK=no
5942 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
5943 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
5944 cat >> confdefs.h <<\EOF
5945 #define HAVE_FCNTL_LOCK 1
5950 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
5951 echo "configure:5952: checking for 64 bit fcntl locking" >&5
5952 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
5953 echo $ac_n "(cached) $ac_c" 1>&6
5956 if test "$cross_compiling" = yes; then
5957 samba_cv_HAVE_STRUCT_FLOCK64=cross
5959 cat > conftest.$ac_ext <<EOF
5960 #line 5961 "configure"
5961 #include "confdefs.h"
5970 #ifdef HAVE_SYS_FCNTL_H
5971 #include <sys/fcntl.h>
5973 main() { struct flock64 fl64;
5974 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
5981 if { (eval echo configure:5982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5983 samba_cv_HAVE_STRUCT_FLOCK64=yes
5985 echo "configure: failed program was:" >&5
5986 cat conftest.$ac_ext >&5
5988 samba_cv_HAVE_STRUCT_FLOCK64=no
5995 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
5996 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
5997 cat >> confdefs.h <<\EOF
5998 #define HAVE_STRUCT_FLOCK64 1
6003 echo $ac_n "checking for sysv ipc""... $ac_c" 1>&6
6004 echo "configure:6005: checking for sysv ipc" >&5
6005 if eval "test \"`echo '$''{'samba_cv_HAVE_SYSV_IPC'+set}'`\" = set"; then
6006 echo $ac_n "(cached) $ac_c" 1>&6
6009 if test "$cross_compiling" = yes; then
6010 samba_cv_HAVE_SYSV_IPC=cross
6012 cat > conftest.$ac_ext <<EOF
6013 #line 6014 "configure"
6014 #include "confdefs.h"
6015 #include "${srcdir-.}/tests/sysv_ipc.c"
6017 if { (eval echo configure:6018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6019 samba_cv_HAVE_SYSV_IPC=yes
6021 echo "configure: failed program was:" >&5
6022 cat conftest.$ac_ext >&5
6024 samba_cv_HAVE_SYSV_IPC=no
6031 echo "$ac_t""$samba_cv_HAVE_SYSV_IPC" 1>&6
6032 if test x"$samba_cv_HAVE_SYSV_IPC" = x"yes"; then
6033 cat >> confdefs.h <<\EOF
6034 #define HAVE_SYSV_IPC 1
6039 #################################################
6040 # check for the AFS filesystem
6041 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
6042 echo "configure:6043: checking whether to use AFS" >&5
6043 # Check whether --with-afs or --without-afs was given.
6044 if test "${with_afs+set}" = set; then
6048 echo "$ac_t""yes" 1>&6
6049 cat >> confdefs.h <<\EOF
6055 echo "$ac_t""no" 1>&6
6059 echo "$ac_t""no" 1>&6
6065 #################################################
6066 # check for the DFS auth system
6067 echo $ac_n "checking whether to use DFS auth""... $ac_c" 1>&6
6068 echo "configure:6069: checking whether to use DFS auth" >&5
6069 # Check whether --with-dfs or --without-dfs was given.
6070 if test "${with_dfs+set}" = set; then
6074 echo "$ac_t""yes" 1>&6
6075 cat >> confdefs.h <<\EOF
6081 echo "$ac_t""no" 1>&6
6085 echo "$ac_t""no" 1>&6
6090 #################################################
6091 # check for Kerberos IV auth system
6092 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
6093 echo "configure:6094: checking whether to use Kerberos IV" >&5
6094 # Check whether --with-krb4 or --without-krb4 was given.
6095 if test "${with_krb4+set}" = set; then
6096 withval="$with_krb4"
6097 echo "$ac_t""yes" 1>&6
6098 cat >> confdefs.h <<\EOF
6102 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
6103 echo "configure:6104: checking for dn_expand in -lresolv" >&5
6104 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
6105 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6106 echo $ac_n "(cached) $ac_c" 1>&6
6108 ac_save_LIBS="$LIBS"
6109 LIBS="-lresolv $LIBS"
6110 cat > conftest.$ac_ext <<EOF
6111 #line 6112 "configure"
6112 #include "confdefs.h"
6113 /* Override any gcc2 internal prototype to avoid an error. */
6114 /* We use char because int might match the return type of a gcc2
6115 builtin and then its argument prototype would still apply. */
6122 if { (eval echo configure:6123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6124 eval "ac_cv_lib_$ac_lib_var=yes"
6126 echo "configure: failed program was:" >&5
6127 cat conftest.$ac_ext >&5
6129 eval "ac_cv_lib_$ac_lib_var=no"
6132 LIBS="$ac_save_LIBS"
6135 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6136 echo "$ac_t""yes" 1>&6
6137 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6138 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6139 cat >> confdefs.h <<EOF
6140 #define $ac_tr_lib 1
6143 LIBS="-lresolv $LIBS"
6146 echo "$ac_t""no" 1>&6
6149 LIBS="$LIBS -lkrb -ldes"
6150 CFLAGS="$CFLAGS -I$withval/include"
6151 LDFLAGS="$LDFLAGS -L$withval/lib"
6153 echo "$ac_t""no" 1>&6
6158 #################################################
6159 # check for automount support
6160 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
6161 echo "configure:6162: checking whether to use AUTOMOUNT" >&5
6162 # Check whether --with-automount or --without-automount was given.
6163 if test "${with_automount+set}" = set; then
6164 withval="$with_automount"
6167 echo "$ac_t""yes" 1>&6
6168 cat >> confdefs.h <<\EOF
6169 #define WITH_AUTOMOUNT 1
6174 echo "$ac_t""no" 1>&6
6178 echo "$ac_t""no" 1>&6
6183 #################################################
6184 # check for smbmount support
6185 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
6186 echo "configure:6187: checking whether to use SMBMOUNT" >&5
6187 # Check whether --with-smbmount or --without-smbmount was given.
6188 if test "${with_smbmount+set}" = set; then
6189 withval="$with_smbmount"
6192 echo "$ac_t""yes" 1>&6
6193 cat >> confdefs.h <<\EOF
6194 #define WITH_SMBMOUNT 1
6197 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
6200 echo "$ac_t""no" 1>&6
6205 echo "$ac_t""no" 1>&6
6211 #################################################
6212 # check for a LDAP password database
6213 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
6214 echo "configure:6215: checking whether to use LDAP password database" >&5
6215 # Check whether --with-ldap or --without-ldap was given.
6216 if test "${with_ldap+set}" = set; then
6217 withval="$with_ldap"
6220 echo "$ac_t""yes" 1>&6
6221 cat >> confdefs.h <<\EOF
6227 echo "$ac_t""no" 1>&6
6231 echo "$ac_t""no" 1>&6
6236 #################################################
6237 # check for a NISPLUS password database
6238 echo $ac_n "checking whether to use NISPLUS password database""... $ac_c" 1>&6
6239 echo "configure:6240: checking whether to use NISPLUS password database" >&5
6240 # Check whether --with-nisplus or --without-nisplus was given.
6241 if test "${with_nisplus+set}" = set; then
6242 withval="$with_nisplus"
6245 echo "$ac_t""yes" 1>&6
6246 cat >> confdefs.h <<\EOF
6247 #define WITH_NISPLUS 1
6252 echo "$ac_t""no" 1>&6
6256 echo "$ac_t""no" 1>&6
6261 #################################################
6262 # check for a NISPLUS_HOME support
6263 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
6264 echo "configure:6265: checking whether to use NISPLUS_HOME" >&5
6265 # Check whether --with-nisplus-home or --without-nisplus-home was given.
6266 if test "${with_nisplus_home+set}" = set; then
6267 withval="$with_nisplus_home"
6270 echo "$ac_t""yes" 1>&6
6271 cat >> confdefs.h <<\EOF
6272 #define WITH_NISPLUS_HOME 1
6277 echo "$ac_t""no" 1>&6
6281 echo "$ac_t""no" 1>&6
6286 #################################################
6287 # check for the secure socket layer
6288 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
6289 echo "configure:6290: checking whether to use SSL" >&5
6290 # Check whether --with-ssl or --without-ssl was given.
6291 if test "${with_ssl+set}" = set; then
6295 echo "$ac_t""yes" 1>&6
6296 cat >> confdefs.h <<\EOF
6302 echo "$ac_t""no" 1>&6
6306 echo "$ac_t""no" 1>&6
6311 #################################################
6312 # check for experimental mmap support
6313 echo $ac_n "checking whether to use MMAP""... $ac_c" 1>&6
6314 echo "configure:6315: checking whether to use MMAP" >&5
6315 # Check whether --with-mmap or --without-mmap was given.
6316 if test "${with_mmap+set}" = set; then
6317 withval="$with_mmap"
6320 echo "$ac_t""yes" 1>&6
6321 cat >> confdefs.h <<\EOF
6327 echo "$ac_t""no" 1>&6
6331 echo "$ac_t""no" 1>&6
6336 #################################################
6337 # check for syslog logging
6338 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
6339 echo "configure:6340: checking whether to use syslog logging" >&5
6340 # Check whether --with-syslog or --without-syslog was given.
6341 if test "${with_syslog+set}" = set; then
6342 withval="$with_syslog"
6345 echo "$ac_t""yes" 1>&6
6346 cat >> confdefs.h <<\EOF
6347 #define WITH_SYSLOG 1
6352 echo "$ac_t""no" 1>&6
6356 echo "$ac_t""no" 1>&6
6361 #################################################
6362 # check for experimental netatalk resource fork support
6363 echo $ac_n "checking whether to support netatalk""... $ac_c" 1>&6
6364 echo "configure:6365: checking whether to support netatalk" >&5
6365 # Check whether --with-netatalk or --without-netatalk was given.
6366 if test "${with_netatalk+set}" = set; then
6367 withval="$with_netatalk"
6370 echo "$ac_t""yes" 1>&6
6371 cat >> confdefs.h <<\EOF
6372 #define WITH_NETATALK 1
6377 echo "$ac_t""no" 1>&6
6381 echo "$ac_t""no" 1>&6
6386 #################################################
6387 # check for experimental disk-quotas support
6388 QUOTAOBJS=noquotas.o
6390 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
6391 echo "configure:6392: checking whether to support disk-quotas" >&5
6392 # Check whether --with-quotas or --without-quotas was given.
6393 if test "${with_quotas+set}" = set; then
6394 withval="$with_quotas"
6397 echo "$ac_t""yes" 1>&6
6401 echo "$ac_t""no" 1>&6
6405 echo "$ac_t""no" 1>&6
6411 #################################################
6412 # these tests are taken from the GNU fileutils package
6413 echo "checking how to get filesystem space usage" 1>&6
6414 echo "configure:6415: checking how to get filesystem space usage" >&5
6417 # Test for statvfs64.
6418 if test $space = no; then
6420 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
6421 echo "configure:6422: checking statvfs64 function (SVR4)" >&5
6422 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
6423 echo $ac_n "(cached) $ac_c" 1>&6
6425 if test "$cross_compiling" = yes; then
6426 fu_cv_sys_stat_statvfs64=cross
6428 cat > conftest.$ac_ext <<EOF
6429 #line 6430 "configure"
6430 #include "confdefs.h"
6432 #include <sys/types.h>
6433 #include <sys/statvfs.h>
6436 struct statvfs64 fsd;
6437 exit (statfs64 (".", &fsd));
6440 if { (eval echo configure:6441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6442 fu_cv_sys_stat_statvfs64=yes
6444 echo "configure: failed program was:" >&5
6445 cat conftest.$ac_ext >&5
6447 fu_cv_sys_stat_statvfs64=no
6454 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
6455 if test $fu_cv_sys_stat_statvfs64 = yes; then
6457 cat >> confdefs.h <<\EOF
6458 #define STAT_STATVFS64 1
6464 # Perform only the link test since it seems there are no variants of the
6465 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
6466 # because that got a false positive on SCO OSR5. Adding the declaration
6467 # of a `struct statvfs' causes this test to fail (as it should) on such
6468 # systems. That system is reported to work fine with STAT_STATFS4 which
6469 # is what it gets when this test fails.
6470 if test $space = no; then
6472 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
6473 echo "configure:6474: checking statvfs function (SVR4)" >&5
6474 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
6475 echo $ac_n "(cached) $ac_c" 1>&6
6477 cat > conftest.$ac_ext <<EOF
6478 #line 6479 "configure"
6479 #include "confdefs.h"
6480 #include <sys/types.h>
6481 #include <sys/statvfs.h>
6483 struct statvfs fsd; statvfs (0, &fsd);
6486 if { (eval echo configure:6487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6488 fu_cv_sys_stat_statvfs=yes
6490 echo "configure: failed program was:" >&5
6491 cat conftest.$ac_ext >&5
6493 fu_cv_sys_stat_statvfs=no
6498 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
6499 if test $fu_cv_sys_stat_statvfs = yes; then
6501 cat >> confdefs.h <<\EOF
6502 #define STAT_STATVFS 1
6508 if test $space = no; then
6509 # DEC Alpha running OSF/1
6510 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
6511 echo "configure:6512: checking for 3-argument statfs function (DEC OSF/1)" >&5
6512 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
6513 echo $ac_n "(cached) $ac_c" 1>&6
6515 if test "$cross_compiling" = yes; then
6516 fu_cv_sys_stat_statfs3_osf1=no
6518 cat > conftest.$ac_ext <<EOF
6519 #line 6520 "configure"
6520 #include "confdefs.h"
6522 #include <sys/param.h>
6523 #include <sys/types.h>
6524 #include <sys/mount.h>
6529 exit (statfs (".", &fsd, sizeof (struct statfs)));
6532 if { (eval echo configure:6533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6534 fu_cv_sys_stat_statfs3_osf1=yes
6536 echo "configure: failed program was:" >&5
6537 cat conftest.$ac_ext >&5
6539 fu_cv_sys_stat_statfs3_osf1=no
6546 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
6547 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
6549 cat >> confdefs.h <<\EOF
6550 #define STAT_STATFS3_OSF1 1
6556 if test $space = no; then
6558 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
6559 echo "configure:6560: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
6560 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
6561 echo $ac_n "(cached) $ac_c" 1>&6
6563 if test "$cross_compiling" = yes; then
6564 fu_cv_sys_stat_statfs2_bsize=no
6566 cat > conftest.$ac_ext <<EOF
6567 #line 6568 "configure"
6568 #include "confdefs.h"
6570 #ifdef HAVE_SYS_PARAM_H
6571 #include <sys/param.h>
6573 #ifdef HAVE_SYS_MOUNT_H
6574 #include <sys/mount.h>
6576 #ifdef HAVE_SYS_VFS_H
6577 #include <sys/vfs.h>
6583 exit (statfs (".", &fsd));
6586 if { (eval echo configure:6587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6588 fu_cv_sys_stat_statfs2_bsize=yes
6590 echo "configure: failed program was:" >&5
6591 cat conftest.$ac_ext >&5
6593 fu_cv_sys_stat_statfs2_bsize=no
6600 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
6601 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
6603 cat >> confdefs.h <<\EOF
6604 #define STAT_STATFS2_BSIZE 1
6610 if test $space = no; then
6612 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
6613 echo "configure:6614: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
6614 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
6615 echo $ac_n "(cached) $ac_c" 1>&6
6617 if test "$cross_compiling" = yes; then
6618 fu_cv_sys_stat_statfs4=no
6620 cat > conftest.$ac_ext <<EOF
6621 #line 6622 "configure"
6622 #include "confdefs.h"
6623 #include <sys/types.h>
6624 #include <sys/statfs.h>
6628 exit (statfs (".", &fsd, sizeof fsd, 0));
6631 if { (eval echo configure:6632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6633 fu_cv_sys_stat_statfs4=yes
6635 echo "configure: failed program was:" >&5
6636 cat conftest.$ac_ext >&5
6638 fu_cv_sys_stat_statfs4=no
6645 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
6646 if test $fu_cv_sys_stat_statfs4 = yes; then
6648 cat >> confdefs.h <<\EOF
6649 #define STAT_STATFS4 1
6655 if test $space = no; then
6657 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
6658 echo "configure:6659: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
6659 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
6660 echo $ac_n "(cached) $ac_c" 1>&6
6662 if test "$cross_compiling" = yes; then
6663 fu_cv_sys_stat_statfs2_fsize=no
6665 cat > conftest.$ac_ext <<EOF
6666 #line 6667 "configure"
6667 #include "confdefs.h"
6668 #include <sys/types.h>
6669 #ifdef HAVE_SYS_PARAM_H
6670 #include <sys/param.h>
6672 #ifdef HAVE_SYS_MOUNT_H
6673 #include <sys/mount.h>
6679 exit (statfs (".", &fsd));
6682 if { (eval echo configure:6683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6684 fu_cv_sys_stat_statfs2_fsize=yes
6686 echo "configure: failed program was:" >&5
6687 cat conftest.$ac_ext >&5
6689 fu_cv_sys_stat_statfs2_fsize=no
6696 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
6697 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
6699 cat >> confdefs.h <<\EOF
6700 #define STAT_STATFS2_FSIZE 1
6706 if test $space = no; then
6708 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
6709 echo "configure:6710: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
6710 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
6711 echo $ac_n "(cached) $ac_c" 1>&6
6713 if test "$cross_compiling" = yes; then
6714 fu_cv_sys_stat_fs_data=no
6716 cat > conftest.$ac_ext <<EOF
6717 #line 6718 "configure"
6718 #include "confdefs.h"
6719 #include <sys/types.h>
6720 #ifdef HAVE_SYS_PARAM_H
6721 #include <sys/param.h>
6723 #ifdef HAVE_SYS_MOUNT_H
6724 #include <sys/mount.h>
6726 #ifdef HAVE_SYS_FS_TYPES_H
6727 #include <sys/fs_types.h>
6732 /* Ultrix's statfs returns 1 for success,
6733 0 for not mounted, -1 for failure. */
6734 exit (statfs (".", &fsd) != 1);
6737 if { (eval echo configure:6738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6739 fu_cv_sys_stat_fs_data=yes
6741 echo "configure: failed program was:" >&5
6742 cat conftest.$ac_ext >&5
6744 fu_cv_sys_stat_fs_data=no
6751 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
6752 if test $fu_cv_sys_stat_fs_data = yes; then
6754 cat >> confdefs.h <<\EOF
6755 #define STAT_STATFS2_FS_DATA 1
6761 echo "checking configure summary"
6762 if test "$cross_compiling" = yes; then
6765 cat > conftest.$ac_ext <<EOF
6766 #line 6767 "configure"
6767 #include "confdefs.h"
6768 #include "${srcdir-.}/tests/summary.c"
6770 if { (eval echo configure:6771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6772 echo "configure OK";
6774 echo "configure: failed program was:" >&5
6775 cat conftest.$ac_ext >&5
6777 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
6787 cat > confcache <<\EOF
6788 # This file is a shell script that caches the results of configure
6789 # tests run on this system so they can be shared between configure
6790 # scripts and configure runs. It is not useful on other systems.
6791 # If it contains results you don't want to keep, you may remove or edit it.
6793 # By default, configure uses ./config.cache as the cache file,
6794 # creating it if it does not exist already. You can give configure
6795 # the --cache-file=FILE option to use a different cache file; that is
6796 # what configure does when it calls configure scripts in
6797 # subdirectories, so they share the cache.
6798 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6799 # config.status only pays attention to the cache file if you give it the
6800 # --recheck option to rerun configure.
6803 # The following way of writing the cache mishandles newlines in values,
6804 # but we know of no workaround that is simple, portable, and efficient.
6805 # So, don't put newlines in cache variables' values.
6806 # Ultrix sh set writes to stderr and can't be redirected directly,
6807 # and sets the high bit in the cache file unless we assign to the vars.
6809 case `(ac_space=' '; set) 2>&1` in
6811 # `set' does not quote correctly, so add quotes (double-quote substitution
6812 # turns \\\\ into \\, and sed turns \\ into \).
6814 -e "s/'/'\\\\''/g" \
6815 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6818 # `set' quotes correctly as required by POSIX, so do not add quotes.
6819 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6822 if cmp -s $cache_file confcache; then
6825 if test -w $cache_file; then
6826 echo "updating cache $cache_file"
6827 cat confcache > $cache_file
6829 echo "not updating unwritable cache $cache_file"
6834 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6836 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6837 # Let make expand exec_prefix.
6838 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6840 # Any assignment to VPATH causes Sun make to only execute
6841 # the first set of double-colon rules, so remove it if not needed.
6842 # If there is a colon in the path, we need to keep it.
6843 if test "x$srcdir" = x.; then
6844 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6847 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6849 DEFS=-DHAVE_CONFIG_H
6851 # Without the "./", some shells look in PATH for config.status.
6852 : ${CONFIG_STATUS=./config.status}
6854 echo creating $CONFIG_STATUS
6855 rm -f $CONFIG_STATUS
6856 cat > $CONFIG_STATUS <<EOF
6858 # Generated automatically by configure.
6859 # Run this file to recreate the current configuration.
6860 # This directory was configured as follows,
6861 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6863 # $0 $ac_configure_args
6865 # Compiler output produced by configure, useful for debugging
6866 # configure, is in ./config.log if it exists.
6868 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6871 case "\$ac_option" in
6872 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6873 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6874 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6875 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6876 echo "$CONFIG_STATUS generated by autoconf version 2.12"
6878 -help | --help | --hel | --he | --h)
6879 echo "\$ac_cs_usage"; exit 0 ;;
6880 *) echo "\$ac_cs_usage"; exit 1 ;;
6884 ac_given_srcdir=$srcdir
6885 ac_given_INSTALL="$INSTALL"
6887 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6889 cat >> $CONFIG_STATUS <<EOF
6891 # Protect against being on the right side of a sed subst in config.status.
6892 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6893 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6896 s%@CFLAGS@%$CFLAGS%g
6897 s%@CPPFLAGS@%$CPPFLAGS%g
6898 s%@CXXFLAGS@%$CXXFLAGS%g
6900 s%@LDFLAGS@%$LDFLAGS%g
6902 s%@exec_prefix@%$exec_prefix%g
6903 s%@prefix@%$prefix%g
6904 s%@program_transform_name@%$program_transform_name%g
6905 s%@bindir@%$bindir%g
6906 s%@sbindir@%$sbindir%g
6907 s%@libexecdir@%$libexecdir%g
6908 s%@datadir@%$datadir%g
6909 s%@sysconfdir@%$sysconfdir%g
6910 s%@sharedstatedir@%$sharedstatedir%g
6911 s%@localstatedir@%$localstatedir%g
6912 s%@libdir@%$libdir%g
6913 s%@includedir@%$includedir%g
6914 s%@oldincludedir@%$oldincludedir%g
6915 s%@infodir@%$infodir%g
6916 s%@mandir@%$mandir%g
6918 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6919 s%@INSTALL_DATA@%$INSTALL_DATA%g
6921 s%@MPROGS@%$MPROGS%g
6922 s%@LDSHFLAGS@%$LDSHFLAGS%g
6923 s%@HOST_OS@%$HOST_OS%g
6925 s%@WRAP32@%$WRAP32%g
6926 s%@PICFLAG@%$PICFLAG%g
6929 s%@host_alias@%$host_alias%g
6930 s%@host_cpu@%$host_cpu%g
6931 s%@host_vendor@%$host_vendor%g
6932 s%@host_os@%$host_os%g
6933 s%@target@%$target%g
6934 s%@target_alias@%$target_alias%g
6935 s%@target_cpu@%$target_cpu%g
6936 s%@target_vendor@%$target_vendor%g
6937 s%@target_os@%$target_os%g
6939 s%@build_alias@%$build_alias%g
6940 s%@build_cpu@%$build_cpu%g
6941 s%@build_vendor@%$build_vendor%g
6942 s%@build_os@%$build_os%g
6944 s%@AUTOCONF@%$AUTOCONF%g
6945 s%@AUTOHEADER@%$AUTOHEADER%g
6947 s%@LIBOBJS@%$LIBOBJS%g
6948 s%@QUOTAOBJS@%$QUOTAOBJS%g
6949 s%@builddir@%$builddir%g
6954 cat >> $CONFIG_STATUS <<\EOF
6956 # Split the substitutions into bite-sized pieces for seds with
6957 # small command number limits, like on Digital OSF/1 and HP-UX.
6958 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6959 ac_file=1 # Number of current file.
6960 ac_beg=1 # First line for current file.
6961 ac_end=$ac_max_sed_cmds # Line after last line for current file.
6964 while $ac_more_lines; do
6965 if test $ac_beg -gt 1; then
6966 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6968 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6970 if test ! -s conftest.s$ac_file; then
6972 rm -f conftest.s$ac_file
6974 if test -z "$ac_sed_cmds"; then
6975 ac_sed_cmds="sed -f conftest.s$ac_file"
6977 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6979 ac_file=`expr $ac_file + 1`
6981 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6984 if test -z "$ac_sed_cmds"; then
6989 cat >> $CONFIG_STATUS <<EOF
6991 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
6993 cat >> $CONFIG_STATUS <<\EOF
6994 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6995 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6997 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6998 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6999 *) ac_file_in="${ac_file}.in" ;;
7002 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7004 # Remove last slash and all that follows it. Not all systems have dirname.
7005 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7006 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7007 # The file is in a subdirectory.
7008 test ! -d "$ac_dir" && mkdir "$ac_dir"
7009 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7010 # A "../" for each directory in $ac_dir_suffix.
7011 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7013 ac_dir_suffix= ac_dots=
7016 case "$ac_given_srcdir" in
7018 if test -z "$ac_dots"; then top_srcdir=.
7019 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7020 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7022 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7023 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7026 case "$ac_given_INSTALL" in
7027 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7028 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7031 echo creating "$ac_file"
7033 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7035 *Makefile*) ac_comsub="1i\\
7036 # $configure_input" ;;
7040 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7042 s%@configure_input@%$configure_input%g
7043 s%@srcdir@%$srcdir%g
7044 s%@top_srcdir@%$top_srcdir%g
7045 s%@INSTALL@%$INSTALL%g
7046 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7050 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7051 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7053 # ac_d sets the value in "#define NAME VALUE" lines.
7054 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7055 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7058 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7059 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7060 ac_uB='\([ ]\)%\1#\2define\3'
7063 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7064 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7065 ac_eB='$%\1#\2define\3'
7069 if test "${CONFIG_HEADERS+set}" != set; then
7071 cat >> $CONFIG_STATUS <<EOF
7072 CONFIG_HEADERS="include/config.h"
7074 cat >> $CONFIG_STATUS <<\EOF
7076 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7077 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7079 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7080 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7081 *) ac_file_in="${ac_file}.in" ;;
7084 echo creating $ac_file
7086 rm -f conftest.frag conftest.in conftest.out
7087 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7088 cat $ac_file_inputs > conftest.in
7092 # Transform confdefs.h into a sed script conftest.vals that substitutes
7093 # the proper values into config.h.in to produce config.h. And first:
7094 # Protect against being on the right side of a sed subst in config.status.
7095 # Protect against being in an unquoted here document in config.status.
7097 cat > conftest.hdr <<\EOF
7100 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7104 sed -n -f conftest.hdr confdefs.h > conftest.vals
7107 # This sed command replaces #undef with comments. This is necessary, for
7108 # example, in the case of _POSIX_SOURCE, which is predefined and required
7109 # on some systems where configure will not decide to define it.
7110 cat >> conftest.vals <<\EOF
7111 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7114 # Break up conftest.vals because some shells have a limit on
7115 # the size of here documents, and old seds have small limits too.
7120 ac_lines=`grep -c . conftest.vals`
7121 # grep -c gives empty output for an empty file on some AIX systems.
7122 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7123 # Write a limited-size here document to conftest.frag.
7124 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7125 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7127 sed -f conftest.frag conftest.in > conftest.out
7129 mv conftest.out conftest.in
7131 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7133 mv conftest.tail conftest.vals
7137 cat >> $CONFIG_STATUS <<\EOF
7138 rm -f conftest.frag conftest.h
7139 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7140 cat conftest.in >> conftest.h
7142 if cmp -s $ac_file conftest.h 2>/dev/null; then
7143 echo "$ac_file is unchanged"
7146 # Remove last slash and all that follows it. Not all systems have dirname.
7147 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7148 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7149 # The file is in a subdirectory.
7150 test ! -d "$ac_dir" && mkdir "$ac_dir"
7153 mv conftest.h $ac_file
7158 cat >> $CONFIG_STATUS <<EOF
7161 cat >> $CONFIG_STATUS <<\EOF
7165 chmod +x $CONFIG_STATUS
7166 rm -fr confdefs* $ac_clean_files
7167 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1