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-sam Build new (experimental) SAM database (default=no)"
62 --with-tdbsam Include experimental TDB SAM support (default=no)"
64 --with-nisplussam Include NISPLUS SAM support (default=no)"
66 --with-nisplus-home Include NISPLUS_HOME support (default=no)"
68 --with-syslog Include experimental SYSLOG support (default=no)"
70 --with-profiling-data Include gathering source code profile information (default=no)"
72 --with-quotas Include experimental disk-quota support (default=no)"
74 --with-utmp Include experimental utmp accounting (default=no)"
76 --with-manpages-langs={en,ja,pl} Choose man pages' language(s). (en)"
78 --with-libsmbclient Build the libsmbclient shared library (default=yes)"
80 --with-spinlocks Use spin locks instead of fcntl locks (default=no) "
82 --with-acl-support Include ACL support (default=no)"
84 --with-sendfile-support Include sendfile support (default=no)"
86 --with-winbind Build winbind (default, if supported by OS)"
88 --with-included-popt use bundled popt library, not from system"
90 --with-python=PYTHONNAME build Python libraries"
92 # Initialize some variables set by options.
93 # The variables have the same names as the options, with
94 # dashes changed to underlines.
96 cache_file=./config.cache
105 program_transform_name=s,x,x,
113 bindir='${exec_prefix}/bin'
114 sbindir='${exec_prefix}/sbin'
115 libexecdir='${exec_prefix}/libexec'
116 datadir='${prefix}/share'
117 sysconfdir='${prefix}/etc'
118 sharedstatedir='${prefix}/com'
119 localstatedir='${prefix}/var'
120 libdir='${exec_prefix}/lib'
121 includedir='${prefix}/include'
122 oldincludedir='/usr/include'
123 infodir='${prefix}/info'
124 mandir='${prefix}/man'
126 # Initialize some other variables.
129 SHELL=${CONFIG_SHELL-/bin/sh}
130 # Maximum number of lines to put in a shell here document.
137 # If the previous option needs an argument, assign it.
138 if test -n "$ac_prev"; then
139 eval "$ac_prev=\$ac_option"
145 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
149 # Accept the important Cygnus configure options, so we can diagnose typos.
153 -bindir | --bindir | --bindi | --bind | --bin | --bi)
155 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
156 bindir="$ac_optarg" ;;
158 -build | --build | --buil | --bui | --bu)
160 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
161 build="$ac_optarg" ;;
163 -cache-file | --cache-file | --cache-fil | --cache-fi \
164 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
165 ac_prev=cache_file ;;
166 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
167 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
168 cache_file="$ac_optarg" ;;
170 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
172 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
174 datadir="$ac_optarg" ;;
176 -disable-* | --disable-*)
177 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
178 # Reject names that are not valid shell variable names.
179 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
180 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
182 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
183 eval "enable_${ac_feature}=no" ;;
185 -enable-* | --enable-*)
186 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
187 # Reject names that are not valid shell variable names.
188 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
189 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
191 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
196 eval "enable_${ac_feature}='$ac_optarg'" ;;
198 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
199 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
200 | --exec | --exe | --ex)
201 ac_prev=exec_prefix ;;
202 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
203 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
204 | --exec=* | --exe=* | --ex=*)
205 exec_prefix="$ac_optarg" ;;
207 -gas | --gas | --ga | --g)
208 # Obsolete; use --with-gas.
211 -help | --help | --hel | --he)
212 # Omit some internal or obsolete options to make the list less imposing.
213 # This message is too long to be a string in the A/UX 3.1 sh.
215 Usage: configure [options] [host]
216 Options: [defaults in brackets after descriptions]
218 --cache-file=FILE cache test results in FILE
219 --help print this message
220 --no-create do not create output files
221 --quiet, --silent do not print \`checking...' messages
222 --version print the version of autoconf that created configure
223 Directory and file names:
224 --prefix=PREFIX install architecture-independent files in PREFIX
226 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
228 --bindir=DIR user executables in DIR [EPREFIX/bin]
229 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
230 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
231 --datadir=DIR read-only architecture-independent data in DIR
233 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
234 --sharedstatedir=DIR modifiable architecture-independent data in DIR
236 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
237 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
238 --includedir=DIR C header files in DIR [PREFIX/include]
239 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
240 --infodir=DIR info documentation in DIR [PREFIX/info]
241 --mandir=DIR man documentation in DIR [PREFIX/man]
242 --srcdir=DIR find the sources in DIR [configure dir or ..]
243 --program-prefix=PREFIX prepend PREFIX to installed program names
244 --program-suffix=SUFFIX append SUFFIX to installed program names
245 --program-transform-name=PROGRAM
246 run sed PROGRAM on installed program names
250 --build=BUILD configure for building on BUILD [BUILD=HOST]
251 --host=HOST configure for HOST [guessed]
252 --target=TARGET configure for TARGET [TARGET=HOST]
253 Features and packages:
254 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
255 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
256 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
257 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
258 --x-includes=DIR X include files are in DIR
259 --x-libraries=DIR X library files are in DIR
261 if test -n "$ac_help"; then
262 echo "--enable and --with options recognized:$ac_help"
266 -host | --host | --hos | --ho)
268 -host=* | --host=* | --hos=* | --ho=*)
271 -includedir | --includedir | --includedi | --included | --include \
272 | --includ | --inclu | --incl | --inc)
273 ac_prev=includedir ;;
274 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
275 | --includ=* | --inclu=* | --incl=* | --inc=*)
276 includedir="$ac_optarg" ;;
278 -infodir | --infodir | --infodi | --infod | --info | --inf)
280 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
281 infodir="$ac_optarg" ;;
283 -libdir | --libdir | --libdi | --libd)
285 -libdir=* | --libdir=* | --libdi=* | --libd=*)
286 libdir="$ac_optarg" ;;
288 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
289 | --libexe | --libex | --libe)
290 ac_prev=libexecdir ;;
291 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
292 | --libexe=* | --libex=* | --libe=*)
293 libexecdir="$ac_optarg" ;;
295 -localstatedir | --localstatedir | --localstatedi | --localstated \
296 | --localstate | --localstat | --localsta | --localst \
297 | --locals | --local | --loca | --loc | --lo)
298 ac_prev=localstatedir ;;
299 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
300 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
301 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
302 localstatedir="$ac_optarg" ;;
304 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
306 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
307 mandir="$ac_optarg" ;;
310 # Obsolete; use --without-fp.
313 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
317 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
318 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
321 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
322 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
323 | --oldin | --oldi | --old | --ol | --o)
324 ac_prev=oldincludedir ;;
325 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
326 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
327 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
328 oldincludedir="$ac_optarg" ;;
330 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
332 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
333 prefix="$ac_optarg" ;;
335 -program-prefix | --program-prefix | --program-prefi | --program-pref \
336 | --program-pre | --program-pr | --program-p)
337 ac_prev=program_prefix ;;
338 -program-prefix=* | --program-prefix=* | --program-prefi=* \
339 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
340 program_prefix="$ac_optarg" ;;
342 -program-suffix | --program-suffix | --program-suffi | --program-suff \
343 | --program-suf | --program-su | --program-s)
344 ac_prev=program_suffix ;;
345 -program-suffix=* | --program-suffix=* | --program-suffi=* \
346 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
347 program_suffix="$ac_optarg" ;;
349 -program-transform-name | --program-transform-name \
350 | --program-transform-nam | --program-transform-na \
351 | --program-transform-n | --program-transform- \
352 | --program-transform | --program-transfor \
353 | --program-transfo | --program-transf \
354 | --program-trans | --program-tran \
355 | --progr-tra | --program-tr | --program-t)
356 ac_prev=program_transform_name ;;
357 -program-transform-name=* | --program-transform-name=* \
358 | --program-transform-nam=* | --program-transform-na=* \
359 | --program-transform-n=* | --program-transform-=* \
360 | --program-transform=* | --program-transfor=* \
361 | --program-transfo=* | --program-transf=* \
362 | --program-trans=* | --program-tran=* \
363 | --progr-tra=* | --program-tr=* | --program-t=*)
364 program_transform_name="$ac_optarg" ;;
366 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
367 | -silent | --silent | --silen | --sile | --sil)
370 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
372 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
374 sbindir="$ac_optarg" ;;
376 -sharedstatedir | --sharedstatedir | --sharedstatedi \
377 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
378 | --sharedst | --shareds | --shared | --share | --shar \
380 ac_prev=sharedstatedir ;;
381 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
382 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
383 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
385 sharedstatedir="$ac_optarg" ;;
387 -site | --site | --sit)
389 -site=* | --site=* | --sit=*)
392 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
394 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
395 srcdir="$ac_optarg" ;;
397 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
398 | --syscon | --sysco | --sysc | --sys | --sy)
399 ac_prev=sysconfdir ;;
400 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
401 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
402 sysconfdir="$ac_optarg" ;;
404 -target | --target | --targe | --targ | --tar | --ta | --t)
406 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
407 target="$ac_optarg" ;;
409 -v | -verbose | --verbose | --verbos | --verbo | --verb)
412 -version | --version | --versio | --versi | --vers)
413 echo "configure generated by autoconf version 2.13"
417 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
418 # Reject names that are not valid shell variable names.
419 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
420 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
422 ac_package=`echo $ac_package| sed 's/-/_/g'`
427 eval "with_${ac_package}='$ac_optarg'" ;;
429 -without-* | --without-*)
430 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
431 # Reject names that are not valid shell variable names.
432 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
433 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
435 ac_package=`echo $ac_package| sed 's/-/_/g'`
436 eval "with_${ac_package}=no" ;;
439 # Obsolete; use --with-x.
442 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
443 | --x-incl | --x-inc | --x-in | --x-i)
444 ac_prev=x_includes ;;
445 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
446 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
447 x_includes="$ac_optarg" ;;
449 -x-libraries | --x-libraries | --x-librarie | --x-librari \
450 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
451 ac_prev=x_libraries ;;
452 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
453 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
454 x_libraries="$ac_optarg" ;;
456 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
460 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
461 echo "configure: warning: $ac_option: invalid host type" 1>&2
463 if test "x$nonopt" != xNONE; then
464 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
472 if test -n "$ac_prev"; then
473 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
476 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
478 # File descriptor usage:
481 # 2 errors and warnings
482 # 3 some systems may open it to /dev/tty
483 # 4 used on the Kubota Titan
484 # 6 checking for... messages and results
485 # 5 compiler messages saved in config.log
486 if test "$silent" = yes; then
494 This file contains any messages produced by compilers while
495 running configure, to aid debugging if configure makes a mistake.
498 # Strip out --no-create and --no-recursion so they do not pile up.
499 # Also quote any args containing shell metacharacters.
504 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
505 | --no-cr | --no-c) ;;
506 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
507 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
508 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
509 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
510 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
515 # Only set these to C if already set. These must not be set unconditionally
516 # because not all systems understand e.g. LANG=C (notably SCO).
517 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
518 # Non-C LC_CTYPE values break the ctype check.
519 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
520 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
521 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
522 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
524 # confdefs.h avoids OS command line length limits that DEFS can exceed.
525 rm -rf conftest* confdefs.h
526 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
529 # A filename unique to this package, relative to the directory that
530 # configure is in, which we can look for to find out if srcdir is correct.
531 ac_unique_file=include/includes.h
533 # Find the source files, if location was not specified.
534 if test -z "$srcdir"; then
535 ac_srcdir_defaulted=yes
536 # Try the directory containing this script, then its parent.
538 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
539 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
541 if test ! -r $srcdir/$ac_unique_file; then
545 ac_srcdir_defaulted=no
547 if test ! -r $srcdir/$ac_unique_file; then
548 if test "$ac_srcdir_defaulted" = yes; then
549 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
551 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
554 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
556 # Prefer explicitly selected file to automatically selected ones.
557 if test -z "$CONFIG_SITE"; then
558 if test "x$prefix" != xNONE; then
559 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
561 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
564 for ac_site_file in $CONFIG_SITE; do
565 if test -r "$ac_site_file"; then
566 echo "loading site script $ac_site_file"
571 if test -r "$cache_file"; then
572 echo "loading cache $cache_file"
575 echo "creating cache $cache_file"
580 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
581 ac_cpp='$CPP $CPPFLAGS'
582 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
583 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
584 cross_compiling=$ac_cv_prog_cc_cross
588 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
589 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
590 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
597 ac_n= ac_c='\c' ac_t=
603 #################################################
604 # Directory handling stuff to support both the
605 # legacy SAMBA directories and FHS compliant
609 # Check whether --with-fhs or --without-fhs was given.
610 if test "${with_fhs+set}" = set; then
612 configdir="${sysconfdir}/samba"
613 lockdir="\${VARDIR}/cache/samba"
614 piddir="\$(VARDIR)/run/samba"
615 logfilebase="\${VARDIR}/log/samba"
616 privatedir="\${CONFIGDIR}/private"
617 swatdir="\${DATADIR}/samba/swat"
619 configdir="\$(LIBDIR)"
620 logfilebase="\$(VARDIR)"
621 lockdir="\${VARDIR}/locks"
622 piddir="\$(VARDIR)/locks"
623 privatedir="\${prefix}/private"
624 swatdir="\${prefix}/swat"
628 #################################################
629 # set private directory location
630 # Check whether --with-privatedir or --without-privatedir was given.
631 if test "${with_privatedir+set}" = set; then
632 withval="$with_privatedir"
636 # Just in case anybody calls it without argument
638 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
641 privatedir="$withval"
647 #################################################
648 # set lock directory location
649 # Check whether --with-lockdir or --without-lockdir was given.
650 if test "${with_lockdir+set}" = set; then
651 withval="$with_lockdir"
655 # Just in case anybody calls it without argument
657 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
666 #################################################
667 # set pid directory location
668 # Check whether --with-piddir or --without-piddir was given.
669 if test "${with_piddir+set}" = set; then
670 withval="$with_piddir"
674 # Just in case anybody calls it without argument
676 echo "configure: warning: --with-piddir called without argument - will use default" 1>&2
685 #################################################
686 # set SWAT directory location
687 # Check whether --with-swatdir or --without-swatdir was given.
688 if test "${with_swatdir+set}" = set; then
689 withval="$with_swatdir"
693 # Just in case anybody does it
695 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
704 #################################################
705 # set configuration directory location
706 # Check whether --with-configdir or --without-configdir was given.
707 if test "${with_configdir+set}" = set; then
708 withval="$with_configdir"
712 # Just in case anybody does it
714 echo "configure: warning: --with-configdir called without argument - will use default" 1>&2
723 #################################################
724 # set log directory location
725 # Check whether --with-logfilebase or --without-logfilebase was given.
726 if test "${with_logfilebase+set}" = set; then
727 withval="$with_logfilebase"
731 # Just in case anybody does it
733 echo "configure: warning: --with-logfilebase called without argument - will use default" 1>&2
736 logfilebase="$withval"
770 # compile with optimization and without debugging by default
771 CFLAGS="-O ${CFLAGS}"
773 # Check whether --enable-debug or --disable-debug was given.
774 if test "${enable_debug+set}" = set; then
775 enableval="$enable_debug"
776 if eval "test x$enable_debug = xyes"; then
777 CFLAGS="${CFLAGS} -g"
782 # Check whether --enable-developer or --disable-developer was given.
783 if test "${enable_developer+set}" = set; then
784 enableval="$enable_developer"
785 if eval "test x$enable_developer = xyes"; then
786 CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
791 # Check whether --enable-krb5developer or --disable-krb5developer was given.
792 if test "${enable_krb5developer+set}" = set; then
793 enableval="$enable_krb5developer"
794 if eval "test x$enable_krb5developer = xyes"; then
795 CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
800 # Check whether --enable-dmalloc or --disable-dmalloc was given.
801 if test "${enable_dmalloc+set}" = set; then
802 enableval="$enable_dmalloc"
807 if test "x$enable_dmalloc" = xyes
809 cat >> confdefs.h <<\EOF
810 #define ENABLE_DMALLOC 1
813 cat >> confdefs.h <<\EOF
814 #define DMALLOC_FUNC_CHECK 1
817 LIBS="$LIBS -ldmalloc"
820 # Extract the first word of "gcc", so it can be a program name with args.
821 set dummy gcc; ac_word=$2
822 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
823 echo "configure:824: checking for $ac_word" >&5
824 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
825 echo $ac_n "(cached) $ac_c" 1>&6
827 if test -n "$CC"; then
828 ac_cv_prog_CC="$CC" # Let the user override the test.
830 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
832 for ac_dir in $ac_dummy; do
833 test -z "$ac_dir" && ac_dir=.
834 if test -f $ac_dir/$ac_word; then
843 if test -n "$CC"; then
844 echo "$ac_t""$CC" 1>&6
846 echo "$ac_t""no" 1>&6
849 if test -z "$CC"; then
850 # Extract the first word of "cc", so it can be a program name with args.
851 set dummy cc; ac_word=$2
852 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
853 echo "configure:854: checking for $ac_word" >&5
854 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
855 echo $ac_n "(cached) $ac_c" 1>&6
857 if test -n "$CC"; then
858 ac_cv_prog_CC="$CC" # Let the user override the test.
860 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
863 for ac_dir in $ac_dummy; do
864 test -z "$ac_dir" && ac_dir=.
865 if test -f $ac_dir/$ac_word; then
866 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
875 if test $ac_prog_rejected = yes; then
876 # We found a bogon in the path, so make sure we never use it.
877 set dummy $ac_cv_prog_CC
879 if test $# -gt 0; then
880 # We chose a different compiler from the bogus one.
881 # However, it has the same basename, so the bogon will be chosen
882 # first if we set CC to just the basename; use the full file name.
884 set dummy "$ac_dir/$ac_word" "$@"
892 if test -n "$CC"; then
893 echo "$ac_t""$CC" 1>&6
895 echo "$ac_t""no" 1>&6
898 if test -z "$CC"; then
901 # Extract the first word of "cl", so it can be a program name with args.
902 set dummy cl; ac_word=$2
903 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
904 echo "configure:905: checking for $ac_word" >&5
905 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
906 echo $ac_n "(cached) $ac_c" 1>&6
908 if test -n "$CC"; then
909 ac_cv_prog_CC="$CC" # Let the user override the test.
911 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
913 for ac_dir in $ac_dummy; do
914 test -z "$ac_dir" && ac_dir=.
915 if test -f $ac_dir/$ac_word; then
924 if test -n "$CC"; then
925 echo "$ac_t""$CC" 1>&6
927 echo "$ac_t""no" 1>&6
932 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
935 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
936 echo "configure:937: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
939 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
940 ac_cpp='$CPP $CPPFLAGS'
941 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
942 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
943 cross_compiling=$ac_cv_prog_cc_cross
945 cat > conftest.$ac_ext << EOF
947 #line 948 "configure"
948 #include "confdefs.h"
952 if { (eval echo configure:953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
953 ac_cv_prog_cc_works=yes
954 # If we can't run a trivial program, we are probably using a cross compiler.
955 if (./conftest; exit) 2>/dev/null; then
956 ac_cv_prog_cc_cross=no
958 ac_cv_prog_cc_cross=yes
961 echo "configure: failed program was:" >&5
962 cat conftest.$ac_ext >&5
963 ac_cv_prog_cc_works=no
967 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
968 ac_cpp='$CPP $CPPFLAGS'
969 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
970 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
971 cross_compiling=$ac_cv_prog_cc_cross
973 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
974 if test $ac_cv_prog_cc_works = no; then
975 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
977 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
978 echo "configure:979: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
979 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
980 cross_compiling=$ac_cv_prog_cc_cross
982 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
983 echo "configure:984: checking whether we are using GNU C" >&5
984 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
985 echo $ac_n "(cached) $ac_c" 1>&6
987 cat > conftest.c <<EOF
992 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
999 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1001 if test $ac_cv_prog_gcc = yes; then
1007 ac_test_CFLAGS="${CFLAGS+set}"
1008 ac_save_CFLAGS="$CFLAGS"
1010 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1011 echo "configure:1012: checking whether ${CC-cc} accepts -g" >&5
1012 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1013 echo $ac_n "(cached) $ac_c" 1>&6
1015 echo 'void f(){}' > conftest.c
1016 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1025 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1026 if test "$ac_test_CFLAGS" = set; then
1027 CFLAGS="$ac_save_CFLAGS"
1028 elif test $ac_cv_prog_cc_g = yes; then
1029 if test "$GCC" = yes; then
1035 if test "$GCC" = yes; then
1043 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1044 if test -f $ac_dir/install-sh; then
1046 ac_install_sh="$ac_aux_dir/install-sh -c"
1048 elif test -f $ac_dir/install.sh; then
1050 ac_install_sh="$ac_aux_dir/install.sh -c"
1054 if test -z "$ac_aux_dir"; then
1055 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1057 ac_config_guess=$ac_aux_dir/config.guess
1058 ac_config_sub=$ac_aux_dir/config.sub
1059 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1061 # Find a good install program. We prefer a C program (faster),
1062 # so one script is as good as another. But avoid the broken or
1063 # incompatible versions:
1064 # SysV /etc/install, /usr/sbin/install
1065 # SunOS /usr/etc/install
1066 # IRIX /sbin/install
1068 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1069 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1070 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1071 # ./install, which can be erroneously created by make from ./install.sh.
1072 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1073 echo "configure:1074: checking for a BSD compatible install" >&5
1074 if test -z "$INSTALL"; then
1075 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1076 echo $ac_n "(cached) $ac_c" 1>&6
1078 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1079 for ac_dir in $PATH; do
1080 # Account for people who put trailing slashes in PATH elements.
1082 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1084 # OSF1 and SCO ODT 3.0 have their own names for install.
1085 # Don't use installbsd from OSF since it installs stuff as root
1087 for ac_prog in ginstall scoinst install; do
1088 if test -f $ac_dir/$ac_prog; then
1089 if test $ac_prog = install &&
1090 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1091 # AIX install. It has an incompatible calling convention.
1094 ac_cv_path_install="$ac_dir/$ac_prog -c"
1105 if test "${ac_cv_path_install+set}" = set; then
1106 INSTALL="$ac_cv_path_install"
1108 # As a last resort, use the slow shell script. We don't cache a
1109 # path for INSTALL within a source directory, because that will
1110 # break other packages using the cache if that directory is
1111 # removed, or if the path is relative.
1112 INSTALL="$ac_install_sh"
1115 echo "$ac_t""$INSTALL" 1>&6
1117 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1118 # It thinks the first close brace ends the variable substitution.
1119 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1121 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1123 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1125 for ac_prog in mawk gawk nawk awk
1127 # Extract the first word of "$ac_prog", so it can be a program name with args.
1128 set dummy $ac_prog; ac_word=$2
1129 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1130 echo "configure:1131: checking for $ac_word" >&5
1131 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1132 echo $ac_n "(cached) $ac_c" 1>&6
1134 if test -n "$AWK"; then
1135 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1137 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1139 for ac_dir in $ac_dummy; do
1140 test -z "$ac_dir" && ac_dir=.
1141 if test -f $ac_dir/$ac_word; then
1142 ac_cv_prog_AWK="$ac_prog"
1149 AWK="$ac_cv_prog_AWK"
1150 if test -n "$AWK"; then
1151 echo "$ac_t""$AWK" 1>&6
1153 echo "$ac_t""no" 1>&6
1156 test -n "$AWK" && break
1161 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1162 echo "configure:1163: checking if the linker ($LD) is GNU ld" >&5
1163 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1164 echo $ac_n "(cached) $ac_c" 1>&6
1166 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1167 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1168 ac_cv_prog_gnu_ld=yes
1170 ac_cv_prog_gnu_ld=no
1174 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1177 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1178 echo "configure:1179: checking for POSIXized ISC" >&5
1179 if test -d /etc/conf/kconfig.d &&
1180 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1182 echo "$ac_t""yes" 1>&6
1183 ISC=yes # If later tests want to check for ISC.
1184 cat >> confdefs.h <<\EOF
1185 #define _POSIX_SOURCE 1
1188 if test "$GCC" = yes; then
1194 echo "$ac_t""no" 1>&6
1199 if test "x$CC" != xcc; then
1200 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1201 echo "configure:1202: checking whether $CC and cc understand -c and -o together" >&5
1203 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1204 echo "configure:1205: checking whether cc understands -c and -o together" >&5
1206 set dummy $CC; ac_cc="`echo $2 |
1207 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1208 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1209 echo $ac_n "(cached) $ac_c" 1>&6
1211 echo 'foo(){}' > conftest.c
1212 # Make sure it works both with $CC and with simple cc.
1213 # We do the test twice because some compilers refuse to overwrite an
1214 # existing .o file with -o, though they will create one.
1215 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1216 if { (eval echo configure:1217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1217 test -f conftest.o && { (eval echo configure:1218: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1219 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1220 if test "x$CC" != xcc; then
1221 # Test first that cc exists at all.
1222 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1223 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1224 if { (eval echo configure:1225: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1225 test -f conftest.o && { (eval echo configure:1226: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1230 # cc exists but doesn't like -o.
1231 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1236 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1241 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1242 echo "$ac_t""yes" 1>&6
1244 echo "$ac_t""no" 1>&6
1245 cat >> confdefs.h <<\EOF
1246 #define NO_MINUS_C_MINUS_O 1
1251 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1258 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1259 echo "configure:1260: checking that the C compiler understands volatile" >&5
1260 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1261 echo $ac_n "(cached) $ac_c" 1>&6
1264 cat > conftest.$ac_ext <<EOF
1265 #line 1266 "configure"
1266 #include "confdefs.h"
1267 #include <sys/types.h>
1272 if { (eval echo configure:1273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1274 samba_cv_volatile=yes
1276 echo "configure: failed program was:" >&5
1277 cat conftest.$ac_ext >&5
1279 samba_cv_volatile=no
1284 echo "$ac_t""$samba_cv_volatile" 1>&6
1285 if test x"$samba_cv_volatile" = x"yes"; then
1286 cat >> confdefs.h <<\EOF
1287 #define HAVE_VOLATILE 1
1294 # Do some error checking and defaulting for the host and target type.
1296 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1299 # 1. You are not allowed to specify --host, --target, and nonopt at the
1301 # 2. Host defaults to nonopt.
1302 # 3. If nonopt is not specified, then host defaults to the current host,
1303 # as determined by config.guess.
1304 # 4. Target and build default to nonopt.
1305 # 5. If nonopt is not specified, then target and build default to host.
1307 # The aliases save the names the user supplied, while $host etc.
1308 # will get canonicalized.
1309 case $host---$target---$nonopt in
1310 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1311 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1315 # Make sure we can run config.sub.
1316 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1317 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1320 echo $ac_n "checking host system type""... $ac_c" 1>&6
1321 echo "configure:1322: checking host system type" >&5
1324 case "$host_alias" in
1328 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1329 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1331 *) host_alias=$nonopt ;;
1335 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1336 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1337 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1338 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1339 echo "$ac_t""$host" 1>&6
1341 echo $ac_n "checking target system type""... $ac_c" 1>&6
1342 echo "configure:1343: checking target system type" >&5
1344 target_alias=$target
1345 case "$target_alias" in
1348 NONE) target_alias=$host_alias ;;
1349 *) target_alias=$nonopt ;;
1353 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1354 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1355 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1356 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1357 echo "$ac_t""$target" 1>&6
1359 echo $ac_n "checking build system type""... $ac_c" 1>&6
1360 echo "configure:1361: checking build system type" >&5
1363 case "$build_alias" in
1366 NONE) build_alias=$host_alias ;;
1367 *) build_alias=$nonopt ;;
1371 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1372 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1373 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1374 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1375 echo "$ac_t""$build" 1>&6
1377 test "$host_alias" != "$target_alias" &&
1378 test "$program_prefix$program_suffix$program_transform_name" = \
1380 program_prefix=${target_alias}-
1384 *irix6*) cat >> confdefs.h <<\EOF
1385 #include <standards.h>
1393 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1394 echo "configure:1395: checking config.cache system type" >&5
1395 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1396 test x"$ac_cv_host_system_type" != x"$host"; } ||
1397 { test x"${ac_cv_build_system_type+set}" = x"set" &&
1398 test x"$ac_cv_build_system_type" != x"$build"; } ||
1399 { test x"${ac_cv_target_system_type+set}" = x"set" &&
1400 test x"$ac_cv_target_system_type" != x"$target"; }; then
1401 echo "$ac_t""different" 1>&6
1402 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
1404 echo "$ac_t""same" 1>&6
1406 ac_cv_host_system_type="$host"
1407 ac_cv_build_system_type="$build"
1408 ac_cv_target_system_type="$target"
1414 # Config CPPFLAG settings for strange OS's that must be set
1415 # before other tests.
1418 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1421 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1422 echo "configure:1423: checking whether ${CC-cc} accepts -Ae" >&5
1423 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1424 echo $ac_n "(cached) $ac_c" 1>&6
1426 echo 'void f(){}' > conftest.c
1427 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1428 ac_cv_prog_cc_Ae=yes
1436 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1437 # mmap on HPUX is completely broken...
1438 cat >> confdefs.h <<\EOF
1439 #define MMAP_BLACKLIST 1
1442 if test $ac_cv_prog_cc_Ae = yes; then
1443 CPPFLAGS="$CPPFLAGS -Ae"
1446 # Defines needed for HPUX support.
1447 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1448 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1452 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1453 cat >> confdefs.h <<\EOF
1454 #define USE_BOTH_CRYPT_CALLS 1
1457 cat >> confdefs.h <<\EOF
1458 #define _HPUX_SOURCE 1
1461 cat >> confdefs.h <<\EOF
1462 #define _POSIX_SOURCE 1
1465 cat >> confdefs.h <<\EOF
1466 #define _ALIGNMENT_REQUIRED 1
1469 cat >> confdefs.h <<\EOF
1470 #define _MAX_ALIGNMENT 4
1475 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1476 cat >> confdefs.h <<\EOF
1477 #define USE_BOTH_CRYPT_CALLS 1
1480 cat >> confdefs.h <<\EOF
1481 #define _HPUX_SOURCE 1
1484 cat >> confdefs.h <<\EOF
1485 #define _POSIX_SOURCE 1
1488 cat >> confdefs.h <<\EOF
1489 #define _LARGEFILE64_SOURCE 1
1492 cat >> confdefs.h <<\EOF
1493 #define _ALIGNMENT_REQUIRED 1
1496 cat >> confdefs.h <<\EOF
1497 #define _MAX_ALIGNMENT 4
1506 # CRAY Unicos has broken const handling
1508 echo "$ac_t""disabling const" 1>&6
1509 CPPFLAGS="$CPPFLAGS -Dconst="
1513 # AIX4.x doesn't even admit to having large
1514 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1517 echo "$ac_t""enabling large file support" 1>&6
1518 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1519 cat >> confdefs.h <<\EOF
1520 #define _LARGE_FILES 1
1525 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1526 # to the existance of large files..
1527 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1528 # recommendations on large file support, however it makes the
1529 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1530 # recommendation makes the compile fail on gcc2.7. JRA.
1534 5.0*|5.1*|5.2*|5.3*|5.5*)
1535 echo "$ac_t""no large file support" 1>&6
1538 echo "$ac_t""enabling large file support" 1>&6
1539 if test "$ac_cv_prog_gcc" = yes; then
1540 ${CC-cc} -v >conftest.c 2>&1
1541 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
1543 case "$ac_cv_gcc_compiler_version_number" in
1544 *"gcc version 2.6"*|*"gcc version 2.7"*)
1545 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1546 cat >> confdefs.h <<\EOF
1547 #define _LARGEFILE64_SOURCE 1
1552 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1553 cat >> confdefs.h <<\EOF
1554 #define _LARGEFILE64_SOURCE 1
1557 cat >> confdefs.h <<\EOF
1558 #define _FILE_OFFSET_BITS 64
1564 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1565 cat >> confdefs.h <<\EOF
1566 #define _LARGEFILE64_SOURCE 1
1569 cat >> confdefs.h <<\EOF
1570 #define _FILE_OFFSET_BITS 64
1578 # Tests needed for SINIX large file support.
1581 if test $host = mips-sni-sysv4 ; then
1582 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1583 echo "configure:1584: checking for LFS support" >&5
1584 old_CPPFLAGS="$CPPFLAGS"
1585 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1586 if test "$cross_compiling" = yes; then
1587 SINIX_LFS_SUPPORT=cross
1589 cat > conftest.$ac_ext <<EOF
1590 #line 1591 "configure"
1591 #include "confdefs.h"
1595 #if _LFS64_LARGEFILE == 1
1602 if { (eval echo configure:1603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1604 SINIX_LFS_SUPPORT=yes
1606 echo "configure: failed program was:" >&5
1607 cat conftest.$ac_ext >&5
1609 SINIX_LFS_SUPPORT=no
1614 CPPFLAGS="$old_CPPFLAGS"
1615 if test x$SINIX_LFS_SUPPORT = xyes ; then
1616 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1617 cat >> confdefs.h <<\EOF
1618 #define _LARGEFILE64_SOURCE 1
1621 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
1622 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
1623 LIBS="`getconf LFS64_LIBS` $LIBS"
1625 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1629 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1632 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1633 echo "configure:1634: checking for LFS support" >&5
1634 old_CPPFLAGS="$CPPFLAGS"
1635 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1636 if test "$cross_compiling" = yes; then
1637 LINUX_LFS_SUPPORT=cross
1639 cat > conftest.$ac_ext <<EOF
1640 #line 1641 "configure"
1641 #include "confdefs.h"
1644 #include <sys/utsname.h>
1646 #if _LFS64_LARGEFILE == 1
1651 /* Ensure this is glibc 2.2 or higher */
1652 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1653 int libc_major = __GLIBC__;
1654 int libc_minor = __GLIBC_MINOR__;
1662 /* Ensure this is kernel 2.4 or higher */
1665 release = uts.release;
1666 major = atoi(strsep(&release, "."));
1667 minor = atoi(strsep(&release, "."));
1669 if (major > 2 || (major == 2 && minor > 3))
1678 if { (eval echo configure:1679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1680 LINUX_LFS_SUPPORT=yes
1682 echo "configure: failed program was:" >&5
1683 cat conftest.$ac_ext >&5
1685 LINUX_LFS_SUPPORT=no
1690 CPPFLAGS="$old_CPPFLAGS"
1691 if test x$LINUX_LFS_SUPPORT = xyes ; then
1692 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1693 cat >> confdefs.h <<\EOF
1694 #define _LARGEFILE64_SOURCE 1
1697 cat >> confdefs.h <<\EOF
1698 #define _FILE_OFFSET_BITS 64
1701 cat >> confdefs.h <<\EOF
1702 #define _GNU_SOURCE 1
1706 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1710 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1711 echo "configure:1712: checking for LFS support" >&5
1712 old_CPPFLAGS="$CPPFLAGS"
1713 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1714 if test "$cross_compiling" = yes; then
1715 GLIBC_LFS_SUPPORT=cross
1717 cat > conftest.$ac_ext <<EOF
1718 #line 1719 "configure"
1719 #include "confdefs.h"
1723 #if _LFS64_LARGEFILE == 1
1730 if { (eval echo configure:1731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1732 GLIBC_LFS_SUPPORT=yes
1734 echo "configure: failed program was:" >&5
1735 cat conftest.$ac_ext >&5
1737 GLIBC_LFS_SUPPORT=no
1742 CPPFLAGS="$old_CPPFLAGS"
1743 if test x$GLIBC_LFS_SUPPORT = xyes ; then
1744 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1745 cat >> confdefs.h <<\EOF
1746 #define _LARGEFILE64_SOURCE 1
1749 cat >> confdefs.h <<\EOF
1750 #define _GNU_SOURCE 1
1754 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1759 echo $ac_n "checking for inline""... $ac_c" 1>&6
1760 echo "configure:1761: checking for inline" >&5
1761 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1762 echo $ac_n "(cached) $ac_c" 1>&6
1765 for ac_kw in inline __inline__ __inline; do
1766 cat > conftest.$ac_ext <<EOF
1767 #line 1768 "configure"
1768 #include "confdefs.h"
1774 if { (eval echo configure:1775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1776 ac_cv_c_inline=$ac_kw; break
1778 echo "configure: failed program was:" >&5
1779 cat conftest.$ac_ext >&5
1786 echo "$ac_t""$ac_cv_c_inline" 1>&6
1787 case "$ac_cv_c_inline" in
1789 no) cat >> confdefs.h <<\EOF
1793 *) cat >> confdefs.h <<EOF
1794 #define inline $ac_cv_c_inline
1799 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1800 echo "configure:1801: checking how to run the C preprocessor" >&5
1801 # On Suns, sometimes $CPP names a directory.
1802 if test -n "$CPP" && test -d "$CPP"; then
1805 if test -z "$CPP"; then
1806 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1807 echo $ac_n "(cached) $ac_c" 1>&6
1809 # This must be in double quotes, not single quotes, because CPP may get
1810 # substituted into the Makefile and "${CC-cc}" will confuse make.
1812 # On the NeXT, cc -E runs the code through the compiler's parser,
1813 # not just through cpp.
1814 cat > conftest.$ac_ext <<EOF
1815 #line 1816 "configure"
1816 #include "confdefs.h"
1820 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1821 { (eval echo configure:1822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1822 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1823 if test -z "$ac_err"; then
1827 echo "configure: failed program was:" >&5
1828 cat conftest.$ac_ext >&5
1830 CPP="${CC-cc} -E -traditional-cpp"
1831 cat > conftest.$ac_ext <<EOF
1832 #line 1833 "configure"
1833 #include "confdefs.h"
1837 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1838 { (eval echo configure:1839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1839 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1840 if test -z "$ac_err"; then
1844 echo "configure: failed program was:" >&5
1845 cat conftest.$ac_ext >&5
1847 CPP="${CC-cc} -nologo -E"
1848 cat > conftest.$ac_ext <<EOF
1849 #line 1850 "configure"
1850 #include "confdefs.h"
1854 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1855 { (eval echo configure:1856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1856 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1857 if test -z "$ac_err"; then
1861 echo "configure: failed program was:" >&5
1862 cat conftest.$ac_ext >&5
1871 ac_cv_prog_CPP="$CPP"
1873 CPP="$ac_cv_prog_CPP"
1875 ac_cv_prog_CPP="$CPP"
1877 echo "$ac_t""$CPP" 1>&6
1879 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1880 echo "configure:1881: checking for ANSI C header files" >&5
1881 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1882 echo $ac_n "(cached) $ac_c" 1>&6
1884 cat > conftest.$ac_ext <<EOF
1885 #line 1886 "configure"
1886 #include "confdefs.h"
1892 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1893 { (eval echo configure:1894: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1894 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1895 if test -z "$ac_err"; then
1897 ac_cv_header_stdc=yes
1900 echo "configure: failed program was:" >&5
1901 cat conftest.$ac_ext >&5
1903 ac_cv_header_stdc=no
1907 if test $ac_cv_header_stdc = yes; then
1908 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1909 cat > conftest.$ac_ext <<EOF
1910 #line 1911 "configure"
1911 #include "confdefs.h"
1914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1915 egrep "memchr" >/dev/null 2>&1; then
1919 ac_cv_header_stdc=no
1925 if test $ac_cv_header_stdc = yes; then
1926 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1927 cat > conftest.$ac_ext <<EOF
1928 #line 1929 "configure"
1929 #include "confdefs.h"
1932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1933 egrep "free" >/dev/null 2>&1; then
1937 ac_cv_header_stdc=no
1943 if test $ac_cv_header_stdc = yes; then
1944 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1945 if test "$cross_compiling" = yes; then
1948 cat > conftest.$ac_ext <<EOF
1949 #line 1950 "configure"
1950 #include "confdefs.h"
1952 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1953 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1954 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1955 int main () { int i; for (i = 0; i < 256; i++)
1956 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1960 if { (eval echo configure:1961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1964 echo "configure: failed program was:" >&5
1965 cat conftest.$ac_ext >&5
1967 ac_cv_header_stdc=no
1975 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1976 if test $ac_cv_header_stdc = yes; then
1977 cat >> confdefs.h <<\EOF
1978 #define STDC_HEADERS 1
1984 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1986 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1987 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1988 echo "configure:1989: checking for $ac_hdr that defines DIR" >&5
1989 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1990 echo $ac_n "(cached) $ac_c" 1>&6
1992 cat > conftest.$ac_ext <<EOF
1993 #line 1994 "configure"
1994 #include "confdefs.h"
1995 #include <sys/types.h>
2001 if { (eval echo configure:2002: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2003 eval "ac_cv_header_dirent_$ac_safe=yes"
2005 echo "configure: failed program was:" >&5
2006 cat conftest.$ac_ext >&5
2008 eval "ac_cv_header_dirent_$ac_safe=no"
2012 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2013 echo "$ac_t""yes" 1>&6
2014 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2015 cat >> confdefs.h <<EOF
2016 #define $ac_tr_hdr 1
2018 ac_header_dirent=$ac_hdr; break
2020 echo "$ac_t""no" 1>&6
2023 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2024 if test $ac_header_dirent = dirent.h; then
2025 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2026 echo "configure:2027: checking for opendir in -ldir" >&5
2027 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2028 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2029 echo $ac_n "(cached) $ac_c" 1>&6
2031 ac_save_LIBS="$LIBS"
2033 cat > conftest.$ac_ext <<EOF
2034 #line 2035 "configure"
2035 #include "confdefs.h"
2036 /* Override any gcc2 internal prototype to avoid an error. */
2037 /* We use char because int might match the return type of a gcc2
2038 builtin and then its argument prototype would still apply. */
2045 if { (eval echo configure:2046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2047 eval "ac_cv_lib_$ac_lib_var=yes"
2049 echo "configure: failed program was:" >&5
2050 cat conftest.$ac_ext >&5
2052 eval "ac_cv_lib_$ac_lib_var=no"
2055 LIBS="$ac_save_LIBS"
2058 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2059 echo "$ac_t""yes" 1>&6
2062 echo "$ac_t""no" 1>&6
2066 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2067 echo "configure:2068: checking for opendir in -lx" >&5
2068 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2069 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2070 echo $ac_n "(cached) $ac_c" 1>&6
2072 ac_save_LIBS="$LIBS"
2074 cat > conftest.$ac_ext <<EOF
2075 #line 2076 "configure"
2076 #include "confdefs.h"
2077 /* Override any gcc2 internal prototype to avoid an error. */
2078 /* We use char because int might match the return type of a gcc2
2079 builtin and then its argument prototype would still apply. */
2086 if { (eval echo configure:2087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2088 eval "ac_cv_lib_$ac_lib_var=yes"
2090 echo "configure: failed program was:" >&5
2091 cat conftest.$ac_ext >&5
2093 eval "ac_cv_lib_$ac_lib_var=no"
2096 LIBS="$ac_save_LIBS"
2099 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2100 echo "$ac_t""yes" 1>&6
2103 echo "$ac_t""no" 1>&6
2108 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2109 echo "configure:2110: checking whether time.h and sys/time.h may both be included" >&5
2110 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2111 echo $ac_n "(cached) $ac_c" 1>&6
2113 cat > conftest.$ac_ext <<EOF
2114 #line 2115 "configure"
2115 #include "confdefs.h"
2116 #include <sys/types.h>
2117 #include <sys/time.h>
2123 if { (eval echo configure:2124: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2125 ac_cv_header_time=yes
2127 echo "configure: failed program was:" >&5
2128 cat conftest.$ac_ext >&5
2130 ac_cv_header_time=no
2135 echo "$ac_t""$ac_cv_header_time" 1>&6
2136 if test $ac_cv_header_time = yes; then
2137 cat >> confdefs.h <<\EOF
2138 #define TIME_WITH_SYS_TIME 1
2143 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2144 echo "configure:2145: checking for sys/wait.h that is POSIX.1 compatible" >&5
2145 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2146 echo $ac_n "(cached) $ac_c" 1>&6
2148 cat > conftest.$ac_ext <<EOF
2149 #line 2150 "configure"
2150 #include "confdefs.h"
2151 #include <sys/types.h>
2152 #include <sys/wait.h>
2154 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2157 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2162 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2165 if { (eval echo configure:2166: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2167 ac_cv_header_sys_wait_h=yes
2169 echo "configure: failed program was:" >&5
2170 cat conftest.$ac_ext >&5
2172 ac_cv_header_sys_wait_h=no
2177 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2178 if test $ac_cv_header_sys_wait_h = yes; then
2179 cat >> confdefs.h <<\EOF
2180 #define HAVE_SYS_WAIT_H 1
2185 for ac_hdr in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
2187 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2188 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2189 echo "configure:2190: checking for $ac_hdr" >&5
2190 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2191 echo $ac_n "(cached) $ac_c" 1>&6
2193 cat > conftest.$ac_ext <<EOF
2194 #line 2195 "configure"
2195 #include "confdefs.h"
2198 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2199 { (eval echo configure:2200: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2200 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2201 if test -z "$ac_err"; then
2203 eval "ac_cv_header_$ac_safe=yes"
2206 echo "configure: failed program was:" >&5
2207 cat conftest.$ac_ext >&5
2209 eval "ac_cv_header_$ac_safe=no"
2213 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2214 echo "$ac_t""yes" 1>&6
2215 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2216 cat >> confdefs.h <<EOF
2217 #define $ac_tr_hdr 1
2221 echo "$ac_t""no" 1>&6
2225 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
2227 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2228 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2229 echo "configure:2230: checking for $ac_hdr" >&5
2230 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2231 echo $ac_n "(cached) $ac_c" 1>&6
2233 cat > conftest.$ac_ext <<EOF
2234 #line 2235 "configure"
2235 #include "confdefs.h"
2238 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2239 { (eval echo configure:2240: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2240 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2241 if test -z "$ac_err"; then
2243 eval "ac_cv_header_$ac_safe=yes"
2246 echo "configure: failed program was:" >&5
2247 cat conftest.$ac_ext >&5
2249 eval "ac_cv_header_$ac_safe=no"
2253 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2254 echo "$ac_t""yes" 1>&6
2255 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2256 cat >> confdefs.h <<EOF
2257 #define $ac_tr_hdr 1
2261 echo "$ac_t""no" 1>&6
2265 for ac_hdr in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
2267 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2268 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2269 echo "configure:2270: checking for $ac_hdr" >&5
2270 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2271 echo $ac_n "(cached) $ac_c" 1>&6
2273 cat > conftest.$ac_ext <<EOF
2274 #line 2275 "configure"
2275 #include "confdefs.h"
2278 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2279 { (eval echo configure:2280: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2280 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2281 if test -z "$ac_err"; then
2283 eval "ac_cv_header_$ac_safe=yes"
2286 echo "configure: failed program was:" >&5
2287 cat conftest.$ac_ext >&5
2289 eval "ac_cv_header_$ac_safe=no"
2293 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2294 echo "$ac_t""yes" 1>&6
2295 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2296 cat >> confdefs.h <<EOF
2297 #define $ac_tr_hdr 1
2301 echo "$ac_t""no" 1>&6
2305 for ac_hdr in sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h
2307 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2308 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2309 echo "configure:2310: checking for $ac_hdr" >&5
2310 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2311 echo $ac_n "(cached) $ac_c" 1>&6
2313 cat > conftest.$ac_ext <<EOF
2314 #line 2315 "configure"
2315 #include "confdefs.h"
2318 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2319 { (eval echo configure:2320: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2320 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2321 if test -z "$ac_err"; then
2323 eval "ac_cv_header_$ac_safe=yes"
2326 echo "configure: failed program was:" >&5
2327 cat conftest.$ac_ext >&5
2329 eval "ac_cv_header_$ac_safe=no"
2333 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2334 echo "$ac_t""yes" 1>&6
2335 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2336 cat >> confdefs.h <<EOF
2337 #define $ac_tr_hdr 1
2341 echo "$ac_t""no" 1>&6
2345 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
2347 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2348 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2349 echo "configure:2350: checking for $ac_hdr" >&5
2350 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2351 echo $ac_n "(cached) $ac_c" 1>&6
2353 cat > conftest.$ac_ext <<EOF
2354 #line 2355 "configure"
2355 #include "confdefs.h"
2358 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2359 { (eval echo configure:2360: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2360 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2361 if test -z "$ac_err"; then
2363 eval "ac_cv_header_$ac_safe=yes"
2366 echo "configure: failed program was:" >&5
2367 cat conftest.$ac_ext >&5
2369 eval "ac_cv_header_$ac_safe=no"
2373 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2374 echo "$ac_t""yes" 1>&6
2375 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2376 cat >> confdefs.h <<EOF
2377 #define $ac_tr_hdr 1
2381 echo "$ac_t""no" 1>&6
2385 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
2387 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2388 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2389 echo "configure:2390: checking for $ac_hdr" >&5
2390 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2391 echo $ac_n "(cached) $ac_c" 1>&6
2393 cat > conftest.$ac_ext <<EOF
2394 #line 2395 "configure"
2395 #include "confdefs.h"
2398 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2399 { (eval echo configure:2400: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2400 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2401 if test -z "$ac_err"; then
2403 eval "ac_cv_header_$ac_safe=yes"
2406 echo "configure: failed program was:" >&5
2407 cat conftest.$ac_ext >&5
2409 eval "ac_cv_header_$ac_safe=no"
2413 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2414 echo "$ac_t""yes" 1>&6
2415 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2416 cat >> confdefs.h <<EOF
2417 #define $ac_tr_hdr 1
2421 echo "$ac_t""no" 1>&6
2425 for ac_hdr in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
2427 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2428 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2429 echo "configure:2430: checking for $ac_hdr" >&5
2430 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2431 echo $ac_n "(cached) $ac_c" 1>&6
2433 cat > conftest.$ac_ext <<EOF
2434 #line 2435 "configure"
2435 #include "confdefs.h"
2438 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2439 { (eval echo configure:2440: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2440 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2441 if test -z "$ac_err"; then
2443 eval "ac_cv_header_$ac_safe=yes"
2446 echo "configure: failed program was:" >&5
2447 cat conftest.$ac_ext >&5
2449 eval "ac_cv_header_$ac_safe=no"
2453 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2454 echo "$ac_t""yes" 1>&6
2455 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2456 cat >> confdefs.h <<EOF
2457 #define $ac_tr_hdr 1
2461 echo "$ac_t""no" 1>&6
2465 for ac_hdr in security/pam_modules.h security/_pam_macros.h ldap.h lber.h dlfcn.h
2467 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2468 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2469 echo "configure:2470: checking for $ac_hdr" >&5
2470 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2471 echo $ac_n "(cached) $ac_c" 1>&6
2473 cat > conftest.$ac_ext <<EOF
2474 #line 2475 "configure"
2475 #include "confdefs.h"
2478 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2479 { (eval echo configure:2480: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2480 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2481 if test -z "$ac_err"; then
2483 eval "ac_cv_header_$ac_safe=yes"
2486 echo "configure: failed program was:" >&5
2487 cat conftest.$ac_ext >&5
2489 eval "ac_cv_header_$ac_safe=no"
2493 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2494 echo "$ac_t""yes" 1>&6
2495 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2496 cat >> confdefs.h <<EOF
2497 #define $ac_tr_hdr 1
2501 echo "$ac_t""no" 1>&6
2505 for ac_hdr in sys/syslog.h syslog.h
2507 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2508 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2509 echo "configure:2510: checking for $ac_hdr" >&5
2510 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2511 echo $ac_n "(cached) $ac_c" 1>&6
2513 cat > conftest.$ac_ext <<EOF
2514 #line 2515 "configure"
2515 #include "confdefs.h"
2518 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2519 { (eval echo configure:2520: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2520 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2521 if test -z "$ac_err"; then
2523 eval "ac_cv_header_$ac_safe=yes"
2526 echo "configure: failed program was:" >&5
2527 cat conftest.$ac_ext >&5
2529 eval "ac_cv_header_$ac_safe=no"
2533 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2534 echo "$ac_t""yes" 1>&6
2535 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2536 cat >> confdefs.h <<EOF
2537 #define $ac_tr_hdr 1
2541 echo "$ac_t""no" 1>&6
2547 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2548 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2552 cat > conftest.$ac_ext <<EOF
2553 #line 2554 "configure"
2554 #include "confdefs.h"
2560 if { (eval echo configure:2561: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2562 ac_cv_header_shadow_h=yes
2564 echo "configure: failed program was:" >&5
2565 cat conftest.$ac_ext >&5
2567 ac_cv_header_shadow_h=no
2570 if test x"$ac_cv_header_shadow_h" = x"yes"; then
2571 cat >> confdefs.h <<\EOF
2572 #define HAVE_SHADOW_H 1
2578 for ac_hdr in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
2580 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2581 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2582 echo "configure:2583: checking for $ac_hdr" >&5
2583 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2584 echo $ac_n "(cached) $ac_c" 1>&6
2586 cat > conftest.$ac_ext <<EOF
2587 #line 2588 "configure"
2588 #include "confdefs.h"
2591 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2592 { (eval echo configure:2593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2593 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2594 if test -z "$ac_err"; then
2596 eval "ac_cv_header_$ac_safe=yes"
2599 echo "configure: failed program was:" >&5
2600 cat conftest.$ac_ext >&5
2602 eval "ac_cv_header_$ac_safe=no"
2606 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2607 echo "$ac_t""yes" 1>&6
2608 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2609 cat >> confdefs.h <<EOF
2610 #define $ac_tr_hdr 1
2614 echo "$ac_t""no" 1>&6
2618 for ac_hdr in nss.h nss_common.h ns_api.h sys/security.h security/pam_appl.h security/pam_modules.h
2620 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2621 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2622 echo "configure:2623: checking for $ac_hdr" >&5
2623 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2624 echo $ac_n "(cached) $ac_c" 1>&6
2626 cat > conftest.$ac_ext <<EOF
2627 #line 2628 "configure"
2628 #include "confdefs.h"
2631 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2632 { (eval echo configure:2633: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2633 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2634 if test -z "$ac_err"; then
2636 eval "ac_cv_header_$ac_safe=yes"
2639 echo "configure: failed program was:" >&5
2640 cat conftest.$ac_ext >&5
2642 eval "ac_cv_header_$ac_safe=no"
2646 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2647 echo "$ac_t""yes" 1>&6
2648 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2649 cat >> confdefs.h <<EOF
2650 #define $ac_tr_hdr 1
2654 echo "$ac_t""no" 1>&6
2658 for ac_hdr in stropts.h poll.h
2660 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2661 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2662 echo "configure:2663: checking for $ac_hdr" >&5
2663 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2664 echo $ac_n "(cached) $ac_c" 1>&6
2666 cat > conftest.$ac_ext <<EOF
2667 #line 2668 "configure"
2668 #include "confdefs.h"
2671 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2672 { (eval echo configure:2673: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2673 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2674 if test -z "$ac_err"; then
2676 eval "ac_cv_header_$ac_safe=yes"
2679 echo "configure: failed program was:" >&5
2680 cat conftest.$ac_ext >&5
2682 eval "ac_cv_header_$ac_safe=no"
2686 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2687 echo "$ac_t""yes" 1>&6
2688 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2689 cat >> confdefs.h <<EOF
2690 #define $ac_tr_hdr 1
2694 echo "$ac_t""no" 1>&6
2698 for ac_hdr in sys/capability.h syscall.h sys/syscall.h
2700 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2701 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2702 echo "configure:2703: checking for $ac_hdr" >&5
2703 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2704 echo $ac_n "(cached) $ac_c" 1>&6
2706 cat > conftest.$ac_ext <<EOF
2707 #line 2708 "configure"
2708 #include "confdefs.h"
2711 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2712 { (eval echo configure:2713: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2713 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2714 if test -z "$ac_err"; then
2716 eval "ac_cv_header_$ac_safe=yes"
2719 echo "configure: failed program was:" >&5
2720 cat conftest.$ac_ext >&5
2722 eval "ac_cv_header_$ac_safe=no"
2726 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2727 echo "$ac_t""yes" 1>&6
2728 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2729 cat >> confdefs.h <<EOF
2730 #define $ac_tr_hdr 1
2734 echo "$ac_t""no" 1>&6
2738 for ac_hdr in sys/acl.h sys/cdefs.h glob.h
2740 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2741 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2742 echo "configure:2743: checking for $ac_hdr" >&5
2743 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2744 echo $ac_n "(cached) $ac_c" 1>&6
2746 cat > conftest.$ac_ext <<EOF
2747 #line 2748 "configure"
2748 #include "confdefs.h"
2751 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2752 { (eval echo configure:2753: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2753 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2754 if test -z "$ac_err"; then
2756 eval "ac_cv_header_$ac_safe=yes"
2759 echo "configure: failed program was:" >&5
2760 cat conftest.$ac_ext >&5
2762 eval "ac_cv_header_$ac_safe=no"
2766 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2767 echo "$ac_t""yes" 1>&6
2768 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2769 cat >> confdefs.h <<EOF
2770 #define $ac_tr_hdr 1
2774 echo "$ac_t""no" 1>&6
2779 # For experimental utmp support (lastlog on some BSD-like systems)
2780 for ac_hdr in utmp.h utmpx.h lastlog.h
2782 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2783 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2784 echo "configure:2785: checking for $ac_hdr" >&5
2785 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2786 echo $ac_n "(cached) $ac_c" 1>&6
2788 cat > conftest.$ac_ext <<EOF
2789 #line 2790 "configure"
2790 #include "confdefs.h"
2793 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2794 { (eval echo configure:2795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2795 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2796 if test -z "$ac_err"; then
2798 eval "ac_cv_header_$ac_safe=yes"
2801 echo "configure: failed program was:" >&5
2802 cat conftest.$ac_ext >&5
2804 eval "ac_cv_header_$ac_safe=no"
2808 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2809 echo "$ac_t""yes" 1>&6
2810 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2811 cat >> confdefs.h <<EOF
2812 #define $ac_tr_hdr 1
2816 echo "$ac_t""no" 1>&6
2821 # For quotas on Veritas VxFS filesystems
2822 for ac_hdr in sys/fs/vx_quota.h
2824 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2825 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2826 echo "configure:2827: checking for $ac_hdr" >&5
2827 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2828 echo $ac_n "(cached) $ac_c" 1>&6
2830 cat > conftest.$ac_ext <<EOF
2831 #line 2832 "configure"
2832 #include "confdefs.h"
2835 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2836 { (eval echo configure:2837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2837 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2838 if test -z "$ac_err"; then
2840 eval "ac_cv_header_$ac_safe=yes"
2843 echo "configure: failed program was:" >&5
2844 cat conftest.$ac_ext >&5
2846 eval "ac_cv_header_$ac_safe=no"
2850 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2851 echo "$ac_t""yes" 1>&6
2852 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2853 cat >> confdefs.h <<EOF
2854 #define $ac_tr_hdr 1
2858 echo "$ac_t""no" 1>&6
2863 # For quotas on Linux XFS filesystems
2864 for ac_hdr in linux/xqm.h
2866 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2867 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2868 echo "configure:2869: checking for $ac_hdr" >&5
2869 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2870 echo $ac_n "(cached) $ac_c" 1>&6
2872 cat > conftest.$ac_ext <<EOF
2873 #line 2874 "configure"
2874 #include "confdefs.h"
2877 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2878 { (eval echo configure:2879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2879 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2880 if test -z "$ac_err"; then
2882 eval "ac_cv_header_$ac_safe=yes"
2885 echo "configure: failed program was:" >&5
2886 cat conftest.$ac_ext >&5
2888 eval "ac_cv_header_$ac_safe=no"
2892 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2893 echo "$ac_t""yes" 1>&6
2894 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2895 cat >> confdefs.h <<EOF
2896 #define $ac_tr_hdr 1
2900 echo "$ac_t""no" 1>&6
2905 echo $ac_n "checking size of int""... $ac_c" 1>&6
2906 echo "configure:2907: checking size of int" >&5
2907 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2908 echo $ac_n "(cached) $ac_c" 1>&6
2910 if test "$cross_compiling" = yes; then
2911 ac_cv_sizeof_int=cross
2913 cat > conftest.$ac_ext <<EOF
2914 #line 2915 "configure"
2915 #include "confdefs.h"
2917 #include <sys/types.h>
2920 FILE *f=fopen("conftestval", "w");
2922 fprintf(f, "%d\n", sizeof(int));
2926 if { (eval echo configure:2927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2928 ac_cv_sizeof_int=`cat conftestval`
2930 echo "configure: failed program was:" >&5
2931 cat conftest.$ac_ext >&5
2939 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2940 cat >> confdefs.h <<EOF
2941 #define SIZEOF_INT $ac_cv_sizeof_int
2945 echo $ac_n "checking size of long""... $ac_c" 1>&6
2946 echo "configure:2947: checking size of long" >&5
2947 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2948 echo $ac_n "(cached) $ac_c" 1>&6
2950 if test "$cross_compiling" = yes; then
2951 ac_cv_sizeof_long=cross
2953 cat > conftest.$ac_ext <<EOF
2954 #line 2955 "configure"
2955 #include "confdefs.h"
2957 #include <sys/types.h>
2960 FILE *f=fopen("conftestval", "w");
2962 fprintf(f, "%d\n", sizeof(long));
2966 if { (eval echo configure:2967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2968 ac_cv_sizeof_long=`cat conftestval`
2970 echo "configure: failed program was:" >&5
2971 cat conftest.$ac_ext >&5
2979 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2980 cat >> confdefs.h <<EOF
2981 #define SIZEOF_LONG $ac_cv_sizeof_long
2985 echo $ac_n "checking size of short""... $ac_c" 1>&6
2986 echo "configure:2987: checking size of short" >&5
2987 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2988 echo $ac_n "(cached) $ac_c" 1>&6
2990 if test "$cross_compiling" = yes; then
2991 ac_cv_sizeof_short=cross
2993 cat > conftest.$ac_ext <<EOF
2994 #line 2995 "configure"
2995 #include "confdefs.h"
2997 #include <sys/types.h>
3000 FILE *f=fopen("conftestval", "w");
3002 fprintf(f, "%d\n", sizeof(short));
3006 if { (eval echo configure:3007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3008 ac_cv_sizeof_short=`cat conftestval`
3010 echo "configure: failed program was:" >&5
3011 cat conftest.$ac_ext >&5
3013 ac_cv_sizeof_short=0
3019 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
3020 cat >> confdefs.h <<EOF
3021 #define SIZEOF_SHORT $ac_cv_sizeof_short
3026 echo $ac_n "checking for working const""... $ac_c" 1>&6
3027 echo "configure:3028: checking for working const" >&5
3028 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3029 echo $ac_n "(cached) $ac_c" 1>&6
3031 cat > conftest.$ac_ext <<EOF
3032 #line 3033 "configure"
3033 #include "confdefs.h"
3037 /* Ultrix mips cc rejects this. */
3038 typedef int charset[2]; const charset x;
3039 /* SunOS 4.1.1 cc rejects this. */
3040 char const *const *ccp;
3042 /* NEC SVR4.0.2 mips cc rejects this. */
3043 struct point {int x, y;};
3044 static struct point const zero = {0,0};
3045 /* AIX XL C 1.02.0.0 rejects this.
3046 It does not let you subtract one const X* pointer from another in an arm
3047 of an if-expression whose if-part is not a constant expression */
3048 const char *g = "string";
3049 ccp = &g + (g ? g-g : 0);
3050 /* HPUX 7.0 cc rejects these. */
3053 ccp = (char const *const *) p;
3054 { /* SCO 3.2v4 cc rejects this. */
3056 char const *s = 0 ? (char *) 0 : (char const *) 0;
3060 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3062 const int *foo = &x[0];
3065 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3066 typedef const int *iptr;
3070 { /* AIX XL C 1.02.0.0 rejects this saying
3071 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3072 struct s { int j; const int *ap[3]; };
3073 struct s *b; b->j = 5;
3075 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3081 if { (eval echo configure:3082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3085 echo "configure: failed program was:" >&5
3086 cat conftest.$ac_ext >&5
3093 echo "$ac_t""$ac_cv_c_const" 1>&6
3094 if test $ac_cv_c_const = no; then
3095 cat >> confdefs.h <<\EOF
3101 echo $ac_n "checking for inline""... $ac_c" 1>&6
3102 echo "configure:3103: checking for inline" >&5
3103 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3104 echo $ac_n "(cached) $ac_c" 1>&6
3107 for ac_kw in inline __inline__ __inline; do
3108 cat > conftest.$ac_ext <<EOF
3109 #line 3110 "configure"
3110 #include "confdefs.h"
3116 if { (eval echo configure:3117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3118 ac_cv_c_inline=$ac_kw; break
3120 echo "configure: failed program was:" >&5
3121 cat conftest.$ac_ext >&5
3128 echo "$ac_t""$ac_cv_c_inline" 1>&6
3129 case "$ac_cv_c_inline" in
3131 no) cat >> confdefs.h <<\EOF
3135 *) cat >> confdefs.h <<EOF
3136 #define inline $ac_cv_c_inline
3141 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3142 echo "configure:3143: checking whether byte ordering is bigendian" >&5
3143 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3144 echo $ac_n "(cached) $ac_c" 1>&6
3146 ac_cv_c_bigendian=unknown
3147 # See if sys/param.h defines the BYTE_ORDER macro.
3148 cat > conftest.$ac_ext <<EOF
3149 #line 3150 "configure"
3150 #include "confdefs.h"
3151 #include <sys/types.h>
3152 #include <sys/param.h>
3155 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3160 if { (eval echo configure:3161: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3162 # It does; now see whether it defined to BIG_ENDIAN or not.
3163 cat > conftest.$ac_ext <<EOF
3164 #line 3165 "configure"
3165 #include "confdefs.h"
3166 #include <sys/types.h>
3167 #include <sys/param.h>
3170 #if BYTE_ORDER != BIG_ENDIAN
3175 if { (eval echo configure:3176: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3177 ac_cv_c_bigendian=yes
3179 echo "configure: failed program was:" >&5
3180 cat conftest.$ac_ext >&5
3182 ac_cv_c_bigendian=no
3186 echo "configure: failed program was:" >&5
3187 cat conftest.$ac_ext >&5
3190 if test $ac_cv_c_bigendian = unknown; then
3191 if test "$cross_compiling" = yes; then
3192 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3194 cat > conftest.$ac_ext <<EOF
3195 #line 3196 "configure"
3196 #include "confdefs.h"
3198 /* Are we little or big endian? From Harbison&Steele. */
3202 char c[sizeof (long)];
3205 exit (u.c[sizeof (long) - 1] == 1);
3208 if { (eval echo configure:3209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3210 ac_cv_c_bigendian=no
3212 echo "configure: failed program was:" >&5
3213 cat conftest.$ac_ext >&5
3215 ac_cv_c_bigendian=yes
3223 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3224 if test $ac_cv_c_bigendian = yes; then
3225 cat >> confdefs.h <<\EOF
3226 #define WORDS_BIGENDIAN 1
3231 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3232 echo "configure:3233: checking whether char is unsigned" >&5
3233 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3234 echo $ac_n "(cached) $ac_c" 1>&6
3236 if test "$GCC" = yes; then
3237 # GCC predefines this symbol on systems where it applies.
3238 cat > conftest.$ac_ext <<EOF
3239 #line 3240 "configure"
3240 #include "confdefs.h"
3241 #ifdef __CHAR_UNSIGNED__
3246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3247 egrep "yes" >/dev/null 2>&1; then
3249 ac_cv_c_char_unsigned=yes
3252 ac_cv_c_char_unsigned=no
3257 if test "$cross_compiling" = yes; then
3258 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3260 cat > conftest.$ac_ext <<EOF
3261 #line 3262 "configure"
3262 #include "confdefs.h"
3263 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3264 #if !defined(__STDC__) || __STDC__ != 1
3268 volatile char c = 255; exit(c < 0);
3271 if { (eval echo configure:3272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3273 ac_cv_c_char_unsigned=yes
3275 echo "configure: failed program was:" >&5
3276 cat conftest.$ac_ext >&5
3278 ac_cv_c_char_unsigned=no
3286 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3287 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3288 cat >> confdefs.h <<\EOF
3289 #define __CHAR_UNSIGNED__ 1
3295 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3296 echo "configure:3297: checking return type of signal handlers" >&5
3297 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3298 echo $ac_n "(cached) $ac_c" 1>&6
3300 cat > conftest.$ac_ext <<EOF
3301 #line 3302 "configure"
3302 #include "confdefs.h"
3303 #include <sys/types.h>
3309 extern "C" void (*signal (int, void (*)(int)))(int);
3311 void (*signal ()) ();
3318 if { (eval echo configure:3319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3320 ac_cv_type_signal=void
3322 echo "configure: failed program was:" >&5
3323 cat conftest.$ac_ext >&5
3325 ac_cv_type_signal=int
3330 echo "$ac_t""$ac_cv_type_signal" 1>&6
3331 cat >> confdefs.h <<EOF
3332 #define RETSIGTYPE $ac_cv_type_signal
3336 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3337 echo "configure:3338: checking for uid_t in sys/types.h" >&5
3338 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3339 echo $ac_n "(cached) $ac_c" 1>&6
3341 cat > conftest.$ac_ext <<EOF
3342 #line 3343 "configure"
3343 #include "confdefs.h"
3344 #include <sys/types.h>
3346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3347 egrep "uid_t" >/dev/null 2>&1; then
3349 ac_cv_type_uid_t=yes
3358 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3359 if test $ac_cv_type_uid_t = no; then
3360 cat >> confdefs.h <<\EOF
3364 cat >> confdefs.h <<\EOF
3370 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3371 echo "configure:3372: checking for mode_t" >&5
3372 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3373 echo $ac_n "(cached) $ac_c" 1>&6
3375 cat > conftest.$ac_ext <<EOF
3376 #line 3377 "configure"
3377 #include "confdefs.h"
3378 #include <sys/types.h>
3384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3385 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3387 ac_cv_type_mode_t=yes
3390 ac_cv_type_mode_t=no
3395 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3396 if test $ac_cv_type_mode_t = no; then
3397 cat >> confdefs.h <<\EOF
3403 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3404 echo "configure:3405: checking for off_t" >&5
3405 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3406 echo $ac_n "(cached) $ac_c" 1>&6
3408 cat > conftest.$ac_ext <<EOF
3409 #line 3410 "configure"
3410 #include "confdefs.h"
3411 #include <sys/types.h>
3417 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3418 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3420 ac_cv_type_off_t=yes
3428 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3429 if test $ac_cv_type_off_t = no; then
3430 cat >> confdefs.h <<\EOF
3436 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3437 echo "configure:3438: checking for size_t" >&5
3438 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3439 echo $ac_n "(cached) $ac_c" 1>&6
3441 cat > conftest.$ac_ext <<EOF
3442 #line 3443 "configure"
3443 #include "confdefs.h"
3444 #include <sys/types.h>
3450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3451 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3453 ac_cv_type_size_t=yes
3456 ac_cv_type_size_t=no
3461 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3462 if test $ac_cv_type_size_t = no; then
3463 cat >> confdefs.h <<\EOF
3464 #define size_t unsigned
3469 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3470 echo "configure:3471: checking for pid_t" >&5
3471 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3472 echo $ac_n "(cached) $ac_c" 1>&6
3474 cat > conftest.$ac_ext <<EOF
3475 #line 3476 "configure"
3476 #include "confdefs.h"
3477 #include <sys/types.h>
3483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3484 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3486 ac_cv_type_pid_t=yes
3494 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3495 if test $ac_cv_type_pid_t = no; then
3496 cat >> confdefs.h <<\EOF
3502 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3503 echo "configure:3504: checking for st_rdev in struct stat" >&5
3504 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3505 echo $ac_n "(cached) $ac_c" 1>&6
3507 cat > conftest.$ac_ext <<EOF
3508 #line 3509 "configure"
3509 #include "confdefs.h"
3510 #include <sys/types.h>
3511 #include <sys/stat.h>
3513 struct stat s; s.st_rdev;
3516 if { (eval echo configure:3517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3518 ac_cv_struct_st_rdev=yes
3520 echo "configure: failed program was:" >&5
3521 cat conftest.$ac_ext >&5
3523 ac_cv_struct_st_rdev=no
3528 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3529 if test $ac_cv_struct_st_rdev = yes; then
3530 cat >> confdefs.h <<\EOF
3531 #define HAVE_ST_RDEV 1
3536 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3537 echo "configure:3538: checking for d_off in dirent" >&5
3538 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3539 echo $ac_n "(cached) $ac_c" 1>&6
3541 cat > conftest.$ac_ext <<EOF
3542 #line 3543 "configure"
3543 #include "confdefs.h"
3546 #include <sys/types.h>
3549 struct dirent d; d.d_off;
3552 if { (eval echo configure:3553: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3554 ac_cv_dirent_d_off=yes
3556 echo "configure: failed program was:" >&5
3557 cat conftest.$ac_ext >&5
3559 ac_cv_dirent_d_off=no
3564 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3565 if test $ac_cv_dirent_d_off = yes; then
3566 cat >> confdefs.h <<\EOF
3567 #define HAVE_DIRENT_D_OFF 1
3572 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3573 echo "configure:3574: checking for ino_t" >&5
3574 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3575 echo $ac_n "(cached) $ac_c" 1>&6
3577 cat > conftest.$ac_ext <<EOF
3578 #line 3579 "configure"
3579 #include "confdefs.h"
3580 #include <sys/types.h>
3586 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3587 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3589 ac_cv_type_ino_t=yes
3597 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3598 if test $ac_cv_type_ino_t = no; then
3599 cat >> confdefs.h <<\EOF
3600 #define ino_t unsigned
3605 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3606 echo "configure:3607: checking for loff_t" >&5
3607 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3608 echo $ac_n "(cached) $ac_c" 1>&6
3610 cat > conftest.$ac_ext <<EOF
3611 #line 3612 "configure"
3612 #include "confdefs.h"
3613 #include <sys/types.h>
3619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3620 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3622 ac_cv_type_loff_t=yes
3625 ac_cv_type_loff_t=no
3630 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3631 if test $ac_cv_type_loff_t = no; then
3632 cat >> confdefs.h <<\EOF
3633 #define loff_t off_t
3638 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3639 echo "configure:3640: checking for offset_t" >&5
3640 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3641 echo $ac_n "(cached) $ac_c" 1>&6
3643 cat > conftest.$ac_ext <<EOF
3644 #line 3645 "configure"
3645 #include "confdefs.h"
3646 #include <sys/types.h>
3652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3653 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3655 ac_cv_type_offset_t=yes
3658 ac_cv_type_offset_t=no
3663 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3664 if test $ac_cv_type_offset_t = no; then
3665 cat >> confdefs.h <<\EOF
3666 #define offset_t loff_t
3671 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3672 echo "configure:3673: checking for ssize_t" >&5
3673 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3674 echo $ac_n "(cached) $ac_c" 1>&6
3676 cat > conftest.$ac_ext <<EOF
3677 #line 3678 "configure"
3678 #include "confdefs.h"
3679 #include <sys/types.h>
3685 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3686 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3688 ac_cv_type_ssize_t=yes
3691 ac_cv_type_ssize_t=no
3696 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3697 if test $ac_cv_type_ssize_t = no; then
3698 cat >> confdefs.h <<\EOF
3704 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3705 echo "configure:3706: checking for wchar_t" >&5
3706 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3707 echo $ac_n "(cached) $ac_c" 1>&6
3709 cat > conftest.$ac_ext <<EOF
3710 #line 3711 "configure"
3711 #include "confdefs.h"
3712 #include <sys/types.h>
3718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3719 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3721 ac_cv_type_wchar_t=yes
3724 ac_cv_type_wchar_t=no
3729 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3730 if test $ac_cv_type_wchar_t = no; then
3731 cat >> confdefs.h <<\EOF
3732 #define wchar_t unsigned short
3738 ############################################
3739 # for cups support we need libcups, and a handful of header files
3741 # Check whether --enable-cups or --disable-cups was given.
3742 if test "${enable_cups+set}" = set; then
3743 enableval="$enable_cups"
3748 if test x$enable_cups != xno; then
3749 # Extract the first word of "cups-config", so it can be a program name with args.
3750 set dummy cups-config; ac_word=$2
3751 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3752 echo "configure:3753: checking for $ac_word" >&5
3753 if eval "test \"`echo '$''{'ac_cv_path_CUPS_CONFIG'+set}'`\" = set"; then
3754 echo $ac_n "(cached) $ac_c" 1>&6
3756 case "$CUPS_CONFIG" in
3758 ac_cv_path_CUPS_CONFIG="$CUPS_CONFIG" # Let the user override the test with a path.
3761 ac_cv_path_CUPS_CONFIG="$CUPS_CONFIG" # Let the user override the test with a dos path.
3764 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3766 for ac_dir in $ac_dummy; do
3767 test -z "$ac_dir" && ac_dir=.
3768 if test -f $ac_dir/$ac_word; then
3769 ac_cv_path_CUPS_CONFIG="$ac_dir/$ac_word"
3777 CUPS_CONFIG="$ac_cv_path_CUPS_CONFIG"
3778 if test -n "$CUPS_CONFIG"; then
3779 echo "$ac_t""$CUPS_CONFIG" 1>&6
3781 echo "$ac_t""no" 1>&6
3785 if test "x$CUPS_CONFIG" != x; then
3786 cat >> confdefs.h <<\EOF
3790 CFLAGS="$CFLAGS `$CUPS_CONFIG --cflags`"
3791 LDFLAGS="$LDFLAGS `$CUPS_CONFIG --ldflags`"
3792 PRINTLIBS="$PRINTLIBS `$CUPS_CONFIG --libs`"
3796 ############################################
3797 # we need dlopen/dlclose/dlsym/dlerror for PAM, the password database plugins and the new VFS code
3798 for ac_func in dlopen
3800 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3801 echo "configure:3802: checking for $ac_func" >&5
3802 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3803 echo $ac_n "(cached) $ac_c" 1>&6
3805 cat > conftest.$ac_ext <<EOF
3806 #line 3807 "configure"
3807 #include "confdefs.h"
3808 /* System header to define __stub macros and hopefully few prototypes,
3809 which can conflict with char $ac_func(); below. */
3811 /* Override any gcc2 internal prototype to avoid an error. */
3812 /* We use char because int might match the return type of a gcc2
3813 builtin and then its argument prototype would still apply. */
3818 /* The GNU C library defines this for functions which it implements
3819 to always fail with ENOSYS. Some functions are actually named
3820 something starting with __ and the normal name is an alias. */
3821 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3829 if { (eval echo configure:3830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3831 eval "ac_cv_func_$ac_func=yes"
3833 echo "configure: failed program was:" >&5
3834 cat conftest.$ac_ext >&5
3836 eval "ac_cv_func_$ac_func=no"
3841 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3842 echo "$ac_t""yes" 1>&6
3843 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3844 cat >> confdefs.h <<EOF
3845 #define $ac_tr_func 1
3849 echo "$ac_t""no" 1>&6
3853 if test x"$ac_cv_func_dlopen" = x"no"; then
3854 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3855 echo "configure:3856: checking for dlopen in -ldl" >&5
3856 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3857 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3858 echo $ac_n "(cached) $ac_c" 1>&6
3860 ac_save_LIBS="$LIBS"
3862 cat > conftest.$ac_ext <<EOF
3863 #line 3864 "configure"
3864 #include "confdefs.h"
3865 /* Override any gcc2 internal prototype to avoid an error. */
3866 /* We use char because int might match the return type of a gcc2
3867 builtin and then its argument prototype would still apply. */
3874 if { (eval echo configure:3875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3876 eval "ac_cv_lib_$ac_lib_var=yes"
3878 echo "configure: failed program was:" >&5
3879 cat conftest.$ac_ext >&5
3881 eval "ac_cv_lib_$ac_lib_var=no"
3884 LIBS="$ac_save_LIBS"
3887 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3888 echo "$ac_t""yes" 1>&6
3890 cat >> confdefs.h <<\EOF
3891 #define HAVE_DLOPEN 1
3895 echo "$ac_t""no" 1>&6
3899 # dlopen/dlclose/dlsym/dlerror will be checked again later and defines will be set then
3901 ############################################
3902 # check if the compiler can do immediate structures
3903 echo $ac_n "checking for immediate structures""... $ac_c" 1>&6
3904 echo "configure:3905: checking for immediate structures" >&5
3905 if eval "test \"`echo '$''{'samba_cv_immediate_structures'+set}'`\" = set"; then
3906 echo $ac_n "(cached) $ac_c" 1>&6
3909 cat > conftest.$ac_ext <<EOF
3910 #line 3911 "configure"
3911 #include "confdefs.h"
3916 typedef struct {unsigned x;} FOOBAR;
3917 #define X_FOOBAR(x) ((FOOBAR) { x })
3918 #define FOO_ONE X_FOOBAR(1)
3928 if { (eval echo configure:3929: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3930 samba_cv_immediate_structures=yes
3932 echo "configure: failed program was:" >&5
3933 cat conftest.$ac_ext >&5
3935 samba_cv_immediate_structures=no
3940 echo "$ac_t""$samba_cv_immediate_structures" 1>&6
3941 if test x"$samba_cv_immediate_structures" = x"yes"; then
3942 cat >> confdefs.h <<\EOF
3943 #define HAVE_IMMEDIATE_STRUCTURES 1
3948 ############################################
3949 # check for unix domain sockets
3950 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
3951 echo "configure:3952: checking for unix domain sockets" >&5
3952 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
3953 echo $ac_n "(cached) $ac_c" 1>&6
3956 cat > conftest.$ac_ext <<EOF
3957 #line 3958 "configure"
3958 #include "confdefs.h"
3960 #include <sys/types.h>
3963 #include <sys/socket.h>
3967 struct sockaddr_un sunaddr;
3968 sunaddr.sun_family = AF_UNIX;
3972 if { (eval echo configure:3973: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3974 samba_cv_unixsocket=yes
3976 echo "configure: failed program was:" >&5
3977 cat conftest.$ac_ext >&5
3979 samba_cv_unixsocket=no
3984 echo "$ac_t""$samba_cv_unixsocket" 1>&6
3985 if test x"$samba_cv_unixsocket" = x"yes"; then
3986 cat >> confdefs.h <<\EOF
3987 #define HAVE_UNIXSOCKET 1
3993 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
3994 echo "configure:3995: checking for socklen_t type" >&5
3995 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
3996 echo $ac_n "(cached) $ac_c" 1>&6
3999 cat > conftest.$ac_ext <<EOF
4000 #line 4001 "configure"
4001 #include "confdefs.h"
4003 #include <sys/types.h>
4008 #include <sys/socket.h>
4013 if { (eval echo configure:4014: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4015 samba_cv_socklen_t=yes
4017 echo "configure: failed program was:" >&5
4018 cat conftest.$ac_ext >&5
4020 samba_cv_socklen_t=no
4025 echo "$ac_t""$samba_cv_socklen_t" 1>&6
4026 if test x"$samba_cv_socklen_t" = x"yes"; then
4027 cat >> confdefs.h <<\EOF
4028 #define HAVE_SOCKLEN_T_TYPE 1
4033 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
4034 echo "configure:4035: checking for sig_atomic_t type" >&5
4035 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
4036 echo $ac_n "(cached) $ac_c" 1>&6
4039 cat > conftest.$ac_ext <<EOF
4040 #line 4041 "configure"
4041 #include "confdefs.h"
4043 #include <sys/types.h>
4053 if { (eval echo configure:4054: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4055 samba_cv_sig_atomic_t=yes
4057 echo "configure: failed program was:" >&5
4058 cat conftest.$ac_ext >&5
4060 samba_cv_sig_atomic_t=no
4065 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
4066 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
4067 cat >> confdefs.h <<\EOF
4068 #define HAVE_SIG_ATOMIC_T_TYPE 1
4073 # stupid headers have the functions but no declaration. grrrr.
4075 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
4076 echo "configure:4077: checking for errno declaration" >&5
4077 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
4078 echo $ac_n "(cached) $ac_c" 1>&6
4081 cat > conftest.$ac_ext <<EOF
4082 #line 4083 "configure"
4083 #include "confdefs.h"
4089 if { (eval echo configure:4090: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4091 ac_cv_have_errno_decl=yes
4093 echo "configure: failed program was:" >&5
4094 cat conftest.$ac_ext >&5
4096 ac_cv_have_errno_decl=no
4101 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
4102 if test x"$ac_cv_have_errno_decl" = x"yes"; then
4103 cat >> confdefs.h <<\EOF
4104 #define HAVE_ERRNO_DECL 1
4110 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
4111 echo "configure:4112: checking for setresuid declaration" >&5
4112 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
4113 echo $ac_n "(cached) $ac_c" 1>&6
4116 cat > conftest.$ac_ext <<EOF
4117 #line 4118 "configure"
4118 #include "confdefs.h"
4121 int i = (int)setresuid
4124 if { (eval echo configure:4125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4126 ac_cv_have_setresuid_decl=yes
4128 echo "configure: failed program was:" >&5
4129 cat conftest.$ac_ext >&5
4131 ac_cv_have_setresuid_decl=no
4136 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
4137 if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
4138 cat >> confdefs.h <<\EOF
4139 #define HAVE_SETRESUID_DECL 1
4145 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
4146 echo "configure:4147: checking for setresgid declaration" >&5
4147 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
4148 echo $ac_n "(cached) $ac_c" 1>&6
4151 cat > conftest.$ac_ext <<EOF
4152 #line 4153 "configure"
4153 #include "confdefs.h"
4156 int i = (int)setresgid
4159 if { (eval echo configure:4160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4161 ac_cv_have_setresgid_decl=yes
4163 echo "configure: failed program was:" >&5
4164 cat conftest.$ac_ext >&5
4166 ac_cv_have_setresgid_decl=no
4171 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
4172 if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
4173 cat >> confdefs.h <<\EOF
4174 #define HAVE_SETRESGID_DECL 1
4180 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
4181 echo "configure:4182: checking for asprintf declaration" >&5
4182 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
4183 echo $ac_n "(cached) $ac_c" 1>&6
4186 cat > conftest.$ac_ext <<EOF
4187 #line 4188 "configure"
4188 #include "confdefs.h"
4191 int i = (int)asprintf
4194 if { (eval echo configure:4195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4196 ac_cv_have_asprintf_decl=yes
4198 echo "configure: failed program was:" >&5
4199 cat conftest.$ac_ext >&5
4201 ac_cv_have_asprintf_decl=no
4206 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
4207 if test x"$ac_cv_have_asprintf_decl" = x"yes"; then
4208 cat >> confdefs.h <<\EOF
4209 #define HAVE_ASPRINTF_DECL 1
4215 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
4216 echo "configure:4217: checking for vasprintf declaration" >&5
4217 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
4218 echo $ac_n "(cached) $ac_c" 1>&6
4221 cat > conftest.$ac_ext <<EOF
4222 #line 4223 "configure"
4223 #include "confdefs.h"
4226 int i = (int)vasprintf
4229 if { (eval echo configure:4230: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4231 ac_cv_have_vasprintf_decl=yes
4233 echo "configure: failed program was:" >&5
4234 cat conftest.$ac_ext >&5
4236 ac_cv_have_vasprintf_decl=no
4241 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
4242 if test x"$ac_cv_have_vasprintf_decl" = x"yes"; then
4243 cat >> confdefs.h <<\EOF
4244 #define HAVE_VASPRINTF_DECL 1
4250 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
4251 echo "configure:4252: checking for vsnprintf declaration" >&5
4252 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
4253 echo $ac_n "(cached) $ac_c" 1>&6
4256 cat > conftest.$ac_ext <<EOF
4257 #line 4258 "configure"
4258 #include "confdefs.h"
4261 int i = (int)vsnprintf
4264 if { (eval echo configure:4265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4266 ac_cv_have_vsnprintf_decl=yes
4268 echo "configure: failed program was:" >&5
4269 cat conftest.$ac_ext >&5
4271 ac_cv_have_vsnprintf_decl=no
4276 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
4277 if test x"$ac_cv_have_vsnprintf_decl" = x"yes"; then
4278 cat >> confdefs.h <<\EOF
4279 #define HAVE_VSNPRINTF_DECL 1
4285 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
4286 echo "configure:4287: checking for snprintf declaration" >&5
4287 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
4288 echo $ac_n "(cached) $ac_c" 1>&6
4291 cat > conftest.$ac_ext <<EOF
4292 #line 4293 "configure"
4293 #include "confdefs.h"
4296 int i = (int)snprintf
4299 if { (eval echo configure:4300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4301 ac_cv_have_snprintf_decl=yes
4303 echo "configure: failed program was:" >&5
4304 cat conftest.$ac_ext >&5
4306 ac_cv_have_snprintf_decl=no
4311 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
4312 if test x"$ac_cv_have_snprintf_decl" = x"yes"; then
4313 cat >> confdefs.h <<\EOF
4314 #define HAVE_SNPRINTF_DECL 1
4320 # and glibc has setresuid under linux but the function does
4321 # nothing until kernel 2.1.44! very dumb.
4322 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
4323 echo "configure:4324: checking for real setresuid" >&5
4324 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
4325 echo $ac_n "(cached) $ac_c" 1>&6
4328 if test "$cross_compiling" = yes; then
4329 samba_cv_have_setresuid=cross
4331 cat > conftest.$ac_ext <<EOF
4332 #line 4333 "configure"
4333 #include "confdefs.h"
4335 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4337 if { (eval echo configure:4338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4339 samba_cv_have_setresuid=yes
4341 echo "configure: failed program was:" >&5
4342 cat conftest.$ac_ext >&5
4344 samba_cv_have_setresuid=no
4351 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4352 if test x"$samba_cv_have_setresuid" = x"yes"; then
4353 cat >> confdefs.h <<\EOF
4354 #define HAVE_SETRESUID 1
4359 # Do the same check for setresguid...
4361 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4362 echo "configure:4363: checking for real setresgid" >&5
4363 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4364 echo $ac_n "(cached) $ac_c" 1>&6
4367 if test "$cross_compiling" = yes; then
4368 samba_cv_have_setresgid=cross
4370 cat > conftest.$ac_ext <<EOF
4371 #line 4372 "configure"
4372 #include "confdefs.h"
4375 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4377 if { (eval echo configure:4378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4379 samba_cv_have_setresgid=yes
4381 echo "configure: failed program was:" >&5
4382 cat conftest.$ac_ext >&5
4384 samba_cv_have_setresgid=no
4391 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4392 if test x"$samba_cv_have_setresgid" = x"yes"; then
4393 cat >> confdefs.h <<\EOF
4394 #define HAVE_SETRESGID 1
4399 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4400 echo "configure:4401: checking for 8-bit clean memcmp" >&5
4401 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4402 echo $ac_n "(cached) $ac_c" 1>&6
4404 if test "$cross_compiling" = yes; then
4405 ac_cv_func_memcmp_clean=no
4407 cat > conftest.$ac_ext <<EOF
4408 #line 4409 "configure"
4409 #include "confdefs.h"
4413 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4414 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4418 if { (eval echo configure:4419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4420 ac_cv_func_memcmp_clean=yes
4422 echo "configure: failed program was:" >&5
4423 cat conftest.$ac_ext >&5
4425 ac_cv_func_memcmp_clean=no
4432 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4433 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
4436 ###############################################
4437 # test for where we get crypt() from
4438 for ac_func in crypt
4440 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4441 echo "configure:4442: checking for $ac_func" >&5
4442 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4443 echo $ac_n "(cached) $ac_c" 1>&6
4445 cat > conftest.$ac_ext <<EOF
4446 #line 4447 "configure"
4447 #include "confdefs.h"
4448 /* System header to define __stub macros and hopefully few prototypes,
4449 which can conflict with char $ac_func(); below. */
4451 /* Override any gcc2 internal prototype to avoid an error. */
4452 /* We use char because int might match the return type of a gcc2
4453 builtin and then its argument prototype would still apply. */
4458 /* The GNU C library defines this for functions which it implements
4459 to always fail with ENOSYS. Some functions are actually named
4460 something starting with __ and the normal name is an alias. */
4461 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4469 if { (eval echo configure:4470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4471 eval "ac_cv_func_$ac_func=yes"
4473 echo "configure: failed program was:" >&5
4474 cat conftest.$ac_ext >&5
4476 eval "ac_cv_func_$ac_func=no"
4481 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4482 echo "$ac_t""yes" 1>&6
4483 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4484 cat >> confdefs.h <<EOF
4485 #define $ac_tr_func 1
4489 echo "$ac_t""no" 1>&6
4493 if test x"$ac_cv_func_crypt" = x"no"; then
4494 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4495 echo "configure:4496: checking for crypt in -lcrypt" >&5
4496 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4497 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4498 echo $ac_n "(cached) $ac_c" 1>&6
4500 ac_save_LIBS="$LIBS"
4501 LIBS="-lcrypt $LIBS"
4502 cat > conftest.$ac_ext <<EOF
4503 #line 4504 "configure"
4504 #include "confdefs.h"
4505 /* Override any gcc2 internal prototype to avoid an error. */
4506 /* We use char because int might match the return type of a gcc2
4507 builtin and then its argument prototype would still apply. */
4514 if { (eval echo configure:4515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4516 eval "ac_cv_lib_$ac_lib_var=yes"
4518 echo "configure: failed program was:" >&5
4519 cat conftest.$ac_ext >&5
4521 eval "ac_cv_lib_$ac_lib_var=no"
4524 LIBS="$ac_save_LIBS"
4527 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4528 echo "$ac_t""yes" 1>&6
4529 LIBS="$LIBS -lcrypt";
4530 cat >> confdefs.h <<\EOF
4531 #define HAVE_CRYPT 1
4535 echo "$ac_t""no" 1>&6
4541 ###############################################
4542 # Readline included by default unless explicitly asked not to
4543 test "${with_readline+set}" != "set" && with_readline=yes
4545 # test for where we get readline() from
4546 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4547 echo "configure:4548: checking whether to use readline" >&5
4548 # Check whether --with-readline or --without-readline was given.
4549 if test "${with_readline+set}" = set; then
4550 withval="$with_readline"
4551 case "$with_readline" in
4553 echo "$ac_t""yes" 1>&6
4555 for ac_hdr in readline.h history.h readline/readline.h
4557 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4558 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4559 echo "configure:4560: checking for $ac_hdr" >&5
4560 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4561 echo $ac_n "(cached) $ac_c" 1>&6
4563 cat > conftest.$ac_ext <<EOF
4564 #line 4565 "configure"
4565 #include "confdefs.h"
4568 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4569 { (eval echo configure:4570: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4570 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4571 if test -z "$ac_err"; then
4573 eval "ac_cv_header_$ac_safe=yes"
4576 echo "configure: failed program was:" >&5
4577 cat conftest.$ac_ext >&5
4579 eval "ac_cv_header_$ac_safe=no"
4583 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4584 echo "$ac_t""yes" 1>&6
4585 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4586 cat >> confdefs.h <<EOF
4587 #define $ac_tr_hdr 1
4591 echo "$ac_t""no" 1>&6
4595 for ac_hdr in readline/history.h
4597 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4598 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4599 echo "configure:4600: checking for $ac_hdr" >&5
4600 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4601 echo $ac_n "(cached) $ac_c" 1>&6
4603 cat > conftest.$ac_ext <<EOF
4604 #line 4605 "configure"
4605 #include "confdefs.h"
4608 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4609 { (eval echo configure:4610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4610 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4611 if test -z "$ac_err"; then
4613 eval "ac_cv_header_$ac_safe=yes"
4616 echo "configure: failed program was:" >&5
4617 cat conftest.$ac_ext >&5
4619 eval "ac_cv_header_$ac_safe=no"
4623 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4624 echo "$ac_t""yes" 1>&6
4625 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4626 cat >> confdefs.h <<EOF
4627 #define $ac_tr_hdr 1
4631 echo "$ac_t""no" 1>&6
4636 for ac_hdr in readline.h readline/readline.h
4638 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4639 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4640 echo "configure:4641: checking for $ac_hdr" >&5
4641 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4642 echo $ac_n "(cached) $ac_c" 1>&6
4644 cat > conftest.$ac_ext <<EOF
4645 #line 4646 "configure"
4646 #include "confdefs.h"
4649 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4650 { (eval echo configure:4651: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4651 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4652 if test -z "$ac_err"; then
4654 eval "ac_cv_header_$ac_safe=yes"
4657 echo "configure: failed program was:" >&5
4658 cat conftest.$ac_ext >&5
4660 eval "ac_cv_header_$ac_safe=no"
4664 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4665 echo "$ac_t""yes" 1>&6
4666 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4667 cat >> confdefs.h <<EOF
4668 #define $ac_tr_hdr 1
4671 for termlib in ncurses curses termcap terminfo termlib; do
4672 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4673 echo "configure:4674: checking for tgetent in -l${termlib}" >&5
4674 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4675 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4676 echo $ac_n "(cached) $ac_c" 1>&6
4678 ac_save_LIBS="$LIBS"
4679 LIBS="-l${termlib} $LIBS"
4680 cat > conftest.$ac_ext <<EOF
4681 #line 4682 "configure"
4682 #include "confdefs.h"
4683 /* Override any gcc2 internal prototype to avoid an error. */
4684 /* We use char because int might match the return type of a gcc2
4685 builtin and then its argument prototype would still apply. */
4692 if { (eval echo configure:4693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4694 eval "ac_cv_lib_$ac_lib_var=yes"
4696 echo "configure: failed program was:" >&5
4697 cat conftest.$ac_ext >&5
4699 eval "ac_cv_lib_$ac_lib_var=no"
4702 LIBS="$ac_save_LIBS"
4705 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4706 echo "$ac_t""yes" 1>&6
4707 TERMLIBS="-l${termlib}"; break
4709 echo "$ac_t""no" 1>&6
4713 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4714 echo "configure:4715: checking for rl_callback_handler_install in -lreadline" >&5
4715 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4716 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4717 echo $ac_n "(cached) $ac_c" 1>&6
4719 ac_save_LIBS="$LIBS"
4720 LIBS="-lreadline $TERMLIBS $LIBS"
4721 cat > conftest.$ac_ext <<EOF
4722 #line 4723 "configure"
4723 #include "confdefs.h"
4724 /* Override any gcc2 internal prototype to avoid an error. */
4725 /* We use char because int might match the return type of a gcc2
4726 builtin and then its argument prototype would still apply. */
4727 char rl_callback_handler_install();
4730 rl_callback_handler_install()
4733 if { (eval echo configure:4734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4735 eval "ac_cv_lib_$ac_lib_var=yes"
4737 echo "configure: failed program was:" >&5
4738 cat conftest.$ac_ext >&5
4740 eval "ac_cv_lib_$ac_lib_var=no"
4743 LIBS="$ac_save_LIBS"
4746 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4747 echo "$ac_t""yes" 1>&6
4748 TERMLIBS="-lreadline $TERMLIBS"
4749 cat >> confdefs.h <<\EOF
4750 #define HAVE_LIBREADLINE 1
4755 echo "$ac_t""no" 1>&6
4760 echo "$ac_t""no" 1>&6
4766 echo "$ac_t""no" 1>&6
4769 echo "$ac_t""yes" 1>&6
4771 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4772 # alternate readline path
4774 _cppflags=${CPPFLAGS}
4776 # Add additional search path
4777 LDFLAGS="-L$with_readline/lib $LDFLAGS"
4778 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4780 for ac_hdr in readline.h history.h readline/readline.h
4782 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4783 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4784 echo "configure:4785: checking for $ac_hdr" >&5
4785 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4786 echo $ac_n "(cached) $ac_c" 1>&6
4788 cat > conftest.$ac_ext <<EOF
4789 #line 4790 "configure"
4790 #include "confdefs.h"
4793 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4794 { (eval echo configure:4795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4795 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4796 if test -z "$ac_err"; then
4798 eval "ac_cv_header_$ac_safe=yes"
4801 echo "configure: failed program was:" >&5
4802 cat conftest.$ac_ext >&5
4804 eval "ac_cv_header_$ac_safe=no"
4808 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4809 echo "$ac_t""yes" 1>&6
4810 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4811 cat >> confdefs.h <<EOF
4812 #define $ac_tr_hdr 1
4816 echo "$ac_t""no" 1>&6
4820 for ac_hdr in readline/history.h
4822 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4823 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4824 echo "configure:4825: checking for $ac_hdr" >&5
4825 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4826 echo $ac_n "(cached) $ac_c" 1>&6
4828 cat > conftest.$ac_ext <<EOF
4829 #line 4830 "configure"
4830 #include "confdefs.h"
4833 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4834 { (eval echo configure:4835: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4835 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4836 if test -z "$ac_err"; then
4838 eval "ac_cv_header_$ac_safe=yes"
4841 echo "configure: failed program was:" >&5
4842 cat conftest.$ac_ext >&5
4844 eval "ac_cv_header_$ac_safe=no"
4848 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4849 echo "$ac_t""yes" 1>&6
4850 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4851 cat >> confdefs.h <<EOF
4852 #define $ac_tr_hdr 1
4856 echo "$ac_t""no" 1>&6
4861 for ac_hdr in readline.h readline/readline.h
4863 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4864 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4865 echo "configure:4866: checking for $ac_hdr" >&5
4866 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4867 echo $ac_n "(cached) $ac_c" 1>&6
4869 cat > conftest.$ac_ext <<EOF
4870 #line 4871 "configure"
4871 #include "confdefs.h"
4874 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4875 { (eval echo configure:4876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4876 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4877 if test -z "$ac_err"; then
4879 eval "ac_cv_header_$ac_safe=yes"
4882 echo "configure: failed program was:" >&5
4883 cat conftest.$ac_ext >&5
4885 eval "ac_cv_header_$ac_safe=no"
4889 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4890 echo "$ac_t""yes" 1>&6
4891 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4892 cat >> confdefs.h <<EOF
4893 #define $ac_tr_hdr 1
4896 for termlib in ncurses curses termcap terminfo termlib; do
4897 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4898 echo "configure:4899: checking for tgetent in -l${termlib}" >&5
4899 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4900 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4901 echo $ac_n "(cached) $ac_c" 1>&6
4903 ac_save_LIBS="$LIBS"
4904 LIBS="-l${termlib} $LIBS"
4905 cat > conftest.$ac_ext <<EOF
4906 #line 4907 "configure"
4907 #include "confdefs.h"
4908 /* Override any gcc2 internal prototype to avoid an error. */
4909 /* We use char because int might match the return type of a gcc2
4910 builtin and then its argument prototype would still apply. */
4917 if { (eval echo configure:4918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4919 eval "ac_cv_lib_$ac_lib_var=yes"
4921 echo "configure: failed program was:" >&5
4922 cat conftest.$ac_ext >&5
4924 eval "ac_cv_lib_$ac_lib_var=no"
4927 LIBS="$ac_save_LIBS"
4930 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4931 echo "$ac_t""yes" 1>&6
4932 TERMLIBS="-l${termlib}"; break
4934 echo "$ac_t""no" 1>&6
4938 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4939 echo "configure:4940: checking for rl_callback_handler_install in -lreadline" >&5
4940 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4941 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4942 echo $ac_n "(cached) $ac_c" 1>&6
4944 ac_save_LIBS="$LIBS"
4945 LIBS="-lreadline $TERMLIBS $LIBS"
4946 cat > conftest.$ac_ext <<EOF
4947 #line 4948 "configure"
4948 #include "confdefs.h"
4949 /* Override any gcc2 internal prototype to avoid an error. */
4950 /* We use char because int might match the return type of a gcc2
4951 builtin and then its argument prototype would still apply. */
4952 char rl_callback_handler_install();
4955 rl_callback_handler_install()
4958 if { (eval echo configure:4959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4960 eval "ac_cv_lib_$ac_lib_var=yes"
4962 echo "configure: failed program was:" >&5
4963 cat conftest.$ac_ext >&5
4965 eval "ac_cv_lib_$ac_lib_var=no"
4968 LIBS="$ac_save_LIBS"
4971 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4972 echo "$ac_t""yes" 1>&6
4973 TERMLDFLAGS="-L$with_readline/lib"
4974 TERMCPPFLAGS="-I$with_readline/include"
4975 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4976 TERMLIBS="-lreadline $TERMLIBS"
4977 cat >> confdefs.h <<\EOF
4978 #define HAVE_LIBREADLINE 1
4983 echo "$ac_t""no" 1>&6
4984 TERMLIBS= CPPFLAGS=$_cppflags
4988 echo "$ac_t""no" 1>&6
4997 echo "$ac_t""no" 1>&6
5004 # The readline API changed slightly from readline3 to readline4, so
5005 # code will generate warnings on one of them unless we have a few
5007 echo $ac_n "checking for rl_completion_matches in -lreadline""... $ac_c" 1>&6
5008 echo "configure:5009: checking for rl_completion_matches in -lreadline" >&5
5009 ac_lib_var=`echo readline'_'rl_completion_matches | sed 'y%./+-%__p_%'`
5010 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5011 echo $ac_n "(cached) $ac_c" 1>&6
5013 ac_save_LIBS="$LIBS"
5014 LIBS="-lreadline $TERMLIBS $LIBS"
5015 cat > conftest.$ac_ext <<EOF
5016 #line 5017 "configure"
5017 #include "confdefs.h"
5018 /* Override any gcc2 internal prototype to avoid an error. */
5019 /* We use char because int might match the return type of a gcc2
5020 builtin and then its argument prototype would still apply. */
5021 char rl_completion_matches();
5024 rl_completion_matches()
5027 if { (eval echo configure:5028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5029 eval "ac_cv_lib_$ac_lib_var=yes"
5031 echo "configure: failed program was:" >&5
5032 cat conftest.$ac_ext >&5
5034 eval "ac_cv_lib_$ac_lib_var=no"
5037 LIBS="$ac_save_LIBS"
5040 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5041 echo "$ac_t""yes" 1>&6
5042 cat >> confdefs.h <<\EOF
5043 #define HAVE_NEW_LIBREADLINE 1
5047 echo "$ac_t""no" 1>&6
5051 # The following test taken from the cvs sources
5052 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
5053 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
5054 # libsocket.so which has a bad implementation of gethostbyname (it
5055 # only looks in /etc/hosts), so we only look for -lsocket if we need
5057 for ac_func in connect
5059 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5060 echo "configure:5061: checking for $ac_func" >&5
5061 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5062 echo $ac_n "(cached) $ac_c" 1>&6
5064 cat > conftest.$ac_ext <<EOF
5065 #line 5066 "configure"
5066 #include "confdefs.h"
5067 /* System header to define __stub macros and hopefully few prototypes,
5068 which can conflict with char $ac_func(); below. */
5070 /* Override any gcc2 internal prototype to avoid an error. */
5071 /* We use char because int might match the return type of a gcc2
5072 builtin and then its argument prototype would still apply. */
5077 /* The GNU C library defines this for functions which it implements
5078 to always fail with ENOSYS. Some functions are actually named
5079 something starting with __ and the normal name is an alias. */
5080 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5088 if { (eval echo configure:5089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5090 eval "ac_cv_func_$ac_func=yes"
5092 echo "configure: failed program was:" >&5
5093 cat conftest.$ac_ext >&5
5095 eval "ac_cv_func_$ac_func=no"
5100 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5101 echo "$ac_t""yes" 1>&6
5102 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5103 cat >> confdefs.h <<EOF
5104 #define $ac_tr_func 1
5108 echo "$ac_t""no" 1>&6
5112 if test x"$ac_cv_func_connect" = x"no"; then
5115 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
5116 echo "configure:5117: checking for printf in -lnsl_s" >&5
5117 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
5118 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5119 echo $ac_n "(cached) $ac_c" 1>&6
5121 ac_save_LIBS="$LIBS"
5122 LIBS="-lnsl_s $LIBS"
5123 cat > conftest.$ac_ext <<EOF
5124 #line 5125 "configure"
5125 #include "confdefs.h"
5126 /* Override any gcc2 internal prototype to avoid an error. */
5127 /* We use char because int might match the return type of a gcc2
5128 builtin and then its argument prototype would still apply. */
5135 if { (eval echo configure:5136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5137 eval "ac_cv_lib_$ac_lib_var=yes"
5139 echo "configure: failed program was:" >&5
5140 cat conftest.$ac_ext >&5
5142 eval "ac_cv_lib_$ac_lib_var=no"
5145 LIBS="$ac_save_LIBS"
5148 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5149 echo "$ac_t""yes" 1>&6
5150 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5151 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5152 cat >> confdefs.h <<EOF
5153 #define $ac_tr_lib 1
5156 LIBS="-lnsl_s $LIBS"
5159 echo "$ac_t""no" 1>&6
5165 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
5166 echo "configure:5167: checking for printf in -lnsl" >&5
5167 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
5168 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5169 echo $ac_n "(cached) $ac_c" 1>&6
5171 ac_save_LIBS="$LIBS"
5173 cat > conftest.$ac_ext <<EOF
5174 #line 5175 "configure"
5175 #include "confdefs.h"
5176 /* Override any gcc2 internal prototype to avoid an error. */
5177 /* We use char because int might match the return type of a gcc2
5178 builtin and then its argument prototype would still apply. */
5185 if { (eval echo configure:5186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5187 eval "ac_cv_lib_$ac_lib_var=yes"
5189 echo "configure: failed program was:" >&5
5190 cat conftest.$ac_ext >&5
5192 eval "ac_cv_lib_$ac_lib_var=no"
5195 LIBS="$ac_save_LIBS"
5198 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5199 echo "$ac_t""yes" 1>&6
5200 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5201 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5202 cat >> confdefs.h <<EOF
5203 #define $ac_tr_lib 1
5209 echo "$ac_t""no" 1>&6
5215 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
5216 echo "configure:5217: checking for connect in -lsocket" >&5
5217 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5218 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5219 echo $ac_n "(cached) $ac_c" 1>&6
5221 ac_save_LIBS="$LIBS"
5222 LIBS="-lsocket $LIBS"
5223 cat > conftest.$ac_ext <<EOF
5224 #line 5225 "configure"
5225 #include "confdefs.h"
5226 /* Override any gcc2 internal prototype to avoid an error. */
5227 /* We use char because int might match the return type of a gcc2
5228 builtin and then its argument prototype would still apply. */
5235 if { (eval echo configure:5236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5237 eval "ac_cv_lib_$ac_lib_var=yes"
5239 echo "configure: failed program was:" >&5
5240 cat conftest.$ac_ext >&5
5242 eval "ac_cv_lib_$ac_lib_var=no"
5245 LIBS="$ac_save_LIBS"
5248 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5249 echo "$ac_t""yes" 1>&6
5250 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5251 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5252 cat >> confdefs.h <<EOF
5253 #define $ac_tr_lib 1
5256 LIBS="-lsocket $LIBS"
5259 echo "$ac_t""no" 1>&6
5265 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
5266 echo "configure:5267: checking for connect in -linet" >&5
5267 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
5268 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5269 echo $ac_n "(cached) $ac_c" 1>&6
5271 ac_save_LIBS="$LIBS"
5273 cat > conftest.$ac_ext <<EOF
5274 #line 5275 "configure"
5275 #include "confdefs.h"
5276 /* Override any gcc2 internal prototype to avoid an error. */
5277 /* We use char because int might match the return type of a gcc2
5278 builtin and then its argument prototype would still apply. */
5285 if { (eval echo configure:5286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5287 eval "ac_cv_lib_$ac_lib_var=yes"
5289 echo "configure: failed program was:" >&5
5290 cat conftest.$ac_ext >&5
5292 eval "ac_cv_lib_$ac_lib_var=no"
5295 LIBS="$ac_save_LIBS"
5298 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5299 echo "$ac_t""yes" 1>&6
5300 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5301 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5302 cat >> confdefs.h <<EOF
5303 #define $ac_tr_lib 1
5309 echo "$ac_t""no" 1>&6
5313 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
5314 test x"$ac_cv_lib_inet_connect" = x"yes"; then
5315 # ac_cv_func_connect=yes
5316 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
5317 cat >> confdefs.h <<\EOF
5318 #define HAVE_CONNECT 1
5324 ###############################################
5325 # test for where we get get_yp_default_domain() from
5326 for ac_func in yp_get_default_domain
5328 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5329 echo "configure:5330: checking for $ac_func" >&5
5330 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5331 echo $ac_n "(cached) $ac_c" 1>&6
5333 cat > conftest.$ac_ext <<EOF
5334 #line 5335 "configure"
5335 #include "confdefs.h"
5336 /* System header to define __stub macros and hopefully few prototypes,
5337 which can conflict with char $ac_func(); below. */
5339 /* Override any gcc2 internal prototype to avoid an error. */
5340 /* We use char because int might match the return type of a gcc2
5341 builtin and then its argument prototype would still apply. */
5346 /* The GNU C library defines this for functions which it implements
5347 to always fail with ENOSYS. Some functions are actually named
5348 something starting with __ and the normal name is an alias. */
5349 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5357 if { (eval echo configure:5358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5359 eval "ac_cv_func_$ac_func=yes"
5361 echo "configure: failed program was:" >&5
5362 cat conftest.$ac_ext >&5
5364 eval "ac_cv_func_$ac_func=no"
5369 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5370 echo "$ac_t""yes" 1>&6
5371 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5372 cat >> confdefs.h <<EOF
5373 #define $ac_tr_func 1
5377 echo "$ac_t""no" 1>&6
5381 if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then
5382 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
5383 echo "configure:5384: checking for yp_get_default_domain in -lnsl" >&5
5384 ac_lib_var=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
5385 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5386 echo $ac_n "(cached) $ac_c" 1>&6
5388 ac_save_LIBS="$LIBS"
5390 cat > conftest.$ac_ext <<EOF
5391 #line 5392 "configure"
5392 #include "confdefs.h"
5393 /* Override any gcc2 internal prototype to avoid an error. */
5394 /* We use char because int might match the return type of a gcc2
5395 builtin and then its argument prototype would still apply. */
5396 char yp_get_default_domain();
5399 yp_get_default_domain()
5402 if { (eval echo configure:5403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5404 eval "ac_cv_lib_$ac_lib_var=yes"
5406 echo "configure: failed program was:" >&5
5407 cat conftest.$ac_ext >&5
5409 eval "ac_cv_lib_$ac_lib_var=no"
5412 LIBS="$ac_save_LIBS"
5415 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5416 echo "$ac_t""yes" 1>&6
5418 cat >> confdefs.h <<\EOF
5419 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
5423 echo "$ac_t""no" 1>&6
5428 # Check if we have execl, if not we need to compile smbrun.
5429 for ac_func in execl
5431 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5432 echo "configure:5433: checking for $ac_func" >&5
5433 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5434 echo $ac_n "(cached) $ac_c" 1>&6
5436 cat > conftest.$ac_ext <<EOF
5437 #line 5438 "configure"
5438 #include "confdefs.h"
5439 /* System header to define __stub macros and hopefully few prototypes,
5440 which can conflict with char $ac_func(); below. */
5442 /* Override any gcc2 internal prototype to avoid an error. */
5443 /* We use char because int might match the return type of a gcc2
5444 builtin and then its argument prototype would still apply. */
5449 /* The GNU C library defines this for functions which it implements
5450 to always fail with ENOSYS. Some functions are actually named
5451 something starting with __ and the normal name is an alias. */
5452 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5460 if { (eval echo configure:5461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5462 eval "ac_cv_func_$ac_func=yes"
5464 echo "configure: failed program was:" >&5
5465 cat conftest.$ac_ext >&5
5467 eval "ac_cv_func_$ac_func=no"
5472 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5473 echo "$ac_t""yes" 1>&6
5474 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5475 cat >> confdefs.h <<EOF
5476 #define $ac_tr_func 1
5480 echo "$ac_t""no" 1>&6
5484 if test x"$ac_cv_func_execl" = x"no"; then
5485 RUNPROG="bin/smbrun"
5490 for ac_func in dlopen dlclose dlsym dlerror waitpid getcwd strdup strndup strnlen strtoul strerror chown fchown chmod fchmod chroot link mknod mknod64
5492 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5493 echo "configure:5494: checking for $ac_func" >&5
5494 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5495 echo $ac_n "(cached) $ac_c" 1>&6
5497 cat > conftest.$ac_ext <<EOF
5498 #line 5499 "configure"
5499 #include "confdefs.h"
5500 /* System header to define __stub macros and hopefully few prototypes,
5501 which can conflict with char $ac_func(); below. */
5503 /* Override any gcc2 internal prototype to avoid an error. */
5504 /* We use char because int might match the return type of a gcc2
5505 builtin and then its argument prototype would still apply. */
5510 /* The GNU C library defines this for functions which it implements
5511 to always fail with ENOSYS. Some functions are actually named
5512 something starting with __ and the normal name is an alias. */
5513 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5521 if { (eval echo configure:5522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5523 eval "ac_cv_func_$ac_func=yes"
5525 echo "configure: failed program was:" >&5
5526 cat conftest.$ac_ext >&5
5528 eval "ac_cv_func_$ac_func=no"
5533 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5534 echo "$ac_t""yes" 1>&6
5535 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5536 cat >> confdefs.h <<EOF
5537 #define $ac_tr_func 1
5541 echo "$ac_t""no" 1>&6
5545 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset strlcpy strlcat setpgid
5547 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5548 echo "configure:5549: checking for $ac_func" >&5
5549 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5550 echo $ac_n "(cached) $ac_c" 1>&6
5552 cat > conftest.$ac_ext <<EOF
5553 #line 5554 "configure"
5554 #include "confdefs.h"
5555 /* System header to define __stub macros and hopefully few prototypes,
5556 which can conflict with char $ac_func(); below. */
5558 /* Override any gcc2 internal prototype to avoid an error. */
5559 /* We use char because int might match the return type of a gcc2
5560 builtin and then its argument prototype would still apply. */
5565 /* The GNU C library defines this for functions which it implements
5566 to always fail with ENOSYS. Some functions are actually named
5567 something starting with __ and the normal name is an alias. */
5568 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5576 if { (eval echo configure:5577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5578 eval "ac_cv_func_$ac_func=yes"
5580 echo "configure: failed program was:" >&5
5581 cat conftest.$ac_ext >&5
5583 eval "ac_cv_func_$ac_func=no"
5588 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5589 echo "$ac_t""yes" 1>&6
5590 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5591 cat >> confdefs.h <<EOF
5592 #define $ac_tr_func 1
5596 echo "$ac_t""no" 1>&6
5600 for ac_func in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5602 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5603 echo "configure:5604: checking for $ac_func" >&5
5604 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5605 echo $ac_n "(cached) $ac_c" 1>&6
5607 cat > conftest.$ac_ext <<EOF
5608 #line 5609 "configure"
5609 #include "confdefs.h"
5610 /* System header to define __stub macros and hopefully few prototypes,
5611 which can conflict with char $ac_func(); below. */
5613 /* Override any gcc2 internal prototype to avoid an error. */
5614 /* We use char because int might match the return type of a gcc2
5615 builtin and then its argument prototype would still apply. */
5620 /* The GNU C library defines this for functions which it implements
5621 to always fail with ENOSYS. Some functions are actually named
5622 something starting with __ and the normal name is an alias. */
5623 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5631 if { (eval echo configure:5632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5633 eval "ac_cv_func_$ac_func=yes"
5635 echo "configure: failed program was:" >&5
5636 cat conftest.$ac_ext >&5
5638 eval "ac_cv_func_$ac_func=no"
5643 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5644 echo "$ac_t""yes" 1>&6
5645 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5646 cat >> confdefs.h <<EOF
5647 #define $ac_tr_func 1
5651 echo "$ac_t""no" 1>&6
5655 for ac_func in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
5657 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5658 echo "configure:5659: checking for $ac_func" >&5
5659 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5660 echo $ac_n "(cached) $ac_c" 1>&6
5662 cat > conftest.$ac_ext <<EOF
5663 #line 5664 "configure"
5664 #include "confdefs.h"
5665 /* System header to define __stub macros and hopefully few prototypes,
5666 which can conflict with char $ac_func(); below. */
5668 /* Override any gcc2 internal prototype to avoid an error. */
5669 /* We use char because int might match the return type of a gcc2
5670 builtin and then its argument prototype would still apply. */
5675 /* The GNU C library defines this for functions which it implements
5676 to always fail with ENOSYS. Some functions are actually named
5677 something starting with __ and the normal name is an alias. */
5678 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5686 if { (eval echo configure:5687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5688 eval "ac_cv_func_$ac_func=yes"
5690 echo "configure: failed program was:" >&5
5691 cat conftest.$ac_ext >&5
5693 eval "ac_cv_func_$ac_func=no"
5698 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5699 echo "$ac_t""yes" 1>&6
5700 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5701 cat >> confdefs.h <<EOF
5702 #define $ac_tr_func 1
5706 echo "$ac_t""no" 1>&6
5710 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf realpath
5712 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5713 echo "configure:5714: checking for $ac_func" >&5
5714 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5715 echo $ac_n "(cached) $ac_c" 1>&6
5717 cat > conftest.$ac_ext <<EOF
5718 #line 5719 "configure"
5719 #include "confdefs.h"
5720 /* System header to define __stub macros and hopefully few prototypes,
5721 which can conflict with char $ac_func(); below. */
5723 /* Override any gcc2 internal prototype to avoid an error. */
5724 /* We use char because int might match the return type of a gcc2
5725 builtin and then its argument prototype would still apply. */
5730 /* The GNU C library defines this for functions which it implements
5731 to always fail with ENOSYS. Some functions are actually named
5732 something starting with __ and the normal name is an alias. */
5733 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5741 if { (eval echo configure:5742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5743 eval "ac_cv_func_$ac_func=yes"
5745 echo "configure: failed program was:" >&5
5746 cat conftest.$ac_ext >&5
5748 eval "ac_cv_func_$ac_func=no"
5753 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5754 echo "$ac_t""yes" 1>&6
5755 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5756 cat >> confdefs.h <<EOF
5757 #define $ac_tr_func 1
5761 echo "$ac_t""no" 1>&6
5765 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5767 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5768 echo "configure:5769: checking for $ac_func" >&5
5769 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5770 echo $ac_n "(cached) $ac_c" 1>&6
5772 cat > conftest.$ac_ext <<EOF
5773 #line 5774 "configure"
5774 #include "confdefs.h"
5775 /* System header to define __stub macros and hopefully few prototypes,
5776 which can conflict with char $ac_func(); below. */
5778 /* Override any gcc2 internal prototype to avoid an error. */
5779 /* We use char because int might match the return type of a gcc2
5780 builtin and then its argument prototype would still apply. */
5785 /* The GNU C library defines this for functions which it implements
5786 to always fail with ENOSYS. Some functions are actually named
5787 something starting with __ and the normal name is an alias. */
5788 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5796 if { (eval echo configure:5797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5798 eval "ac_cv_func_$ac_func=yes"
5800 echo "configure: failed program was:" >&5
5801 cat conftest.$ac_ext >&5
5803 eval "ac_cv_func_$ac_func=no"
5808 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5809 echo "$ac_t""yes" 1>&6
5810 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5811 cat >> confdefs.h <<EOF
5812 #define $ac_tr_func 1
5816 echo "$ac_t""no" 1>&6
5820 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5822 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5823 echo "configure:5824: checking for $ac_func" >&5
5824 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5825 echo $ac_n "(cached) $ac_c" 1>&6
5827 cat > conftest.$ac_ext <<EOF
5828 #line 5829 "configure"
5829 #include "confdefs.h"
5830 /* System header to define __stub macros and hopefully few prototypes,
5831 which can conflict with char $ac_func(); below. */
5833 /* Override any gcc2 internal prototype to avoid an error. */
5834 /* We use char because int might match the return type of a gcc2
5835 builtin and then its argument prototype would still apply. */
5840 /* The GNU C library defines this for functions which it implements
5841 to always fail with ENOSYS. Some functions are actually named
5842 something starting with __ and the normal name is an alias. */
5843 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5851 if { (eval echo configure:5852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5853 eval "ac_cv_func_$ac_func=yes"
5855 echo "configure: failed program was:" >&5
5856 cat conftest.$ac_ext >&5
5858 eval "ac_cv_func_$ac_func=no"
5863 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5864 echo "$ac_t""yes" 1>&6
5865 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5866 cat >> confdefs.h <<EOF
5867 #define $ac_tr_func 1
5871 echo "$ac_t""no" 1>&6
5875 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5877 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5878 echo "configure:5879: checking for $ac_func" >&5
5879 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5880 echo $ac_n "(cached) $ac_c" 1>&6
5882 cat > conftest.$ac_ext <<EOF
5883 #line 5884 "configure"
5884 #include "confdefs.h"
5885 /* System header to define __stub macros and hopefully few prototypes,
5886 which can conflict with char $ac_func(); below. */
5888 /* Override any gcc2 internal prototype to avoid an error. */
5889 /* We use char because int might match the return type of a gcc2
5890 builtin and then its argument prototype would still apply. */
5895 /* The GNU C library defines this for functions which it implements
5896 to always fail with ENOSYS. Some functions are actually named
5897 something starting with __ and the normal name is an alias. */
5898 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5906 if { (eval echo configure:5907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5908 eval "ac_cv_func_$ac_func=yes"
5910 echo "configure: failed program was:" >&5
5911 cat conftest.$ac_ext >&5
5913 eval "ac_cv_func_$ac_func=no"
5918 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5919 echo "$ac_t""yes" 1>&6
5920 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5921 cat >> confdefs.h <<EOF
5922 #define $ac_tr_func 1
5926 echo "$ac_t""no" 1>&6
5930 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl symlink readlink
5932 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5933 echo "configure:5934: checking for $ac_func" >&5
5934 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5935 echo $ac_n "(cached) $ac_c" 1>&6
5937 cat > conftest.$ac_ext <<EOF
5938 #line 5939 "configure"
5939 #include "confdefs.h"
5940 /* System header to define __stub macros and hopefully few prototypes,
5941 which can conflict with char $ac_func(); below. */
5943 /* Override any gcc2 internal prototype to avoid an error. */
5944 /* We use char because int might match the return type of a gcc2
5945 builtin and then its argument prototype would still apply. */
5950 /* The GNU C library defines this for functions which it implements
5951 to always fail with ENOSYS. Some functions are actually named
5952 something starting with __ and the normal name is an alias. */
5953 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5961 if { (eval echo configure:5962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5963 eval "ac_cv_func_$ac_func=yes"
5965 echo "configure: failed program was:" >&5
5966 cat conftest.$ac_ext >&5
5968 eval "ac_cv_func_$ac_func=no"
5973 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5974 echo "$ac_t""yes" 1>&6
5975 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5976 cat >> confdefs.h <<EOF
5977 #define $ac_tr_func 1
5981 echo "$ac_t""no" 1>&6
5985 for ac_func in syslog vsyslog getgrouplist
5987 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5988 echo "configure:5989: checking for $ac_func" >&5
5989 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5990 echo $ac_n "(cached) $ac_c" 1>&6
5992 cat > conftest.$ac_ext <<EOF
5993 #line 5994 "configure"
5994 #include "confdefs.h"
5995 /* System header to define __stub macros and hopefully few prototypes,
5996 which can conflict with char $ac_func(); below. */
5998 /* Override any gcc2 internal prototype to avoid an error. */
5999 /* We use char because int might match the return type of a gcc2
6000 builtin and then its argument prototype would still apply. */
6005 /* The GNU C library defines this for functions which it implements
6006 to always fail with ENOSYS. Some functions are actually named
6007 something starting with __ and the normal name is an alias. */
6008 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6016 if { (eval echo configure:6017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6018 eval "ac_cv_func_$ac_func=yes"
6020 echo "configure: failed program was:" >&5
6021 cat conftest.$ac_ext >&5
6023 eval "ac_cv_func_$ac_func=no"
6028 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6029 echo "$ac_t""yes" 1>&6
6030 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6031 cat >> confdefs.h <<EOF
6032 #define $ac_tr_func 1
6036 echo "$ac_t""no" 1>&6
6040 # setbuffer is needed for smbtorture
6041 for ac_func in setbuffer
6043 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6044 echo "configure:6045: checking for $ac_func" >&5
6045 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6046 echo $ac_n "(cached) $ac_c" 1>&6
6048 cat > conftest.$ac_ext <<EOF
6049 #line 6050 "configure"
6050 #include "confdefs.h"
6051 /* System header to define __stub macros and hopefully few prototypes,
6052 which can conflict with char $ac_func(); below. */
6054 /* Override any gcc2 internal prototype to avoid an error. */
6055 /* We use char because int might match the return type of a gcc2
6056 builtin and then its argument prototype would still apply. */
6061 /* The GNU C library defines this for functions which it implements
6062 to always fail with ENOSYS. Some functions are actually named
6063 something starting with __ and the normal name is an alias. */
6064 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6072 if { (eval echo configure:6073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6074 eval "ac_cv_func_$ac_func=yes"
6076 echo "configure: failed program was:" >&5
6077 cat conftest.$ac_ext >&5
6079 eval "ac_cv_func_$ac_func=no"
6084 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6085 echo "$ac_t""yes" 1>&6
6086 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6087 cat >> confdefs.h <<EOF
6088 #define $ac_tr_func 1
6092 echo "$ac_t""no" 1>&6
6097 # syscall() is needed for smbwrapper.
6098 for ac_func in syscall
6100 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6101 echo "configure:6102: checking for $ac_func" >&5
6102 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6103 echo $ac_n "(cached) $ac_c" 1>&6
6105 cat > conftest.$ac_ext <<EOF
6106 #line 6107 "configure"
6107 #include "confdefs.h"
6108 /* System header to define __stub macros and hopefully few prototypes,
6109 which can conflict with char $ac_func(); below. */
6111 /* Override any gcc2 internal prototype to avoid an error. */
6112 /* We use char because int might match the return type of a gcc2
6113 builtin and then its argument prototype would still apply. */
6118 /* The GNU C library defines this for functions which it implements
6119 to always fail with ENOSYS. Some functions are actually named
6120 something starting with __ and the normal name is an alias. */
6121 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6129 if { (eval echo configure:6130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6131 eval "ac_cv_func_$ac_func=yes"
6133 echo "configure: failed program was:" >&5
6134 cat conftest.$ac_ext >&5
6136 eval "ac_cv_func_$ac_func=no"
6141 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6142 echo "$ac_t""yes" 1>&6
6143 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6144 cat >> confdefs.h <<EOF
6145 #define $ac_tr_func 1
6149 echo "$ac_t""no" 1>&6
6154 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
6156 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6157 echo "configure:6158: checking for $ac_func" >&5
6158 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6159 echo $ac_n "(cached) $ac_c" 1>&6
6161 cat > conftest.$ac_ext <<EOF
6162 #line 6163 "configure"
6163 #include "confdefs.h"
6164 /* System header to define __stub macros and hopefully few prototypes,
6165 which can conflict with char $ac_func(); below. */
6167 /* Override any gcc2 internal prototype to avoid an error. */
6168 /* We use char because int might match the return type of a gcc2
6169 builtin and then its argument prototype would still apply. */
6174 /* The GNU C library defines this for functions which it implements
6175 to always fail with ENOSYS. Some functions are actually named
6176 something starting with __ and the normal name is an alias. */
6177 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6185 if { (eval echo configure:6186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6187 eval "ac_cv_func_$ac_func=yes"
6189 echo "configure: failed program was:" >&5
6190 cat conftest.$ac_ext >&5
6192 eval "ac_cv_func_$ac_func=no"
6197 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6198 echo "$ac_t""yes" 1>&6
6199 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6200 cat >> confdefs.h <<EOF
6201 #define $ac_tr_func 1
6205 echo "$ac_t""no" 1>&6
6209 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
6211 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6212 echo "configure:6213: checking for $ac_func" >&5
6213 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6214 echo $ac_n "(cached) $ac_c" 1>&6
6216 cat > conftest.$ac_ext <<EOF
6217 #line 6218 "configure"
6218 #include "confdefs.h"
6219 /* System header to define __stub macros and hopefully few prototypes,
6220 which can conflict with char $ac_func(); below. */
6222 /* Override any gcc2 internal prototype to avoid an error. */
6223 /* We use char because int might match the return type of a gcc2
6224 builtin and then its argument prototype would still apply. */
6229 /* The GNU C library defines this for functions which it implements
6230 to always fail with ENOSYS. Some functions are actually named
6231 something starting with __ and the normal name is an alias. */
6232 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6240 if { (eval echo configure:6241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6242 eval "ac_cv_func_$ac_func=yes"
6244 echo "configure: failed program was:" >&5
6245 cat conftest.$ac_ext >&5
6247 eval "ac_cv_func_$ac_func=no"
6252 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6253 echo "$ac_t""yes" 1>&6
6254 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6255 cat >> confdefs.h <<EOF
6256 #define $ac_tr_func 1
6260 echo "$ac_t""no" 1>&6
6264 for ac_func in __getcwd _getcwd
6266 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6267 echo "configure:6268: checking for $ac_func" >&5
6268 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6269 echo $ac_n "(cached) $ac_c" 1>&6
6271 cat > conftest.$ac_ext <<EOF
6272 #line 6273 "configure"
6273 #include "confdefs.h"
6274 /* System header to define __stub macros and hopefully few prototypes,
6275 which can conflict with char $ac_func(); below. */
6277 /* Override any gcc2 internal prototype to avoid an error. */
6278 /* We use char because int might match the return type of a gcc2
6279 builtin and then its argument prototype would still apply. */
6284 /* The GNU C library defines this for functions which it implements
6285 to always fail with ENOSYS. Some functions are actually named
6286 something starting with __ and the normal name is an alias. */
6287 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6295 if { (eval echo configure:6296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6297 eval "ac_cv_func_$ac_func=yes"
6299 echo "configure: failed program was:" >&5
6300 cat conftest.$ac_ext >&5
6302 eval "ac_cv_func_$ac_func=no"
6307 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6308 echo "$ac_t""yes" 1>&6
6309 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6310 cat >> confdefs.h <<EOF
6311 #define $ac_tr_func 1
6315 echo "$ac_t""no" 1>&6
6319 for ac_func in __xstat __fxstat __lxstat
6321 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6322 echo "configure:6323: checking for $ac_func" >&5
6323 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6324 echo $ac_n "(cached) $ac_c" 1>&6
6326 cat > conftest.$ac_ext <<EOF
6327 #line 6328 "configure"
6328 #include "confdefs.h"
6329 /* System header to define __stub macros and hopefully few prototypes,
6330 which can conflict with char $ac_func(); below. */
6332 /* Override any gcc2 internal prototype to avoid an error. */
6333 /* We use char because int might match the return type of a gcc2
6334 builtin and then its argument prototype would still apply. */
6339 /* The GNU C library defines this for functions which it implements
6340 to always fail with ENOSYS. Some functions are actually named
6341 something starting with __ and the normal name is an alias. */
6342 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6350 if { (eval echo configure:6351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6352 eval "ac_cv_func_$ac_func=yes"
6354 echo "configure: failed program was:" >&5
6355 cat conftest.$ac_ext >&5
6357 eval "ac_cv_func_$ac_func=no"
6362 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6363 echo "$ac_t""yes" 1>&6
6364 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6365 cat >> confdefs.h <<EOF
6366 #define $ac_tr_func 1
6370 echo "$ac_t""no" 1>&6
6374 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
6376 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6377 echo "configure:6378: checking for $ac_func" >&5
6378 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6379 echo $ac_n "(cached) $ac_c" 1>&6
6381 cat > conftest.$ac_ext <<EOF
6382 #line 6383 "configure"
6383 #include "confdefs.h"
6384 /* System header to define __stub macros and hopefully few prototypes,
6385 which can conflict with char $ac_func(); below. */
6387 /* Override any gcc2 internal prototype to avoid an error. */
6388 /* We use char because int might match the return type of a gcc2
6389 builtin and then its argument prototype would still apply. */
6394 /* The GNU C library defines this for functions which it implements
6395 to always fail with ENOSYS. Some functions are actually named
6396 something starting with __ and the normal name is an alias. */
6397 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6405 if { (eval echo configure:6406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6407 eval "ac_cv_func_$ac_func=yes"
6409 echo "configure: failed program was:" >&5
6410 cat conftest.$ac_ext >&5
6412 eval "ac_cv_func_$ac_func=no"
6417 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6418 echo "$ac_t""yes" 1>&6
6419 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6420 cat >> confdefs.h <<EOF
6421 #define $ac_tr_func 1
6425 echo "$ac_t""no" 1>&6
6429 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
6431 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6432 echo "configure:6433: checking for $ac_func" >&5
6433 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6434 echo $ac_n "(cached) $ac_c" 1>&6
6436 cat > conftest.$ac_ext <<EOF
6437 #line 6438 "configure"
6438 #include "confdefs.h"
6439 /* System header to define __stub macros and hopefully few prototypes,
6440 which can conflict with char $ac_func(); below. */
6442 /* Override any gcc2 internal prototype to avoid an error. */
6443 /* We use char because int might match the return type of a gcc2
6444 builtin and then its argument prototype would still apply. */
6449 /* The GNU C library defines this for functions which it implements
6450 to always fail with ENOSYS. Some functions are actually named
6451 something starting with __ and the normal name is an alias. */
6452 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6460 if { (eval echo configure:6461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6462 eval "ac_cv_func_$ac_func=yes"
6464 echo "configure: failed program was:" >&5
6465 cat conftest.$ac_ext >&5
6467 eval "ac_cv_func_$ac_func=no"
6472 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6473 echo "$ac_t""yes" 1>&6
6474 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6475 cat >> confdefs.h <<EOF
6476 #define $ac_tr_func 1
6480 echo "$ac_t""no" 1>&6
6484 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
6486 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6487 echo "configure:6488: checking for $ac_func" >&5
6488 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6489 echo $ac_n "(cached) $ac_c" 1>&6
6491 cat > conftest.$ac_ext <<EOF
6492 #line 6493 "configure"
6493 #include "confdefs.h"
6494 /* System header to define __stub macros and hopefully few prototypes,
6495 which can conflict with char $ac_func(); below. */
6497 /* Override any gcc2 internal prototype to avoid an error. */
6498 /* We use char because int might match the return type of a gcc2
6499 builtin and then its argument prototype would still apply. */
6504 /* The GNU C library defines this for functions which it implements
6505 to always fail with ENOSYS. Some functions are actually named
6506 something starting with __ and the normal name is an alias. */
6507 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6515 if { (eval echo configure:6516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6517 eval "ac_cv_func_$ac_func=yes"
6519 echo "configure: failed program was:" >&5
6520 cat conftest.$ac_ext >&5
6522 eval "ac_cv_func_$ac_func=no"
6527 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6528 echo "$ac_t""yes" 1>&6
6529 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6530 cat >> confdefs.h <<EOF
6531 #define $ac_tr_func 1
6535 echo "$ac_t""no" 1>&6
6539 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
6541 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6542 echo "configure:6543: checking for $ac_func" >&5
6543 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6544 echo $ac_n "(cached) $ac_c" 1>&6
6546 cat > conftest.$ac_ext <<EOF
6547 #line 6548 "configure"
6548 #include "confdefs.h"
6549 /* System header to define __stub macros and hopefully few prototypes,
6550 which can conflict with char $ac_func(); below. */
6552 /* Override any gcc2 internal prototype to avoid an error. */
6553 /* We use char because int might match the return type of a gcc2
6554 builtin and then its argument prototype would still apply. */
6559 /* The GNU C library defines this for functions which it implements
6560 to always fail with ENOSYS. Some functions are actually named
6561 something starting with __ and the normal name is an alias. */
6562 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6570 if { (eval echo configure:6571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6572 eval "ac_cv_func_$ac_func=yes"
6574 echo "configure: failed program was:" >&5
6575 cat conftest.$ac_ext >&5
6577 eval "ac_cv_func_$ac_func=no"
6582 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6583 echo "$ac_t""yes" 1>&6
6584 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6585 cat >> confdefs.h <<EOF
6586 #define $ac_tr_func 1
6590 echo "$ac_t""no" 1>&6
6594 for ac_func in _write __write _fork __fork
6596 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6597 echo "configure:6598: checking for $ac_func" >&5
6598 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6599 echo $ac_n "(cached) $ac_c" 1>&6
6601 cat > conftest.$ac_ext <<EOF
6602 #line 6603 "configure"
6603 #include "confdefs.h"
6604 /* System header to define __stub macros and hopefully few prototypes,
6605 which can conflict with char $ac_func(); below. */
6607 /* Override any gcc2 internal prototype to avoid an error. */
6608 /* We use char because int might match the return type of a gcc2
6609 builtin and then its argument prototype would still apply. */
6614 /* The GNU C library defines this for functions which it implements
6615 to always fail with ENOSYS. Some functions are actually named
6616 something starting with __ and the normal name is an alias. */
6617 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6625 if { (eval echo configure:6626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6627 eval "ac_cv_func_$ac_func=yes"
6629 echo "configure: failed program was:" >&5
6630 cat conftest.$ac_ext >&5
6632 eval "ac_cv_func_$ac_func=no"
6637 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6638 echo "$ac_t""yes" 1>&6
6639 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6640 cat >> confdefs.h <<EOF
6641 #define $ac_tr_func 1
6645 echo "$ac_t""no" 1>&6
6649 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6651 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6652 echo "configure:6653: checking for $ac_func" >&5
6653 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6654 echo $ac_n "(cached) $ac_c" 1>&6
6656 cat > conftest.$ac_ext <<EOF
6657 #line 6658 "configure"
6658 #include "confdefs.h"
6659 /* System header to define __stub macros and hopefully few prototypes,
6660 which can conflict with char $ac_func(); below. */
6662 /* Override any gcc2 internal prototype to avoid an error. */
6663 /* We use char because int might match the return type of a gcc2
6664 builtin and then its argument prototype would still apply. */
6669 /* The GNU C library defines this for functions which it implements
6670 to always fail with ENOSYS. Some functions are actually named
6671 something starting with __ and the normal name is an alias. */
6672 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6680 if { (eval echo configure:6681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6682 eval "ac_cv_func_$ac_func=yes"
6684 echo "configure: failed program was:" >&5
6685 cat conftest.$ac_ext >&5
6687 eval "ac_cv_func_$ac_func=no"
6692 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6693 echo "$ac_t""yes" 1>&6
6694 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6695 cat >> confdefs.h <<EOF
6696 #define $ac_tr_func 1
6700 echo "$ac_t""no" 1>&6
6704 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6706 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6707 echo "configure:6708: checking for $ac_func" >&5
6708 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6709 echo $ac_n "(cached) $ac_c" 1>&6
6711 cat > conftest.$ac_ext <<EOF
6712 #line 6713 "configure"
6713 #include "confdefs.h"
6714 /* System header to define __stub macros and hopefully few prototypes,
6715 which can conflict with char $ac_func(); below. */
6717 /* Override any gcc2 internal prototype to avoid an error. */
6718 /* We use char because int might match the return type of a gcc2
6719 builtin and then its argument prototype would still apply. */
6724 /* The GNU C library defines this for functions which it implements
6725 to always fail with ENOSYS. Some functions are actually named
6726 something starting with __ and the normal name is an alias. */
6727 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6735 if { (eval echo configure:6736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6737 eval "ac_cv_func_$ac_func=yes"
6739 echo "configure: failed program was:" >&5
6740 cat conftest.$ac_ext >&5
6742 eval "ac_cv_func_$ac_func=no"
6747 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6748 echo "$ac_t""yes" 1>&6
6749 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6750 cat >> confdefs.h <<EOF
6751 #define $ac_tr_func 1
6755 echo "$ac_t""no" 1>&6
6759 for ac_func in pread _pread __pread pread64 _pread64 __pread64
6761 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6762 echo "configure:6763: checking for $ac_func" >&5
6763 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6764 echo $ac_n "(cached) $ac_c" 1>&6
6766 cat > conftest.$ac_ext <<EOF
6767 #line 6768 "configure"
6768 #include "confdefs.h"
6769 /* System header to define __stub macros and hopefully few prototypes,
6770 which can conflict with char $ac_func(); below. */
6772 /* Override any gcc2 internal prototype to avoid an error. */
6773 /* We use char because int might match the return type of a gcc2
6774 builtin and then its argument prototype would still apply. */
6779 /* The GNU C library defines this for functions which it implements
6780 to always fail with ENOSYS. Some functions are actually named
6781 something starting with __ and the normal name is an alias. */
6782 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6790 if { (eval echo configure:6791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6792 eval "ac_cv_func_$ac_func=yes"
6794 echo "configure: failed program was:" >&5
6795 cat conftest.$ac_ext >&5
6797 eval "ac_cv_func_$ac_func=no"
6802 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6803 echo "$ac_t""yes" 1>&6
6804 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6805 cat >> confdefs.h <<EOF
6806 #define $ac_tr_func 1
6810 echo "$ac_t""no" 1>&6
6814 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6816 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6817 echo "configure:6818: checking for $ac_func" >&5
6818 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6819 echo $ac_n "(cached) $ac_c" 1>&6
6821 cat > conftest.$ac_ext <<EOF
6822 #line 6823 "configure"
6823 #include "confdefs.h"
6824 /* System header to define __stub macros and hopefully few prototypes,
6825 which can conflict with char $ac_func(); below. */
6827 /* Override any gcc2 internal prototype to avoid an error. */
6828 /* We use char because int might match the return type of a gcc2
6829 builtin and then its argument prototype would still apply. */
6834 /* The GNU C library defines this for functions which it implements
6835 to always fail with ENOSYS. Some functions are actually named
6836 something starting with __ and the normal name is an alias. */
6837 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6845 if { (eval echo configure:6846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6847 eval "ac_cv_func_$ac_func=yes"
6849 echo "configure: failed program was:" >&5
6850 cat conftest.$ac_ext >&5
6852 eval "ac_cv_func_$ac_func=no"
6857 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6858 echo "$ac_t""yes" 1>&6
6859 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6860 cat >> confdefs.h <<EOF
6861 #define $ac_tr_func 1
6865 echo "$ac_t""no" 1>&6
6869 for ac_func in open64 _open64 __open64 creat64
6871 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6872 echo "configure:6873: checking for $ac_func" >&5
6873 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6874 echo $ac_n "(cached) $ac_c" 1>&6
6876 cat > conftest.$ac_ext <<EOF
6877 #line 6878 "configure"
6878 #include "confdefs.h"
6879 /* System header to define __stub macros and hopefully few prototypes,
6880 which can conflict with char $ac_func(); below. */
6882 /* Override any gcc2 internal prototype to avoid an error. */
6883 /* We use char because int might match the return type of a gcc2
6884 builtin and then its argument prototype would still apply. */
6889 /* The GNU C library defines this for functions which it implements
6890 to always fail with ENOSYS. Some functions are actually named
6891 something starting with __ and the normal name is an alias. */
6892 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6900 if { (eval echo configure:6901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6902 eval "ac_cv_func_$ac_func=yes"
6904 echo "configure: failed program was:" >&5
6905 cat conftest.$ac_ext >&5
6907 eval "ac_cv_func_$ac_func=no"
6912 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6913 echo "$ac_t""yes" 1>&6
6914 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6915 cat >> confdefs.h <<EOF
6916 #define $ac_tr_func 1
6920 echo "$ac_t""no" 1>&6
6926 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6929 if test x$ac_cv_func_stat64 = xno ; then
6930 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6931 echo "configure:6932: checking for stat64 in <sys/stat.h>" >&5
6932 cat > conftest.$ac_ext <<EOF
6933 #line 6934 "configure"
6934 #include "confdefs.h"
6936 #if defined(HAVE_UNISTD_H)
6939 #include <sys/stat.h>
6942 struct stat64 st64; exit(stat64(".",&st64));
6945 if { (eval echo configure:6946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6947 ac_cv_func_stat64=yes
6949 echo "configure: failed program was:" >&5
6950 cat conftest.$ac_ext >&5
6953 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6954 if test x$ac_cv_func_stat64 = xyes ; then
6955 cat >> confdefs.h <<\EOF
6956 #define HAVE_STAT64 1
6962 if test x$ac_cv_func_lstat64 = xno ; then
6963 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6964 echo "configure:6965: checking for lstat64 in <sys/stat.h>" >&5
6965 cat > conftest.$ac_ext <<EOF
6966 #line 6967 "configure"
6967 #include "confdefs.h"
6969 #if defined(HAVE_UNISTD_H)
6972 #include <sys/stat.h>
6975 struct stat64 st64; exit(lstat64(".",&st64));
6978 if { (eval echo configure:6979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6980 ac_cv_func_lstat64=yes
6982 echo "configure: failed program was:" >&5
6983 cat conftest.$ac_ext >&5
6986 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6987 if test x$ac_cv_func_lstat64 = xyes ; then
6988 cat >> confdefs.h <<\EOF
6989 #define HAVE_LSTAT64 1
6995 if test x$ac_cv_func_fstat64 = xno ; then
6996 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6997 echo "configure:6998: checking for fstat64 in <sys/stat.h>" >&5
6998 cat > conftest.$ac_ext <<EOF
6999 #line 7000 "configure"
7000 #include "confdefs.h"
7002 #if defined(HAVE_UNISTD_H)
7005 #include <sys/stat.h>
7008 struct stat64 st64; exit(fstat64(0,&st64));
7011 if { (eval echo configure:7012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7013 ac_cv_func_fstat64=yes
7015 echo "configure: failed program was:" >&5
7016 cat conftest.$ac_ext >&5
7019 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
7020 if test x$ac_cv_func_fstat64 = xyes ; then
7021 cat >> confdefs.h <<\EOF
7022 #define HAVE_FSTAT64 1
7028 #####################################
7029 # we might need the resolv library on some systems
7030 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
7031 echo "configure:7032: checking for dn_expand in -lresolv" >&5
7032 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
7033 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7034 echo $ac_n "(cached) $ac_c" 1>&6
7036 ac_save_LIBS="$LIBS"
7037 LIBS="-lresolv $LIBS"
7038 cat > conftest.$ac_ext <<EOF
7039 #line 7040 "configure"
7040 #include "confdefs.h"
7041 /* Override any gcc2 internal prototype to avoid an error. */
7042 /* We use char because int might match the return type of a gcc2
7043 builtin and then its argument prototype would still apply. */
7050 if { (eval echo configure:7051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7052 eval "ac_cv_lib_$ac_lib_var=yes"
7054 echo "configure: failed program was:" >&5
7055 cat conftest.$ac_ext >&5
7057 eval "ac_cv_lib_$ac_lib_var=no"
7060 LIBS="$ac_save_LIBS"
7063 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7064 echo "$ac_t""yes" 1>&6
7065 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7066 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7067 cat >> confdefs.h <<EOF
7068 #define $ac_tr_lib 1
7071 LIBS="-lresolv $LIBS"
7074 echo "$ac_t""no" 1>&6
7079 # Check for the functions putprpwnam, set_auth_parameters,
7080 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
7081 # Needed for OSF1 and HPUX.
7085 *-lsecurity*) for ac_func in putprpwnam
7087 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7088 echo "configure:7089: checking for $ac_func" >&5
7089 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7090 echo $ac_n "(cached) $ac_c" 1>&6
7092 cat > conftest.$ac_ext <<EOF
7093 #line 7094 "configure"
7094 #include "confdefs.h"
7095 /* System header to define __stub macros and hopefully few prototypes,
7096 which can conflict with char $ac_func(); below. */
7098 /* Override any gcc2 internal prototype to avoid an error. */
7099 /* We use char because int might match the return type of a gcc2
7100 builtin and then its argument prototype would still apply. */
7105 /* The GNU C library defines this for functions which it implements
7106 to always fail with ENOSYS. Some functions are actually named
7107 something starting with __ and the normal name is an alias. */
7108 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7116 if { (eval echo configure:7117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7118 eval "ac_cv_func_$ac_func=yes"
7120 echo "configure: failed program was:" >&5
7121 cat conftest.$ac_ext >&5
7123 eval "ac_cv_func_$ac_func=no"
7128 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7129 echo "$ac_t""yes" 1>&6
7130 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7131 cat >> confdefs.h <<EOF
7132 #define $ac_tr_func 1
7136 echo "$ac_t""no" 1>&6
7140 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
7141 echo "configure:7142: checking for putprpwnam in -lsecurity" >&5
7142 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
7143 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7144 echo $ac_n "(cached) $ac_c" 1>&6
7146 ac_save_LIBS="$LIBS"
7147 LIBS="-lsecurity $LIBS"
7148 cat > conftest.$ac_ext <<EOF
7149 #line 7150 "configure"
7150 #include "confdefs.h"
7151 /* Override any gcc2 internal prototype to avoid an error. */
7152 /* We use char because int might match the return type of a gcc2
7153 builtin and then its argument prototype would still apply. */
7160 if { (eval echo configure:7161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7162 eval "ac_cv_lib_$ac_lib_var=yes"
7164 echo "configure: failed program was:" >&5
7165 cat conftest.$ac_ext >&5
7167 eval "ac_cv_lib_$ac_lib_var=no"
7170 LIBS="$ac_save_LIBS"
7173 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7174 echo "$ac_t""yes" 1>&6
7175 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7176 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7177 cat >> confdefs.h <<EOF
7178 #define $ac_tr_lib 1
7181 LIBS="-lsecurity $LIBS"
7184 echo "$ac_t""no" 1>&6
7187 for ac_func in putprpwnam
7189 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7190 echo "configure:7191: checking for $ac_func" >&5
7191 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7192 echo $ac_n "(cached) $ac_c" 1>&6
7194 cat > conftest.$ac_ext <<EOF
7195 #line 7196 "configure"
7196 #include "confdefs.h"
7197 /* System header to define __stub macros and hopefully few prototypes,
7198 which can conflict with char $ac_func(); below. */
7200 /* Override any gcc2 internal prototype to avoid an error. */
7201 /* We use char because int might match the return type of a gcc2
7202 builtin and then its argument prototype would still apply. */
7207 /* The GNU C library defines this for functions which it implements
7208 to always fail with ENOSYS. Some functions are actually named
7209 something starting with __ and the normal name is an alias. */
7210 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7218 if { (eval echo configure:7219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7220 eval "ac_cv_func_$ac_func=yes"
7222 echo "configure: failed program was:" >&5
7223 cat conftest.$ac_ext >&5
7225 eval "ac_cv_func_$ac_func=no"
7230 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7231 echo "$ac_t""yes" 1>&6
7232 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7233 cat >> confdefs.h <<EOF
7234 #define $ac_tr_func 1
7238 echo "$ac_t""no" 1>&6
7246 *-lsec*) for ac_func in putprpwnam
7248 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7249 echo "configure:7250: checking for $ac_func" >&5
7250 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7251 echo $ac_n "(cached) $ac_c" 1>&6
7253 cat > conftest.$ac_ext <<EOF
7254 #line 7255 "configure"
7255 #include "confdefs.h"
7256 /* System header to define __stub macros and hopefully few prototypes,
7257 which can conflict with char $ac_func(); below. */
7259 /* Override any gcc2 internal prototype to avoid an error. */
7260 /* We use char because int might match the return type of a gcc2
7261 builtin and then its argument prototype would still apply. */
7266 /* The GNU C library defines this for functions which it implements
7267 to always fail with ENOSYS. Some functions are actually named
7268 something starting with __ and the normal name is an alias. */
7269 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7277 if { (eval echo configure:7278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7279 eval "ac_cv_func_$ac_func=yes"
7281 echo "configure: failed program was:" >&5
7282 cat conftest.$ac_ext >&5
7284 eval "ac_cv_func_$ac_func=no"
7289 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7290 echo "$ac_t""yes" 1>&6
7291 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7292 cat >> confdefs.h <<EOF
7293 #define $ac_tr_func 1
7297 echo "$ac_t""no" 1>&6
7301 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
7302 echo "configure:7303: checking for putprpwnam in -lsec" >&5
7303 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
7304 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7305 echo $ac_n "(cached) $ac_c" 1>&6
7307 ac_save_LIBS="$LIBS"
7309 cat > conftest.$ac_ext <<EOF
7310 #line 7311 "configure"
7311 #include "confdefs.h"
7312 /* Override any gcc2 internal prototype to avoid an error. */
7313 /* We use char because int might match the return type of a gcc2
7314 builtin and then its argument prototype would still apply. */
7321 if { (eval echo configure:7322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7323 eval "ac_cv_lib_$ac_lib_var=yes"
7325 echo "configure: failed program was:" >&5
7326 cat conftest.$ac_ext >&5
7328 eval "ac_cv_lib_$ac_lib_var=no"
7331 LIBS="$ac_save_LIBS"
7334 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7335 echo "$ac_t""yes" 1>&6
7336 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7337 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7338 cat >> confdefs.h <<EOF
7339 #define $ac_tr_lib 1
7345 echo "$ac_t""no" 1>&6
7348 for ac_func in putprpwnam
7350 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7351 echo "configure:7352: checking for $ac_func" >&5
7352 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7353 echo $ac_n "(cached) $ac_c" 1>&6
7355 cat > conftest.$ac_ext <<EOF
7356 #line 7357 "configure"
7357 #include "confdefs.h"
7358 /* System header to define __stub macros and hopefully few prototypes,
7359 which can conflict with char $ac_func(); below. */
7361 /* Override any gcc2 internal prototype to avoid an error. */
7362 /* We use char because int might match the return type of a gcc2
7363 builtin and then its argument prototype would still apply. */
7368 /* The GNU C library defines this for functions which it implements
7369 to always fail with ENOSYS. Some functions are actually named
7370 something starting with __ and the normal name is an alias. */
7371 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7379 if { (eval echo configure:7380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7381 eval "ac_cv_func_$ac_func=yes"
7383 echo "configure: failed program was:" >&5
7384 cat conftest.$ac_ext >&5
7386 eval "ac_cv_func_$ac_func=no"
7391 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7392 echo "$ac_t""yes" 1>&6
7393 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7394 cat >> confdefs.h <<EOF
7395 #define $ac_tr_func 1
7399 echo "$ac_t""no" 1>&6
7408 *-lsecurity*) for ac_func in set_auth_parameters
7410 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7411 echo "configure:7412: checking for $ac_func" >&5
7412 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7413 echo $ac_n "(cached) $ac_c" 1>&6
7415 cat > conftest.$ac_ext <<EOF
7416 #line 7417 "configure"
7417 #include "confdefs.h"
7418 /* System header to define __stub macros and hopefully few prototypes,
7419 which can conflict with char $ac_func(); below. */
7421 /* Override any gcc2 internal prototype to avoid an error. */
7422 /* We use char because int might match the return type of a gcc2
7423 builtin and then its argument prototype would still apply. */
7428 /* The GNU C library defines this for functions which it implements
7429 to always fail with ENOSYS. Some functions are actually named
7430 something starting with __ and the normal name is an alias. */
7431 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7439 if { (eval echo configure:7440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7441 eval "ac_cv_func_$ac_func=yes"
7443 echo "configure: failed program was:" >&5
7444 cat conftest.$ac_ext >&5
7446 eval "ac_cv_func_$ac_func=no"
7451 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7452 echo "$ac_t""yes" 1>&6
7453 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7454 cat >> confdefs.h <<EOF
7455 #define $ac_tr_func 1
7459 echo "$ac_t""no" 1>&6
7463 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
7464 echo "configure:7465: checking for set_auth_parameters in -lsecurity" >&5
7465 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7466 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7467 echo $ac_n "(cached) $ac_c" 1>&6
7469 ac_save_LIBS="$LIBS"
7470 LIBS="-lsecurity $LIBS"
7471 cat > conftest.$ac_ext <<EOF
7472 #line 7473 "configure"
7473 #include "confdefs.h"
7474 /* Override any gcc2 internal prototype to avoid an error. */
7475 /* We use char because int might match the return type of a gcc2
7476 builtin and then its argument prototype would still apply. */
7477 char set_auth_parameters();
7480 set_auth_parameters()
7483 if { (eval echo configure:7484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7485 eval "ac_cv_lib_$ac_lib_var=yes"
7487 echo "configure: failed program was:" >&5
7488 cat conftest.$ac_ext >&5
7490 eval "ac_cv_lib_$ac_lib_var=no"
7493 LIBS="$ac_save_LIBS"
7496 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7497 echo "$ac_t""yes" 1>&6
7498 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7499 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7500 cat >> confdefs.h <<EOF
7501 #define $ac_tr_lib 1
7504 LIBS="-lsecurity $LIBS"
7507 echo "$ac_t""no" 1>&6
7510 for ac_func in set_auth_parameters
7512 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7513 echo "configure:7514: checking for $ac_func" >&5
7514 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7515 echo $ac_n "(cached) $ac_c" 1>&6
7517 cat > conftest.$ac_ext <<EOF
7518 #line 7519 "configure"
7519 #include "confdefs.h"
7520 /* System header to define __stub macros and hopefully few prototypes,
7521 which can conflict with char $ac_func(); below. */
7523 /* Override any gcc2 internal prototype to avoid an error. */
7524 /* We use char because int might match the return type of a gcc2
7525 builtin and then its argument prototype would still apply. */
7530 /* The GNU C library defines this for functions which it implements
7531 to always fail with ENOSYS. Some functions are actually named
7532 something starting with __ and the normal name is an alias. */
7533 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7541 if { (eval echo configure:7542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7543 eval "ac_cv_func_$ac_func=yes"
7545 echo "configure: failed program was:" >&5
7546 cat conftest.$ac_ext >&5
7548 eval "ac_cv_func_$ac_func=no"
7553 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7554 echo "$ac_t""yes" 1>&6
7555 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7556 cat >> confdefs.h <<EOF
7557 #define $ac_tr_func 1
7561 echo "$ac_t""no" 1>&6
7569 *-lsec*) for ac_func in set_auth_parameters
7571 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7572 echo "configure:7573: checking for $ac_func" >&5
7573 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7574 echo $ac_n "(cached) $ac_c" 1>&6
7576 cat > conftest.$ac_ext <<EOF
7577 #line 7578 "configure"
7578 #include "confdefs.h"
7579 /* System header to define __stub macros and hopefully few prototypes,
7580 which can conflict with char $ac_func(); below. */
7582 /* Override any gcc2 internal prototype to avoid an error. */
7583 /* We use char because int might match the return type of a gcc2
7584 builtin and then its argument prototype would still apply. */
7589 /* The GNU C library defines this for functions which it implements
7590 to always fail with ENOSYS. Some functions are actually named
7591 something starting with __ and the normal name is an alias. */
7592 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7600 if { (eval echo configure:7601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7602 eval "ac_cv_func_$ac_func=yes"
7604 echo "configure: failed program was:" >&5
7605 cat conftest.$ac_ext >&5
7607 eval "ac_cv_func_$ac_func=no"
7612 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7613 echo "$ac_t""yes" 1>&6
7614 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7615 cat >> confdefs.h <<EOF
7616 #define $ac_tr_func 1
7620 echo "$ac_t""no" 1>&6
7624 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7625 echo "configure:7626: checking for set_auth_parameters in -lsec" >&5
7626 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7627 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7628 echo $ac_n "(cached) $ac_c" 1>&6
7630 ac_save_LIBS="$LIBS"
7632 cat > conftest.$ac_ext <<EOF
7633 #line 7634 "configure"
7634 #include "confdefs.h"
7635 /* Override any gcc2 internal prototype to avoid an error. */
7636 /* We use char because int might match the return type of a gcc2
7637 builtin and then its argument prototype would still apply. */
7638 char set_auth_parameters();
7641 set_auth_parameters()
7644 if { (eval echo configure:7645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7646 eval "ac_cv_lib_$ac_lib_var=yes"
7648 echo "configure: failed program was:" >&5
7649 cat conftest.$ac_ext >&5
7651 eval "ac_cv_lib_$ac_lib_var=no"
7654 LIBS="$ac_save_LIBS"
7657 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7658 echo "$ac_t""yes" 1>&6
7659 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7660 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7661 cat >> confdefs.h <<EOF
7662 #define $ac_tr_lib 1
7668 echo "$ac_t""no" 1>&6
7671 for ac_func in set_auth_parameters
7673 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7674 echo "configure:7675: checking for $ac_func" >&5
7675 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7676 echo $ac_n "(cached) $ac_c" 1>&6
7678 cat > conftest.$ac_ext <<EOF
7679 #line 7680 "configure"
7680 #include "confdefs.h"
7681 /* System header to define __stub macros and hopefully few prototypes,
7682 which can conflict with char $ac_func(); below. */
7684 /* Override any gcc2 internal prototype to avoid an error. */
7685 /* We use char because int might match the return type of a gcc2
7686 builtin and then its argument prototype would still apply. */
7691 /* The GNU C library defines this for functions which it implements
7692 to always fail with ENOSYS. Some functions are actually named
7693 something starting with __ and the normal name is an alias. */
7694 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7702 if { (eval echo configure:7703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7704 eval "ac_cv_func_$ac_func=yes"
7706 echo "configure: failed program was:" >&5
7707 cat conftest.$ac_ext >&5
7709 eval "ac_cv_func_$ac_func=no"
7714 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7715 echo "$ac_t""yes" 1>&6
7716 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7717 cat >> confdefs.h <<EOF
7718 #define $ac_tr_func 1
7722 echo "$ac_t""no" 1>&6
7730 # UnixWare 7.x has its getspnam in -lgen
7732 *-lgen*) for ac_func in getspnam
7734 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7735 echo "configure:7736: checking for $ac_func" >&5
7736 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7737 echo $ac_n "(cached) $ac_c" 1>&6
7739 cat > conftest.$ac_ext <<EOF
7740 #line 7741 "configure"
7741 #include "confdefs.h"
7742 /* System header to define __stub macros and hopefully few prototypes,
7743 which can conflict with char $ac_func(); below. */
7745 /* Override any gcc2 internal prototype to avoid an error. */
7746 /* We use char because int might match the return type of a gcc2
7747 builtin and then its argument prototype would still apply. */
7752 /* The GNU C library defines this for functions which it implements
7753 to always fail with ENOSYS. Some functions are actually named
7754 something starting with __ and the normal name is an alias. */
7755 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7763 if { (eval echo configure:7764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7765 eval "ac_cv_func_$ac_func=yes"
7767 echo "configure: failed program was:" >&5
7768 cat conftest.$ac_ext >&5
7770 eval "ac_cv_func_$ac_func=no"
7775 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7776 echo "$ac_t""yes" 1>&6
7777 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7778 cat >> confdefs.h <<EOF
7779 #define $ac_tr_func 1
7783 echo "$ac_t""no" 1>&6
7787 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7788 echo "configure:7789: checking for getspnam in -lgen" >&5
7789 ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7790 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7791 echo $ac_n "(cached) $ac_c" 1>&6
7793 ac_save_LIBS="$LIBS"
7795 cat > conftest.$ac_ext <<EOF
7796 #line 7797 "configure"
7797 #include "confdefs.h"
7798 /* Override any gcc2 internal prototype to avoid an error. */
7799 /* We use char because int might match the return type of a gcc2
7800 builtin and then its argument prototype would still apply. */
7807 if { (eval echo configure:7808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7809 eval "ac_cv_lib_$ac_lib_var=yes"
7811 echo "configure: failed program was:" >&5
7812 cat conftest.$ac_ext >&5
7814 eval "ac_cv_lib_$ac_lib_var=no"
7817 LIBS="$ac_save_LIBS"
7820 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7821 echo "$ac_t""yes" 1>&6
7822 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7823 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7824 cat >> confdefs.h <<EOF
7825 #define $ac_tr_lib 1
7831 echo "$ac_t""no" 1>&6
7834 for ac_func in getspnam
7836 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7837 echo "configure:7838: checking for $ac_func" >&5
7838 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7839 echo $ac_n "(cached) $ac_c" 1>&6
7841 cat > conftest.$ac_ext <<EOF
7842 #line 7843 "configure"
7843 #include "confdefs.h"
7844 /* System header to define __stub macros and hopefully few prototypes,
7845 which can conflict with char $ac_func(); below. */
7847 /* Override any gcc2 internal prototype to avoid an error. */
7848 /* We use char because int might match the return type of a gcc2
7849 builtin and then its argument prototype would still apply. */
7854 /* The GNU C library defines this for functions which it implements
7855 to always fail with ENOSYS. Some functions are actually named
7856 something starting with __ and the normal name is an alias. */
7857 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7865 if { (eval echo configure:7866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7867 eval "ac_cv_func_$ac_func=yes"
7869 echo "configure: failed program was:" >&5
7870 cat conftest.$ac_ext >&5
7872 eval "ac_cv_func_$ac_func=no"
7877 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7878 echo "$ac_t""yes" 1>&6
7879 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7880 cat >> confdefs.h <<EOF
7881 #define $ac_tr_func 1
7885 echo "$ac_t""no" 1>&6
7894 *-lsecurity*) for ac_func in getspnam
7896 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7897 echo "configure:7898: checking for $ac_func" >&5
7898 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7899 echo $ac_n "(cached) $ac_c" 1>&6
7901 cat > conftest.$ac_ext <<EOF
7902 #line 7903 "configure"
7903 #include "confdefs.h"
7904 /* System header to define __stub macros and hopefully few prototypes,
7905 which can conflict with char $ac_func(); below. */
7907 /* Override any gcc2 internal prototype to avoid an error. */
7908 /* We use char because int might match the return type of a gcc2
7909 builtin and then its argument prototype would still apply. */
7914 /* The GNU C library defines this for functions which it implements
7915 to always fail with ENOSYS. Some functions are actually named
7916 something starting with __ and the normal name is an alias. */
7917 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7925 if { (eval echo configure:7926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7927 eval "ac_cv_func_$ac_func=yes"
7929 echo "configure: failed program was:" >&5
7930 cat conftest.$ac_ext >&5
7932 eval "ac_cv_func_$ac_func=no"
7937 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7938 echo "$ac_t""yes" 1>&6
7939 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7940 cat >> confdefs.h <<EOF
7941 #define $ac_tr_func 1
7945 echo "$ac_t""no" 1>&6
7949 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7950 echo "configure:7951: checking for getspnam in -lsecurity" >&5
7951 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7952 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7953 echo $ac_n "(cached) $ac_c" 1>&6
7955 ac_save_LIBS="$LIBS"
7956 LIBS="-lsecurity $LIBS"
7957 cat > conftest.$ac_ext <<EOF
7958 #line 7959 "configure"
7959 #include "confdefs.h"
7960 /* Override any gcc2 internal prototype to avoid an error. */
7961 /* We use char because int might match the return type of a gcc2
7962 builtin and then its argument prototype would still apply. */
7969 if { (eval echo configure:7970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7971 eval "ac_cv_lib_$ac_lib_var=yes"
7973 echo "configure: failed program was:" >&5
7974 cat conftest.$ac_ext >&5
7976 eval "ac_cv_lib_$ac_lib_var=no"
7979 LIBS="$ac_save_LIBS"
7982 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7983 echo "$ac_t""yes" 1>&6
7984 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7985 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7986 cat >> confdefs.h <<EOF
7987 #define $ac_tr_lib 1
7990 LIBS="-lsecurity $LIBS"
7993 echo "$ac_t""no" 1>&6
7996 for ac_func in getspnam
7998 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7999 echo "configure:8000: checking for $ac_func" >&5
8000 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8001 echo $ac_n "(cached) $ac_c" 1>&6
8003 cat > conftest.$ac_ext <<EOF
8004 #line 8005 "configure"
8005 #include "confdefs.h"
8006 /* System header to define __stub macros and hopefully few prototypes,
8007 which can conflict with char $ac_func(); below. */
8009 /* Override any gcc2 internal prototype to avoid an error. */
8010 /* We use char because int might match the return type of a gcc2
8011 builtin and then its argument prototype would still apply. */
8016 /* The GNU C library defines this for functions which it implements
8017 to always fail with ENOSYS. Some functions are actually named
8018 something starting with __ and the normal name is an alias. */
8019 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8027 if { (eval echo configure:8028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8029 eval "ac_cv_func_$ac_func=yes"
8031 echo "configure: failed program was:" >&5
8032 cat conftest.$ac_ext >&5
8034 eval "ac_cv_func_$ac_func=no"
8039 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8040 echo "$ac_t""yes" 1>&6
8041 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8042 cat >> confdefs.h <<EOF
8043 #define $ac_tr_func 1
8047 echo "$ac_t""no" 1>&6
8055 *-lsec*) for ac_func in getspnam
8057 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8058 echo "configure:8059: checking for $ac_func" >&5
8059 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8060 echo $ac_n "(cached) $ac_c" 1>&6
8062 cat > conftest.$ac_ext <<EOF
8063 #line 8064 "configure"
8064 #include "confdefs.h"
8065 /* System header to define __stub macros and hopefully few prototypes,
8066 which can conflict with char $ac_func(); below. */
8068 /* Override any gcc2 internal prototype to avoid an error. */
8069 /* We use char because int might match the return type of a gcc2
8070 builtin and then its argument prototype would still apply. */
8075 /* The GNU C library defines this for functions which it implements
8076 to always fail with ENOSYS. Some functions are actually named
8077 something starting with __ and the normal name is an alias. */
8078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8086 if { (eval echo configure:8087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8088 eval "ac_cv_func_$ac_func=yes"
8090 echo "configure: failed program was:" >&5
8091 cat conftest.$ac_ext >&5
8093 eval "ac_cv_func_$ac_func=no"
8098 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8099 echo "$ac_t""yes" 1>&6
8100 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8101 cat >> confdefs.h <<EOF
8102 #define $ac_tr_func 1
8106 echo "$ac_t""no" 1>&6
8110 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
8111 echo "configure:8112: checking for getspnam in -lsec" >&5
8112 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
8113 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8114 echo $ac_n "(cached) $ac_c" 1>&6
8116 ac_save_LIBS="$LIBS"
8118 cat > conftest.$ac_ext <<EOF
8119 #line 8120 "configure"
8120 #include "confdefs.h"
8121 /* Override any gcc2 internal prototype to avoid an error. */
8122 /* We use char because int might match the return type of a gcc2
8123 builtin and then its argument prototype would still apply. */
8130 if { (eval echo configure:8131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8132 eval "ac_cv_lib_$ac_lib_var=yes"
8134 echo "configure: failed program was:" >&5
8135 cat conftest.$ac_ext >&5
8137 eval "ac_cv_lib_$ac_lib_var=no"
8140 LIBS="$ac_save_LIBS"
8143 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8144 echo "$ac_t""yes" 1>&6
8145 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8146 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8147 cat >> confdefs.h <<EOF
8148 #define $ac_tr_lib 1
8154 echo "$ac_t""no" 1>&6
8157 for ac_func in getspnam
8159 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8160 echo "configure:8161: checking for $ac_func" >&5
8161 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8162 echo $ac_n "(cached) $ac_c" 1>&6
8164 cat > conftest.$ac_ext <<EOF
8165 #line 8166 "configure"
8166 #include "confdefs.h"
8167 /* System header to define __stub macros and hopefully few prototypes,
8168 which can conflict with char $ac_func(); below. */
8170 /* Override any gcc2 internal prototype to avoid an error. */
8171 /* We use char because int might match the return type of a gcc2
8172 builtin and then its argument prototype would still apply. */
8177 /* The GNU C library defines this for functions which it implements
8178 to always fail with ENOSYS. Some functions are actually named
8179 something starting with __ and the normal name is an alias. */
8180 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8188 if { (eval echo configure:8189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8190 eval "ac_cv_func_$ac_func=yes"
8192 echo "configure: failed program was:" >&5
8193 cat conftest.$ac_ext >&5
8195 eval "ac_cv_func_$ac_func=no"
8200 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8201 echo "$ac_t""yes" 1>&6
8202 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8203 cat >> confdefs.h <<EOF
8204 #define $ac_tr_func 1
8208 echo "$ac_t""no" 1>&6
8217 *-lsecurity*) for ac_func in bigcrypt
8219 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8220 echo "configure:8221: checking for $ac_func" >&5
8221 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8222 echo $ac_n "(cached) $ac_c" 1>&6
8224 cat > conftest.$ac_ext <<EOF
8225 #line 8226 "configure"
8226 #include "confdefs.h"
8227 /* System header to define __stub macros and hopefully few prototypes,
8228 which can conflict with char $ac_func(); below. */
8230 /* Override any gcc2 internal prototype to avoid an error. */
8231 /* We use char because int might match the return type of a gcc2
8232 builtin and then its argument prototype would still apply. */
8237 /* The GNU C library defines this for functions which it implements
8238 to always fail with ENOSYS. Some functions are actually named
8239 something starting with __ and the normal name is an alias. */
8240 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8248 if { (eval echo configure:8249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8250 eval "ac_cv_func_$ac_func=yes"
8252 echo "configure: failed program was:" >&5
8253 cat conftest.$ac_ext >&5
8255 eval "ac_cv_func_$ac_func=no"
8260 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8261 echo "$ac_t""yes" 1>&6
8262 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8263 cat >> confdefs.h <<EOF
8264 #define $ac_tr_func 1
8268 echo "$ac_t""no" 1>&6
8272 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
8273 echo "configure:8274: checking for bigcrypt in -lsecurity" >&5
8274 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
8275 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8276 echo $ac_n "(cached) $ac_c" 1>&6
8278 ac_save_LIBS="$LIBS"
8279 LIBS="-lsecurity $LIBS"
8280 cat > conftest.$ac_ext <<EOF
8281 #line 8282 "configure"
8282 #include "confdefs.h"
8283 /* Override any gcc2 internal prototype to avoid an error. */
8284 /* We use char because int might match the return type of a gcc2
8285 builtin and then its argument prototype would still apply. */
8292 if { (eval echo configure:8293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8294 eval "ac_cv_lib_$ac_lib_var=yes"
8296 echo "configure: failed program was:" >&5
8297 cat conftest.$ac_ext >&5
8299 eval "ac_cv_lib_$ac_lib_var=no"
8302 LIBS="$ac_save_LIBS"
8305 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8306 echo "$ac_t""yes" 1>&6
8307 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8308 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8309 cat >> confdefs.h <<EOF
8310 #define $ac_tr_lib 1
8313 LIBS="-lsecurity $LIBS"
8316 echo "$ac_t""no" 1>&6
8319 for ac_func in bigcrypt
8321 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8322 echo "configure:8323: checking for $ac_func" >&5
8323 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8324 echo $ac_n "(cached) $ac_c" 1>&6
8326 cat > conftest.$ac_ext <<EOF
8327 #line 8328 "configure"
8328 #include "confdefs.h"
8329 /* System header to define __stub macros and hopefully few prototypes,
8330 which can conflict with char $ac_func(); below. */
8332 /* Override any gcc2 internal prototype to avoid an error. */
8333 /* We use char because int might match the return type of a gcc2
8334 builtin and then its argument prototype would still apply. */
8339 /* The GNU C library defines this for functions which it implements
8340 to always fail with ENOSYS. Some functions are actually named
8341 something starting with __ and the normal name is an alias. */
8342 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8350 if { (eval echo configure:8351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8352 eval "ac_cv_func_$ac_func=yes"
8354 echo "configure: failed program was:" >&5
8355 cat conftest.$ac_ext >&5
8357 eval "ac_cv_func_$ac_func=no"
8362 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8363 echo "$ac_t""yes" 1>&6
8364 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8365 cat >> confdefs.h <<EOF
8366 #define $ac_tr_func 1
8370 echo "$ac_t""no" 1>&6
8378 *-lsec*) for ac_func in bigcrypt
8380 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8381 echo "configure:8382: checking for $ac_func" >&5
8382 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8383 echo $ac_n "(cached) $ac_c" 1>&6
8385 cat > conftest.$ac_ext <<EOF
8386 #line 8387 "configure"
8387 #include "confdefs.h"
8388 /* System header to define __stub macros and hopefully few prototypes,
8389 which can conflict with char $ac_func(); below. */
8391 /* Override any gcc2 internal prototype to avoid an error. */
8392 /* We use char because int might match the return type of a gcc2
8393 builtin and then its argument prototype would still apply. */
8398 /* The GNU C library defines this for functions which it implements
8399 to always fail with ENOSYS. Some functions are actually named
8400 something starting with __ and the normal name is an alias. */
8401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8409 if { (eval echo configure:8410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8411 eval "ac_cv_func_$ac_func=yes"
8413 echo "configure: failed program was:" >&5
8414 cat conftest.$ac_ext >&5
8416 eval "ac_cv_func_$ac_func=no"
8421 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8422 echo "$ac_t""yes" 1>&6
8423 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8424 cat >> confdefs.h <<EOF
8425 #define $ac_tr_func 1
8429 echo "$ac_t""no" 1>&6
8433 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
8434 echo "configure:8435: checking for bigcrypt in -lsec" >&5
8435 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
8436 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8437 echo $ac_n "(cached) $ac_c" 1>&6
8439 ac_save_LIBS="$LIBS"
8441 cat > conftest.$ac_ext <<EOF
8442 #line 8443 "configure"
8443 #include "confdefs.h"
8444 /* Override any gcc2 internal prototype to avoid an error. */
8445 /* We use char because int might match the return type of a gcc2
8446 builtin and then its argument prototype would still apply. */
8453 if { (eval echo configure:8454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8455 eval "ac_cv_lib_$ac_lib_var=yes"
8457 echo "configure: failed program was:" >&5
8458 cat conftest.$ac_ext >&5
8460 eval "ac_cv_lib_$ac_lib_var=no"
8463 LIBS="$ac_save_LIBS"
8466 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8467 echo "$ac_t""yes" 1>&6
8468 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8469 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8470 cat >> confdefs.h <<EOF
8471 #define $ac_tr_lib 1
8477 echo "$ac_t""no" 1>&6
8480 for ac_func in bigcrypt
8482 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8483 echo "configure:8484: checking for $ac_func" >&5
8484 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8485 echo $ac_n "(cached) $ac_c" 1>&6
8487 cat > conftest.$ac_ext <<EOF
8488 #line 8489 "configure"
8489 #include "confdefs.h"
8490 /* System header to define __stub macros and hopefully few prototypes,
8491 which can conflict with char $ac_func(); below. */
8493 /* Override any gcc2 internal prototype to avoid an error. */
8494 /* We use char because int might match the return type of a gcc2
8495 builtin and then its argument prototype would still apply. */
8500 /* The GNU C library defines this for functions which it implements
8501 to always fail with ENOSYS. Some functions are actually named
8502 something starting with __ and the normal name is an alias. */
8503 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8511 if { (eval echo configure:8512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8513 eval "ac_cv_func_$ac_func=yes"
8515 echo "configure: failed program was:" >&5
8516 cat conftest.$ac_ext >&5
8518 eval "ac_cv_func_$ac_func=no"
8523 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8524 echo "$ac_t""yes" 1>&6
8525 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8526 cat >> confdefs.h <<EOF
8527 #define $ac_tr_func 1
8531 echo "$ac_t""no" 1>&6
8540 *-lsecurity*) for ac_func in getprpwnam
8542 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8543 echo "configure:8544: checking for $ac_func" >&5
8544 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8545 echo $ac_n "(cached) $ac_c" 1>&6
8547 cat > conftest.$ac_ext <<EOF
8548 #line 8549 "configure"
8549 #include "confdefs.h"
8550 /* System header to define __stub macros and hopefully few prototypes,
8551 which can conflict with char $ac_func(); below. */
8553 /* Override any gcc2 internal prototype to avoid an error. */
8554 /* We use char because int might match the return type of a gcc2
8555 builtin and then its argument prototype would still apply. */
8560 /* The GNU C library defines this for functions which it implements
8561 to always fail with ENOSYS. Some functions are actually named
8562 something starting with __ and the normal name is an alias. */
8563 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8571 if { (eval echo configure:8572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8573 eval "ac_cv_func_$ac_func=yes"
8575 echo "configure: failed program was:" >&5
8576 cat conftest.$ac_ext >&5
8578 eval "ac_cv_func_$ac_func=no"
8583 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8584 echo "$ac_t""yes" 1>&6
8585 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8586 cat >> confdefs.h <<EOF
8587 #define $ac_tr_func 1
8591 echo "$ac_t""no" 1>&6
8595 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8596 echo "configure:8597: checking for getprpwnam in -lsecurity" >&5
8597 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8598 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8599 echo $ac_n "(cached) $ac_c" 1>&6
8601 ac_save_LIBS="$LIBS"
8602 LIBS="-lsecurity $LIBS"
8603 cat > conftest.$ac_ext <<EOF
8604 #line 8605 "configure"
8605 #include "confdefs.h"
8606 /* Override any gcc2 internal prototype to avoid an error. */
8607 /* We use char because int might match the return type of a gcc2
8608 builtin and then its argument prototype would still apply. */
8615 if { (eval echo configure:8616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8617 eval "ac_cv_lib_$ac_lib_var=yes"
8619 echo "configure: failed program was:" >&5
8620 cat conftest.$ac_ext >&5
8622 eval "ac_cv_lib_$ac_lib_var=no"
8625 LIBS="$ac_save_LIBS"
8628 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8629 echo "$ac_t""yes" 1>&6
8630 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8631 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8632 cat >> confdefs.h <<EOF
8633 #define $ac_tr_lib 1
8636 LIBS="-lsecurity $LIBS"
8639 echo "$ac_t""no" 1>&6
8642 for ac_func in getprpwnam
8644 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8645 echo "configure:8646: checking for $ac_func" >&5
8646 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8647 echo $ac_n "(cached) $ac_c" 1>&6
8649 cat > conftest.$ac_ext <<EOF
8650 #line 8651 "configure"
8651 #include "confdefs.h"
8652 /* System header to define __stub macros and hopefully few prototypes,
8653 which can conflict with char $ac_func(); below. */
8655 /* Override any gcc2 internal prototype to avoid an error. */
8656 /* We use char because int might match the return type of a gcc2
8657 builtin and then its argument prototype would still apply. */
8662 /* The GNU C library defines this for functions which it implements
8663 to always fail with ENOSYS. Some functions are actually named
8664 something starting with __ and the normal name is an alias. */
8665 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8673 if { (eval echo configure:8674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8675 eval "ac_cv_func_$ac_func=yes"
8677 echo "configure: failed program was:" >&5
8678 cat conftest.$ac_ext >&5
8680 eval "ac_cv_func_$ac_func=no"
8685 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8686 echo "$ac_t""yes" 1>&6
8687 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8688 cat >> confdefs.h <<EOF
8689 #define $ac_tr_func 1
8693 echo "$ac_t""no" 1>&6
8701 *-lsec*) for ac_func in getprpwnam
8703 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8704 echo "configure:8705: checking for $ac_func" >&5
8705 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8706 echo $ac_n "(cached) $ac_c" 1>&6
8708 cat > conftest.$ac_ext <<EOF
8709 #line 8710 "configure"
8710 #include "confdefs.h"
8711 /* System header to define __stub macros and hopefully few prototypes,
8712 which can conflict with char $ac_func(); below. */
8714 /* Override any gcc2 internal prototype to avoid an error. */
8715 /* We use char because int might match the return type of a gcc2
8716 builtin and then its argument prototype would still apply. */
8721 /* The GNU C library defines this for functions which it implements
8722 to always fail with ENOSYS. Some functions are actually named
8723 something starting with __ and the normal name is an alias. */
8724 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8732 if { (eval echo configure:8733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8734 eval "ac_cv_func_$ac_func=yes"
8736 echo "configure: failed program was:" >&5
8737 cat conftest.$ac_ext >&5
8739 eval "ac_cv_func_$ac_func=no"
8744 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8745 echo "$ac_t""yes" 1>&6
8746 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8747 cat >> confdefs.h <<EOF
8748 #define $ac_tr_func 1
8752 echo "$ac_t""no" 1>&6
8756 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8757 echo "configure:8758: checking for getprpwnam in -lsec" >&5
8758 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8759 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8760 echo $ac_n "(cached) $ac_c" 1>&6
8762 ac_save_LIBS="$LIBS"
8764 cat > conftest.$ac_ext <<EOF
8765 #line 8766 "configure"
8766 #include "confdefs.h"
8767 /* Override any gcc2 internal prototype to avoid an error. */
8768 /* We use char because int might match the return type of a gcc2
8769 builtin and then its argument prototype would still apply. */
8776 if { (eval echo configure:8777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8778 eval "ac_cv_lib_$ac_lib_var=yes"
8780 echo "configure: failed program was:" >&5
8781 cat conftest.$ac_ext >&5
8783 eval "ac_cv_lib_$ac_lib_var=no"
8786 LIBS="$ac_save_LIBS"
8789 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8790 echo "$ac_t""yes" 1>&6
8791 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8792 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8793 cat >> confdefs.h <<EOF
8794 #define $ac_tr_lib 1
8800 echo "$ac_t""no" 1>&6
8803 for ac_func in getprpwnam
8805 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8806 echo "configure:8807: checking for $ac_func" >&5
8807 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8808 echo $ac_n "(cached) $ac_c" 1>&6
8810 cat > conftest.$ac_ext <<EOF
8811 #line 8812 "configure"
8812 #include "confdefs.h"
8813 /* System header to define __stub macros and hopefully few prototypes,
8814 which can conflict with char $ac_func(); below. */
8816 /* Override any gcc2 internal prototype to avoid an error. */
8817 /* We use char because int might match the return type of a gcc2
8818 builtin and then its argument prototype would still apply. */
8823 /* The GNU C library defines this for functions which it implements
8824 to always fail with ENOSYS. Some functions are actually named
8825 something starting with __ and the normal name is an alias. */
8826 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8834 if { (eval echo configure:8835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8836 eval "ac_cv_func_$ac_func=yes"
8838 echo "configure: failed program was:" >&5
8839 cat conftest.$ac_ext >&5
8841 eval "ac_cv_func_$ac_func=no"
8846 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8847 echo "$ac_t""yes" 1>&6
8848 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8849 cat >> confdefs.h <<EOF
8850 #define $ac_tr_func 1
8854 echo "$ac_t""no" 1>&6
8862 # this bit needs to be modified for each OS that is suported by
8863 # smbwrapper. You need to specify how to created a shared library and
8864 # how to compile C code to produce PIC object files
8866 # these are the defaults, good for lots of systems
8875 # Assume non-shared by default and override below
8877 echo $ac_n "checking ability to build shared libraries""... $ac_c" 1>&6
8878 echo "configure:8879: checking ability to build shared libraries" >&5
8880 # and these are for particular systems
8882 *linux*) cat >> confdefs.h <<\EOF
8888 DYNEXP="-Wl,--export-dynamic"
8890 SONAMEFLAG="-Wl,-soname="
8891 cat >> confdefs.h <<\EOF
8892 #define STAT_ST_BLOCKSIZE 512
8896 *solaris*) cat >> confdefs.h <<\EOF
8903 if test "${GCC}" = "yes"; then
8905 if test "${ac_cv_prog_gnu_ld}" = "yes"; then
8910 ## ${CFLAGS} added for building 64-bit shared
8911 ## libs using Sun's Compiler
8912 LDSHFLAGS="-G \${CFLAGS}"
8916 cat >> confdefs.h <<\EOF
8917 #define STAT_ST_BLOCKSIZE 512
8921 *sunos*) cat >> confdefs.h <<\EOF
8927 SONAMEFLAG="-Wl,-h,"
8928 PICFLAG="-KPIC" # Is this correct for SunOS
8930 *bsd*) BLDSHARED="true"
8932 DYNEXP="-Wl,-Bdynamic"
8933 SONAMEFLAG="-Wl,-soname,"
8935 cat >> confdefs.h <<\EOF
8936 #define STAT_ST_BLOCKSIZE 512
8940 *irix*) cat >> confdefs.h <<\EOF
8945 *irix6*) cat >> confdefs.h <<\EOF
8951 ATTEMPT_WRAP32_BUILD=yes
8953 LDSHFLAGS="-set_version sgi1.0 -shared"
8954 SONAMEFLAG="-soname "
8956 if test "${GCC}" = "yes"; then
8961 cat >> confdefs.h <<\EOF
8962 #define STAT_ST_BLOCKSIZE 512
8966 *aix*) cat >> confdefs.h <<\EOF
8971 LDSHFLAGS="-Wl,-bexpall,-bM:SRE,-bnoentry"
8972 DYNEXP="-Wl,-brtl,-bexpall"
8973 if test "${GCC}" = "yes"; then
8976 PICFLAG="-O2 -qmaxmem=6000"
8977 ## for funky AIX compiler using strncpy()
8978 CFLAGS="$CFLAGS -D_LINUX_SOURCE_COMPAT"
8981 cat >> confdefs.h <<\EOF
8982 #define STAT_ST_BLOCKSIZE DEV_BSIZE
8986 *hpux*) cat >> confdefs.h <<\EOF
8991 # Use special PIC flags for the native HP-UX compiler.
8992 if test $ac_cv_prog_cc_Ae = yes; then
8995 LDSHFLAGS="-B symbolic -b -z"
9000 cat >> confdefs.h <<\EOF
9001 #define STAT_ST_BLOCKSIZE 8192
9005 *qnx*) cat >> confdefs.h <<\EOF
9009 *osf*) cat >> confdefs.h <<\EOF
9015 SONAMEFLAG="-Wl,-soname,"
9018 *sco*) cat >> confdefs.h <<\EOF
9022 *unixware*) cat >> confdefs.h <<\EOF
9028 SONAMEFLAG="-Wl,-soname,"
9031 *next2*) cat >> confdefs.h <<\EOF
9035 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
9036 set dummy groff; ac_word=$2
9037 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9038 echo "configure:9039: checking for $ac_word" >&5
9039 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
9040 echo $ac_n "(cached) $ac_c" 1>&6
9042 if test -n "$ROFF"; then
9043 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
9045 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9047 for ac_dir in $ac_dummy; do
9048 test -z "$ac_dir" && ac_dir=.
9049 if test -f $ac_dir/$ac_word; then
9050 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
9057 ROFF="$ac_cv_prog_ROFF"
9058 if test -n "$ROFF"; then
9059 echo "$ac_t""$ROFF" 1>&6
9061 echo "$ac_t""no" 1>&6
9066 *-univel-*) if test "$GCC" != yes ; then
9067 cat >> confdefs.h <<\EOF
9068 #define HAVE_MEMSET 1
9075 *mips-sni-sysv4*) cat >> confdefs.h <<\EOF
9076 #define RELIANTUNIX 1
9083 if test "$GCC" != yes ; then
9084 cat >> confdefs.h <<\EOF
9085 #define HAVE_MEMSET 1
9093 echo "$ac_t""$BLDSHARED" 1>&6
9094 echo $ac_n "checking linker flags for shared libraries""... $ac_c" 1>&6
9095 echo "configure:9096: checking linker flags for shared libraries" >&5
9096 echo "$ac_t""$LDSHFLAGS" 1>&6
9097 echo $ac_n "checking compiler flags for position-independent code""... $ac_c" 1>&6
9098 echo "configure:9099: checking compiler flags for position-independent code" >&5
9099 echo "$ac_t""$PICFLAGS" 1>&6
9101 #######################################################
9102 # test whether building a shared library actually works
9103 if test $BLDSHARED = true; then
9104 echo $ac_n "checking whether building shared libraries actually works""... $ac_c" 1>&6
9105 echo "configure:9106: checking whether building shared libraries actually works" >&5
9106 if eval "test \"`echo '$''{'ac_cv_shlib_works'+set}'`\" = set"; then
9107 echo $ac_n "(cached) $ac_c" 1>&6
9110 ac_cv_shlib_works=no
9111 # try building a trivial shared library
9112 $CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.po ${srcdir-.}/tests/shlib.c &&
9113 $CC $CPPFLAGS $CFLAGS $LDSHFLAGS -o shlib.so shlib.po &&
9114 ac_cv_shlib_works=yes
9115 rm -f shlib.so shlib.po
9119 echo "$ac_t""$ac_cv_shlib_works" 1>&6
9120 if test $ac_cv_shlib_works = no; then
9126 # this updates our target list if we can build shared libs
9127 if test $BLDSHARED = true; then
9128 LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
9130 LIBSMBCLIENT_SHARED=
9135 echo $ac_n "checking for long long""... $ac_c" 1>&6
9136 echo "configure:9137: checking for long long" >&5
9137 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
9138 echo $ac_n "(cached) $ac_c" 1>&6
9141 if test "$cross_compiling" = yes; then
9142 samba_cv_have_longlong=cross
9144 cat > conftest.$ac_ext <<EOF
9145 #line 9146 "configure"
9146 #include "confdefs.h"
9148 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
9150 if { (eval echo configure:9151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9152 samba_cv_have_longlong=yes
9154 echo "configure: failed program was:" >&5
9155 cat conftest.$ac_ext >&5
9157 samba_cv_have_longlong=no
9164 echo "$ac_t""$samba_cv_have_longlong" 1>&6
9165 if test x"$samba_cv_have_longlong" = x"yes"; then
9166 cat >> confdefs.h <<\EOF
9167 #define HAVE_LONGLONG 1
9173 # Check if the compiler supports the LL prefix on long long integers.
9176 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
9177 echo "configure:9178: checking for LL suffix on long long integers" >&5
9178 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
9179 echo $ac_n "(cached) $ac_c" 1>&6
9182 cat > conftest.$ac_ext <<EOF
9183 #line 9184 "configure"
9184 #include "confdefs.h"
9187 long long i = 0x8000000000LL
9190 if { (eval echo configure:9191: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9192 samba_cv_compiler_supports_ll=yes
9194 echo "configure: failed program was:" >&5
9195 cat conftest.$ac_ext >&5
9197 samba_cv_compiler_supports_ll=no
9202 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
9203 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
9204 cat >> confdefs.h <<\EOF
9205 #define COMPILER_SUPPORTS_LL 1
9211 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
9212 echo "configure:9213: checking for 64 bit off_t" >&5
9213 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
9214 echo $ac_n "(cached) $ac_c" 1>&6
9217 if test "$cross_compiling" = yes; then
9218 samba_cv_SIZEOF_OFF_T=cross
9220 cat > conftest.$ac_ext <<EOF
9221 #line 9222 "configure"
9222 #include "confdefs.h"
9224 #include <sys/stat.h>
9225 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
9227 if { (eval echo configure:9228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9229 samba_cv_SIZEOF_OFF_T=yes
9231 echo "configure: failed program was:" >&5
9232 cat conftest.$ac_ext >&5
9234 samba_cv_SIZEOF_OFF_T=no
9241 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
9242 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
9243 cat >> confdefs.h <<\EOF
9244 #define SIZEOF_OFF_T 8
9249 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
9250 echo "configure:9251: checking for off64_t" >&5
9251 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
9252 echo $ac_n "(cached) $ac_c" 1>&6
9255 if test "$cross_compiling" = yes; then
9256 samba_cv_HAVE_OFF64_T=cross
9258 cat > conftest.$ac_ext <<EOF
9259 #line 9260 "configure"
9260 #include "confdefs.h"
9262 #if defined(HAVE_UNISTD_H)
9266 #include <sys/stat.h>
9267 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9269 if { (eval echo configure:9270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9271 samba_cv_HAVE_OFF64_T=yes
9273 echo "configure: failed program was:" >&5
9274 cat conftest.$ac_ext >&5
9276 samba_cv_HAVE_OFF64_T=no
9283 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
9284 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
9285 cat >> confdefs.h <<\EOF
9286 #define HAVE_OFF64_T 1
9291 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
9292 echo "configure:9293: checking for 64 bit ino_t" >&5
9293 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
9294 echo $ac_n "(cached) $ac_c" 1>&6
9297 if test "$cross_compiling" = yes; then
9298 samba_cv_SIZEOF_INO_T=cross
9300 cat > conftest.$ac_ext <<EOF
9301 #line 9302 "configure"
9302 #include "confdefs.h"
9304 #include <sys/stat.h>
9305 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
9307 if { (eval echo configure:9308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9309 samba_cv_SIZEOF_INO_T=yes
9311 echo "configure: failed program was:" >&5
9312 cat conftest.$ac_ext >&5
9314 samba_cv_SIZEOF_INO_T=no
9321 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
9322 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
9323 cat >> confdefs.h <<\EOF
9324 #define SIZEOF_INO_T 8
9329 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
9330 echo "configure:9331: checking for ino64_t" >&5
9331 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
9332 echo $ac_n "(cached) $ac_c" 1>&6
9335 if test "$cross_compiling" = yes; then
9336 samba_cv_HAVE_INO64_T=cross
9338 cat > conftest.$ac_ext <<EOF
9339 #line 9340 "configure"
9340 #include "confdefs.h"
9342 #if defined(HAVE_UNISTD_H)
9346 #include <sys/stat.h>
9347 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9349 if { (eval echo configure:9350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9351 samba_cv_HAVE_INO64_T=yes
9353 echo "configure: failed program was:" >&5
9354 cat conftest.$ac_ext >&5
9356 samba_cv_HAVE_INO64_T=no
9363 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
9364 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
9365 cat >> confdefs.h <<\EOF
9366 #define HAVE_INO64_T 1
9371 echo $ac_n "checking for dev64_t""... $ac_c" 1>&6
9372 echo "configure:9373: checking for dev64_t" >&5
9373 if eval "test \"`echo '$''{'samba_cv_HAVE_DEV64_T'+set}'`\" = set"; then
9374 echo $ac_n "(cached) $ac_c" 1>&6
9377 if test "$cross_compiling" = yes; then
9378 samba_cv_HAVE_DEV64_T=cross
9380 cat > conftest.$ac_ext <<EOF
9381 #line 9382 "configure"
9382 #include "confdefs.h"
9384 #if defined(HAVE_UNISTD_H)
9388 #include <sys/stat.h>
9389 main() { struct stat64 st; dev64_t s; if (sizeof(dev_t) == sizeof(dev64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9391 if { (eval echo configure:9392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9393 samba_cv_HAVE_DEV64_T=yes
9395 echo "configure: failed program was:" >&5
9396 cat conftest.$ac_ext >&5
9398 samba_cv_HAVE_DEV64_T=no
9405 echo "$ac_t""$samba_cv_HAVE_DEV64_T" 1>&6
9406 if test x"$samba_cv_HAVE_DEV64_T" = x"yes"; then
9407 cat >> confdefs.h <<\EOF
9408 #define HAVE_DEV64_T 1
9413 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
9414 echo "configure:9415: checking for struct dirent64" >&5
9415 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
9416 echo $ac_n "(cached) $ac_c" 1>&6
9419 cat > conftest.$ac_ext <<EOF
9420 #line 9421 "configure"
9421 #include "confdefs.h"
9423 #if defined(HAVE_UNISTD_H)
9426 #include <sys/types.h>
9432 if { (eval echo configure:9433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9434 samba_cv_HAVE_STRUCT_DIRENT64=yes
9436 echo "configure: failed program was:" >&5
9437 cat conftest.$ac_ext >&5
9439 samba_cv_HAVE_STRUCT_DIRENT64=no
9444 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
9445 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes" && test x"$ac_cv_func_readdir64" = x"yes"; then
9446 cat >> confdefs.h <<\EOF
9447 #define HAVE_STRUCT_DIRENT64 1
9452 echo $ac_n "checking for major macro""... $ac_c" 1>&6
9453 echo "configure:9454: checking for major macro" >&5
9454 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MAJOR_FN'+set}'`\" = set"; then
9455 echo $ac_n "(cached) $ac_c" 1>&6
9458 if test "$cross_compiling" = yes; then
9459 samba_cv_HAVE_DEVICE_MAJOR_FN=cross
9461 cat > conftest.$ac_ext <<EOF
9462 #line 9463 "configure"
9463 #include "confdefs.h"
9465 #if defined(HAVE_UNISTD_H)
9468 #include <sys/types.h>
9469 main() { dev_t dev; int i = major(dev); return 0; }
9471 if { (eval echo configure:9472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9473 samba_cv_HAVE_DEVICE_MAJOR_FN=yes
9475 echo "configure: failed program was:" >&5
9476 cat conftest.$ac_ext >&5
9478 samba_cv_HAVE_DEVICE_MAJOR_FN=no
9485 echo "$ac_t""$samba_cv_HAVE_DEVICE_MAJOR_FN" 1>&6
9486 if test x"$samba_cv_HAVE_DEVICE_MAJOR_FN" = x"yes"; then
9487 cat >> confdefs.h <<\EOF
9488 #define HAVE_DEVICE_MAJOR_FN 1
9493 echo $ac_n "checking for minor macro""... $ac_c" 1>&6
9494 echo "configure:9495: checking for minor macro" >&5
9495 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MINOR_FN'+set}'`\" = set"; then
9496 echo $ac_n "(cached) $ac_c" 1>&6
9499 if test "$cross_compiling" = yes; then
9500 samba_cv_HAVE_DEVICE_MINOR_FN=cross
9502 cat > conftest.$ac_ext <<EOF
9503 #line 9504 "configure"
9504 #include "confdefs.h"
9506 #if defined(HAVE_UNISTD_H)
9509 #include <sys/types.h>
9510 main() { dev_t dev; int i = minor(dev); return 0; }
9512 if { (eval echo configure:9513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9514 samba_cv_HAVE_DEVICE_MINOR_FN=yes
9516 echo "configure: failed program was:" >&5
9517 cat conftest.$ac_ext >&5
9519 samba_cv_HAVE_DEVICE_MINOR_FN=no
9526 echo "$ac_t""$samba_cv_HAVE_DEVICE_MINOR_FN" 1>&6
9527 if test x"$samba_cv_HAVE_DEVICE_MINOR_FN" = x"yes"; then
9528 cat >> confdefs.h <<\EOF
9529 #define HAVE_DEVICE_MINOR_FN 1
9534 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
9535 echo "configure:9536: checking for unsigned char" >&5
9536 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
9537 echo $ac_n "(cached) $ac_c" 1>&6
9540 if test "$cross_compiling" = yes; then
9541 samba_cv_HAVE_UNSIGNED_CHAR=cross
9543 cat > conftest.$ac_ext <<EOF
9544 #line 9545 "configure"
9545 #include "confdefs.h"
9547 main() { char c; c=250; exit((c > 0)?0:1); }
9549 if { (eval echo configure:9550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9551 samba_cv_HAVE_UNSIGNED_CHAR=yes
9553 echo "configure: failed program was:" >&5
9554 cat conftest.$ac_ext >&5
9556 samba_cv_HAVE_UNSIGNED_CHAR=no
9563 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
9564 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
9565 cat >> confdefs.h <<\EOF
9566 #define HAVE_UNSIGNED_CHAR 1
9571 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
9572 echo "configure:9573: checking for sin_len in sock" >&5
9573 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
9574 echo $ac_n "(cached) $ac_c" 1>&6
9577 cat > conftest.$ac_ext <<EOF
9578 #line 9579 "configure"
9579 #include "confdefs.h"
9580 #include <sys/types.h>
9581 #include <sys/socket.h>
9582 #include <netinet/in.h>
9584 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
9587 if { (eval echo configure:9588: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9589 samba_cv_HAVE_SOCK_SIN_LEN=yes
9591 echo "configure: failed program was:" >&5
9592 cat conftest.$ac_ext >&5
9594 samba_cv_HAVE_SOCK_SIN_LEN=no
9599 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
9600 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
9601 cat >> confdefs.h <<\EOF
9602 #define HAVE_SOCK_SIN_LEN 1
9607 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
9608 echo "configure:9609: checking whether seekdir returns void" >&5
9609 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
9610 echo $ac_n "(cached) $ac_c" 1>&6
9613 cat > conftest.$ac_ext <<EOF
9614 #line 9615 "configure"
9615 #include "confdefs.h"
9616 #include <sys/types.h>
9618 void seekdir(DIR *d, long loc) { return; }
9623 if { (eval echo configure:9624: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9625 samba_cv_SEEKDIR_RETURNS_VOID=yes
9627 echo "configure: failed program was:" >&5
9628 cat conftest.$ac_ext >&5
9630 samba_cv_SEEKDIR_RETURNS_VOID=no
9635 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
9636 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
9637 cat >> confdefs.h <<\EOF
9638 #define SEEKDIR_RETURNS_VOID 1
9643 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
9644 echo "configure:9645: checking for __FILE__ macro" >&5
9645 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
9646 echo $ac_n "(cached) $ac_c" 1>&6
9649 cat > conftest.$ac_ext <<EOF
9650 #line 9651 "configure"
9651 #include "confdefs.h"
9654 printf("%s\n", __FILE__);
9657 if { (eval echo configure:9658: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9659 samba_cv_HAVE_FILE_MACRO=yes
9661 echo "configure: failed program was:" >&5
9662 cat conftest.$ac_ext >&5
9664 samba_cv_HAVE_FILE_MACRO=no
9669 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
9670 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
9671 cat >> confdefs.h <<\EOF
9672 #define HAVE_FILE_MACRO 1
9677 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9678 echo "configure:9679: checking for __FUNCTION__ macro" >&5
9679 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9680 echo $ac_n "(cached) $ac_c" 1>&6
9683 cat > conftest.$ac_ext <<EOF
9684 #line 9685 "configure"
9685 #include "confdefs.h"
9688 printf("%s\n", __FUNCTION__);
9691 if { (eval echo configure:9692: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9693 samba_cv_HAVE_FUNCTION_MACRO=yes
9695 echo "configure: failed program was:" >&5
9696 cat conftest.$ac_ext >&5
9698 samba_cv_HAVE_FUNCTION_MACRO=no
9703 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9704 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
9705 cat >> confdefs.h <<\EOF
9706 #define HAVE_FUNCTION_MACRO 1
9711 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9712 echo "configure:9713: checking if gettimeofday takes tz argument" >&5
9713 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9714 echo $ac_n "(cached) $ac_c" 1>&6
9717 if test "$cross_compiling" = yes; then
9718 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
9720 cat > conftest.$ac_ext <<EOF
9721 #line 9722 "configure"
9722 #include "confdefs.h"
9724 #include <sys/time.h>
9726 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9728 if { (eval echo configure:9729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9730 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
9732 echo "configure: failed program was:" >&5
9733 cat conftest.$ac_ext >&5
9735 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
9742 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9743 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
9744 cat >> confdefs.h <<\EOF
9745 #define HAVE_GETTIMEOFDAY_TZ 1
9750 echo $ac_n "checking for __va_copy""... $ac_c" 1>&6
9751 echo "configure:9752: checking for __va_copy" >&5
9752 if eval "test \"`echo '$''{'samba_cv_HAVE_VA_COPY'+set}'`\" = set"; then
9753 echo $ac_n "(cached) $ac_c" 1>&6
9756 cat > conftest.$ac_ext <<EOF
9757 #line 9758 "configure"
9758 #include "confdefs.h"
9765 if { (eval echo configure:9766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9767 samba_cv_HAVE_VA_COPY=yes
9769 echo "configure: failed program was:" >&5
9770 cat conftest.$ac_ext >&5
9772 samba_cv_HAVE_VA_COPY=no
9777 echo "$ac_t""$samba_cv_HAVE_VA_COPY" 1>&6
9778 if test x"$samba_cv_HAVE_VA_COPY" = x"yes"; then
9779 cat >> confdefs.h <<\EOF
9780 #define HAVE_VA_COPY 1
9785 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
9786 echo "configure:9787: checking for C99 vsnprintf" >&5
9787 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
9788 echo $ac_n "(cached) $ac_c" 1>&6
9791 if test "$cross_compiling" = yes; then
9792 samba_cv_HAVE_C99_VSNPRINTF=cross
9794 cat > conftest.$ac_ext <<EOF
9795 #line 9796 "configure"
9796 #include "confdefs.h"
9798 #include <sys/types.h>
9800 void foo(const char *format, ...) {
9805 va_start(ap, format);
9806 len = vsnprintf(buf, 0, format, ap);
9808 if (len != 5) exit(1);
9810 va_start(ap, format);
9811 len = vsnprintf(0, 0, format, ap);
9813 if (len != 5) exit(1);
9815 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
9819 main() { foo("hello"); }
9822 if { (eval echo configure:9823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9824 samba_cv_HAVE_C99_VSNPRINTF=yes
9826 echo "configure: failed program was:" >&5
9827 cat conftest.$ac_ext >&5
9829 samba_cv_HAVE_C99_VSNPRINTF=no
9836 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
9837 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
9838 cat >> confdefs.h <<\EOF
9839 #define HAVE_C99_VSNPRINTF 1
9844 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9845 echo "configure:9846: checking for broken readdir" >&5
9846 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9847 echo $ac_n "(cached) $ac_c" 1>&6
9850 if test "$cross_compiling" = yes; then
9851 samba_cv_HAVE_BROKEN_READDIR=cross
9853 cat > conftest.$ac_ext <<EOF
9854 #line 9855 "configure"
9855 #include "confdefs.h"
9856 #include <sys/types.h>
9858 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9859 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9860 di->d_name[0] == 0) exit(0); exit(1);}
9862 if { (eval echo configure:9863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9864 samba_cv_HAVE_BROKEN_READDIR=yes
9866 echo "configure: failed program was:" >&5
9867 cat conftest.$ac_ext >&5
9869 samba_cv_HAVE_BROKEN_READDIR=no
9876 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9877 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
9878 cat >> confdefs.h <<\EOF
9879 #define HAVE_BROKEN_READDIR 1
9884 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9885 echo "configure:9886: checking for utimbuf" >&5
9886 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9887 echo $ac_n "(cached) $ac_c" 1>&6
9890 cat > conftest.$ac_ext <<EOF
9891 #line 9892 "configure"
9892 #include "confdefs.h"
9893 #include <sys/types.h>
9896 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9899 if { (eval echo configure:9900: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9901 samba_cv_HAVE_UTIMBUF=yes
9903 echo "configure: failed program was:" >&5
9904 cat conftest.$ac_ext >&5
9906 samba_cv_HAVE_UTIMBUF=no
9911 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9912 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
9913 cat >> confdefs.h <<\EOF
9914 #define HAVE_UTIMBUF 1
9920 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
9922 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9923 echo "configure:9924: checking for $ac_func" >&5
9924 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9925 echo $ac_n "(cached) $ac_c" 1>&6
9927 cat > conftest.$ac_ext <<EOF
9928 #line 9929 "configure"
9929 #include "confdefs.h"
9930 /* System header to define __stub macros and hopefully few prototypes,
9931 which can conflict with char $ac_func(); below. */
9933 /* Override any gcc2 internal prototype to avoid an error. */
9934 /* We use char because int might match the return type of a gcc2
9935 builtin and then its argument prototype would still apply. */
9940 /* The GNU C library defines this for functions which it implements
9941 to always fail with ENOSYS. Some functions are actually named
9942 something starting with __ and the normal name is an alias. */
9943 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9951 if { (eval echo configure:9952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9953 eval "ac_cv_func_$ac_func=yes"
9955 echo "configure: failed program was:" >&5
9956 cat conftest.$ac_ext >&5
9958 eval "ac_cv_func_$ac_func=no"
9963 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9964 echo "$ac_t""yes" 1>&6
9965 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9966 cat >> confdefs.h <<EOF
9967 #define $ac_tr_func 1
9971 echo "$ac_t""no" 1>&6
9976 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9977 echo "configure:9978: checking for ut_name in utmp" >&5
9978 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9979 echo $ac_n "(cached) $ac_c" 1>&6
9982 cat > conftest.$ac_ext <<EOF
9983 #line 9984 "configure"
9984 #include "confdefs.h"
9985 #include <sys/types.h>
9988 struct utmp ut; ut.ut_name[0] = 'a';
9991 if { (eval echo configure:9992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9993 samba_cv_HAVE_UT_UT_NAME=yes
9995 echo "configure: failed program was:" >&5
9996 cat conftest.$ac_ext >&5
9998 samba_cv_HAVE_UT_UT_NAME=no
10003 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
10004 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
10005 cat >> confdefs.h <<\EOF
10006 #define HAVE_UT_UT_NAME 1
10011 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
10012 echo "configure:10013: checking for ut_user in utmp" >&5
10013 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
10014 echo $ac_n "(cached) $ac_c" 1>&6
10017 cat > conftest.$ac_ext <<EOF
10018 #line 10019 "configure"
10019 #include "confdefs.h"
10020 #include <sys/types.h>
10023 struct utmp ut; ut.ut_user[0] = 'a';
10026 if { (eval echo configure:10027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10028 samba_cv_HAVE_UT_UT_USER=yes
10030 echo "configure: failed program was:" >&5
10031 cat conftest.$ac_ext >&5
10033 samba_cv_HAVE_UT_UT_USER=no
10038 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
10039 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
10040 cat >> confdefs.h <<\EOF
10041 #define HAVE_UT_UT_USER 1
10046 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
10047 echo "configure:10048: checking for ut_id in utmp" >&5
10048 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
10049 echo $ac_n "(cached) $ac_c" 1>&6
10052 cat > conftest.$ac_ext <<EOF
10053 #line 10054 "configure"
10054 #include "confdefs.h"
10055 #include <sys/types.h>
10058 struct utmp ut; ut.ut_id[0] = 'a';
10061 if { (eval echo configure:10062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10063 samba_cv_HAVE_UT_UT_ID=yes
10065 echo "configure: failed program was:" >&5
10066 cat conftest.$ac_ext >&5
10068 samba_cv_HAVE_UT_UT_ID=no
10073 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
10074 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
10075 cat >> confdefs.h <<\EOF
10076 #define HAVE_UT_UT_ID 1
10081 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
10082 echo "configure:10083: checking for ut_host in utmp" >&5
10083 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
10084 echo $ac_n "(cached) $ac_c" 1>&6
10087 cat > conftest.$ac_ext <<EOF
10088 #line 10089 "configure"
10089 #include "confdefs.h"
10090 #include <sys/types.h>
10093 struct utmp ut; ut.ut_host[0] = 'a';
10096 if { (eval echo configure:10097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10098 samba_cv_HAVE_UT_UT_HOST=yes
10100 echo "configure: failed program was:" >&5
10101 cat conftest.$ac_ext >&5
10103 samba_cv_HAVE_UT_UT_HOST=no
10108 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
10109 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
10110 cat >> confdefs.h <<\EOF
10111 #define HAVE_UT_UT_HOST 1
10116 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
10117 echo "configure:10118: checking for ut_time in utmp" >&5
10118 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
10119 echo $ac_n "(cached) $ac_c" 1>&6
10122 cat > conftest.$ac_ext <<EOF
10123 #line 10124 "configure"
10124 #include "confdefs.h"
10125 #include <sys/types.h>
10128 struct utmp ut; time_t t; ut.ut_time = t;
10131 if { (eval echo configure:10132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10133 samba_cv_HAVE_UT_UT_TIME=yes
10135 echo "configure: failed program was:" >&5
10136 cat conftest.$ac_ext >&5
10138 samba_cv_HAVE_UT_UT_TIME=no
10143 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
10144 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
10145 cat >> confdefs.h <<\EOF
10146 #define HAVE_UT_UT_TIME 1
10151 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
10152 echo "configure:10153: checking for ut_tv in utmp" >&5
10153 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
10154 echo $ac_n "(cached) $ac_c" 1>&6
10157 cat > conftest.$ac_ext <<EOF
10158 #line 10159 "configure"
10159 #include "confdefs.h"
10160 #include <sys/types.h>
10163 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
10166 if { (eval echo configure:10167: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10168 samba_cv_HAVE_UT_UT_TV=yes
10170 echo "configure: failed program was:" >&5
10171 cat conftest.$ac_ext >&5
10173 samba_cv_HAVE_UT_UT_TV=no
10178 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
10179 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
10180 cat >> confdefs.h <<\EOF
10181 #define HAVE_UT_UT_TV 1
10186 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
10187 echo "configure:10188: checking for ut_type in utmp" >&5
10188 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
10189 echo $ac_n "(cached) $ac_c" 1>&6
10192 cat > conftest.$ac_ext <<EOF
10193 #line 10194 "configure"
10194 #include "confdefs.h"
10195 #include <sys/types.h>
10198 struct utmp ut; ut.ut_type = 0;
10201 if { (eval echo configure:10202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10203 samba_cv_HAVE_UT_UT_TYPE=yes
10205 echo "configure: failed program was:" >&5
10206 cat conftest.$ac_ext >&5
10208 samba_cv_HAVE_UT_UT_TYPE=no
10213 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
10214 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
10215 cat >> confdefs.h <<\EOF
10216 #define HAVE_UT_UT_TYPE 1
10221 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
10222 echo "configure:10223: checking for ut_pid in utmp" >&5
10223 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
10224 echo $ac_n "(cached) $ac_c" 1>&6
10227 cat > conftest.$ac_ext <<EOF
10228 #line 10229 "configure"
10229 #include "confdefs.h"
10230 #include <sys/types.h>
10233 struct utmp ut; ut.ut_pid = 0;
10236 if { (eval echo configure:10237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10238 samba_cv_HAVE_UT_UT_PID=yes
10240 echo "configure: failed program was:" >&5
10241 cat conftest.$ac_ext >&5
10243 samba_cv_HAVE_UT_UT_PID=no
10248 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
10249 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
10250 cat >> confdefs.h <<\EOF
10251 #define HAVE_UT_UT_PID 1
10256 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
10257 echo "configure:10258: checking for ut_exit in utmp" >&5
10258 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
10259 echo $ac_n "(cached) $ac_c" 1>&6
10262 cat > conftest.$ac_ext <<EOF
10263 #line 10264 "configure"
10264 #include "confdefs.h"
10265 #include <sys/types.h>
10268 struct utmp ut; ut.ut_exit.e_exit = 0;
10271 if { (eval echo configure:10272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10273 samba_cv_HAVE_UT_UT_EXIT=yes
10275 echo "configure: failed program was:" >&5
10276 cat conftest.$ac_ext >&5
10278 samba_cv_HAVE_UT_UT_EXIT=no
10283 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
10284 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
10285 cat >> confdefs.h <<\EOF
10286 #define HAVE_UT_UT_EXIT 1
10291 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
10292 echo "configure:10293: checking for ut_addr in utmp" >&5
10293 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
10294 echo $ac_n "(cached) $ac_c" 1>&6
10297 cat > conftest.$ac_ext <<EOF
10298 #line 10299 "configure"
10299 #include "confdefs.h"
10300 #include <sys/types.h>
10303 struct utmp ut; ut.ut_addr = 0;
10306 if { (eval echo configure:10307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10308 samba_cv_HAVE_UT_UT_ADDR=yes
10310 echo "configure: failed program was:" >&5
10311 cat conftest.$ac_ext >&5
10313 samba_cv_HAVE_UT_UT_ADDR=no
10318 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
10319 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
10320 cat >> confdefs.h <<\EOF
10321 #define HAVE_UT_UT_ADDR 1
10326 if test x$ac_cv_func_pututline = xyes ; then
10327 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
10328 echo "configure:10329: checking whether pututline returns pointer" >&5
10329 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
10330 echo $ac_n "(cached) $ac_c" 1>&6
10333 cat > conftest.$ac_ext <<EOF
10334 #line 10335 "configure"
10335 #include "confdefs.h"
10336 #include <sys/types.h>
10339 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
10342 if { (eval echo configure:10343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10344 samba_cv_PUTUTLINE_RETURNS_UTMP=yes
10346 echo "configure: failed program was:" >&5
10347 cat conftest.$ac_ext >&5
10349 samba_cv_PUTUTLINE_RETURNS_UTMP=no
10354 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
10355 if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
10356 cat >> confdefs.h <<\EOF
10357 #define PUTUTLINE_RETURNS_UTMP 1
10363 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
10364 echo "configure:10365: checking for ut_syslen in utmpx" >&5
10365 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
10366 echo $ac_n "(cached) $ac_c" 1>&6
10369 cat > conftest.$ac_ext <<EOF
10370 #line 10371 "configure"
10371 #include "confdefs.h"
10372 #include <sys/types.h>
10375 struct utmpx ux; ux.ut_syslen = 0;
10378 if { (eval echo configure:10379: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10380 samba_cv_HAVE_UX_UT_SYSLEN=yes
10382 echo "configure: failed program was:" >&5
10383 cat conftest.$ac_ext >&5
10385 samba_cv_HAVE_UX_UT_SYSLEN=no
10390 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
10391 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
10392 cat >> confdefs.h <<\EOF
10393 #define HAVE_UX_UT_SYSLEN 1
10399 #################################################
10400 # check for libiconv support
10401 echo $ac_n "checking whether to use libiconv""... $ac_c" 1>&6
10402 echo "configure:10403: checking whether to use libiconv" >&5
10403 # Check whether --with-libiconv or --without-libiconv was given.
10404 if test "${with_libiconv+set}" = set; then
10405 withval="$with_libiconv"
10408 echo "$ac_t""no" 1>&6
10411 echo "$ac_t""yes" 1>&6
10412 CFLAGS="$CFLAGS -I$withval/include"
10413 LDFLAGS="$LDFLAGS -L$withval/lib"
10414 echo $ac_n "checking for iconv_open in -liconv""... $ac_c" 1>&6
10415 echo "configure:10416: checking for iconv_open in -liconv" >&5
10416 ac_lib_var=`echo iconv'_'iconv_open | sed 'y%./+-%__p_%'`
10417 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10418 echo $ac_n "(cached) $ac_c" 1>&6
10420 ac_save_LIBS="$LIBS"
10421 LIBS="-liconv $LIBS"
10422 cat > conftest.$ac_ext <<EOF
10423 #line 10424 "configure"
10424 #include "confdefs.h"
10425 /* Override any gcc2 internal prototype to avoid an error. */
10426 /* We use char because int might match the return type of a gcc2
10427 builtin and then its argument prototype would still apply. */
10434 if { (eval echo configure:10435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10436 eval "ac_cv_lib_$ac_lib_var=yes"
10438 echo "configure: failed program was:" >&5
10439 cat conftest.$ac_ext >&5
10441 eval "ac_cv_lib_$ac_lib_var=no"
10444 LIBS="$ac_save_LIBS"
10447 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10448 echo "$ac_t""yes" 1>&6
10449 ac_tr_lib=HAVE_LIB`echo iconv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10450 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10451 cat >> confdefs.h <<EOF
10452 #define $ac_tr_lib 1
10455 LIBS="-liconv $LIBS"
10458 echo "$ac_t""no" 1>&6
10461 cat >> confdefs.h <<EOF
10462 #define WITH_LIBICONV "${withval}"
10468 echo "$ac_t""no" 1>&6
10475 # check for iconv in libc
10476 echo $ac_n "checking for working iconv""... $ac_c" 1>&6
10477 echo "configure:10478: checking for working iconv" >&5
10478 if eval "test \"`echo '$''{'samba_cv_HAVE_NATIVE_ICONV'+set}'`\" = set"; then
10479 echo $ac_n "(cached) $ac_c" 1>&6
10482 if test "$cross_compiling" = yes; then
10483 samba_cv_HAVE_NATIVE_ICONV=cross
10485 cat > conftest.$ac_ext <<EOF
10486 #line 10487 "configure"
10487 #include "confdefs.h"
10491 iconv_t cd = iconv_open("ASCII", "UCS-2LE");
10492 if (cd == 0 || cd == (iconv_t)-1) return -1;
10497 if { (eval echo configure:10498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10499 samba_cv_HAVE_NATIVE_ICONV=yes
10501 echo "configure: failed program was:" >&5
10502 cat conftest.$ac_ext >&5
10504 samba_cv_HAVE_NATIVE_ICONV=no
10511 echo "$ac_t""$samba_cv_HAVE_NATIVE_ICONV" 1>&6
10512 if test x"$samba_cv_HAVE_NATIVE_ICONV" = x"yes"; then
10513 cat >> confdefs.h <<\EOF
10514 #define HAVE_NATIVE_ICONV 1
10520 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
10521 echo "configure:10522: checking for Linux kernel oplocks" >&5
10522 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
10523 echo $ac_n "(cached) $ac_c" 1>&6
10526 if test "$cross_compiling" = yes; then
10527 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
10529 cat > conftest.$ac_ext <<EOF
10530 #line 10531 "configure"
10531 #include "confdefs.h"
10533 #include <sys/types.h>
10536 #define F_GETLEASE 1025
10539 int fd = open("/dev/null", O_RDONLY);
10540 return fcntl(fd, F_GETLEASE, 0) == -1;
10544 if { (eval echo configure:10545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10546 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
10548 echo "configure: failed program was:" >&5
10549 cat conftest.$ac_ext >&5
10551 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
10558 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
10559 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
10560 cat >> confdefs.h <<\EOF
10561 #define HAVE_KERNEL_OPLOCKS_LINUX 1
10566 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
10567 echo "configure:10568: checking for kernel change notify support" >&5
10568 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
10569 echo $ac_n "(cached) $ac_c" 1>&6
10572 if test "$cross_compiling" = yes; then
10573 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
10575 cat > conftest.$ac_ext <<EOF
10576 #line 10577 "configure"
10577 #include "confdefs.h"
10579 #include <sys/types.h>
10581 #include <signal.h>
10583 #define F_NOTIFY 1026
10586 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 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_CHANGE_NOTIFY=yes
10594 echo "configure: failed program was:" >&5
10595 cat conftest.$ac_ext >&5
10597 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
10604 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
10605 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes"; then
10606 cat >> confdefs.h <<\EOF
10607 #define HAVE_KERNEL_CHANGE_NOTIFY 1
10612 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
10613 echo "configure:10614: checking for kernel share modes" >&5
10614 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
10615 echo $ac_n "(cached) $ac_c" 1>&6
10618 if test "$cross_compiling" = yes; then
10619 samba_cv_HAVE_KERNEL_SHARE_MODES=cross
10621 cat > conftest.$ac_ext <<EOF
10622 #line 10623 "configure"
10623 #include "confdefs.h"
10625 #include <sys/types.h>
10627 #include <signal.h>
10628 #include <sys/file.h>
10630 #define LOCK_MAND 32
10631 #define LOCK_READ 64
10634 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
10638 if { (eval echo configure:10639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10640 samba_cv_HAVE_KERNEL_SHARE_MODES=yes
10642 echo "configure: failed program was:" >&5
10643 cat conftest.$ac_ext >&5
10645 samba_cv_HAVE_KERNEL_SHARE_MODES=no
10652 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
10653 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
10654 cat >> confdefs.h <<\EOF
10655 #define HAVE_KERNEL_SHARE_MODES 1
10663 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
10664 echo "configure:10665: checking for IRIX kernel oplock type definitions" >&5
10665 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
10666 echo $ac_n "(cached) $ac_c" 1>&6
10669 cat > conftest.$ac_ext <<EOF
10670 #line 10671 "configure"
10671 #include "confdefs.h"
10672 #include <sys/types.h>
10675 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
10678 if { (eval echo configure:10679: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10680 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
10682 echo "configure: failed program was:" >&5
10683 cat conftest.$ac_ext >&5
10685 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
10690 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
10691 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
10692 cat >> confdefs.h <<\EOF
10693 #define HAVE_KERNEL_OPLOCKS_IRIX 1
10698 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
10699 echo "configure:10700: checking for irix specific capabilities" >&5
10700 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
10701 echo $ac_n "(cached) $ac_c" 1>&6
10704 if test "$cross_compiling" = yes; then
10705 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
10707 cat > conftest.$ac_ext <<EOF
10708 #line 10709 "configure"
10709 #include "confdefs.h"
10710 #include <sys/types.h>
10711 #include <sys/capability.h>
10714 if ((cap = cap_get_proc()) == NULL)
10716 cap->cap_effective |= CAP_NETWORK_MGT;
10717 cap->cap_inheritable |= CAP_NETWORK_MGT;
10723 if { (eval echo configure:10724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10725 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
10727 echo "configure: failed program was:" >&5
10728 cat conftest.$ac_ext >&5
10730 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
10737 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
10738 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
10739 cat >> confdefs.h <<\EOF
10740 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
10746 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
10747 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
10750 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10751 echo "configure:10752: checking for int16 typedef included by rpc/rpc.h" >&5
10752 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10753 echo $ac_n "(cached) $ac_c" 1>&6
10756 cat > conftest.$ac_ext <<EOF
10757 #line 10758 "configure"
10758 #include "confdefs.h"
10759 #include <sys/types.h>
10760 #if defined(HAVE_RPC_RPC_H)
10761 #include <rpc/rpc.h>
10767 if { (eval echo configure:10768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10769 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
10771 echo "configure: failed program was:" >&5
10772 cat conftest.$ac_ext >&5
10774 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
10779 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
10780 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
10781 cat >> confdefs.h <<\EOF
10782 #define HAVE_INT16_FROM_RPC_RPC_H 1
10787 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10788 echo "configure:10789: checking for uint16 typedef included by rpc/rpc.h" >&5
10789 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10790 echo $ac_n "(cached) $ac_c" 1>&6
10793 cat > conftest.$ac_ext <<EOF
10794 #line 10795 "configure"
10795 #include "confdefs.h"
10796 #include <sys/types.h>
10797 #if defined(HAVE_RPC_RPC_H)
10798 #include <rpc/rpc.h>
10804 if { (eval echo configure:10805: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10806 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
10808 echo "configure: failed program was:" >&5
10809 cat conftest.$ac_ext >&5
10811 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
10816 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
10817 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
10818 cat >> confdefs.h <<\EOF
10819 #define HAVE_UINT16_FROM_RPC_RPC_H 1
10824 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10825 echo "configure:10826: checking for int32 typedef included by rpc/rpc.h" >&5
10826 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10827 echo $ac_n "(cached) $ac_c" 1>&6
10830 cat > conftest.$ac_ext <<EOF
10831 #line 10832 "configure"
10832 #include "confdefs.h"
10833 #include <sys/types.h>
10834 #if defined(HAVE_RPC_RPC_H)
10835 #include <rpc/rpc.h>
10841 if { (eval echo configure:10842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10843 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
10845 echo "configure: failed program was:" >&5
10846 cat conftest.$ac_ext >&5
10848 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
10853 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
10854 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
10855 cat >> confdefs.h <<\EOF
10856 #define HAVE_INT32_FROM_RPC_RPC_H 1
10861 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10862 echo "configure:10863: checking for uint32 typedef included by rpc/rpc.h" >&5
10863 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10864 echo $ac_n "(cached) $ac_c" 1>&6
10867 cat > conftest.$ac_ext <<EOF
10868 #line 10869 "configure"
10869 #include "confdefs.h"
10870 #include <sys/types.h>
10871 #if defined(HAVE_RPC_RPC_H)
10872 #include <rpc/rpc.h>
10878 if { (eval echo configure:10879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10880 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
10882 echo "configure: failed program was:" >&5
10883 cat conftest.$ac_ext >&5
10885 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
10890 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
10891 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
10892 cat >> confdefs.h <<\EOF
10893 #define HAVE_UINT32_FROM_RPC_RPC_H 1
10899 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
10900 echo "configure:10901: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
10901 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
10902 echo $ac_n "(cached) $ac_c" 1>&6
10905 cat > conftest.$ac_ext <<EOF
10906 #line 10907 "configure"
10907 #include "confdefs.h"
10908 #include <sys/types.h>
10909 #ifdef HAVE_SYS_SECURITY_H
10910 #include <sys/security.h>
10912 #endif /* HAVE_SYS_SECURITY_H */
10913 #if defined(HAVE_RPC_RPC_H)
10914 #include <rpc/rpc.h>
10920 if { (eval echo configure:10921: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10922 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
10924 echo "configure: failed program was:" >&5
10925 cat conftest.$ac_ext >&5
10927 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
10932 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
10933 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
10934 cat >> confdefs.h <<\EOF
10935 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
10940 echo $ac_n "checking for test routines""... $ac_c" 1>&6
10941 echo "configure:10942: checking for test routines" >&5
10942 if test "$cross_compiling" = yes; then
10943 echo "configure: warning: cannot run when cross-compiling" 1>&2
10945 cat > conftest.$ac_ext <<EOF
10946 #line 10947 "configure"
10947 #include "confdefs.h"
10948 #include "${srcdir-.}/tests/trivial.c"
10950 if { (eval echo configure:10951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10952 echo "$ac_t""yes" 1>&6
10954 echo "configure: failed program was:" >&5
10955 cat conftest.$ac_ext >&5
10957 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10963 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10964 echo "configure:10965: checking for ftruncate extend" >&5
10965 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10966 echo $ac_n "(cached) $ac_c" 1>&6
10969 if test "$cross_compiling" = yes; then
10970 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
10972 cat > conftest.$ac_ext <<EOF
10973 #line 10974 "configure"
10974 #include "confdefs.h"
10975 #include "${srcdir-.}/tests/ftruncate.c"
10977 if { (eval echo configure:10978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10979 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
10981 echo "configure: failed program was:" >&5
10982 cat conftest.$ac_ext >&5
10984 samba_cv_HAVE_FTRUNCATE_EXTEND=no
10991 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10992 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
10993 cat >> confdefs.h <<\EOF
10994 #define HAVE_FTRUNCATE_EXTEND 1
10999 echo $ac_n "checking for AF_LOCAL socket support""... $ac_c" 1>&6
11000 echo "configure:11001: checking for AF_LOCAL socket support" >&5
11001 if eval "test \"`echo '$''{'samba_cv_HAVE_WORKING_AF_LOCAL'+set}'`\" = set"; then
11002 echo $ac_n "(cached) $ac_c" 1>&6
11005 if test "$cross_compiling" = yes; then
11006 samba_cv_HAVE_WORKING_AF_LOCAL=cross
11008 cat > conftest.$ac_ext <<EOF
11009 #line 11010 "configure"
11010 #include "confdefs.h"
11011 #include "${srcdir-.}/tests/unixsock.c"
11013 if { (eval echo configure:11014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11015 samba_cv_HAVE_WORKING_AF_LOCAL=yes
11017 echo "configure: failed program was:" >&5
11018 cat conftest.$ac_ext >&5
11020 samba_cv_HAVE_WORKING_AF_LOCAL=no
11027 echo "$ac_t""$samba_cv_HAVE_WORKING_AF_LOCAL" 1>&6
11028 if test x"$samba_cv_HAVE_WORKING_AF_LOCAL" != xno
11030 cat >> confdefs.h <<\EOF
11031 #define HAVE_WORKING_AF_LOCAL 1
11036 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
11037 echo "configure:11038: checking for broken getgroups" >&5
11038 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
11039 echo $ac_n "(cached) $ac_c" 1>&6
11042 if test "$cross_compiling" = yes; then
11043 samba_cv_HAVE_BROKEN_GETGROUPS=cross
11045 cat > conftest.$ac_ext <<EOF
11046 #line 11047 "configure"
11047 #include "confdefs.h"
11048 #include "${srcdir-.}/tests/getgroups.c"
11050 if { (eval echo configure:11051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11052 samba_cv_HAVE_BROKEN_GETGROUPS=yes
11054 echo "configure: failed program was:" >&5
11055 cat conftest.$ac_ext >&5
11057 samba_cv_HAVE_BROKEN_GETGROUPS=no
11064 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
11065 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
11066 cat >> confdefs.h <<\EOF
11067 #define HAVE_BROKEN_GETGROUPS 1
11072 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
11073 echo "configure:11074: checking whether getpass should be replaced" >&5
11074 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
11075 echo $ac_n "(cached) $ac_c" 1>&6
11078 SAVE_CPPFLAGS="$CPPFLAGS"
11079 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/popt -I${srcdir-.}/smbwrapper"
11080 cat > conftest.$ac_ext <<EOF
11081 #line 11082 "configure"
11082 #include "confdefs.h"
11084 #define REPLACE_GETPASS 1
11085 #define NO_CONFIG_H 1
11086 #define main dont_declare_main
11087 #include "${srcdir-.}/lib/getsmbpass.c"
11094 if { (eval echo configure:11095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11096 samba_cv_REPLACE_GETPASS=yes
11098 echo "configure: failed program was:" >&5
11099 cat conftest.$ac_ext >&5
11101 samba_cv_REPLACE_GETPASS=no
11104 CPPFLAGS="$SAVE_CPPFLAGS"
11108 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
11109 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
11110 cat >> confdefs.h <<\EOF
11111 #define REPLACE_GETPASS 1
11116 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
11117 echo "configure:11118: checking for broken inet_ntoa" >&5
11118 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
11119 echo $ac_n "(cached) $ac_c" 1>&6
11122 if test "$cross_compiling" = yes; then
11123 samba_cv_REPLACE_INET_NTOA=cross
11125 cat > conftest.$ac_ext <<EOF
11126 #line 11127 "configure"
11127 #include "confdefs.h"
11130 #include <sys/types.h>
11131 #include <netinet/in.h>
11132 #ifdef HAVE_ARPA_INET_H
11133 #include <arpa/inet.h>
11135 main() { struct in_addr ip; ip.s_addr = 0x12345678;
11136 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
11137 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
11140 if { (eval echo configure:11141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11142 samba_cv_REPLACE_INET_NTOA=yes
11144 echo "configure: failed program was:" >&5
11145 cat conftest.$ac_ext >&5
11147 samba_cv_REPLACE_INET_NTOA=no
11154 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
11155 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
11156 cat >> confdefs.h <<\EOF
11157 #define REPLACE_INET_NTOA 1
11162 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
11163 echo "configure:11164: checking for secure mkstemp" >&5
11164 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
11165 echo $ac_n "(cached) $ac_c" 1>&6
11168 if test "$cross_compiling" = yes; then
11169 samba_cv_HAVE_SECURE_MKSTEMP=cross
11171 cat > conftest.$ac_ext <<EOF
11172 #line 11173 "configure"
11173 #include "confdefs.h"
11174 #include <stdlib.h>
11175 #include <sys/types.h>
11176 #include <sys/stat.h>
11177 #include <unistd.h>
11180 char tpl[20]="/tmp/test.XXXXXX";
11181 int fd = mkstemp(tpl);
11182 if (fd == -1) exit(1);
11184 if (fstat(fd, &st) != 0) exit(1);
11185 if ((st.st_mode & 0777) != 0600) exit(1);
11189 if { (eval echo configure:11190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11191 samba_cv_HAVE_SECURE_MKSTEMP=yes
11193 echo "configure: failed program was:" >&5
11194 cat conftest.$ac_ext >&5
11196 samba_cv_HAVE_SECURE_MKSTEMP=no
11203 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
11204 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
11205 cat >> confdefs.h <<\EOF
11206 #define HAVE_SECURE_MKSTEMP 1
11211 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
11212 echo "configure:11213: checking for sysconf(_SC_NGROUPS_MAX)" >&5
11213 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
11214 echo $ac_n "(cached) $ac_c" 1>&6
11217 if test "$cross_compiling" = yes; then
11218 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
11220 cat > conftest.$ac_ext <<EOF
11221 #line 11222 "configure"
11222 #include "confdefs.h"
11223 #include <unistd.h>
11224 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
11226 if { (eval echo configure:11227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11228 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
11230 echo "configure: failed program was:" >&5
11231 cat conftest.$ac_ext >&5
11233 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
11240 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
11241 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
11242 cat >> confdefs.h <<\EOF
11243 #define SYSCONF_SC_NGROUPS_MAX 1
11248 echo $ac_n "checking for root""... $ac_c" 1>&6
11249 echo "configure:11250: checking for root" >&5
11250 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
11251 echo $ac_n "(cached) $ac_c" 1>&6
11254 if test "$cross_compiling" = yes; then
11255 samba_cv_HAVE_ROOT=cross
11257 cat > conftest.$ac_ext <<EOF
11258 #line 11259 "configure"
11259 #include "confdefs.h"
11260 main() { exit(getuid() != 0); }
11262 if { (eval echo configure:11263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11264 samba_cv_HAVE_ROOT=yes
11266 echo "configure: failed program was:" >&5
11267 cat conftest.$ac_ext >&5
11269 samba_cv_HAVE_ROOT=no
11276 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
11277 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
11278 cat >> confdefs.h <<\EOF
11279 #define HAVE_ROOT 1
11283 echo "configure: warning: running as non-root will disable some tests" 1>&2
11287 # look for a method of finding the list of network interfaces
11289 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
11290 echo "configure:11291: checking for iface AIX" >&5
11291 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
11292 echo $ac_n "(cached) $ac_c" 1>&6
11295 if test "$cross_compiling" = yes; then
11296 samba_cv_HAVE_IFACE_AIX=cross
11298 cat > conftest.$ac_ext <<EOF
11299 #line 11300 "configure"
11300 #include "confdefs.h"
11302 #define HAVE_IFACE_AIX 1
11303 #define AUTOCONF_TEST 1
11304 #include "confdefs.h"
11305 #include "${srcdir-.}/lib/interfaces.c"
11307 if { (eval echo configure:11308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11309 samba_cv_HAVE_IFACE_AIX=yes
11311 echo "configure: failed program was:" >&5
11312 cat conftest.$ac_ext >&5
11314 samba_cv_HAVE_IFACE_AIX=no
11321 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
11322 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
11323 iface=yes;cat >> confdefs.h <<\EOF
11324 #define HAVE_IFACE_AIX 1
11329 if test $iface = no; then
11330 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
11331 echo "configure:11332: checking for iface ifconf" >&5
11332 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
11333 echo $ac_n "(cached) $ac_c" 1>&6
11336 if test "$cross_compiling" = yes; then
11337 samba_cv_HAVE_IFACE_IFCONF=cross
11339 cat > conftest.$ac_ext <<EOF
11340 #line 11341 "configure"
11341 #include "confdefs.h"
11343 #define HAVE_IFACE_IFCONF 1
11344 #define AUTOCONF_TEST 1
11345 #include "confdefs.h"
11346 #include "${srcdir-.}/lib/interfaces.c"
11348 if { (eval echo configure:11349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11350 samba_cv_HAVE_IFACE_IFCONF=yes
11352 echo "configure: failed program was:" >&5
11353 cat conftest.$ac_ext >&5
11355 samba_cv_HAVE_IFACE_IFCONF=no
11362 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
11363 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
11364 iface=yes;cat >> confdefs.h <<\EOF
11365 #define HAVE_IFACE_IFCONF 1
11371 if test $iface = no; then
11372 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
11373 echo "configure:11374: checking for iface ifreq" >&5
11374 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
11375 echo $ac_n "(cached) $ac_c" 1>&6
11378 if test "$cross_compiling" = yes; then
11379 samba_cv_HAVE_IFACE_IFREQ=cross
11381 cat > conftest.$ac_ext <<EOF
11382 #line 11383 "configure"
11383 #include "confdefs.h"
11385 #define HAVE_IFACE_IFREQ 1
11386 #define AUTOCONF_TEST 1
11387 #include "confdefs.h"
11388 #include "${srcdir-.}/lib/interfaces.c"
11390 if { (eval echo configure:11391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11392 samba_cv_HAVE_IFACE_IFREQ=yes
11394 echo "configure: failed program was:" >&5
11395 cat conftest.$ac_ext >&5
11397 samba_cv_HAVE_IFACE_IFREQ=no
11404 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
11405 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
11406 iface=yes;cat >> confdefs.h <<\EOF
11407 #define HAVE_IFACE_IFREQ 1
11414 ################################################
11415 # look for a method of setting the effective uid
11417 if test $seteuid = no; then
11418 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
11419 echo "configure:11420: checking for setresuid" >&5
11420 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
11421 echo $ac_n "(cached) $ac_c" 1>&6
11424 if test "$cross_compiling" = yes; then
11425 samba_cv_USE_SETRESUID=cross
11427 cat > conftest.$ac_ext <<EOF
11428 #line 11429 "configure"
11429 #include "confdefs.h"
11431 #define AUTOCONF_TEST 1
11432 #define USE_SETRESUID 1
11433 #include "confdefs.h"
11434 #include "${srcdir-.}/lib/util_sec.c"
11436 if { (eval echo configure:11437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11438 samba_cv_USE_SETRESUID=yes
11440 echo "configure: failed program was:" >&5
11441 cat conftest.$ac_ext >&5
11443 samba_cv_USE_SETRESUID=no
11450 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
11451 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
11452 seteuid=yes;cat >> confdefs.h <<\EOF
11453 #define USE_SETRESUID 1
11460 if test $seteuid = no; then
11461 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
11462 echo "configure:11463: checking for setreuid" >&5
11463 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
11464 echo $ac_n "(cached) $ac_c" 1>&6
11467 if test "$cross_compiling" = yes; then
11468 samba_cv_USE_SETREUID=cross
11470 cat > conftest.$ac_ext <<EOF
11471 #line 11472 "configure"
11472 #include "confdefs.h"
11474 #define AUTOCONF_TEST 1
11475 #define USE_SETREUID 1
11476 #include "confdefs.h"
11477 #include "${srcdir-.}/lib/util_sec.c"
11479 if { (eval echo configure:11480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11481 samba_cv_USE_SETREUID=yes
11483 echo "configure: failed program was:" >&5
11484 cat conftest.$ac_ext >&5
11486 samba_cv_USE_SETREUID=no
11493 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
11494 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
11495 seteuid=yes;cat >> confdefs.h <<\EOF
11496 #define USE_SETREUID 1
11502 if test $seteuid = no; then
11503 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
11504 echo "configure:11505: checking for seteuid" >&5
11505 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
11506 echo $ac_n "(cached) $ac_c" 1>&6
11509 if test "$cross_compiling" = yes; then
11510 samba_cv_USE_SETEUID=cross
11512 cat > conftest.$ac_ext <<EOF
11513 #line 11514 "configure"
11514 #include "confdefs.h"
11516 #define AUTOCONF_TEST 1
11517 #define USE_SETEUID 1
11518 #include "confdefs.h"
11519 #include "${srcdir-.}/lib/util_sec.c"
11521 if { (eval echo configure:11522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11523 samba_cv_USE_SETEUID=yes
11525 echo "configure: failed program was:" >&5
11526 cat conftest.$ac_ext >&5
11528 samba_cv_USE_SETEUID=no
11535 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
11536 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
11537 seteuid=yes;cat >> confdefs.h <<\EOF
11538 #define USE_SETEUID 1
11544 if test $seteuid = no; then
11545 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
11546 echo "configure:11547: checking for setuidx" >&5
11547 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
11548 echo $ac_n "(cached) $ac_c" 1>&6
11551 if test "$cross_compiling" = yes; then
11552 samba_cv_USE_SETUIDX=cross
11554 cat > conftest.$ac_ext <<EOF
11555 #line 11556 "configure"
11556 #include "confdefs.h"
11558 #define AUTOCONF_TEST 1
11559 #define USE_SETUIDX 1
11560 #include "confdefs.h"
11561 #include "${srcdir-.}/lib/util_sec.c"
11563 if { (eval echo configure:11564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11565 samba_cv_USE_SETUIDX=yes
11567 echo "configure: failed program was:" >&5
11568 cat conftest.$ac_ext >&5
11570 samba_cv_USE_SETUIDX=no
11577 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
11578 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
11579 seteuid=yes;cat >> confdefs.h <<\EOF
11580 #define USE_SETUIDX 1
11587 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
11588 echo "configure:11589: checking for working mmap" >&5
11589 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
11590 echo $ac_n "(cached) $ac_c" 1>&6
11593 if test "$cross_compiling" = yes; then
11594 samba_cv_HAVE_MMAP=cross
11596 cat > conftest.$ac_ext <<EOF
11597 #line 11598 "configure"
11598 #include "confdefs.h"
11599 #include "${srcdir-.}/tests/shared_mmap.c"
11601 if { (eval echo configure:11602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11603 samba_cv_HAVE_MMAP=yes
11605 echo "configure: failed program was:" >&5
11606 cat conftest.$ac_ext >&5
11608 samba_cv_HAVE_MMAP=no
11615 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
11616 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
11617 cat >> confdefs.h <<\EOF
11618 #define HAVE_MMAP 1
11623 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
11624 echo "configure:11625: checking for ftruncate needs root" >&5
11625 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
11626 echo $ac_n "(cached) $ac_c" 1>&6
11629 if test "$cross_compiling" = yes; then
11630 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
11632 cat > conftest.$ac_ext <<EOF
11633 #line 11634 "configure"
11634 #include "confdefs.h"
11635 #include "${srcdir-.}/tests/ftruncroot.c"
11637 if { (eval echo configure:11638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11639 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
11641 echo "configure: failed program was:" >&5
11642 cat conftest.$ac_ext >&5
11644 samba_cv_FTRUNCATE_NEEDS_ROOT=no
11651 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
11652 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
11653 cat >> confdefs.h <<\EOF
11654 #define FTRUNCATE_NEEDS_ROOT 1
11659 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
11660 echo "configure:11661: checking for fcntl locking" >&5
11661 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
11662 echo $ac_n "(cached) $ac_c" 1>&6
11665 if test "$cross_compiling" = yes; then
11666 samba_cv_HAVE_FCNTL_LOCK=cross
11668 cat > conftest.$ac_ext <<EOF
11669 #line 11670 "configure"
11670 #include "confdefs.h"
11671 #include "${srcdir-.}/tests/fcntl_lock.c"
11673 if { (eval echo configure:11674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11675 samba_cv_HAVE_FCNTL_LOCK=yes
11677 echo "configure: failed program was:" >&5
11678 cat conftest.$ac_ext >&5
11680 samba_cv_HAVE_FCNTL_LOCK=no
11687 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
11688 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
11689 cat >> confdefs.h <<\EOF
11690 #define HAVE_FCNTL_LOCK 1
11695 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
11696 echo "configure:11697: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
11697 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
11698 echo $ac_n "(cached) $ac_c" 1>&6
11701 if test "$cross_compiling" = yes; then
11702 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
11704 cat > conftest.$ac_ext <<EOF
11705 #line 11706 "configure"
11706 #include "confdefs.h"
11707 #include "${srcdir-.}/tests/fcntl_lock64.c"
11709 if { (eval echo configure:11710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11711 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
11713 echo "configure: failed program was:" >&5
11714 cat conftest.$ac_ext >&5
11716 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
11723 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
11724 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
11725 cat >> confdefs.h <<\EOF
11726 #define HAVE_BROKEN_FCNTL64_LOCKS 1
11733 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
11734 echo "configure:11735: checking for 64 bit fcntl locking" >&5
11735 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
11736 echo $ac_n "(cached) $ac_c" 1>&6
11739 if test "$cross_compiling" = yes; then
11740 samba_cv_HAVE_STRUCT_FLOCK64=cross
11742 cat > conftest.$ac_ext <<EOF
11743 #line 11744 "configure"
11744 #include "confdefs.h"
11746 #if defined(HAVE_UNISTD_H)
11747 #include <unistd.h>
11750 #include <stdlib.h>
11752 #ifdef HAVE_FCNTL_H
11756 #ifdef HAVE_SYS_FCNTL_H
11757 #include <sys/fcntl.h>
11759 main() { struct flock64 fl64;
11760 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
11767 if { (eval echo configure:11768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11769 samba_cv_HAVE_STRUCT_FLOCK64=yes
11771 echo "configure: failed program was:" >&5
11772 cat conftest.$ac_ext >&5
11774 samba_cv_HAVE_STRUCT_FLOCK64=no
11781 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
11783 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
11784 cat >> confdefs.h <<\EOF
11785 #define HAVE_STRUCT_FLOCK64 1
11791 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
11792 echo "configure:11793: checking for st_blocks in struct stat" >&5
11793 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLOCKS'+set}'`\" = set"; then
11794 echo $ac_n "(cached) $ac_c" 1>&6
11797 cat > conftest.$ac_ext <<EOF
11798 #line 11799 "configure"
11799 #include "confdefs.h"
11800 #include <sys/types.h>
11801 #include <sys/stat.h>
11802 #include <unistd.h>
11804 struct stat st; st.st_blocks = 0;
11807 if { (eval echo configure:11808: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11809 samba_cv_HAVE_STAT_ST_BLOCKS=yes
11811 echo "configure: failed program was:" >&5
11812 cat conftest.$ac_ext >&5
11814 samba_cv_HAVE_STAT_ST_BLOCKS=no
11819 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLOCKS" 1>&6
11820 if test x"$samba_cv_HAVE_STAT_ST_BLOCKS" = x"yes"; then
11821 cat >> confdefs.h <<\EOF
11822 #define HAVE_STAT_ST_BLOCKS 1
11827 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
11828 echo "configure:11829: checking for st_blksize in struct stat" >&5
11829 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLKSIZE'+set}'`\" = set"; then
11830 echo $ac_n "(cached) $ac_c" 1>&6
11833 cat > conftest.$ac_ext <<EOF
11834 #line 11835 "configure"
11835 #include "confdefs.h"
11836 #include <sys/types.h>
11837 #include <sys/stat.h>
11838 #include <unistd.h>
11840 struct stat st; st.st_blksize = 0;
11843 if { (eval echo configure:11844: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11845 samba_cv_HAVE_STAT_ST_BLKSIZE=yes
11847 echo "configure: failed program was:" >&5
11848 cat conftest.$ac_ext >&5
11850 samba_cv_HAVE_STAT_ST_BLKSIZE=no
11855 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLKSIZE" 1>&6
11856 if test x"$samba_cv_HAVE_STAT_ST_BLKSIZE" = x"yes"; then
11857 cat >> confdefs.h <<\EOF
11858 #define HAVE_STAT_ST_BLKSIZE 1
11865 echo $ac_n "checking for broken RedHat 7.2 system header files""... $ac_c" 1>&6
11866 echo "configure:11867: checking for broken RedHat 7.2 system header files" >&5
11867 if eval "test \"`echo '$''{'samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS'+set}'`\" = set"; then
11868 echo $ac_n "(cached) $ac_c" 1>&6
11871 cat > conftest.$ac_ext <<EOF
11872 #line 11873 "configure"
11873 #include "confdefs.h"
11875 #ifdef HAVE_SYS_VFS_H
11876 #include <sys/vfs.h>
11878 #ifdef HAVE_SYS_CAPABILITY_H
11879 #include <sys/capability.h>
11886 if { (eval echo configure:11887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11888 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=no
11890 echo "configure: failed program was:" >&5
11891 cat conftest.$ac_ext >&5
11893 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=yes
11898 echo "$ac_t""$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" 1>&6
11899 if test x"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x"yes"; then
11900 cat >> confdefs.h <<\EOF
11901 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
11908 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
11909 echo "configure:11910: checking for broken nisplus include files" >&5
11910 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
11911 echo $ac_n "(cached) $ac_c" 1>&6
11914 cat > conftest.$ac_ext <<EOF
11915 #line 11916 "configure"
11916 #include "confdefs.h"
11917 #include <sys/acl.h>
11918 #if defined(HAVE_RPCSVC_NIS_H)
11919 #include <rpcsvc/nis.h>
11925 if { (eval echo configure:11926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11927 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
11929 echo "configure: failed program was:" >&5
11930 cat conftest.$ac_ext >&5
11932 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
11937 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
11938 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
11939 cat >> confdefs.h <<\EOF
11940 #define BROKEN_NISPLUS_INCLUDE_FILES 1
11946 #################################################
11947 # check for smbwrapper support
11948 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
11949 echo "configure:11950: checking whether to use smbwrapper" >&5
11950 # Check whether --with-smbwrapper or --without-smbwrapper was given.
11951 if test "${with_smbwrapper+set}" = set; then
11952 withval="$with_smbwrapper"
11955 echo "$ac_t""yes" 1>&6
11956 cat >> confdefs.h <<\EOF
11957 #define WITH_SMBWRAPPER 1
11960 WRAPPROG="bin/smbsh"
11961 WRAP="bin/smbwrapper.$SHLIBEXT"
11963 if test x$ATTEMPT_WRAP32_BUILD = x; then
11966 WRAP32=bin/smbwrapper.32.$SHLIBEXT
11969 # Conditions under which smbwrapper should not be built.
11971 if test x$PICFLAG = x; then
11972 echo No support for PIC code - disabling smbwrapper and smbsh
11976 elif test x$ac_cv_func_syscall = xno; then
11977 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
11984 echo "$ac_t""no" 1>&6
11988 echo "$ac_t""no" 1>&6
11993 #################################################
11994 # check for AFS clear-text auth support
11995 echo $ac_n "checking whether to use AFS clear-text auth""... $ac_c" 1>&6
11996 echo "configure:11997: checking whether to use AFS clear-text auth" >&5
11997 # Check whether --with-afs or --without-afs was given.
11998 if test "${with_afs+set}" = set; then
11999 withval="$with_afs"
12002 echo "$ac_t""yes" 1>&6
12003 cat >> confdefs.h <<\EOF
12009 echo "$ac_t""no" 1>&6
12013 echo "$ac_t""no" 1>&6
12019 #################################################
12020 # check for the DFS clear-text auth system
12021 echo $ac_n "checking whether to use DFS clear-text auth""... $ac_c" 1>&6
12022 echo "configure:12023: checking whether to use DFS clear-text auth" >&5
12023 # Check whether --with-dfs or --without-dfs was given.
12024 if test "${with_dfs+set}" = set; then
12025 withval="$with_dfs"
12028 echo "$ac_t""yes" 1>&6
12029 cat >> confdefs.h <<\EOF
12035 echo "$ac_t""no" 1>&6
12039 echo "$ac_t""no" 1>&6
12045 #################################################
12046 # see if this box has the RedHat location for kerberos
12047 echo $ac_n "checking for /usr/kerberos""... $ac_c" 1>&6
12048 echo "configure:12049: checking for /usr/kerberos" >&5
12049 if test -d /usr/kerberos; then
12050 LDFLAGS="$LDFLAGS -L/usr/kerberos/lib"
12051 CFLAGS="$CFLAGS -I/usr/kerberos/include"
12052 CPPFLAGS="$CPPFLAGS -I/usr/kerberos/include"
12053 echo "$ac_t""yes" 1>&6
12055 echo "$ac_t""no" 1>&6
12058 #################################################
12059 # check for location of Kerberos 5 install
12060 echo $ac_n "checking for kerberos 5 install path""... $ac_c" 1>&6
12061 echo "configure:12062: checking for kerberos 5 install path" >&5
12062 # Check whether --with-krb5 or --without-krb5 was given.
12063 if test "${with_krb5+set}" = set; then
12064 withval="$with_krb5"
12067 echo "$ac_t""no" 1>&6
12070 echo "$ac_t""yes" 1>&6
12071 LIBS="$LIBS -lkrb5"
12072 CFLAGS="$CFLAGS -I$withval/include"
12073 CPPFLAGS="$CPPFLAGS -I$withval/include"
12074 LDFLAGS="$LDFLAGS -L$withval/lib"
12078 echo "$ac_t""no" 1>&6
12083 # now check for krb5.h. Some systems have the libraries without the headers!
12084 # note that this check is done here to allow for different kerberos
12086 for ac_hdr in krb5.h
12088 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12089 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12090 echo "configure:12091: checking for $ac_hdr" >&5
12091 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12092 echo $ac_n "(cached) $ac_c" 1>&6
12094 cat > conftest.$ac_ext <<EOF
12095 #line 12096 "configure"
12096 #include "confdefs.h"
12099 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12100 { (eval echo configure:12101: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12101 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12102 if test -z "$ac_err"; then
12104 eval "ac_cv_header_$ac_safe=yes"
12107 echo "configure: failed program was:" >&5
12108 cat conftest.$ac_ext >&5
12110 eval "ac_cv_header_$ac_safe=no"
12114 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12115 echo "$ac_t""yes" 1>&6
12116 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12117 cat >> confdefs.h <<EOF
12118 #define $ac_tr_hdr 1
12122 echo "$ac_t""no" 1>&6
12127 # now check for gssapi headers. This is also done here to allow for
12128 # different kerberos include paths
12129 for ac_hdr in gssapi/gssapi_generic.h gssapi/gssapi.h
12131 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12132 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12133 echo "configure:12134: checking for $ac_hdr" >&5
12134 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12135 echo $ac_n "(cached) $ac_c" 1>&6
12137 cat > conftest.$ac_ext <<EOF
12138 #line 12139 "configure"
12139 #include "confdefs.h"
12142 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12143 { (eval echo configure:12144: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12144 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12145 if test -z "$ac_err"; then
12147 eval "ac_cv_header_$ac_safe=yes"
12150 echo "configure: failed program was:" >&5
12151 cat conftest.$ac_ext >&5
12153 eval "ac_cv_header_$ac_safe=no"
12157 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12158 echo "$ac_t""yes" 1>&6
12159 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12160 cat >> confdefs.h <<EOF
12161 #define $ac_tr_hdr 1
12165 echo "$ac_t""no" 1>&6
12170 ##################################################################
12171 # we might need the k5crypto and com_err libraries on some systems
12172 echo $ac_n "checking for _et_list in -lcom_err""... $ac_c" 1>&6
12173 echo "configure:12174: checking for _et_list in -lcom_err" >&5
12174 ac_lib_var=`echo com_err'_'_et_list | 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="-lcom_err $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. */
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 -lcom_err"
12209 echo "$ac_t""no" 1>&6
12212 echo $ac_n "checking for krb5_encrypt_data in -lk5crypto""... $ac_c" 1>&6
12213 echo "configure:12214: checking for krb5_encrypt_data in -lk5crypto" >&5
12214 ac_lib_var=`echo k5crypto'_'krb5_encrypt_data | sed 'y%./+-%__p_%'`
12215 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12216 echo $ac_n "(cached) $ac_c" 1>&6
12218 ac_save_LIBS="$LIBS"
12219 LIBS="-lk5crypto $LIBS"
12220 cat > conftest.$ac_ext <<EOF
12221 #line 12222 "configure"
12222 #include "confdefs.h"
12223 /* Override any gcc2 internal prototype to avoid an error. */
12224 /* We use char because int might match the return type of a gcc2
12225 builtin and then its argument prototype would still apply. */
12226 char krb5_encrypt_data();
12229 krb5_encrypt_data()
12232 if { (eval echo configure:12233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12234 eval "ac_cv_lib_$ac_lib_var=yes"
12236 echo "configure: failed program was:" >&5
12237 cat conftest.$ac_ext >&5
12239 eval "ac_cv_lib_$ac_lib_var=no"
12242 LIBS="$ac_save_LIBS"
12245 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12246 echo "$ac_t""yes" 1>&6
12247 LIBS="$LIBS -lk5crypto"
12249 echo "$ac_t""no" 1>&6
12253 ########################################################
12254 # now see if we can find the krb5 libs in standard paths
12255 # or as specified above
12256 echo $ac_n "checking for krb5_mk_req_extended in -lkrb5""... $ac_c" 1>&6
12257 echo "configure:12258: checking for krb5_mk_req_extended in -lkrb5" >&5
12258 ac_lib_var=`echo krb5'_'krb5_mk_req_extended | sed 'y%./+-%__p_%'`
12259 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12260 echo $ac_n "(cached) $ac_c" 1>&6
12262 ac_save_LIBS="$LIBS"
12263 LIBS="-lkrb5 $LIBS"
12264 cat > conftest.$ac_ext <<EOF
12265 #line 12266 "configure"
12266 #include "confdefs.h"
12267 /* Override any gcc2 internal prototype to avoid an error. */
12268 /* We use char because int might match the return type of a gcc2
12269 builtin and then its argument prototype would still apply. */
12270 char krb5_mk_req_extended();
12273 krb5_mk_req_extended()
12276 if { (eval echo configure:12277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12278 eval "ac_cv_lib_$ac_lib_var=yes"
12280 echo "configure: failed program was:" >&5
12281 cat conftest.$ac_ext >&5
12283 eval "ac_cv_lib_$ac_lib_var=no"
12286 LIBS="$ac_save_LIBS"
12289 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12290 echo "$ac_t""yes" 1>&6
12291 LIBS="$LIBS -lkrb5";
12292 cat >> confdefs.h <<\EOF
12293 #define HAVE_KRB5 1
12297 echo "$ac_t""no" 1>&6
12301 ########################################################
12302 # now see if we can find the gssapi libs in standard paths
12303 echo $ac_n "checking for gss_display_status in -lgssapi_krb5""... $ac_c" 1>&6
12304 echo "configure:12305: checking for gss_display_status in -lgssapi_krb5" >&5
12305 ac_lib_var=`echo gssapi_krb5'_'gss_display_status | sed 'y%./+-%__p_%'`
12306 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12307 echo $ac_n "(cached) $ac_c" 1>&6
12309 ac_save_LIBS="$LIBS"
12310 LIBS="-lgssapi_krb5 $LIBS"
12311 cat > conftest.$ac_ext <<EOF
12312 #line 12313 "configure"
12313 #include "confdefs.h"
12314 /* Override any gcc2 internal prototype to avoid an error. */
12315 /* We use char because int might match the return type of a gcc2
12316 builtin and then its argument prototype would still apply. */
12317 char gss_display_status();
12320 gss_display_status()
12323 if { (eval echo configure:12324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12325 eval "ac_cv_lib_$ac_lib_var=yes"
12327 echo "configure: failed program was:" >&5
12328 cat conftest.$ac_ext >&5
12330 eval "ac_cv_lib_$ac_lib_var=no"
12333 LIBS="$ac_save_LIBS"
12336 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12337 echo "$ac_t""yes" 1>&6
12338 LIBS="$LIBS -lgssapi_krb5";
12339 cat >> confdefs.h <<\EOF
12340 #define HAVE_GSSAPI 1
12344 echo "$ac_t""no" 1>&6
12348 ##################################################################
12349 # we might need the lber lib on some systems. To avoid link errors
12350 # this test must be before the libldap test
12351 echo $ac_n "checking for ber_scanf in -llber""... $ac_c" 1>&6
12352 echo "configure:12353: checking for ber_scanf in -llber" >&5
12353 ac_lib_var=`echo lber'_'ber_scanf | sed 'y%./+-%__p_%'`
12354 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12355 echo $ac_n "(cached) $ac_c" 1>&6
12357 ac_save_LIBS="$LIBS"
12358 LIBS="-llber $LIBS"
12359 cat > conftest.$ac_ext <<EOF
12360 #line 12361 "configure"
12361 #include "confdefs.h"
12362 /* Override any gcc2 internal prototype to avoid an error. */
12363 /* We use char because int might match the return type of a gcc2
12364 builtin and then its argument prototype would still apply. */
12371 if { (eval echo configure:12372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12373 eval "ac_cv_lib_$ac_lib_var=yes"
12375 echo "configure: failed program was:" >&5
12376 cat conftest.$ac_ext >&5
12378 eval "ac_cv_lib_$ac_lib_var=no"
12381 LIBS="$ac_save_LIBS"
12384 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12385 echo "$ac_t""yes" 1>&6
12386 LIBS="$LIBS -llber"
12388 echo "$ac_t""no" 1>&6
12392 ########################################################
12393 # now see if we can find the ldap libs in standard paths
12394 if test x$have_ldap != xyes; then
12395 echo $ac_n "checking for ldap_domain2hostlist in -lldap""... $ac_c" 1>&6
12396 echo "configure:12397: checking for ldap_domain2hostlist in -lldap" >&5
12397 ac_lib_var=`echo ldap'_'ldap_domain2hostlist | sed 'y%./+-%__p_%'`
12398 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12399 echo $ac_n "(cached) $ac_c" 1>&6
12401 ac_save_LIBS="$LIBS"
12402 LIBS="-lldap $LIBS"
12403 cat > conftest.$ac_ext <<EOF
12404 #line 12405 "configure"
12405 #include "confdefs.h"
12406 /* Override any gcc2 internal prototype to avoid an error. */
12407 /* We use char because int might match the return type of a gcc2
12408 builtin and then its argument prototype would still apply. */
12409 char ldap_domain2hostlist();
12412 ldap_domain2hostlist()
12415 if { (eval echo configure:12416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12417 eval "ac_cv_lib_$ac_lib_var=yes"
12419 echo "configure: failed program was:" >&5
12420 cat conftest.$ac_ext >&5
12422 eval "ac_cv_lib_$ac_lib_var=no"
12425 LIBS="$ac_save_LIBS"
12428 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12429 echo "$ac_t""yes" 1>&6
12430 LIBS="$LIBS -lldap";
12431 cat >> confdefs.h <<\EOF
12432 #define HAVE_LDAP 1
12436 echo "$ac_t""no" 1>&6
12440 ########################################################
12441 # If we have LDAP, does it's rebind procedure take 2 or 3 arguments?
12442 # Check found in pam_ldap 145.
12443 for ac_func in ldap_set_rebind_proc
12445 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12446 echo "configure:12447: checking for $ac_func" >&5
12447 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12448 echo $ac_n "(cached) $ac_c" 1>&6
12450 cat > conftest.$ac_ext <<EOF
12451 #line 12452 "configure"
12452 #include "confdefs.h"
12453 /* System header to define __stub macros and hopefully few prototypes,
12454 which can conflict with char $ac_func(); below. */
12455 #include <assert.h>
12456 /* Override any gcc2 internal prototype to avoid an error. */
12457 /* We use char because int might match the return type of a gcc2
12458 builtin and then its argument prototype would still apply. */
12463 /* The GNU C library defines this for functions which it implements
12464 to always fail with ENOSYS. Some functions are actually named
12465 something starting with __ and the normal name is an alias. */
12466 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12474 if { (eval echo configure:12475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12476 eval "ac_cv_func_$ac_func=yes"
12478 echo "configure: failed program was:" >&5
12479 cat conftest.$ac_ext >&5
12481 eval "ac_cv_func_$ac_func=no"
12486 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12487 echo "$ac_t""yes" 1>&6
12488 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12489 cat >> confdefs.h <<EOF
12490 #define $ac_tr_func 1
12494 echo "$ac_t""no" 1>&6
12498 echo $ac_n "checking whether ldap_set_rebind_proc takes 3 arguments""... $ac_c" 1>&6
12499 echo "configure:12500: checking whether ldap_set_rebind_proc takes 3 arguments" >&5
12500 if eval "test \"`echo '$''{'pam_ldap_cv_ldap_set_rebind_proc'+set}'`\" = set"; then
12501 echo $ac_n "(cached) $ac_c" 1>&6
12504 cat > conftest.$ac_ext <<EOF
12505 #line 12506 "configure"
12506 #include "confdefs.h"
12511 ldap_set_rebind_proc(0, 0, 0);
12514 if { (eval echo configure:12515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12516 pam_ldap_cv_ldap_set_rebind_proc=3
12518 echo "configure: failed program was:" >&5
12519 cat conftest.$ac_ext >&5
12521 pam_ldap_cv_ldap_set_rebind_proc=2
12526 echo "$ac_t""$pam_ldap_cv_ldap_set_rebind_proc" 1>&6
12527 cat >> confdefs.h <<EOF
12528 #define LDAP_SET_REBIND_PROC_ARGS $pam_ldap_cv_ldap_set_rebind_proc
12533 #################################################
12534 # check for automount support
12535 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
12536 echo "configure:12537: checking whether to use AUTOMOUNT" >&5
12537 # Check whether --with-automount or --without-automount was given.
12538 if test "${with_automount+set}" = set; then
12539 withval="$with_automount"
12542 echo "$ac_t""yes" 1>&6
12543 cat >> confdefs.h <<\EOF
12544 #define WITH_AUTOMOUNT 1
12549 echo "$ac_t""no" 1>&6
12553 echo "$ac_t""no" 1>&6
12558 #################################################
12559 # check for smbmount support
12560 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
12561 echo "configure:12562: checking whether to use SMBMOUNT" >&5
12562 # Check whether --with-smbmount or --without-smbmount was given.
12563 if test "${with_smbmount+set}" = set; then
12564 withval="$with_smbmount"
12569 echo "$ac_t""yes" 1>&6
12570 cat >> confdefs.h <<\EOF
12571 #define WITH_SMBMOUNT 1
12574 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
12577 { echo "configure: error: not on a linux system!" 1>&2; exit 1; }
12582 echo "$ac_t""no" 1>&6
12587 echo "$ac_t""no" 1>&6
12594 #################################################
12595 # check for a PAM clear-text auth, accounts, password and session support
12596 with_pam_for_crypt=no
12597 echo $ac_n "checking whether to use PAM""... $ac_c" 1>&6
12598 echo "configure:12599: checking whether to use PAM" >&5
12599 # Check whether --with-pam or --without-pam was given.
12600 if test "${with_pam+set}" = set; then
12601 withval="$with_pam"
12604 echo "$ac_t""yes" 1>&6
12605 cat >> confdefs.h <<\EOF
12610 with_pam_for_crypt=yes
12613 echo "$ac_t""no" 1>&6
12617 echo "$ac_t""no" 1>&6
12622 # we can't build a pam module if we don't have pam.
12623 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
12624 echo "configure:12625: checking for pam_get_data in -lpam" >&5
12625 ac_lib_var=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
12626 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12627 echo $ac_n "(cached) $ac_c" 1>&6
12629 ac_save_LIBS="$LIBS"
12631 cat > conftest.$ac_ext <<EOF
12632 #line 12633 "configure"
12633 #include "confdefs.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. */
12637 char pam_get_data();
12643 if { (eval echo configure:12644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12645 eval "ac_cv_lib_$ac_lib_var=yes"
12647 echo "configure: failed program was:" >&5
12648 cat conftest.$ac_ext >&5
12650 eval "ac_cv_lib_$ac_lib_var=no"
12653 LIBS="$ac_save_LIBS"
12656 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12657 echo "$ac_t""yes" 1>&6
12658 cat >> confdefs.h <<\EOF
12659 #define HAVE_LIBPAM 1
12663 echo "$ac_t""no" 1>&6
12667 #################################################
12668 # check for pam_smbpass support
12669 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
12670 echo "configure:12671: checking whether to use pam_smbpass" >&5
12671 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
12672 if test "${with_pam_smbpass+set}" = set; then
12673 withval="$with_pam_smbpass"
12676 echo "$ac_t""yes" 1>&6
12678 # Conditions under which pam_smbpass should not be built.
12680 if test x$PICFLAG = x; then
12681 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
12683 elif test x$ac_cv_lib_pam_pam_get_data = xno; then
12684 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
12687 PAM_MOD="bin/pam_smbpass.so"
12691 echo "$ac_t""no" 1>&6
12695 echo "$ac_t""no" 1>&6
12701 ###############################################
12702 # test for where we get crypt() from, but only
12704 if test $with_pam_for_crypt = no; then
12705 for ac_func in crypt
12707 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12708 echo "configure:12709: checking for $ac_func" >&5
12709 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12710 echo $ac_n "(cached) $ac_c" 1>&6
12712 cat > conftest.$ac_ext <<EOF
12713 #line 12714 "configure"
12714 #include "confdefs.h"
12715 /* System header to define __stub macros and hopefully few prototypes,
12716 which can conflict with char $ac_func(); below. */
12717 #include <assert.h>
12718 /* Override any gcc2 internal prototype to avoid an error. */
12719 /* We use char because int might match the return type of a gcc2
12720 builtin and then its argument prototype would still apply. */
12725 /* The GNU C library defines this for functions which it implements
12726 to always fail with ENOSYS. Some functions are actually named
12727 something starting with __ and the normal name is an alias. */
12728 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12736 if { (eval echo configure:12737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12738 eval "ac_cv_func_$ac_func=yes"
12740 echo "configure: failed program was:" >&5
12741 cat conftest.$ac_ext >&5
12743 eval "ac_cv_func_$ac_func=no"
12748 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12749 echo "$ac_t""yes" 1>&6
12750 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12751 cat >> confdefs.h <<EOF
12752 #define $ac_tr_func 1
12756 echo "$ac_t""no" 1>&6
12760 if test x"$ac_cv_func_crypt" = x"no"; then
12761 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
12762 echo "configure:12763: checking for crypt in -lcrypt" >&5
12763 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
12764 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12765 echo $ac_n "(cached) $ac_c" 1>&6
12767 ac_save_LIBS="$LIBS"
12768 LIBS="-lcrypt $LIBS"
12769 cat > conftest.$ac_ext <<EOF
12770 #line 12771 "configure"
12771 #include "confdefs.h"
12772 /* Override any gcc2 internal prototype to avoid an error. */
12773 /* We use char because int might match the return type of a gcc2
12774 builtin and then its argument prototype would still apply. */
12781 if { (eval echo configure:12782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12783 eval "ac_cv_lib_$ac_lib_var=yes"
12785 echo "configure: failed program was:" >&5
12786 cat conftest.$ac_ext >&5
12788 eval "ac_cv_lib_$ac_lib_var=no"
12791 LIBS="$ac_save_LIBS"
12794 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12795 echo "$ac_t""yes" 1>&6
12796 LIBS="$LIBS -lcrypt";
12797 cat >> confdefs.h <<\EOF
12798 #define HAVE_CRYPT 1
12802 echo "$ac_t""no" 1>&6
12809 ## moved after the check for -lcrypt in order to
12810 ## ensure that the necessary libraries are included
12811 ## check checking for truncated salt. Wrapped by the
12812 ## $with_pam_for_crypt variable as above --jerry
12814 if test $with_pam_for_crypt = no; then
12815 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
12816 echo "configure:12817: checking for a crypt that needs truncated salt" >&5
12817 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
12818 echo $ac_n "(cached) $ac_c" 1>&6
12821 if test "$cross_compiling" = yes; then
12822 samba_cv_HAVE_TRUNCATED_SALT=cross
12824 cat > conftest.$ac_ext <<EOF
12825 #line 12826 "configure"
12826 #include "confdefs.h"
12827 #include "${srcdir-.}/tests/crypttest.c"
12829 if { (eval echo configure:12830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12831 samba_cv_HAVE_TRUNCATED_SALT=no
12833 echo "configure: failed program was:" >&5
12834 cat conftest.$ac_ext >&5
12836 samba_cv_HAVE_TRUNCATED_SALT=yes
12843 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
12844 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
12845 cat >> confdefs.h <<\EOF
12846 #define HAVE_TRUNCATED_SALT 1
12852 # New experimental SAM system
12854 echo $ac_n "checking whether to build the new (experimental) SAM database""... $ac_c" 1>&6
12855 echo "configure:12856: checking whether to build the new (experimental) SAM database" >&5
12856 # Check whether --with-sam or --without-sam was given.
12857 if test "${with_sam+set}" = set; then
12858 withval="$with_sam"
12861 echo "$ac_t""yes" 1>&6
12862 cat >> confdefs.h <<\EOF
12868 echo "$ac_t""no" 1>&6
12872 echo "$ac_t""no" 1>&6
12878 ########################################################################################
12880 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
12882 ########################################################################################
12884 #################################################
12885 # check for a TDB password database
12886 echo $ac_n "checking whether to use TDB SAM database""... $ac_c" 1>&6
12887 echo "configure:12888: checking whether to use TDB SAM database" >&5
12888 # Check whether --with-tdbsam or --without-tdbsam was given.
12889 if test "${with_tdbsam+set}" = set; then
12890 withval="$with_tdbsam"
12893 echo "$ac_t""yes" 1>&6
12894 cat >> confdefs.h <<\EOF
12895 #define WITH_TDB_SAM 1
12900 echo "$ac_t""no" 1>&6
12904 echo "$ac_t""no" 1>&6
12909 #################################################
12910 # check for a NISPLUS password database
12911 echo $ac_n "checking whether to use NISPLUS SAM database""... $ac_c" 1>&6
12912 echo "configure:12913: checking whether to use NISPLUS SAM database" >&5
12913 # Check whether --with-nisplussam or --without-nisplussam was given.
12914 if test "${with_nisplussam+set}" = set; then
12915 withval="$with_nisplussam"
12918 echo "$ac_t""yes" 1>&6
12919 cat >> confdefs.h <<\EOF
12920 #define WITH_NISPLUS_SAM 1
12925 echo "$ac_t""no" 1>&6
12929 echo "$ac_t""no" 1>&6
12934 ########################################################################################
12936 ## END OF TESTS FOR SAM BACKENDS.
12938 ########################################################################################
12940 #################################################
12941 # check for a NISPLUS_HOME support
12942 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
12943 echo "configure:12944: checking whether to use NISPLUS_HOME" >&5
12944 # Check whether --with-nisplus-home or --without-nisplus-home was given.
12945 if test "${with_nisplus_home+set}" = set; then
12946 withval="$with_nisplus_home"
12949 echo "$ac_t""yes" 1>&6
12950 cat >> confdefs.h <<\EOF
12951 #define WITH_NISPLUS_HOME 1
12956 echo "$ac_t""no" 1>&6
12960 echo "$ac_t""no" 1>&6
12965 #################################################
12966 # check for syslog logging
12967 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
12968 echo "configure:12969: checking whether to use syslog logging" >&5
12969 # Check whether --with-syslog or --without-syslog was given.
12970 if test "${with_syslog+set}" = set; then
12971 withval="$with_syslog"
12974 echo "$ac_t""yes" 1>&6
12975 cat >> confdefs.h <<\EOF
12976 #define WITH_SYSLOG 1
12981 echo "$ac_t""no" 1>&6
12985 echo "$ac_t""no" 1>&6
12990 #################################################
12991 # check for a shared memory profiling support
12992 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
12993 echo "configure:12994: checking whether to use profiling" >&5
12994 # Check whether --with-profiling-data or --without-profiling-data was given.
12995 if test "${with_profiling_data+set}" = set; then
12996 withval="$with_profiling_data"
12999 echo "$ac_t""yes" 1>&6
13000 cat >> confdefs.h <<\EOF
13001 #define WITH_PROFILE 1
13006 echo "$ac_t""no" 1>&6
13010 echo "$ac_t""no" 1>&6
13016 #################################################
13017 # check for experimental disk-quotas support
13018 QUOTAOBJS=smbd/noquotas.o
13020 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
13021 echo "configure:13022: checking whether to support disk-quotas" >&5
13022 # Check whether --with-quotas or --without-quotas was given.
13023 if test "${with_quotas+set}" = set; then
13024 withval="$with_quotas"
13027 echo "$ac_t""yes" 1>&6
13030 # Check for kernel 2.4.x quota braindamage...
13031 echo $ac_n "checking for linux 2.4.x quota braindamage..""... $ac_c" 1>&6
13032 echo "configure:13033: checking for linux 2.4.x quota braindamage.." >&5
13033 if eval "test \"`echo '$''{'samba_cv_linux_2_4_quota_braindamage'+set}'`\" = set"; then
13034 echo $ac_n "(cached) $ac_c" 1>&6
13037 cat > conftest.$ac_ext <<EOF
13038 #line 13039 "configure"
13039 #include "confdefs.h"
13041 #include <sys/types.h>
13042 #include <asm/types.h>
13043 #include <linux/quota.h>
13044 #include <mntent.h>
13045 #include <linux/unistd.h>
13047 struct mem_dqblk D;
13050 if { (eval echo configure:13051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13052 samba_cv_linux_2_4_quota_braindamage=yes
13054 echo "configure: failed program was:" >&5
13055 cat conftest.$ac_ext >&5
13057 samba_cv_linux_2_4_quota_braindamage=no
13062 echo "$ac_t""$samba_cv_linux_2_4_quota_braindamage" 1>&6
13063 if test x"$samba_cv_linux_2_4_quota_braindamage" = x"yes"; then
13064 cat >> confdefs.h <<\EOF
13065 #define LINUX_QUOTAS_2 1
13069 cat >> confdefs.h <<\EOF
13070 #define LINUX_QUOTAS_1 1
13078 QUOTAOBJS=smbd/quotas.o
13079 cat >> confdefs.h <<\EOF
13080 #define WITH_QUOTAS 1
13085 echo "$ac_t""no" 1>&6
13089 echo "$ac_t""no" 1>&6
13095 #################################################
13096 # check for experimental utmp accounting
13098 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
13099 echo "configure:13100: checking whether to support utmp accounting" >&5
13100 # Check whether --with-utmp or --without-utmp was given.
13101 if test "${with_utmp+set}" = set; then
13102 withval="$with_utmp"
13105 echo "$ac_t""yes" 1>&6
13106 cat >> confdefs.h <<\EOF
13107 #define WITH_UTMP 1
13112 echo "$ac_t""no" 1>&6
13116 echo "$ac_t""no" 1>&6
13121 #################################################
13122 # choose native language(s) of man pages
13123 echo $ac_n "checking chosen man pages' language(s)""... $ac_c" 1>&6
13124 echo "configure:13125: checking chosen man pages' language(s)" >&5
13125 # Check whether --with-manpages-langs or --without-manpages-langs was given.
13126 if test "${with_manpages_langs+set}" = set; then
13127 withval="$with_manpages_langs"
13130 echo "configure: warning: --with-manpages-langs called without argument - will use default" 1>&2
13134 manlangs="$withval"
13138 echo "$ac_t""$manlangs" 1>&6
13139 manlangs=`echo $manlangs | sed "s/,/ /"` # replacing commas with spaces to produce a list
13143 echo "$ac_t""$manlangs" 1>&6
13149 #################################################
13150 # should we build libsmbclient?
13152 LIBSMBCLIENT_SHARED=
13154 echo $ac_n "checking whether to build the libsmbclient shared library""... $ac_c" 1>&6
13155 echo "configure:13156: checking whether to build the libsmbclient shared library" >&5
13156 # Check whether --with-libsmbclient or --without-libsmbclient was given.
13157 if test "${with_libsmbclient+set}" = set; then
13158 withval="$with_libsmbclient"
13161 echo "$ac_t""no" 1>&6
13164 if test $BLDSHARED = true; then
13165 LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
13166 LIBSMBCLIENT=libsmbclient
13167 echo "$ac_t""yes" 1>&6
13169 echo "$ac_t""no shared library support" 1>&6
13174 echo "$ac_t""yes" 1>&6
13180 #################################################
13181 # these tests are taken from the GNU fileutils package
13182 echo "checking how to get filesystem space usage" 1>&6
13183 echo "configure:13184: checking how to get filesystem space usage" >&5
13186 # Test for statvfs64.
13187 if test $space = no; then
13189 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
13190 echo "configure:13191: checking statvfs64 function (SVR4)" >&5
13191 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
13192 echo $ac_n "(cached) $ac_c" 1>&6
13194 if test "$cross_compiling" = yes; then
13195 fu_cv_sys_stat_statvfs64=cross
13197 cat > conftest.$ac_ext <<EOF
13198 #line 13199 "configure"
13199 #include "confdefs.h"
13201 #if defined(HAVE_UNISTD_H)
13202 #include <unistd.h>
13204 #include <sys/types.h>
13205 #include <sys/statvfs.h>
13208 struct statvfs64 fsd;
13209 exit (statvfs64 (".", &fsd));
13212 if { (eval echo configure:13213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13214 fu_cv_sys_stat_statvfs64=yes
13216 echo "configure: failed program was:" >&5
13217 cat conftest.$ac_ext >&5
13219 fu_cv_sys_stat_statvfs64=no
13226 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
13227 if test $fu_cv_sys_stat_statvfs64 = yes; then
13229 cat >> confdefs.h <<\EOF
13230 #define STAT_STATVFS64 1
13236 # Perform only the link test since it seems there are no variants of the
13237 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
13238 # because that got a false positive on SCO OSR5. Adding the declaration
13239 # of a `struct statvfs' causes this test to fail (as it should) on such
13240 # systems. That system is reported to work fine with STAT_STATFS4 which
13241 # is what it gets when this test fails.
13242 if test $space = no; then
13244 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
13245 echo "configure:13246: checking statvfs function (SVR4)" >&5
13246 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
13247 echo $ac_n "(cached) $ac_c" 1>&6
13249 cat > conftest.$ac_ext <<EOF
13250 #line 13251 "configure"
13251 #include "confdefs.h"
13252 #include <sys/types.h>
13253 #include <sys/statvfs.h>
13255 struct statvfs fsd; statvfs (0, &fsd);
13258 if { (eval echo configure:13259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13260 fu_cv_sys_stat_statvfs=yes
13262 echo "configure: failed program was:" >&5
13263 cat conftest.$ac_ext >&5
13265 fu_cv_sys_stat_statvfs=no
13270 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
13271 if test $fu_cv_sys_stat_statvfs = yes; then
13273 cat >> confdefs.h <<\EOF
13274 #define STAT_STATVFS 1
13280 if test $space = no; then
13281 # DEC Alpha running OSF/1
13282 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
13283 echo "configure:13284: checking for 3-argument statfs function (DEC OSF/1)" >&5
13284 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
13285 echo $ac_n "(cached) $ac_c" 1>&6
13287 if test "$cross_compiling" = yes; then
13288 fu_cv_sys_stat_statfs3_osf1=no
13290 cat > conftest.$ac_ext <<EOF
13291 #line 13292 "configure"
13292 #include "confdefs.h"
13294 #include <sys/param.h>
13295 #include <sys/types.h>
13296 #include <sys/mount.h>
13301 exit (statfs (".", &fsd, sizeof (struct statfs)));
13304 if { (eval echo configure:13305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13306 fu_cv_sys_stat_statfs3_osf1=yes
13308 echo "configure: failed program was:" >&5
13309 cat conftest.$ac_ext >&5
13311 fu_cv_sys_stat_statfs3_osf1=no
13318 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
13319 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
13321 cat >> confdefs.h <<\EOF
13322 #define STAT_STATFS3_OSF1 1
13328 if test $space = no; then
13330 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
13331 echo "configure:13332: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
13332 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
13333 echo $ac_n "(cached) $ac_c" 1>&6
13335 if test "$cross_compiling" = yes; then
13336 fu_cv_sys_stat_statfs2_bsize=no
13338 cat > conftest.$ac_ext <<EOF
13339 #line 13340 "configure"
13340 #include "confdefs.h"
13342 #ifdef HAVE_SYS_PARAM_H
13343 #include <sys/param.h>
13345 #ifdef HAVE_SYS_MOUNT_H
13346 #include <sys/mount.h>
13348 #ifdef HAVE_SYS_VFS_H
13349 #include <sys/vfs.h>
13355 exit (statfs (".", &fsd));
13358 if { (eval echo configure:13359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13360 fu_cv_sys_stat_statfs2_bsize=yes
13362 echo "configure: failed program was:" >&5
13363 cat conftest.$ac_ext >&5
13365 fu_cv_sys_stat_statfs2_bsize=no
13372 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
13373 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
13375 cat >> confdefs.h <<\EOF
13376 #define STAT_STATFS2_BSIZE 1
13382 if test $space = no; then
13384 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
13385 echo "configure:13386: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
13386 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
13387 echo $ac_n "(cached) $ac_c" 1>&6
13389 if test "$cross_compiling" = yes; then
13390 fu_cv_sys_stat_statfs4=no
13392 cat > conftest.$ac_ext <<EOF
13393 #line 13394 "configure"
13394 #include "confdefs.h"
13395 #include <sys/types.h>
13396 #include <sys/statfs.h>
13400 exit (statfs (".", &fsd, sizeof fsd, 0));
13403 if { (eval echo configure:13404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13405 fu_cv_sys_stat_statfs4=yes
13407 echo "configure: failed program was:" >&5
13408 cat conftest.$ac_ext >&5
13410 fu_cv_sys_stat_statfs4=no
13417 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
13418 if test $fu_cv_sys_stat_statfs4 = yes; then
13420 cat >> confdefs.h <<\EOF
13421 #define STAT_STATFS4 1
13427 if test $space = no; then
13428 # 4.4BSD and NetBSD
13429 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
13430 echo "configure:13431: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
13431 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
13432 echo $ac_n "(cached) $ac_c" 1>&6
13434 if test "$cross_compiling" = yes; then
13435 fu_cv_sys_stat_statfs2_fsize=no
13437 cat > conftest.$ac_ext <<EOF
13438 #line 13439 "configure"
13439 #include "confdefs.h"
13440 #include <sys/types.h>
13441 #ifdef HAVE_SYS_PARAM_H
13442 #include <sys/param.h>
13444 #ifdef HAVE_SYS_MOUNT_H
13445 #include <sys/mount.h>
13451 exit (statfs (".", &fsd));
13454 if { (eval echo configure:13455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13456 fu_cv_sys_stat_statfs2_fsize=yes
13458 echo "configure: failed program was:" >&5
13459 cat conftest.$ac_ext >&5
13461 fu_cv_sys_stat_statfs2_fsize=no
13468 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
13469 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
13471 cat >> confdefs.h <<\EOF
13472 #define STAT_STATFS2_FSIZE 1
13478 if test $space = no; then
13480 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
13481 echo "configure:13482: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
13482 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
13483 echo $ac_n "(cached) $ac_c" 1>&6
13485 if test "$cross_compiling" = yes; then
13486 fu_cv_sys_stat_fs_data=no
13488 cat > conftest.$ac_ext <<EOF
13489 #line 13490 "configure"
13490 #include "confdefs.h"
13491 #include <sys/types.h>
13492 #ifdef HAVE_SYS_PARAM_H
13493 #include <sys/param.h>
13495 #ifdef HAVE_SYS_MOUNT_H
13496 #include <sys/mount.h>
13498 #ifdef HAVE_SYS_FS_TYPES_H
13499 #include <sys/fs_types.h>
13503 struct fs_data fsd;
13504 /* Ultrix's statfs returns 1 for success,
13505 0 for not mounted, -1 for failure. */
13506 exit (statfs (".", &fsd) != 1);
13509 if { (eval echo configure:13510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13511 fu_cv_sys_stat_fs_data=yes
13513 echo "configure: failed program was:" >&5
13514 cat conftest.$ac_ext >&5
13516 fu_cv_sys_stat_fs_data=no
13523 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
13524 if test $fu_cv_sys_stat_fs_data = yes; then
13526 cat >> confdefs.h <<\EOF
13527 #define STAT_STATFS2_FS_DATA 1
13534 # As a gating factor for large file support, in order to
13535 # use <4GB files we must have the following minimal support
13537 # long long, and a 64 bit off_t or off64_t.
13538 # If we don't have all of these then disable large
13541 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
13542 echo "configure:13543: checking if large file support can be enabled" >&5
13543 cat > conftest.$ac_ext <<EOF
13544 #line 13545 "configure"
13545 #include "confdefs.h"
13547 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
13548 #include <sys/types.h>
13557 if { (eval echo configure:13558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13559 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
13561 echo "configure: failed program was:" >&5
13562 cat conftest.$ac_ext >&5
13564 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
13567 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
13568 cat >> confdefs.h <<\EOF
13569 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
13573 echo "$ac_t""$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" 1>&6
13575 # Check whether --with-spinlocks or --without-spinlocks was given.
13576 if test "${with_spinlocks+set}" = set; then
13577 withval="$with_spinlocks"
13581 if test "x$with_spinlocks" = "xyes"; then
13582 cat >> confdefs.h <<\EOF
13583 #define USE_SPINLOCKS 1
13587 case "$host_cpu" in
13589 cat >> confdefs.h <<\EOF
13590 #define SPARC_SPINLOCKS 1
13595 i386|i486|i586|i686)
13596 cat >> confdefs.h <<\EOF
13597 #define INTEL_SPINLOCKS 1
13603 cat >> confdefs.h <<\EOF
13604 #define MIPS_SPINLOCKS 1
13610 cat >> confdefs.h <<\EOF
13611 #define POWERPC_SPINLOCKS 1
13618 #################################################
13619 # check for ACL support
13621 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
13622 echo "configure:13623: checking whether to support ACLs" >&5
13623 # Check whether --with-acl-support or --without-acl-support was given.
13624 if test "${with_acl_support+set}" = set; then
13625 withval="$with_acl_support"
13631 echo "$ac_t""Using UnixWare ACLs" 1>&6
13632 cat >> confdefs.h <<\EOF
13633 #define HAVE_UNIXWARE_ACLS 1
13638 echo "$ac_t""Using solaris ACLs" 1>&6
13639 cat >> confdefs.h <<\EOF
13640 #define HAVE_SOLARIS_ACLS 1
13645 echo "$ac_t""Using HPUX ACLs" 1>&6
13646 cat >> confdefs.h <<\EOF
13647 #define HAVE_HPUX_ACLS 1
13652 echo "$ac_t""Using IRIX ACLs" 1>&6
13653 cat >> confdefs.h <<\EOF
13654 #define HAVE_IRIX_ACLS 1
13659 echo "$ac_t""Using AIX ACLs" 1>&6
13660 cat >> confdefs.h <<\EOF
13661 #define HAVE_AIX_ACLS 1
13666 echo "$ac_t""Using Tru64 ACLs" 1>&6
13667 cat >> confdefs.h <<\EOF
13668 #define HAVE_TRU64_ACLS 1
13671 LIBS="$LIBS -lpacl"
13674 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
13675 echo "configure:13676: checking for acl_get_file in -lacl" >&5
13676 ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
13677 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13678 echo $ac_n "(cached) $ac_c" 1>&6
13680 ac_save_LIBS="$LIBS"
13682 cat > conftest.$ac_ext <<EOF
13683 #line 13684 "configure"
13684 #include "confdefs.h"
13685 /* Override any gcc2 internal prototype to avoid an error. */
13686 /* We use char because int might match the return type of a gcc2
13687 builtin and then its argument prototype would still apply. */
13688 char acl_get_file();
13694 if { (eval echo configure:13695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13696 eval "ac_cv_lib_$ac_lib_var=yes"
13698 echo "configure: failed program was:" >&5
13699 cat conftest.$ac_ext >&5
13701 eval "ac_cv_lib_$ac_lib_var=no"
13704 LIBS="$ac_save_LIBS"
13707 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13708 echo "$ac_t""yes" 1>&6
13709 ac_tr_lib=HAVE_LIB`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13710 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13711 cat >> confdefs.h <<EOF
13712 #define $ac_tr_lib 1
13718 echo "$ac_t""no" 1>&6
13721 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
13722 echo "configure:13723: checking for ACL support" >&5
13723 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
13724 echo $ac_n "(cached) $ac_c" 1>&6
13727 cat > conftest.$ac_ext <<EOF
13728 #line 13729 "configure"
13729 #include "confdefs.h"
13730 #include <sys/types.h>
13731 #include <sys/acl.h>
13733 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
13736 if { (eval echo configure:13737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13738 samba_cv_HAVE_POSIX_ACLS=yes
13740 echo "configure: failed program was:" >&5
13741 cat conftest.$ac_ext >&5
13743 samba_cv_HAVE_POSIX_ACLS=no
13748 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
13749 if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
13750 echo "$ac_t""Using posix ACLs" 1>&6
13751 cat >> confdefs.h <<\EOF
13752 #define HAVE_POSIX_ACLS 1
13755 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
13756 echo "configure:13757: checking for acl_get_perm_np" >&5
13757 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
13758 echo $ac_n "(cached) $ac_c" 1>&6
13761 cat > conftest.$ac_ext <<EOF
13762 #line 13763 "configure"
13763 #include "confdefs.h"
13764 #include <sys/types.h>
13765 #include <sys/acl.h>
13767 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
13770 if { (eval echo configure:13771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13772 samba_cv_HAVE_ACL_GET_PERM_NP=yes
13774 echo "configure: failed program was:" >&5
13775 cat conftest.$ac_ext >&5
13777 samba_cv_HAVE_ACL_GET_PERM_NP=no
13782 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
13783 if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
13784 cat >> confdefs.h <<\EOF
13785 #define HAVE_ACL_GET_PERM_NP 1
13794 echo "$ac_t""no" 1>&6
13795 cat >> confdefs.h <<\EOF
13796 #define HAVE_NO_ACLS 1
13802 cat >> confdefs.h <<\EOF
13803 #define HAVE_NO_ACLS 1
13806 echo "$ac_t""no" 1>&6
13811 #################################################
13812 # check for sendfile support
13814 echo $ac_n "checking whether to support sendfile""... $ac_c" 1>&6
13815 echo "configure:13816: checking whether to support sendfile" >&5
13816 # Check whether --with-sendfile-support or --without-sendfile-support was given.
13817 if test "${with_sendfile_support+set}" = set; then
13818 withval="$with_sendfile_support"
13824 echo $ac_n "checking for linux sendfile64 support""... $ac_c" 1>&6
13825 echo "configure:13826: checking for linux sendfile64 support" >&5
13826 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE64'+set}'`\" = set"; then
13827 echo $ac_n "(cached) $ac_c" 1>&6
13830 cat > conftest.$ac_ext <<EOF
13831 #line 13832 "configure"
13832 #include "confdefs.h"
13833 #include <sys/sendfile.h>
13839 ssize_t nwritten = sendfile64(tofd, fromfd, &offset, total);
13843 if { (eval echo configure:13844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13845 samba_cv_HAVE_SENDFILE64=yes
13847 echo "configure: failed program was:" >&5
13848 cat conftest.$ac_ext >&5
13850 samba_cv_HAVE_SENDFILE64=no
13855 echo "$ac_t""$samba_cv_HAVE_SENDFILE64" 1>&6
13857 echo $ac_n "checking for linux sendfile support""... $ac_c" 1>&6
13858 echo "configure:13859: checking for linux sendfile support" >&5
13859 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE'+set}'`\" = set"; then
13860 echo $ac_n "(cached) $ac_c" 1>&6
13863 cat > conftest.$ac_ext <<EOF
13864 #line 13865 "configure"
13865 #include "confdefs.h"
13866 #include <sys/sendfile.h>
13872 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
13876 if { (eval echo configure:13877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13878 samba_cv_HAVE_SENDFILE=yes
13880 echo "configure: failed program was:" >&5
13881 cat conftest.$ac_ext >&5
13883 samba_cv_HAVE_SENDFILE=no
13888 echo "$ac_t""$samba_cv_HAVE_SENDFILE" 1>&6
13890 # Try and cope with broken Linux sendfile....
13891 echo $ac_n "checking for broken linux sendfile support""... $ac_c" 1>&6
13892 echo "configure:13893: checking for broken linux sendfile support" >&5
13893 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_LINUX_SENDFILE'+set}'`\" = set"; then
13894 echo $ac_n "(cached) $ac_c" 1>&6
13897 cat > conftest.$ac_ext <<EOF
13898 #line 13899 "configure"
13899 #include "confdefs.h"
13901 #if defined(_FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS == 64)
13902 #undef _FILE_OFFSET_BITS
13904 #include <sys/sendfile.h>
13910 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
13914 if { (eval echo configure:13915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13916 samba_cv_HAVE_BROKEN_LINUX_SENDFILE=yes
13918 echo "configure: failed program was:" >&5
13919 cat conftest.$ac_ext >&5
13921 samba_cv_HAVE_BROKEN_LINUX_SENDFILE=no
13926 echo "$ac_t""$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" 1>&6
13928 if test x"$samba_cv_HAVE_SENDFILE64" = x"yes"; then
13929 cat >> confdefs.h <<\EOF
13930 #define HAVE_SENDFILE64 1
13933 cat >> confdefs.h <<\EOF
13934 #define LINUX_SENDFILE_API 1
13937 cat >> confdefs.h <<\EOF
13938 #define WITH_SENDFILE 1
13941 elif test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
13942 cat >> confdefs.h <<\EOF
13943 #define HAVE_SENDFILE 1
13946 cat >> confdefs.h <<\EOF
13947 #define LINUX_SENDFILE_API 1
13950 cat >> confdefs.h <<\EOF
13951 #define WITH_SENDFILE 1
13954 elif test x"$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" = x"yes"; then
13955 cat >> confdefs.h <<\EOF
13956 #define LINUX_BROKEN_SENDFILE_API 1
13959 cat >> confdefs.h <<\EOF
13960 #define WITH_SENDFILE 1
13964 echo "$ac_t""no" 1>&6;
13969 echo $ac_n "checking for freebsd sendfile support""... $ac_c" 1>&6
13970 echo "configure:13971: checking for freebsd sendfile support" >&5
13971 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE'+set}'`\" = set"; then
13972 echo $ac_n "(cached) $ac_c" 1>&6
13975 cat > conftest.$ac_ext <<EOF
13976 #line 13977 "configure"
13977 #include "confdefs.h"
13979 #include <sys/types.h>
13980 #include <sys/socket.h>
13981 #include <sys/uio.h>
13985 off_t offset, nwritten;
13986 struct sf_hdtr hdr;
13987 struct iovec hdtrl;
13988 hdr->headers = &hdtrl;
13990 hdr->trailers = NULL;
13992 hdtrl.iov_base = NULL;
13994 int ret = sendfile(fromfd, tofd, offset, total, &hdr, &nwritten, 0);
13998 if { (eval echo configure:13999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14000 samba_cv_HAVE_SENDFILE=yes
14002 echo "configure: failed program was:" >&5
14003 cat conftest.$ac_ext >&5
14005 samba_cv_HAVE_SENDFILE=no
14010 echo "$ac_t""$samba_cv_HAVE_SENDFILE" 1>&6
14012 if test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
14013 cat >> confdefs.h <<\EOF
14014 #define HAVE_SENDFILE 1
14017 cat >> confdefs.h <<\EOF
14018 #define FREEBSD_SENDFILE_API 1
14021 cat >> confdefs.h <<\EOF
14022 #define WITH_SENDFILE 1
14026 echo "$ac_t""no" 1>&6;
14034 echo "$ac_t""no" 1>&6
14038 echo "$ac_t""no" 1>&6
14044 #################################################
14045 # Check whether winbind is supported on this platform. If so we need to
14046 # build and install client programs (WINBIND_TARGETS), sbin programs
14047 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
14049 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
14050 echo "configure:14051: checking whether to build winbind" >&5
14052 # Initially, the value of $host_os decides whether winbind is supported
14060 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
14061 WINBIND_NSS_EXTRA_LIBS="-lsocket"
14065 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
14069 winbind_no_reason=", unsupported on $host_os"
14073 # Check the setting of --with-winbindd
14075 # Check whether --with-winbind or --without-winbind was given.
14076 if test "${with_winbind+set}" = set; then
14077 withval="$with_winbind"
14091 # We need unix domain sockets for winbind
14093 if test x"$HAVE_WINBIND" = x"yes"; then
14094 if test x"$samba_cv_unixsocket" = x"no"; then
14095 winbind_no_reason=", no unix domain socket support on $host_os"
14100 # Display test results
14103 WINBIND_STARGETS=""
14104 WINBIND_LTARGETS=""
14105 WINBIND_PAM_PROGS=""
14107 if test x"$HAVE_WINBIND" = x"yes"; then
14108 echo "$ac_t""yes" 1>&6
14109 cat >> confdefs.h <<\EOF
14110 #define WITH_WINBIND 1
14114 WINBIND_TARGETS="bin/wbinfo"
14115 WINBIND_STARGETS="bin/winbindd"
14116 if test x"$BLDSHARED" = x"true"; then
14117 WINBIND_LTARGETS="nsswitch/libnss_winbind.so"
14118 if test x"$with_pam" = x"yes"; then
14119 WINBIND_PAM_TARGETS="nsswitch/pam_winbind.so"
14123 echo "$ac_t""no$winbind_no_reason" 1>&6
14127 # Substitution time!
14136 # Solaris has some extra fields in struct passwd that need to be
14137 # initialised otherwise nscd crashes. Unfortunately autoconf < 2.50
14138 # doesn't have the AC_CHECK_MEMBER macro which would be handy for checking
14141 #AC_CHECK_MEMBER(struct passwd.pw_comment,
14142 # AC_DEFINE(HAVE_PASSWD_PW_COMMENT, 1, [Defined if struct passwd has pw_comment field]),
14143 # [#include <pwd.h>])
14145 echo $ac_n "checking whether struct passwd has pw_comment""... $ac_c" 1>&6
14146 echo "configure:14147: checking whether struct passwd has pw_comment" >&5
14147 if eval "test \"`echo '$''{'samba_cv_passwd_pw_comment'+set}'`\" = set"; then
14148 echo $ac_n "(cached) $ac_c" 1>&6
14151 cat > conftest.$ac_ext <<EOF
14152 #line 14153 "configure"
14153 #include "confdefs.h"
14156 struct passwd p; p.pw_comment;
14159 if { (eval echo configure:14160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14161 samba_cv_passwd_pw_comment=yes
14163 echo "configure: failed program was:" >&5
14164 cat conftest.$ac_ext >&5
14166 samba_cv_passwd_pw_comment=no
14171 echo "$ac_t""$samba_cv_passwd_pw_comment" 1>&6
14172 if test x"$samba_cv_passwd_pw_comment" = x"yes"; then
14173 cat >> confdefs.h <<\EOF
14174 #define HAVE_PASSWD_PW_COMMENT 1
14179 #AC_CHECK_MEMBER(struct passwd.pw_age,
14180 # AC_DEFINE(HAVE_PASSWD_PW_AGE, 1, [Defined if struct passwd has pw_age field]),
14181 # [#include <pwd.h>])
14183 echo $ac_n "checking whether struct passwd has pw_age""... $ac_c" 1>&6
14184 echo "configure:14185: checking whether struct passwd has pw_age" >&5
14185 if eval "test \"`echo '$''{'samba_cv_passwd_pw_age'+set}'`\" = set"; then
14186 echo $ac_n "(cached) $ac_c" 1>&6
14189 cat > conftest.$ac_ext <<EOF
14190 #line 14191 "configure"
14191 #include "confdefs.h"
14194 struct passwd p; p.pw_age;
14197 if { (eval echo configure:14198: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14199 samba_cv_passwd_pw_age=yes
14201 echo "configure: failed program was:" >&5
14202 cat conftest.$ac_ext >&5
14204 samba_cv_passwd_pw_age=no
14209 echo "$ac_t""$samba_cv_passwd_pw_age" 1>&6
14210 if test x"$samba_cv_passwd_pw_age" = x"yes"; then
14211 cat >> confdefs.h <<\EOF
14212 #define HAVE_PASSWD_PW_AGE 1
14217 #################################################
14218 # Check to see if we should use the included popt
14220 # Check whether --with-included-popt or --without-included-popt was given.
14221 if test "${with_included_popt+set}" = set; then
14222 withval="$with_included_popt"
14234 if test x"$INCLUDED_POPT" != x"yes"; then
14235 echo $ac_n "checking for poptGetContext in -lpopt""... $ac_c" 1>&6
14236 echo "configure:14237: checking for poptGetContext in -lpopt" >&5
14237 ac_lib_var=`echo popt'_'poptGetContext | sed 'y%./+-%__p_%'`
14238 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14239 echo $ac_n "(cached) $ac_c" 1>&6
14241 ac_save_LIBS="$LIBS"
14242 LIBS="-lpopt $LIBS"
14243 cat > conftest.$ac_ext <<EOF
14244 #line 14245 "configure"
14245 #include "confdefs.h"
14246 /* Override any gcc2 internal prototype to avoid an error. */
14247 /* We use char because int might match the return type of a gcc2
14248 builtin and then its argument prototype would still apply. */
14249 char poptGetContext();
14255 if { (eval echo configure:14256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14257 eval "ac_cv_lib_$ac_lib_var=yes"
14259 echo "configure: failed program was:" >&5
14260 cat conftest.$ac_ext >&5
14262 eval "ac_cv_lib_$ac_lib_var=no"
14265 LIBS="$ac_save_LIBS"
14268 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14269 echo "$ac_t""yes" 1>&6
14272 echo "$ac_t""no" 1>&6
14278 echo $ac_n "checking whether to use included popt""... $ac_c" 1>&6
14279 echo "configure:14280: checking whether to use included popt" >&5
14280 if test x"$INCLUDED_POPT" = x"yes"; then
14281 echo "$ac_t""yes" 1>&6
14282 BUILD_POPT='$(POPT_OBJS)'
14283 FLAGS1="-I$srcdir/popt"
14285 echo "$ac_t""no" 1>&6
14286 LIBS="$LIBS -lpopt"
14291 #################################################
14292 # Check if the user wants Python
14294 # At the moment, you can use this to set which Python binary to link
14295 # against. (Libraries built for Python2.2 can't be used by 2.1,
14296 # though they can coexist in different directories.) In the future
14297 # this might make the Python stuff be built by default.
14299 # Check whether --with-python or --without-python was given.
14300 if test "${with_python+set}" = set; then
14301 withval="$with_python"
14302 case "${withval-python}" in
14307 PYTHON=${withval-python}
14314 #################################################
14315 # do extra things if we are running insure
14317 if test "${ac_cv_prog_CC}" = "insure"; then
14318 CPPFLAGS="$CPPFLAGS -D__INSURE__"
14321 #################################################
14322 # final configure stuff
14324 echo $ac_n "checking configure summary""... $ac_c" 1>&6
14325 echo "configure:14326: checking configure summary" >&5
14326 if test "$cross_compiling" = yes; then
14327 echo "configure: warning: cannot run when cross-compiling" 1>&2
14329 cat > conftest.$ac_ext <<EOF
14330 #line 14331 "configure"
14331 #include "confdefs.h"
14332 #include "${srcdir-.}/tests/summary.c"
14334 if { (eval echo configure:14335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14336 echo "$ac_t""yes" 1>&6
14338 echo "configure: failed program was:" >&5
14339 cat conftest.$ac_ext >&5
14341 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }; exit 1;
14350 # I added make files that are outside /source directory.
14351 # I know this is not a good solution, will work out a better
14352 # solution soon. --simo
14354 cat > confcache <<\EOF
14355 # This file is a shell script that caches the results of configure
14356 # tests run on this system so they can be shared between configure
14357 # scripts and configure runs. It is not useful on other systems.
14358 # If it contains results you don't want to keep, you may remove or edit it.
14360 # By default, configure uses ./config.cache as the cache file,
14361 # creating it if it does not exist already. You can give configure
14362 # the --cache-file=FILE option to use a different cache file; that is
14363 # what configure does when it calls configure scripts in
14364 # subdirectories, so they share the cache.
14365 # Giving --cache-file=/dev/null disables caching, for debugging configure.
14366 # config.status only pays attention to the cache file if you give it the
14367 # --recheck option to rerun configure.
14370 # The following way of writing the cache mishandles newlines in values,
14371 # but we know of no workaround that is simple, portable, and efficient.
14372 # So, don't put newlines in cache variables' values.
14373 # Ultrix sh set writes to stderr and can't be redirected directly,
14374 # and sets the high bit in the cache file unless we assign to the vars.
14376 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14378 # `set' does not quote correctly, so add quotes (double-quote substitution
14379 # turns \\\\ into \\, and sed turns \\ into \).
14381 -e "s/'/'\\\\''/g" \
14382 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
14385 # `set' quotes correctly as required by POSIX, so do not add quotes.
14386 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
14389 if cmp -s $cache_file confcache; then
14392 if test -w $cache_file; then
14393 echo "updating cache $cache_file"
14394 cat confcache > $cache_file
14396 echo "not updating unwritable cache $cache_file"
14401 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
14403 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14404 # Let make expand exec_prefix.
14405 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14407 # Any assignment to VPATH causes Sun make to only execute
14408 # the first set of double-colon rules, so remove it if not needed.
14409 # If there is a colon in the path, we need to keep it.
14410 if test "x$srcdir" = x.; then
14411 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
14414 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
14416 DEFS=-DHAVE_CONFIG_H
14418 # Without the "./", some shells look in PATH for config.status.
14419 : ${CONFIG_STATUS=./config.status}
14421 echo creating $CONFIG_STATUS
14422 rm -f $CONFIG_STATUS
14423 cat > $CONFIG_STATUS <<EOF
14425 # Generated automatically by configure.
14426 # Run this file to recreate the current configuration.
14427 # This directory was configured as follows,
14428 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14430 # $0 $ac_configure_args
14432 # Compiler output produced by configure, useful for debugging
14433 # configure, is in ./config.log if it exists.
14435 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
14438 case "\$ac_option" in
14439 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14440 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
14441 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
14442 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
14443 echo "$CONFIG_STATUS generated by autoconf version 2.13"
14445 -help | --help | --hel | --he | --h)
14446 echo "\$ac_cs_usage"; exit 0 ;;
14447 *) echo "\$ac_cs_usage"; exit 1 ;;
14451 ac_given_srcdir=$srcdir
14452 ac_given_INSTALL="$INSTALL"
14454 trap 'rm -fr `echo "include/stamp-h Makefile script/findsmb ../examples/VFS/Makefile ../examples/pdb/mysql/Makefile ../examples/pdb/xml/Makefile ../examples/sam/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
14456 cat >> $CONFIG_STATUS <<EOF
14458 # Protect against being on the right side of a sed subst in config.status.
14459 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
14460 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
14464 s%@CFLAGS@%$CFLAGS%g
14465 s%@CPPFLAGS@%$CPPFLAGS%g
14466 s%@CXXFLAGS@%$CXXFLAGS%g
14467 s%@FFLAGS@%$FFLAGS%g
14469 s%@LDFLAGS@%$LDFLAGS%g
14471 s%@exec_prefix@%$exec_prefix%g
14472 s%@prefix@%$prefix%g
14473 s%@program_transform_name@%$program_transform_name%g
14474 s%@bindir@%$bindir%g
14475 s%@sbindir@%$sbindir%g
14476 s%@libexecdir@%$libexecdir%g
14477 s%@datadir@%$datadir%g
14478 s%@sysconfdir@%$sysconfdir%g
14479 s%@sharedstatedir@%$sharedstatedir%g
14480 s%@localstatedir@%$localstatedir%g
14481 s%@libdir@%$libdir%g
14482 s%@includedir@%$includedir%g
14483 s%@oldincludedir@%$oldincludedir%g
14484 s%@infodir@%$infodir%g
14485 s%@mandir@%$mandir%g
14486 s%@configdir@%$configdir%g
14487 s%@lockdir@%$lockdir%g
14488 s%@piddir@%$piddir%g
14489 s%@logfilebase@%$logfilebase%g
14490 s%@privatedir@%$privatedir%g
14491 s%@swatdir@%$swatdir%g
14492 s%@RUNPROG@%$RUNPROG%g
14493 s%@MPROGS@%$MPROGS%g
14494 s%@LDSHFLAGS@%$LDSHFLAGS%g
14495 s%@SONAMEFLAG@%$SONAMEFLAG%g
14497 s%@HOST_OS@%$HOST_OS%g
14498 s%@PAM_MOD@%$PAM_MOD%g
14500 s%@WRAP32@%$WRAP32%g
14501 s%@WRAPPROG@%$WRAPPROG%g
14502 s%@PICFLAG@%$PICFLAG%g
14503 s%@PICSUFFIX@%$PICSUFFIX%g
14504 s%@POBAD_CC@%$POBAD_CC%g
14505 s%@SHLIBEXT@%$SHLIBEXT%g
14506 s%@LIBSMBCLIENT_SHARED@%$LIBSMBCLIENT_SHARED%g
14507 s%@LIBSMBCLIENT@%$LIBSMBCLIENT%g
14508 s%@PRINTLIBS@%$PRINTLIBS%g
14510 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
14511 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
14512 s%@INSTALL_DATA@%$INSTALL_DATA%g
14514 s%@BROKEN_CC@%$BROKEN_CC%g
14516 s%@host_alias@%$host_alias%g
14517 s%@host_cpu@%$host_cpu%g
14518 s%@host_vendor@%$host_vendor%g
14519 s%@host_os@%$host_os%g
14520 s%@target@%$target%g
14521 s%@target_alias@%$target_alias%g
14522 s%@target_cpu@%$target_cpu%g
14523 s%@target_vendor@%$target_vendor%g
14524 s%@target_os@%$target_os%g
14526 s%@build_alias@%$build_alias%g
14527 s%@build_cpu@%$build_cpu%g
14528 s%@build_vendor@%$build_vendor%g
14529 s%@build_os@%$build_os%g
14531 s%@CUPS_CONFIG@%$CUPS_CONFIG%g
14532 s%@LIBOBJS@%$LIBOBJS%g
14533 s%@TERMLIBS@%$TERMLIBS%g
14534 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
14536 s%@DYNEXP@%$DYNEXP%g
14537 s%@QUOTAOBJS@%$QUOTAOBJS%g
14538 s%@manlangs@%$manlangs%g
14539 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
14540 s%@WINBIND_STARGETS@%$WINBIND_STARGETS%g
14541 s%@WINBIND_LTARGETS@%$WINBIND_LTARGETS%g
14542 s%@WINBIND_PAM_TARGETS@%$WINBIND_PAM_TARGETS%g
14543 s%@WINBIND_NSS_EXTRA_OBJS@%$WINBIND_NSS_EXTRA_OBJS%g
14544 s%@WINBIND_NSS_EXTRA_LIBS@%$WINBIND_NSS_EXTRA_LIBS%g
14545 s%@BUILD_POPT@%$BUILD_POPT%g
14546 s%@FLAGS1@%$FLAGS1%g
14547 s%@PYTHON@%$PYTHON%g
14548 s%@builddir@%$builddir%g
14553 cat >> $CONFIG_STATUS <<\EOF
14555 # Split the substitutions into bite-sized pieces for seds with
14556 # small command number limits, like on Digital OSF/1 and HP-UX.
14557 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
14558 ac_file=1 # Number of current file.
14559 ac_beg=1 # First line for current file.
14560 ac_end=$ac_max_sed_cmds # Line after last line for current file.
14563 while $ac_more_lines; do
14564 if test $ac_beg -gt 1; then
14565 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
14567 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
14569 if test ! -s conftest.s$ac_file; then
14570 ac_more_lines=false
14571 rm -f conftest.s$ac_file
14573 if test -z "$ac_sed_cmds"; then
14574 ac_sed_cmds="sed -f conftest.s$ac_file"
14576 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
14578 ac_file=`expr $ac_file + 1`
14580 ac_end=`expr $ac_end + $ac_max_sed_cmds`
14583 if test -z "$ac_sed_cmds"; then
14588 cat >> $CONFIG_STATUS <<EOF
14590 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile script/findsmb ../examples/VFS/Makefile ../examples/pdb/mysql/Makefile ../examples/pdb/xml/Makefile ../examples/sam/Makefile"}
14592 cat >> $CONFIG_STATUS <<\EOF
14593 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
14594 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14596 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14597 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14598 *) ac_file_in="${ac_file}.in" ;;
14601 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
14603 # Remove last slash and all that follows it. Not all systems have dirname.
14604 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14605 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14606 # The file is in a subdirectory.
14607 test ! -d "$ac_dir" && mkdir "$ac_dir"
14608 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
14609 # A "../" for each directory in $ac_dir_suffix.
14610 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
14612 ac_dir_suffix= ac_dots=
14615 case "$ac_given_srcdir" in
14617 if test -z "$ac_dots"; then top_srcdir=.
14618 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
14619 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
14620 *) # Relative path.
14621 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
14622 top_srcdir="$ac_dots$ac_given_srcdir" ;;
14625 case "$ac_given_INSTALL" in
14626 [/$]*) INSTALL="$ac_given_INSTALL" ;;
14627 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
14630 echo creating "$ac_file"
14632 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
14634 *Makefile*) ac_comsub="1i\\
14635 # $configure_input" ;;
14639 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14641 s%@configure_input@%$configure_input%g
14642 s%@srcdir@%$srcdir%g
14643 s%@top_srcdir@%$top_srcdir%g
14644 s%@INSTALL@%$INSTALL%g
14645 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
14649 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14650 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14652 # ac_d sets the value in "#define NAME VALUE" lines.
14653 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14654 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
14657 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
14658 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14659 ac_uB='\([ ]\)%\1#\2define\3'
14662 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14663 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14664 ac_eB='$%\1#\2define\3'
14668 if test "${CONFIG_HEADERS+set}" != set; then
14670 cat >> $CONFIG_STATUS <<EOF
14671 CONFIG_HEADERS="include/config.h"
14673 cat >> $CONFIG_STATUS <<\EOF
14675 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
14676 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14678 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14679 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14680 *) ac_file_in="${ac_file}.in" ;;
14683 echo creating $ac_file
14685 rm -f conftest.frag conftest.in conftest.out
14686 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14687 cat $ac_file_inputs > conftest.in
14691 # Transform confdefs.h into a sed script conftest.vals that substitutes
14692 # the proper values into config.h.in to produce config.h. And first:
14693 # Protect against being on the right side of a sed subst in config.status.
14694 # Protect against being in an unquoted here document in config.status.
14695 rm -f conftest.vals
14696 cat > conftest.hdr <<\EOF
14699 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
14703 sed -n -f conftest.hdr confdefs.h > conftest.vals
14706 # This sed command replaces #undef with comments. This is necessary, for
14707 # example, in the case of _POSIX_SOURCE, which is predefined and required
14708 # on some systems where configure will not decide to define it.
14709 cat >> conftest.vals <<\EOF
14710 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
14713 # Break up conftest.vals because some shells have a limit on
14714 # the size of here documents, and old seds have small limits too.
14716 rm -f conftest.tail
14719 ac_lines=`grep -c . conftest.vals`
14720 # grep -c gives empty output for an empty file on some AIX systems.
14721 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
14722 # Write a limited-size here document to conftest.frag.
14723 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
14724 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
14726 sed -f conftest.frag conftest.in > conftest.out
14728 mv conftest.out conftest.in
14729 ' >> $CONFIG_STATUS
14730 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
14731 rm -f conftest.vals
14732 mv conftest.tail conftest.vals
14734 rm -f conftest.vals
14736 cat >> $CONFIG_STATUS <<\EOF
14737 rm -f conftest.frag conftest.h
14738 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
14739 cat conftest.in >> conftest.h
14741 if cmp -s $ac_file conftest.h 2>/dev/null; then
14742 echo "$ac_file is unchanged"
14745 # Remove last slash and all that follows it. Not all systems have dirname.
14746 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14747 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14748 # The file is in a subdirectory.
14749 test ! -d "$ac_dir" && mkdir "$ac_dir"
14752 mv conftest.h $ac_file
14757 cat >> $CONFIG_STATUS <<EOF
14760 cat >> $CONFIG_STATUS <<\EOF
14764 chmod +x $CONFIG_STATUS
14765 rm -fr confdefs* $ac_clean_files
14766 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
14769 #################################################
14770 # Print very concise instructions on building/use
14771 if test "x$enable_dmalloc" = xyes
14773 echo "$ac_t""Note: The dmalloc debug library will be included. To turn it on use" 1>&6
14774 echo "$ac_t"" \$ eval \`dmalloc samba\`." 1>&6