3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
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:
14 ac_default_prefix=/usr/local/samba
16 --with-fhs Use FHS-compliant paths (default=no)"
18 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
20 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
22 --with-piddir=DIR Where to put pid files ($ac_default_prefix/var/locks)"
24 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
26 --with-configdir=DIR Where to put configuration files (\$libdir)"
28 --with-logfilebase=DIR Where to put log files (\$(VARDIR))"
30 --enable-debug Turn on compiler debugging information (default=no)"
32 --enable-developer Turn on developer warnings and debugging (default=no)"
34 --enable-krb5developer Turn on developer warnings and debugging, except -Wstrict-prototypes (default=no)"
36 --enable-dmalloc Enable heap debugging [default=no]"
38 --enable-cups Turn on CUPS support (default=auto)"
40 --with-readline[=DIR] Look for readline include/libs in DIR (default=auto) "
42 --with-libiconv=BASEDIR Use libiconv in BASEDIR/lib and BASEDIR/include (default=auto) "
44 --with-smbwrapper Include SMB wrapper support (default=no) "
46 --with-afs Include AFS clear-text auth support (default=no) "
48 --with-dce-dfs Include DCE/DFS clear-text auth support (default=no)"
50 --with-krb5=base-dir Locate Kerberos 5 support (default=/usr)"
52 --with-automount Include AUTOMOUNT support (default=no)"
54 --with-smbmount Include SMBMOUNT (Linux only) support (default=no)"
56 --with-pam Include PAM support (default=no)"
58 --with-pam_smbpass Build a PAM module to allow other applications to use our smbpasswd file (default=no)"
60 --with-tdbsam Include experimental TDB SAM support (default=no)"
62 --with-nisplussam Include NISPLUS SAM support (default=no)"
64 --with-nisplus-home Include NISPLUS_HOME support (default=no)"
66 --with-syslog Include experimental SYSLOG support (default=no)"
68 --with-profiling-data Include gathering source code profile information (default=no)"
70 --with-quotas Include experimental disk-quota support (default=no)"
72 --with-utmp Include experimental utmp accounting (default=no)"
74 --with-manpages-langs={en,ja,pl} Choose man pages' language(s). (en)"
76 --with-libsmbclient Build the libsmbclient shared library (default=yes)"
78 --with-spinlocks Use spin locks instead of fcntl locks (default=no) "
80 --with-acl-support Include ACL support (default=no)"
82 --with-winbind Build winbind (default, if supported by OS)"
84 --with-included-popt use bundled popt library, not from system"
86 # Initialize some variables set by options.
87 # The variables have the same names as the options, with
88 # dashes changed to underlines.
90 cache_file=./config.cache
99 program_transform_name=s,x,x,
107 bindir='${exec_prefix}/bin'
108 sbindir='${exec_prefix}/sbin'
109 libexecdir='${exec_prefix}/libexec'
110 datadir='${prefix}/share'
111 sysconfdir='${prefix}/etc'
112 sharedstatedir='${prefix}/com'
113 localstatedir='${prefix}/var'
114 libdir='${exec_prefix}/lib'
115 includedir='${prefix}/include'
116 oldincludedir='/usr/include'
117 infodir='${prefix}/info'
118 mandir='${prefix}/man'
120 # Initialize some other variables.
123 SHELL=${CONFIG_SHELL-/bin/sh}
124 # Maximum number of lines to put in a shell here document.
131 # If the previous option needs an argument, assign it.
132 if test -n "$ac_prev"; then
133 eval "$ac_prev=\$ac_option"
139 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
143 # Accept the important Cygnus configure options, so we can diagnose typos.
147 -bindir | --bindir | --bindi | --bind | --bin | --bi)
149 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
150 bindir="$ac_optarg" ;;
152 -build | --build | --buil | --bui | --bu)
154 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
155 build="$ac_optarg" ;;
157 -cache-file | --cache-file | --cache-fil | --cache-fi \
158 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
159 ac_prev=cache_file ;;
160 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
161 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
162 cache_file="$ac_optarg" ;;
164 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
166 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
168 datadir="$ac_optarg" ;;
170 -disable-* | --disable-*)
171 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
172 # Reject names that are not valid shell variable names.
173 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
174 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
176 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
177 eval "enable_${ac_feature}=no" ;;
179 -enable-* | --enable-*)
180 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
181 # Reject names that are not valid shell variable names.
182 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
183 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
185 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
190 eval "enable_${ac_feature}='$ac_optarg'" ;;
192 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
193 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
194 | --exec | --exe | --ex)
195 ac_prev=exec_prefix ;;
196 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
197 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
198 | --exec=* | --exe=* | --ex=*)
199 exec_prefix="$ac_optarg" ;;
201 -gas | --gas | --ga | --g)
202 # Obsolete; use --with-gas.
205 -help | --help | --hel | --he)
206 # Omit some internal or obsolete options to make the list less imposing.
207 # This message is too long to be a string in the A/UX 3.1 sh.
209 Usage: configure [options] [host]
210 Options: [defaults in brackets after descriptions]
212 --cache-file=FILE cache test results in FILE
213 --help print this message
214 --no-create do not create output files
215 --quiet, --silent do not print \`checking...' messages
216 --version print the version of autoconf that created configure
217 Directory and file names:
218 --prefix=PREFIX install architecture-independent files in PREFIX
220 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
222 --bindir=DIR user executables in DIR [EPREFIX/bin]
223 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
224 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
225 --datadir=DIR read-only architecture-independent data in DIR
227 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
228 --sharedstatedir=DIR modifiable architecture-independent data in DIR
230 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
231 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
232 --includedir=DIR C header files in DIR [PREFIX/include]
233 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
234 --infodir=DIR info documentation in DIR [PREFIX/info]
235 --mandir=DIR man documentation in DIR [PREFIX/man]
236 --srcdir=DIR find the sources in DIR [configure dir or ..]
237 --program-prefix=PREFIX prepend PREFIX to installed program names
238 --program-suffix=SUFFIX append SUFFIX to installed program names
239 --program-transform-name=PROGRAM
240 run sed PROGRAM on installed program names
244 --build=BUILD configure for building on BUILD [BUILD=HOST]
245 --host=HOST configure for HOST [guessed]
246 --target=TARGET configure for TARGET [TARGET=HOST]
247 Features and packages:
248 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
249 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
250 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
251 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
252 --x-includes=DIR X include files are in DIR
253 --x-libraries=DIR X library files are in DIR
255 if test -n "$ac_help"; then
256 echo "--enable and --with options recognized:$ac_help"
260 -host | --host | --hos | --ho)
262 -host=* | --host=* | --hos=* | --ho=*)
265 -includedir | --includedir | --includedi | --included | --include \
266 | --includ | --inclu | --incl | --inc)
267 ac_prev=includedir ;;
268 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
269 | --includ=* | --inclu=* | --incl=* | --inc=*)
270 includedir="$ac_optarg" ;;
272 -infodir | --infodir | --infodi | --infod | --info | --inf)
274 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
275 infodir="$ac_optarg" ;;
277 -libdir | --libdir | --libdi | --libd)
279 -libdir=* | --libdir=* | --libdi=* | --libd=*)
280 libdir="$ac_optarg" ;;
282 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
283 | --libexe | --libex | --libe)
284 ac_prev=libexecdir ;;
285 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
286 | --libexe=* | --libex=* | --libe=*)
287 libexecdir="$ac_optarg" ;;
289 -localstatedir | --localstatedir | --localstatedi | --localstated \
290 | --localstate | --localstat | --localsta | --localst \
291 | --locals | --local | --loca | --loc | --lo)
292 ac_prev=localstatedir ;;
293 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
294 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
295 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
296 localstatedir="$ac_optarg" ;;
298 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
300 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
301 mandir="$ac_optarg" ;;
304 # Obsolete; use --without-fp.
307 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
311 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
312 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
315 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
316 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
317 | --oldin | --oldi | --old | --ol | --o)
318 ac_prev=oldincludedir ;;
319 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
320 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
321 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
322 oldincludedir="$ac_optarg" ;;
324 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
326 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
327 prefix="$ac_optarg" ;;
329 -program-prefix | --program-prefix | --program-prefi | --program-pref \
330 | --program-pre | --program-pr | --program-p)
331 ac_prev=program_prefix ;;
332 -program-prefix=* | --program-prefix=* | --program-prefi=* \
333 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
334 program_prefix="$ac_optarg" ;;
336 -program-suffix | --program-suffix | --program-suffi | --program-suff \
337 | --program-suf | --program-su | --program-s)
338 ac_prev=program_suffix ;;
339 -program-suffix=* | --program-suffix=* | --program-suffi=* \
340 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
341 program_suffix="$ac_optarg" ;;
343 -program-transform-name | --program-transform-name \
344 | --program-transform-nam | --program-transform-na \
345 | --program-transform-n | --program-transform- \
346 | --program-transform | --program-transfor \
347 | --program-transfo | --program-transf \
348 | --program-trans | --program-tran \
349 | --progr-tra | --program-tr | --program-t)
350 ac_prev=program_transform_name ;;
351 -program-transform-name=* | --program-transform-name=* \
352 | --program-transform-nam=* | --program-transform-na=* \
353 | --program-transform-n=* | --program-transform-=* \
354 | --program-transform=* | --program-transfor=* \
355 | --program-transfo=* | --program-transf=* \
356 | --program-trans=* | --program-tran=* \
357 | --progr-tra=* | --program-tr=* | --program-t=*)
358 program_transform_name="$ac_optarg" ;;
360 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
361 | -silent | --silent | --silen | --sile | --sil)
364 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
366 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
368 sbindir="$ac_optarg" ;;
370 -sharedstatedir | --sharedstatedir | --sharedstatedi \
371 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
372 | --sharedst | --shareds | --shared | --share | --shar \
374 ac_prev=sharedstatedir ;;
375 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
376 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
377 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
379 sharedstatedir="$ac_optarg" ;;
381 -site | --site | --sit)
383 -site=* | --site=* | --sit=*)
386 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
388 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
389 srcdir="$ac_optarg" ;;
391 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
392 | --syscon | --sysco | --sysc | --sys | --sy)
393 ac_prev=sysconfdir ;;
394 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
395 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
396 sysconfdir="$ac_optarg" ;;
398 -target | --target | --targe | --targ | --tar | --ta | --t)
400 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
401 target="$ac_optarg" ;;
403 -v | -verbose | --verbose | --verbos | --verbo | --verb)
406 -version | --version | --versio | --versi | --vers)
407 echo "configure generated by autoconf version 2.13"
411 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
412 # Reject names that are not valid shell variable names.
413 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
414 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
416 ac_package=`echo $ac_package| sed 's/-/_/g'`
421 eval "with_${ac_package}='$ac_optarg'" ;;
423 -without-* | --without-*)
424 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
425 # Reject names that are not valid shell variable names.
426 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
427 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
429 ac_package=`echo $ac_package| sed 's/-/_/g'`
430 eval "with_${ac_package}=no" ;;
433 # Obsolete; use --with-x.
436 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
437 | --x-incl | --x-inc | --x-in | --x-i)
438 ac_prev=x_includes ;;
439 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
440 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
441 x_includes="$ac_optarg" ;;
443 -x-libraries | --x-libraries | --x-librarie | --x-librari \
444 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
445 ac_prev=x_libraries ;;
446 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
447 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
448 x_libraries="$ac_optarg" ;;
450 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
454 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
455 echo "configure: warning: $ac_option: invalid host type" 1>&2
457 if test "x$nonopt" != xNONE; then
458 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
466 if test -n "$ac_prev"; then
467 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
470 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
472 # File descriptor usage:
475 # 2 errors and warnings
476 # 3 some systems may open it to /dev/tty
477 # 4 used on the Kubota Titan
478 # 6 checking for... messages and results
479 # 5 compiler messages saved in config.log
480 if test "$silent" = yes; then
488 This file contains any messages produced by compilers while
489 running configure, to aid debugging if configure makes a mistake.
492 # Strip out --no-create and --no-recursion so they do not pile up.
493 # Also quote any args containing shell metacharacters.
498 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
499 | --no-cr | --no-c) ;;
500 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
501 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
502 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
503 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
504 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
509 # Only set these to C if already set. These must not be set unconditionally
510 # because not all systems understand e.g. LANG=C (notably SCO).
511 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
512 # Non-C LC_CTYPE values break the ctype check.
513 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
514 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
515 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
516 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
518 # confdefs.h avoids OS command line length limits that DEFS can exceed.
519 rm -rf conftest* confdefs.h
520 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
523 # A filename unique to this package, relative to the directory that
524 # configure is in, which we can look for to find out if srcdir is correct.
525 ac_unique_file=include/includes.h
527 # Find the source files, if location was not specified.
528 if test -z "$srcdir"; then
529 ac_srcdir_defaulted=yes
530 # Try the directory containing this script, then its parent.
532 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
533 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
535 if test ! -r $srcdir/$ac_unique_file; then
539 ac_srcdir_defaulted=no
541 if test ! -r $srcdir/$ac_unique_file; then
542 if test "$ac_srcdir_defaulted" = yes; then
543 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
545 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
548 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
550 # Prefer explicitly selected file to automatically selected ones.
551 if test -z "$CONFIG_SITE"; then
552 if test "x$prefix" != xNONE; then
553 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
555 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
558 for ac_site_file in $CONFIG_SITE; do
559 if test -r "$ac_site_file"; then
560 echo "loading site script $ac_site_file"
565 if test -r "$cache_file"; then
566 echo "loading cache $cache_file"
569 echo "creating cache $cache_file"
574 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
575 ac_cpp='$CPP $CPPFLAGS'
576 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
577 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
578 cross_compiling=$ac_cv_prog_cc_cross
582 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
583 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
584 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
591 ac_n= ac_c='\c' ac_t=
597 #################################################
598 # Directory handling stuff to support both the
599 # legacy SAMBA directories and FHS compliant
603 # Check whether --with-fhs or --without-fhs was given.
604 if test "${with_fhs+set}" = set; then
606 configdir="${sysconfdir}/samba"
607 lockdir="\${VARDIR}/cache/samba"
608 piddir="\$(VARDIR)/run/samba"
609 logfilebase="\${VARDIR}/log/samba"
610 privatedir="\${CONFIGDIR}/private"
611 swatdir="\${DATADIR}/samba/swat"
613 configdir="\$(LIBDIR)"
614 logfilebase="\$(VARDIR)"
615 lockdir="\${VARDIR}/locks"
616 piddir="\$(VARDIR)/locks"
617 privatedir="\${prefix}/private"
618 swatdir="\${prefix}/swat"
622 #################################################
623 # set private directory location
624 # Check whether --with-privatedir or --without-privatedir was given.
625 if test "${with_privatedir+set}" = set; then
626 withval="$with_privatedir"
630 # Just in case anybody calls it without argument
632 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
635 privatedir="$withval"
641 #################################################
642 # set lock directory location
643 # Check whether --with-lockdir or --without-lockdir was given.
644 if test "${with_lockdir+set}" = set; then
645 withval="$with_lockdir"
649 # Just in case anybody calls it without argument
651 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
660 #################################################
661 # set pid directory location
662 # Check whether --with-piddir or --without-piddir was given.
663 if test "${with_piddir+set}" = set; then
664 withval="$with_piddir"
668 # Just in case anybody calls it without argument
670 echo "configure: warning: --with-piddir called without argument - will use default" 1>&2
679 #################################################
680 # set SWAT directory location
681 # Check whether --with-swatdir or --without-swatdir was given.
682 if test "${with_swatdir+set}" = set; then
683 withval="$with_swatdir"
687 # Just in case anybody does it
689 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
698 #################################################
699 # set configuration directory location
700 # Check whether --with-configdir or --without-configdir was given.
701 if test "${with_configdir+set}" = set; then
702 withval="$with_configdir"
706 # Just in case anybody does it
708 echo "configure: warning: --with-configdir called without argument - will use default" 1>&2
717 #################################################
718 # set log directory location
719 # Check whether --with-logfilebase or --without-logfilebase was given.
720 if test "${with_logfilebase+set}" = set; then
721 withval="$with_logfilebase"
725 # Just in case anybody does it
727 echo "configure: warning: --with-logfilebase called without argument - will use default" 1>&2
730 logfilebase="$withval"
765 # compile with optimization and without debugging by default
766 CFLAGS="-O ${CFLAGS}"
768 # Check whether --enable-debug or --disable-debug was given.
769 if test "${enable_debug+set}" = set; then
770 enableval="$enable_debug"
771 if eval "test x$enable_debug = xyes"; then
772 CFLAGS="${CFLAGS} -g"
777 # Check whether --enable-developer or --disable-developer was given.
778 if test "${enable_developer+set}" = set; then
779 enableval="$enable_developer"
780 if eval "test x$enable_developer = xyes"; then
781 CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
786 # Check whether --enable-krb5developer or --disable-krb5developer was given.
787 if test "${enable_krb5developer+set}" = set; then
788 enableval="$enable_krb5developer"
789 if eval "test x$enable_krb5developer = xyes"; then
790 CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
795 # Check whether --enable-dmalloc or --disable-dmalloc was given.
796 if test "${enable_dmalloc+set}" = set; then
797 enableval="$enable_dmalloc"
802 if test "x$enable_dmalloc" = xyes
804 cat >> confdefs.h <<\EOF
805 #define ENABLE_DMALLOC 1
808 cat >> confdefs.h <<\EOF
809 #define DMALLOC_FUNC_CHECK 1
812 LIBS="$LIBS -ldmalloc"
815 # Extract the first word of "gcc", so it can be a program name with args.
816 set dummy gcc; ac_word=$2
817 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
818 echo "configure:819: checking for $ac_word" >&5
819 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
820 echo $ac_n "(cached) $ac_c" 1>&6
822 if test -n "$CC"; then
823 ac_cv_prog_CC="$CC" # Let the user override the test.
825 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
827 for ac_dir in $ac_dummy; do
828 test -z "$ac_dir" && ac_dir=.
829 if test -f $ac_dir/$ac_word; then
838 if test -n "$CC"; then
839 echo "$ac_t""$CC" 1>&6
841 echo "$ac_t""no" 1>&6
844 if test -z "$CC"; then
845 # Extract the first word of "cc", so it can be a program name with args.
846 set dummy cc; ac_word=$2
847 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
848 echo "configure:849: checking for $ac_word" >&5
849 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
850 echo $ac_n "(cached) $ac_c" 1>&6
852 if test -n "$CC"; then
853 ac_cv_prog_CC="$CC" # Let the user override the test.
855 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
858 for ac_dir in $ac_dummy; do
859 test -z "$ac_dir" && ac_dir=.
860 if test -f $ac_dir/$ac_word; then
861 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
870 if test $ac_prog_rejected = yes; then
871 # We found a bogon in the path, so make sure we never use it.
872 set dummy $ac_cv_prog_CC
874 if test $# -gt 0; then
875 # We chose a different compiler from the bogus one.
876 # However, it has the same basename, so the bogon will be chosen
877 # first if we set CC to just the basename; use the full file name.
879 set dummy "$ac_dir/$ac_word" "$@"
887 if test -n "$CC"; then
888 echo "$ac_t""$CC" 1>&6
890 echo "$ac_t""no" 1>&6
893 if test -z "$CC"; then
896 # Extract the first word of "cl", so it can be a program name with args.
897 set dummy cl; ac_word=$2
898 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
899 echo "configure:900: checking for $ac_word" >&5
900 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
901 echo $ac_n "(cached) $ac_c" 1>&6
903 if test -n "$CC"; then
904 ac_cv_prog_CC="$CC" # Let the user override the test.
906 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
908 for ac_dir in $ac_dummy; do
909 test -z "$ac_dir" && ac_dir=.
910 if test -f $ac_dir/$ac_word; then
919 if test -n "$CC"; then
920 echo "$ac_t""$CC" 1>&6
922 echo "$ac_t""no" 1>&6
927 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
930 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
931 echo "configure:932: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
934 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
935 ac_cpp='$CPP $CPPFLAGS'
936 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
937 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
938 cross_compiling=$ac_cv_prog_cc_cross
940 cat > conftest.$ac_ext << EOF
942 #line 943 "configure"
943 #include "confdefs.h"
947 if { (eval echo configure:948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
948 ac_cv_prog_cc_works=yes
949 # If we can't run a trivial program, we are probably using a cross compiler.
950 if (./conftest; exit) 2>/dev/null; then
951 ac_cv_prog_cc_cross=no
953 ac_cv_prog_cc_cross=yes
956 echo "configure: failed program was:" >&5
957 cat conftest.$ac_ext >&5
958 ac_cv_prog_cc_works=no
962 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
963 ac_cpp='$CPP $CPPFLAGS'
964 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
965 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
966 cross_compiling=$ac_cv_prog_cc_cross
968 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
969 if test $ac_cv_prog_cc_works = no; then
970 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
972 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
973 echo "configure:974: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
974 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
975 cross_compiling=$ac_cv_prog_cc_cross
977 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
978 echo "configure:979: checking whether we are using GNU C" >&5
979 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
980 echo $ac_n "(cached) $ac_c" 1>&6
982 cat > conftest.c <<EOF
987 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:988: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
994 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
996 if test $ac_cv_prog_gcc = yes; then
1002 ac_test_CFLAGS="${CFLAGS+set}"
1003 ac_save_CFLAGS="$CFLAGS"
1005 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1006 echo "configure:1007: checking whether ${CC-cc} accepts -g" >&5
1007 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1008 echo $ac_n "(cached) $ac_c" 1>&6
1010 echo 'void f(){}' > conftest.c
1011 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1020 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1021 if test "$ac_test_CFLAGS" = set; then
1022 CFLAGS="$ac_save_CFLAGS"
1023 elif test $ac_cv_prog_cc_g = yes; then
1024 if test "$GCC" = yes; then
1030 if test "$GCC" = yes; then
1038 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1039 if test -f $ac_dir/install-sh; then
1041 ac_install_sh="$ac_aux_dir/install-sh -c"
1043 elif test -f $ac_dir/install.sh; then
1045 ac_install_sh="$ac_aux_dir/install.sh -c"
1049 if test -z "$ac_aux_dir"; then
1050 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1052 ac_config_guess=$ac_aux_dir/config.guess
1053 ac_config_sub=$ac_aux_dir/config.sub
1054 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1056 # Find a good install program. We prefer a C program (faster),
1057 # so one script is as good as another. But avoid the broken or
1058 # incompatible versions:
1059 # SysV /etc/install, /usr/sbin/install
1060 # SunOS /usr/etc/install
1061 # IRIX /sbin/install
1063 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1064 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1065 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1066 # ./install, which can be erroneously created by make from ./install.sh.
1067 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1068 echo "configure:1069: checking for a BSD compatible install" >&5
1069 if test -z "$INSTALL"; then
1070 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1071 echo $ac_n "(cached) $ac_c" 1>&6
1073 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1074 for ac_dir in $PATH; do
1075 # Account for people who put trailing slashes in PATH elements.
1077 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1079 # OSF1 and SCO ODT 3.0 have their own names for install.
1080 # Don't use installbsd from OSF since it installs stuff as root
1082 for ac_prog in ginstall scoinst install; do
1083 if test -f $ac_dir/$ac_prog; then
1084 if test $ac_prog = install &&
1085 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1086 # AIX install. It has an incompatible calling convention.
1089 ac_cv_path_install="$ac_dir/$ac_prog -c"
1100 if test "${ac_cv_path_install+set}" = set; then
1101 INSTALL="$ac_cv_path_install"
1103 # As a last resort, use the slow shell script. We don't cache a
1104 # path for INSTALL within a source directory, because that will
1105 # break other packages using the cache if that directory is
1106 # removed, or if the path is relative.
1107 INSTALL="$ac_install_sh"
1110 echo "$ac_t""$INSTALL" 1>&6
1112 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1113 # It thinks the first close brace ends the variable substitution.
1114 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1116 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1118 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1120 for ac_prog in gawk mawk nawk awk
1122 # Extract the first word of "$ac_prog", so it can be a program name with args.
1123 set dummy $ac_prog; ac_word=$2
1124 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1125 echo "configure:1126: checking for $ac_word" >&5
1126 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1127 echo $ac_n "(cached) $ac_c" 1>&6
1129 if test -n "$AWK"; then
1130 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1132 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1134 for ac_dir in $ac_dummy; do
1135 test -z "$ac_dir" && ac_dir=.
1136 if test -f $ac_dir/$ac_word; then
1137 ac_cv_prog_AWK="$ac_prog"
1144 AWK="$ac_cv_prog_AWK"
1145 if test -n "$AWK"; then
1146 echo "$ac_t""$AWK" 1>&6
1148 echo "$ac_t""no" 1>&6
1151 test -n "$AWK" && break
1156 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1157 echo "configure:1158: checking if the linker ($LD) is GNU ld" >&5
1158 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1159 echo $ac_n "(cached) $ac_c" 1>&6
1161 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1162 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1163 ac_cv_prog_gnu_ld=yes
1165 ac_cv_prog_gnu_ld=no
1169 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1172 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1173 echo "configure:1174: checking for POSIXized ISC" >&5
1174 if test -d /etc/conf/kconfig.d &&
1175 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1177 echo "$ac_t""yes" 1>&6
1178 ISC=yes # If later tests want to check for ISC.
1179 cat >> confdefs.h <<\EOF
1180 #define _POSIX_SOURCE 1
1183 if test "$GCC" = yes; then
1189 echo "$ac_t""no" 1>&6
1194 if test "x$CC" != xcc; then
1195 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1196 echo "configure:1197: checking whether $CC and cc understand -c and -o together" >&5
1198 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1199 echo "configure:1200: checking whether cc understands -c and -o together" >&5
1201 set dummy $CC; ac_cc="`echo $2 |
1202 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1203 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1204 echo $ac_n "(cached) $ac_c" 1>&6
1206 echo 'foo(){}' > conftest.c
1207 # Make sure it works both with $CC and with simple cc.
1208 # We do the test twice because some compilers refuse to overwrite an
1209 # existing .o file with -o, though they will create one.
1210 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1211 if { (eval echo configure:1212: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1212 test -f conftest.o && { (eval echo configure:1213: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1214 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1215 if test "x$CC" != xcc; then
1216 # Test first that cc exists at all.
1217 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1218: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1218 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1219 if { (eval echo configure:1220: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1220 test -f conftest.o && { (eval echo configure:1221: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1225 # cc exists but doesn't like -o.
1226 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1231 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1236 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1237 echo "$ac_t""yes" 1>&6
1239 echo "$ac_t""no" 1>&6
1240 cat >> confdefs.h <<\EOF
1241 #define NO_MINUS_C_MINUS_O 1
1246 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1253 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1254 echo "configure:1255: checking that the C compiler understands volatile" >&5
1255 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1256 echo $ac_n "(cached) $ac_c" 1>&6
1259 cat > conftest.$ac_ext <<EOF
1260 #line 1261 "configure"
1261 #include "confdefs.h"
1262 #include <sys/types.h>
1267 if { (eval echo configure:1268: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1269 samba_cv_volatile=yes
1271 echo "configure: failed program was:" >&5
1272 cat conftest.$ac_ext >&5
1274 samba_cv_volatile=no
1279 echo "$ac_t""$samba_cv_volatile" 1>&6
1280 if test x"$samba_cv_volatile" = x"yes"; then
1281 cat >> confdefs.h <<\EOF
1282 #define HAVE_VOLATILE 1
1289 # Do some error checking and defaulting for the host and target type.
1291 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1294 # 1. You are not allowed to specify --host, --target, and nonopt at the
1296 # 2. Host defaults to nonopt.
1297 # 3. If nonopt is not specified, then host defaults to the current host,
1298 # as determined by config.guess.
1299 # 4. Target and build default to nonopt.
1300 # 5. If nonopt is not specified, then target and build default to host.
1302 # The aliases save the names the user supplied, while $host etc.
1303 # will get canonicalized.
1304 case $host---$target---$nonopt in
1305 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1306 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1310 # Make sure we can run config.sub.
1311 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1312 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1315 echo $ac_n "checking host system type""... $ac_c" 1>&6
1316 echo "configure:1317: checking host system type" >&5
1319 case "$host_alias" in
1323 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1324 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1326 *) host_alias=$nonopt ;;
1330 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1331 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1332 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1333 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1334 echo "$ac_t""$host" 1>&6
1336 echo $ac_n "checking target system type""... $ac_c" 1>&6
1337 echo "configure:1338: checking target system type" >&5
1339 target_alias=$target
1340 case "$target_alias" in
1343 NONE) target_alias=$host_alias ;;
1344 *) target_alias=$nonopt ;;
1348 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1349 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1350 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1351 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1352 echo "$ac_t""$target" 1>&6
1354 echo $ac_n "checking build system type""... $ac_c" 1>&6
1355 echo "configure:1356: checking build system type" >&5
1358 case "$build_alias" in
1361 NONE) build_alias=$host_alias ;;
1362 *) build_alias=$nonopt ;;
1366 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1367 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1368 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1369 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1370 echo "$ac_t""$build" 1>&6
1372 test "$host_alias" != "$target_alias" &&
1373 test "$program_prefix$program_suffix$program_transform_name" = \
1375 program_prefix=${target_alias}-
1379 *irix6*) cat >> confdefs.h <<\EOF
1380 #include <standards.h>
1388 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1389 echo "configure:1390: checking config.cache system type" >&5
1390 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1391 test x"$ac_cv_host_system_type" != x"$host"; } ||
1392 { test x"${ac_cv_build_system_type+set}" = x"set" &&
1393 test x"$ac_cv_build_system_type" != x"$build"; } ||
1394 { test x"${ac_cv_target_system_type+set}" = x"set" &&
1395 test x"$ac_cv_target_system_type" != x"$target"; }; then
1396 echo "$ac_t""different" 1>&6
1397 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
1399 echo "$ac_t""same" 1>&6
1401 ac_cv_host_system_type="$host"
1402 ac_cv_build_system_type="$build"
1403 ac_cv_target_system_type="$target"
1409 # Config CPPFLAG settings for strange OS's that must be set
1410 # before other tests.
1413 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1416 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1417 echo "configure:1418: checking whether ${CC-cc} accepts -Ae" >&5
1418 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1419 echo $ac_n "(cached) $ac_c" 1>&6
1421 echo 'void f(){}' > conftest.c
1422 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1423 ac_cv_prog_cc_Ae=yes
1431 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1432 # mmap on HPUX is completely broken...
1433 cat >> confdefs.h <<\EOF
1434 #define MMAP_BLACKLIST 1
1437 if test $ac_cv_prog_cc_Ae = yes; then
1438 CPPFLAGS="$CPPFLAGS -Ae"
1441 # Defines needed for HPUX support.
1442 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1443 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1447 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1448 cat >> confdefs.h <<\EOF
1449 #define USE_BOTH_CRYPT_CALLS 1
1452 cat >> confdefs.h <<\EOF
1453 #define _HPUX_SOURCE 1
1456 cat >> confdefs.h <<\EOF
1457 #define _POSIX_SOURCE 1
1460 cat >> confdefs.h <<\EOF
1461 #define _ALIGNMENT_REQUIRED 1
1464 cat >> confdefs.h <<\EOF
1465 #define _MAX_ALIGNMENT 4
1470 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1471 cat >> confdefs.h <<\EOF
1472 #define USE_BOTH_CRYPT_CALLS 1
1475 cat >> confdefs.h <<\EOF
1476 #define _HPUX_SOURCE 1
1479 cat >> confdefs.h <<\EOF
1480 #define _POSIX_SOURCE 1
1483 cat >> confdefs.h <<\EOF
1484 #define _LARGEFILE64_SOURCE 1
1487 cat >> confdefs.h <<\EOF
1488 #define _ALIGNMENT_REQUIRED 1
1491 cat >> confdefs.h <<\EOF
1492 #define _MAX_ALIGNMENT 4
1501 # CRAY Unicos has broken const handling
1503 echo "$ac_t""disabling const" 1>&6
1504 CPPFLAGS="$CPPFLAGS -Dconst="
1508 # AIX4.x doesn't even admit to having large
1509 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1512 echo "$ac_t""enabling large file support" 1>&6
1513 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1514 cat >> confdefs.h <<\EOF
1515 #define _LARGE_FILES 1
1520 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1521 # to the existance of large files..
1522 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1523 # recommendations on large file support, however it makes the
1524 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1525 # recommendation makes the compile fail on gcc2.7. JRA.
1529 5.0*|5.1*|5.2*|5.3*|5.5*)
1530 echo "$ac_t""no large file support" 1>&6
1533 echo "$ac_t""enabling large file support" 1>&6
1534 if test "$ac_cv_prog_gcc" = yes; then
1535 ${CC-cc} -v >conftest.c 2>&1
1536 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
1538 case "$ac_cv_gcc_compiler_version_number" in
1539 *"gcc version 2.6"*|*"gcc version 2.7"*)
1540 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1541 cat >> confdefs.h <<\EOF
1542 #define _LARGEFILE64_SOURCE 1
1547 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1548 cat >> confdefs.h <<\EOF
1549 #define _LARGEFILE64_SOURCE 1
1552 cat >> confdefs.h <<\EOF
1553 #define _FILE_OFFSET_BITS 64
1559 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1560 cat >> confdefs.h <<\EOF
1561 #define _LARGEFILE64_SOURCE 1
1564 cat >> confdefs.h <<\EOF
1565 #define _FILE_OFFSET_BITS 64
1573 # Tests needed for SINIX large file support.
1576 if test $host = mips-sni-sysv4 ; then
1577 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1578 echo "configure:1579: checking for LFS support" >&5
1579 old_CPPFLAGS="$CPPFLAGS"
1580 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1581 if test "$cross_compiling" = yes; then
1582 SINIX_LFS_SUPPORT=cross
1584 cat > conftest.$ac_ext <<EOF
1585 #line 1586 "configure"
1586 #include "confdefs.h"
1590 #if _LFS64_LARGEFILE == 1
1597 if { (eval echo configure:1598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1599 SINIX_LFS_SUPPORT=yes
1601 echo "configure: failed program was:" >&5
1602 cat conftest.$ac_ext >&5
1604 SINIX_LFS_SUPPORT=no
1609 CPPFLAGS="$old_CPPFLAGS"
1610 if test x$SINIX_LFS_SUPPORT = xyes ; then
1611 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1612 cat >> confdefs.h <<\EOF
1613 #define _LARGEFILE64_SOURCE 1
1616 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
1617 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
1618 LIBS="`getconf LFS64_LIBS` $LIBS"
1620 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1624 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1627 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1628 echo "configure:1629: checking for LFS support" >&5
1629 old_CPPFLAGS="$CPPFLAGS"
1630 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1631 if test "$cross_compiling" = yes; then
1632 LINUX_LFS_SUPPORT=cross
1634 cat > conftest.$ac_ext <<EOF
1635 #line 1636 "configure"
1636 #include "confdefs.h"
1639 #include <sys/utsname.h>
1641 #if _LFS64_LARGEFILE == 1
1646 /* Ensure this is glibc 2.2 or higher */
1647 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1648 int libc_major = __GLIBC__;
1649 int libc_minor = __GLIBC_MINOR__;
1657 /* Ensure this is kernel 2.4 or higher */
1660 release = uts.release;
1661 major = atoi(strsep(&release, "."));
1662 minor = atoi(strsep(&release, "."));
1664 if (major > 2 || (major == 2 && minor > 3))
1673 if { (eval echo configure:1674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1675 LINUX_LFS_SUPPORT=yes
1677 echo "configure: failed program was:" >&5
1678 cat conftest.$ac_ext >&5
1680 LINUX_LFS_SUPPORT=no
1685 CPPFLAGS="$old_CPPFLAGS"
1686 if test x$LINUX_LFS_SUPPORT = xyes ; then
1687 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1688 cat >> confdefs.h <<\EOF
1689 #define _LARGEFILE64_SOURCE 1
1692 cat >> confdefs.h <<\EOF
1693 #define _FILE_OFFSET_BITS 64
1696 cat >> confdefs.h <<\EOF
1697 #define _GNU_SOURCE 1
1701 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1705 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1706 echo "configure:1707: checking for LFS support" >&5
1707 old_CPPFLAGS="$CPPFLAGS"
1708 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1709 if test "$cross_compiling" = yes; then
1710 GLIBC_LFS_SUPPORT=cross
1712 cat > conftest.$ac_ext <<EOF
1713 #line 1714 "configure"
1714 #include "confdefs.h"
1718 #if _LFS64_LARGEFILE == 1
1725 if { (eval echo configure:1726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1727 GLIBC_LFS_SUPPORT=yes
1729 echo "configure: failed program was:" >&5
1730 cat conftest.$ac_ext >&5
1732 GLIBC_LFS_SUPPORT=no
1737 CPPFLAGS="$old_CPPFLAGS"
1738 if test x$GLIBC_LFS_SUPPORT = xyes ; then
1739 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1740 cat >> confdefs.h <<\EOF
1741 #define _LARGEFILE64_SOURCE 1
1744 cat >> confdefs.h <<\EOF
1745 #define _GNU_SOURCE 1
1749 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1754 echo $ac_n "checking for inline""... $ac_c" 1>&6
1755 echo "configure:1756: checking for inline" >&5
1756 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1757 echo $ac_n "(cached) $ac_c" 1>&6
1760 for ac_kw in inline __inline__ __inline; do
1761 cat > conftest.$ac_ext <<EOF
1762 #line 1763 "configure"
1763 #include "confdefs.h"
1769 if { (eval echo configure:1770: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1771 ac_cv_c_inline=$ac_kw; break
1773 echo "configure: failed program was:" >&5
1774 cat conftest.$ac_ext >&5
1781 echo "$ac_t""$ac_cv_c_inline" 1>&6
1782 case "$ac_cv_c_inline" in
1784 no) cat >> confdefs.h <<\EOF
1788 *) cat >> confdefs.h <<EOF
1789 #define inline $ac_cv_c_inline
1794 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1795 echo "configure:1796: checking how to run the C preprocessor" >&5
1796 # On Suns, sometimes $CPP names a directory.
1797 if test -n "$CPP" && test -d "$CPP"; then
1800 if test -z "$CPP"; then
1801 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1802 echo $ac_n "(cached) $ac_c" 1>&6
1804 # This must be in double quotes, not single quotes, because CPP may get
1805 # substituted into the Makefile and "${CC-cc}" will confuse make.
1807 # On the NeXT, cc -E runs the code through the compiler's parser,
1808 # not just through cpp.
1809 cat > conftest.$ac_ext <<EOF
1810 #line 1811 "configure"
1811 #include "confdefs.h"
1815 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1816 { (eval echo configure:1817: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1817 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1818 if test -z "$ac_err"; then
1822 echo "configure: failed program was:" >&5
1823 cat conftest.$ac_ext >&5
1825 CPP="${CC-cc} -E -traditional-cpp"
1826 cat > conftest.$ac_ext <<EOF
1827 #line 1828 "configure"
1828 #include "confdefs.h"
1832 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1833 { (eval echo configure:1834: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1834 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1835 if test -z "$ac_err"; then
1839 echo "configure: failed program was:" >&5
1840 cat conftest.$ac_ext >&5
1842 CPP="${CC-cc} -nologo -E"
1843 cat > conftest.$ac_ext <<EOF
1844 #line 1845 "configure"
1845 #include "confdefs.h"
1849 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1850 { (eval echo configure:1851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1851 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1852 if test -z "$ac_err"; then
1856 echo "configure: failed program was:" >&5
1857 cat conftest.$ac_ext >&5
1866 ac_cv_prog_CPP="$CPP"
1868 CPP="$ac_cv_prog_CPP"
1870 ac_cv_prog_CPP="$CPP"
1872 echo "$ac_t""$CPP" 1>&6
1874 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1875 echo "configure:1876: checking for ANSI C header files" >&5
1876 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1877 echo $ac_n "(cached) $ac_c" 1>&6
1879 cat > conftest.$ac_ext <<EOF
1880 #line 1881 "configure"
1881 #include "confdefs.h"
1887 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1888 { (eval echo configure:1889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1889 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1890 if test -z "$ac_err"; then
1892 ac_cv_header_stdc=yes
1895 echo "configure: failed program was:" >&5
1896 cat conftest.$ac_ext >&5
1898 ac_cv_header_stdc=no
1902 if test $ac_cv_header_stdc = yes; then
1903 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1904 cat > conftest.$ac_ext <<EOF
1905 #line 1906 "configure"
1906 #include "confdefs.h"
1909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1910 egrep "memchr" >/dev/null 2>&1; then
1914 ac_cv_header_stdc=no
1920 if test $ac_cv_header_stdc = yes; then
1921 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1922 cat > conftest.$ac_ext <<EOF
1923 #line 1924 "configure"
1924 #include "confdefs.h"
1927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1928 egrep "free" >/dev/null 2>&1; then
1932 ac_cv_header_stdc=no
1938 if test $ac_cv_header_stdc = yes; then
1939 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1940 if test "$cross_compiling" = yes; then
1943 cat > conftest.$ac_ext <<EOF
1944 #line 1945 "configure"
1945 #include "confdefs.h"
1947 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1948 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1949 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1950 int main () { int i; for (i = 0; i < 256; i++)
1951 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1955 if { (eval echo configure:1956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1959 echo "configure: failed program was:" >&5
1960 cat conftest.$ac_ext >&5
1962 ac_cv_header_stdc=no
1970 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1971 if test $ac_cv_header_stdc = yes; then
1972 cat >> confdefs.h <<\EOF
1973 #define STDC_HEADERS 1
1979 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1981 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1982 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1983 echo "configure:1984: checking for $ac_hdr that defines DIR" >&5
1984 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1985 echo $ac_n "(cached) $ac_c" 1>&6
1987 cat > conftest.$ac_ext <<EOF
1988 #line 1989 "configure"
1989 #include "confdefs.h"
1990 #include <sys/types.h>
1996 if { (eval echo configure:1997: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1998 eval "ac_cv_header_dirent_$ac_safe=yes"
2000 echo "configure: failed program was:" >&5
2001 cat conftest.$ac_ext >&5
2003 eval "ac_cv_header_dirent_$ac_safe=no"
2007 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2008 echo "$ac_t""yes" 1>&6
2009 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2010 cat >> confdefs.h <<EOF
2011 #define $ac_tr_hdr 1
2013 ac_header_dirent=$ac_hdr; break
2015 echo "$ac_t""no" 1>&6
2018 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2019 if test $ac_header_dirent = dirent.h; then
2020 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2021 echo "configure:2022: checking for opendir in -ldir" >&5
2022 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2023 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2024 echo $ac_n "(cached) $ac_c" 1>&6
2026 ac_save_LIBS="$LIBS"
2028 cat > conftest.$ac_ext <<EOF
2029 #line 2030 "configure"
2030 #include "confdefs.h"
2031 /* Override any gcc2 internal prototype to avoid an error. */
2032 /* We use char because int might match the return type of a gcc2
2033 builtin and then its argument prototype would still apply. */
2040 if { (eval echo configure:2041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2042 eval "ac_cv_lib_$ac_lib_var=yes"
2044 echo "configure: failed program was:" >&5
2045 cat conftest.$ac_ext >&5
2047 eval "ac_cv_lib_$ac_lib_var=no"
2050 LIBS="$ac_save_LIBS"
2053 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2054 echo "$ac_t""yes" 1>&6
2057 echo "$ac_t""no" 1>&6
2061 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2062 echo "configure:2063: checking for opendir in -lx" >&5
2063 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2064 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2065 echo $ac_n "(cached) $ac_c" 1>&6
2067 ac_save_LIBS="$LIBS"
2069 cat > conftest.$ac_ext <<EOF
2070 #line 2071 "configure"
2071 #include "confdefs.h"
2072 /* Override any gcc2 internal prototype to avoid an error. */
2073 /* We use char because int might match the return type of a gcc2
2074 builtin and then its argument prototype would still apply. */
2081 if { (eval echo configure:2082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2083 eval "ac_cv_lib_$ac_lib_var=yes"
2085 echo "configure: failed program was:" >&5
2086 cat conftest.$ac_ext >&5
2088 eval "ac_cv_lib_$ac_lib_var=no"
2091 LIBS="$ac_save_LIBS"
2094 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2095 echo "$ac_t""yes" 1>&6
2098 echo "$ac_t""no" 1>&6
2103 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2104 echo "configure:2105: checking whether time.h and sys/time.h may both be included" >&5
2105 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2106 echo $ac_n "(cached) $ac_c" 1>&6
2108 cat > conftest.$ac_ext <<EOF
2109 #line 2110 "configure"
2110 #include "confdefs.h"
2111 #include <sys/types.h>
2112 #include <sys/time.h>
2118 if { (eval echo configure:2119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2120 ac_cv_header_time=yes
2122 echo "configure: failed program was:" >&5
2123 cat conftest.$ac_ext >&5
2125 ac_cv_header_time=no
2130 echo "$ac_t""$ac_cv_header_time" 1>&6
2131 if test $ac_cv_header_time = yes; then
2132 cat >> confdefs.h <<\EOF
2133 #define TIME_WITH_SYS_TIME 1
2138 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2139 echo "configure:2140: checking for sys/wait.h that is POSIX.1 compatible" >&5
2140 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2141 echo $ac_n "(cached) $ac_c" 1>&6
2143 cat > conftest.$ac_ext <<EOF
2144 #line 2145 "configure"
2145 #include "confdefs.h"
2146 #include <sys/types.h>
2147 #include <sys/wait.h>
2149 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2152 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2157 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2160 if { (eval echo configure:2161: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2162 ac_cv_header_sys_wait_h=yes
2164 echo "configure: failed program was:" >&5
2165 cat conftest.$ac_ext >&5
2167 ac_cv_header_sys_wait_h=no
2172 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2173 if test $ac_cv_header_sys_wait_h = yes; then
2174 cat >> confdefs.h <<\EOF
2175 #define HAVE_SYS_WAIT_H 1
2180 for ac_hdr in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
2182 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2183 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2184 echo "configure:2185: checking for $ac_hdr" >&5
2185 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2186 echo $ac_n "(cached) $ac_c" 1>&6
2188 cat > conftest.$ac_ext <<EOF
2189 #line 2190 "configure"
2190 #include "confdefs.h"
2193 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2194 { (eval echo configure:2195: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2195 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2196 if test -z "$ac_err"; then
2198 eval "ac_cv_header_$ac_safe=yes"
2201 echo "configure: failed program was:" >&5
2202 cat conftest.$ac_ext >&5
2204 eval "ac_cv_header_$ac_safe=no"
2208 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2209 echo "$ac_t""yes" 1>&6
2210 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2211 cat >> confdefs.h <<EOF
2212 #define $ac_tr_hdr 1
2216 echo "$ac_t""no" 1>&6
2220 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
2222 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2223 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2224 echo "configure:2225: checking for $ac_hdr" >&5
2225 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2226 echo $ac_n "(cached) $ac_c" 1>&6
2228 cat > conftest.$ac_ext <<EOF
2229 #line 2230 "configure"
2230 #include "confdefs.h"
2233 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2234 { (eval echo configure:2235: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2235 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2236 if test -z "$ac_err"; then
2238 eval "ac_cv_header_$ac_safe=yes"
2241 echo "configure: failed program was:" >&5
2242 cat conftest.$ac_ext >&5
2244 eval "ac_cv_header_$ac_safe=no"
2248 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2249 echo "$ac_t""yes" 1>&6
2250 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2251 cat >> confdefs.h <<EOF
2252 #define $ac_tr_hdr 1
2256 echo "$ac_t""no" 1>&6
2260 for ac_hdr in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
2262 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2263 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2264 echo "configure:2265: checking for $ac_hdr" >&5
2265 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2266 echo $ac_n "(cached) $ac_c" 1>&6
2268 cat > conftest.$ac_ext <<EOF
2269 #line 2270 "configure"
2270 #include "confdefs.h"
2273 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2274 { (eval echo configure:2275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2275 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2276 if test -z "$ac_err"; then
2278 eval "ac_cv_header_$ac_safe=yes"
2281 echo "configure: failed program was:" >&5
2282 cat conftest.$ac_ext >&5
2284 eval "ac_cv_header_$ac_safe=no"
2288 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2289 echo "$ac_t""yes" 1>&6
2290 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2291 cat >> confdefs.h <<EOF
2292 #define $ac_tr_hdr 1
2296 echo "$ac_t""no" 1>&6
2300 for ac_hdr in sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h
2302 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2303 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2304 echo "configure:2305: checking for $ac_hdr" >&5
2305 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2306 echo $ac_n "(cached) $ac_c" 1>&6
2308 cat > conftest.$ac_ext <<EOF
2309 #line 2310 "configure"
2310 #include "confdefs.h"
2313 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2314 { (eval echo configure:2315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2315 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2316 if test -z "$ac_err"; then
2318 eval "ac_cv_header_$ac_safe=yes"
2321 echo "configure: failed program was:" >&5
2322 cat conftest.$ac_ext >&5
2324 eval "ac_cv_header_$ac_safe=no"
2328 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2329 echo "$ac_t""yes" 1>&6
2330 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2331 cat >> confdefs.h <<EOF
2332 #define $ac_tr_hdr 1
2336 echo "$ac_t""no" 1>&6
2340 for ac_hdr in sys/mman.h sys/filio.h sys/priv.h sys/shm.h string.h strings.h stdlib.h sys/socket.h
2342 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2343 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2344 echo "configure:2345: checking for $ac_hdr" >&5
2345 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2346 echo $ac_n "(cached) $ac_c" 1>&6
2348 cat > conftest.$ac_ext <<EOF
2349 #line 2350 "configure"
2350 #include "confdefs.h"
2353 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2354 { (eval echo configure:2355: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2355 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2356 if test -z "$ac_err"; then
2358 eval "ac_cv_header_$ac_safe=yes"
2361 echo "configure: failed program was:" >&5
2362 cat conftest.$ac_ext >&5
2364 eval "ac_cv_header_$ac_safe=no"
2368 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2369 echo "$ac_t""yes" 1>&6
2370 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2371 cat >> confdefs.h <<EOF
2372 #define $ac_tr_hdr 1
2376 echo "$ac_t""no" 1>&6
2380 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
2382 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2383 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2384 echo "configure:2385: checking for $ac_hdr" >&5
2385 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2386 echo $ac_n "(cached) $ac_c" 1>&6
2388 cat > conftest.$ac_ext <<EOF
2389 #line 2390 "configure"
2390 #include "confdefs.h"
2393 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2394 { (eval echo configure:2395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2395 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2396 if test -z "$ac_err"; then
2398 eval "ac_cv_header_$ac_safe=yes"
2401 echo "configure: failed program was:" >&5
2402 cat conftest.$ac_ext >&5
2404 eval "ac_cv_header_$ac_safe=no"
2408 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2409 echo "$ac_t""yes" 1>&6
2410 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2411 cat >> confdefs.h <<EOF
2412 #define $ac_tr_hdr 1
2416 echo "$ac_t""no" 1>&6
2420 for ac_hdr in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
2422 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2423 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2424 echo "configure:2425: checking for $ac_hdr" >&5
2425 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2426 echo $ac_n "(cached) $ac_c" 1>&6
2428 cat > conftest.$ac_ext <<EOF
2429 #line 2430 "configure"
2430 #include "confdefs.h"
2433 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2434 { (eval echo configure:2435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2435 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2436 if test -z "$ac_err"; then
2438 eval "ac_cv_header_$ac_safe=yes"
2441 echo "configure: failed program was:" >&5
2442 cat conftest.$ac_ext >&5
2444 eval "ac_cv_header_$ac_safe=no"
2448 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2449 echo "$ac_t""yes" 1>&6
2450 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2451 cat >> confdefs.h <<EOF
2452 #define $ac_tr_hdr 1
2456 echo "$ac_t""no" 1>&6
2460 for ac_hdr in security/pam_modules.h security/_pam_macros.h ldap.h lber.h dlfcn.h
2462 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2463 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2464 echo "configure:2465: checking for $ac_hdr" >&5
2465 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2466 echo $ac_n "(cached) $ac_c" 1>&6
2468 cat > conftest.$ac_ext <<EOF
2469 #line 2470 "configure"
2470 #include "confdefs.h"
2473 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2474 { (eval echo configure:2475: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2475 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2476 if test -z "$ac_err"; then
2478 eval "ac_cv_header_$ac_safe=yes"
2481 echo "configure: failed program was:" >&5
2482 cat conftest.$ac_ext >&5
2484 eval "ac_cv_header_$ac_safe=no"
2488 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2489 echo "$ac_t""yes" 1>&6
2490 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2491 cat >> confdefs.h <<EOF
2492 #define $ac_tr_hdr 1
2496 echo "$ac_t""no" 1>&6
2502 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2503 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2507 cat > conftest.$ac_ext <<EOF
2508 #line 2509 "configure"
2509 #include "confdefs.h"
2515 if { (eval echo configure:2516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2517 ac_cv_header_shadow_h=yes
2519 echo "configure: failed program was:" >&5
2520 cat conftest.$ac_ext >&5
2522 ac_cv_header_shadow_h=no
2525 if test x"$ac_cv_header_shadow_h" = x"yes"; then
2526 cat >> confdefs.h <<\EOF
2527 #define HAVE_SHADOW_H 1
2533 for ac_hdr in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
2535 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2536 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2537 echo "configure:2538: checking for $ac_hdr" >&5
2538 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2539 echo $ac_n "(cached) $ac_c" 1>&6
2541 cat > conftest.$ac_ext <<EOF
2542 #line 2543 "configure"
2543 #include "confdefs.h"
2546 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2547 { (eval echo configure:2548: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2548 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2549 if test -z "$ac_err"; then
2551 eval "ac_cv_header_$ac_safe=yes"
2554 echo "configure: failed program was:" >&5
2555 cat conftest.$ac_ext >&5
2557 eval "ac_cv_header_$ac_safe=no"
2561 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2562 echo "$ac_t""yes" 1>&6
2563 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2564 cat >> confdefs.h <<EOF
2565 #define $ac_tr_hdr 1
2569 echo "$ac_t""no" 1>&6
2573 for ac_hdr in nss.h nss_common.h ns_api.h sys/security.h security/pam_appl.h security/pam_modules.h
2575 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2576 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2577 echo "configure:2578: checking for $ac_hdr" >&5
2578 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2579 echo $ac_n "(cached) $ac_c" 1>&6
2581 cat > conftest.$ac_ext <<EOF
2582 #line 2583 "configure"
2583 #include "confdefs.h"
2586 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2587 { (eval echo configure:2588: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2588 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2589 if test -z "$ac_err"; then
2591 eval "ac_cv_header_$ac_safe=yes"
2594 echo "configure: failed program was:" >&5
2595 cat conftest.$ac_ext >&5
2597 eval "ac_cv_header_$ac_safe=no"
2601 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2602 echo "$ac_t""yes" 1>&6
2603 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2604 cat >> confdefs.h <<EOF
2605 #define $ac_tr_hdr 1
2609 echo "$ac_t""no" 1>&6
2613 for ac_hdr in stropts.h poll.h
2615 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2616 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2617 echo "configure:2618: checking for $ac_hdr" >&5
2618 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2619 echo $ac_n "(cached) $ac_c" 1>&6
2621 cat > conftest.$ac_ext <<EOF
2622 #line 2623 "configure"
2623 #include "confdefs.h"
2626 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2627 { (eval echo configure:2628: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2628 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2629 if test -z "$ac_err"; then
2631 eval "ac_cv_header_$ac_safe=yes"
2634 echo "configure: failed program was:" >&5
2635 cat conftest.$ac_ext >&5
2637 eval "ac_cv_header_$ac_safe=no"
2641 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2642 echo "$ac_t""yes" 1>&6
2643 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2644 cat >> confdefs.h <<EOF
2645 #define $ac_tr_hdr 1
2649 echo "$ac_t""no" 1>&6
2653 for ac_hdr in sys/capability.h syscall.h sys/syscall.h
2655 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2656 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2657 echo "configure:2658: checking for $ac_hdr" >&5
2658 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2659 echo $ac_n "(cached) $ac_c" 1>&6
2661 cat > conftest.$ac_ext <<EOF
2662 #line 2663 "configure"
2663 #include "confdefs.h"
2666 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2667 { (eval echo configure:2668: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2668 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2669 if test -z "$ac_err"; then
2671 eval "ac_cv_header_$ac_safe=yes"
2674 echo "configure: failed program was:" >&5
2675 cat conftest.$ac_ext >&5
2677 eval "ac_cv_header_$ac_safe=no"
2681 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2682 echo "$ac_t""yes" 1>&6
2683 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2684 cat >> confdefs.h <<EOF
2685 #define $ac_tr_hdr 1
2689 echo "$ac_t""no" 1>&6
2693 for ac_hdr in sys/acl.h sys/cdefs.h glob.h
2695 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2696 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2697 echo "configure:2698: checking for $ac_hdr" >&5
2698 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+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 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2707 { (eval echo configure:2708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2708 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2709 if test -z "$ac_err"; then
2711 eval "ac_cv_header_$ac_safe=yes"
2714 echo "configure: failed program was:" >&5
2715 cat conftest.$ac_ext >&5
2717 eval "ac_cv_header_$ac_safe=no"
2721 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2722 echo "$ac_t""yes" 1>&6
2723 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2724 cat >> confdefs.h <<EOF
2725 #define $ac_tr_hdr 1
2729 echo "$ac_t""no" 1>&6
2734 # For experimental utmp support (lastlog on some BSD-like systems)
2735 for ac_hdr in utmp.h utmpx.h lastlog.h
2737 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2738 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2739 echo "configure:2740: checking for $ac_hdr" >&5
2740 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2741 echo $ac_n "(cached) $ac_c" 1>&6
2743 cat > conftest.$ac_ext <<EOF
2744 #line 2745 "configure"
2745 #include "confdefs.h"
2748 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2749 { (eval echo configure:2750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2750 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2751 if test -z "$ac_err"; then
2753 eval "ac_cv_header_$ac_safe=yes"
2756 echo "configure: failed program was:" >&5
2757 cat conftest.$ac_ext >&5
2759 eval "ac_cv_header_$ac_safe=no"
2763 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2764 echo "$ac_t""yes" 1>&6
2765 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2766 cat >> confdefs.h <<EOF
2767 #define $ac_tr_hdr 1
2771 echo "$ac_t""no" 1>&6
2776 # For quotas on Veritas VxFS filesystems
2777 for ac_hdr in sys/fs/vx_quota.h
2779 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2780 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2781 echo "configure:2782: checking for $ac_hdr" >&5
2782 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2783 echo $ac_n "(cached) $ac_c" 1>&6
2785 cat > conftest.$ac_ext <<EOF
2786 #line 2787 "configure"
2787 #include "confdefs.h"
2790 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2791 { (eval echo configure:2792: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2792 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2793 if test -z "$ac_err"; then
2795 eval "ac_cv_header_$ac_safe=yes"
2798 echo "configure: failed program was:" >&5
2799 cat conftest.$ac_ext >&5
2801 eval "ac_cv_header_$ac_safe=no"
2805 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2806 echo "$ac_t""yes" 1>&6
2807 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2808 cat >> confdefs.h <<EOF
2809 #define $ac_tr_hdr 1
2813 echo "$ac_t""no" 1>&6
2818 # For quotas on Linux XFS filesystems
2819 for ac_hdr in linux/xqm.h
2821 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2822 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2823 echo "configure:2824: checking for $ac_hdr" >&5
2824 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2825 echo $ac_n "(cached) $ac_c" 1>&6
2827 cat > conftest.$ac_ext <<EOF
2828 #line 2829 "configure"
2829 #include "confdefs.h"
2832 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2833 { (eval echo configure:2834: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2834 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2835 if test -z "$ac_err"; then
2837 eval "ac_cv_header_$ac_safe=yes"
2840 echo "configure: failed program was:" >&5
2841 cat conftest.$ac_ext >&5
2843 eval "ac_cv_header_$ac_safe=no"
2847 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2848 echo "$ac_t""yes" 1>&6
2849 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2850 cat >> confdefs.h <<EOF
2851 #define $ac_tr_hdr 1
2855 echo "$ac_t""no" 1>&6
2860 echo $ac_n "checking size of int""... $ac_c" 1>&6
2861 echo "configure:2862: checking size of int" >&5
2862 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2863 echo $ac_n "(cached) $ac_c" 1>&6
2865 if test "$cross_compiling" = yes; then
2866 ac_cv_sizeof_int=cross
2868 cat > conftest.$ac_ext <<EOF
2869 #line 2870 "configure"
2870 #include "confdefs.h"
2874 FILE *f=fopen("conftestval", "w");
2876 fprintf(f, "%d\n", sizeof(int));
2880 if { (eval echo configure:2881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2882 ac_cv_sizeof_int=`cat conftestval`
2884 echo "configure: failed program was:" >&5
2885 cat conftest.$ac_ext >&5
2893 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2894 cat >> confdefs.h <<EOF
2895 #define SIZEOF_INT $ac_cv_sizeof_int
2899 echo $ac_n "checking size of long""... $ac_c" 1>&6
2900 echo "configure:2901: checking size of long" >&5
2901 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2902 echo $ac_n "(cached) $ac_c" 1>&6
2904 if test "$cross_compiling" = yes; then
2905 ac_cv_sizeof_long=cross
2907 cat > conftest.$ac_ext <<EOF
2908 #line 2909 "configure"
2909 #include "confdefs.h"
2913 FILE *f=fopen("conftestval", "w");
2915 fprintf(f, "%d\n", sizeof(long));
2919 if { (eval echo configure:2920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2921 ac_cv_sizeof_long=`cat conftestval`
2923 echo "configure: failed program was:" >&5
2924 cat conftest.$ac_ext >&5
2932 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2933 cat >> confdefs.h <<EOF
2934 #define SIZEOF_LONG $ac_cv_sizeof_long
2938 echo $ac_n "checking size of short""... $ac_c" 1>&6
2939 echo "configure:2940: checking size of short" >&5
2940 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2941 echo $ac_n "(cached) $ac_c" 1>&6
2943 if test "$cross_compiling" = yes; then
2944 ac_cv_sizeof_short=cross
2946 cat > conftest.$ac_ext <<EOF
2947 #line 2948 "configure"
2948 #include "confdefs.h"
2952 FILE *f=fopen("conftestval", "w");
2954 fprintf(f, "%d\n", sizeof(short));
2958 if { (eval echo configure:2959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2960 ac_cv_sizeof_short=`cat conftestval`
2962 echo "configure: failed program was:" >&5
2963 cat conftest.$ac_ext >&5
2965 ac_cv_sizeof_short=0
2971 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2972 cat >> confdefs.h <<EOF
2973 #define SIZEOF_SHORT $ac_cv_sizeof_short
2978 echo $ac_n "checking for working const""... $ac_c" 1>&6
2979 echo "configure:2980: checking for working const" >&5
2980 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2981 echo $ac_n "(cached) $ac_c" 1>&6
2983 cat > conftest.$ac_ext <<EOF
2984 #line 2985 "configure"
2985 #include "confdefs.h"
2989 /* Ultrix mips cc rejects this. */
2990 typedef int charset[2]; const charset x;
2991 /* SunOS 4.1.1 cc rejects this. */
2992 char const *const *ccp;
2994 /* NEC SVR4.0.2 mips cc rejects this. */
2995 struct point {int x, y;};
2996 static struct point const zero = {0,0};
2997 /* AIX XL C 1.02.0.0 rejects this.
2998 It does not let you subtract one const X* pointer from another in an arm
2999 of an if-expression whose if-part is not a constant expression */
3000 const char *g = "string";
3001 ccp = &g + (g ? g-g : 0);
3002 /* HPUX 7.0 cc rejects these. */
3005 ccp = (char const *const *) p;
3006 { /* SCO 3.2v4 cc rejects this. */
3008 char const *s = 0 ? (char *) 0 : (char const *) 0;
3012 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3014 const int *foo = &x[0];
3017 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3018 typedef const int *iptr;
3022 { /* AIX XL C 1.02.0.0 rejects this saying
3023 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3024 struct s { int j; const int *ap[3]; };
3025 struct s *b; b->j = 5;
3027 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3033 if { (eval echo configure:3034: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3037 echo "configure: failed program was:" >&5
3038 cat conftest.$ac_ext >&5
3045 echo "$ac_t""$ac_cv_c_const" 1>&6
3046 if test $ac_cv_c_const = no; then
3047 cat >> confdefs.h <<\EOF
3053 echo $ac_n "checking for inline""... $ac_c" 1>&6
3054 echo "configure:3055: checking for inline" >&5
3055 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3056 echo $ac_n "(cached) $ac_c" 1>&6
3059 for ac_kw in inline __inline__ __inline; do
3060 cat > conftest.$ac_ext <<EOF
3061 #line 3062 "configure"
3062 #include "confdefs.h"
3068 if { (eval echo configure:3069: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3070 ac_cv_c_inline=$ac_kw; break
3072 echo "configure: failed program was:" >&5
3073 cat conftest.$ac_ext >&5
3080 echo "$ac_t""$ac_cv_c_inline" 1>&6
3081 case "$ac_cv_c_inline" in
3083 no) cat >> confdefs.h <<\EOF
3087 *) cat >> confdefs.h <<EOF
3088 #define inline $ac_cv_c_inline
3093 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3094 echo "configure:3095: checking whether byte ordering is bigendian" >&5
3095 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3096 echo $ac_n "(cached) $ac_c" 1>&6
3098 ac_cv_c_bigendian=unknown
3099 # See if sys/param.h defines the BYTE_ORDER macro.
3100 cat > conftest.$ac_ext <<EOF
3101 #line 3102 "configure"
3102 #include "confdefs.h"
3103 #include <sys/types.h>
3104 #include <sys/param.h>
3107 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3112 if { (eval echo configure:3113: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3114 # It does; now see whether it defined to BIG_ENDIAN or not.
3115 cat > conftest.$ac_ext <<EOF
3116 #line 3117 "configure"
3117 #include "confdefs.h"
3118 #include <sys/types.h>
3119 #include <sys/param.h>
3122 #if BYTE_ORDER != BIG_ENDIAN
3127 if { (eval echo configure:3128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3129 ac_cv_c_bigendian=yes
3131 echo "configure: failed program was:" >&5
3132 cat conftest.$ac_ext >&5
3134 ac_cv_c_bigendian=no
3138 echo "configure: failed program was:" >&5
3139 cat conftest.$ac_ext >&5
3142 if test $ac_cv_c_bigendian = unknown; then
3143 if test "$cross_compiling" = yes; then
3144 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3146 cat > conftest.$ac_ext <<EOF
3147 #line 3148 "configure"
3148 #include "confdefs.h"
3150 /* Are we little or big endian? From Harbison&Steele. */
3154 char c[sizeof (long)];
3157 exit (u.c[sizeof (long) - 1] == 1);
3160 if { (eval echo configure:3161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3162 ac_cv_c_bigendian=no
3164 echo "configure: failed program was:" >&5
3165 cat conftest.$ac_ext >&5
3167 ac_cv_c_bigendian=yes
3175 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3176 if test $ac_cv_c_bigendian = yes; then
3177 cat >> confdefs.h <<\EOF
3178 #define WORDS_BIGENDIAN 1
3183 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3184 echo "configure:3185: checking whether char is unsigned" >&5
3185 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3186 echo $ac_n "(cached) $ac_c" 1>&6
3188 if test "$GCC" = yes; then
3189 # GCC predefines this symbol on systems where it applies.
3190 cat > conftest.$ac_ext <<EOF
3191 #line 3192 "configure"
3192 #include "confdefs.h"
3193 #ifdef __CHAR_UNSIGNED__
3198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3199 egrep "yes" >/dev/null 2>&1; then
3201 ac_cv_c_char_unsigned=yes
3204 ac_cv_c_char_unsigned=no
3209 if test "$cross_compiling" = yes; then
3210 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3212 cat > conftest.$ac_ext <<EOF
3213 #line 3214 "configure"
3214 #include "confdefs.h"
3215 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3216 #if !defined(__STDC__) || __STDC__ != 1
3220 volatile char c = 255; exit(c < 0);
3223 if { (eval echo configure:3224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3225 ac_cv_c_char_unsigned=yes
3227 echo "configure: failed program was:" >&5
3228 cat conftest.$ac_ext >&5
3230 ac_cv_c_char_unsigned=no
3238 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3239 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3240 cat >> confdefs.h <<\EOF
3241 #define __CHAR_UNSIGNED__ 1
3247 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3248 echo "configure:3249: checking return type of signal handlers" >&5
3249 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3250 echo $ac_n "(cached) $ac_c" 1>&6
3252 cat > conftest.$ac_ext <<EOF
3253 #line 3254 "configure"
3254 #include "confdefs.h"
3255 #include <sys/types.h>
3261 extern "C" void (*signal (int, void (*)(int)))(int);
3263 void (*signal ()) ();
3270 if { (eval echo configure:3271: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3272 ac_cv_type_signal=void
3274 echo "configure: failed program was:" >&5
3275 cat conftest.$ac_ext >&5
3277 ac_cv_type_signal=int
3282 echo "$ac_t""$ac_cv_type_signal" 1>&6
3283 cat >> confdefs.h <<EOF
3284 #define RETSIGTYPE $ac_cv_type_signal
3288 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3289 echo "configure:3290: checking for uid_t in sys/types.h" >&5
3290 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3291 echo $ac_n "(cached) $ac_c" 1>&6
3293 cat > conftest.$ac_ext <<EOF
3294 #line 3295 "configure"
3295 #include "confdefs.h"
3296 #include <sys/types.h>
3298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3299 egrep "uid_t" >/dev/null 2>&1; then
3301 ac_cv_type_uid_t=yes
3310 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3311 if test $ac_cv_type_uid_t = no; then
3312 cat >> confdefs.h <<\EOF
3316 cat >> confdefs.h <<\EOF
3322 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3323 echo "configure:3324: checking for mode_t" >&5
3324 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3325 echo $ac_n "(cached) $ac_c" 1>&6
3327 cat > conftest.$ac_ext <<EOF
3328 #line 3329 "configure"
3329 #include "confdefs.h"
3330 #include <sys/types.h>
3336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3337 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3339 ac_cv_type_mode_t=yes
3342 ac_cv_type_mode_t=no
3347 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3348 if test $ac_cv_type_mode_t = no; then
3349 cat >> confdefs.h <<\EOF
3355 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3356 echo "configure:3357: checking for off_t" >&5
3357 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3358 echo $ac_n "(cached) $ac_c" 1>&6
3360 cat > conftest.$ac_ext <<EOF
3361 #line 3362 "configure"
3362 #include "confdefs.h"
3363 #include <sys/types.h>
3369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3370 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3372 ac_cv_type_off_t=yes
3380 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3381 if test $ac_cv_type_off_t = no; then
3382 cat >> confdefs.h <<\EOF
3388 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3389 echo "configure:3390: checking for size_t" >&5
3390 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3391 echo $ac_n "(cached) $ac_c" 1>&6
3393 cat > conftest.$ac_ext <<EOF
3394 #line 3395 "configure"
3395 #include "confdefs.h"
3396 #include <sys/types.h>
3402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3403 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3405 ac_cv_type_size_t=yes
3408 ac_cv_type_size_t=no
3413 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3414 if test $ac_cv_type_size_t = no; then
3415 cat >> confdefs.h <<\EOF
3416 #define size_t unsigned
3421 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3422 echo "configure:3423: checking for pid_t" >&5
3423 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3424 echo $ac_n "(cached) $ac_c" 1>&6
3426 cat > conftest.$ac_ext <<EOF
3427 #line 3428 "configure"
3428 #include "confdefs.h"
3429 #include <sys/types.h>
3435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3436 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3438 ac_cv_type_pid_t=yes
3446 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3447 if test $ac_cv_type_pid_t = no; then
3448 cat >> confdefs.h <<\EOF
3454 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3455 echo "configure:3456: checking for st_rdev in struct stat" >&5
3456 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3457 echo $ac_n "(cached) $ac_c" 1>&6
3459 cat > conftest.$ac_ext <<EOF
3460 #line 3461 "configure"
3461 #include "confdefs.h"
3462 #include <sys/types.h>
3463 #include <sys/stat.h>
3465 struct stat s; s.st_rdev;
3468 if { (eval echo configure:3469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3470 ac_cv_struct_st_rdev=yes
3472 echo "configure: failed program was:" >&5
3473 cat conftest.$ac_ext >&5
3475 ac_cv_struct_st_rdev=no
3480 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3481 if test $ac_cv_struct_st_rdev = yes; then
3482 cat >> confdefs.h <<\EOF
3483 #define HAVE_ST_RDEV 1
3488 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3489 echo "configure:3490: checking for d_off in dirent" >&5
3490 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3491 echo $ac_n "(cached) $ac_c" 1>&6
3493 cat > conftest.$ac_ext <<EOF
3494 #line 3495 "configure"
3495 #include "confdefs.h"
3498 #include <sys/types.h>
3501 struct dirent d; d.d_off;
3504 if { (eval echo configure:3505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3506 ac_cv_dirent_d_off=yes
3508 echo "configure: failed program was:" >&5
3509 cat conftest.$ac_ext >&5
3511 ac_cv_dirent_d_off=no
3516 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3517 if test $ac_cv_dirent_d_off = yes; then
3518 cat >> confdefs.h <<\EOF
3519 #define HAVE_DIRENT_D_OFF 1
3524 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3525 echo "configure:3526: checking for ino_t" >&5
3526 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3527 echo $ac_n "(cached) $ac_c" 1>&6
3529 cat > conftest.$ac_ext <<EOF
3530 #line 3531 "configure"
3531 #include "confdefs.h"
3532 #include <sys/types.h>
3538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3539 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3541 ac_cv_type_ino_t=yes
3549 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3550 if test $ac_cv_type_ino_t = no; then
3551 cat >> confdefs.h <<\EOF
3552 #define ino_t unsigned
3557 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3558 echo "configure:3559: checking for loff_t" >&5
3559 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3560 echo $ac_n "(cached) $ac_c" 1>&6
3562 cat > conftest.$ac_ext <<EOF
3563 #line 3564 "configure"
3564 #include "confdefs.h"
3565 #include <sys/types.h>
3571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3572 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3574 ac_cv_type_loff_t=yes
3577 ac_cv_type_loff_t=no
3582 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3583 if test $ac_cv_type_loff_t = no; then
3584 cat >> confdefs.h <<\EOF
3585 #define loff_t off_t
3590 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3591 echo "configure:3592: checking for offset_t" >&5
3592 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3593 echo $ac_n "(cached) $ac_c" 1>&6
3595 cat > conftest.$ac_ext <<EOF
3596 #line 3597 "configure"
3597 #include "confdefs.h"
3598 #include <sys/types.h>
3604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3605 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3607 ac_cv_type_offset_t=yes
3610 ac_cv_type_offset_t=no
3615 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3616 if test $ac_cv_type_offset_t = no; then
3617 cat >> confdefs.h <<\EOF
3618 #define offset_t loff_t
3623 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3624 echo "configure:3625: checking for ssize_t" >&5
3625 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3626 echo $ac_n "(cached) $ac_c" 1>&6
3628 cat > conftest.$ac_ext <<EOF
3629 #line 3630 "configure"
3630 #include "confdefs.h"
3631 #include <sys/types.h>
3637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3638 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3640 ac_cv_type_ssize_t=yes
3643 ac_cv_type_ssize_t=no
3648 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3649 if test $ac_cv_type_ssize_t = no; then
3650 cat >> confdefs.h <<\EOF
3656 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3657 echo "configure:3658: checking for wchar_t" >&5
3658 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3659 echo $ac_n "(cached) $ac_c" 1>&6
3661 cat > conftest.$ac_ext <<EOF
3662 #line 3663 "configure"
3663 #include "confdefs.h"
3664 #include <sys/types.h>
3670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3671 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3673 ac_cv_type_wchar_t=yes
3676 ac_cv_type_wchar_t=no
3681 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3682 if test $ac_cv_type_wchar_t = no; then
3683 cat >> confdefs.h <<\EOF
3684 #define wchar_t unsigned short
3690 ############################################
3691 # for cups support we need libcups, and a handful of header files
3693 # Check whether --enable-cups or --disable-cups was given.
3694 if test "${enable_cups+set}" = set; then
3695 enableval="$enable_cups"
3700 if test x$enable_cups != xno; then
3701 # Extract the first word of "cups-config", so it can be a program name with args.
3702 set dummy cups-config; ac_word=$2
3703 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3704 echo "configure:3705: checking for $ac_word" >&5
3705 if eval "test \"`echo '$''{'ac_cv_path_CUPS_CONFIG'+set}'`\" = set"; then
3706 echo $ac_n "(cached) $ac_c" 1>&6
3708 case "$CUPS_CONFIG" in
3710 ac_cv_path_CUPS_CONFIG="$CUPS_CONFIG" # Let the user override the test with a path.
3713 ac_cv_path_CUPS_CONFIG="$CUPS_CONFIG" # Let the user override the test with a dos path.
3716 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3718 for ac_dir in $ac_dummy; do
3719 test -z "$ac_dir" && ac_dir=.
3720 if test -f $ac_dir/$ac_word; then
3721 ac_cv_path_CUPS_CONFIG="$ac_dir/$ac_word"
3729 CUPS_CONFIG="$ac_cv_path_CUPS_CONFIG"
3730 if test -n "$CUPS_CONFIG"; then
3731 echo "$ac_t""$CUPS_CONFIG" 1>&6
3733 echo "$ac_t""no" 1>&6
3737 if test "x$CUPS_CONFIG" != x; then
3738 cat >> confdefs.h <<\EOF
3742 CFLAGS="$CFLAGS `$CUPS_CONFIG --cflags`"
3743 LDFLAGS="$LDFLAGS `$CUPS_CONFIG --ldflags`"
3744 PRINTLIBS="$PRINTLIBS `$CUPS_CONFIG --libs`"
3748 ############################################
3749 # we need dlopen/dlclose/dlsym/dlerror for PAM, the password database plugins and the new VFS code
3750 for ac_func in dlopen
3752 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3753 echo "configure:3754: checking for $ac_func" >&5
3754 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3755 echo $ac_n "(cached) $ac_c" 1>&6
3757 cat > conftest.$ac_ext <<EOF
3758 #line 3759 "configure"
3759 #include "confdefs.h"
3760 /* System header to define __stub macros and hopefully few prototypes,
3761 which can conflict with char $ac_func(); below. */
3763 /* Override any gcc2 internal prototype to avoid an error. */
3764 /* We use char because int might match the return type of a gcc2
3765 builtin and then its argument prototype would still apply. */
3770 /* The GNU C library defines this for functions which it implements
3771 to always fail with ENOSYS. Some functions are actually named
3772 something starting with __ and the normal name is an alias. */
3773 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3781 if { (eval echo configure:3782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3783 eval "ac_cv_func_$ac_func=yes"
3785 echo "configure: failed program was:" >&5
3786 cat conftest.$ac_ext >&5
3788 eval "ac_cv_func_$ac_func=no"
3793 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3794 echo "$ac_t""yes" 1>&6
3795 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3796 cat >> confdefs.h <<EOF
3797 #define $ac_tr_func 1
3801 echo "$ac_t""no" 1>&6
3805 if test x"$ac_cv_func_dlopen" = x"no"; then
3806 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3807 echo "configure:3808: checking for dlopen in -ldl" >&5
3808 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3809 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3810 echo $ac_n "(cached) $ac_c" 1>&6
3812 ac_save_LIBS="$LIBS"
3814 cat > conftest.$ac_ext <<EOF
3815 #line 3816 "configure"
3816 #include "confdefs.h"
3817 /* Override any gcc2 internal prototype to avoid an error. */
3818 /* We use char because int might match the return type of a gcc2
3819 builtin and then its argument prototype would still apply. */
3826 if { (eval echo configure:3827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3828 eval "ac_cv_lib_$ac_lib_var=yes"
3830 echo "configure: failed program was:" >&5
3831 cat conftest.$ac_ext >&5
3833 eval "ac_cv_lib_$ac_lib_var=no"
3836 LIBS="$ac_save_LIBS"
3839 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3840 echo "$ac_t""yes" 1>&6
3841 SMBDLIBS="$SMBDLIBS -ldl";
3842 cat >> confdefs.h <<\EOF
3843 #define HAVE_DLOPEN 1
3847 echo "$ac_t""no" 1>&6
3851 # dlopen/dlclose/dlsym/dlerror will be checked again later and defines will be set then
3853 ############################################
3854 # check if the compiler can do immediate structures
3855 echo $ac_n "checking for immediate structures""... $ac_c" 1>&6
3856 echo "configure:3857: checking for immediate structures" >&5
3857 if eval "test \"`echo '$''{'samba_cv_immediate_structures'+set}'`\" = set"; then
3858 echo $ac_n "(cached) $ac_c" 1>&6
3861 cat > conftest.$ac_ext <<EOF
3862 #line 3863 "configure"
3863 #include "confdefs.h"
3868 typedef struct {unsigned x;} FOOBAR;
3869 #define X_FOOBAR(x) ((FOOBAR) { x })
3870 #define FOO_ONE X_FOOBAR(1)
3880 if { (eval echo configure:3881: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3882 samba_cv_immediate_structures=yes
3884 echo "configure: failed program was:" >&5
3885 cat conftest.$ac_ext >&5
3887 samba_cv_immediate_structures=no
3892 echo "$ac_t""$samba_cv_immediate_structures" 1>&6
3893 if test x"$samba_cv_immediate_structures" = x"yes"; then
3894 cat >> confdefs.h <<\EOF
3895 #define HAVE_IMMEDIATE_STRUCTURES 1
3900 ############################################
3901 # check for unix domain sockets
3902 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
3903 echo "configure:3904: checking for unix domain sockets" >&5
3904 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
3905 echo $ac_n "(cached) $ac_c" 1>&6
3908 cat > conftest.$ac_ext <<EOF
3909 #line 3910 "configure"
3910 #include "confdefs.h"
3912 #include <sys/types.h>
3915 #include <sys/socket.h>
3919 struct sockaddr_un sunaddr;
3920 sunaddr.sun_family = AF_UNIX;
3924 if { (eval echo configure:3925: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3926 samba_cv_unixsocket=yes
3928 echo "configure: failed program was:" >&5
3929 cat conftest.$ac_ext >&5
3931 samba_cv_unixsocket=no
3936 echo "$ac_t""$samba_cv_unixsocket" 1>&6
3937 if test x"$samba_cv_unixsocket" = x"yes"; then
3938 cat >> confdefs.h <<\EOF
3939 #define HAVE_UNIXSOCKET 1
3945 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
3946 echo "configure:3947: checking for socklen_t type" >&5
3947 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
3948 echo $ac_n "(cached) $ac_c" 1>&6
3951 cat > conftest.$ac_ext <<EOF
3952 #line 3953 "configure"
3953 #include "confdefs.h"
3955 #include <sys/types.h>
3960 #include <sys/socket.h>
3965 if { (eval echo configure:3966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3967 samba_cv_socklen_t=yes
3969 echo "configure: failed program was:" >&5
3970 cat conftest.$ac_ext >&5
3972 samba_cv_socklen_t=no
3977 echo "$ac_t""$samba_cv_socklen_t" 1>&6
3978 if test x"$samba_cv_socklen_t" = x"yes"; then
3979 cat >> confdefs.h <<\EOF
3980 #define HAVE_SOCKLEN_T_TYPE 1
3985 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3986 echo "configure:3987: checking for sig_atomic_t type" >&5
3987 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
3988 echo $ac_n "(cached) $ac_c" 1>&6
3991 cat > conftest.$ac_ext <<EOF
3992 #line 3993 "configure"
3993 #include "confdefs.h"
3995 #include <sys/types.h>
4005 if { (eval echo configure:4006: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4007 samba_cv_sig_atomic_t=yes
4009 echo "configure: failed program was:" >&5
4010 cat conftest.$ac_ext >&5
4012 samba_cv_sig_atomic_t=no
4017 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
4018 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
4019 cat >> confdefs.h <<\EOF
4020 #define HAVE_SIG_ATOMIC_T_TYPE 1
4025 # stupid headers have the functions but no declaration. grrrr.
4027 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
4028 echo "configure:4029: checking for errno declaration" >&5
4029 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
4030 echo $ac_n "(cached) $ac_c" 1>&6
4033 cat > conftest.$ac_ext <<EOF
4034 #line 4035 "configure"
4035 #include "confdefs.h"
4041 if { (eval echo configure:4042: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4043 ac_cv_have_errno_decl=yes
4045 echo "configure: failed program was:" >&5
4046 cat conftest.$ac_ext >&5
4048 ac_cv_have_errno_decl=no
4053 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
4054 if test x"$ac_cv_have_errno_decl" = x"yes"; then
4055 cat >> confdefs.h <<\EOF
4056 #define HAVE_ERRNO_DECL 1
4062 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
4063 echo "configure:4064: checking for setresuid declaration" >&5
4064 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
4065 echo $ac_n "(cached) $ac_c" 1>&6
4068 cat > conftest.$ac_ext <<EOF
4069 #line 4070 "configure"
4070 #include "confdefs.h"
4073 int i = (int)setresuid
4076 if { (eval echo configure:4077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4078 ac_cv_have_setresuid_decl=yes
4080 echo "configure: failed program was:" >&5
4081 cat conftest.$ac_ext >&5
4083 ac_cv_have_setresuid_decl=no
4088 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
4089 if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
4090 cat >> confdefs.h <<\EOF
4091 #define HAVE_SETRESUID_DECL 1
4097 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
4098 echo "configure:4099: checking for setresgid declaration" >&5
4099 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
4100 echo $ac_n "(cached) $ac_c" 1>&6
4103 cat > conftest.$ac_ext <<EOF
4104 #line 4105 "configure"
4105 #include "confdefs.h"
4108 int i = (int)setresgid
4111 if { (eval echo configure:4112: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4113 ac_cv_have_setresgid_decl=yes
4115 echo "configure: failed program was:" >&5
4116 cat conftest.$ac_ext >&5
4118 ac_cv_have_setresgid_decl=no
4123 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
4124 if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
4125 cat >> confdefs.h <<\EOF
4126 #define HAVE_SETRESGID_DECL 1
4132 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
4133 echo "configure:4134: checking for asprintf declaration" >&5
4134 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
4135 echo $ac_n "(cached) $ac_c" 1>&6
4138 cat > conftest.$ac_ext <<EOF
4139 #line 4140 "configure"
4140 #include "confdefs.h"
4143 int i = (int)asprintf
4146 if { (eval echo configure:4147: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4148 ac_cv_have_asprintf_decl=yes
4150 echo "configure: failed program was:" >&5
4151 cat conftest.$ac_ext >&5
4153 ac_cv_have_asprintf_decl=no
4158 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
4159 if test x"$ac_cv_have_asprintf_decl" = x"yes"; then
4160 cat >> confdefs.h <<\EOF
4161 #define HAVE_ASPRINTF_DECL 1
4167 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
4168 echo "configure:4169: checking for vasprintf declaration" >&5
4169 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
4170 echo $ac_n "(cached) $ac_c" 1>&6
4173 cat > conftest.$ac_ext <<EOF
4174 #line 4175 "configure"
4175 #include "confdefs.h"
4178 int i = (int)vasprintf
4181 if { (eval echo configure:4182: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4183 ac_cv_have_vasprintf_decl=yes
4185 echo "configure: failed program was:" >&5
4186 cat conftest.$ac_ext >&5
4188 ac_cv_have_vasprintf_decl=no
4193 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
4194 if test x"$ac_cv_have_vasprintf_decl" = x"yes"; then
4195 cat >> confdefs.h <<\EOF
4196 #define HAVE_VASPRINTF_DECL 1
4202 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
4203 echo "configure:4204: checking for vsnprintf declaration" >&5
4204 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
4205 echo $ac_n "(cached) $ac_c" 1>&6
4208 cat > conftest.$ac_ext <<EOF
4209 #line 4210 "configure"
4210 #include "confdefs.h"
4213 int i = (int)vsnprintf
4216 if { (eval echo configure:4217: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4218 ac_cv_have_vsnprintf_decl=yes
4220 echo "configure: failed program was:" >&5
4221 cat conftest.$ac_ext >&5
4223 ac_cv_have_vsnprintf_decl=no
4228 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
4229 if test x"$ac_cv_have_vsnprintf_decl" = x"yes"; then
4230 cat >> confdefs.h <<\EOF
4231 #define HAVE_VSNPRINTF_DECL 1
4237 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
4238 echo "configure:4239: checking for snprintf declaration" >&5
4239 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
4240 echo $ac_n "(cached) $ac_c" 1>&6
4243 cat > conftest.$ac_ext <<EOF
4244 #line 4245 "configure"
4245 #include "confdefs.h"
4248 int i = (int)snprintf
4251 if { (eval echo configure:4252: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4253 ac_cv_have_snprintf_decl=yes
4255 echo "configure: failed program was:" >&5
4256 cat conftest.$ac_ext >&5
4258 ac_cv_have_snprintf_decl=no
4263 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
4264 if test x"$ac_cv_have_snprintf_decl" = x"yes"; then
4265 cat >> confdefs.h <<\EOF
4266 #define HAVE_SNPRINTF_DECL 1
4272 # and glibc has setresuid under linux but the function does
4273 # nothing until kernel 2.1.44! very dumb.
4274 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
4275 echo "configure:4276: checking for real setresuid" >&5
4276 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
4277 echo $ac_n "(cached) $ac_c" 1>&6
4280 if test "$cross_compiling" = yes; then
4281 samba_cv_have_setresuid=cross
4283 cat > conftest.$ac_ext <<EOF
4284 #line 4285 "configure"
4285 #include "confdefs.h"
4287 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4289 if { (eval echo configure:4290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4291 samba_cv_have_setresuid=yes
4293 echo "configure: failed program was:" >&5
4294 cat conftest.$ac_ext >&5
4296 samba_cv_have_setresuid=no
4303 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4304 if test x"$samba_cv_have_setresuid" = x"yes"; then
4305 cat >> confdefs.h <<\EOF
4306 #define HAVE_SETRESUID 1
4311 # Do the same check for setresguid...
4313 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4314 echo "configure:4315: checking for real setresgid" >&5
4315 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4316 echo $ac_n "(cached) $ac_c" 1>&6
4319 if test "$cross_compiling" = yes; then
4320 samba_cv_have_setresgid=cross
4322 cat > conftest.$ac_ext <<EOF
4323 #line 4324 "configure"
4324 #include "confdefs.h"
4327 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4329 if { (eval echo configure:4330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4331 samba_cv_have_setresgid=yes
4333 echo "configure: failed program was:" >&5
4334 cat conftest.$ac_ext >&5
4336 samba_cv_have_setresgid=no
4343 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4344 if test x"$samba_cv_have_setresgid" = x"yes"; then
4345 cat >> confdefs.h <<\EOF
4346 #define HAVE_SETRESGID 1
4351 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4352 echo "configure:4353: checking for 8-bit clean memcmp" >&5
4353 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4354 echo $ac_n "(cached) $ac_c" 1>&6
4356 if test "$cross_compiling" = yes; then
4357 ac_cv_func_memcmp_clean=no
4359 cat > conftest.$ac_ext <<EOF
4360 #line 4361 "configure"
4361 #include "confdefs.h"
4365 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4366 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4370 if { (eval echo configure:4371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4372 ac_cv_func_memcmp_clean=yes
4374 echo "configure: failed program was:" >&5
4375 cat conftest.$ac_ext >&5
4377 ac_cv_func_memcmp_clean=no
4384 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4385 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
4388 ###############################################
4389 # test for where we get crypt() from
4390 for ac_func in crypt
4392 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4393 echo "configure:4394: checking for $ac_func" >&5
4394 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4395 echo $ac_n "(cached) $ac_c" 1>&6
4397 cat > conftest.$ac_ext <<EOF
4398 #line 4399 "configure"
4399 #include "confdefs.h"
4400 /* System header to define __stub macros and hopefully few prototypes,
4401 which can conflict with char $ac_func(); below. */
4403 /* Override any gcc2 internal prototype to avoid an error. */
4404 /* We use char because int might match the return type of a gcc2
4405 builtin and then its argument prototype would still apply. */
4410 /* The GNU C library defines this for functions which it implements
4411 to always fail with ENOSYS. Some functions are actually named
4412 something starting with __ and the normal name is an alias. */
4413 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4421 if { (eval echo configure:4422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4423 eval "ac_cv_func_$ac_func=yes"
4425 echo "configure: failed program was:" >&5
4426 cat conftest.$ac_ext >&5
4428 eval "ac_cv_func_$ac_func=no"
4433 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4434 echo "$ac_t""yes" 1>&6
4435 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4436 cat >> confdefs.h <<EOF
4437 #define $ac_tr_func 1
4441 echo "$ac_t""no" 1>&6
4445 if test x"$ac_cv_func_crypt" = x"no"; then
4446 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4447 echo "configure:4448: checking for crypt in -lcrypt" >&5
4448 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4449 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4450 echo $ac_n "(cached) $ac_c" 1>&6
4452 ac_save_LIBS="$LIBS"
4453 LIBS="-lcrypt $LIBS"
4454 cat > conftest.$ac_ext <<EOF
4455 #line 4456 "configure"
4456 #include "confdefs.h"
4457 /* Override any gcc2 internal prototype to avoid an error. */
4458 /* We use char because int might match the return type of a gcc2
4459 builtin and then its argument prototype would still apply. */
4466 if { (eval echo configure:4467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4468 eval "ac_cv_lib_$ac_lib_var=yes"
4470 echo "configure: failed program was:" >&5
4471 cat conftest.$ac_ext >&5
4473 eval "ac_cv_lib_$ac_lib_var=no"
4476 LIBS="$ac_save_LIBS"
4479 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4480 echo "$ac_t""yes" 1>&6
4481 SMBDLIBS="$SMBDLIBS -lcrypt";
4482 cat >> confdefs.h <<\EOF
4483 #define HAVE_CRYPT 1
4487 echo "$ac_t""no" 1>&6
4493 ###############################################
4494 # Readline included by default unless explicitly asked not to
4495 test "${with_readline+set}" != "set" && with_readline=yes
4497 # test for where we get readline() from
4498 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4499 echo "configure:4500: checking whether to use readline" >&5
4500 # Check whether --with-readline or --without-readline was given.
4501 if test "${with_readline+set}" = set; then
4502 withval="$with_readline"
4503 case "$with_readline" in
4505 echo "$ac_t""yes" 1>&6
4507 for ac_hdr in readline.h history.h readline/readline.h
4509 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4510 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4511 echo "configure:4512: checking for $ac_hdr" >&5
4512 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4513 echo $ac_n "(cached) $ac_c" 1>&6
4515 cat > conftest.$ac_ext <<EOF
4516 #line 4517 "configure"
4517 #include "confdefs.h"
4520 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4521 { (eval echo configure:4522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4522 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4523 if test -z "$ac_err"; then
4525 eval "ac_cv_header_$ac_safe=yes"
4528 echo "configure: failed program was:" >&5
4529 cat conftest.$ac_ext >&5
4531 eval "ac_cv_header_$ac_safe=no"
4535 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4536 echo "$ac_t""yes" 1>&6
4537 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4538 cat >> confdefs.h <<EOF
4539 #define $ac_tr_hdr 1
4543 echo "$ac_t""no" 1>&6
4547 for ac_hdr in readline/history.h
4549 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4550 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4551 echo "configure:4552: checking for $ac_hdr" >&5
4552 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4553 echo $ac_n "(cached) $ac_c" 1>&6
4555 cat > conftest.$ac_ext <<EOF
4556 #line 4557 "configure"
4557 #include "confdefs.h"
4560 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4561 { (eval echo configure:4562: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4562 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4563 if test -z "$ac_err"; then
4565 eval "ac_cv_header_$ac_safe=yes"
4568 echo "configure: failed program was:" >&5
4569 cat conftest.$ac_ext >&5
4571 eval "ac_cv_header_$ac_safe=no"
4575 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4576 echo "$ac_t""yes" 1>&6
4577 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4578 cat >> confdefs.h <<EOF
4579 #define $ac_tr_hdr 1
4583 echo "$ac_t""no" 1>&6
4588 for ac_hdr in readline.h readline/readline.h
4590 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4591 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4592 echo "configure:4593: checking for $ac_hdr" >&5
4593 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4594 echo $ac_n "(cached) $ac_c" 1>&6
4596 cat > conftest.$ac_ext <<EOF
4597 #line 4598 "configure"
4598 #include "confdefs.h"
4601 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4602 { (eval echo configure:4603: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4603 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4604 if test -z "$ac_err"; then
4606 eval "ac_cv_header_$ac_safe=yes"
4609 echo "configure: failed program was:" >&5
4610 cat conftest.$ac_ext >&5
4612 eval "ac_cv_header_$ac_safe=no"
4616 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4617 echo "$ac_t""yes" 1>&6
4618 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4619 cat >> confdefs.h <<EOF
4620 #define $ac_tr_hdr 1
4623 for termlib in ncurses curses termcap terminfo termlib; do
4624 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4625 echo "configure:4626: checking for tgetent in -l${termlib}" >&5
4626 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4627 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4628 echo $ac_n "(cached) $ac_c" 1>&6
4630 ac_save_LIBS="$LIBS"
4631 LIBS="-l${termlib} $LIBS"
4632 cat > conftest.$ac_ext <<EOF
4633 #line 4634 "configure"
4634 #include "confdefs.h"
4635 /* Override any gcc2 internal prototype to avoid an error. */
4636 /* We use char because int might match the return type of a gcc2
4637 builtin and then its argument prototype would still apply. */
4644 if { (eval echo configure:4645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4646 eval "ac_cv_lib_$ac_lib_var=yes"
4648 echo "configure: failed program was:" >&5
4649 cat conftest.$ac_ext >&5
4651 eval "ac_cv_lib_$ac_lib_var=no"
4654 LIBS="$ac_save_LIBS"
4657 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4658 echo "$ac_t""yes" 1>&6
4659 TERMLIBS="-l${termlib}"; break
4661 echo "$ac_t""no" 1>&6
4665 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4666 echo "configure:4667: checking for rl_callback_handler_install in -lreadline" >&5
4667 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4668 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4669 echo $ac_n "(cached) $ac_c" 1>&6
4671 ac_save_LIBS="$LIBS"
4672 LIBS="-lreadline $TERMLIBS $LIBS"
4673 cat > conftest.$ac_ext <<EOF
4674 #line 4675 "configure"
4675 #include "confdefs.h"
4676 /* Override any gcc2 internal prototype to avoid an error. */
4677 /* We use char because int might match the return type of a gcc2
4678 builtin and then its argument prototype would still apply. */
4679 char rl_callback_handler_install();
4682 rl_callback_handler_install()
4685 if { (eval echo configure:4686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4687 eval "ac_cv_lib_$ac_lib_var=yes"
4689 echo "configure: failed program was:" >&5
4690 cat conftest.$ac_ext >&5
4692 eval "ac_cv_lib_$ac_lib_var=no"
4695 LIBS="$ac_save_LIBS"
4698 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4699 echo "$ac_t""yes" 1>&6
4700 TERMLIBS="-lreadline $TERMLIBS"
4701 cat >> confdefs.h <<\EOF
4702 #define HAVE_LIBREADLINE 1
4707 echo "$ac_t""no" 1>&6
4712 echo "$ac_t""no" 1>&6
4718 echo "$ac_t""no" 1>&6
4721 echo "$ac_t""yes" 1>&6
4723 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4724 # alternate readline path
4726 _cppflags=${CPPFLAGS}
4728 # Add additional search path
4729 LDFLAGS="-L$with_readline/lib $LDFLAGS"
4730 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4732 for ac_hdr in readline.h history.h readline/readline.h
4734 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4735 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4736 echo "configure:4737: checking for $ac_hdr" >&5
4737 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4738 echo $ac_n "(cached) $ac_c" 1>&6
4740 cat > conftest.$ac_ext <<EOF
4741 #line 4742 "configure"
4742 #include "confdefs.h"
4745 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4746 { (eval echo configure:4747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4747 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4748 if test -z "$ac_err"; then
4750 eval "ac_cv_header_$ac_safe=yes"
4753 echo "configure: failed program was:" >&5
4754 cat conftest.$ac_ext >&5
4756 eval "ac_cv_header_$ac_safe=no"
4760 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4761 echo "$ac_t""yes" 1>&6
4762 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4763 cat >> confdefs.h <<EOF
4764 #define $ac_tr_hdr 1
4768 echo "$ac_t""no" 1>&6
4772 for ac_hdr in readline/history.h
4774 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4775 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4776 echo "configure:4777: checking for $ac_hdr" >&5
4777 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4778 echo $ac_n "(cached) $ac_c" 1>&6
4780 cat > conftest.$ac_ext <<EOF
4781 #line 4782 "configure"
4782 #include "confdefs.h"
4785 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4786 { (eval echo configure:4787: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4787 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4788 if test -z "$ac_err"; then
4790 eval "ac_cv_header_$ac_safe=yes"
4793 echo "configure: failed program was:" >&5
4794 cat conftest.$ac_ext >&5
4796 eval "ac_cv_header_$ac_safe=no"
4800 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4801 echo "$ac_t""yes" 1>&6
4802 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4803 cat >> confdefs.h <<EOF
4804 #define $ac_tr_hdr 1
4808 echo "$ac_t""no" 1>&6
4813 for ac_hdr in readline.h readline/readline.h
4815 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4816 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4817 echo "configure:4818: checking for $ac_hdr" >&5
4818 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4819 echo $ac_n "(cached) $ac_c" 1>&6
4821 cat > conftest.$ac_ext <<EOF
4822 #line 4823 "configure"
4823 #include "confdefs.h"
4826 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4827 { (eval echo configure:4828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4828 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4829 if test -z "$ac_err"; then
4831 eval "ac_cv_header_$ac_safe=yes"
4834 echo "configure: failed program was:" >&5
4835 cat conftest.$ac_ext >&5
4837 eval "ac_cv_header_$ac_safe=no"
4841 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4842 echo "$ac_t""yes" 1>&6
4843 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4844 cat >> confdefs.h <<EOF
4845 #define $ac_tr_hdr 1
4848 for termlib in ncurses curses termcap terminfo termlib; do
4849 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4850 echo "configure:4851: checking for tgetent in -l${termlib}" >&5
4851 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4852 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4853 echo $ac_n "(cached) $ac_c" 1>&6
4855 ac_save_LIBS="$LIBS"
4856 LIBS="-l${termlib} $LIBS"
4857 cat > conftest.$ac_ext <<EOF
4858 #line 4859 "configure"
4859 #include "confdefs.h"
4860 /* Override any gcc2 internal prototype to avoid an error. */
4861 /* We use char because int might match the return type of a gcc2
4862 builtin and then its argument prototype would still apply. */
4869 if { (eval echo configure:4870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4871 eval "ac_cv_lib_$ac_lib_var=yes"
4873 echo "configure: failed program was:" >&5
4874 cat conftest.$ac_ext >&5
4876 eval "ac_cv_lib_$ac_lib_var=no"
4879 LIBS="$ac_save_LIBS"
4882 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4883 echo "$ac_t""yes" 1>&6
4884 TERMLIBS="-l${termlib}"; break
4886 echo "$ac_t""no" 1>&6
4890 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4891 echo "configure:4892: checking for rl_callback_handler_install in -lreadline" >&5
4892 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4893 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4894 echo $ac_n "(cached) $ac_c" 1>&6
4896 ac_save_LIBS="$LIBS"
4897 LIBS="-lreadline $TERMLIBS $LIBS"
4898 cat > conftest.$ac_ext <<EOF
4899 #line 4900 "configure"
4900 #include "confdefs.h"
4901 /* Override any gcc2 internal prototype to avoid an error. */
4902 /* We use char because int might match the return type of a gcc2
4903 builtin and then its argument prototype would still apply. */
4904 char rl_callback_handler_install();
4907 rl_callback_handler_install()
4910 if { (eval echo configure:4911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4912 eval "ac_cv_lib_$ac_lib_var=yes"
4914 echo "configure: failed program was:" >&5
4915 cat conftest.$ac_ext >&5
4917 eval "ac_cv_lib_$ac_lib_var=no"
4920 LIBS="$ac_save_LIBS"
4923 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4924 echo "$ac_t""yes" 1>&6
4925 TERMLDFLAGS="-L$with_readline/lib"
4926 TERMCPPFLAGS="-I$with_readline/include"
4927 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4928 TERMLIBS="-lreadline $TERMLIBS"
4929 cat >> confdefs.h <<\EOF
4930 #define HAVE_LIBREADLINE 1
4935 echo "$ac_t""no" 1>&6
4936 TERMLIBS= CPPFLAGS=$_cppflags
4940 echo "$ac_t""no" 1>&6
4949 echo "$ac_t""no" 1>&6
4956 # The readline API changed slightly from readline3 to readline4, so
4957 # code will generate warnings on one of them unless we have a few
4959 echo $ac_n "checking for rl_completion_matches in -lreadline""... $ac_c" 1>&6
4960 echo "configure:4961: checking for rl_completion_matches in -lreadline" >&5
4961 ac_lib_var=`echo readline'_'rl_completion_matches | sed 'y%./+-%__p_%'`
4962 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4963 echo $ac_n "(cached) $ac_c" 1>&6
4965 ac_save_LIBS="$LIBS"
4966 LIBS="-lreadline $TERMLIBS $LIBS"
4967 cat > conftest.$ac_ext <<EOF
4968 #line 4969 "configure"
4969 #include "confdefs.h"
4970 /* Override any gcc2 internal prototype to avoid an error. */
4971 /* We use char because int might match the return type of a gcc2
4972 builtin and then its argument prototype would still apply. */
4973 char rl_completion_matches();
4976 rl_completion_matches()
4979 if { (eval echo configure:4980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4981 eval "ac_cv_lib_$ac_lib_var=yes"
4983 echo "configure: failed program was:" >&5
4984 cat conftest.$ac_ext >&5
4986 eval "ac_cv_lib_$ac_lib_var=no"
4989 LIBS="$ac_save_LIBS"
4992 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4993 echo "$ac_t""yes" 1>&6
4994 cat >> confdefs.h <<\EOF
4995 #define HAVE_NEW_LIBREADLINE 1
4999 echo "$ac_t""no" 1>&6
5003 # The following test taken from the cvs sources
5004 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
5005 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
5006 # libsocket.so which has a bad implementation of gethostbyname (it
5007 # only looks in /etc/hosts), so we only look for -lsocket if we need
5009 for ac_func in connect
5011 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5012 echo "configure:5013: checking for $ac_func" >&5
5013 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5014 echo $ac_n "(cached) $ac_c" 1>&6
5016 cat > conftest.$ac_ext <<EOF
5017 #line 5018 "configure"
5018 #include "confdefs.h"
5019 /* System header to define __stub macros and hopefully few prototypes,
5020 which can conflict with char $ac_func(); below. */
5022 /* Override any gcc2 internal prototype to avoid an error. */
5023 /* We use char because int might match the return type of a gcc2
5024 builtin and then its argument prototype would still apply. */
5029 /* The GNU C library defines this for functions which it implements
5030 to always fail with ENOSYS. Some functions are actually named
5031 something starting with __ and the normal name is an alias. */
5032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5040 if { (eval echo configure:5041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5042 eval "ac_cv_func_$ac_func=yes"
5044 echo "configure: failed program was:" >&5
5045 cat conftest.$ac_ext >&5
5047 eval "ac_cv_func_$ac_func=no"
5052 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5053 echo "$ac_t""yes" 1>&6
5054 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5055 cat >> confdefs.h <<EOF
5056 #define $ac_tr_func 1
5060 echo "$ac_t""no" 1>&6
5064 if test x"$ac_cv_func_connect" = x"no"; then
5067 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
5068 echo "configure:5069: checking for printf in -lnsl_s" >&5
5069 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
5070 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5071 echo $ac_n "(cached) $ac_c" 1>&6
5073 ac_save_LIBS="$LIBS"
5074 LIBS="-lnsl_s $LIBS"
5075 cat > conftest.$ac_ext <<EOF
5076 #line 5077 "configure"
5077 #include "confdefs.h"
5078 /* Override any gcc2 internal prototype to avoid an error. */
5079 /* We use char because int might match the return type of a gcc2
5080 builtin and then its argument prototype would still apply. */
5087 if { (eval echo configure:5088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5089 eval "ac_cv_lib_$ac_lib_var=yes"
5091 echo "configure: failed program was:" >&5
5092 cat conftest.$ac_ext >&5
5094 eval "ac_cv_lib_$ac_lib_var=no"
5097 LIBS="$ac_save_LIBS"
5100 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5101 echo "$ac_t""yes" 1>&6
5102 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5103 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5104 cat >> confdefs.h <<EOF
5105 #define $ac_tr_lib 1
5108 LIBS="-lnsl_s $LIBS"
5111 echo "$ac_t""no" 1>&6
5117 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
5118 echo "configure:5119: checking for printf in -lnsl" >&5
5119 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
5120 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5121 echo $ac_n "(cached) $ac_c" 1>&6
5123 ac_save_LIBS="$LIBS"
5125 cat > conftest.$ac_ext <<EOF
5126 #line 5127 "configure"
5127 #include "confdefs.h"
5128 /* Override any gcc2 internal prototype to avoid an error. */
5129 /* We use char because int might match the return type of a gcc2
5130 builtin and then its argument prototype would still apply. */
5137 if { (eval echo configure:5138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5139 eval "ac_cv_lib_$ac_lib_var=yes"
5141 echo "configure: failed program was:" >&5
5142 cat conftest.$ac_ext >&5
5144 eval "ac_cv_lib_$ac_lib_var=no"
5147 LIBS="$ac_save_LIBS"
5150 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5151 echo "$ac_t""yes" 1>&6
5152 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5153 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5154 cat >> confdefs.h <<EOF
5155 #define $ac_tr_lib 1
5161 echo "$ac_t""no" 1>&6
5167 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
5168 echo "configure:5169: checking for connect in -lsocket" >&5
5169 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5170 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5171 echo $ac_n "(cached) $ac_c" 1>&6
5173 ac_save_LIBS="$LIBS"
5174 LIBS="-lsocket $LIBS"
5175 cat > conftest.$ac_ext <<EOF
5176 #line 5177 "configure"
5177 #include "confdefs.h"
5178 /* Override any gcc2 internal prototype to avoid an error. */
5179 /* We use char because int might match the return type of a gcc2
5180 builtin and then its argument prototype would still apply. */
5187 if { (eval echo configure:5188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5189 eval "ac_cv_lib_$ac_lib_var=yes"
5191 echo "configure: failed program was:" >&5
5192 cat conftest.$ac_ext >&5
5194 eval "ac_cv_lib_$ac_lib_var=no"
5197 LIBS="$ac_save_LIBS"
5200 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5201 echo "$ac_t""yes" 1>&6
5202 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5203 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5204 cat >> confdefs.h <<EOF
5205 #define $ac_tr_lib 1
5208 LIBS="-lsocket $LIBS"
5211 echo "$ac_t""no" 1>&6
5217 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
5218 echo "configure:5219: checking for connect in -linet" >&5
5219 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
5220 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5221 echo $ac_n "(cached) $ac_c" 1>&6
5223 ac_save_LIBS="$LIBS"
5225 cat > conftest.$ac_ext <<EOF
5226 #line 5227 "configure"
5227 #include "confdefs.h"
5228 /* Override any gcc2 internal prototype to avoid an error. */
5229 /* We use char because int might match the return type of a gcc2
5230 builtin and then its argument prototype would still apply. */
5237 if { (eval echo configure:5238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5239 eval "ac_cv_lib_$ac_lib_var=yes"
5241 echo "configure: failed program was:" >&5
5242 cat conftest.$ac_ext >&5
5244 eval "ac_cv_lib_$ac_lib_var=no"
5247 LIBS="$ac_save_LIBS"
5250 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5251 echo "$ac_t""yes" 1>&6
5252 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5253 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5254 cat >> confdefs.h <<EOF
5255 #define $ac_tr_lib 1
5261 echo "$ac_t""no" 1>&6
5265 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
5266 test x"$ac_cv_lib_inet_connect" = x"yes"; then
5267 # ac_cv_func_connect=yes
5268 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
5269 cat >> confdefs.h <<\EOF
5270 #define HAVE_CONNECT 1
5276 ###############################################
5277 # test for where we get get_yp_default_domain() from
5278 for ac_func in yp_get_default_domain
5280 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5281 echo "configure:5282: checking for $ac_func" >&5
5282 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5283 echo $ac_n "(cached) $ac_c" 1>&6
5285 cat > conftest.$ac_ext <<EOF
5286 #line 5287 "configure"
5287 #include "confdefs.h"
5288 /* System header to define __stub macros and hopefully few prototypes,
5289 which can conflict with char $ac_func(); below. */
5291 /* Override any gcc2 internal prototype to avoid an error. */
5292 /* We use char because int might match the return type of a gcc2
5293 builtin and then its argument prototype would still apply. */
5298 /* The GNU C library defines this for functions which it implements
5299 to always fail with ENOSYS. Some functions are actually named
5300 something starting with __ and the normal name is an alias. */
5301 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5309 if { (eval echo configure:5310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5311 eval "ac_cv_func_$ac_func=yes"
5313 echo "configure: failed program was:" >&5
5314 cat conftest.$ac_ext >&5
5316 eval "ac_cv_func_$ac_func=no"
5321 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5322 echo "$ac_t""yes" 1>&6
5323 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5324 cat >> confdefs.h <<EOF
5325 #define $ac_tr_func 1
5329 echo "$ac_t""no" 1>&6
5333 if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then
5334 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
5335 echo "configure:5336: checking for yp_get_default_domain in -lnsl" >&5
5336 ac_lib_var=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
5337 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5338 echo $ac_n "(cached) $ac_c" 1>&6
5340 ac_save_LIBS="$LIBS"
5342 cat > conftest.$ac_ext <<EOF
5343 #line 5344 "configure"
5344 #include "confdefs.h"
5345 /* Override any gcc2 internal prototype to avoid an error. */
5346 /* We use char because int might match the return type of a gcc2
5347 builtin and then its argument prototype would still apply. */
5348 char yp_get_default_domain();
5351 yp_get_default_domain()
5354 if { (eval echo configure:5355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5356 eval "ac_cv_lib_$ac_lib_var=yes"
5358 echo "configure: failed program was:" >&5
5359 cat conftest.$ac_ext >&5
5361 eval "ac_cv_lib_$ac_lib_var=no"
5364 LIBS="$ac_save_LIBS"
5367 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5368 echo "$ac_t""yes" 1>&6
5370 cat >> confdefs.h <<\EOF
5371 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
5375 echo "$ac_t""no" 1>&6
5380 # Check if we have execl, if not we need to compile smbrun.
5381 for ac_func in execl
5383 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5384 echo "configure:5385: checking for $ac_func" >&5
5385 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5386 echo $ac_n "(cached) $ac_c" 1>&6
5388 cat > conftest.$ac_ext <<EOF
5389 #line 5390 "configure"
5390 #include "confdefs.h"
5391 /* System header to define __stub macros and hopefully few prototypes,
5392 which can conflict with char $ac_func(); below. */
5394 /* Override any gcc2 internal prototype to avoid an error. */
5395 /* We use char because int might match the return type of a gcc2
5396 builtin and then its argument prototype would still apply. */
5401 /* The GNU C library defines this for functions which it implements
5402 to always fail with ENOSYS. Some functions are actually named
5403 something starting with __ and the normal name is an alias. */
5404 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5412 if { (eval echo configure:5413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5414 eval "ac_cv_func_$ac_func=yes"
5416 echo "configure: failed program was:" >&5
5417 cat conftest.$ac_ext >&5
5419 eval "ac_cv_func_$ac_func=no"
5424 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5425 echo "$ac_t""yes" 1>&6
5426 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5427 cat >> confdefs.h <<EOF
5428 #define $ac_tr_func 1
5432 echo "$ac_t""no" 1>&6
5436 if test x"$ac_cv_func_execl" = x"no"; then
5437 RUNPROG="bin/smbrun"
5442 for ac_func in dlopen dlclose dlsym dlerror waitpid getcwd strdup strndup strnlen strtoul strerror chown fchown chmod fchmod chroot link mknod mknod64
5444 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5445 echo "configure:5446: checking for $ac_func" >&5
5446 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5447 echo $ac_n "(cached) $ac_c" 1>&6
5449 cat > conftest.$ac_ext <<EOF
5450 #line 5451 "configure"
5451 #include "confdefs.h"
5452 /* System header to define __stub macros and hopefully few prototypes,
5453 which can conflict with char $ac_func(); below. */
5455 /* Override any gcc2 internal prototype to avoid an error. */
5456 /* We use char because int might match the return type of a gcc2
5457 builtin and then its argument prototype would still apply. */
5462 /* The GNU C library defines this for functions which it implements
5463 to always fail with ENOSYS. Some functions are actually named
5464 something starting with __ and the normal name is an alias. */
5465 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5473 if { (eval echo configure:5474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5475 eval "ac_cv_func_$ac_func=yes"
5477 echo "configure: failed program was:" >&5
5478 cat conftest.$ac_ext >&5
5480 eval "ac_cv_func_$ac_func=no"
5485 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5486 echo "$ac_t""yes" 1>&6
5487 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5488 cat >> confdefs.h <<EOF
5489 #define $ac_tr_func 1
5493 echo "$ac_t""no" 1>&6
5497 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset strlcpy strlcat setpgid
5499 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5500 echo "configure:5501: checking for $ac_func" >&5
5501 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5502 echo $ac_n "(cached) $ac_c" 1>&6
5504 cat > conftest.$ac_ext <<EOF
5505 #line 5506 "configure"
5506 #include "confdefs.h"
5507 /* System header to define __stub macros and hopefully few prototypes,
5508 which can conflict with char $ac_func(); below. */
5510 /* Override any gcc2 internal prototype to avoid an error. */
5511 /* We use char because int might match the return type of a gcc2
5512 builtin and then its argument prototype would still apply. */
5517 /* The GNU C library defines this for functions which it implements
5518 to always fail with ENOSYS. Some functions are actually named
5519 something starting with __ and the normal name is an alias. */
5520 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5528 if { (eval echo configure:5529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5530 eval "ac_cv_func_$ac_func=yes"
5532 echo "configure: failed program was:" >&5
5533 cat conftest.$ac_ext >&5
5535 eval "ac_cv_func_$ac_func=no"
5540 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5541 echo "$ac_t""yes" 1>&6
5542 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5543 cat >> confdefs.h <<EOF
5544 #define $ac_tr_func 1
5548 echo "$ac_t""no" 1>&6
5552 for ac_func in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5554 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5555 echo "configure:5556: checking for $ac_func" >&5
5556 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5557 echo $ac_n "(cached) $ac_c" 1>&6
5559 cat > conftest.$ac_ext <<EOF
5560 #line 5561 "configure"
5561 #include "confdefs.h"
5562 /* System header to define __stub macros and hopefully few prototypes,
5563 which can conflict with char $ac_func(); below. */
5565 /* Override any gcc2 internal prototype to avoid an error. */
5566 /* We use char because int might match the return type of a gcc2
5567 builtin and then its argument prototype would still apply. */
5572 /* The GNU C library defines this for functions which it implements
5573 to always fail with ENOSYS. Some functions are actually named
5574 something starting with __ and the normal name is an alias. */
5575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5583 if { (eval echo configure:5584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5585 eval "ac_cv_func_$ac_func=yes"
5587 echo "configure: failed program was:" >&5
5588 cat conftest.$ac_ext >&5
5590 eval "ac_cv_func_$ac_func=no"
5595 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5596 echo "$ac_t""yes" 1>&6
5597 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5598 cat >> confdefs.h <<EOF
5599 #define $ac_tr_func 1
5603 echo "$ac_t""no" 1>&6
5607 for ac_func in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
5609 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5610 echo "configure:5611: checking for $ac_func" >&5
5611 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5612 echo $ac_n "(cached) $ac_c" 1>&6
5614 cat > conftest.$ac_ext <<EOF
5615 #line 5616 "configure"
5616 #include "confdefs.h"
5617 /* System header to define __stub macros and hopefully few prototypes,
5618 which can conflict with char $ac_func(); below. */
5620 /* Override any gcc2 internal prototype to avoid an error. */
5621 /* We use char because int might match the return type of a gcc2
5622 builtin and then its argument prototype would still apply. */
5627 /* The GNU C library defines this for functions which it implements
5628 to always fail with ENOSYS. Some functions are actually named
5629 something starting with __ and the normal name is an alias. */
5630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5638 if { (eval echo configure:5639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5640 eval "ac_cv_func_$ac_func=yes"
5642 echo "configure: failed program was:" >&5
5643 cat conftest.$ac_ext >&5
5645 eval "ac_cv_func_$ac_func=no"
5650 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5651 echo "$ac_t""yes" 1>&6
5652 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5653 cat >> confdefs.h <<EOF
5654 #define $ac_tr_func 1
5658 echo "$ac_t""no" 1>&6
5662 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf realpath
5664 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5665 echo "configure:5666: checking for $ac_func" >&5
5666 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5667 echo $ac_n "(cached) $ac_c" 1>&6
5669 cat > conftest.$ac_ext <<EOF
5670 #line 5671 "configure"
5671 #include "confdefs.h"
5672 /* System header to define __stub macros and hopefully few prototypes,
5673 which can conflict with char $ac_func(); below. */
5675 /* Override any gcc2 internal prototype to avoid an error. */
5676 /* We use char because int might match the return type of a gcc2
5677 builtin and then its argument prototype would still apply. */
5682 /* The GNU C library defines this for functions which it implements
5683 to always fail with ENOSYS. Some functions are actually named
5684 something starting with __ and the normal name is an alias. */
5685 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5693 if { (eval echo configure:5694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5695 eval "ac_cv_func_$ac_func=yes"
5697 echo "configure: failed program was:" >&5
5698 cat conftest.$ac_ext >&5
5700 eval "ac_cv_func_$ac_func=no"
5705 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5706 echo "$ac_t""yes" 1>&6
5707 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5708 cat >> confdefs.h <<EOF
5709 #define $ac_tr_func 1
5713 echo "$ac_t""no" 1>&6
5717 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5719 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5720 echo "configure:5721: checking for $ac_func" >&5
5721 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5722 echo $ac_n "(cached) $ac_c" 1>&6
5724 cat > conftest.$ac_ext <<EOF
5725 #line 5726 "configure"
5726 #include "confdefs.h"
5727 /* System header to define __stub macros and hopefully few prototypes,
5728 which can conflict with char $ac_func(); below. */
5730 /* Override any gcc2 internal prototype to avoid an error. */
5731 /* We use char because int might match the return type of a gcc2
5732 builtin and then its argument prototype would still apply. */
5737 /* The GNU C library defines this for functions which it implements
5738 to always fail with ENOSYS. Some functions are actually named
5739 something starting with __ and the normal name is an alias. */
5740 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5748 if { (eval echo configure:5749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5750 eval "ac_cv_func_$ac_func=yes"
5752 echo "configure: failed program was:" >&5
5753 cat conftest.$ac_ext >&5
5755 eval "ac_cv_func_$ac_func=no"
5760 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5761 echo "$ac_t""yes" 1>&6
5762 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5763 cat >> confdefs.h <<EOF
5764 #define $ac_tr_func 1
5768 echo "$ac_t""no" 1>&6
5772 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5774 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5775 echo "configure:5776: checking for $ac_func" >&5
5776 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5777 echo $ac_n "(cached) $ac_c" 1>&6
5779 cat > conftest.$ac_ext <<EOF
5780 #line 5781 "configure"
5781 #include "confdefs.h"
5782 /* System header to define __stub macros and hopefully few prototypes,
5783 which can conflict with char $ac_func(); below. */
5785 /* Override any gcc2 internal prototype to avoid an error. */
5786 /* We use char because int might match the return type of a gcc2
5787 builtin and then its argument prototype would still apply. */
5792 /* The GNU C library defines this for functions which it implements
5793 to always fail with ENOSYS. Some functions are actually named
5794 something starting with __ and the normal name is an alias. */
5795 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5803 if { (eval echo configure:5804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5805 eval "ac_cv_func_$ac_func=yes"
5807 echo "configure: failed program was:" >&5
5808 cat conftest.$ac_ext >&5
5810 eval "ac_cv_func_$ac_func=no"
5815 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5816 echo "$ac_t""yes" 1>&6
5817 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5818 cat >> confdefs.h <<EOF
5819 #define $ac_tr_func 1
5823 echo "$ac_t""no" 1>&6
5827 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5829 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5830 echo "configure:5831: checking for $ac_func" >&5
5831 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5832 echo $ac_n "(cached) $ac_c" 1>&6
5834 cat > conftest.$ac_ext <<EOF
5835 #line 5836 "configure"
5836 #include "confdefs.h"
5837 /* System header to define __stub macros and hopefully few prototypes,
5838 which can conflict with char $ac_func(); below. */
5840 /* Override any gcc2 internal prototype to avoid an error. */
5841 /* We use char because int might match the return type of a gcc2
5842 builtin and then its argument prototype would still apply. */
5847 /* The GNU C library defines this for functions which it implements
5848 to always fail with ENOSYS. Some functions are actually named
5849 something starting with __ and the normal name is an alias. */
5850 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5858 if { (eval echo configure:5859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5860 eval "ac_cv_func_$ac_func=yes"
5862 echo "configure: failed program was:" >&5
5863 cat conftest.$ac_ext >&5
5865 eval "ac_cv_func_$ac_func=no"
5870 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5871 echo "$ac_t""yes" 1>&6
5872 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5873 cat >> confdefs.h <<EOF
5874 #define $ac_tr_func 1
5878 echo "$ac_t""no" 1>&6
5882 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl symlink readlink
5884 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5885 echo "configure:5886: checking for $ac_func" >&5
5886 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5887 echo $ac_n "(cached) $ac_c" 1>&6
5889 cat > conftest.$ac_ext <<EOF
5890 #line 5891 "configure"
5891 #include "confdefs.h"
5892 /* System header to define __stub macros and hopefully few prototypes,
5893 which can conflict with char $ac_func(); below. */
5895 /* Override any gcc2 internal prototype to avoid an error. */
5896 /* We use char because int might match the return type of a gcc2
5897 builtin and then its argument prototype would still apply. */
5902 /* The GNU C library defines this for functions which it implements
5903 to always fail with ENOSYS. Some functions are actually named
5904 something starting with __ and the normal name is an alias. */
5905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5913 if { (eval echo configure:5914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5915 eval "ac_cv_func_$ac_func=yes"
5917 echo "configure: failed program was:" >&5
5918 cat conftest.$ac_ext >&5
5920 eval "ac_cv_func_$ac_func=no"
5925 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5926 echo "$ac_t""yes" 1>&6
5927 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5928 cat >> confdefs.h <<EOF
5929 #define $ac_tr_func 1
5933 echo "$ac_t""no" 1>&6
5937 for ac_func in syslog vsyslog getgrouplist
5939 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5940 echo "configure:5941: checking for $ac_func" >&5
5941 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5942 echo $ac_n "(cached) $ac_c" 1>&6
5944 cat > conftest.$ac_ext <<EOF
5945 #line 5946 "configure"
5946 #include "confdefs.h"
5947 /* System header to define __stub macros and hopefully few prototypes,
5948 which can conflict with char $ac_func(); below. */
5950 /* Override any gcc2 internal prototype to avoid an error. */
5951 /* We use char because int might match the return type of a gcc2
5952 builtin and then its argument prototype would still apply. */
5957 /* The GNU C library defines this for functions which it implements
5958 to always fail with ENOSYS. Some functions are actually named
5959 something starting with __ and the normal name is an alias. */
5960 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5968 if { (eval echo configure:5969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5970 eval "ac_cv_func_$ac_func=yes"
5972 echo "configure: failed program was:" >&5
5973 cat conftest.$ac_ext >&5
5975 eval "ac_cv_func_$ac_func=no"
5980 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5981 echo "$ac_t""yes" 1>&6
5982 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5983 cat >> confdefs.h <<EOF
5984 #define $ac_tr_func 1
5988 echo "$ac_t""no" 1>&6
5992 # setbuffer is needed for smbtorture
5993 for ac_func in setbuffer
5995 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5996 echo "configure:5997: checking for $ac_func" >&5
5997 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5998 echo $ac_n "(cached) $ac_c" 1>&6
6000 cat > conftest.$ac_ext <<EOF
6001 #line 6002 "configure"
6002 #include "confdefs.h"
6003 /* System header to define __stub macros and hopefully few prototypes,
6004 which can conflict with char $ac_func(); below. */
6006 /* Override any gcc2 internal prototype to avoid an error. */
6007 /* We use char because int might match the return type of a gcc2
6008 builtin and then its argument prototype would still apply. */
6013 /* The GNU C library defines this for functions which it implements
6014 to always fail with ENOSYS. Some functions are actually named
6015 something starting with __ and the normal name is an alias. */
6016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6024 if { (eval echo configure:6025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6026 eval "ac_cv_func_$ac_func=yes"
6028 echo "configure: failed program was:" >&5
6029 cat conftest.$ac_ext >&5
6031 eval "ac_cv_func_$ac_func=no"
6036 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6037 echo "$ac_t""yes" 1>&6
6038 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6039 cat >> confdefs.h <<EOF
6040 #define $ac_tr_func 1
6044 echo "$ac_t""no" 1>&6
6049 # syscall() is needed for smbwrapper.
6050 for ac_func in syscall
6052 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6053 echo "configure:6054: checking for $ac_func" >&5
6054 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6055 echo $ac_n "(cached) $ac_c" 1>&6
6057 cat > conftest.$ac_ext <<EOF
6058 #line 6059 "configure"
6059 #include "confdefs.h"
6060 /* System header to define __stub macros and hopefully few prototypes,
6061 which can conflict with char $ac_func(); below. */
6063 /* Override any gcc2 internal prototype to avoid an error. */
6064 /* We use char because int might match the return type of a gcc2
6065 builtin and then its argument prototype would still apply. */
6070 /* The GNU C library defines this for functions which it implements
6071 to always fail with ENOSYS. Some functions are actually named
6072 something starting with __ and the normal name is an alias. */
6073 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6081 if { (eval echo configure:6082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6083 eval "ac_cv_func_$ac_func=yes"
6085 echo "configure: failed program was:" >&5
6086 cat conftest.$ac_ext >&5
6088 eval "ac_cv_func_$ac_func=no"
6093 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6094 echo "$ac_t""yes" 1>&6
6095 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6096 cat >> confdefs.h <<EOF
6097 #define $ac_tr_func 1
6101 echo "$ac_t""no" 1>&6
6106 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
6108 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6109 echo "configure:6110: checking for $ac_func" >&5
6110 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6111 echo $ac_n "(cached) $ac_c" 1>&6
6113 cat > conftest.$ac_ext <<EOF
6114 #line 6115 "configure"
6115 #include "confdefs.h"
6116 /* System header to define __stub macros and hopefully few prototypes,
6117 which can conflict with char $ac_func(); below. */
6119 /* Override any gcc2 internal prototype to avoid an error. */
6120 /* We use char because int might match the return type of a gcc2
6121 builtin and then its argument prototype would still apply. */
6126 /* The GNU C library defines this for functions which it implements
6127 to always fail with ENOSYS. Some functions are actually named
6128 something starting with __ and the normal name is an alias. */
6129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6137 if { (eval echo configure:6138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6139 eval "ac_cv_func_$ac_func=yes"
6141 echo "configure: failed program was:" >&5
6142 cat conftest.$ac_ext >&5
6144 eval "ac_cv_func_$ac_func=no"
6149 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6150 echo "$ac_t""yes" 1>&6
6151 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6152 cat >> confdefs.h <<EOF
6153 #define $ac_tr_func 1
6157 echo "$ac_t""no" 1>&6
6161 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
6163 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6164 echo "configure:6165: checking for $ac_func" >&5
6165 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6166 echo $ac_n "(cached) $ac_c" 1>&6
6168 cat > conftest.$ac_ext <<EOF
6169 #line 6170 "configure"
6170 #include "confdefs.h"
6171 /* System header to define __stub macros and hopefully few prototypes,
6172 which can conflict with char $ac_func(); below. */
6174 /* Override any gcc2 internal prototype to avoid an error. */
6175 /* We use char because int might match the return type of a gcc2
6176 builtin and then its argument prototype would still apply. */
6181 /* The GNU C library defines this for functions which it implements
6182 to always fail with ENOSYS. Some functions are actually named
6183 something starting with __ and the normal name is an alias. */
6184 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6192 if { (eval echo configure:6193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6194 eval "ac_cv_func_$ac_func=yes"
6196 echo "configure: failed program was:" >&5
6197 cat conftest.$ac_ext >&5
6199 eval "ac_cv_func_$ac_func=no"
6204 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6205 echo "$ac_t""yes" 1>&6
6206 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6207 cat >> confdefs.h <<EOF
6208 #define $ac_tr_func 1
6212 echo "$ac_t""no" 1>&6
6216 for ac_func in __getcwd _getcwd
6218 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6219 echo "configure:6220: checking for $ac_func" >&5
6220 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6221 echo $ac_n "(cached) $ac_c" 1>&6
6223 cat > conftest.$ac_ext <<EOF
6224 #line 6225 "configure"
6225 #include "confdefs.h"
6226 /* System header to define __stub macros and hopefully few prototypes,
6227 which can conflict with char $ac_func(); below. */
6229 /* Override any gcc2 internal prototype to avoid an error. */
6230 /* We use char because int might match the return type of a gcc2
6231 builtin and then its argument prototype would still apply. */
6236 /* The GNU C library defines this for functions which it implements
6237 to always fail with ENOSYS. Some functions are actually named
6238 something starting with __ and the normal name is an alias. */
6239 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6247 if { (eval echo configure:6248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6249 eval "ac_cv_func_$ac_func=yes"
6251 echo "configure: failed program was:" >&5
6252 cat conftest.$ac_ext >&5
6254 eval "ac_cv_func_$ac_func=no"
6259 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6260 echo "$ac_t""yes" 1>&6
6261 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6262 cat >> confdefs.h <<EOF
6263 #define $ac_tr_func 1
6267 echo "$ac_t""no" 1>&6
6271 for ac_func in __xstat __fxstat __lxstat
6273 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6274 echo "configure:6275: checking for $ac_func" >&5
6275 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6276 echo $ac_n "(cached) $ac_c" 1>&6
6278 cat > conftest.$ac_ext <<EOF
6279 #line 6280 "configure"
6280 #include "confdefs.h"
6281 /* System header to define __stub macros and hopefully few prototypes,
6282 which can conflict with char $ac_func(); below. */
6284 /* Override any gcc2 internal prototype to avoid an error. */
6285 /* We use char because int might match the return type of a gcc2
6286 builtin and then its argument prototype would still apply. */
6291 /* The GNU C library defines this for functions which it implements
6292 to always fail with ENOSYS. Some functions are actually named
6293 something starting with __ and the normal name is an alias. */
6294 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6302 if { (eval echo configure:6303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6304 eval "ac_cv_func_$ac_func=yes"
6306 echo "configure: failed program was:" >&5
6307 cat conftest.$ac_ext >&5
6309 eval "ac_cv_func_$ac_func=no"
6314 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6315 echo "$ac_t""yes" 1>&6
6316 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6317 cat >> confdefs.h <<EOF
6318 #define $ac_tr_func 1
6322 echo "$ac_t""no" 1>&6
6326 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
6328 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6329 echo "configure:6330: checking for $ac_func" >&5
6330 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6331 echo $ac_n "(cached) $ac_c" 1>&6
6333 cat > conftest.$ac_ext <<EOF
6334 #line 6335 "configure"
6335 #include "confdefs.h"
6336 /* System header to define __stub macros and hopefully few prototypes,
6337 which can conflict with char $ac_func(); below. */
6339 /* Override any gcc2 internal prototype to avoid an error. */
6340 /* We use char because int might match the return type of a gcc2
6341 builtin and then its argument prototype would still apply. */
6346 /* The GNU C library defines this for functions which it implements
6347 to always fail with ENOSYS. Some functions are actually named
6348 something starting with __ and the normal name is an alias. */
6349 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6357 if { (eval echo configure:6358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6359 eval "ac_cv_func_$ac_func=yes"
6361 echo "configure: failed program was:" >&5
6362 cat conftest.$ac_ext >&5
6364 eval "ac_cv_func_$ac_func=no"
6369 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6370 echo "$ac_t""yes" 1>&6
6371 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6372 cat >> confdefs.h <<EOF
6373 #define $ac_tr_func 1
6377 echo "$ac_t""no" 1>&6
6381 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
6383 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6384 echo "configure:6385: checking for $ac_func" >&5
6385 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6386 echo $ac_n "(cached) $ac_c" 1>&6
6388 cat > conftest.$ac_ext <<EOF
6389 #line 6390 "configure"
6390 #include "confdefs.h"
6391 /* System header to define __stub macros and hopefully few prototypes,
6392 which can conflict with char $ac_func(); below. */
6394 /* Override any gcc2 internal prototype to avoid an error. */
6395 /* We use char because int might match the return type of a gcc2
6396 builtin and then its argument prototype would still apply. */
6401 /* The GNU C library defines this for functions which it implements
6402 to always fail with ENOSYS. Some functions are actually named
6403 something starting with __ and the normal name is an alias. */
6404 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6412 if { (eval echo configure:6413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6414 eval "ac_cv_func_$ac_func=yes"
6416 echo "configure: failed program was:" >&5
6417 cat conftest.$ac_ext >&5
6419 eval "ac_cv_func_$ac_func=no"
6424 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6425 echo "$ac_t""yes" 1>&6
6426 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6427 cat >> confdefs.h <<EOF
6428 #define $ac_tr_func 1
6432 echo "$ac_t""no" 1>&6
6436 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
6438 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6439 echo "configure:6440: checking for $ac_func" >&5
6440 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6441 echo $ac_n "(cached) $ac_c" 1>&6
6443 cat > conftest.$ac_ext <<EOF
6444 #line 6445 "configure"
6445 #include "confdefs.h"
6446 /* System header to define __stub macros and hopefully few prototypes,
6447 which can conflict with char $ac_func(); below. */
6449 /* Override any gcc2 internal prototype to avoid an error. */
6450 /* We use char because int might match the return type of a gcc2
6451 builtin and then its argument prototype would still apply. */
6456 /* The GNU C library defines this for functions which it implements
6457 to always fail with ENOSYS. Some functions are actually named
6458 something starting with __ and the normal name is an alias. */
6459 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6467 if { (eval echo configure:6468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6469 eval "ac_cv_func_$ac_func=yes"
6471 echo "configure: failed program was:" >&5
6472 cat conftest.$ac_ext >&5
6474 eval "ac_cv_func_$ac_func=no"
6479 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6480 echo "$ac_t""yes" 1>&6
6481 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6482 cat >> confdefs.h <<EOF
6483 #define $ac_tr_func 1
6487 echo "$ac_t""no" 1>&6
6491 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
6493 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6494 echo "configure:6495: checking for $ac_func" >&5
6495 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6496 echo $ac_n "(cached) $ac_c" 1>&6
6498 cat > conftest.$ac_ext <<EOF
6499 #line 6500 "configure"
6500 #include "confdefs.h"
6501 /* System header to define __stub macros and hopefully few prototypes,
6502 which can conflict with char $ac_func(); below. */
6504 /* Override any gcc2 internal prototype to avoid an error. */
6505 /* We use char because int might match the return type of a gcc2
6506 builtin and then its argument prototype would still apply. */
6511 /* The GNU C library defines this for functions which it implements
6512 to always fail with ENOSYS. Some functions are actually named
6513 something starting with __ and the normal name is an alias. */
6514 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6522 if { (eval echo configure:6523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6524 eval "ac_cv_func_$ac_func=yes"
6526 echo "configure: failed program was:" >&5
6527 cat conftest.$ac_ext >&5
6529 eval "ac_cv_func_$ac_func=no"
6534 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6535 echo "$ac_t""yes" 1>&6
6536 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6537 cat >> confdefs.h <<EOF
6538 #define $ac_tr_func 1
6542 echo "$ac_t""no" 1>&6
6546 for ac_func in _write __write _fork __fork
6548 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6549 echo "configure:6550: checking for $ac_func" >&5
6550 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6551 echo $ac_n "(cached) $ac_c" 1>&6
6553 cat > conftest.$ac_ext <<EOF
6554 #line 6555 "configure"
6555 #include "confdefs.h"
6556 /* System header to define __stub macros and hopefully few prototypes,
6557 which can conflict with char $ac_func(); below. */
6559 /* Override any gcc2 internal prototype to avoid an error. */
6560 /* We use char because int might match the return type of a gcc2
6561 builtin and then its argument prototype would still apply. */
6566 /* The GNU C library defines this for functions which it implements
6567 to always fail with ENOSYS. Some functions are actually named
6568 something starting with __ and the normal name is an alias. */
6569 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6577 if { (eval echo configure:6578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6579 eval "ac_cv_func_$ac_func=yes"
6581 echo "configure: failed program was:" >&5
6582 cat conftest.$ac_ext >&5
6584 eval "ac_cv_func_$ac_func=no"
6589 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6590 echo "$ac_t""yes" 1>&6
6591 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6592 cat >> confdefs.h <<EOF
6593 #define $ac_tr_func 1
6597 echo "$ac_t""no" 1>&6
6601 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6603 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6604 echo "configure:6605: checking for $ac_func" >&5
6605 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6606 echo $ac_n "(cached) $ac_c" 1>&6
6608 cat > conftest.$ac_ext <<EOF
6609 #line 6610 "configure"
6610 #include "confdefs.h"
6611 /* System header to define __stub macros and hopefully few prototypes,
6612 which can conflict with char $ac_func(); below. */
6614 /* Override any gcc2 internal prototype to avoid an error. */
6615 /* We use char because int might match the return type of a gcc2
6616 builtin and then its argument prototype would still apply. */
6621 /* The GNU C library defines this for functions which it implements
6622 to always fail with ENOSYS. Some functions are actually named
6623 something starting with __ and the normal name is an alias. */
6624 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6632 if { (eval echo configure:6633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6634 eval "ac_cv_func_$ac_func=yes"
6636 echo "configure: failed program was:" >&5
6637 cat conftest.$ac_ext >&5
6639 eval "ac_cv_func_$ac_func=no"
6644 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6645 echo "$ac_t""yes" 1>&6
6646 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6647 cat >> confdefs.h <<EOF
6648 #define $ac_tr_func 1
6652 echo "$ac_t""no" 1>&6
6656 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6658 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6659 echo "configure:6660: checking for $ac_func" >&5
6660 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6661 echo $ac_n "(cached) $ac_c" 1>&6
6663 cat > conftest.$ac_ext <<EOF
6664 #line 6665 "configure"
6665 #include "confdefs.h"
6666 /* System header to define __stub macros and hopefully few prototypes,
6667 which can conflict with char $ac_func(); below. */
6669 /* Override any gcc2 internal prototype to avoid an error. */
6670 /* We use char because int might match the return type of a gcc2
6671 builtin and then its argument prototype would still apply. */
6676 /* The GNU C library defines this for functions which it implements
6677 to always fail with ENOSYS. Some functions are actually named
6678 something starting with __ and the normal name is an alias. */
6679 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6687 if { (eval echo configure:6688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6689 eval "ac_cv_func_$ac_func=yes"
6691 echo "configure: failed program was:" >&5
6692 cat conftest.$ac_ext >&5
6694 eval "ac_cv_func_$ac_func=no"
6699 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6700 echo "$ac_t""yes" 1>&6
6701 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6702 cat >> confdefs.h <<EOF
6703 #define $ac_tr_func 1
6707 echo "$ac_t""no" 1>&6
6711 for ac_func in pread _pread __pread pread64 _pread64 __pread64
6713 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6714 echo "configure:6715: checking for $ac_func" >&5
6715 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6716 echo $ac_n "(cached) $ac_c" 1>&6
6718 cat > conftest.$ac_ext <<EOF
6719 #line 6720 "configure"
6720 #include "confdefs.h"
6721 /* System header to define __stub macros and hopefully few prototypes,
6722 which can conflict with char $ac_func(); below. */
6724 /* Override any gcc2 internal prototype to avoid an error. */
6725 /* We use char because int might match the return type of a gcc2
6726 builtin and then its argument prototype would still apply. */
6731 /* The GNU C library defines this for functions which it implements
6732 to always fail with ENOSYS. Some functions are actually named
6733 something starting with __ and the normal name is an alias. */
6734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6742 if { (eval echo configure:6743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6744 eval "ac_cv_func_$ac_func=yes"
6746 echo "configure: failed program was:" >&5
6747 cat conftest.$ac_ext >&5
6749 eval "ac_cv_func_$ac_func=no"
6754 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6755 echo "$ac_t""yes" 1>&6
6756 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6757 cat >> confdefs.h <<EOF
6758 #define $ac_tr_func 1
6762 echo "$ac_t""no" 1>&6
6766 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6768 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6769 echo "configure:6770: checking for $ac_func" >&5
6770 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6771 echo $ac_n "(cached) $ac_c" 1>&6
6773 cat > conftest.$ac_ext <<EOF
6774 #line 6775 "configure"
6775 #include "confdefs.h"
6776 /* System header to define __stub macros and hopefully few prototypes,
6777 which can conflict with char $ac_func(); below. */
6779 /* Override any gcc2 internal prototype to avoid an error. */
6780 /* We use char because int might match the return type of a gcc2
6781 builtin and then its argument prototype would still apply. */
6786 /* The GNU C library defines this for functions which it implements
6787 to always fail with ENOSYS. Some functions are actually named
6788 something starting with __ and the normal name is an alias. */
6789 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6797 if { (eval echo configure:6798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6799 eval "ac_cv_func_$ac_func=yes"
6801 echo "configure: failed program was:" >&5
6802 cat conftest.$ac_ext >&5
6804 eval "ac_cv_func_$ac_func=no"
6809 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6810 echo "$ac_t""yes" 1>&6
6811 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6812 cat >> confdefs.h <<EOF
6813 #define $ac_tr_func 1
6817 echo "$ac_t""no" 1>&6
6821 for ac_func in open64 _open64 __open64 creat64
6823 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6824 echo "configure:6825: checking for $ac_func" >&5
6825 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6826 echo $ac_n "(cached) $ac_c" 1>&6
6828 cat > conftest.$ac_ext <<EOF
6829 #line 6830 "configure"
6830 #include "confdefs.h"
6831 /* System header to define __stub macros and hopefully few prototypes,
6832 which can conflict with char $ac_func(); below. */
6834 /* Override any gcc2 internal prototype to avoid an error. */
6835 /* We use char because int might match the return type of a gcc2
6836 builtin and then its argument prototype would still apply. */
6841 /* The GNU C library defines this for functions which it implements
6842 to always fail with ENOSYS. Some functions are actually named
6843 something starting with __ and the normal name is an alias. */
6844 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6852 if { (eval echo configure:6853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6854 eval "ac_cv_func_$ac_func=yes"
6856 echo "configure: failed program was:" >&5
6857 cat conftest.$ac_ext >&5
6859 eval "ac_cv_func_$ac_func=no"
6864 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6865 echo "$ac_t""yes" 1>&6
6866 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6867 cat >> confdefs.h <<EOF
6868 #define $ac_tr_func 1
6872 echo "$ac_t""no" 1>&6
6878 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6881 if test x$ac_cv_func_stat64 = xno ; then
6882 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6883 echo "configure:6884: checking for stat64 in <sys/stat.h>" >&5
6884 cat > conftest.$ac_ext <<EOF
6885 #line 6886 "configure"
6886 #include "confdefs.h"
6888 #if defined(HAVE_UNISTD_H)
6891 #include <sys/stat.h>
6894 struct stat64 st64; exit(stat64(".",&st64));
6897 if { (eval echo configure:6898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6899 ac_cv_func_stat64=yes
6901 echo "configure: failed program was:" >&5
6902 cat conftest.$ac_ext >&5
6905 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6906 if test x$ac_cv_func_stat64 = xyes ; then
6907 cat >> confdefs.h <<\EOF
6908 #define HAVE_STAT64 1
6914 if test x$ac_cv_func_lstat64 = xno ; then
6915 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6916 echo "configure:6917: checking for lstat64 in <sys/stat.h>" >&5
6917 cat > conftest.$ac_ext <<EOF
6918 #line 6919 "configure"
6919 #include "confdefs.h"
6921 #if defined(HAVE_UNISTD_H)
6924 #include <sys/stat.h>
6927 struct stat64 st64; exit(lstat64(".",&st64));
6930 if { (eval echo configure:6931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6932 ac_cv_func_lstat64=yes
6934 echo "configure: failed program was:" >&5
6935 cat conftest.$ac_ext >&5
6938 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6939 if test x$ac_cv_func_lstat64 = xyes ; then
6940 cat >> confdefs.h <<\EOF
6941 #define HAVE_LSTAT64 1
6947 if test x$ac_cv_func_fstat64 = xno ; then
6948 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6949 echo "configure:6950: checking for fstat64 in <sys/stat.h>" >&5
6950 cat > conftest.$ac_ext <<EOF
6951 #line 6952 "configure"
6952 #include "confdefs.h"
6954 #if defined(HAVE_UNISTD_H)
6957 #include <sys/stat.h>
6960 struct stat64 st64; exit(fstat64(0,&st64));
6963 if { (eval echo configure:6964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6965 ac_cv_func_fstat64=yes
6967 echo "configure: failed program was:" >&5
6968 cat conftest.$ac_ext >&5
6971 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6972 if test x$ac_cv_func_fstat64 = xyes ; then
6973 cat >> confdefs.h <<\EOF
6974 #define HAVE_FSTAT64 1
6980 #####################################
6981 # we might need the resolv library on some systems
6982 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
6983 echo "configure:6984: checking for dn_expand in -lresolv" >&5
6984 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
6985 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6986 echo $ac_n "(cached) $ac_c" 1>&6
6988 ac_save_LIBS="$LIBS"
6989 LIBS="-lresolv $LIBS"
6990 cat > conftest.$ac_ext <<EOF
6991 #line 6992 "configure"
6992 #include "confdefs.h"
6993 /* Override any gcc2 internal prototype to avoid an error. */
6994 /* We use char because int might match the return type of a gcc2
6995 builtin and then its argument prototype would still apply. */
7002 if { (eval echo configure:7003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7004 eval "ac_cv_lib_$ac_lib_var=yes"
7006 echo "configure: failed program was:" >&5
7007 cat conftest.$ac_ext >&5
7009 eval "ac_cv_lib_$ac_lib_var=no"
7012 LIBS="$ac_save_LIBS"
7015 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7016 echo "$ac_t""yes" 1>&6
7017 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7018 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7019 cat >> confdefs.h <<EOF
7020 #define $ac_tr_lib 1
7023 LIBS="-lresolv $LIBS"
7026 echo "$ac_t""no" 1>&6
7031 # Check for the functions putprpwnam, set_auth_parameters,
7032 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
7033 # Needed for OSF1 and HPUX.
7037 *-lsecurity*) for ac_func in putprpwnam
7039 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7040 echo "configure:7041: checking for $ac_func" >&5
7041 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7042 echo $ac_n "(cached) $ac_c" 1>&6
7044 cat > conftest.$ac_ext <<EOF
7045 #line 7046 "configure"
7046 #include "confdefs.h"
7047 /* System header to define __stub macros and hopefully few prototypes,
7048 which can conflict with char $ac_func(); below. */
7050 /* Override any gcc2 internal prototype to avoid an error. */
7051 /* We use char because int might match the return type of a gcc2
7052 builtin and then its argument prototype would still apply. */
7057 /* The GNU C library defines this for functions which it implements
7058 to always fail with ENOSYS. Some functions are actually named
7059 something starting with __ and the normal name is an alias. */
7060 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7068 if { (eval echo configure:7069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7070 eval "ac_cv_func_$ac_func=yes"
7072 echo "configure: failed program was:" >&5
7073 cat conftest.$ac_ext >&5
7075 eval "ac_cv_func_$ac_func=no"
7080 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7081 echo "$ac_t""yes" 1>&6
7082 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7083 cat >> confdefs.h <<EOF
7084 #define $ac_tr_func 1
7088 echo "$ac_t""no" 1>&6
7092 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
7093 echo "configure:7094: checking for putprpwnam in -lsecurity" >&5
7094 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
7095 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7096 echo $ac_n "(cached) $ac_c" 1>&6
7098 ac_save_LIBS="$LIBS"
7099 LIBS="-lsecurity $LIBS"
7100 cat > conftest.$ac_ext <<EOF
7101 #line 7102 "configure"
7102 #include "confdefs.h"
7103 /* Override any gcc2 internal prototype to avoid an error. */
7104 /* We use char because int might match the return type of a gcc2
7105 builtin and then its argument prototype would still apply. */
7112 if { (eval echo configure:7113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7114 eval "ac_cv_lib_$ac_lib_var=yes"
7116 echo "configure: failed program was:" >&5
7117 cat conftest.$ac_ext >&5
7119 eval "ac_cv_lib_$ac_lib_var=no"
7122 LIBS="$ac_save_LIBS"
7125 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7126 echo "$ac_t""yes" 1>&6
7127 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7128 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7129 cat >> confdefs.h <<EOF
7130 #define $ac_tr_lib 1
7133 LIBS="-lsecurity $LIBS"
7136 echo "$ac_t""no" 1>&6
7139 for ac_func in putprpwnam
7141 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7142 echo "configure:7143: checking for $ac_func" >&5
7143 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7144 echo $ac_n "(cached) $ac_c" 1>&6
7146 cat > conftest.$ac_ext <<EOF
7147 #line 7148 "configure"
7148 #include "confdefs.h"
7149 /* System header to define __stub macros and hopefully few prototypes,
7150 which can conflict with char $ac_func(); below. */
7152 /* Override any gcc2 internal prototype to avoid an error. */
7153 /* We use char because int might match the return type of a gcc2
7154 builtin and then its argument prototype would still apply. */
7159 /* The GNU C library defines this for functions which it implements
7160 to always fail with ENOSYS. Some functions are actually named
7161 something starting with __ and the normal name is an alias. */
7162 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7170 if { (eval echo configure:7171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7172 eval "ac_cv_func_$ac_func=yes"
7174 echo "configure: failed program was:" >&5
7175 cat conftest.$ac_ext >&5
7177 eval "ac_cv_func_$ac_func=no"
7182 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7183 echo "$ac_t""yes" 1>&6
7184 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7185 cat >> confdefs.h <<EOF
7186 #define $ac_tr_func 1
7190 echo "$ac_t""no" 1>&6
7198 *-lsec*) for ac_func in putprpwnam
7200 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7201 echo "configure:7202: checking for $ac_func" >&5
7202 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7203 echo $ac_n "(cached) $ac_c" 1>&6
7205 cat > conftest.$ac_ext <<EOF
7206 #line 7207 "configure"
7207 #include "confdefs.h"
7208 /* System header to define __stub macros and hopefully few prototypes,
7209 which can conflict with char $ac_func(); below. */
7211 /* Override any gcc2 internal prototype to avoid an error. */
7212 /* We use char because int might match the return type of a gcc2
7213 builtin and then its argument prototype would still apply. */
7218 /* The GNU C library defines this for functions which it implements
7219 to always fail with ENOSYS. Some functions are actually named
7220 something starting with __ and the normal name is an alias. */
7221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7229 if { (eval echo configure:7230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7231 eval "ac_cv_func_$ac_func=yes"
7233 echo "configure: failed program was:" >&5
7234 cat conftest.$ac_ext >&5
7236 eval "ac_cv_func_$ac_func=no"
7241 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7242 echo "$ac_t""yes" 1>&6
7243 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7244 cat >> confdefs.h <<EOF
7245 #define $ac_tr_func 1
7249 echo "$ac_t""no" 1>&6
7253 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
7254 echo "configure:7255: checking for putprpwnam in -lsec" >&5
7255 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
7256 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7257 echo $ac_n "(cached) $ac_c" 1>&6
7259 ac_save_LIBS="$LIBS"
7261 cat > conftest.$ac_ext <<EOF
7262 #line 7263 "configure"
7263 #include "confdefs.h"
7264 /* Override any gcc2 internal prototype to avoid an error. */
7265 /* We use char because int might match the return type of a gcc2
7266 builtin and then its argument prototype would still apply. */
7273 if { (eval echo configure:7274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7275 eval "ac_cv_lib_$ac_lib_var=yes"
7277 echo "configure: failed program was:" >&5
7278 cat conftest.$ac_ext >&5
7280 eval "ac_cv_lib_$ac_lib_var=no"
7283 LIBS="$ac_save_LIBS"
7286 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7287 echo "$ac_t""yes" 1>&6
7288 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7289 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7290 cat >> confdefs.h <<EOF
7291 #define $ac_tr_lib 1
7297 echo "$ac_t""no" 1>&6
7300 for ac_func in putprpwnam
7302 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7303 echo "configure:7304: checking for $ac_func" >&5
7304 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7305 echo $ac_n "(cached) $ac_c" 1>&6
7307 cat > conftest.$ac_ext <<EOF
7308 #line 7309 "configure"
7309 #include "confdefs.h"
7310 /* System header to define __stub macros and hopefully few prototypes,
7311 which can conflict with char $ac_func(); below. */
7313 /* Override any gcc2 internal prototype to avoid an error. */
7314 /* We use char because int might match the return type of a gcc2
7315 builtin and then its argument prototype would still apply. */
7320 /* The GNU C library defines this for functions which it implements
7321 to always fail with ENOSYS. Some functions are actually named
7322 something starting with __ and the normal name is an alias. */
7323 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7331 if { (eval echo configure:7332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7333 eval "ac_cv_func_$ac_func=yes"
7335 echo "configure: failed program was:" >&5
7336 cat conftest.$ac_ext >&5
7338 eval "ac_cv_func_$ac_func=no"
7343 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7344 echo "$ac_t""yes" 1>&6
7345 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7346 cat >> confdefs.h <<EOF
7347 #define $ac_tr_func 1
7351 echo "$ac_t""no" 1>&6
7360 *-lsecurity*) for ac_func in set_auth_parameters
7362 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7363 echo "configure:7364: checking for $ac_func" >&5
7364 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7365 echo $ac_n "(cached) $ac_c" 1>&6
7367 cat > conftest.$ac_ext <<EOF
7368 #line 7369 "configure"
7369 #include "confdefs.h"
7370 /* System header to define __stub macros and hopefully few prototypes,
7371 which can conflict with char $ac_func(); below. */
7373 /* Override any gcc2 internal prototype to avoid an error. */
7374 /* We use char because int might match the return type of a gcc2
7375 builtin and then its argument prototype would still apply. */
7380 /* The GNU C library defines this for functions which it implements
7381 to always fail with ENOSYS. Some functions are actually named
7382 something starting with __ and the normal name is an alias. */
7383 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7391 if { (eval echo configure:7392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7393 eval "ac_cv_func_$ac_func=yes"
7395 echo "configure: failed program was:" >&5
7396 cat conftest.$ac_ext >&5
7398 eval "ac_cv_func_$ac_func=no"
7403 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7404 echo "$ac_t""yes" 1>&6
7405 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7406 cat >> confdefs.h <<EOF
7407 #define $ac_tr_func 1
7411 echo "$ac_t""no" 1>&6
7415 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
7416 echo "configure:7417: checking for set_auth_parameters in -lsecurity" >&5
7417 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7418 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7419 echo $ac_n "(cached) $ac_c" 1>&6
7421 ac_save_LIBS="$LIBS"
7422 LIBS="-lsecurity $LIBS"
7423 cat > conftest.$ac_ext <<EOF
7424 #line 7425 "configure"
7425 #include "confdefs.h"
7426 /* Override any gcc2 internal prototype to avoid an error. */
7427 /* We use char because int might match the return type of a gcc2
7428 builtin and then its argument prototype would still apply. */
7429 char set_auth_parameters();
7432 set_auth_parameters()
7435 if { (eval echo configure:7436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7437 eval "ac_cv_lib_$ac_lib_var=yes"
7439 echo "configure: failed program was:" >&5
7440 cat conftest.$ac_ext >&5
7442 eval "ac_cv_lib_$ac_lib_var=no"
7445 LIBS="$ac_save_LIBS"
7448 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7449 echo "$ac_t""yes" 1>&6
7450 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7451 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7452 cat >> confdefs.h <<EOF
7453 #define $ac_tr_lib 1
7456 LIBS="-lsecurity $LIBS"
7459 echo "$ac_t""no" 1>&6
7462 for ac_func in set_auth_parameters
7464 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7465 echo "configure:7466: checking for $ac_func" >&5
7466 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7467 echo $ac_n "(cached) $ac_c" 1>&6
7469 cat > conftest.$ac_ext <<EOF
7470 #line 7471 "configure"
7471 #include "confdefs.h"
7472 /* System header to define __stub macros and hopefully few prototypes,
7473 which can conflict with char $ac_func(); below. */
7475 /* Override any gcc2 internal prototype to avoid an error. */
7476 /* We use char because int might match the return type of a gcc2
7477 builtin and then its argument prototype would still apply. */
7482 /* The GNU C library defines this for functions which it implements
7483 to always fail with ENOSYS. Some functions are actually named
7484 something starting with __ and the normal name is an alias. */
7485 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7493 if { (eval echo configure:7494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7495 eval "ac_cv_func_$ac_func=yes"
7497 echo "configure: failed program was:" >&5
7498 cat conftest.$ac_ext >&5
7500 eval "ac_cv_func_$ac_func=no"
7505 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7506 echo "$ac_t""yes" 1>&6
7507 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7508 cat >> confdefs.h <<EOF
7509 #define $ac_tr_func 1
7513 echo "$ac_t""no" 1>&6
7521 *-lsec*) for ac_func in set_auth_parameters
7523 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7524 echo "configure:7525: checking for $ac_func" >&5
7525 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7526 echo $ac_n "(cached) $ac_c" 1>&6
7528 cat > conftest.$ac_ext <<EOF
7529 #line 7530 "configure"
7530 #include "confdefs.h"
7531 /* System header to define __stub macros and hopefully few prototypes,
7532 which can conflict with char $ac_func(); below. */
7534 /* Override any gcc2 internal prototype to avoid an error. */
7535 /* We use char because int might match the return type of a gcc2
7536 builtin and then its argument prototype would still apply. */
7541 /* The GNU C library defines this for functions which it implements
7542 to always fail with ENOSYS. Some functions are actually named
7543 something starting with __ and the normal name is an alias. */
7544 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7552 if { (eval echo configure:7553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7554 eval "ac_cv_func_$ac_func=yes"
7556 echo "configure: failed program was:" >&5
7557 cat conftest.$ac_ext >&5
7559 eval "ac_cv_func_$ac_func=no"
7564 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7565 echo "$ac_t""yes" 1>&6
7566 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7567 cat >> confdefs.h <<EOF
7568 #define $ac_tr_func 1
7572 echo "$ac_t""no" 1>&6
7576 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7577 echo "configure:7578: checking for set_auth_parameters in -lsec" >&5
7578 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7579 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7580 echo $ac_n "(cached) $ac_c" 1>&6
7582 ac_save_LIBS="$LIBS"
7584 cat > conftest.$ac_ext <<EOF
7585 #line 7586 "configure"
7586 #include "confdefs.h"
7587 /* Override any gcc2 internal prototype to avoid an error. */
7588 /* We use char because int might match the return type of a gcc2
7589 builtin and then its argument prototype would still apply. */
7590 char set_auth_parameters();
7593 set_auth_parameters()
7596 if { (eval echo configure:7597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7598 eval "ac_cv_lib_$ac_lib_var=yes"
7600 echo "configure: failed program was:" >&5
7601 cat conftest.$ac_ext >&5
7603 eval "ac_cv_lib_$ac_lib_var=no"
7606 LIBS="$ac_save_LIBS"
7609 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7610 echo "$ac_t""yes" 1>&6
7611 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7612 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7613 cat >> confdefs.h <<EOF
7614 #define $ac_tr_lib 1
7620 echo "$ac_t""no" 1>&6
7623 for ac_func in set_auth_parameters
7625 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7626 echo "configure:7627: checking for $ac_func" >&5
7627 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7628 echo $ac_n "(cached) $ac_c" 1>&6
7630 cat > conftest.$ac_ext <<EOF
7631 #line 7632 "configure"
7632 #include "confdefs.h"
7633 /* System header to define __stub macros and hopefully few prototypes,
7634 which can conflict with char $ac_func(); below. */
7636 /* Override any gcc2 internal prototype to avoid an error. */
7637 /* We use char because int might match the return type of a gcc2
7638 builtin and then its argument prototype would still apply. */
7643 /* The GNU C library defines this for functions which it implements
7644 to always fail with ENOSYS. Some functions are actually named
7645 something starting with __ and the normal name is an alias. */
7646 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7654 if { (eval echo configure:7655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7656 eval "ac_cv_func_$ac_func=yes"
7658 echo "configure: failed program was:" >&5
7659 cat conftest.$ac_ext >&5
7661 eval "ac_cv_func_$ac_func=no"
7666 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7667 echo "$ac_t""yes" 1>&6
7668 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7669 cat >> confdefs.h <<EOF
7670 #define $ac_tr_func 1
7674 echo "$ac_t""no" 1>&6
7682 # UnixWare 7.x has its getspnam in -lgen
7684 *-lgen*) for ac_func in getspnam
7686 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7687 echo "configure:7688: checking for $ac_func" >&5
7688 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7689 echo $ac_n "(cached) $ac_c" 1>&6
7691 cat > conftest.$ac_ext <<EOF
7692 #line 7693 "configure"
7693 #include "confdefs.h"
7694 /* System header to define __stub macros and hopefully few prototypes,
7695 which can conflict with char $ac_func(); below. */
7697 /* Override any gcc2 internal prototype to avoid an error. */
7698 /* We use char because int might match the return type of a gcc2
7699 builtin and then its argument prototype would still apply. */
7704 /* The GNU C library defines this for functions which it implements
7705 to always fail with ENOSYS. Some functions are actually named
7706 something starting with __ and the normal name is an alias. */
7707 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7715 if { (eval echo configure:7716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7717 eval "ac_cv_func_$ac_func=yes"
7719 echo "configure: failed program was:" >&5
7720 cat conftest.$ac_ext >&5
7722 eval "ac_cv_func_$ac_func=no"
7727 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7728 echo "$ac_t""yes" 1>&6
7729 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7730 cat >> confdefs.h <<EOF
7731 #define $ac_tr_func 1
7735 echo "$ac_t""no" 1>&6
7739 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7740 echo "configure:7741: checking for getspnam in -lgen" >&5
7741 ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7742 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7743 echo $ac_n "(cached) $ac_c" 1>&6
7745 ac_save_LIBS="$LIBS"
7747 cat > conftest.$ac_ext <<EOF
7748 #line 7749 "configure"
7749 #include "confdefs.h"
7750 /* Override any gcc2 internal prototype to avoid an error. */
7751 /* We use char because int might match the return type of a gcc2
7752 builtin and then its argument prototype would still apply. */
7759 if { (eval echo configure:7760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7761 eval "ac_cv_lib_$ac_lib_var=yes"
7763 echo "configure: failed program was:" >&5
7764 cat conftest.$ac_ext >&5
7766 eval "ac_cv_lib_$ac_lib_var=no"
7769 LIBS="$ac_save_LIBS"
7772 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7773 echo "$ac_t""yes" 1>&6
7774 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7775 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7776 cat >> confdefs.h <<EOF
7777 #define $ac_tr_lib 1
7783 echo "$ac_t""no" 1>&6
7786 for ac_func in getspnam
7788 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7789 echo "configure:7790: checking for $ac_func" >&5
7790 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7791 echo $ac_n "(cached) $ac_c" 1>&6
7793 cat > conftest.$ac_ext <<EOF
7794 #line 7795 "configure"
7795 #include "confdefs.h"
7796 /* System header to define __stub macros and hopefully few prototypes,
7797 which can conflict with char $ac_func(); below. */
7799 /* Override any gcc2 internal prototype to avoid an error. */
7800 /* We use char because int might match the return type of a gcc2
7801 builtin and then its argument prototype would still apply. */
7806 /* The GNU C library defines this for functions which it implements
7807 to always fail with ENOSYS. Some functions are actually named
7808 something starting with __ and the normal name is an alias. */
7809 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7817 if { (eval echo configure:7818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7819 eval "ac_cv_func_$ac_func=yes"
7821 echo "configure: failed program was:" >&5
7822 cat conftest.$ac_ext >&5
7824 eval "ac_cv_func_$ac_func=no"
7829 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7830 echo "$ac_t""yes" 1>&6
7831 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7832 cat >> confdefs.h <<EOF
7833 #define $ac_tr_func 1
7837 echo "$ac_t""no" 1>&6
7846 *-lsecurity*) for ac_func in getspnam
7848 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7849 echo "configure:7850: checking for $ac_func" >&5
7850 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7851 echo $ac_n "(cached) $ac_c" 1>&6
7853 cat > conftest.$ac_ext <<EOF
7854 #line 7855 "configure"
7855 #include "confdefs.h"
7856 /* System header to define __stub macros and hopefully few prototypes,
7857 which can conflict with char $ac_func(); below. */
7859 /* Override any gcc2 internal prototype to avoid an error. */
7860 /* We use char because int might match the return type of a gcc2
7861 builtin and then its argument prototype would still apply. */
7866 /* The GNU C library defines this for functions which it implements
7867 to always fail with ENOSYS. Some functions are actually named
7868 something starting with __ and the normal name is an alias. */
7869 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7877 if { (eval echo configure:7878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7879 eval "ac_cv_func_$ac_func=yes"
7881 echo "configure: failed program was:" >&5
7882 cat conftest.$ac_ext >&5
7884 eval "ac_cv_func_$ac_func=no"
7889 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7890 echo "$ac_t""yes" 1>&6
7891 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7892 cat >> confdefs.h <<EOF
7893 #define $ac_tr_func 1
7897 echo "$ac_t""no" 1>&6
7901 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7902 echo "configure:7903: checking for getspnam in -lsecurity" >&5
7903 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7904 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7905 echo $ac_n "(cached) $ac_c" 1>&6
7907 ac_save_LIBS="$LIBS"
7908 LIBS="-lsecurity $LIBS"
7909 cat > conftest.$ac_ext <<EOF
7910 #line 7911 "configure"
7911 #include "confdefs.h"
7912 /* Override any gcc2 internal prototype to avoid an error. */
7913 /* We use char because int might match the return type of a gcc2
7914 builtin and then its argument prototype would still apply. */
7921 if { (eval echo configure:7922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7923 eval "ac_cv_lib_$ac_lib_var=yes"
7925 echo "configure: failed program was:" >&5
7926 cat conftest.$ac_ext >&5
7928 eval "ac_cv_lib_$ac_lib_var=no"
7931 LIBS="$ac_save_LIBS"
7934 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7935 echo "$ac_t""yes" 1>&6
7936 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7937 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7938 cat >> confdefs.h <<EOF
7939 #define $ac_tr_lib 1
7942 LIBS="-lsecurity $LIBS"
7945 echo "$ac_t""no" 1>&6
7948 for ac_func in getspnam
7950 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7951 echo "configure:7952: checking for $ac_func" >&5
7952 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7953 echo $ac_n "(cached) $ac_c" 1>&6
7955 cat > conftest.$ac_ext <<EOF
7956 #line 7957 "configure"
7957 #include "confdefs.h"
7958 /* System header to define __stub macros and hopefully few prototypes,
7959 which can conflict with char $ac_func(); below. */
7961 /* Override any gcc2 internal prototype to avoid an error. */
7962 /* We use char because int might match the return type of a gcc2
7963 builtin and then its argument prototype would still apply. */
7968 /* The GNU C library defines this for functions which it implements
7969 to always fail with ENOSYS. Some functions are actually named
7970 something starting with __ and the normal name is an alias. */
7971 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7979 if { (eval echo configure:7980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7981 eval "ac_cv_func_$ac_func=yes"
7983 echo "configure: failed program was:" >&5
7984 cat conftest.$ac_ext >&5
7986 eval "ac_cv_func_$ac_func=no"
7991 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7992 echo "$ac_t""yes" 1>&6
7993 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7994 cat >> confdefs.h <<EOF
7995 #define $ac_tr_func 1
7999 echo "$ac_t""no" 1>&6
8007 *-lsec*) for ac_func in getspnam
8009 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8010 echo "configure:8011: checking for $ac_func" >&5
8011 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8012 echo $ac_n "(cached) $ac_c" 1>&6
8014 cat > conftest.$ac_ext <<EOF
8015 #line 8016 "configure"
8016 #include "confdefs.h"
8017 /* System header to define __stub macros and hopefully few prototypes,
8018 which can conflict with char $ac_func(); below. */
8020 /* Override any gcc2 internal prototype to avoid an error. */
8021 /* We use char because int might match the return type of a gcc2
8022 builtin and then its argument prototype would still apply. */
8027 /* The GNU C library defines this for functions which it implements
8028 to always fail with ENOSYS. Some functions are actually named
8029 something starting with __ and the normal name is an alias. */
8030 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8038 if { (eval echo configure:8039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8040 eval "ac_cv_func_$ac_func=yes"
8042 echo "configure: failed program was:" >&5
8043 cat conftest.$ac_ext >&5
8045 eval "ac_cv_func_$ac_func=no"
8050 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8051 echo "$ac_t""yes" 1>&6
8052 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8053 cat >> confdefs.h <<EOF
8054 #define $ac_tr_func 1
8058 echo "$ac_t""no" 1>&6
8062 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
8063 echo "configure:8064: checking for getspnam in -lsec" >&5
8064 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
8065 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8066 echo $ac_n "(cached) $ac_c" 1>&6
8068 ac_save_LIBS="$LIBS"
8070 cat > conftest.$ac_ext <<EOF
8071 #line 8072 "configure"
8072 #include "confdefs.h"
8073 /* Override any gcc2 internal prototype to avoid an error. */
8074 /* We use char because int might match the return type of a gcc2
8075 builtin and then its argument prototype would still apply. */
8082 if { (eval echo configure:8083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8084 eval "ac_cv_lib_$ac_lib_var=yes"
8086 echo "configure: failed program was:" >&5
8087 cat conftest.$ac_ext >&5
8089 eval "ac_cv_lib_$ac_lib_var=no"
8092 LIBS="$ac_save_LIBS"
8095 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8096 echo "$ac_t""yes" 1>&6
8097 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8098 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8099 cat >> confdefs.h <<EOF
8100 #define $ac_tr_lib 1
8106 echo "$ac_t""no" 1>&6
8109 for ac_func in getspnam
8111 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8112 echo "configure:8113: checking for $ac_func" >&5
8113 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8114 echo $ac_n "(cached) $ac_c" 1>&6
8116 cat > conftest.$ac_ext <<EOF
8117 #line 8118 "configure"
8118 #include "confdefs.h"
8119 /* System header to define __stub macros and hopefully few prototypes,
8120 which can conflict with char $ac_func(); below. */
8122 /* Override any gcc2 internal prototype to avoid an error. */
8123 /* We use char because int might match the return type of a gcc2
8124 builtin and then its argument prototype would still apply. */
8129 /* The GNU C library defines this for functions which it implements
8130 to always fail with ENOSYS. Some functions are actually named
8131 something starting with __ and the normal name is an alias. */
8132 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8140 if { (eval echo configure:8141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8142 eval "ac_cv_func_$ac_func=yes"
8144 echo "configure: failed program was:" >&5
8145 cat conftest.$ac_ext >&5
8147 eval "ac_cv_func_$ac_func=no"
8152 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8153 echo "$ac_t""yes" 1>&6
8154 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8155 cat >> confdefs.h <<EOF
8156 #define $ac_tr_func 1
8160 echo "$ac_t""no" 1>&6
8169 *-lsecurity*) for ac_func in bigcrypt
8171 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8172 echo "configure:8173: checking for $ac_func" >&5
8173 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8174 echo $ac_n "(cached) $ac_c" 1>&6
8176 cat > conftest.$ac_ext <<EOF
8177 #line 8178 "configure"
8178 #include "confdefs.h"
8179 /* System header to define __stub macros and hopefully few prototypes,
8180 which can conflict with char $ac_func(); below. */
8182 /* Override any gcc2 internal prototype to avoid an error. */
8183 /* We use char because int might match the return type of a gcc2
8184 builtin and then its argument prototype would still apply. */
8189 /* The GNU C library defines this for functions which it implements
8190 to always fail with ENOSYS. Some functions are actually named
8191 something starting with __ and the normal name is an alias. */
8192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8200 if { (eval echo configure:8201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8202 eval "ac_cv_func_$ac_func=yes"
8204 echo "configure: failed program was:" >&5
8205 cat conftest.$ac_ext >&5
8207 eval "ac_cv_func_$ac_func=no"
8212 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8213 echo "$ac_t""yes" 1>&6
8214 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8215 cat >> confdefs.h <<EOF
8216 #define $ac_tr_func 1
8220 echo "$ac_t""no" 1>&6
8224 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
8225 echo "configure:8226: checking for bigcrypt in -lsecurity" >&5
8226 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
8227 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8228 echo $ac_n "(cached) $ac_c" 1>&6
8230 ac_save_LIBS="$LIBS"
8231 LIBS="-lsecurity $LIBS"
8232 cat > conftest.$ac_ext <<EOF
8233 #line 8234 "configure"
8234 #include "confdefs.h"
8235 /* Override any gcc2 internal prototype to avoid an error. */
8236 /* We use char because int might match the return type of a gcc2
8237 builtin and then its argument prototype would still apply. */
8244 if { (eval echo configure:8245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8246 eval "ac_cv_lib_$ac_lib_var=yes"
8248 echo "configure: failed program was:" >&5
8249 cat conftest.$ac_ext >&5
8251 eval "ac_cv_lib_$ac_lib_var=no"
8254 LIBS="$ac_save_LIBS"
8257 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8258 echo "$ac_t""yes" 1>&6
8259 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8260 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8261 cat >> confdefs.h <<EOF
8262 #define $ac_tr_lib 1
8265 LIBS="-lsecurity $LIBS"
8268 echo "$ac_t""no" 1>&6
8271 for ac_func in bigcrypt
8273 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8274 echo "configure:8275: checking for $ac_func" >&5
8275 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8276 echo $ac_n "(cached) $ac_c" 1>&6
8278 cat > conftest.$ac_ext <<EOF
8279 #line 8280 "configure"
8280 #include "confdefs.h"
8281 /* System header to define __stub macros and hopefully few prototypes,
8282 which can conflict with char $ac_func(); below. */
8284 /* Override any gcc2 internal prototype to avoid an error. */
8285 /* We use char because int might match the return type of a gcc2
8286 builtin and then its argument prototype would still apply. */
8291 /* The GNU C library defines this for functions which it implements
8292 to always fail with ENOSYS. Some functions are actually named
8293 something starting with __ and the normal name is an alias. */
8294 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8302 if { (eval echo configure:8303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8304 eval "ac_cv_func_$ac_func=yes"
8306 echo "configure: failed program was:" >&5
8307 cat conftest.$ac_ext >&5
8309 eval "ac_cv_func_$ac_func=no"
8314 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8315 echo "$ac_t""yes" 1>&6
8316 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8317 cat >> confdefs.h <<EOF
8318 #define $ac_tr_func 1
8322 echo "$ac_t""no" 1>&6
8330 *-lsec*) for ac_func in bigcrypt
8332 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8333 echo "configure:8334: checking for $ac_func" >&5
8334 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8335 echo $ac_n "(cached) $ac_c" 1>&6
8337 cat > conftest.$ac_ext <<EOF
8338 #line 8339 "configure"
8339 #include "confdefs.h"
8340 /* System header to define __stub macros and hopefully few prototypes,
8341 which can conflict with char $ac_func(); below. */
8343 /* Override any gcc2 internal prototype to avoid an error. */
8344 /* We use char because int might match the return type of a gcc2
8345 builtin and then its argument prototype would still apply. */
8350 /* The GNU C library defines this for functions which it implements
8351 to always fail with ENOSYS. Some functions are actually named
8352 something starting with __ and the normal name is an alias. */
8353 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8361 if { (eval echo configure:8362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8363 eval "ac_cv_func_$ac_func=yes"
8365 echo "configure: failed program was:" >&5
8366 cat conftest.$ac_ext >&5
8368 eval "ac_cv_func_$ac_func=no"
8373 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8374 echo "$ac_t""yes" 1>&6
8375 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8376 cat >> confdefs.h <<EOF
8377 #define $ac_tr_func 1
8381 echo "$ac_t""no" 1>&6
8385 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
8386 echo "configure:8387: checking for bigcrypt in -lsec" >&5
8387 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
8388 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8389 echo $ac_n "(cached) $ac_c" 1>&6
8391 ac_save_LIBS="$LIBS"
8393 cat > conftest.$ac_ext <<EOF
8394 #line 8395 "configure"
8395 #include "confdefs.h"
8396 /* Override any gcc2 internal prototype to avoid an error. */
8397 /* We use char because int might match the return type of a gcc2
8398 builtin and then its argument prototype would still apply. */
8405 if { (eval echo configure:8406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8407 eval "ac_cv_lib_$ac_lib_var=yes"
8409 echo "configure: failed program was:" >&5
8410 cat conftest.$ac_ext >&5
8412 eval "ac_cv_lib_$ac_lib_var=no"
8415 LIBS="$ac_save_LIBS"
8418 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8419 echo "$ac_t""yes" 1>&6
8420 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8421 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8422 cat >> confdefs.h <<EOF
8423 #define $ac_tr_lib 1
8429 echo "$ac_t""no" 1>&6
8432 for ac_func in bigcrypt
8434 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8435 echo "configure:8436: checking for $ac_func" >&5
8436 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8437 echo $ac_n "(cached) $ac_c" 1>&6
8439 cat > conftest.$ac_ext <<EOF
8440 #line 8441 "configure"
8441 #include "confdefs.h"
8442 /* System header to define __stub macros and hopefully few prototypes,
8443 which can conflict with char $ac_func(); below. */
8445 /* Override any gcc2 internal prototype to avoid an error. */
8446 /* We use char because int might match the return type of a gcc2
8447 builtin and then its argument prototype would still apply. */
8452 /* The GNU C library defines this for functions which it implements
8453 to always fail with ENOSYS. Some functions are actually named
8454 something starting with __ and the normal name is an alias. */
8455 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8463 if { (eval echo configure:8464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8465 eval "ac_cv_func_$ac_func=yes"
8467 echo "configure: failed program was:" >&5
8468 cat conftest.$ac_ext >&5
8470 eval "ac_cv_func_$ac_func=no"
8475 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8476 echo "$ac_t""yes" 1>&6
8477 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8478 cat >> confdefs.h <<EOF
8479 #define $ac_tr_func 1
8483 echo "$ac_t""no" 1>&6
8492 *-lsecurity*) for ac_func in getprpwnam
8494 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8495 echo "configure:8496: checking for $ac_func" >&5
8496 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8497 echo $ac_n "(cached) $ac_c" 1>&6
8499 cat > conftest.$ac_ext <<EOF
8500 #line 8501 "configure"
8501 #include "confdefs.h"
8502 /* System header to define __stub macros and hopefully few prototypes,
8503 which can conflict with char $ac_func(); below. */
8505 /* Override any gcc2 internal prototype to avoid an error. */
8506 /* We use char because int might match the return type of a gcc2
8507 builtin and then its argument prototype would still apply. */
8512 /* The GNU C library defines this for functions which it implements
8513 to always fail with ENOSYS. Some functions are actually named
8514 something starting with __ and the normal name is an alias. */
8515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8523 if { (eval echo configure:8524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8525 eval "ac_cv_func_$ac_func=yes"
8527 echo "configure: failed program was:" >&5
8528 cat conftest.$ac_ext >&5
8530 eval "ac_cv_func_$ac_func=no"
8535 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8536 echo "$ac_t""yes" 1>&6
8537 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8538 cat >> confdefs.h <<EOF
8539 #define $ac_tr_func 1
8543 echo "$ac_t""no" 1>&6
8547 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8548 echo "configure:8549: checking for getprpwnam in -lsecurity" >&5
8549 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8550 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8551 echo $ac_n "(cached) $ac_c" 1>&6
8553 ac_save_LIBS="$LIBS"
8554 LIBS="-lsecurity $LIBS"
8555 cat > conftest.$ac_ext <<EOF
8556 #line 8557 "configure"
8557 #include "confdefs.h"
8558 /* Override any gcc2 internal prototype to avoid an error. */
8559 /* We use char because int might match the return type of a gcc2
8560 builtin and then its argument prototype would still apply. */
8567 if { (eval echo configure:8568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8569 eval "ac_cv_lib_$ac_lib_var=yes"
8571 echo "configure: failed program was:" >&5
8572 cat conftest.$ac_ext >&5
8574 eval "ac_cv_lib_$ac_lib_var=no"
8577 LIBS="$ac_save_LIBS"
8580 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8581 echo "$ac_t""yes" 1>&6
8582 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8583 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8584 cat >> confdefs.h <<EOF
8585 #define $ac_tr_lib 1
8588 LIBS="-lsecurity $LIBS"
8591 echo "$ac_t""no" 1>&6
8594 for ac_func in getprpwnam
8596 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8597 echo "configure:8598: checking for $ac_func" >&5
8598 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8599 echo $ac_n "(cached) $ac_c" 1>&6
8601 cat > conftest.$ac_ext <<EOF
8602 #line 8603 "configure"
8603 #include "confdefs.h"
8604 /* System header to define __stub macros and hopefully few prototypes,
8605 which can conflict with char $ac_func(); below. */
8607 /* Override any gcc2 internal prototype to avoid an error. */
8608 /* We use char because int might match the return type of a gcc2
8609 builtin and then its argument prototype would still apply. */
8614 /* The GNU C library defines this for functions which it implements
8615 to always fail with ENOSYS. Some functions are actually named
8616 something starting with __ and the normal name is an alias. */
8617 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8625 if { (eval echo configure:8626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8627 eval "ac_cv_func_$ac_func=yes"
8629 echo "configure: failed program was:" >&5
8630 cat conftest.$ac_ext >&5
8632 eval "ac_cv_func_$ac_func=no"
8637 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8638 echo "$ac_t""yes" 1>&6
8639 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8640 cat >> confdefs.h <<EOF
8641 #define $ac_tr_func 1
8645 echo "$ac_t""no" 1>&6
8653 *-lsec*) for ac_func in getprpwnam
8655 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8656 echo "configure:8657: checking for $ac_func" >&5
8657 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8658 echo $ac_n "(cached) $ac_c" 1>&6
8660 cat > conftest.$ac_ext <<EOF
8661 #line 8662 "configure"
8662 #include "confdefs.h"
8663 /* System header to define __stub macros and hopefully few prototypes,
8664 which can conflict with char $ac_func(); below. */
8666 /* Override any gcc2 internal prototype to avoid an error. */
8667 /* We use char because int might match the return type of a gcc2
8668 builtin and then its argument prototype would still apply. */
8673 /* The GNU C library defines this for functions which it implements
8674 to always fail with ENOSYS. Some functions are actually named
8675 something starting with __ and the normal name is an alias. */
8676 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8684 if { (eval echo configure:8685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8686 eval "ac_cv_func_$ac_func=yes"
8688 echo "configure: failed program was:" >&5
8689 cat conftest.$ac_ext >&5
8691 eval "ac_cv_func_$ac_func=no"
8696 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8697 echo "$ac_t""yes" 1>&6
8698 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8699 cat >> confdefs.h <<EOF
8700 #define $ac_tr_func 1
8704 echo "$ac_t""no" 1>&6
8708 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8709 echo "configure:8710: checking for getprpwnam in -lsec" >&5
8710 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8711 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8712 echo $ac_n "(cached) $ac_c" 1>&6
8714 ac_save_LIBS="$LIBS"
8716 cat > conftest.$ac_ext <<EOF
8717 #line 8718 "configure"
8718 #include "confdefs.h"
8719 /* Override any gcc2 internal prototype to avoid an error. */
8720 /* We use char because int might match the return type of a gcc2
8721 builtin and then its argument prototype would still apply. */
8728 if { (eval echo configure:8729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8730 eval "ac_cv_lib_$ac_lib_var=yes"
8732 echo "configure: failed program was:" >&5
8733 cat conftest.$ac_ext >&5
8735 eval "ac_cv_lib_$ac_lib_var=no"
8738 LIBS="$ac_save_LIBS"
8741 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8742 echo "$ac_t""yes" 1>&6
8743 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8744 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8745 cat >> confdefs.h <<EOF
8746 #define $ac_tr_lib 1
8752 echo "$ac_t""no" 1>&6
8755 for ac_func in getprpwnam
8757 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8758 echo "configure:8759: checking for $ac_func" >&5
8759 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8760 echo $ac_n "(cached) $ac_c" 1>&6
8762 cat > conftest.$ac_ext <<EOF
8763 #line 8764 "configure"
8764 #include "confdefs.h"
8765 /* System header to define __stub macros and hopefully few prototypes,
8766 which can conflict with char $ac_func(); below. */
8768 /* Override any gcc2 internal prototype to avoid an error. */
8769 /* We use char because int might match the return type of a gcc2
8770 builtin and then its argument prototype would still apply. */
8775 /* The GNU C library defines this for functions which it implements
8776 to always fail with ENOSYS. Some functions are actually named
8777 something starting with __ and the normal name is an alias. */
8778 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8786 if { (eval echo configure:8787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8788 eval "ac_cv_func_$ac_func=yes"
8790 echo "configure: failed program was:" >&5
8791 cat conftest.$ac_ext >&5
8793 eval "ac_cv_func_$ac_func=no"
8798 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8799 echo "$ac_t""yes" 1>&6
8800 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8801 cat >> confdefs.h <<EOF
8802 #define $ac_tr_func 1
8806 echo "$ac_t""no" 1>&6
8814 # this bit needs to be modified for each OS that is suported by
8815 # smbwrapper. You need to specify how to created a shared library and
8816 # how to compile C code to produce PIC object files
8818 # these are the defaults, good for lots of systems
8827 # Assume non-shared by default and override below
8829 echo $ac_n "checking ability to build shared libraries""... $ac_c" 1>&6
8830 echo "configure:8831: checking ability to build shared libraries" >&5
8832 # and these are for particular systems
8834 *linux*) cat >> confdefs.h <<\EOF
8840 DYNEXP="-Wl,--export-dynamic"
8842 SONAMEFLAG="-Wl,-soname="
8843 cat >> confdefs.h <<\EOF
8844 #define STAT_ST_BLOCKSIZE 512
8848 *solaris*) cat >> confdefs.h <<\EOF
8855 if test "${GCC}" = "yes"; then
8857 if test "${ac_cv_prog_gnu_ld}" = "yes"; then
8862 ## ${CFLAGS} added for building 64-bit shared
8863 ## libs using Sun's Compiler
8864 LDSHFLAGS="-G \${CFLAGS}"
8868 cat >> confdefs.h <<\EOF
8869 #define STAT_ST_BLOCKSIZE 512
8873 *sunos*) cat >> confdefs.h <<\EOF
8879 SONAMEFLAG="-Wl,-h,"
8880 PICFLAG="-KPIC" # Is this correct for SunOS
8882 *bsd*) BLDSHARED="true"
8884 DYNEXP="-Wl,-Bdynamic"
8885 SONAMEFLAG="-Wl,-soname,"
8887 cat >> confdefs.h <<\EOF
8888 #define STAT_ST_BLOCKSIZE 512
8892 *irix*) cat >> confdefs.h <<\EOF
8897 *irix6*) cat >> confdefs.h <<\EOF
8903 ATTEMPT_WRAP32_BUILD=yes
8905 LDSHFLAGS="-set_version sgi1.0 -shared"
8906 SONAMEFLAG="-soname "
8908 if test "${GCC}" = "yes"; then
8913 cat >> confdefs.h <<\EOF
8914 #define STAT_ST_BLOCKSIZE 512
8918 *aix*) cat >> confdefs.h <<\EOF
8923 LDSHFLAGS="-Wl,-bexpall,-bM:SRE,-bnoentry"
8924 DYNEXP="-Wl,-brtl,-bexpall"
8925 if test "${GCC}" = "yes"; then
8928 PICFLAG="-O2 -qmaxmem=6000"
8929 ## for funky AIX compiler using strncpy()
8930 CFLAGS="$CFLAGS -D_LINUX_SOURCE_COMPAT"
8933 cat >> confdefs.h <<\EOF
8934 #define STAT_ST_BLOCKSIZE DEV_BSIZE
8938 *hpux*) cat >> confdefs.h <<\EOF
8943 # Use special PIC flags for the native HP-UX compiler.
8944 if test $ac_cv_prog_cc_Ae = yes; then
8947 LDSHFLAGS="-B symbolic -b -z"
8952 cat >> confdefs.h <<\EOF
8953 #define STAT_ST_BLOCKSIZE 8192
8957 *qnx*) cat >> confdefs.h <<\EOF
8961 *osf*) cat >> confdefs.h <<\EOF
8967 SONAMEFLAG="-Wl,-soname,"
8970 *sco*) cat >> confdefs.h <<\EOF
8974 *unixware*) cat >> confdefs.h <<\EOF
8980 SONAMEFLAG="-Wl,-soname,"
8983 *next2*) cat >> confdefs.h <<\EOF
8987 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
8988 set dummy groff; ac_word=$2
8989 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8990 echo "configure:8991: checking for $ac_word" >&5
8991 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8992 echo $ac_n "(cached) $ac_c" 1>&6
8994 if test -n "$ROFF"; then
8995 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
8997 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8999 for ac_dir in $ac_dummy; do
9000 test -z "$ac_dir" && ac_dir=.
9001 if test -f $ac_dir/$ac_word; then
9002 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
9009 ROFF="$ac_cv_prog_ROFF"
9010 if test -n "$ROFF"; then
9011 echo "$ac_t""$ROFF" 1>&6
9013 echo "$ac_t""no" 1>&6
9018 *-univel-*) if test "$GCC" != yes ; then
9019 cat >> confdefs.h <<\EOF
9020 #define HAVE_MEMSET 1
9027 *mips-sni-sysv4*) cat >> confdefs.h <<\EOF
9028 #define RELIANTUNIX 1
9035 if test "$GCC" != yes ; then
9036 cat >> confdefs.h <<\EOF
9037 #define HAVE_MEMSET 1
9045 echo "$ac_t""$BLDSHARED" 1>&6
9046 echo $ac_n "checking linker flags for shared libraries""... $ac_c" 1>&6
9047 echo "configure:9048: checking linker flags for shared libraries" >&5
9048 echo "$ac_t""$LDSHFLAGS" 1>&6
9049 echo $ac_n "checking compiler flags for position-independent code""... $ac_c" 1>&6
9050 echo "configure:9051: checking compiler flags for position-independent code" >&5
9051 echo "$ac_t""$PICFLAGS" 1>&6
9053 #######################################################
9054 # test whether building a shared library actually works
9055 if test $BLDSHARED = true; then
9056 echo $ac_n "checking whether building shared libraries actually works""... $ac_c" 1>&6
9057 echo "configure:9058: checking whether building shared libraries actually works" >&5
9058 if eval "test \"`echo '$''{'ac_cv_shlib_works'+set}'`\" = set"; then
9059 echo $ac_n "(cached) $ac_c" 1>&6
9062 ac_cv_shlib_works=no
9063 # try building a trivial shared library
9064 $CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.po ${srcdir-.}/tests/shlib.c &&
9065 $CC $CPPFLAGS $CFLAGS $LDSHFLAGS -o shlib.so shlib.po &&
9066 ac_cv_shlib_works=yes
9067 rm -f shlib.so shlib.po
9071 echo "$ac_t""$ac_cv_shlib_works" 1>&6
9072 if test $ac_cv_shlib_works = no; then
9078 # this updates our target list if we can build shared libs
9079 if test $BLDSHARED = true; then
9080 LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
9082 LIBSMBCLIENT_SHARED=
9087 echo $ac_n "checking for long long""... $ac_c" 1>&6
9088 echo "configure:9089: checking for long long" >&5
9089 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
9090 echo $ac_n "(cached) $ac_c" 1>&6
9093 if test "$cross_compiling" = yes; then
9094 samba_cv_have_longlong=cross
9096 cat > conftest.$ac_ext <<EOF
9097 #line 9098 "configure"
9098 #include "confdefs.h"
9100 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
9102 if { (eval echo configure:9103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9104 samba_cv_have_longlong=yes
9106 echo "configure: failed program was:" >&5
9107 cat conftest.$ac_ext >&5
9109 samba_cv_have_longlong=no
9116 echo "$ac_t""$samba_cv_have_longlong" 1>&6
9117 if test x"$samba_cv_have_longlong" = x"yes"; then
9118 cat >> confdefs.h <<\EOF
9119 #define HAVE_LONGLONG 1
9125 # Check if the compiler supports the LL prefix on long long integers.
9128 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
9129 echo "configure:9130: checking for LL suffix on long long integers" >&5
9130 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
9131 echo $ac_n "(cached) $ac_c" 1>&6
9134 cat > conftest.$ac_ext <<EOF
9135 #line 9136 "configure"
9136 #include "confdefs.h"
9139 long long i = 0x8000000000LL
9142 if { (eval echo configure:9143: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9144 samba_cv_compiler_supports_ll=yes
9146 echo "configure: failed program was:" >&5
9147 cat conftest.$ac_ext >&5
9149 samba_cv_compiler_supports_ll=no
9154 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
9155 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
9156 cat >> confdefs.h <<\EOF
9157 #define COMPILER_SUPPORTS_LL 1
9163 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
9164 echo "configure:9165: checking for 64 bit off_t" >&5
9165 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
9166 echo $ac_n "(cached) $ac_c" 1>&6
9169 if test "$cross_compiling" = yes; then
9170 samba_cv_SIZEOF_OFF_T=cross
9172 cat > conftest.$ac_ext <<EOF
9173 #line 9174 "configure"
9174 #include "confdefs.h"
9176 #include <sys/stat.h>
9177 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
9179 if { (eval echo configure:9180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9181 samba_cv_SIZEOF_OFF_T=yes
9183 echo "configure: failed program was:" >&5
9184 cat conftest.$ac_ext >&5
9186 samba_cv_SIZEOF_OFF_T=no
9193 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
9194 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
9195 cat >> confdefs.h <<\EOF
9196 #define SIZEOF_OFF_T 8
9201 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
9202 echo "configure:9203: checking for off64_t" >&5
9203 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
9204 echo $ac_n "(cached) $ac_c" 1>&6
9207 if test "$cross_compiling" = yes; then
9208 samba_cv_HAVE_OFF64_T=cross
9210 cat > conftest.$ac_ext <<EOF
9211 #line 9212 "configure"
9212 #include "confdefs.h"
9214 #if defined(HAVE_UNISTD_H)
9218 #include <sys/stat.h>
9219 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9221 if { (eval echo configure:9222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9223 samba_cv_HAVE_OFF64_T=yes
9225 echo "configure: failed program was:" >&5
9226 cat conftest.$ac_ext >&5
9228 samba_cv_HAVE_OFF64_T=no
9235 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
9236 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
9237 cat >> confdefs.h <<\EOF
9238 #define HAVE_OFF64_T 1
9243 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
9244 echo "configure:9245: checking for 64 bit ino_t" >&5
9245 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
9246 echo $ac_n "(cached) $ac_c" 1>&6
9249 if test "$cross_compiling" = yes; then
9250 samba_cv_SIZEOF_INO_T=cross
9252 cat > conftest.$ac_ext <<EOF
9253 #line 9254 "configure"
9254 #include "confdefs.h"
9256 #include <sys/stat.h>
9257 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
9259 if { (eval echo configure:9260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9261 samba_cv_SIZEOF_INO_T=yes
9263 echo "configure: failed program was:" >&5
9264 cat conftest.$ac_ext >&5
9266 samba_cv_SIZEOF_INO_T=no
9273 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
9274 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
9275 cat >> confdefs.h <<\EOF
9276 #define SIZEOF_INO_T 8
9281 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
9282 echo "configure:9283: checking for ino64_t" >&5
9283 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
9284 echo $ac_n "(cached) $ac_c" 1>&6
9287 if test "$cross_compiling" = yes; then
9288 samba_cv_HAVE_INO64_T=cross
9290 cat > conftest.$ac_ext <<EOF
9291 #line 9292 "configure"
9292 #include "confdefs.h"
9294 #if defined(HAVE_UNISTD_H)
9298 #include <sys/stat.h>
9299 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9301 if { (eval echo configure:9302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9303 samba_cv_HAVE_INO64_T=yes
9305 echo "configure: failed program was:" >&5
9306 cat conftest.$ac_ext >&5
9308 samba_cv_HAVE_INO64_T=no
9315 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
9316 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
9317 cat >> confdefs.h <<\EOF
9318 #define HAVE_INO64_T 1
9323 echo $ac_n "checking for dev64_t""... $ac_c" 1>&6
9324 echo "configure:9325: checking for dev64_t" >&5
9325 if eval "test \"`echo '$''{'samba_cv_HAVE_DEV64_T'+set}'`\" = set"; then
9326 echo $ac_n "(cached) $ac_c" 1>&6
9329 if test "$cross_compiling" = yes; then
9330 samba_cv_HAVE_DEV64_T=cross
9332 cat > conftest.$ac_ext <<EOF
9333 #line 9334 "configure"
9334 #include "confdefs.h"
9336 #if defined(HAVE_UNISTD_H)
9340 #include <sys/stat.h>
9341 main() { struct stat64 st; dev64_t s; if (sizeof(dev_t) == sizeof(dev64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9343 if { (eval echo configure:9344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9345 samba_cv_HAVE_DEV64_T=yes
9347 echo "configure: failed program was:" >&5
9348 cat conftest.$ac_ext >&5
9350 samba_cv_HAVE_DEV64_T=no
9357 echo "$ac_t""$samba_cv_HAVE_DEV64_T" 1>&6
9358 if test x"$samba_cv_HAVE_DEV64_T" = x"yes"; then
9359 cat >> confdefs.h <<\EOF
9360 #define HAVE_DEV64_T 1
9365 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
9366 echo "configure:9367: checking for struct dirent64" >&5
9367 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
9368 echo $ac_n "(cached) $ac_c" 1>&6
9371 cat > conftest.$ac_ext <<EOF
9372 #line 9373 "configure"
9373 #include "confdefs.h"
9375 #if defined(HAVE_UNISTD_H)
9378 #include <sys/types.h>
9384 if { (eval echo configure:9385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9386 samba_cv_HAVE_STRUCT_DIRENT64=yes
9388 echo "configure: failed program was:" >&5
9389 cat conftest.$ac_ext >&5
9391 samba_cv_HAVE_STRUCT_DIRENT64=no
9396 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
9397 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes" && test x"$ac_cv_func_readdir64" = x"yes"; then
9398 cat >> confdefs.h <<\EOF
9399 #define HAVE_STRUCT_DIRENT64 1
9404 echo $ac_n "checking for major macro""... $ac_c" 1>&6
9405 echo "configure:9406: checking for major macro" >&5
9406 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MAJOR_FN'+set}'`\" = set"; then
9407 echo $ac_n "(cached) $ac_c" 1>&6
9410 if test "$cross_compiling" = yes; then
9411 samba_cv_HAVE_DEVICE_MAJOR_FN=cross
9413 cat > conftest.$ac_ext <<EOF
9414 #line 9415 "configure"
9415 #include "confdefs.h"
9417 #if defined(HAVE_UNISTD_H)
9420 #include <sys/types.h>
9421 main() { dev_t dev; int i = major(dev); return 0; }
9423 if { (eval echo configure:9424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9425 samba_cv_HAVE_DEVICE_MAJOR_FN=yes
9427 echo "configure: failed program was:" >&5
9428 cat conftest.$ac_ext >&5
9430 samba_cv_HAVE_DEVICE_MAJOR_FN=no
9437 echo "$ac_t""$samba_cv_HAVE_DEVICE_MAJOR_FN" 1>&6
9438 if test x"$samba_cv_HAVE_DEVICE_MAJOR_FN" = x"yes"; then
9439 cat >> confdefs.h <<\EOF
9440 #define HAVE_DEVICE_MAJOR_FN 1
9445 echo $ac_n "checking for minor macro""... $ac_c" 1>&6
9446 echo "configure:9447: checking for minor macro" >&5
9447 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MINOR_FN'+set}'`\" = set"; then
9448 echo $ac_n "(cached) $ac_c" 1>&6
9451 if test "$cross_compiling" = yes; then
9452 samba_cv_HAVE_DEVICE_MINOR_FN=cross
9454 cat > conftest.$ac_ext <<EOF
9455 #line 9456 "configure"
9456 #include "confdefs.h"
9458 #if defined(HAVE_UNISTD_H)
9461 #include <sys/types.h>
9462 main() { dev_t dev; int i = minor(dev); return 0; }
9464 if { (eval echo configure:9465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9466 samba_cv_HAVE_DEVICE_MINOR_FN=yes
9468 echo "configure: failed program was:" >&5
9469 cat conftest.$ac_ext >&5
9471 samba_cv_HAVE_DEVICE_MINOR_FN=no
9478 echo "$ac_t""$samba_cv_HAVE_DEVICE_MINOR_FN" 1>&6
9479 if test x"$samba_cv_HAVE_DEVICE_MINOR_FN" = x"yes"; then
9480 cat >> confdefs.h <<\EOF
9481 #define HAVE_DEVICE_MINOR_FN 1
9486 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
9487 echo "configure:9488: checking for unsigned char" >&5
9488 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
9489 echo $ac_n "(cached) $ac_c" 1>&6
9492 if test "$cross_compiling" = yes; then
9493 samba_cv_HAVE_UNSIGNED_CHAR=cross
9495 cat > conftest.$ac_ext <<EOF
9496 #line 9497 "configure"
9497 #include "confdefs.h"
9499 main() { char c; c=250; exit((c > 0)?0:1); }
9501 if { (eval echo configure:9502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9503 samba_cv_HAVE_UNSIGNED_CHAR=yes
9505 echo "configure: failed program was:" >&5
9506 cat conftest.$ac_ext >&5
9508 samba_cv_HAVE_UNSIGNED_CHAR=no
9515 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
9516 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
9517 cat >> confdefs.h <<\EOF
9518 #define HAVE_UNSIGNED_CHAR 1
9523 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
9524 echo "configure:9525: checking for sin_len in sock" >&5
9525 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
9526 echo $ac_n "(cached) $ac_c" 1>&6
9529 cat > conftest.$ac_ext <<EOF
9530 #line 9531 "configure"
9531 #include "confdefs.h"
9532 #include <sys/types.h>
9533 #include <sys/socket.h>
9534 #include <netinet/in.h>
9536 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
9539 if { (eval echo configure:9540: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9541 samba_cv_HAVE_SOCK_SIN_LEN=yes
9543 echo "configure: failed program was:" >&5
9544 cat conftest.$ac_ext >&5
9546 samba_cv_HAVE_SOCK_SIN_LEN=no
9551 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
9552 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
9553 cat >> confdefs.h <<\EOF
9554 #define HAVE_SOCK_SIN_LEN 1
9559 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
9560 echo "configure:9561: checking whether seekdir returns void" >&5
9561 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
9562 echo $ac_n "(cached) $ac_c" 1>&6
9565 cat > conftest.$ac_ext <<EOF
9566 #line 9567 "configure"
9567 #include "confdefs.h"
9568 #include <sys/types.h>
9570 void seekdir(DIR *d, long loc) { return; }
9575 if { (eval echo configure:9576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9577 samba_cv_SEEKDIR_RETURNS_VOID=yes
9579 echo "configure: failed program was:" >&5
9580 cat conftest.$ac_ext >&5
9582 samba_cv_SEEKDIR_RETURNS_VOID=no
9587 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
9588 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
9589 cat >> confdefs.h <<\EOF
9590 #define SEEKDIR_RETURNS_VOID 1
9595 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
9596 echo "configure:9597: checking for __FILE__ macro" >&5
9597 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
9598 echo $ac_n "(cached) $ac_c" 1>&6
9601 cat > conftest.$ac_ext <<EOF
9602 #line 9603 "configure"
9603 #include "confdefs.h"
9606 printf("%s\n", __FILE__);
9609 if { (eval echo configure:9610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9611 samba_cv_HAVE_FILE_MACRO=yes
9613 echo "configure: failed program was:" >&5
9614 cat conftest.$ac_ext >&5
9616 samba_cv_HAVE_FILE_MACRO=no
9621 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
9622 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
9623 cat >> confdefs.h <<\EOF
9624 #define HAVE_FILE_MACRO 1
9629 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9630 echo "configure:9631: checking for __FUNCTION__ macro" >&5
9631 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9632 echo $ac_n "(cached) $ac_c" 1>&6
9635 cat > conftest.$ac_ext <<EOF
9636 #line 9637 "configure"
9637 #include "confdefs.h"
9640 printf("%s\n", __FUNCTION__);
9643 if { (eval echo configure:9644: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9645 samba_cv_HAVE_FUNCTION_MACRO=yes
9647 echo "configure: failed program was:" >&5
9648 cat conftest.$ac_ext >&5
9650 samba_cv_HAVE_FUNCTION_MACRO=no
9655 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9656 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
9657 cat >> confdefs.h <<\EOF
9658 #define HAVE_FUNCTION_MACRO 1
9663 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9664 echo "configure:9665: checking if gettimeofday takes tz argument" >&5
9665 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9666 echo $ac_n "(cached) $ac_c" 1>&6
9669 if test "$cross_compiling" = yes; then
9670 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
9672 cat > conftest.$ac_ext <<EOF
9673 #line 9674 "configure"
9674 #include "confdefs.h"
9676 #include <sys/time.h>
9678 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9680 if { (eval echo configure:9681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9682 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
9684 echo "configure: failed program was:" >&5
9685 cat conftest.$ac_ext >&5
9687 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
9694 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9695 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
9696 cat >> confdefs.h <<\EOF
9697 #define HAVE_GETTIMEOFDAY_TZ 1
9702 echo $ac_n "checking for __va_copy""... $ac_c" 1>&6
9703 echo "configure:9704: checking for __va_copy" >&5
9704 if eval "test \"`echo '$''{'samba_cv_HAVE_VA_COPY'+set}'`\" = set"; then
9705 echo $ac_n "(cached) $ac_c" 1>&6
9708 cat > conftest.$ac_ext <<EOF
9709 #line 9710 "configure"
9710 #include "confdefs.h"
9717 if { (eval echo configure:9718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9719 samba_cv_HAVE_VA_COPY=yes
9721 echo "configure: failed program was:" >&5
9722 cat conftest.$ac_ext >&5
9724 samba_cv_HAVE_VA_COPY=no
9729 echo "$ac_t""$samba_cv_HAVE_VA_COPY" 1>&6
9730 if test x"$samba_cv_HAVE_VA_COPY" = x"yes"; then
9731 cat >> confdefs.h <<\EOF
9732 #define HAVE_VA_COPY 1
9737 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
9738 echo "configure:9739: checking for C99 vsnprintf" >&5
9739 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
9740 echo $ac_n "(cached) $ac_c" 1>&6
9743 if test "$cross_compiling" = yes; then
9744 samba_cv_HAVE_C99_VSNPRINTF=cross
9746 cat > conftest.$ac_ext <<EOF
9747 #line 9748 "configure"
9748 #include "confdefs.h"
9750 #include <sys/types.h>
9752 void foo(const char *format, ...) {
9757 va_start(ap, format);
9758 len = vsnprintf(buf, 0, format, ap);
9760 if (len != 5) exit(1);
9762 va_start(ap, format);
9763 len = vsnprintf(0, 0, format, ap);
9765 if (len != 5) exit(1);
9767 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
9771 main() { foo("hello"); }
9774 if { (eval echo configure:9775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9776 samba_cv_HAVE_C99_VSNPRINTF=yes
9778 echo "configure: failed program was:" >&5
9779 cat conftest.$ac_ext >&5
9781 samba_cv_HAVE_C99_VSNPRINTF=no
9788 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
9789 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
9790 cat >> confdefs.h <<\EOF
9791 #define HAVE_C99_VSNPRINTF 1
9796 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9797 echo "configure:9798: checking for broken readdir" >&5
9798 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9799 echo $ac_n "(cached) $ac_c" 1>&6
9802 if test "$cross_compiling" = yes; then
9803 samba_cv_HAVE_BROKEN_READDIR=cross
9805 cat > conftest.$ac_ext <<EOF
9806 #line 9807 "configure"
9807 #include "confdefs.h"
9808 #include <sys/types.h>
9810 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9811 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9812 di->d_name[0] == 0) exit(0); exit(1);}
9814 if { (eval echo configure:9815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9816 samba_cv_HAVE_BROKEN_READDIR=yes
9818 echo "configure: failed program was:" >&5
9819 cat conftest.$ac_ext >&5
9821 samba_cv_HAVE_BROKEN_READDIR=no
9828 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9829 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
9830 cat >> confdefs.h <<\EOF
9831 #define HAVE_BROKEN_READDIR 1
9836 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9837 echo "configure:9838: checking for utimbuf" >&5
9838 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9839 echo $ac_n "(cached) $ac_c" 1>&6
9842 cat > conftest.$ac_ext <<EOF
9843 #line 9844 "configure"
9844 #include "confdefs.h"
9845 #include <sys/types.h>
9848 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9851 if { (eval echo configure:9852: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9853 samba_cv_HAVE_UTIMBUF=yes
9855 echo "configure: failed program was:" >&5
9856 cat conftest.$ac_ext >&5
9858 samba_cv_HAVE_UTIMBUF=no
9863 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9864 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
9865 cat >> confdefs.h <<\EOF
9866 #define HAVE_UTIMBUF 1
9872 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
9874 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9875 echo "configure:9876: checking for $ac_func" >&5
9876 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9877 echo $ac_n "(cached) $ac_c" 1>&6
9879 cat > conftest.$ac_ext <<EOF
9880 #line 9881 "configure"
9881 #include "confdefs.h"
9882 /* System header to define __stub macros and hopefully few prototypes,
9883 which can conflict with char $ac_func(); below. */
9885 /* Override any gcc2 internal prototype to avoid an error. */
9886 /* We use char because int might match the return type of a gcc2
9887 builtin and then its argument prototype would still apply. */
9892 /* The GNU C library defines this for functions which it implements
9893 to always fail with ENOSYS. Some functions are actually named
9894 something starting with __ and the normal name is an alias. */
9895 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9903 if { (eval echo configure:9904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9905 eval "ac_cv_func_$ac_func=yes"
9907 echo "configure: failed program was:" >&5
9908 cat conftest.$ac_ext >&5
9910 eval "ac_cv_func_$ac_func=no"
9915 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9916 echo "$ac_t""yes" 1>&6
9917 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9918 cat >> confdefs.h <<EOF
9919 #define $ac_tr_func 1
9923 echo "$ac_t""no" 1>&6
9928 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9929 echo "configure:9930: checking for ut_name in utmp" >&5
9930 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9931 echo $ac_n "(cached) $ac_c" 1>&6
9934 cat > conftest.$ac_ext <<EOF
9935 #line 9936 "configure"
9936 #include "confdefs.h"
9937 #include <sys/types.h>
9940 struct utmp ut; ut.ut_name[0] = 'a';
9943 if { (eval echo configure:9944: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9945 samba_cv_HAVE_UT_UT_NAME=yes
9947 echo "configure: failed program was:" >&5
9948 cat conftest.$ac_ext >&5
9950 samba_cv_HAVE_UT_UT_NAME=no
9955 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9956 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
9957 cat >> confdefs.h <<\EOF
9958 #define HAVE_UT_UT_NAME 1
9963 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
9964 echo "configure:9965: checking for ut_user in utmp" >&5
9965 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
9966 echo $ac_n "(cached) $ac_c" 1>&6
9969 cat > conftest.$ac_ext <<EOF
9970 #line 9971 "configure"
9971 #include "confdefs.h"
9972 #include <sys/types.h>
9975 struct utmp ut; ut.ut_user[0] = 'a';
9978 if { (eval echo configure:9979: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9980 samba_cv_HAVE_UT_UT_USER=yes
9982 echo "configure: failed program was:" >&5
9983 cat conftest.$ac_ext >&5
9985 samba_cv_HAVE_UT_UT_USER=no
9990 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
9991 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
9992 cat >> confdefs.h <<\EOF
9993 #define HAVE_UT_UT_USER 1
9998 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
9999 echo "configure:10000: checking for ut_id in utmp" >&5
10000 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
10001 echo $ac_n "(cached) $ac_c" 1>&6
10004 cat > conftest.$ac_ext <<EOF
10005 #line 10006 "configure"
10006 #include "confdefs.h"
10007 #include <sys/types.h>
10010 struct utmp ut; ut.ut_id[0] = 'a';
10013 if { (eval echo configure:10014: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10015 samba_cv_HAVE_UT_UT_ID=yes
10017 echo "configure: failed program was:" >&5
10018 cat conftest.$ac_ext >&5
10020 samba_cv_HAVE_UT_UT_ID=no
10025 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
10026 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
10027 cat >> confdefs.h <<\EOF
10028 #define HAVE_UT_UT_ID 1
10033 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
10034 echo "configure:10035: checking for ut_host in utmp" >&5
10035 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
10036 echo $ac_n "(cached) $ac_c" 1>&6
10039 cat > conftest.$ac_ext <<EOF
10040 #line 10041 "configure"
10041 #include "confdefs.h"
10042 #include <sys/types.h>
10045 struct utmp ut; ut.ut_host[0] = 'a';
10048 if { (eval echo configure:10049: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10050 samba_cv_HAVE_UT_UT_HOST=yes
10052 echo "configure: failed program was:" >&5
10053 cat conftest.$ac_ext >&5
10055 samba_cv_HAVE_UT_UT_HOST=no
10060 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
10061 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
10062 cat >> confdefs.h <<\EOF
10063 #define HAVE_UT_UT_HOST 1
10068 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
10069 echo "configure:10070: checking for ut_time in utmp" >&5
10070 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
10071 echo $ac_n "(cached) $ac_c" 1>&6
10074 cat > conftest.$ac_ext <<EOF
10075 #line 10076 "configure"
10076 #include "confdefs.h"
10077 #include <sys/types.h>
10080 struct utmp ut; time_t t; ut.ut_time = t;
10083 if { (eval echo configure:10084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10085 samba_cv_HAVE_UT_UT_TIME=yes
10087 echo "configure: failed program was:" >&5
10088 cat conftest.$ac_ext >&5
10090 samba_cv_HAVE_UT_UT_TIME=no
10095 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
10096 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
10097 cat >> confdefs.h <<\EOF
10098 #define HAVE_UT_UT_TIME 1
10103 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
10104 echo "configure:10105: checking for ut_tv in utmp" >&5
10105 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
10106 echo $ac_n "(cached) $ac_c" 1>&6
10109 cat > conftest.$ac_ext <<EOF
10110 #line 10111 "configure"
10111 #include "confdefs.h"
10112 #include <sys/types.h>
10115 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
10118 if { (eval echo configure:10119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10120 samba_cv_HAVE_UT_UT_TV=yes
10122 echo "configure: failed program was:" >&5
10123 cat conftest.$ac_ext >&5
10125 samba_cv_HAVE_UT_UT_TV=no
10130 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
10131 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
10132 cat >> confdefs.h <<\EOF
10133 #define HAVE_UT_UT_TV 1
10138 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
10139 echo "configure:10140: checking for ut_type in utmp" >&5
10140 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
10141 echo $ac_n "(cached) $ac_c" 1>&6
10144 cat > conftest.$ac_ext <<EOF
10145 #line 10146 "configure"
10146 #include "confdefs.h"
10147 #include <sys/types.h>
10150 struct utmp ut; ut.ut_type = 0;
10153 if { (eval echo configure:10154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10155 samba_cv_HAVE_UT_UT_TYPE=yes
10157 echo "configure: failed program was:" >&5
10158 cat conftest.$ac_ext >&5
10160 samba_cv_HAVE_UT_UT_TYPE=no
10165 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
10166 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
10167 cat >> confdefs.h <<\EOF
10168 #define HAVE_UT_UT_TYPE 1
10173 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
10174 echo "configure:10175: checking for ut_pid in utmp" >&5
10175 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
10176 echo $ac_n "(cached) $ac_c" 1>&6
10179 cat > conftest.$ac_ext <<EOF
10180 #line 10181 "configure"
10181 #include "confdefs.h"
10182 #include <sys/types.h>
10185 struct utmp ut; ut.ut_pid = 0;
10188 if { (eval echo configure:10189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10190 samba_cv_HAVE_UT_UT_PID=yes
10192 echo "configure: failed program was:" >&5
10193 cat conftest.$ac_ext >&5
10195 samba_cv_HAVE_UT_UT_PID=no
10200 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
10201 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
10202 cat >> confdefs.h <<\EOF
10203 #define HAVE_UT_UT_PID 1
10208 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
10209 echo "configure:10210: checking for ut_exit in utmp" >&5
10210 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
10211 echo $ac_n "(cached) $ac_c" 1>&6
10214 cat > conftest.$ac_ext <<EOF
10215 #line 10216 "configure"
10216 #include "confdefs.h"
10217 #include <sys/types.h>
10220 struct utmp ut; ut.ut_exit.e_exit = 0;
10223 if { (eval echo configure:10224: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10225 samba_cv_HAVE_UT_UT_EXIT=yes
10227 echo "configure: failed program was:" >&5
10228 cat conftest.$ac_ext >&5
10230 samba_cv_HAVE_UT_UT_EXIT=no
10235 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
10236 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
10237 cat >> confdefs.h <<\EOF
10238 #define HAVE_UT_UT_EXIT 1
10243 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
10244 echo "configure:10245: checking for ut_addr in utmp" >&5
10245 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
10246 echo $ac_n "(cached) $ac_c" 1>&6
10249 cat > conftest.$ac_ext <<EOF
10250 #line 10251 "configure"
10251 #include "confdefs.h"
10252 #include <sys/types.h>
10255 struct utmp ut; ut.ut_addr = 0;
10258 if { (eval echo configure:10259: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10260 samba_cv_HAVE_UT_UT_ADDR=yes
10262 echo "configure: failed program was:" >&5
10263 cat conftest.$ac_ext >&5
10265 samba_cv_HAVE_UT_UT_ADDR=no
10270 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
10271 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
10272 cat >> confdefs.h <<\EOF
10273 #define HAVE_UT_UT_ADDR 1
10278 if test x$ac_cv_func_pututline = xyes ; then
10279 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
10280 echo "configure:10281: checking whether pututline returns pointer" >&5
10281 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
10282 echo $ac_n "(cached) $ac_c" 1>&6
10285 cat > conftest.$ac_ext <<EOF
10286 #line 10287 "configure"
10287 #include "confdefs.h"
10288 #include <sys/types.h>
10291 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
10294 if { (eval echo configure:10295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10296 samba_cv_PUTUTLINE_RETURNS_UTMP=yes
10298 echo "configure: failed program was:" >&5
10299 cat conftest.$ac_ext >&5
10301 samba_cv_PUTUTLINE_RETURNS_UTMP=no
10306 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
10307 if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
10308 cat >> confdefs.h <<\EOF
10309 #define PUTUTLINE_RETURNS_UTMP 1
10315 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
10316 echo "configure:10317: checking for ut_syslen in utmpx" >&5
10317 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
10318 echo $ac_n "(cached) $ac_c" 1>&6
10321 cat > conftest.$ac_ext <<EOF
10322 #line 10323 "configure"
10323 #include "confdefs.h"
10324 #include <sys/types.h>
10327 struct utmpx ux; ux.ut_syslen = 0;
10330 if { (eval echo configure:10331: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10332 samba_cv_HAVE_UX_UT_SYSLEN=yes
10334 echo "configure: failed program was:" >&5
10335 cat conftest.$ac_ext >&5
10337 samba_cv_HAVE_UX_UT_SYSLEN=no
10342 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
10343 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
10344 cat >> confdefs.h <<\EOF
10345 #define HAVE_UX_UT_SYSLEN 1
10351 #################################################
10352 # check for libiconv support
10353 echo $ac_n "checking whether to use libiconv""... $ac_c" 1>&6
10354 echo "configure:10355: checking whether to use libiconv" >&5
10355 # Check whether --with-libiconv or --without-libiconv was given.
10356 if test "${with_libiconv+set}" = set; then
10357 withval="$with_libiconv"
10360 echo "$ac_t""no" 1>&6
10363 echo "$ac_t""yes" 1>&6
10364 CFLAGS="$CFLAGS -I$withval/include"
10365 LDFLAGS="$LDFLAGS -L$withval/lib"
10366 echo $ac_n "checking for iconv_open in -liconv""... $ac_c" 1>&6
10367 echo "configure:10368: checking for iconv_open in -liconv" >&5
10368 ac_lib_var=`echo iconv'_'iconv_open | sed 'y%./+-%__p_%'`
10369 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10370 echo $ac_n "(cached) $ac_c" 1>&6
10372 ac_save_LIBS="$LIBS"
10373 LIBS="-liconv $LIBS"
10374 cat > conftest.$ac_ext <<EOF
10375 #line 10376 "configure"
10376 #include "confdefs.h"
10377 /* Override any gcc2 internal prototype to avoid an error. */
10378 /* We use char because int might match the return type of a gcc2
10379 builtin and then its argument prototype would still apply. */
10386 if { (eval echo configure:10387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10388 eval "ac_cv_lib_$ac_lib_var=yes"
10390 echo "configure: failed program was:" >&5
10391 cat conftest.$ac_ext >&5
10393 eval "ac_cv_lib_$ac_lib_var=no"
10396 LIBS="$ac_save_LIBS"
10399 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10400 echo "$ac_t""yes" 1>&6
10401 ac_tr_lib=HAVE_LIB`echo iconv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10402 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10403 cat >> confdefs.h <<EOF
10404 #define $ac_tr_lib 1
10407 LIBS="-liconv $LIBS"
10410 echo "$ac_t""no" 1>&6
10413 cat >> confdefs.h <<EOF
10414 #define WITH_LIBICONV "${withval}"
10420 echo "$ac_t""no" 1>&6
10427 # check for iconv in libc
10428 echo $ac_n "checking for working iconv""... $ac_c" 1>&6
10429 echo "configure:10430: checking for working iconv" >&5
10430 if eval "test \"`echo '$''{'samba_cv_HAVE_NATIVE_ICONV'+set}'`\" = set"; then
10431 echo $ac_n "(cached) $ac_c" 1>&6
10434 if test "$cross_compiling" = yes; then
10435 samba_cv_HAVE_NATIVE_ICONV=cross
10437 cat > conftest.$ac_ext <<EOF
10438 #line 10439 "configure"
10439 #include "confdefs.h"
10443 iconv_t cd = iconv_open("ASCII", "UCS-2LE");
10444 if (cd == 0 || cd == (iconv_t)-1) return -1;
10449 if { (eval echo configure:10450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10451 samba_cv_HAVE_NATIVE_ICONV=yes
10453 echo "configure: failed program was:" >&5
10454 cat conftest.$ac_ext >&5
10456 samba_cv_HAVE_NATIVE_ICONV=no
10463 echo "$ac_t""$samba_cv_HAVE_NATIVE_ICONV" 1>&6
10464 if test x"$samba_cv_HAVE_NATIVE_ICONV" = x"yes"; then
10465 cat >> confdefs.h <<\EOF
10466 #define HAVE_NATIVE_ICONV 1
10472 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
10473 echo "configure:10474: checking for Linux kernel oplocks" >&5
10474 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
10475 echo $ac_n "(cached) $ac_c" 1>&6
10478 if test "$cross_compiling" = yes; then
10479 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
10481 cat > conftest.$ac_ext <<EOF
10482 #line 10483 "configure"
10483 #include "confdefs.h"
10485 #include <sys/types.h>
10488 #define F_GETLEASE 1025
10491 int fd = open("/dev/null", O_RDONLY);
10492 return fcntl(fd, F_GETLEASE, 0) == -1;
10496 if { (eval echo configure:10497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10498 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
10500 echo "configure: failed program was:" >&5
10501 cat conftest.$ac_ext >&5
10503 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
10510 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
10511 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
10512 cat >> confdefs.h <<\EOF
10513 #define HAVE_KERNEL_OPLOCKS_LINUX 1
10518 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
10519 echo "configure:10520: checking for kernel change notify support" >&5
10520 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
10521 echo $ac_n "(cached) $ac_c" 1>&6
10524 if test "$cross_compiling" = yes; then
10525 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
10527 cat > conftest.$ac_ext <<EOF
10528 #line 10529 "configure"
10529 #include "confdefs.h"
10531 #include <sys/types.h>
10533 #include <signal.h>
10535 #define F_NOTIFY 1026
10538 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
10542 if { (eval echo configure:10543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10544 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
10546 echo "configure: failed program was:" >&5
10547 cat conftest.$ac_ext >&5
10549 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
10556 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
10557 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes"; then
10558 cat >> confdefs.h <<\EOF
10559 #define HAVE_KERNEL_CHANGE_NOTIFY 1
10564 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
10565 echo "configure:10566: checking for kernel share modes" >&5
10566 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
10567 echo $ac_n "(cached) $ac_c" 1>&6
10570 if test "$cross_compiling" = yes; then
10571 samba_cv_HAVE_KERNEL_SHARE_MODES=cross
10573 cat > conftest.$ac_ext <<EOF
10574 #line 10575 "configure"
10575 #include "confdefs.h"
10577 #include <sys/types.h>
10579 #include <signal.h>
10580 #include <sys/file.h>
10582 #define LOCK_MAND 32
10583 #define LOCK_READ 64
10586 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
10590 if { (eval echo configure:10591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10592 samba_cv_HAVE_KERNEL_SHARE_MODES=yes
10594 echo "configure: failed program was:" >&5
10595 cat conftest.$ac_ext >&5
10597 samba_cv_HAVE_KERNEL_SHARE_MODES=no
10604 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
10605 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
10606 cat >> confdefs.h <<\EOF
10607 #define HAVE_KERNEL_SHARE_MODES 1
10615 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
10616 echo "configure:10617: checking for IRIX kernel oplock type definitions" >&5
10617 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
10618 echo $ac_n "(cached) $ac_c" 1>&6
10621 cat > conftest.$ac_ext <<EOF
10622 #line 10623 "configure"
10623 #include "confdefs.h"
10624 #include <sys/types.h>
10627 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
10630 if { (eval echo configure:10631: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10632 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
10634 echo "configure: failed program was:" >&5
10635 cat conftest.$ac_ext >&5
10637 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
10642 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
10643 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
10644 cat >> confdefs.h <<\EOF
10645 #define HAVE_KERNEL_OPLOCKS_IRIX 1
10650 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
10651 echo "configure:10652: checking for irix specific capabilities" >&5
10652 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
10653 echo $ac_n "(cached) $ac_c" 1>&6
10656 if test "$cross_compiling" = yes; then
10657 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
10659 cat > conftest.$ac_ext <<EOF
10660 #line 10661 "configure"
10661 #include "confdefs.h"
10662 #include <sys/types.h>
10663 #include <sys/capability.h>
10666 if ((cap = cap_get_proc()) == NULL)
10668 cap->cap_effective |= CAP_NETWORK_MGT;
10669 cap->cap_inheritable |= CAP_NETWORK_MGT;
10675 if { (eval echo configure:10676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10677 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
10679 echo "configure: failed program was:" >&5
10680 cat conftest.$ac_ext >&5
10682 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
10689 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
10690 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
10691 cat >> confdefs.h <<\EOF
10692 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
10698 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
10699 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
10702 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10703 echo "configure:10704: checking for int16 typedef included by rpc/rpc.h" >&5
10704 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10705 echo $ac_n "(cached) $ac_c" 1>&6
10708 cat > conftest.$ac_ext <<EOF
10709 #line 10710 "configure"
10710 #include "confdefs.h"
10711 #include <sys/types.h>
10712 #if defined(HAVE_RPC_RPC_H)
10713 #include <rpc/rpc.h>
10719 if { (eval echo configure:10720: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10721 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
10723 echo "configure: failed program was:" >&5
10724 cat conftest.$ac_ext >&5
10726 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
10731 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
10732 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
10733 cat >> confdefs.h <<\EOF
10734 #define HAVE_INT16_FROM_RPC_RPC_H 1
10739 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10740 echo "configure:10741: checking for uint16 typedef included by rpc/rpc.h" >&5
10741 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10742 echo $ac_n "(cached) $ac_c" 1>&6
10745 cat > conftest.$ac_ext <<EOF
10746 #line 10747 "configure"
10747 #include "confdefs.h"
10748 #include <sys/types.h>
10749 #if defined(HAVE_RPC_RPC_H)
10750 #include <rpc/rpc.h>
10756 if { (eval echo configure:10757: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10758 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
10760 echo "configure: failed program was:" >&5
10761 cat conftest.$ac_ext >&5
10763 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
10768 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
10769 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
10770 cat >> confdefs.h <<\EOF
10771 #define HAVE_UINT16_FROM_RPC_RPC_H 1
10776 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10777 echo "configure:10778: checking for int32 typedef included by rpc/rpc.h" >&5
10778 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10779 echo $ac_n "(cached) $ac_c" 1>&6
10782 cat > conftest.$ac_ext <<EOF
10783 #line 10784 "configure"
10784 #include "confdefs.h"
10785 #include <sys/types.h>
10786 #if defined(HAVE_RPC_RPC_H)
10787 #include <rpc/rpc.h>
10793 if { (eval echo configure:10794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10795 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
10797 echo "configure: failed program was:" >&5
10798 cat conftest.$ac_ext >&5
10800 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
10805 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
10806 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
10807 cat >> confdefs.h <<\EOF
10808 #define HAVE_INT32_FROM_RPC_RPC_H 1
10813 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10814 echo "configure:10815: checking for uint32 typedef included by rpc/rpc.h" >&5
10815 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10816 echo $ac_n "(cached) $ac_c" 1>&6
10819 cat > conftest.$ac_ext <<EOF
10820 #line 10821 "configure"
10821 #include "confdefs.h"
10822 #include <sys/types.h>
10823 #if defined(HAVE_RPC_RPC_H)
10824 #include <rpc/rpc.h>
10830 if { (eval echo configure:10831: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10832 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
10834 echo "configure: failed program was:" >&5
10835 cat conftest.$ac_ext >&5
10837 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
10842 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
10843 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
10844 cat >> confdefs.h <<\EOF
10845 #define HAVE_UINT32_FROM_RPC_RPC_H 1
10851 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
10852 echo "configure:10853: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
10853 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
10854 echo $ac_n "(cached) $ac_c" 1>&6
10857 cat > conftest.$ac_ext <<EOF
10858 #line 10859 "configure"
10859 #include "confdefs.h"
10860 #include <sys/types.h>
10861 #ifdef HAVE_SYS_SECURITY_H
10862 #include <sys/security.h>
10864 #endif /* HAVE_SYS_SECURITY_H */
10865 #if defined(HAVE_RPC_RPC_H)
10866 #include <rpc/rpc.h>
10872 if { (eval echo configure:10873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10874 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
10876 echo "configure: failed program was:" >&5
10877 cat conftest.$ac_ext >&5
10879 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
10884 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
10885 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
10886 cat >> confdefs.h <<\EOF
10887 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
10892 echo $ac_n "checking for test routines""... $ac_c" 1>&6
10893 echo "configure:10894: checking for test routines" >&5
10894 if test "$cross_compiling" = yes; then
10895 echo "configure: warning: cannot run when cross-compiling" 1>&2
10897 cat > conftest.$ac_ext <<EOF
10898 #line 10899 "configure"
10899 #include "confdefs.h"
10900 #include "${srcdir-.}/tests/trivial.c"
10902 if { (eval echo configure:10903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10904 echo "$ac_t""yes" 1>&6
10906 echo "configure: failed program was:" >&5
10907 cat conftest.$ac_ext >&5
10909 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10915 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10916 echo "configure:10917: checking for ftruncate extend" >&5
10917 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10918 echo $ac_n "(cached) $ac_c" 1>&6
10921 if test "$cross_compiling" = yes; then
10922 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
10924 cat > conftest.$ac_ext <<EOF
10925 #line 10926 "configure"
10926 #include "confdefs.h"
10927 #include "${srcdir-.}/tests/ftruncate.c"
10929 if { (eval echo configure:10930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10931 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
10933 echo "configure: failed program was:" >&5
10934 cat conftest.$ac_ext >&5
10936 samba_cv_HAVE_FTRUNCATE_EXTEND=no
10943 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10944 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
10945 cat >> confdefs.h <<\EOF
10946 #define HAVE_FTRUNCATE_EXTEND 1
10951 echo $ac_n "checking for AF_LOCAL socket support""... $ac_c" 1>&6
10952 echo "configure:10953: checking for AF_LOCAL socket support" >&5
10953 if eval "test \"`echo '$''{'samba_cv_HAVE_WORKING_AF_LOCAL'+set}'`\" = set"; then
10954 echo $ac_n "(cached) $ac_c" 1>&6
10957 if test "$cross_compiling" = yes; then
10958 samba_cv_HAVE_WORKING_AF_LOCAL=cross
10960 cat > conftest.$ac_ext <<EOF
10961 #line 10962 "configure"
10962 #include "confdefs.h"
10963 #include "${srcdir-.}/tests/unixsock.c"
10965 if { (eval echo configure:10966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10967 samba_cv_HAVE_WORKING_AF_LOCAL=yes
10969 echo "configure: failed program was:" >&5
10970 cat conftest.$ac_ext >&5
10972 samba_cv_HAVE_WORKING_AF_LOCAL=no
10979 echo "$ac_t""$samba_cv_HAVE_WORKING_AF_LOCAL" 1>&6
10980 if test x"$samba_cv_HAVE_WORKING_AF_LOCAL" != xno
10982 cat >> confdefs.h <<\EOF
10983 #define HAVE_WORKING_AF_LOCAL 1
10988 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10989 echo "configure:10990: checking for broken getgroups" >&5
10990 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10991 echo $ac_n "(cached) $ac_c" 1>&6
10994 if test "$cross_compiling" = yes; then
10995 samba_cv_HAVE_BROKEN_GETGROUPS=cross
10997 cat > conftest.$ac_ext <<EOF
10998 #line 10999 "configure"
10999 #include "confdefs.h"
11000 #include "${srcdir-.}/tests/getgroups.c"
11002 if { (eval echo configure:11003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11004 samba_cv_HAVE_BROKEN_GETGROUPS=yes
11006 echo "configure: failed program was:" >&5
11007 cat conftest.$ac_ext >&5
11009 samba_cv_HAVE_BROKEN_GETGROUPS=no
11016 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
11017 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
11018 cat >> confdefs.h <<\EOF
11019 #define HAVE_BROKEN_GETGROUPS 1
11024 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
11025 echo "configure:11026: checking whether getpass should be replaced" >&5
11026 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
11027 echo $ac_n "(cached) $ac_c" 1>&6
11030 SAVE_CPPFLAGS="$CPPFLAGS"
11031 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/popt -I${srcdir-.}/smbwrapper"
11032 cat > conftest.$ac_ext <<EOF
11033 #line 11034 "configure"
11034 #include "confdefs.h"
11036 #define REPLACE_GETPASS 1
11037 #define NO_CONFIG_H 1
11038 #define main dont_declare_main
11039 #include "${srcdir-.}/lib/getsmbpass.c"
11046 if { (eval echo configure:11047: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11048 samba_cv_REPLACE_GETPASS=yes
11050 echo "configure: failed program was:" >&5
11051 cat conftest.$ac_ext >&5
11053 samba_cv_REPLACE_GETPASS=no
11056 CPPFLAGS="$SAVE_CPPFLAGS"
11060 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
11061 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
11062 cat >> confdefs.h <<\EOF
11063 #define REPLACE_GETPASS 1
11068 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
11069 echo "configure:11070: checking for broken inet_ntoa" >&5
11070 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
11071 echo $ac_n "(cached) $ac_c" 1>&6
11074 if test "$cross_compiling" = yes; then
11075 samba_cv_REPLACE_INET_NTOA=cross
11077 cat > conftest.$ac_ext <<EOF
11078 #line 11079 "configure"
11079 #include "confdefs.h"
11082 #include <sys/types.h>
11083 #include <netinet/in.h>
11084 #ifdef HAVE_ARPA_INET_H
11085 #include <arpa/inet.h>
11087 main() { struct in_addr ip; ip.s_addr = 0x12345678;
11088 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
11089 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
11092 if { (eval echo configure:11093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11094 samba_cv_REPLACE_INET_NTOA=yes
11096 echo "configure: failed program was:" >&5
11097 cat conftest.$ac_ext >&5
11099 samba_cv_REPLACE_INET_NTOA=no
11106 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
11107 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
11108 cat >> confdefs.h <<\EOF
11109 #define REPLACE_INET_NTOA 1
11114 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
11115 echo "configure:11116: checking for secure mkstemp" >&5
11116 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
11117 echo $ac_n "(cached) $ac_c" 1>&6
11120 if test "$cross_compiling" = yes; then
11121 samba_cv_HAVE_SECURE_MKSTEMP=cross
11123 cat > conftest.$ac_ext <<EOF
11124 #line 11125 "configure"
11125 #include "confdefs.h"
11126 #include <stdlib.h>
11127 #include <sys/types.h>
11128 #include <sys/stat.h>
11129 #include <unistd.h>
11132 char tpl[20]="/tmp/test.XXXXXX";
11133 int fd = mkstemp(tpl);
11134 if (fd == -1) exit(1);
11136 if (fstat(fd, &st) != 0) exit(1);
11137 if ((st.st_mode & 0777) != 0600) exit(1);
11141 if { (eval echo configure:11142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11143 samba_cv_HAVE_SECURE_MKSTEMP=yes
11145 echo "configure: failed program was:" >&5
11146 cat conftest.$ac_ext >&5
11148 samba_cv_HAVE_SECURE_MKSTEMP=no
11155 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
11156 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
11157 cat >> confdefs.h <<\EOF
11158 #define HAVE_SECURE_MKSTEMP 1
11163 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
11164 echo "configure:11165: checking for sysconf(_SC_NGROUPS_MAX)" >&5
11165 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
11166 echo $ac_n "(cached) $ac_c" 1>&6
11169 if test "$cross_compiling" = yes; then
11170 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
11172 cat > conftest.$ac_ext <<EOF
11173 #line 11174 "configure"
11174 #include "confdefs.h"
11175 #include <unistd.h>
11176 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
11178 if { (eval echo configure:11179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11180 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
11182 echo "configure: failed program was:" >&5
11183 cat conftest.$ac_ext >&5
11185 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
11192 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
11193 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
11194 cat >> confdefs.h <<\EOF
11195 #define SYSCONF_SC_NGROUPS_MAX 1
11200 echo $ac_n "checking for root""... $ac_c" 1>&6
11201 echo "configure:11202: checking for root" >&5
11202 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
11203 echo $ac_n "(cached) $ac_c" 1>&6
11206 if test "$cross_compiling" = yes; then
11207 samba_cv_HAVE_ROOT=cross
11209 cat > conftest.$ac_ext <<EOF
11210 #line 11211 "configure"
11211 #include "confdefs.h"
11212 main() { exit(getuid() != 0); }
11214 if { (eval echo configure:11215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11216 samba_cv_HAVE_ROOT=yes
11218 echo "configure: failed program was:" >&5
11219 cat conftest.$ac_ext >&5
11221 samba_cv_HAVE_ROOT=no
11228 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
11229 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
11230 cat >> confdefs.h <<\EOF
11231 #define HAVE_ROOT 1
11235 echo "configure: warning: running as non-root will disable some tests" 1>&2
11239 # look for a method of finding the list of network interfaces
11241 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
11242 echo "configure:11243: checking for iface AIX" >&5
11243 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
11244 echo $ac_n "(cached) $ac_c" 1>&6
11247 if test "$cross_compiling" = yes; then
11248 samba_cv_HAVE_IFACE_AIX=cross
11250 cat > conftest.$ac_ext <<EOF
11251 #line 11252 "configure"
11252 #include "confdefs.h"
11254 #define HAVE_IFACE_AIX 1
11255 #define AUTOCONF_TEST 1
11256 #include "confdefs.h"
11257 #include "${srcdir-.}/lib/interfaces.c"
11259 if { (eval echo configure:11260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11261 samba_cv_HAVE_IFACE_AIX=yes
11263 echo "configure: failed program was:" >&5
11264 cat conftest.$ac_ext >&5
11266 samba_cv_HAVE_IFACE_AIX=no
11273 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
11274 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
11275 iface=yes;cat >> confdefs.h <<\EOF
11276 #define HAVE_IFACE_AIX 1
11281 if test $iface = no; then
11282 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
11283 echo "configure:11284: checking for iface ifconf" >&5
11284 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
11285 echo $ac_n "(cached) $ac_c" 1>&6
11288 if test "$cross_compiling" = yes; then
11289 samba_cv_HAVE_IFACE_IFCONF=cross
11291 cat > conftest.$ac_ext <<EOF
11292 #line 11293 "configure"
11293 #include "confdefs.h"
11295 #define HAVE_IFACE_IFCONF 1
11296 #define AUTOCONF_TEST 1
11297 #include "confdefs.h"
11298 #include "${srcdir-.}/lib/interfaces.c"
11300 if { (eval echo configure:11301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11302 samba_cv_HAVE_IFACE_IFCONF=yes
11304 echo "configure: failed program was:" >&5
11305 cat conftest.$ac_ext >&5
11307 samba_cv_HAVE_IFACE_IFCONF=no
11314 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
11315 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
11316 iface=yes;cat >> confdefs.h <<\EOF
11317 #define HAVE_IFACE_IFCONF 1
11323 if test $iface = no; then
11324 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
11325 echo "configure:11326: checking for iface ifreq" >&5
11326 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
11327 echo $ac_n "(cached) $ac_c" 1>&6
11330 if test "$cross_compiling" = yes; then
11331 samba_cv_HAVE_IFACE_IFREQ=cross
11333 cat > conftest.$ac_ext <<EOF
11334 #line 11335 "configure"
11335 #include "confdefs.h"
11337 #define HAVE_IFACE_IFREQ 1
11338 #define AUTOCONF_TEST 1
11339 #include "confdefs.h"
11340 #include "${srcdir-.}/lib/interfaces.c"
11342 if { (eval echo configure:11343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11344 samba_cv_HAVE_IFACE_IFREQ=yes
11346 echo "configure: failed program was:" >&5
11347 cat conftest.$ac_ext >&5
11349 samba_cv_HAVE_IFACE_IFREQ=no
11356 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
11357 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
11358 iface=yes;cat >> confdefs.h <<\EOF
11359 #define HAVE_IFACE_IFREQ 1
11366 ################################################
11367 # look for a method of setting the effective uid
11369 if test $seteuid = no; then
11370 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
11371 echo "configure:11372: checking for setresuid" >&5
11372 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
11373 echo $ac_n "(cached) $ac_c" 1>&6
11376 if test "$cross_compiling" = yes; then
11377 samba_cv_USE_SETRESUID=cross
11379 cat > conftest.$ac_ext <<EOF
11380 #line 11381 "configure"
11381 #include "confdefs.h"
11383 #define AUTOCONF_TEST 1
11384 #define USE_SETRESUID 1
11385 #include "confdefs.h"
11386 #include "${srcdir-.}/lib/util_sec.c"
11388 if { (eval echo configure:11389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11390 samba_cv_USE_SETRESUID=yes
11392 echo "configure: failed program was:" >&5
11393 cat conftest.$ac_ext >&5
11395 samba_cv_USE_SETRESUID=no
11402 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
11403 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
11404 seteuid=yes;cat >> confdefs.h <<\EOF
11405 #define USE_SETRESUID 1
11412 if test $seteuid = no; then
11413 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
11414 echo "configure:11415: checking for setreuid" >&5
11415 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
11416 echo $ac_n "(cached) $ac_c" 1>&6
11419 if test "$cross_compiling" = yes; then
11420 samba_cv_USE_SETREUID=cross
11422 cat > conftest.$ac_ext <<EOF
11423 #line 11424 "configure"
11424 #include "confdefs.h"
11426 #define AUTOCONF_TEST 1
11427 #define USE_SETREUID 1
11428 #include "confdefs.h"
11429 #include "${srcdir-.}/lib/util_sec.c"
11431 if { (eval echo configure:11432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11433 samba_cv_USE_SETREUID=yes
11435 echo "configure: failed program was:" >&5
11436 cat conftest.$ac_ext >&5
11438 samba_cv_USE_SETREUID=no
11445 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
11446 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
11447 seteuid=yes;cat >> confdefs.h <<\EOF
11448 #define USE_SETREUID 1
11454 if test $seteuid = no; then
11455 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
11456 echo "configure:11457: checking for seteuid" >&5
11457 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
11458 echo $ac_n "(cached) $ac_c" 1>&6
11461 if test "$cross_compiling" = yes; then
11462 samba_cv_USE_SETEUID=cross
11464 cat > conftest.$ac_ext <<EOF
11465 #line 11466 "configure"
11466 #include "confdefs.h"
11468 #define AUTOCONF_TEST 1
11469 #define USE_SETEUID 1
11470 #include "confdefs.h"
11471 #include "${srcdir-.}/lib/util_sec.c"
11473 if { (eval echo configure:11474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11475 samba_cv_USE_SETEUID=yes
11477 echo "configure: failed program was:" >&5
11478 cat conftest.$ac_ext >&5
11480 samba_cv_USE_SETEUID=no
11487 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
11488 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
11489 seteuid=yes;cat >> confdefs.h <<\EOF
11490 #define USE_SETEUID 1
11496 if test $seteuid = no; then
11497 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
11498 echo "configure:11499: checking for setuidx" >&5
11499 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
11500 echo $ac_n "(cached) $ac_c" 1>&6
11503 if test "$cross_compiling" = yes; then
11504 samba_cv_USE_SETUIDX=cross
11506 cat > conftest.$ac_ext <<EOF
11507 #line 11508 "configure"
11508 #include "confdefs.h"
11510 #define AUTOCONF_TEST 1
11511 #define USE_SETUIDX 1
11512 #include "confdefs.h"
11513 #include "${srcdir-.}/lib/util_sec.c"
11515 if { (eval echo configure:11516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11517 samba_cv_USE_SETUIDX=yes
11519 echo "configure: failed program was:" >&5
11520 cat conftest.$ac_ext >&5
11522 samba_cv_USE_SETUIDX=no
11529 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
11530 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
11531 seteuid=yes;cat >> confdefs.h <<\EOF
11532 #define USE_SETUIDX 1
11539 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
11540 echo "configure:11541: checking for working mmap" >&5
11541 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
11542 echo $ac_n "(cached) $ac_c" 1>&6
11545 if test "$cross_compiling" = yes; then
11546 samba_cv_HAVE_MMAP=cross
11548 cat > conftest.$ac_ext <<EOF
11549 #line 11550 "configure"
11550 #include "confdefs.h"
11551 #include "${srcdir-.}/tests/shared_mmap.c"
11553 if { (eval echo configure:11554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11555 samba_cv_HAVE_MMAP=yes
11557 echo "configure: failed program was:" >&5
11558 cat conftest.$ac_ext >&5
11560 samba_cv_HAVE_MMAP=no
11567 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
11568 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
11569 cat >> confdefs.h <<\EOF
11570 #define HAVE_MMAP 1
11575 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
11576 echo "configure:11577: checking for ftruncate needs root" >&5
11577 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
11578 echo $ac_n "(cached) $ac_c" 1>&6
11581 if test "$cross_compiling" = yes; then
11582 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
11584 cat > conftest.$ac_ext <<EOF
11585 #line 11586 "configure"
11586 #include "confdefs.h"
11587 #include "${srcdir-.}/tests/ftruncroot.c"
11589 if { (eval echo configure:11590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11591 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
11593 echo "configure: failed program was:" >&5
11594 cat conftest.$ac_ext >&5
11596 samba_cv_FTRUNCATE_NEEDS_ROOT=no
11603 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
11604 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
11605 cat >> confdefs.h <<\EOF
11606 #define FTRUNCATE_NEEDS_ROOT 1
11611 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
11612 echo "configure:11613: checking for fcntl locking" >&5
11613 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
11614 echo $ac_n "(cached) $ac_c" 1>&6
11617 if test "$cross_compiling" = yes; then
11618 samba_cv_HAVE_FCNTL_LOCK=cross
11620 cat > conftest.$ac_ext <<EOF
11621 #line 11622 "configure"
11622 #include "confdefs.h"
11623 #include "${srcdir-.}/tests/fcntl_lock.c"
11625 if { (eval echo configure:11626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11627 samba_cv_HAVE_FCNTL_LOCK=yes
11629 echo "configure: failed program was:" >&5
11630 cat conftest.$ac_ext >&5
11632 samba_cv_HAVE_FCNTL_LOCK=no
11639 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
11640 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
11641 cat >> confdefs.h <<\EOF
11642 #define HAVE_FCNTL_LOCK 1
11647 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
11648 echo "configure:11649: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
11649 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
11650 echo $ac_n "(cached) $ac_c" 1>&6
11653 if test "$cross_compiling" = yes; then
11654 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
11656 cat > conftest.$ac_ext <<EOF
11657 #line 11658 "configure"
11658 #include "confdefs.h"
11659 #include "${srcdir-.}/tests/fcntl_lock64.c"
11661 if { (eval echo configure:11662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11663 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
11665 echo "configure: failed program was:" >&5
11666 cat conftest.$ac_ext >&5
11668 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
11675 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
11676 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
11677 cat >> confdefs.h <<\EOF
11678 #define HAVE_BROKEN_FCNTL64_LOCKS 1
11685 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
11686 echo "configure:11687: checking for 64 bit fcntl locking" >&5
11687 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
11688 echo $ac_n "(cached) $ac_c" 1>&6
11691 if test "$cross_compiling" = yes; then
11692 samba_cv_HAVE_STRUCT_FLOCK64=cross
11694 cat > conftest.$ac_ext <<EOF
11695 #line 11696 "configure"
11696 #include "confdefs.h"
11698 #if defined(HAVE_UNISTD_H)
11699 #include <unistd.h>
11702 #include <stdlib.h>
11704 #ifdef HAVE_FCNTL_H
11708 #ifdef HAVE_SYS_FCNTL_H
11709 #include <sys/fcntl.h>
11711 main() { struct flock64 fl64;
11712 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
11719 if { (eval echo configure:11720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11721 samba_cv_HAVE_STRUCT_FLOCK64=yes
11723 echo "configure: failed program was:" >&5
11724 cat conftest.$ac_ext >&5
11726 samba_cv_HAVE_STRUCT_FLOCK64=no
11733 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
11735 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
11736 cat >> confdefs.h <<\EOF
11737 #define HAVE_STRUCT_FLOCK64 1
11743 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
11744 echo "configure:11745: checking for st_blocks in struct stat" >&5
11745 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLOCKS'+set}'`\" = set"; then
11746 echo $ac_n "(cached) $ac_c" 1>&6
11749 cat > conftest.$ac_ext <<EOF
11750 #line 11751 "configure"
11751 #include "confdefs.h"
11752 #include <sys/types.h>
11753 #include <sys/stat.h>
11754 #include <unistd.h>
11756 struct stat st; st.st_blocks = 0;
11759 if { (eval echo configure:11760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11761 samba_cv_HAVE_STAT_ST_BLOCKS=yes
11763 echo "configure: failed program was:" >&5
11764 cat conftest.$ac_ext >&5
11766 samba_cv_HAVE_STAT_ST_BLOCKS=no
11771 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLOCKS" 1>&6
11772 if test x"$samba_cv_HAVE_STAT_ST_BLOCKS" = x"yes"; then
11773 cat >> confdefs.h <<\EOF
11774 #define HAVE_STAT_ST_BLOCKS 1
11781 echo $ac_n "checking for broken RedHat 7.2 system header files""... $ac_c" 1>&6
11782 echo "configure:11783: checking for broken RedHat 7.2 system header files" >&5
11783 if eval "test \"`echo '$''{'samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS'+set}'`\" = set"; then
11784 echo $ac_n "(cached) $ac_c" 1>&6
11787 cat > conftest.$ac_ext <<EOF
11788 #line 11789 "configure"
11789 #include "confdefs.h"
11791 #ifdef HAVE_SYS_VFS_H
11792 #include <sys/vfs.h>
11794 #ifdef HAVE_SYS_CAPABILITY_H
11795 #include <sys/capability.h>
11802 if { (eval echo configure:11803: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11804 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=no
11806 echo "configure: failed program was:" >&5
11807 cat conftest.$ac_ext >&5
11809 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=yes
11814 echo "$ac_t""$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" 1>&6
11815 if test x"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x"yes"; then
11816 cat >> confdefs.h <<\EOF
11817 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
11824 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
11825 echo "configure:11826: checking for broken nisplus include files" >&5
11826 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
11827 echo $ac_n "(cached) $ac_c" 1>&6
11830 cat > conftest.$ac_ext <<EOF
11831 #line 11832 "configure"
11832 #include "confdefs.h"
11833 #include <sys/acl.h>
11834 #if defined(HAVE_RPCSVC_NIS_H)
11835 #include <rpcsvc/nis.h>
11841 if { (eval echo configure:11842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11843 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
11845 echo "configure: failed program was:" >&5
11846 cat conftest.$ac_ext >&5
11848 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
11853 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
11854 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
11855 cat >> confdefs.h <<\EOF
11856 #define BROKEN_NISPLUS_INCLUDE_FILES 1
11862 #################################################
11863 # check for smbwrapper support
11864 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
11865 echo "configure:11866: checking whether to use smbwrapper" >&5
11866 # Check whether --with-smbwrapper or --without-smbwrapper was given.
11867 if test "${with_smbwrapper+set}" = set; then
11868 withval="$with_smbwrapper"
11871 echo "$ac_t""yes" 1>&6
11872 cat >> confdefs.h <<\EOF
11873 #define WITH_SMBWRAPPER 1
11876 WRAPPROG="bin/smbsh"
11877 WRAP="bin/smbwrapper.$SHLIBEXT"
11879 if test x$ATTEMPT_WRAP32_BUILD = x; then
11882 WRAP32=bin/smbwrapper.32.$SHLIBEXT
11885 # Conditions under which smbwrapper should not be built.
11887 if test x$PICFLAG = x; then
11888 echo No support for PIC code - disabling smbwrapper and smbsh
11892 elif test x$ac_cv_func_syscall = xno; then
11893 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
11900 echo "$ac_t""no" 1>&6
11904 echo "$ac_t""no" 1>&6
11909 #################################################
11910 # check for AFS clear-text auth support
11911 echo $ac_n "checking whether to use AFS clear-text auth""... $ac_c" 1>&6
11912 echo "configure:11913: checking whether to use AFS clear-text auth" >&5
11913 # Check whether --with-afs or --without-afs was given.
11914 if test "${with_afs+set}" = set; then
11915 withval="$with_afs"
11918 echo "$ac_t""yes" 1>&6
11919 cat >> confdefs.h <<\EOF
11925 echo "$ac_t""no" 1>&6
11929 echo "$ac_t""no" 1>&6
11935 #################################################
11936 # check for the DFS clear-text auth system
11937 echo $ac_n "checking whether to use DFS clear-text auth""... $ac_c" 1>&6
11938 echo "configure:11939: checking whether to use DFS clear-text auth" >&5
11939 # Check whether --with-dfs or --without-dfs was given.
11940 if test "${with_dfs+set}" = set; then
11941 withval="$with_dfs"
11944 echo "$ac_t""yes" 1>&6
11945 cat >> confdefs.h <<\EOF
11951 echo "$ac_t""no" 1>&6
11955 echo "$ac_t""no" 1>&6
11961 #################################################
11962 # see if this box has the RedHat location for kerberos
11963 echo $ac_n "checking for /usr/kerberos""... $ac_c" 1>&6
11964 echo "configure:11965: checking for /usr/kerberos" >&5
11965 if test -d /usr/kerberos; then
11966 LDFLAGS="$LDFLAGS -L/usr/kerberos/lib"
11967 CFLAGS="$CFLAGS -I/usr/kerberos/include"
11968 CPPFLAGS="$CPPFLAGS -I/usr/kerberos/include"
11969 echo "$ac_t""yes" 1>&6
11971 echo "$ac_t""no" 1>&6
11974 #################################################
11975 # check for location of Kerberos 5 install
11976 echo $ac_n "checking for kerberos 5 install path""... $ac_c" 1>&6
11977 echo "configure:11978: checking for kerberos 5 install path" >&5
11978 # Check whether --with-krb5 or --without-krb5 was given.
11979 if test "${with_krb5+set}" = set; then
11980 withval="$with_krb5"
11983 echo "$ac_t""no" 1>&6
11986 echo "$ac_t""yes" 1>&6
11987 LIBS="$LIBS -lkrb5"
11988 CFLAGS="$CFLAGS -I$withval/include"
11989 CPPFLAGS="$CPPFLAGS -I$withval/include"
11990 LDFLAGS="$LDFLAGS -L$withval/lib"
11994 echo "$ac_t""no" 1>&6
11999 # now check for krb5.h. Some systems have the libraries without the headers!
12000 # note that this check is done here to allow for different kerberos
12002 for ac_hdr in krb5.h
12004 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12005 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12006 echo "configure:12007: checking for $ac_hdr" >&5
12007 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12008 echo $ac_n "(cached) $ac_c" 1>&6
12010 cat > conftest.$ac_ext <<EOF
12011 #line 12012 "configure"
12012 #include "confdefs.h"
12015 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12016 { (eval echo configure:12017: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12017 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12018 if test -z "$ac_err"; then
12020 eval "ac_cv_header_$ac_safe=yes"
12023 echo "configure: failed program was:" >&5
12024 cat conftest.$ac_ext >&5
12026 eval "ac_cv_header_$ac_safe=no"
12030 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12031 echo "$ac_t""yes" 1>&6
12032 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12033 cat >> confdefs.h <<EOF
12034 #define $ac_tr_hdr 1
12038 echo "$ac_t""no" 1>&6
12043 # now check for gssapi headers. This is also done here to allow for
12044 # different kerberos include paths
12045 for ac_hdr in gssapi/gssapi_generic.h gssapi/gssapi.h
12047 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12048 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12049 echo "configure:12050: checking for $ac_hdr" >&5
12050 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12051 echo $ac_n "(cached) $ac_c" 1>&6
12053 cat > conftest.$ac_ext <<EOF
12054 #line 12055 "configure"
12055 #include "confdefs.h"
12058 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12059 { (eval echo configure:12060: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12060 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12061 if test -z "$ac_err"; then
12063 eval "ac_cv_header_$ac_safe=yes"
12066 echo "configure: failed program was:" >&5
12067 cat conftest.$ac_ext >&5
12069 eval "ac_cv_header_$ac_safe=no"
12073 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12074 echo "$ac_t""yes" 1>&6
12075 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12076 cat >> confdefs.h <<EOF
12077 #define $ac_tr_hdr 1
12081 echo "$ac_t""no" 1>&6
12086 ##################################################################
12087 # we might need the k5crypto and com_err libraries on some systems
12088 echo $ac_n "checking for _et_list in -lcom_err""... $ac_c" 1>&6
12089 echo "configure:12090: checking for _et_list in -lcom_err" >&5
12090 ac_lib_var=`echo com_err'_'_et_list | sed 'y%./+-%__p_%'`
12091 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12092 echo $ac_n "(cached) $ac_c" 1>&6
12094 ac_save_LIBS="$LIBS"
12095 LIBS="-lcom_err $LIBS"
12096 cat > conftest.$ac_ext <<EOF
12097 #line 12098 "configure"
12098 #include "confdefs.h"
12099 /* Override any gcc2 internal prototype to avoid an error. */
12100 /* We use char because int might match the return type of a gcc2
12101 builtin and then its argument prototype would still apply. */
12108 if { (eval echo configure:12109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12110 eval "ac_cv_lib_$ac_lib_var=yes"
12112 echo "configure: failed program was:" >&5
12113 cat conftest.$ac_ext >&5
12115 eval "ac_cv_lib_$ac_lib_var=no"
12118 LIBS="$ac_save_LIBS"
12121 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12122 echo "$ac_t""yes" 1>&6
12123 LIBS="$LIBS -lcom_err"
12125 echo "$ac_t""no" 1>&6
12128 echo $ac_n "checking for krb5_encrypt_data in -lk5crypto""... $ac_c" 1>&6
12129 echo "configure:12130: checking for krb5_encrypt_data in -lk5crypto" >&5
12130 ac_lib_var=`echo k5crypto'_'krb5_encrypt_data | sed 'y%./+-%__p_%'`
12131 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12132 echo $ac_n "(cached) $ac_c" 1>&6
12134 ac_save_LIBS="$LIBS"
12135 LIBS="-lk5crypto $LIBS"
12136 cat > conftest.$ac_ext <<EOF
12137 #line 12138 "configure"
12138 #include "confdefs.h"
12139 /* Override any gcc2 internal prototype to avoid an error. */
12140 /* We use char because int might match the return type of a gcc2
12141 builtin and then its argument prototype would still apply. */
12142 char krb5_encrypt_data();
12145 krb5_encrypt_data()
12148 if { (eval echo configure:12149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12150 eval "ac_cv_lib_$ac_lib_var=yes"
12152 echo "configure: failed program was:" >&5
12153 cat conftest.$ac_ext >&5
12155 eval "ac_cv_lib_$ac_lib_var=no"
12158 LIBS="$ac_save_LIBS"
12161 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12162 echo "$ac_t""yes" 1>&6
12163 LIBS="$LIBS -lk5crypto"
12165 echo "$ac_t""no" 1>&6
12169 ########################################################
12170 # now see if we can find the krb5 libs in standard paths
12171 # or as specified above
12172 echo $ac_n "checking for krb5_mk_req_extended in -lkrb5""... $ac_c" 1>&6
12173 echo "configure:12174: checking for krb5_mk_req_extended in -lkrb5" >&5
12174 ac_lib_var=`echo krb5'_'krb5_mk_req_extended | sed 'y%./+-%__p_%'`
12175 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12176 echo $ac_n "(cached) $ac_c" 1>&6
12178 ac_save_LIBS="$LIBS"
12179 LIBS="-lkrb5 $LIBS"
12180 cat > conftest.$ac_ext <<EOF
12181 #line 12182 "configure"
12182 #include "confdefs.h"
12183 /* Override any gcc2 internal prototype to avoid an error. */
12184 /* We use char because int might match the return type of a gcc2
12185 builtin and then its argument prototype would still apply. */
12186 char krb5_mk_req_extended();
12189 krb5_mk_req_extended()
12192 if { (eval echo configure:12193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12194 eval "ac_cv_lib_$ac_lib_var=yes"
12196 echo "configure: failed program was:" >&5
12197 cat conftest.$ac_ext >&5
12199 eval "ac_cv_lib_$ac_lib_var=no"
12202 LIBS="$ac_save_LIBS"
12205 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12206 echo "$ac_t""yes" 1>&6
12207 LIBS="$LIBS -lkrb5";
12208 cat >> confdefs.h <<\EOF
12209 #define HAVE_KRB5 1
12213 echo "$ac_t""no" 1>&6
12217 ########################################################
12218 # now see if we can find the gssapi libs in standard paths
12219 echo $ac_n "checking for gss_display_status in -lgssapi_krb5""... $ac_c" 1>&6
12220 echo "configure:12221: checking for gss_display_status in -lgssapi_krb5" >&5
12221 ac_lib_var=`echo gssapi_krb5'_'gss_display_status | sed 'y%./+-%__p_%'`
12222 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12223 echo $ac_n "(cached) $ac_c" 1>&6
12225 ac_save_LIBS="$LIBS"
12226 LIBS="-lgssapi_krb5 $LIBS"
12227 cat > conftest.$ac_ext <<EOF
12228 #line 12229 "configure"
12229 #include "confdefs.h"
12230 /* Override any gcc2 internal prototype to avoid an error. */
12231 /* We use char because int might match the return type of a gcc2
12232 builtin and then its argument prototype would still apply. */
12233 char gss_display_status();
12236 gss_display_status()
12239 if { (eval echo configure:12240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12241 eval "ac_cv_lib_$ac_lib_var=yes"
12243 echo "configure: failed program was:" >&5
12244 cat conftest.$ac_ext >&5
12246 eval "ac_cv_lib_$ac_lib_var=no"
12249 LIBS="$ac_save_LIBS"
12252 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12253 echo "$ac_t""yes" 1>&6
12254 LIBS="$LIBS -lgssapi_krb5";
12255 cat >> confdefs.h <<\EOF
12256 #define HAVE_GSSAPI 1
12260 echo "$ac_t""no" 1>&6
12264 ##################################################################
12265 # we might need the lber lib on some systems. To avoid link errors
12266 # this test must be before the libldap test
12267 echo $ac_n "checking for ber_scanf in -llber""... $ac_c" 1>&6
12268 echo "configure:12269: checking for ber_scanf in -llber" >&5
12269 ac_lib_var=`echo lber'_'ber_scanf | sed 'y%./+-%__p_%'`
12270 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12271 echo $ac_n "(cached) $ac_c" 1>&6
12273 ac_save_LIBS="$LIBS"
12274 LIBS="-llber $LIBS"
12275 cat > conftest.$ac_ext <<EOF
12276 #line 12277 "configure"
12277 #include "confdefs.h"
12278 /* Override any gcc2 internal prototype to avoid an error. */
12279 /* We use char because int might match the return type of a gcc2
12280 builtin and then its argument prototype would still apply. */
12287 if { (eval echo configure:12288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12289 eval "ac_cv_lib_$ac_lib_var=yes"
12291 echo "configure: failed program was:" >&5
12292 cat conftest.$ac_ext >&5
12294 eval "ac_cv_lib_$ac_lib_var=no"
12297 LIBS="$ac_save_LIBS"
12300 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12301 echo "$ac_t""yes" 1>&6
12302 LIBS="$LIBS -llber"
12304 echo "$ac_t""no" 1>&6
12308 ########################################################
12309 # now see if we can find the ldap libs in standard paths
12310 if test x$have_ldap != xyes; then
12311 echo $ac_n "checking for ldap_domain2hostlist in -lldap""... $ac_c" 1>&6
12312 echo "configure:12313: checking for ldap_domain2hostlist in -lldap" >&5
12313 ac_lib_var=`echo ldap'_'ldap_domain2hostlist | sed 'y%./+-%__p_%'`
12314 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12315 echo $ac_n "(cached) $ac_c" 1>&6
12317 ac_save_LIBS="$LIBS"
12318 LIBS="-lldap $LIBS"
12319 cat > conftest.$ac_ext <<EOF
12320 #line 12321 "configure"
12321 #include "confdefs.h"
12322 /* Override any gcc2 internal prototype to avoid an error. */
12323 /* We use char because int might match the return type of a gcc2
12324 builtin and then its argument prototype would still apply. */
12325 char ldap_domain2hostlist();
12328 ldap_domain2hostlist()
12331 if { (eval echo configure:12332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12333 eval "ac_cv_lib_$ac_lib_var=yes"
12335 echo "configure: failed program was:" >&5
12336 cat conftest.$ac_ext >&5
12338 eval "ac_cv_lib_$ac_lib_var=no"
12341 LIBS="$ac_save_LIBS"
12344 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12345 echo "$ac_t""yes" 1>&6
12346 LIBS="$LIBS -lldap";
12347 cat >> confdefs.h <<\EOF
12348 #define HAVE_LDAP 1
12352 echo "$ac_t""no" 1>&6
12356 ########################################################
12357 # If we have LDAP, does it's rebind procedure take 2 or 3 arguments?
12358 # Check found in pam_ldap 145.
12359 for ac_func in ldap_set_rebind_proc
12361 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12362 echo "configure:12363: checking for $ac_func" >&5
12363 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12364 echo $ac_n "(cached) $ac_c" 1>&6
12366 cat > conftest.$ac_ext <<EOF
12367 #line 12368 "configure"
12368 #include "confdefs.h"
12369 /* System header to define __stub macros and hopefully few prototypes,
12370 which can conflict with char $ac_func(); below. */
12371 #include <assert.h>
12372 /* Override any gcc2 internal prototype to avoid an error. */
12373 /* We use char because int might match the return type of a gcc2
12374 builtin and then its argument prototype would still apply. */
12379 /* The GNU C library defines this for functions which it implements
12380 to always fail with ENOSYS. Some functions are actually named
12381 something starting with __ and the normal name is an alias. */
12382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12390 if { (eval echo configure:12391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12392 eval "ac_cv_func_$ac_func=yes"
12394 echo "configure: failed program was:" >&5
12395 cat conftest.$ac_ext >&5
12397 eval "ac_cv_func_$ac_func=no"
12402 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12403 echo "$ac_t""yes" 1>&6
12404 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12405 cat >> confdefs.h <<EOF
12406 #define $ac_tr_func 1
12410 echo "$ac_t""no" 1>&6
12414 echo $ac_n "checking whether ldap_set_rebind_proc takes 3 arguments""... $ac_c" 1>&6
12415 echo "configure:12416: checking whether ldap_set_rebind_proc takes 3 arguments" >&5
12416 if eval "test \"`echo '$''{'pam_ldap_cv_ldap_set_rebind_proc'+set}'`\" = set"; then
12417 echo $ac_n "(cached) $ac_c" 1>&6
12420 cat > conftest.$ac_ext <<EOF
12421 #line 12422 "configure"
12422 #include "confdefs.h"
12427 ldap_set_rebind_proc(0, 0, 0);
12430 if { (eval echo configure:12431: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12432 pam_ldap_cv_ldap_set_rebind_proc=3
12434 echo "configure: failed program was:" >&5
12435 cat conftest.$ac_ext >&5
12437 pam_ldap_cv_ldap_set_rebind_proc=2
12442 echo "$ac_t""$pam_ldap_cv_ldap_set_rebind_proc" 1>&6
12443 cat >> confdefs.h <<EOF
12444 #define LDAP_SET_REBIND_PROC_ARGS $pam_ldap_cv_ldap_set_rebind_proc
12449 #################################################
12450 # check for automount support
12451 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
12452 echo "configure:12453: checking whether to use AUTOMOUNT" >&5
12453 # Check whether --with-automount or --without-automount was given.
12454 if test "${with_automount+set}" = set; then
12455 withval="$with_automount"
12458 echo "$ac_t""yes" 1>&6
12459 cat >> confdefs.h <<\EOF
12460 #define WITH_AUTOMOUNT 1
12465 echo "$ac_t""no" 1>&6
12469 echo "$ac_t""no" 1>&6
12474 #################################################
12475 # check for smbmount support
12476 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
12477 echo "configure:12478: checking whether to use SMBMOUNT" >&5
12478 # Check whether --with-smbmount or --without-smbmount was given.
12479 if test "${with_smbmount+set}" = set; then
12480 withval="$with_smbmount"
12485 echo "$ac_t""yes" 1>&6
12486 cat >> confdefs.h <<\EOF
12487 #define WITH_SMBMOUNT 1
12490 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
12493 { echo "configure: error: not on a linux system!" 1>&2; exit 1; }
12498 echo "$ac_t""no" 1>&6
12503 echo "$ac_t""no" 1>&6
12510 #################################################
12511 # check for a PAM clear-text auth, accounts, password and session support
12512 with_pam_for_crypt=no
12513 echo $ac_n "checking whether to use PAM""... $ac_c" 1>&6
12514 echo "configure:12515: checking whether to use PAM" >&5
12515 # Check whether --with-pam or --without-pam was given.
12516 if test "${with_pam+set}" = set; then
12517 withval="$with_pam"
12520 echo "$ac_t""yes" 1>&6
12521 cat >> confdefs.h <<\EOF
12526 with_pam_for_crypt=yes
12529 echo "$ac_t""no" 1>&6
12533 echo "$ac_t""no" 1>&6
12538 # we can't build a pam module if we don't have pam.
12539 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
12540 echo "configure:12541: checking for pam_get_data in -lpam" >&5
12541 ac_lib_var=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
12542 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12543 echo $ac_n "(cached) $ac_c" 1>&6
12545 ac_save_LIBS="$LIBS"
12547 cat > conftest.$ac_ext <<EOF
12548 #line 12549 "configure"
12549 #include "confdefs.h"
12550 /* Override any gcc2 internal prototype to avoid an error. */
12551 /* We use char because int might match the return type of a gcc2
12552 builtin and then its argument prototype would still apply. */
12553 char pam_get_data();
12559 if { (eval echo configure:12560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12561 eval "ac_cv_lib_$ac_lib_var=yes"
12563 echo "configure: failed program was:" >&5
12564 cat conftest.$ac_ext >&5
12566 eval "ac_cv_lib_$ac_lib_var=no"
12569 LIBS="$ac_save_LIBS"
12572 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12573 echo "$ac_t""yes" 1>&6
12574 cat >> confdefs.h <<\EOF
12575 #define HAVE_LIBPAM 1
12579 echo "$ac_t""no" 1>&6
12583 #################################################
12584 # check for pam_smbpass support
12585 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
12586 echo "configure:12587: checking whether to use pam_smbpass" >&5
12587 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
12588 if test "${with_pam_smbpass+set}" = set; then
12589 withval="$with_pam_smbpass"
12592 echo "$ac_t""yes" 1>&6
12594 # Conditions under which pam_smbpass should not be built.
12596 if test x$PICFLAG = x; then
12597 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
12599 elif test x$ac_cv_lib_pam_pam_get_data = xno; then
12600 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
12603 PAM_MOD="bin/pam_smbpass.so"
12607 echo "$ac_t""no" 1>&6
12611 echo "$ac_t""no" 1>&6
12617 ###############################################
12618 # test for where we get crypt() from, but only
12620 if test $with_pam_for_crypt = no; then
12621 for ac_func in crypt
12623 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12624 echo "configure:12625: checking for $ac_func" >&5
12625 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12626 echo $ac_n "(cached) $ac_c" 1>&6
12628 cat > conftest.$ac_ext <<EOF
12629 #line 12630 "configure"
12630 #include "confdefs.h"
12631 /* System header to define __stub macros and hopefully few prototypes,
12632 which can conflict with char $ac_func(); below. */
12633 #include <assert.h>
12634 /* Override any gcc2 internal prototype to avoid an error. */
12635 /* We use char because int might match the return type of a gcc2
12636 builtin and then its argument prototype would still apply. */
12641 /* The GNU C library defines this for functions which it implements
12642 to always fail with ENOSYS. Some functions are actually named
12643 something starting with __ and the normal name is an alias. */
12644 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12652 if { (eval echo configure:12653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12654 eval "ac_cv_func_$ac_func=yes"
12656 echo "configure: failed program was:" >&5
12657 cat conftest.$ac_ext >&5
12659 eval "ac_cv_func_$ac_func=no"
12664 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12665 echo "$ac_t""yes" 1>&6
12666 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12667 cat >> confdefs.h <<EOF
12668 #define $ac_tr_func 1
12672 echo "$ac_t""no" 1>&6
12676 if test x"$ac_cv_func_crypt" = x"no"; then
12677 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
12678 echo "configure:12679: checking for crypt in -lcrypt" >&5
12679 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
12680 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12681 echo $ac_n "(cached) $ac_c" 1>&6
12683 ac_save_LIBS="$LIBS"
12684 LIBS="-lcrypt $LIBS"
12685 cat > conftest.$ac_ext <<EOF
12686 #line 12687 "configure"
12687 #include "confdefs.h"
12688 /* Override any gcc2 internal prototype to avoid an error. */
12689 /* We use char because int might match the return type of a gcc2
12690 builtin and then its argument prototype would still apply. */
12697 if { (eval echo configure:12698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12699 eval "ac_cv_lib_$ac_lib_var=yes"
12701 echo "configure: failed program was:" >&5
12702 cat conftest.$ac_ext >&5
12704 eval "ac_cv_lib_$ac_lib_var=no"
12707 LIBS="$ac_save_LIBS"
12710 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12711 echo "$ac_t""yes" 1>&6
12712 SMBDLIBS="$SMBDLIBS -lcrypt";
12713 cat >> confdefs.h <<\EOF
12714 #define HAVE_CRYPT 1
12718 echo "$ac_t""no" 1>&6
12725 ## moved after the check for -lcrypt in order to
12726 ## ensure that the necessary libraries are included
12727 ## check checking for truncated salt. Wrapped by the
12728 ## $with_pam_for_crypt variable as above --jerry
12730 if test $with_pam_for_crypt = no; then
12731 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
12732 echo "configure:12733: checking for a crypt that needs truncated salt" >&5
12733 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
12734 echo $ac_n "(cached) $ac_c" 1>&6
12737 if test "$cross_compiling" = yes; then
12738 samba_cv_HAVE_TRUNCATED_SALT=cross
12740 cat > conftest.$ac_ext <<EOF
12741 #line 12742 "configure"
12742 #include "confdefs.h"
12743 #include "${srcdir-.}/tests/crypttest.c"
12745 if { (eval echo configure:12746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12747 samba_cv_HAVE_TRUNCATED_SALT=no
12749 echo "configure: failed program was:" >&5
12750 cat conftest.$ac_ext >&5
12752 samba_cv_HAVE_TRUNCATED_SALT=yes
12759 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
12760 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
12761 cat >> confdefs.h <<\EOF
12762 #define HAVE_TRUNCATED_SALT 1
12770 ########################################################################################
12772 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
12774 ########################################################################################
12776 #################################################
12777 # check for a TDB password database
12778 echo $ac_n "checking whether to use TDB SAM database""... $ac_c" 1>&6
12779 echo "configure:12780: checking whether to use TDB SAM database" >&5
12780 # Check whether --with-tdbsam or --without-tdbsam was given.
12781 if test "${with_tdbsam+set}" = set; then
12782 withval="$with_tdbsam"
12785 echo "$ac_t""yes" 1>&6
12786 cat >> confdefs.h <<\EOF
12787 #define WITH_TDB_SAM 1
12792 echo "$ac_t""no" 1>&6
12796 echo "$ac_t""no" 1>&6
12801 #################################################
12802 # check for a NISPLUS password database
12803 echo $ac_n "checking whether to use NISPLUS SAM database""... $ac_c" 1>&6
12804 echo "configure:12805: checking whether to use NISPLUS SAM database" >&5
12805 # Check whether --with-nisplussam or --without-nisplussam was given.
12806 if test "${with_nisplussam+set}" = set; then
12807 withval="$with_nisplussam"
12810 echo "$ac_t""yes" 1>&6
12811 cat >> confdefs.h <<\EOF
12812 #define WITH_NISPLUS_SAM 1
12817 echo "$ac_t""no" 1>&6
12821 echo "$ac_t""no" 1>&6
12826 ########################################################################################
12828 ## END OF TESTS FOR SAM BACKENDS.
12830 ########################################################################################
12832 #################################################
12833 # check for a NISPLUS_HOME support
12834 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
12835 echo "configure:12836: checking whether to use NISPLUS_HOME" >&5
12836 # Check whether --with-nisplus-home or --without-nisplus-home was given.
12837 if test "${with_nisplus_home+set}" = set; then
12838 withval="$with_nisplus_home"
12841 echo "$ac_t""yes" 1>&6
12842 cat >> confdefs.h <<\EOF
12843 #define WITH_NISPLUS_HOME 1
12848 echo "$ac_t""no" 1>&6
12852 echo "$ac_t""no" 1>&6
12857 #################################################
12858 # check for syslog logging
12859 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
12860 echo "configure:12861: checking whether to use syslog logging" >&5
12861 # Check whether --with-syslog or --without-syslog was given.
12862 if test "${with_syslog+set}" = set; then
12863 withval="$with_syslog"
12866 echo "$ac_t""yes" 1>&6
12867 cat >> confdefs.h <<\EOF
12868 #define WITH_SYSLOG 1
12873 echo "$ac_t""no" 1>&6
12877 echo "$ac_t""no" 1>&6
12882 #################################################
12883 # check for a shared memory profiling support
12884 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
12885 echo "configure:12886: checking whether to use profiling" >&5
12886 # Check whether --with-profiling-data or --without-profiling-data was given.
12887 if test "${with_profiling_data+set}" = set; then
12888 withval="$with_profiling_data"
12891 echo "$ac_t""yes" 1>&6
12892 cat >> confdefs.h <<\EOF
12893 #define WITH_PROFILE 1
12898 echo "$ac_t""no" 1>&6
12902 echo "$ac_t""no" 1>&6
12908 #################################################
12909 # check for experimental disk-quotas support
12910 QUOTAOBJS=smbd/noquotas.o
12912 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
12913 echo "configure:12914: checking whether to support disk-quotas" >&5
12914 # Check whether --with-quotas or --without-quotas was given.
12915 if test "${with_quotas+set}" = set; then
12916 withval="$with_quotas"
12919 echo "$ac_t""yes" 1>&6
12922 # Check for kernel 2.4.x quota braindamage...
12923 echo $ac_n "checking for linux 2.4.x quota braindamage..""... $ac_c" 1>&6
12924 echo "configure:12925: checking for linux 2.4.x quota braindamage.." >&5
12925 if eval "test \"`echo '$''{'samba_cv_linux_2_4_quota_braindamage'+set}'`\" = set"; then
12926 echo $ac_n "(cached) $ac_c" 1>&6
12929 cat > conftest.$ac_ext <<EOF
12930 #line 12931 "configure"
12931 #include "confdefs.h"
12933 #include <sys/types.h>
12934 #include <asm/types.h>
12935 #include <linux/quota.h>
12936 #include <mntent.h>
12937 #include <linux/unistd.h>
12939 struct mem_dqblk D;
12942 if { (eval echo configure:12943: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12944 samba_cv_linux_2_4_quota_braindamage=yes
12946 echo "configure: failed program was:" >&5
12947 cat conftest.$ac_ext >&5
12949 samba_cv_linux_2_4_quota_braindamage=no
12954 echo "$ac_t""$samba_cv_linux_2_4_quota_braindamage" 1>&6
12955 if test x"$samba_cv_linux_2_4_quota_braindamage" = x"yes"; then
12956 cat >> confdefs.h <<\EOF
12957 #define LINUX_QUOTAS_2 1
12961 cat >> confdefs.h <<\EOF
12962 #define LINUX_QUOTAS_1 1
12970 QUOTAOBJS=smbd/quotas.o
12971 cat >> confdefs.h <<\EOF
12972 #define WITH_QUOTAS 1
12977 echo "$ac_t""no" 1>&6
12981 echo "$ac_t""no" 1>&6
12987 #################################################
12988 # check for experimental utmp accounting
12990 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
12991 echo "configure:12992: checking whether to support utmp accounting" >&5
12992 # Check whether --with-utmp or --without-utmp was given.
12993 if test "${with_utmp+set}" = set; then
12994 withval="$with_utmp"
12997 echo "$ac_t""yes" 1>&6
12998 cat >> confdefs.h <<\EOF
12999 #define WITH_UTMP 1
13004 echo "$ac_t""no" 1>&6
13008 echo "$ac_t""no" 1>&6
13013 #################################################
13014 # choose native language(s) of man pages
13015 echo $ac_n "checking chosen man pages' language(s)""... $ac_c" 1>&6
13016 echo "configure:13017: checking chosen man pages' language(s)" >&5
13017 # Check whether --with-manpages-langs or --without-manpages-langs was given.
13018 if test "${with_manpages_langs+set}" = set; then
13019 withval="$with_manpages_langs"
13022 echo "configure: warning: --with-manpages-langs called without argument - will use default" 1>&2
13026 manlangs="$withval"
13030 echo "$ac_t""$manlangs" 1>&6
13031 manlangs=`echo $manlangs | sed "s/,/ /"` # replacing commas with spaces to produce a list
13035 echo "$ac_t""$manlangs" 1>&6
13041 #################################################
13042 # should we build libsmbclient?
13044 LIBSMBCLIENT_SHARED=
13046 echo $ac_n "checking whether to build the libsmbclient shared library""... $ac_c" 1>&6
13047 echo "configure:13048: checking whether to build the libsmbclient shared library" >&5
13048 # Check whether --with-libsmbclient or --without-libsmbclient was given.
13049 if test "${with_libsmbclient+set}" = set; then
13050 withval="$with_libsmbclient"
13053 echo "$ac_t""no" 1>&6
13056 if test $BLDSHARED = true; then
13057 LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
13058 LIBSMBCLIENT=libsmbclient
13059 echo "$ac_t""yes" 1>&6
13061 echo "$ac_t""no shared library support" 1>&6
13066 echo "$ac_t""yes" 1>&6
13072 #################################################
13073 # these tests are taken from the GNU fileutils package
13074 echo "checking how to get filesystem space usage" 1>&6
13075 echo "configure:13076: checking how to get filesystem space usage" >&5
13078 # Test for statvfs64.
13079 if test $space = no; then
13081 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
13082 echo "configure:13083: checking statvfs64 function (SVR4)" >&5
13083 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
13084 echo $ac_n "(cached) $ac_c" 1>&6
13086 if test "$cross_compiling" = yes; then
13087 fu_cv_sys_stat_statvfs64=cross
13089 cat > conftest.$ac_ext <<EOF
13090 #line 13091 "configure"
13091 #include "confdefs.h"
13093 #if defined(HAVE_UNISTD_H)
13094 #include <unistd.h>
13096 #include <sys/types.h>
13097 #include <sys/statvfs.h>
13100 struct statvfs64 fsd;
13101 exit (statvfs64 (".", &fsd));
13104 if { (eval echo configure:13105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13106 fu_cv_sys_stat_statvfs64=yes
13108 echo "configure: failed program was:" >&5
13109 cat conftest.$ac_ext >&5
13111 fu_cv_sys_stat_statvfs64=no
13118 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
13119 if test $fu_cv_sys_stat_statvfs64 = yes; then
13121 cat >> confdefs.h <<\EOF
13122 #define STAT_STATVFS64 1
13128 # Perform only the link test since it seems there are no variants of the
13129 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
13130 # because that got a false positive on SCO OSR5. Adding the declaration
13131 # of a `struct statvfs' causes this test to fail (as it should) on such
13132 # systems. That system is reported to work fine with STAT_STATFS4 which
13133 # is what it gets when this test fails.
13134 if test $space = no; then
13136 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
13137 echo "configure:13138: checking statvfs function (SVR4)" >&5
13138 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
13139 echo $ac_n "(cached) $ac_c" 1>&6
13141 cat > conftest.$ac_ext <<EOF
13142 #line 13143 "configure"
13143 #include "confdefs.h"
13144 #include <sys/types.h>
13145 #include <sys/statvfs.h>
13147 struct statvfs fsd; statvfs (0, &fsd);
13150 if { (eval echo configure:13151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13152 fu_cv_sys_stat_statvfs=yes
13154 echo "configure: failed program was:" >&5
13155 cat conftest.$ac_ext >&5
13157 fu_cv_sys_stat_statvfs=no
13162 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
13163 if test $fu_cv_sys_stat_statvfs = yes; then
13165 cat >> confdefs.h <<\EOF
13166 #define STAT_STATVFS 1
13172 if test $space = no; then
13173 # DEC Alpha running OSF/1
13174 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
13175 echo "configure:13176: checking for 3-argument statfs function (DEC OSF/1)" >&5
13176 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
13177 echo $ac_n "(cached) $ac_c" 1>&6
13179 if test "$cross_compiling" = yes; then
13180 fu_cv_sys_stat_statfs3_osf1=no
13182 cat > conftest.$ac_ext <<EOF
13183 #line 13184 "configure"
13184 #include "confdefs.h"
13186 #include <sys/param.h>
13187 #include <sys/types.h>
13188 #include <sys/mount.h>
13193 exit (statfs (".", &fsd, sizeof (struct statfs)));
13196 if { (eval echo configure:13197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13198 fu_cv_sys_stat_statfs3_osf1=yes
13200 echo "configure: failed program was:" >&5
13201 cat conftest.$ac_ext >&5
13203 fu_cv_sys_stat_statfs3_osf1=no
13210 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
13211 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
13213 cat >> confdefs.h <<\EOF
13214 #define STAT_STATFS3_OSF1 1
13220 if test $space = no; then
13222 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
13223 echo "configure:13224: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
13224 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
13225 echo $ac_n "(cached) $ac_c" 1>&6
13227 if test "$cross_compiling" = yes; then
13228 fu_cv_sys_stat_statfs2_bsize=no
13230 cat > conftest.$ac_ext <<EOF
13231 #line 13232 "configure"
13232 #include "confdefs.h"
13234 #ifdef HAVE_SYS_PARAM_H
13235 #include <sys/param.h>
13237 #ifdef HAVE_SYS_MOUNT_H
13238 #include <sys/mount.h>
13240 #ifdef HAVE_SYS_VFS_H
13241 #include <sys/vfs.h>
13247 exit (statfs (".", &fsd));
13250 if { (eval echo configure:13251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13252 fu_cv_sys_stat_statfs2_bsize=yes
13254 echo "configure: failed program was:" >&5
13255 cat conftest.$ac_ext >&5
13257 fu_cv_sys_stat_statfs2_bsize=no
13264 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
13265 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
13267 cat >> confdefs.h <<\EOF
13268 #define STAT_STATFS2_BSIZE 1
13274 if test $space = no; then
13276 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
13277 echo "configure:13278: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
13278 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
13279 echo $ac_n "(cached) $ac_c" 1>&6
13281 if test "$cross_compiling" = yes; then
13282 fu_cv_sys_stat_statfs4=no
13284 cat > conftest.$ac_ext <<EOF
13285 #line 13286 "configure"
13286 #include "confdefs.h"
13287 #include <sys/types.h>
13288 #include <sys/statfs.h>
13292 exit (statfs (".", &fsd, sizeof fsd, 0));
13295 if { (eval echo configure:13296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13297 fu_cv_sys_stat_statfs4=yes
13299 echo "configure: failed program was:" >&5
13300 cat conftest.$ac_ext >&5
13302 fu_cv_sys_stat_statfs4=no
13309 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
13310 if test $fu_cv_sys_stat_statfs4 = yes; then
13312 cat >> confdefs.h <<\EOF
13313 #define STAT_STATFS4 1
13319 if test $space = no; then
13320 # 4.4BSD and NetBSD
13321 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
13322 echo "configure:13323: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
13323 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
13324 echo $ac_n "(cached) $ac_c" 1>&6
13326 if test "$cross_compiling" = yes; then
13327 fu_cv_sys_stat_statfs2_fsize=no
13329 cat > conftest.$ac_ext <<EOF
13330 #line 13331 "configure"
13331 #include "confdefs.h"
13332 #include <sys/types.h>
13333 #ifdef HAVE_SYS_PARAM_H
13334 #include <sys/param.h>
13336 #ifdef HAVE_SYS_MOUNT_H
13337 #include <sys/mount.h>
13343 exit (statfs (".", &fsd));
13346 if { (eval echo configure:13347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13348 fu_cv_sys_stat_statfs2_fsize=yes
13350 echo "configure: failed program was:" >&5
13351 cat conftest.$ac_ext >&5
13353 fu_cv_sys_stat_statfs2_fsize=no
13360 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
13361 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
13363 cat >> confdefs.h <<\EOF
13364 #define STAT_STATFS2_FSIZE 1
13370 if test $space = no; then
13372 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
13373 echo "configure:13374: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
13374 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
13375 echo $ac_n "(cached) $ac_c" 1>&6
13377 if test "$cross_compiling" = yes; then
13378 fu_cv_sys_stat_fs_data=no
13380 cat > conftest.$ac_ext <<EOF
13381 #line 13382 "configure"
13382 #include "confdefs.h"
13383 #include <sys/types.h>
13384 #ifdef HAVE_SYS_PARAM_H
13385 #include <sys/param.h>
13387 #ifdef HAVE_SYS_MOUNT_H
13388 #include <sys/mount.h>
13390 #ifdef HAVE_SYS_FS_TYPES_H
13391 #include <sys/fs_types.h>
13395 struct fs_data fsd;
13396 /* Ultrix's statfs returns 1 for success,
13397 0 for not mounted, -1 for failure. */
13398 exit (statfs (".", &fsd) != 1);
13401 if { (eval echo configure:13402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13403 fu_cv_sys_stat_fs_data=yes
13405 echo "configure: failed program was:" >&5
13406 cat conftest.$ac_ext >&5
13408 fu_cv_sys_stat_fs_data=no
13415 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
13416 if test $fu_cv_sys_stat_fs_data = yes; then
13418 cat >> confdefs.h <<\EOF
13419 #define STAT_STATFS2_FS_DATA 1
13426 # As a gating factor for large file support, in order to
13427 # use <4GB files we must have the following minimal support
13429 # long long, and a 64 bit off_t or off64_t.
13430 # If we don't have all of these then disable large
13433 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
13434 echo "configure:13435: checking if large file support can be enabled" >&5
13435 cat > conftest.$ac_ext <<EOF
13436 #line 13437 "configure"
13437 #include "confdefs.h"
13439 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
13440 #include <sys/types.h>
13449 if { (eval echo configure:13450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13451 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
13453 echo "configure: failed program was:" >&5
13454 cat conftest.$ac_ext >&5
13456 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
13459 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
13460 cat >> confdefs.h <<\EOF
13461 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
13465 echo "$ac_t""$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" 1>&6
13467 # Check whether --with-spinlocks or --without-spinlocks was given.
13468 if test "${with_spinlocks+set}" = set; then
13469 withval="$with_spinlocks"
13473 if test "x$with_spinlocks" = "xyes"; then
13474 cat >> confdefs.h <<\EOF
13475 #define USE_SPINLOCKS 1
13479 case "$host_cpu" in
13481 cat >> confdefs.h <<\EOF
13482 #define SPARC_SPINLOCKS 1
13487 i386|i486|i586|i686)
13488 cat >> confdefs.h <<\EOF
13489 #define INTEL_SPINLOCKS 1
13495 cat >> confdefs.h <<\EOF
13496 #define MIPS_SPINLOCKS 1
13502 cat >> confdefs.h <<\EOF
13503 #define POWERPC_SPINLOCKS 1
13510 #################################################
13511 # check for ACL support
13513 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
13514 echo "configure:13515: checking whether to support ACLs" >&5
13515 # Check whether --with-acl-support or --without-acl-support was given.
13516 if test "${with_acl_support+set}" = set; then
13517 withval="$with_acl_support"
13523 echo "$ac_t""Using UnixWare ACLs" 1>&6
13524 cat >> confdefs.h <<\EOF
13525 #define HAVE_UNIXWARE_ACLS 1
13530 echo "$ac_t""Using solaris ACLs" 1>&6
13531 cat >> confdefs.h <<\EOF
13532 #define HAVE_SOLARIS_ACLS 1
13537 echo "$ac_t""Using HPUX ACLs" 1>&6
13538 cat >> confdefs.h <<\EOF
13539 #define HAVE_HPUX_ACLS 1
13544 echo "$ac_t""Using IRIX ACLs" 1>&6
13545 cat >> confdefs.h <<\EOF
13546 #define HAVE_IRIX_ACLS 1
13551 echo "$ac_t""Using AIX ACLs" 1>&6
13552 cat >> confdefs.h <<\EOF
13553 #define HAVE_AIX_ACLS 1
13558 echo "$ac_t""Using Tru64 ACLs" 1>&6
13559 cat >> confdefs.h <<\EOF
13560 #define HAVE_TRU64_ACLS 1
13563 SMBDLIBS="$SMBDLIBS -lpacl"
13566 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
13567 echo "configure:13568: checking for acl_get_file in -lacl" >&5
13568 ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
13569 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13570 echo $ac_n "(cached) $ac_c" 1>&6
13572 ac_save_LIBS="$LIBS"
13574 cat > conftest.$ac_ext <<EOF
13575 #line 13576 "configure"
13576 #include "confdefs.h"
13577 /* Override any gcc2 internal prototype to avoid an error. */
13578 /* We use char because int might match the return type of a gcc2
13579 builtin and then its argument prototype would still apply. */
13580 char acl_get_file();
13586 if { (eval echo configure:13587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13588 eval "ac_cv_lib_$ac_lib_var=yes"
13590 echo "configure: failed program was:" >&5
13591 cat conftest.$ac_ext >&5
13593 eval "ac_cv_lib_$ac_lib_var=no"
13596 LIBS="$ac_save_LIBS"
13599 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13600 echo "$ac_t""yes" 1>&6
13601 SMBDLIBS="$SMBDLIBS -lacl"
13603 echo "$ac_t""no" 1>&6
13606 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
13607 echo "configure:13608: checking for ACL support" >&5
13608 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
13609 echo $ac_n "(cached) $ac_c" 1>&6
13614 cat > conftest.$ac_ext <<EOF
13615 #line 13616 "configure"
13616 #include "confdefs.h"
13617 #include <sys/types.h>
13618 #include <sys/acl.h>
13620 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
13623 if { (eval echo configure:13624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13625 samba_cv_HAVE_POSIX_ACLS=yes
13627 echo "configure: failed program was:" >&5
13628 cat conftest.$ac_ext >&5
13630 samba_cv_HAVE_POSIX_ACLS=no
13636 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
13637 if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
13638 echo "$ac_t""Using posix ACLs" 1>&6
13639 cat >> confdefs.h <<\EOF
13640 #define HAVE_POSIX_ACLS 1
13643 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
13644 echo "configure:13645: checking for acl_get_perm_np" >&5
13645 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
13646 echo $ac_n "(cached) $ac_c" 1>&6
13651 cat > conftest.$ac_ext <<EOF
13652 #line 13653 "configure"
13653 #include "confdefs.h"
13654 #include <sys/types.h>
13655 #include <sys/acl.h>
13657 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
13660 if { (eval echo configure:13661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13662 samba_cv_HAVE_ACL_GET_PERM_NP=yes
13664 echo "configure: failed program was:" >&5
13665 cat conftest.$ac_ext >&5
13667 samba_cv_HAVE_ACL_GET_PERM_NP=no
13673 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
13674 if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
13675 cat >> confdefs.h <<\EOF
13676 #define HAVE_ACL_GET_PERM_NP 1
13685 echo "$ac_t""no" 1>&6
13686 cat >> confdefs.h <<\EOF
13687 #define HAVE_NO_ACLS 1
13693 cat >> confdefs.h <<\EOF
13694 #define HAVE_NO_ACLS 1
13697 echo "$ac_t""no" 1>&6
13702 #################################################
13703 # Check whether winbind is supported on this platform. If so we need to
13704 # build and install client programs (WINBIND_TARGETS), sbin programs
13705 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
13707 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
13708 echo "configure:13709: checking whether to build winbind" >&5
13710 # Initially, the value of $host_os decides whether winbind is supported
13718 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
13719 WINBIND_NSS_EXTRA_LIBS="-lsocket"
13723 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
13727 winbind_no_reason=", unsupported on $host_os"
13731 # Check the setting of --with-winbindd
13733 # Check whether --with-winbind or --without-winbind was given.
13734 if test "${with_winbind+set}" = set; then
13735 withval="$with_winbind"
13749 # We need unix domain sockets for winbind
13751 if test x"$HAVE_WINBIND" = x"yes"; then
13752 if test x"$samba_cv_unixsocket" = x"no"; then
13753 winbind_no_reason=", no unix domain socket support on $host_os"
13758 # Display test results
13761 WINBIND_STARGETS=""
13762 WINBIND_LTARGETS=""
13763 WINBIND_PAM_PROGS=""
13765 if test x"$HAVE_WINBIND" = x"yes"; then
13766 echo "$ac_t""yes" 1>&6
13767 cat >> confdefs.h <<\EOF
13768 #define WITH_WINBIND 1
13772 WINBIND_TARGETS="bin/wbinfo"
13773 WINBIND_STARGETS="bin/winbindd"
13774 if test x"$BLDSHARED" = x"true"; then
13775 WINBIND_LTARGETS="nsswitch/libnss_winbind.so"
13776 if test x"$with_pam" = x"yes"; then
13777 WINBIND_PAM_TARGETS="nsswitch/pam_winbind.so"
13781 echo "$ac_t""no$winbind_no_reason" 1>&6
13785 # Substitution time!
13794 # Solaris has some extra fields in struct passwd that need to be
13795 # initialised otherwise nscd crashes. Unfortunately autoconf < 2.50
13796 # doesn't have the AC_CHECK_MEMBER macro which would be handy for checking
13799 #AC_CHECK_MEMBER(struct passwd.pw_comment,
13800 # AC_DEFINE(HAVE_PASSWD_PW_COMMENT, 1, [Defined if struct passwd has pw_comment field]),
13801 # [#include <pwd.h>])
13803 echo $ac_n "checking whether struct passwd has pw_comment""... $ac_c" 1>&6
13804 echo "configure:13805: checking whether struct passwd has pw_comment" >&5
13805 if eval "test \"`echo '$''{'samba_cv_passwd_pw_comment'+set}'`\" = set"; then
13806 echo $ac_n "(cached) $ac_c" 1>&6
13809 cat > conftest.$ac_ext <<EOF
13810 #line 13811 "configure"
13811 #include "confdefs.h"
13814 struct passwd p; p.pw_comment;
13817 if { (eval echo configure:13818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13819 samba_cv_passwd_pw_comment=yes
13821 echo "configure: failed program was:" >&5
13822 cat conftest.$ac_ext >&5
13824 samba_cv_passwd_pw_comment=no
13829 echo "$ac_t""$samba_cv_passwd_pw_comment" 1>&6
13830 if test x"$samba_cv_passwd_pw_comment" = x"yes"; then
13831 cat >> confdefs.h <<\EOF
13832 #define HAVE_PASSWD_PW_COMMENT 1
13837 #AC_CHECK_MEMBER(struct passwd.pw_age,
13838 # AC_DEFINE(HAVE_PASSWD_PW_AGE, 1, [Defined if struct passwd has pw_age field]),
13839 # [#include <pwd.h>])
13841 echo $ac_n "checking whether struct passwd has pw_age""... $ac_c" 1>&6
13842 echo "configure:13843: checking whether struct passwd has pw_age" >&5
13843 if eval "test \"`echo '$''{'samba_cv_passwd_pw_age'+set}'`\" = set"; then
13844 echo $ac_n "(cached) $ac_c" 1>&6
13847 cat > conftest.$ac_ext <<EOF
13848 #line 13849 "configure"
13849 #include "confdefs.h"
13852 struct passwd p; p.pw_age;
13855 if { (eval echo configure:13856: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13857 samba_cv_passwd_pw_age=yes
13859 echo "configure: failed program was:" >&5
13860 cat conftest.$ac_ext >&5
13862 samba_cv_passwd_pw_age=no
13867 echo "$ac_t""$samba_cv_passwd_pw_age" 1>&6
13868 if test x"$samba_cv_passwd_pw_age" = x"yes"; then
13869 cat >> confdefs.h <<\EOF
13870 #define HAVE_PASSWD_PW_AGE 1
13875 #################################################
13876 # Check to see if we should use the included popt
13878 # Check whether --with-included-popt or --without-included-popt was given.
13879 if test "${with_included_popt+set}" = set; then
13880 withval="$with_included_popt"
13892 if test x"$INCLUDED_POPT" != x"yes"; then
13893 echo $ac_n "checking for poptGetContext in -lpopt""... $ac_c" 1>&6
13894 echo "configure:13895: checking for poptGetContext in -lpopt" >&5
13895 ac_lib_var=`echo popt'_'poptGetContext | sed 'y%./+-%__p_%'`
13896 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13897 echo $ac_n "(cached) $ac_c" 1>&6
13899 ac_save_LIBS="$LIBS"
13900 LIBS="-lpopt $LIBS"
13901 cat > conftest.$ac_ext <<EOF
13902 #line 13903 "configure"
13903 #include "confdefs.h"
13904 /* Override any gcc2 internal prototype to avoid an error. */
13905 /* We use char because int might match the return type of a gcc2
13906 builtin and then its argument prototype would still apply. */
13907 char poptGetContext();
13913 if { (eval echo configure:13914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13915 eval "ac_cv_lib_$ac_lib_var=yes"
13917 echo "configure: failed program was:" >&5
13918 cat conftest.$ac_ext >&5
13920 eval "ac_cv_lib_$ac_lib_var=no"
13923 LIBS="$ac_save_LIBS"
13926 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13927 echo "$ac_t""yes" 1>&6
13930 echo "$ac_t""no" 1>&6
13936 echo $ac_n "checking whether to use included popt""... $ac_c" 1>&6
13937 echo "configure:13938: checking whether to use included popt" >&5
13938 if test x"$INCLUDED_POPT" = x"yes"; then
13939 echo "$ac_t""yes" 1>&6
13940 BUILD_POPT='$(POPT_OBJS)'
13941 FLAGS1="-I$srcdir/popt"
13943 echo "$ac_t""no" 1>&6
13944 LIBS="$LIBS -lpopt"
13949 #################################################
13950 # do extra things if we are running insure
13952 if test "${ac_cv_prog_CC}" = "insure"; then
13953 CPPFLAGS="$CPPFLAGS -D__INSURE__"
13956 #################################################
13957 # final configure stuff
13959 echo $ac_n "checking configure summary""... $ac_c" 1>&6
13960 echo "configure:13961: checking configure summary" >&5
13961 if test "$cross_compiling" = yes; then
13962 echo "configure: warning: cannot run when cross-compiling" 1>&2
13964 cat > conftest.$ac_ext <<EOF
13965 #line 13966 "configure"
13966 #include "confdefs.h"
13967 #include "${srcdir-.}/tests/summary.c"
13969 if { (eval echo configure:13970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13971 echo "$ac_t""yes" 1>&6
13973 echo "configure: failed program was:" >&5
13974 cat conftest.$ac_ext >&5
13976 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }; exit 1;
13986 cat > confcache <<\EOF
13987 # This file is a shell script that caches the results of configure
13988 # tests run on this system so they can be shared between configure
13989 # scripts and configure runs. It is not useful on other systems.
13990 # If it contains results you don't want to keep, you may remove or edit it.
13992 # By default, configure uses ./config.cache as the cache file,
13993 # creating it if it does not exist already. You can give configure
13994 # the --cache-file=FILE option to use a different cache file; that is
13995 # what configure does when it calls configure scripts in
13996 # subdirectories, so they share the cache.
13997 # Giving --cache-file=/dev/null disables caching, for debugging configure.
13998 # config.status only pays attention to the cache file if you give it the
13999 # --recheck option to rerun configure.
14002 # The following way of writing the cache mishandles newlines in values,
14003 # but we know of no workaround that is simple, portable, and efficient.
14004 # So, don't put newlines in cache variables' values.
14005 # Ultrix sh set writes to stderr and can't be redirected directly,
14006 # and sets the high bit in the cache file unless we assign to the vars.
14008 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14010 # `set' does not quote correctly, so add quotes (double-quote substitution
14011 # turns \\\\ into \\, and sed turns \\ into \).
14013 -e "s/'/'\\\\''/g" \
14014 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
14017 # `set' quotes correctly as required by POSIX, so do not add quotes.
14018 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
14021 if cmp -s $cache_file confcache; then
14024 if test -w $cache_file; then
14025 echo "updating cache $cache_file"
14026 cat confcache > $cache_file
14028 echo "not updating unwritable cache $cache_file"
14033 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
14035 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14036 # Let make expand exec_prefix.
14037 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14039 # Any assignment to VPATH causes Sun make to only execute
14040 # the first set of double-colon rules, so remove it if not needed.
14041 # If there is a colon in the path, we need to keep it.
14042 if test "x$srcdir" = x.; then
14043 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
14046 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
14048 DEFS=-DHAVE_CONFIG_H
14050 # Without the "./", some shells look in PATH for config.status.
14051 : ${CONFIG_STATUS=./config.status}
14053 echo creating $CONFIG_STATUS
14054 rm -f $CONFIG_STATUS
14055 cat > $CONFIG_STATUS <<EOF
14057 # Generated automatically by configure.
14058 # Run this file to recreate the current configuration.
14059 # This directory was configured as follows,
14060 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14062 # $0 $ac_configure_args
14064 # Compiler output produced by configure, useful for debugging
14065 # configure, is in ./config.log if it exists.
14067 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
14070 case "\$ac_option" in
14071 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14072 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
14073 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
14074 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
14075 echo "$CONFIG_STATUS generated by autoconf version 2.13"
14077 -help | --help | --hel | --he | --h)
14078 echo "\$ac_cs_usage"; exit 0 ;;
14079 *) echo "\$ac_cs_usage"; exit 1 ;;
14083 ac_given_srcdir=$srcdir
14084 ac_given_INSTALL="$INSTALL"
14086 trap 'rm -fr `echo "include/stamp-h Makefile script/findsmb ../examples/VFS/Makefile ../examples/VFS/block/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
14088 cat >> $CONFIG_STATUS <<EOF
14090 # Protect against being on the right side of a sed subst in config.status.
14091 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
14092 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
14096 s%@CFLAGS@%$CFLAGS%g
14097 s%@CPPFLAGS@%$CPPFLAGS%g
14098 s%@CXXFLAGS@%$CXXFLAGS%g
14099 s%@FFLAGS@%$FFLAGS%g
14101 s%@LDFLAGS@%$LDFLAGS%g
14103 s%@exec_prefix@%$exec_prefix%g
14104 s%@prefix@%$prefix%g
14105 s%@program_transform_name@%$program_transform_name%g
14106 s%@bindir@%$bindir%g
14107 s%@sbindir@%$sbindir%g
14108 s%@libexecdir@%$libexecdir%g
14109 s%@datadir@%$datadir%g
14110 s%@sysconfdir@%$sysconfdir%g
14111 s%@sharedstatedir@%$sharedstatedir%g
14112 s%@localstatedir@%$localstatedir%g
14113 s%@libdir@%$libdir%g
14114 s%@includedir@%$includedir%g
14115 s%@oldincludedir@%$oldincludedir%g
14116 s%@infodir@%$infodir%g
14117 s%@mandir@%$mandir%g
14118 s%@configdir@%$configdir%g
14119 s%@lockdir@%$lockdir%g
14120 s%@piddir@%$piddir%g
14121 s%@logfilebase@%$logfilebase%g
14122 s%@privatedir@%$privatedir%g
14123 s%@swatdir@%$swatdir%g
14124 s%@RUNPROG@%$RUNPROG%g
14125 s%@MPROGS@%$MPROGS%g
14126 s%@LDSHFLAGS@%$LDSHFLAGS%g
14127 s%@SONAMEFLAG@%$SONAMEFLAG%g
14129 s%@HOST_OS@%$HOST_OS%g
14130 s%@PAM_MOD@%$PAM_MOD%g
14132 s%@WRAP32@%$WRAP32%g
14133 s%@WRAPPROG@%$WRAPPROG%g
14134 s%@PICFLAG@%$PICFLAG%g
14135 s%@PICSUFFIX@%$PICSUFFIX%g
14136 s%@POBAD_CC@%$POBAD_CC%g
14137 s%@SHLIBEXT@%$SHLIBEXT%g
14138 s%@LIBSMBCLIENT_SHARED@%$LIBSMBCLIENT_SHARED%g
14139 s%@LIBSMBCLIENT@%$LIBSMBCLIENT%g
14140 s%@SMBDLIBS@%$SMBDLIBS%g
14141 s%@PRINTLIBS@%$PRINTLIBS%g
14143 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
14144 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
14145 s%@INSTALL_DATA@%$INSTALL_DATA%g
14147 s%@BROKEN_CC@%$BROKEN_CC%g
14149 s%@host_alias@%$host_alias%g
14150 s%@host_cpu@%$host_cpu%g
14151 s%@host_vendor@%$host_vendor%g
14152 s%@host_os@%$host_os%g
14153 s%@target@%$target%g
14154 s%@target_alias@%$target_alias%g
14155 s%@target_cpu@%$target_cpu%g
14156 s%@target_vendor@%$target_vendor%g
14157 s%@target_os@%$target_os%g
14159 s%@build_alias@%$build_alias%g
14160 s%@build_cpu@%$build_cpu%g
14161 s%@build_vendor@%$build_vendor%g
14162 s%@build_os@%$build_os%g
14164 s%@CUPS_CONFIG@%$CUPS_CONFIG%g
14165 s%@LIBOBJS@%$LIBOBJS%g
14166 s%@TERMLIBS@%$TERMLIBS%g
14167 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
14169 s%@DYNEXP@%$DYNEXP%g
14170 s%@QUOTAOBJS@%$QUOTAOBJS%g
14171 s%@manlangs@%$manlangs%g
14172 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
14173 s%@WINBIND_STARGETS@%$WINBIND_STARGETS%g
14174 s%@WINBIND_LTARGETS@%$WINBIND_LTARGETS%g
14175 s%@WINBIND_PAM_TARGETS@%$WINBIND_PAM_TARGETS%g
14176 s%@WINBIND_NSS_EXTRA_OBJS@%$WINBIND_NSS_EXTRA_OBJS%g
14177 s%@WINBIND_NSS_EXTRA_LIBS@%$WINBIND_NSS_EXTRA_LIBS%g
14178 s%@BUILD_POPT@%$BUILD_POPT%g
14179 s%@FLAGS1@%$FLAGS1%g
14180 s%@builddir@%$builddir%g
14185 cat >> $CONFIG_STATUS <<\EOF
14187 # Split the substitutions into bite-sized pieces for seds with
14188 # small command number limits, like on Digital OSF/1 and HP-UX.
14189 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
14190 ac_file=1 # Number of current file.
14191 ac_beg=1 # First line for current file.
14192 ac_end=$ac_max_sed_cmds # Line after last line for current file.
14195 while $ac_more_lines; do
14196 if test $ac_beg -gt 1; then
14197 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
14199 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
14201 if test ! -s conftest.s$ac_file; then
14202 ac_more_lines=false
14203 rm -f conftest.s$ac_file
14205 if test -z "$ac_sed_cmds"; then
14206 ac_sed_cmds="sed -f conftest.s$ac_file"
14208 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
14210 ac_file=`expr $ac_file + 1`
14212 ac_end=`expr $ac_end + $ac_max_sed_cmds`
14215 if test -z "$ac_sed_cmds"; then
14220 cat >> $CONFIG_STATUS <<EOF
14222 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile script/findsmb ../examples/VFS/Makefile ../examples/VFS/block/Makefile"}
14224 cat >> $CONFIG_STATUS <<\EOF
14225 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
14226 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14228 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14229 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14230 *) ac_file_in="${ac_file}.in" ;;
14233 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
14235 # Remove last slash and all that follows it. Not all systems have dirname.
14236 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14237 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14238 # The file is in a subdirectory.
14239 test ! -d "$ac_dir" && mkdir "$ac_dir"
14240 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
14241 # A "../" for each directory in $ac_dir_suffix.
14242 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
14244 ac_dir_suffix= ac_dots=
14247 case "$ac_given_srcdir" in
14249 if test -z "$ac_dots"; then top_srcdir=.
14250 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
14251 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
14252 *) # Relative path.
14253 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
14254 top_srcdir="$ac_dots$ac_given_srcdir" ;;
14257 case "$ac_given_INSTALL" in
14258 [/$]*) INSTALL="$ac_given_INSTALL" ;;
14259 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
14262 echo creating "$ac_file"
14264 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
14266 *Makefile*) ac_comsub="1i\\
14267 # $configure_input" ;;
14271 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14273 s%@configure_input@%$configure_input%g
14274 s%@srcdir@%$srcdir%g
14275 s%@top_srcdir@%$top_srcdir%g
14276 s%@INSTALL@%$INSTALL%g
14277 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
14281 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14282 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14284 # ac_d sets the value in "#define NAME VALUE" lines.
14285 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14286 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
14289 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
14290 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14291 ac_uB='\([ ]\)%\1#\2define\3'
14294 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14295 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14296 ac_eB='$%\1#\2define\3'
14300 if test "${CONFIG_HEADERS+set}" != set; then
14302 cat >> $CONFIG_STATUS <<EOF
14303 CONFIG_HEADERS="include/config.h"
14305 cat >> $CONFIG_STATUS <<\EOF
14307 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
14308 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14310 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14311 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14312 *) ac_file_in="${ac_file}.in" ;;
14315 echo creating $ac_file
14317 rm -f conftest.frag conftest.in conftest.out
14318 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14319 cat $ac_file_inputs > conftest.in
14323 # Transform confdefs.h into a sed script conftest.vals that substitutes
14324 # the proper values into config.h.in to produce config.h. And first:
14325 # Protect against being on the right side of a sed subst in config.status.
14326 # Protect against being in an unquoted here document in config.status.
14327 rm -f conftest.vals
14328 cat > conftest.hdr <<\EOF
14331 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
14335 sed -n -f conftest.hdr confdefs.h > conftest.vals
14338 # This sed command replaces #undef with comments. This is necessary, for
14339 # example, in the case of _POSIX_SOURCE, which is predefined and required
14340 # on some systems where configure will not decide to define it.
14341 cat >> conftest.vals <<\EOF
14342 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
14345 # Break up conftest.vals because some shells have a limit on
14346 # the size of here documents, and old seds have small limits too.
14348 rm -f conftest.tail
14351 ac_lines=`grep -c . conftest.vals`
14352 # grep -c gives empty output for an empty file on some AIX systems.
14353 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
14354 # Write a limited-size here document to conftest.frag.
14355 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
14356 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
14358 sed -f conftest.frag conftest.in > conftest.out
14360 mv conftest.out conftest.in
14361 ' >> $CONFIG_STATUS
14362 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
14363 rm -f conftest.vals
14364 mv conftest.tail conftest.vals
14366 rm -f conftest.vals
14368 cat >> $CONFIG_STATUS <<\EOF
14369 rm -f conftest.frag conftest.h
14370 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
14371 cat conftest.in >> conftest.h
14373 if cmp -s $ac_file conftest.h 2>/dev/null; then
14374 echo "$ac_file is unchanged"
14377 # Remove last slash and all that follows it. Not all systems have dirname.
14378 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14379 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14380 # The file is in a subdirectory.
14381 test ! -d "$ac_dir" && mkdir "$ac_dir"
14384 mv conftest.h $ac_file
14389 cat >> $CONFIG_STATUS <<EOF
14392 cat >> $CONFIG_STATUS <<\EOF
14396 chmod +x $CONFIG_STATUS
14397 rm -fr confdefs* $ac_clean_files
14398 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
14401 #################################################
14402 # Print very concise instructions on building/use
14403 if test "x$enable_dmalloc" = xyes
14405 echo "$ac_t""Note: The dmalloc debug library will be included. To turn it on use" 1>&6
14406 echo "$ac_t"" \$ eval \`dmalloc samba\`." 1>&6