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-winbind Build winbind (default, if supported by OS)"
86 --with-included-popt use bundled popt library, not from system"
88 # Initialize some variables set by options.
89 # The variables have the same names as the options, with
90 # dashes changed to underlines.
92 cache_file=./config.cache
101 program_transform_name=s,x,x,
109 bindir='${exec_prefix}/bin'
110 sbindir='${exec_prefix}/sbin'
111 libexecdir='${exec_prefix}/libexec'
112 datadir='${prefix}/share'
113 sysconfdir='${prefix}/etc'
114 sharedstatedir='${prefix}/com'
115 localstatedir='${prefix}/var'
116 libdir='${exec_prefix}/lib'
117 includedir='${prefix}/include'
118 oldincludedir='/usr/include'
119 infodir='${prefix}/info'
120 mandir='${prefix}/man'
122 # Initialize some other variables.
125 SHELL=${CONFIG_SHELL-/bin/sh}
126 # Maximum number of lines to put in a shell here document.
133 # If the previous option needs an argument, assign it.
134 if test -n "$ac_prev"; then
135 eval "$ac_prev=\$ac_option"
141 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
145 # Accept the important Cygnus configure options, so we can diagnose typos.
149 -bindir | --bindir | --bindi | --bind | --bin | --bi)
151 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
152 bindir="$ac_optarg" ;;
154 -build | --build | --buil | --bui | --bu)
156 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
157 build="$ac_optarg" ;;
159 -cache-file | --cache-file | --cache-fil | --cache-fi \
160 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
161 ac_prev=cache_file ;;
162 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
163 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
164 cache_file="$ac_optarg" ;;
166 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
168 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
170 datadir="$ac_optarg" ;;
172 -disable-* | --disable-*)
173 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
174 # Reject names that are not valid shell variable names.
175 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
176 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
178 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
179 eval "enable_${ac_feature}=no" ;;
181 -enable-* | --enable-*)
182 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
183 # Reject names that are not valid shell variable names.
184 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
185 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
187 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
192 eval "enable_${ac_feature}='$ac_optarg'" ;;
194 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
195 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
196 | --exec | --exe | --ex)
197 ac_prev=exec_prefix ;;
198 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
199 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
200 | --exec=* | --exe=* | --ex=*)
201 exec_prefix="$ac_optarg" ;;
203 -gas | --gas | --ga | --g)
204 # Obsolete; use --with-gas.
207 -help | --help | --hel | --he)
208 # Omit some internal or obsolete options to make the list less imposing.
209 # This message is too long to be a string in the A/UX 3.1 sh.
211 Usage: configure [options] [host]
212 Options: [defaults in brackets after descriptions]
214 --cache-file=FILE cache test results in FILE
215 --help print this message
216 --no-create do not create output files
217 --quiet, --silent do not print \`checking...' messages
218 --version print the version of autoconf that created configure
219 Directory and file names:
220 --prefix=PREFIX install architecture-independent files in PREFIX
222 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
224 --bindir=DIR user executables in DIR [EPREFIX/bin]
225 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
226 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
227 --datadir=DIR read-only architecture-independent data in DIR
229 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
230 --sharedstatedir=DIR modifiable architecture-independent data in DIR
232 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
233 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
234 --includedir=DIR C header files in DIR [PREFIX/include]
235 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
236 --infodir=DIR info documentation in DIR [PREFIX/info]
237 --mandir=DIR man documentation in DIR [PREFIX/man]
238 --srcdir=DIR find the sources in DIR [configure dir or ..]
239 --program-prefix=PREFIX prepend PREFIX to installed program names
240 --program-suffix=SUFFIX append SUFFIX to installed program names
241 --program-transform-name=PROGRAM
242 run sed PROGRAM on installed program names
246 --build=BUILD configure for building on BUILD [BUILD=HOST]
247 --host=HOST configure for HOST [guessed]
248 --target=TARGET configure for TARGET [TARGET=HOST]
249 Features and packages:
250 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
251 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
252 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
253 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
254 --x-includes=DIR X include files are in DIR
255 --x-libraries=DIR X library files are in DIR
257 if test -n "$ac_help"; then
258 echo "--enable and --with options recognized:$ac_help"
262 -host | --host | --hos | --ho)
264 -host=* | --host=* | --hos=* | --ho=*)
267 -includedir | --includedir | --includedi | --included | --include \
268 | --includ | --inclu | --incl | --inc)
269 ac_prev=includedir ;;
270 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
271 | --includ=* | --inclu=* | --incl=* | --inc=*)
272 includedir="$ac_optarg" ;;
274 -infodir | --infodir | --infodi | --infod | --info | --inf)
276 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
277 infodir="$ac_optarg" ;;
279 -libdir | --libdir | --libdi | --libd)
281 -libdir=* | --libdir=* | --libdi=* | --libd=*)
282 libdir="$ac_optarg" ;;
284 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
285 | --libexe | --libex | --libe)
286 ac_prev=libexecdir ;;
287 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
288 | --libexe=* | --libex=* | --libe=*)
289 libexecdir="$ac_optarg" ;;
291 -localstatedir | --localstatedir | --localstatedi | --localstated \
292 | --localstate | --localstat | --localsta | --localst \
293 | --locals | --local | --loca | --loc | --lo)
294 ac_prev=localstatedir ;;
295 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
296 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
297 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
298 localstatedir="$ac_optarg" ;;
300 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
302 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
303 mandir="$ac_optarg" ;;
306 # Obsolete; use --without-fp.
309 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
313 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
314 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
317 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
318 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
319 | --oldin | --oldi | --old | --ol | --o)
320 ac_prev=oldincludedir ;;
321 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
322 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
323 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
324 oldincludedir="$ac_optarg" ;;
326 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
328 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
329 prefix="$ac_optarg" ;;
331 -program-prefix | --program-prefix | --program-prefi | --program-pref \
332 | --program-pre | --program-pr | --program-p)
333 ac_prev=program_prefix ;;
334 -program-prefix=* | --program-prefix=* | --program-prefi=* \
335 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
336 program_prefix="$ac_optarg" ;;
338 -program-suffix | --program-suffix | --program-suffi | --program-suff \
339 | --program-suf | --program-su | --program-s)
340 ac_prev=program_suffix ;;
341 -program-suffix=* | --program-suffix=* | --program-suffi=* \
342 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
343 program_suffix="$ac_optarg" ;;
345 -program-transform-name | --program-transform-name \
346 | --program-transform-nam | --program-transform-na \
347 | --program-transform-n | --program-transform- \
348 | --program-transform | --program-transfor \
349 | --program-transfo | --program-transf \
350 | --program-trans | --program-tran \
351 | --progr-tra | --program-tr | --program-t)
352 ac_prev=program_transform_name ;;
353 -program-transform-name=* | --program-transform-name=* \
354 | --program-transform-nam=* | --program-transform-na=* \
355 | --program-transform-n=* | --program-transform-=* \
356 | --program-transform=* | --program-transfor=* \
357 | --program-transfo=* | --program-transf=* \
358 | --program-trans=* | --program-tran=* \
359 | --progr-tra=* | --program-tr=* | --program-t=*)
360 program_transform_name="$ac_optarg" ;;
362 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
363 | -silent | --silent | --silen | --sile | --sil)
366 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
368 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
370 sbindir="$ac_optarg" ;;
372 -sharedstatedir | --sharedstatedir | --sharedstatedi \
373 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
374 | --sharedst | --shareds | --shared | --share | --shar \
376 ac_prev=sharedstatedir ;;
377 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
378 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
379 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
381 sharedstatedir="$ac_optarg" ;;
383 -site | --site | --sit)
385 -site=* | --site=* | --sit=*)
388 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
390 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
391 srcdir="$ac_optarg" ;;
393 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
394 | --syscon | --sysco | --sysc | --sys | --sy)
395 ac_prev=sysconfdir ;;
396 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
397 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
398 sysconfdir="$ac_optarg" ;;
400 -target | --target | --targe | --targ | --tar | --ta | --t)
402 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
403 target="$ac_optarg" ;;
405 -v | -verbose | --verbose | --verbos | --verbo | --verb)
408 -version | --version | --versio | --versi | --vers)
409 echo "configure generated by autoconf version 2.13"
413 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
414 # Reject names that are not valid shell variable names.
415 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
416 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
418 ac_package=`echo $ac_package| sed 's/-/_/g'`
423 eval "with_${ac_package}='$ac_optarg'" ;;
425 -without-* | --without-*)
426 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
427 # Reject names that are not valid shell variable names.
428 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
429 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
431 ac_package=`echo $ac_package| sed 's/-/_/g'`
432 eval "with_${ac_package}=no" ;;
435 # Obsolete; use --with-x.
438 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
439 | --x-incl | --x-inc | --x-in | --x-i)
440 ac_prev=x_includes ;;
441 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
442 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
443 x_includes="$ac_optarg" ;;
445 -x-libraries | --x-libraries | --x-librarie | --x-librari \
446 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
447 ac_prev=x_libraries ;;
448 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
449 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
450 x_libraries="$ac_optarg" ;;
452 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
456 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
457 echo "configure: warning: $ac_option: invalid host type" 1>&2
459 if test "x$nonopt" != xNONE; then
460 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
468 if test -n "$ac_prev"; then
469 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
472 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
474 # File descriptor usage:
477 # 2 errors and warnings
478 # 3 some systems may open it to /dev/tty
479 # 4 used on the Kubota Titan
480 # 6 checking for... messages and results
481 # 5 compiler messages saved in config.log
482 if test "$silent" = yes; then
490 This file contains any messages produced by compilers while
491 running configure, to aid debugging if configure makes a mistake.
494 # Strip out --no-create and --no-recursion so they do not pile up.
495 # Also quote any args containing shell metacharacters.
500 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
501 | --no-cr | --no-c) ;;
502 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
503 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
504 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
505 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
506 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
511 # Only set these to C if already set. These must not be set unconditionally
512 # because not all systems understand e.g. LANG=C (notably SCO).
513 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
514 # Non-C LC_CTYPE values break the ctype check.
515 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
516 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
517 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
518 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
520 # confdefs.h avoids OS command line length limits that DEFS can exceed.
521 rm -rf conftest* confdefs.h
522 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
525 # A filename unique to this package, relative to the directory that
526 # configure is in, which we can look for to find out if srcdir is correct.
527 ac_unique_file=include/includes.h
529 # Find the source files, if location was not specified.
530 if test -z "$srcdir"; then
531 ac_srcdir_defaulted=yes
532 # Try the directory containing this script, then its parent.
534 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
535 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
537 if test ! -r $srcdir/$ac_unique_file; then
541 ac_srcdir_defaulted=no
543 if test ! -r $srcdir/$ac_unique_file; then
544 if test "$ac_srcdir_defaulted" = yes; then
545 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
547 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
550 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
552 # Prefer explicitly selected file to automatically selected ones.
553 if test -z "$CONFIG_SITE"; then
554 if test "x$prefix" != xNONE; then
555 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
557 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
560 for ac_site_file in $CONFIG_SITE; do
561 if test -r "$ac_site_file"; then
562 echo "loading site script $ac_site_file"
567 if test -r "$cache_file"; then
568 echo "loading cache $cache_file"
571 echo "creating cache $cache_file"
576 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
577 ac_cpp='$CPP $CPPFLAGS'
578 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
579 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
580 cross_compiling=$ac_cv_prog_cc_cross
584 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
585 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
586 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
593 ac_n= ac_c='\c' ac_t=
599 #################################################
600 # Directory handling stuff to support both the
601 # legacy SAMBA directories and FHS compliant
605 # Check whether --with-fhs or --without-fhs was given.
606 if test "${with_fhs+set}" = set; then
608 configdir="${sysconfdir}/samba"
609 lockdir="\${VARDIR}/cache/samba"
610 piddir="\$(VARDIR)/run/samba"
611 logfilebase="\${VARDIR}/log/samba"
612 privatedir="\${CONFIGDIR}/private"
613 swatdir="\${DATADIR}/samba/swat"
615 configdir="\$(LIBDIR)"
616 logfilebase="\$(VARDIR)"
617 lockdir="\${VARDIR}/locks"
618 piddir="\$(VARDIR)/locks"
619 privatedir="\${prefix}/private"
620 swatdir="\${prefix}/swat"
624 #################################################
625 # set private directory location
626 # Check whether --with-privatedir or --without-privatedir was given.
627 if test "${with_privatedir+set}" = set; then
628 withval="$with_privatedir"
632 # Just in case anybody calls it without argument
634 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
637 privatedir="$withval"
643 #################################################
644 # set lock directory location
645 # Check whether --with-lockdir or --without-lockdir was given.
646 if test "${with_lockdir+set}" = set; then
647 withval="$with_lockdir"
651 # Just in case anybody calls it without argument
653 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
662 #################################################
663 # set pid directory location
664 # Check whether --with-piddir or --without-piddir was given.
665 if test "${with_piddir+set}" = set; then
666 withval="$with_piddir"
670 # Just in case anybody calls it without argument
672 echo "configure: warning: --with-piddir called without argument - will use default" 1>&2
681 #################################################
682 # set SWAT directory location
683 # Check whether --with-swatdir or --without-swatdir was given.
684 if test "${with_swatdir+set}" = set; then
685 withval="$with_swatdir"
689 # Just in case anybody does it
691 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
700 #################################################
701 # set configuration directory location
702 # Check whether --with-configdir or --without-configdir was given.
703 if test "${with_configdir+set}" = set; then
704 withval="$with_configdir"
708 # Just in case anybody does it
710 echo "configure: warning: --with-configdir called without argument - will use default" 1>&2
719 #################################################
720 # set log directory location
721 # Check whether --with-logfilebase or --without-logfilebase was given.
722 if test "${with_logfilebase+set}" = set; then
723 withval="$with_logfilebase"
727 # Just in case anybody does it
729 echo "configure: warning: --with-logfilebase called without argument - will use default" 1>&2
732 logfilebase="$withval"
766 # compile with optimization and without debugging by default
767 CFLAGS="-O ${CFLAGS}"
769 # Check whether --enable-debug or --disable-debug was given.
770 if test "${enable_debug+set}" = set; then
771 enableval="$enable_debug"
772 if eval "test x$enable_debug = xyes"; then
773 CFLAGS="${CFLAGS} -g"
778 # Check whether --enable-developer or --disable-developer was given.
779 if test "${enable_developer+set}" = set; then
780 enableval="$enable_developer"
781 if eval "test x$enable_developer = xyes"; then
782 CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
787 # Check whether --enable-krb5developer or --disable-krb5developer was given.
788 if test "${enable_krb5developer+set}" = set; then
789 enableval="$enable_krb5developer"
790 if eval "test x$enable_krb5developer = xyes"; then
791 CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
796 # Check whether --enable-dmalloc or --disable-dmalloc was given.
797 if test "${enable_dmalloc+set}" = set; then
798 enableval="$enable_dmalloc"
803 if test "x$enable_dmalloc" = xyes
805 cat >> confdefs.h <<\EOF
806 #define ENABLE_DMALLOC 1
809 cat >> confdefs.h <<\EOF
810 #define DMALLOC_FUNC_CHECK 1
813 LIBS="$LIBS -ldmalloc"
816 # Extract the first word of "gcc", so it can be a program name with args.
817 set dummy gcc; ac_word=$2
818 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
819 echo "configure:820: checking for $ac_word" >&5
820 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
821 echo $ac_n "(cached) $ac_c" 1>&6
823 if test -n "$CC"; then
824 ac_cv_prog_CC="$CC" # Let the user override the test.
826 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
828 for ac_dir in $ac_dummy; do
829 test -z "$ac_dir" && ac_dir=.
830 if test -f $ac_dir/$ac_word; then
839 if test -n "$CC"; then
840 echo "$ac_t""$CC" 1>&6
842 echo "$ac_t""no" 1>&6
845 if test -z "$CC"; then
846 # Extract the first word of "cc", so it can be a program name with args.
847 set dummy cc; ac_word=$2
848 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
849 echo "configure:850: checking for $ac_word" >&5
850 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
851 echo $ac_n "(cached) $ac_c" 1>&6
853 if test -n "$CC"; then
854 ac_cv_prog_CC="$CC" # Let the user override the test.
856 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
859 for ac_dir in $ac_dummy; do
860 test -z "$ac_dir" && ac_dir=.
861 if test -f $ac_dir/$ac_word; then
862 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
871 if test $ac_prog_rejected = yes; then
872 # We found a bogon in the path, so make sure we never use it.
873 set dummy $ac_cv_prog_CC
875 if test $# -gt 0; then
876 # We chose a different compiler from the bogus one.
877 # However, it has the same basename, so the bogon will be chosen
878 # first if we set CC to just the basename; use the full file name.
880 set dummy "$ac_dir/$ac_word" "$@"
888 if test -n "$CC"; then
889 echo "$ac_t""$CC" 1>&6
891 echo "$ac_t""no" 1>&6
894 if test -z "$CC"; then
897 # Extract the first word of "cl", so it can be a program name with args.
898 set dummy cl; ac_word=$2
899 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
900 echo "configure:901: checking for $ac_word" >&5
901 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
902 echo $ac_n "(cached) $ac_c" 1>&6
904 if test -n "$CC"; then
905 ac_cv_prog_CC="$CC" # Let the user override the test.
907 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
909 for ac_dir in $ac_dummy; do
910 test -z "$ac_dir" && ac_dir=.
911 if test -f $ac_dir/$ac_word; then
920 if test -n "$CC"; then
921 echo "$ac_t""$CC" 1>&6
923 echo "$ac_t""no" 1>&6
928 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
931 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
932 echo "configure:933: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
935 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
936 ac_cpp='$CPP $CPPFLAGS'
937 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
938 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
939 cross_compiling=$ac_cv_prog_cc_cross
941 cat > conftest.$ac_ext << EOF
943 #line 944 "configure"
944 #include "confdefs.h"
948 if { (eval echo configure:949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
949 ac_cv_prog_cc_works=yes
950 # If we can't run a trivial program, we are probably using a cross compiler.
951 if (./conftest; exit) 2>/dev/null; then
952 ac_cv_prog_cc_cross=no
954 ac_cv_prog_cc_cross=yes
957 echo "configure: failed program was:" >&5
958 cat conftest.$ac_ext >&5
959 ac_cv_prog_cc_works=no
963 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
964 ac_cpp='$CPP $CPPFLAGS'
965 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
966 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
967 cross_compiling=$ac_cv_prog_cc_cross
969 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
970 if test $ac_cv_prog_cc_works = no; then
971 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
973 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
974 echo "configure:975: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
975 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
976 cross_compiling=$ac_cv_prog_cc_cross
978 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
979 echo "configure:980: checking whether we are using GNU C" >&5
980 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
981 echo $ac_n "(cached) $ac_c" 1>&6
983 cat > conftest.c <<EOF
988 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:989: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
995 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
997 if test $ac_cv_prog_gcc = yes; then
1003 ac_test_CFLAGS="${CFLAGS+set}"
1004 ac_save_CFLAGS="$CFLAGS"
1006 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1007 echo "configure:1008: checking whether ${CC-cc} accepts -g" >&5
1008 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1009 echo $ac_n "(cached) $ac_c" 1>&6
1011 echo 'void f(){}' > conftest.c
1012 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1021 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1022 if test "$ac_test_CFLAGS" = set; then
1023 CFLAGS="$ac_save_CFLAGS"
1024 elif test $ac_cv_prog_cc_g = yes; then
1025 if test "$GCC" = yes; then
1031 if test "$GCC" = yes; then
1039 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1040 if test -f $ac_dir/install-sh; then
1042 ac_install_sh="$ac_aux_dir/install-sh -c"
1044 elif test -f $ac_dir/install.sh; then
1046 ac_install_sh="$ac_aux_dir/install.sh -c"
1050 if test -z "$ac_aux_dir"; then
1051 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1053 ac_config_guess=$ac_aux_dir/config.guess
1054 ac_config_sub=$ac_aux_dir/config.sub
1055 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1057 # Find a good install program. We prefer a C program (faster),
1058 # so one script is as good as another. But avoid the broken or
1059 # incompatible versions:
1060 # SysV /etc/install, /usr/sbin/install
1061 # SunOS /usr/etc/install
1062 # IRIX /sbin/install
1064 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1065 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1066 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1067 # ./install, which can be erroneously created by make from ./install.sh.
1068 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1069 echo "configure:1070: checking for a BSD compatible install" >&5
1070 if test -z "$INSTALL"; then
1071 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1072 echo $ac_n "(cached) $ac_c" 1>&6
1074 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1075 for ac_dir in $PATH; do
1076 # Account for people who put trailing slashes in PATH elements.
1078 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1080 # OSF1 and SCO ODT 3.0 have their own names for install.
1081 # Don't use installbsd from OSF since it installs stuff as root
1083 for ac_prog in ginstall scoinst install; do
1084 if test -f $ac_dir/$ac_prog; then
1085 if test $ac_prog = install &&
1086 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1087 # AIX install. It has an incompatible calling convention.
1090 ac_cv_path_install="$ac_dir/$ac_prog -c"
1101 if test "${ac_cv_path_install+set}" = set; then
1102 INSTALL="$ac_cv_path_install"
1104 # As a last resort, use the slow shell script. We don't cache a
1105 # path for INSTALL within a source directory, because that will
1106 # break other packages using the cache if that directory is
1107 # removed, or if the path is relative.
1108 INSTALL="$ac_install_sh"
1111 echo "$ac_t""$INSTALL" 1>&6
1113 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1114 # It thinks the first close brace ends the variable substitution.
1115 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1117 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1119 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1121 for ac_prog in mawk gawk nawk awk
1123 # Extract the first word of "$ac_prog", so it can be a program name with args.
1124 set dummy $ac_prog; ac_word=$2
1125 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1126 echo "configure:1127: checking for $ac_word" >&5
1127 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1128 echo $ac_n "(cached) $ac_c" 1>&6
1130 if test -n "$AWK"; then
1131 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1133 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1135 for ac_dir in $ac_dummy; do
1136 test -z "$ac_dir" && ac_dir=.
1137 if test -f $ac_dir/$ac_word; then
1138 ac_cv_prog_AWK="$ac_prog"
1145 AWK="$ac_cv_prog_AWK"
1146 if test -n "$AWK"; then
1147 echo "$ac_t""$AWK" 1>&6
1149 echo "$ac_t""no" 1>&6
1152 test -n "$AWK" && break
1157 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1158 echo "configure:1159: checking if the linker ($LD) is GNU ld" >&5
1159 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1160 echo $ac_n "(cached) $ac_c" 1>&6
1162 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1163 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1164 ac_cv_prog_gnu_ld=yes
1166 ac_cv_prog_gnu_ld=no
1170 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1173 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1174 echo "configure:1175: checking for POSIXized ISC" >&5
1175 if test -d /etc/conf/kconfig.d &&
1176 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1178 echo "$ac_t""yes" 1>&6
1179 ISC=yes # If later tests want to check for ISC.
1180 cat >> confdefs.h <<\EOF
1181 #define _POSIX_SOURCE 1
1184 if test "$GCC" = yes; then
1190 echo "$ac_t""no" 1>&6
1195 if test "x$CC" != xcc; then
1196 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1197 echo "configure:1198: checking whether $CC and cc understand -c and -o together" >&5
1199 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1200 echo "configure:1201: checking whether cc understands -c and -o together" >&5
1202 set dummy $CC; ac_cc="`echo $2 |
1203 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1204 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1205 echo $ac_n "(cached) $ac_c" 1>&6
1207 echo 'foo(){}' > conftest.c
1208 # Make sure it works both with $CC and with simple cc.
1209 # We do the test twice because some compilers refuse to overwrite an
1210 # existing .o file with -o, though they will create one.
1211 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1212 if { (eval echo configure:1213: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1213 test -f conftest.o && { (eval echo configure:1214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1215 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1216 if test "x$CC" != xcc; then
1217 # Test first that cc exists at all.
1218 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1219 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1220 if { (eval echo configure:1221: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1221 test -f conftest.o && { (eval echo configure:1222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1226 # cc exists but doesn't like -o.
1227 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1232 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1237 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1238 echo "$ac_t""yes" 1>&6
1240 echo "$ac_t""no" 1>&6
1241 cat >> confdefs.h <<\EOF
1242 #define NO_MINUS_C_MINUS_O 1
1247 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1254 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1255 echo "configure:1256: checking that the C compiler understands volatile" >&5
1256 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1257 echo $ac_n "(cached) $ac_c" 1>&6
1260 cat > conftest.$ac_ext <<EOF
1261 #line 1262 "configure"
1262 #include "confdefs.h"
1263 #include <sys/types.h>
1268 if { (eval echo configure:1269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1270 samba_cv_volatile=yes
1272 echo "configure: failed program was:" >&5
1273 cat conftest.$ac_ext >&5
1275 samba_cv_volatile=no
1280 echo "$ac_t""$samba_cv_volatile" 1>&6
1281 if test x"$samba_cv_volatile" = x"yes"; then
1282 cat >> confdefs.h <<\EOF
1283 #define HAVE_VOLATILE 1
1290 # Do some error checking and defaulting for the host and target type.
1292 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1295 # 1. You are not allowed to specify --host, --target, and nonopt at the
1297 # 2. Host defaults to nonopt.
1298 # 3. If nonopt is not specified, then host defaults to the current host,
1299 # as determined by config.guess.
1300 # 4. Target and build default to nonopt.
1301 # 5. If nonopt is not specified, then target and build default to host.
1303 # The aliases save the names the user supplied, while $host etc.
1304 # will get canonicalized.
1305 case $host---$target---$nonopt in
1306 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1307 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1311 # Make sure we can run config.sub.
1312 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1313 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1316 echo $ac_n "checking host system type""... $ac_c" 1>&6
1317 echo "configure:1318: checking host system type" >&5
1320 case "$host_alias" in
1324 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1325 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1327 *) host_alias=$nonopt ;;
1331 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1332 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1333 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1334 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1335 echo "$ac_t""$host" 1>&6
1337 echo $ac_n "checking target system type""... $ac_c" 1>&6
1338 echo "configure:1339: checking target system type" >&5
1340 target_alias=$target
1341 case "$target_alias" in
1344 NONE) target_alias=$host_alias ;;
1345 *) target_alias=$nonopt ;;
1349 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1350 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1351 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1352 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1353 echo "$ac_t""$target" 1>&6
1355 echo $ac_n "checking build system type""... $ac_c" 1>&6
1356 echo "configure:1357: checking build system type" >&5
1359 case "$build_alias" in
1362 NONE) build_alias=$host_alias ;;
1363 *) build_alias=$nonopt ;;
1367 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1368 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1369 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1370 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1371 echo "$ac_t""$build" 1>&6
1373 test "$host_alias" != "$target_alias" &&
1374 test "$program_prefix$program_suffix$program_transform_name" = \
1376 program_prefix=${target_alias}-
1380 *irix6*) cat >> confdefs.h <<\EOF
1381 #include <standards.h>
1389 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1390 echo "configure:1391: checking config.cache system type" >&5
1391 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1392 test x"$ac_cv_host_system_type" != x"$host"; } ||
1393 { test x"${ac_cv_build_system_type+set}" = x"set" &&
1394 test x"$ac_cv_build_system_type" != x"$build"; } ||
1395 { test x"${ac_cv_target_system_type+set}" = x"set" &&
1396 test x"$ac_cv_target_system_type" != x"$target"; }; then
1397 echo "$ac_t""different" 1>&6
1398 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
1400 echo "$ac_t""same" 1>&6
1402 ac_cv_host_system_type="$host"
1403 ac_cv_build_system_type="$build"
1404 ac_cv_target_system_type="$target"
1410 # Config CPPFLAG settings for strange OS's that must be set
1411 # before other tests.
1414 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1417 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1418 echo "configure:1419: checking whether ${CC-cc} accepts -Ae" >&5
1419 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1420 echo $ac_n "(cached) $ac_c" 1>&6
1422 echo 'void f(){}' > conftest.c
1423 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1424 ac_cv_prog_cc_Ae=yes
1432 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1433 # mmap on HPUX is completely broken...
1434 cat >> confdefs.h <<\EOF
1435 #define MMAP_BLACKLIST 1
1438 if test $ac_cv_prog_cc_Ae = yes; then
1439 CPPFLAGS="$CPPFLAGS -Ae"
1442 # Defines needed for HPUX support.
1443 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1444 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1448 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1449 cat >> confdefs.h <<\EOF
1450 #define USE_BOTH_CRYPT_CALLS 1
1453 cat >> confdefs.h <<\EOF
1454 #define _HPUX_SOURCE 1
1457 cat >> confdefs.h <<\EOF
1458 #define _POSIX_SOURCE 1
1461 cat >> confdefs.h <<\EOF
1462 #define _ALIGNMENT_REQUIRED 1
1465 cat >> confdefs.h <<\EOF
1466 #define _MAX_ALIGNMENT 4
1471 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1472 cat >> confdefs.h <<\EOF
1473 #define USE_BOTH_CRYPT_CALLS 1
1476 cat >> confdefs.h <<\EOF
1477 #define _HPUX_SOURCE 1
1480 cat >> confdefs.h <<\EOF
1481 #define _POSIX_SOURCE 1
1484 cat >> confdefs.h <<\EOF
1485 #define _LARGEFILE64_SOURCE 1
1488 cat >> confdefs.h <<\EOF
1489 #define _ALIGNMENT_REQUIRED 1
1492 cat >> confdefs.h <<\EOF
1493 #define _MAX_ALIGNMENT 4
1502 # CRAY Unicos has broken const handling
1504 echo "$ac_t""disabling const" 1>&6
1505 CPPFLAGS="$CPPFLAGS -Dconst="
1509 # AIX4.x doesn't even admit to having large
1510 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1513 echo "$ac_t""enabling large file support" 1>&6
1514 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1515 cat >> confdefs.h <<\EOF
1516 #define _LARGE_FILES 1
1521 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1522 # to the existance of large files..
1523 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1524 # recommendations on large file support, however it makes the
1525 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1526 # recommendation makes the compile fail on gcc2.7. JRA.
1530 5.0*|5.1*|5.2*|5.3*|5.5*)
1531 echo "$ac_t""no large file support" 1>&6
1534 echo "$ac_t""enabling large file support" 1>&6
1535 if test "$ac_cv_prog_gcc" = yes; then
1536 ${CC-cc} -v >conftest.c 2>&1
1537 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
1539 case "$ac_cv_gcc_compiler_version_number" in
1540 *"gcc version 2.6"*|*"gcc version 2.7"*)
1541 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1542 cat >> confdefs.h <<\EOF
1543 #define _LARGEFILE64_SOURCE 1
1548 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1549 cat >> confdefs.h <<\EOF
1550 #define _LARGEFILE64_SOURCE 1
1553 cat >> confdefs.h <<\EOF
1554 #define _FILE_OFFSET_BITS 64
1560 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1561 cat >> confdefs.h <<\EOF
1562 #define _LARGEFILE64_SOURCE 1
1565 cat >> confdefs.h <<\EOF
1566 #define _FILE_OFFSET_BITS 64
1574 # Tests needed for SINIX large file support.
1577 if test $host = mips-sni-sysv4 ; then
1578 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1579 echo "configure:1580: checking for LFS support" >&5
1580 old_CPPFLAGS="$CPPFLAGS"
1581 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1582 if test "$cross_compiling" = yes; then
1583 SINIX_LFS_SUPPORT=cross
1585 cat > conftest.$ac_ext <<EOF
1586 #line 1587 "configure"
1587 #include "confdefs.h"
1591 #if _LFS64_LARGEFILE == 1
1598 if { (eval echo configure:1599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1600 SINIX_LFS_SUPPORT=yes
1602 echo "configure: failed program was:" >&5
1603 cat conftest.$ac_ext >&5
1605 SINIX_LFS_SUPPORT=no
1610 CPPFLAGS="$old_CPPFLAGS"
1611 if test x$SINIX_LFS_SUPPORT = xyes ; then
1612 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1613 cat >> confdefs.h <<\EOF
1614 #define _LARGEFILE64_SOURCE 1
1617 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
1618 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
1619 LIBS="`getconf LFS64_LIBS` $LIBS"
1621 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1625 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1628 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1629 echo "configure:1630: checking for LFS support" >&5
1630 old_CPPFLAGS="$CPPFLAGS"
1631 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1632 if test "$cross_compiling" = yes; then
1633 LINUX_LFS_SUPPORT=cross
1635 cat > conftest.$ac_ext <<EOF
1636 #line 1637 "configure"
1637 #include "confdefs.h"
1640 #include <sys/utsname.h>
1642 #if _LFS64_LARGEFILE == 1
1647 /* Ensure this is glibc 2.2 or higher */
1648 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1649 int libc_major = __GLIBC__;
1650 int libc_minor = __GLIBC_MINOR__;
1658 /* Ensure this is kernel 2.4 or higher */
1661 release = uts.release;
1662 major = atoi(strsep(&release, "."));
1663 minor = atoi(strsep(&release, "."));
1665 if (major > 2 || (major == 2 && minor > 3))
1674 if { (eval echo configure:1675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1676 LINUX_LFS_SUPPORT=yes
1678 echo "configure: failed program was:" >&5
1679 cat conftest.$ac_ext >&5
1681 LINUX_LFS_SUPPORT=no
1686 CPPFLAGS="$old_CPPFLAGS"
1687 if test x$LINUX_LFS_SUPPORT = xyes ; then
1688 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1689 cat >> confdefs.h <<\EOF
1690 #define _LARGEFILE64_SOURCE 1
1693 cat >> confdefs.h <<\EOF
1694 #define _FILE_OFFSET_BITS 64
1697 cat >> confdefs.h <<\EOF
1698 #define _GNU_SOURCE 1
1702 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1706 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1707 echo "configure:1708: checking for LFS support" >&5
1708 old_CPPFLAGS="$CPPFLAGS"
1709 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1710 if test "$cross_compiling" = yes; then
1711 GLIBC_LFS_SUPPORT=cross
1713 cat > conftest.$ac_ext <<EOF
1714 #line 1715 "configure"
1715 #include "confdefs.h"
1719 #if _LFS64_LARGEFILE == 1
1726 if { (eval echo configure:1727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1728 GLIBC_LFS_SUPPORT=yes
1730 echo "configure: failed program was:" >&5
1731 cat conftest.$ac_ext >&5
1733 GLIBC_LFS_SUPPORT=no
1738 CPPFLAGS="$old_CPPFLAGS"
1739 if test x$GLIBC_LFS_SUPPORT = xyes ; then
1740 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1741 cat >> confdefs.h <<\EOF
1742 #define _LARGEFILE64_SOURCE 1
1745 cat >> confdefs.h <<\EOF
1746 #define _GNU_SOURCE 1
1750 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1755 echo $ac_n "checking for inline""... $ac_c" 1>&6
1756 echo "configure:1757: checking for inline" >&5
1757 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1758 echo $ac_n "(cached) $ac_c" 1>&6
1761 for ac_kw in inline __inline__ __inline; do
1762 cat > conftest.$ac_ext <<EOF
1763 #line 1764 "configure"
1764 #include "confdefs.h"
1770 if { (eval echo configure:1771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1772 ac_cv_c_inline=$ac_kw; break
1774 echo "configure: failed program was:" >&5
1775 cat conftest.$ac_ext >&5
1782 echo "$ac_t""$ac_cv_c_inline" 1>&6
1783 case "$ac_cv_c_inline" in
1785 no) cat >> confdefs.h <<\EOF
1789 *) cat >> confdefs.h <<EOF
1790 #define inline $ac_cv_c_inline
1795 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1796 echo "configure:1797: checking how to run the C preprocessor" >&5
1797 # On Suns, sometimes $CPP names a directory.
1798 if test -n "$CPP" && test -d "$CPP"; then
1801 if test -z "$CPP"; then
1802 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1803 echo $ac_n "(cached) $ac_c" 1>&6
1805 # This must be in double quotes, not single quotes, because CPP may get
1806 # substituted into the Makefile and "${CC-cc}" will confuse make.
1808 # On the NeXT, cc -E runs the code through the compiler's parser,
1809 # not just through cpp.
1810 cat > conftest.$ac_ext <<EOF
1811 #line 1812 "configure"
1812 #include "confdefs.h"
1816 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1817 { (eval echo configure:1818: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1818 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1819 if test -z "$ac_err"; then
1823 echo "configure: failed program was:" >&5
1824 cat conftest.$ac_ext >&5
1826 CPP="${CC-cc} -E -traditional-cpp"
1827 cat > conftest.$ac_ext <<EOF
1828 #line 1829 "configure"
1829 #include "confdefs.h"
1833 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1834 { (eval echo configure:1835: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1835 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1836 if test -z "$ac_err"; then
1840 echo "configure: failed program was:" >&5
1841 cat conftest.$ac_ext >&5
1843 CPP="${CC-cc} -nologo -E"
1844 cat > conftest.$ac_ext <<EOF
1845 #line 1846 "configure"
1846 #include "confdefs.h"
1850 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1851 { (eval echo configure:1852: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1852 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1853 if test -z "$ac_err"; then
1857 echo "configure: failed program was:" >&5
1858 cat conftest.$ac_ext >&5
1867 ac_cv_prog_CPP="$CPP"
1869 CPP="$ac_cv_prog_CPP"
1871 ac_cv_prog_CPP="$CPP"
1873 echo "$ac_t""$CPP" 1>&6
1875 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1876 echo "configure:1877: checking for ANSI C header files" >&5
1877 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1878 echo $ac_n "(cached) $ac_c" 1>&6
1880 cat > conftest.$ac_ext <<EOF
1881 #line 1882 "configure"
1882 #include "confdefs.h"
1888 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1889 { (eval echo configure:1890: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1890 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1891 if test -z "$ac_err"; then
1893 ac_cv_header_stdc=yes
1896 echo "configure: failed program was:" >&5
1897 cat conftest.$ac_ext >&5
1899 ac_cv_header_stdc=no
1903 if test $ac_cv_header_stdc = yes; then
1904 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1905 cat > conftest.$ac_ext <<EOF
1906 #line 1907 "configure"
1907 #include "confdefs.h"
1910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1911 egrep "memchr" >/dev/null 2>&1; then
1915 ac_cv_header_stdc=no
1921 if test $ac_cv_header_stdc = yes; then
1922 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1923 cat > conftest.$ac_ext <<EOF
1924 #line 1925 "configure"
1925 #include "confdefs.h"
1928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1929 egrep "free" >/dev/null 2>&1; then
1933 ac_cv_header_stdc=no
1939 if test $ac_cv_header_stdc = yes; then
1940 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1941 if test "$cross_compiling" = yes; then
1944 cat > conftest.$ac_ext <<EOF
1945 #line 1946 "configure"
1946 #include "confdefs.h"
1948 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1949 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1950 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1951 int main () { int i; for (i = 0; i < 256; i++)
1952 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1956 if { (eval echo configure:1957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1960 echo "configure: failed program was:" >&5
1961 cat conftest.$ac_ext >&5
1963 ac_cv_header_stdc=no
1971 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1972 if test $ac_cv_header_stdc = yes; then
1973 cat >> confdefs.h <<\EOF
1974 #define STDC_HEADERS 1
1980 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1982 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1983 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1984 echo "configure:1985: checking for $ac_hdr that defines DIR" >&5
1985 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1986 echo $ac_n "(cached) $ac_c" 1>&6
1988 cat > conftest.$ac_ext <<EOF
1989 #line 1990 "configure"
1990 #include "confdefs.h"
1991 #include <sys/types.h>
1997 if { (eval echo configure:1998: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1999 eval "ac_cv_header_dirent_$ac_safe=yes"
2001 echo "configure: failed program was:" >&5
2002 cat conftest.$ac_ext >&5
2004 eval "ac_cv_header_dirent_$ac_safe=no"
2008 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2009 echo "$ac_t""yes" 1>&6
2010 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2011 cat >> confdefs.h <<EOF
2012 #define $ac_tr_hdr 1
2014 ac_header_dirent=$ac_hdr; break
2016 echo "$ac_t""no" 1>&6
2019 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2020 if test $ac_header_dirent = dirent.h; then
2021 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2022 echo "configure:2023: checking for opendir in -ldir" >&5
2023 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2024 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2025 echo $ac_n "(cached) $ac_c" 1>&6
2027 ac_save_LIBS="$LIBS"
2029 cat > conftest.$ac_ext <<EOF
2030 #line 2031 "configure"
2031 #include "confdefs.h"
2032 /* Override any gcc2 internal prototype to avoid an error. */
2033 /* We use char because int might match the return type of a gcc2
2034 builtin and then its argument prototype would still apply. */
2041 if { (eval echo configure:2042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2043 eval "ac_cv_lib_$ac_lib_var=yes"
2045 echo "configure: failed program was:" >&5
2046 cat conftest.$ac_ext >&5
2048 eval "ac_cv_lib_$ac_lib_var=no"
2051 LIBS="$ac_save_LIBS"
2054 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2055 echo "$ac_t""yes" 1>&6
2058 echo "$ac_t""no" 1>&6
2062 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2063 echo "configure:2064: checking for opendir in -lx" >&5
2064 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2065 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2066 echo $ac_n "(cached) $ac_c" 1>&6
2068 ac_save_LIBS="$LIBS"
2070 cat > conftest.$ac_ext <<EOF
2071 #line 2072 "configure"
2072 #include "confdefs.h"
2073 /* Override any gcc2 internal prototype to avoid an error. */
2074 /* We use char because int might match the return type of a gcc2
2075 builtin and then its argument prototype would still apply. */
2082 if { (eval echo configure:2083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2084 eval "ac_cv_lib_$ac_lib_var=yes"
2086 echo "configure: failed program was:" >&5
2087 cat conftest.$ac_ext >&5
2089 eval "ac_cv_lib_$ac_lib_var=no"
2092 LIBS="$ac_save_LIBS"
2095 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2096 echo "$ac_t""yes" 1>&6
2099 echo "$ac_t""no" 1>&6
2104 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2105 echo "configure:2106: checking whether time.h and sys/time.h may both be included" >&5
2106 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2107 echo $ac_n "(cached) $ac_c" 1>&6
2109 cat > conftest.$ac_ext <<EOF
2110 #line 2111 "configure"
2111 #include "confdefs.h"
2112 #include <sys/types.h>
2113 #include <sys/time.h>
2119 if { (eval echo configure:2120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2121 ac_cv_header_time=yes
2123 echo "configure: failed program was:" >&5
2124 cat conftest.$ac_ext >&5
2126 ac_cv_header_time=no
2131 echo "$ac_t""$ac_cv_header_time" 1>&6
2132 if test $ac_cv_header_time = yes; then
2133 cat >> confdefs.h <<\EOF
2134 #define TIME_WITH_SYS_TIME 1
2139 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2140 echo "configure:2141: checking for sys/wait.h that is POSIX.1 compatible" >&5
2141 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2142 echo $ac_n "(cached) $ac_c" 1>&6
2144 cat > conftest.$ac_ext <<EOF
2145 #line 2146 "configure"
2146 #include "confdefs.h"
2147 #include <sys/types.h>
2148 #include <sys/wait.h>
2150 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2153 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2158 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2161 if { (eval echo configure:2162: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2163 ac_cv_header_sys_wait_h=yes
2165 echo "configure: failed program was:" >&5
2166 cat conftest.$ac_ext >&5
2168 ac_cv_header_sys_wait_h=no
2173 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2174 if test $ac_cv_header_sys_wait_h = yes; then
2175 cat >> confdefs.h <<\EOF
2176 #define HAVE_SYS_WAIT_H 1
2181 for ac_hdr in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
2183 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2184 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2185 echo "configure:2186: checking for $ac_hdr" >&5
2186 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2187 echo $ac_n "(cached) $ac_c" 1>&6
2189 cat > conftest.$ac_ext <<EOF
2190 #line 2191 "configure"
2191 #include "confdefs.h"
2194 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2195 { (eval echo configure:2196: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2196 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2197 if test -z "$ac_err"; then
2199 eval "ac_cv_header_$ac_safe=yes"
2202 echo "configure: failed program was:" >&5
2203 cat conftest.$ac_ext >&5
2205 eval "ac_cv_header_$ac_safe=no"
2209 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2210 echo "$ac_t""yes" 1>&6
2211 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2212 cat >> confdefs.h <<EOF
2213 #define $ac_tr_hdr 1
2217 echo "$ac_t""no" 1>&6
2221 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
2223 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2224 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2225 echo "configure:2226: checking for $ac_hdr" >&5
2226 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2227 echo $ac_n "(cached) $ac_c" 1>&6
2229 cat > conftest.$ac_ext <<EOF
2230 #line 2231 "configure"
2231 #include "confdefs.h"
2234 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2235 { (eval echo configure:2236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2236 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2237 if test -z "$ac_err"; then
2239 eval "ac_cv_header_$ac_safe=yes"
2242 echo "configure: failed program was:" >&5
2243 cat conftest.$ac_ext >&5
2245 eval "ac_cv_header_$ac_safe=no"
2249 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2250 echo "$ac_t""yes" 1>&6
2251 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2252 cat >> confdefs.h <<EOF
2253 #define $ac_tr_hdr 1
2257 echo "$ac_t""no" 1>&6
2261 for ac_hdr in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
2263 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2264 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2265 echo "configure:2266: checking for $ac_hdr" >&5
2266 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2267 echo $ac_n "(cached) $ac_c" 1>&6
2269 cat > conftest.$ac_ext <<EOF
2270 #line 2271 "configure"
2271 #include "confdefs.h"
2274 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2275 { (eval echo configure:2276: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2276 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2277 if test -z "$ac_err"; then
2279 eval "ac_cv_header_$ac_safe=yes"
2282 echo "configure: failed program was:" >&5
2283 cat conftest.$ac_ext >&5
2285 eval "ac_cv_header_$ac_safe=no"
2289 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2290 echo "$ac_t""yes" 1>&6
2291 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2292 cat >> confdefs.h <<EOF
2293 #define $ac_tr_hdr 1
2297 echo "$ac_t""no" 1>&6
2301 for ac_hdr in sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h
2303 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2304 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2305 echo "configure:2306: checking for $ac_hdr" >&5
2306 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2307 echo $ac_n "(cached) $ac_c" 1>&6
2309 cat > conftest.$ac_ext <<EOF
2310 #line 2311 "configure"
2311 #include "confdefs.h"
2314 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2315 { (eval echo configure:2316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2316 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2317 if test -z "$ac_err"; then
2319 eval "ac_cv_header_$ac_safe=yes"
2322 echo "configure: failed program was:" >&5
2323 cat conftest.$ac_ext >&5
2325 eval "ac_cv_header_$ac_safe=no"
2329 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2330 echo "$ac_t""yes" 1>&6
2331 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2332 cat >> confdefs.h <<EOF
2333 #define $ac_tr_hdr 1
2337 echo "$ac_t""no" 1>&6
2341 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
2343 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2344 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2345 echo "configure:2346: checking for $ac_hdr" >&5
2346 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2347 echo $ac_n "(cached) $ac_c" 1>&6
2349 cat > conftest.$ac_ext <<EOF
2350 #line 2351 "configure"
2351 #include "confdefs.h"
2354 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2355 { (eval echo configure:2356: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2356 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2357 if test -z "$ac_err"; then
2359 eval "ac_cv_header_$ac_safe=yes"
2362 echo "configure: failed program was:" >&5
2363 cat conftest.$ac_ext >&5
2365 eval "ac_cv_header_$ac_safe=no"
2369 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2370 echo "$ac_t""yes" 1>&6
2371 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2372 cat >> confdefs.h <<EOF
2373 #define $ac_tr_hdr 1
2377 echo "$ac_t""no" 1>&6
2381 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
2383 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2384 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2385 echo "configure:2386: checking for $ac_hdr" >&5
2386 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2387 echo $ac_n "(cached) $ac_c" 1>&6
2389 cat > conftest.$ac_ext <<EOF
2390 #line 2391 "configure"
2391 #include "confdefs.h"
2394 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2395 { (eval echo configure:2396: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2396 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2397 if test -z "$ac_err"; then
2399 eval "ac_cv_header_$ac_safe=yes"
2402 echo "configure: failed program was:" >&5
2403 cat conftest.$ac_ext >&5
2405 eval "ac_cv_header_$ac_safe=no"
2409 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2410 echo "$ac_t""yes" 1>&6
2411 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2412 cat >> confdefs.h <<EOF
2413 #define $ac_tr_hdr 1
2417 echo "$ac_t""no" 1>&6
2421 for ac_hdr in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
2423 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2424 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2425 echo "configure:2426: checking for $ac_hdr" >&5
2426 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2427 echo $ac_n "(cached) $ac_c" 1>&6
2429 cat > conftest.$ac_ext <<EOF
2430 #line 2431 "configure"
2431 #include "confdefs.h"
2434 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2435 { (eval echo configure:2436: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2436 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2437 if test -z "$ac_err"; then
2439 eval "ac_cv_header_$ac_safe=yes"
2442 echo "configure: failed program was:" >&5
2443 cat conftest.$ac_ext >&5
2445 eval "ac_cv_header_$ac_safe=no"
2449 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2450 echo "$ac_t""yes" 1>&6
2451 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2452 cat >> confdefs.h <<EOF
2453 #define $ac_tr_hdr 1
2457 echo "$ac_t""no" 1>&6
2461 for ac_hdr in security/pam_modules.h security/_pam_macros.h ldap.h lber.h dlfcn.h
2463 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2464 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2465 echo "configure:2466: checking for $ac_hdr" >&5
2466 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2467 echo $ac_n "(cached) $ac_c" 1>&6
2469 cat > conftest.$ac_ext <<EOF
2470 #line 2471 "configure"
2471 #include "confdefs.h"
2474 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2475 { (eval echo configure:2476: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2476 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2477 if test -z "$ac_err"; then
2479 eval "ac_cv_header_$ac_safe=yes"
2482 echo "configure: failed program was:" >&5
2483 cat conftest.$ac_ext >&5
2485 eval "ac_cv_header_$ac_safe=no"
2489 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2490 echo "$ac_t""yes" 1>&6
2491 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2492 cat >> confdefs.h <<EOF
2493 #define $ac_tr_hdr 1
2497 echo "$ac_t""no" 1>&6
2501 for ac_hdr in sys/syslog.h syslog.h
2503 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2504 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2505 echo "configure:2506: checking for $ac_hdr" >&5
2506 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2507 echo $ac_n "(cached) $ac_c" 1>&6
2509 cat > conftest.$ac_ext <<EOF
2510 #line 2511 "configure"
2511 #include "confdefs.h"
2514 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2515 { (eval echo configure:2516: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2516 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2517 if test -z "$ac_err"; then
2519 eval "ac_cv_header_$ac_safe=yes"
2522 echo "configure: failed program was:" >&5
2523 cat conftest.$ac_ext >&5
2525 eval "ac_cv_header_$ac_safe=no"
2529 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2530 echo "$ac_t""yes" 1>&6
2531 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2532 cat >> confdefs.h <<EOF
2533 #define $ac_tr_hdr 1
2537 echo "$ac_t""no" 1>&6
2543 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2544 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2548 cat > conftest.$ac_ext <<EOF
2549 #line 2550 "configure"
2550 #include "confdefs.h"
2556 if { (eval echo configure:2557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2558 ac_cv_header_shadow_h=yes
2560 echo "configure: failed program was:" >&5
2561 cat conftest.$ac_ext >&5
2563 ac_cv_header_shadow_h=no
2566 if test x"$ac_cv_header_shadow_h" = x"yes"; then
2567 cat >> confdefs.h <<\EOF
2568 #define HAVE_SHADOW_H 1
2574 for ac_hdr in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
2576 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2577 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2578 echo "configure:2579: checking for $ac_hdr" >&5
2579 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2580 echo $ac_n "(cached) $ac_c" 1>&6
2582 cat > conftest.$ac_ext <<EOF
2583 #line 2584 "configure"
2584 #include "confdefs.h"
2587 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2588 { (eval echo configure:2589: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2589 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2590 if test -z "$ac_err"; then
2592 eval "ac_cv_header_$ac_safe=yes"
2595 echo "configure: failed program was:" >&5
2596 cat conftest.$ac_ext >&5
2598 eval "ac_cv_header_$ac_safe=no"
2602 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2603 echo "$ac_t""yes" 1>&6
2604 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2605 cat >> confdefs.h <<EOF
2606 #define $ac_tr_hdr 1
2610 echo "$ac_t""no" 1>&6
2614 for ac_hdr in nss.h nss_common.h ns_api.h sys/security.h security/pam_appl.h security/pam_modules.h
2616 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2617 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2618 echo "configure:2619: checking for $ac_hdr" >&5
2619 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2620 echo $ac_n "(cached) $ac_c" 1>&6
2622 cat > conftest.$ac_ext <<EOF
2623 #line 2624 "configure"
2624 #include "confdefs.h"
2627 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2628 { (eval echo configure:2629: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2629 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2630 if test -z "$ac_err"; then
2632 eval "ac_cv_header_$ac_safe=yes"
2635 echo "configure: failed program was:" >&5
2636 cat conftest.$ac_ext >&5
2638 eval "ac_cv_header_$ac_safe=no"
2642 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2643 echo "$ac_t""yes" 1>&6
2644 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2645 cat >> confdefs.h <<EOF
2646 #define $ac_tr_hdr 1
2650 echo "$ac_t""no" 1>&6
2654 for ac_hdr in stropts.h poll.h
2656 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2657 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2658 echo "configure:2659: checking for $ac_hdr" >&5
2659 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2660 echo $ac_n "(cached) $ac_c" 1>&6
2662 cat > conftest.$ac_ext <<EOF
2663 #line 2664 "configure"
2664 #include "confdefs.h"
2667 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2668 { (eval echo configure:2669: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2669 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2670 if test -z "$ac_err"; then
2672 eval "ac_cv_header_$ac_safe=yes"
2675 echo "configure: failed program was:" >&5
2676 cat conftest.$ac_ext >&5
2678 eval "ac_cv_header_$ac_safe=no"
2682 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2683 echo "$ac_t""yes" 1>&6
2684 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2685 cat >> confdefs.h <<EOF
2686 #define $ac_tr_hdr 1
2690 echo "$ac_t""no" 1>&6
2694 for ac_hdr in sys/capability.h syscall.h sys/syscall.h
2696 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2697 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2698 echo "configure:2699: checking for $ac_hdr" >&5
2699 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2700 echo $ac_n "(cached) $ac_c" 1>&6
2702 cat > conftest.$ac_ext <<EOF
2703 #line 2704 "configure"
2704 #include "confdefs.h"
2707 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2708 { (eval echo configure:2709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2709 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2710 if test -z "$ac_err"; then
2712 eval "ac_cv_header_$ac_safe=yes"
2715 echo "configure: failed program was:" >&5
2716 cat conftest.$ac_ext >&5
2718 eval "ac_cv_header_$ac_safe=no"
2722 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2723 echo "$ac_t""yes" 1>&6
2724 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2725 cat >> confdefs.h <<EOF
2726 #define $ac_tr_hdr 1
2730 echo "$ac_t""no" 1>&6
2734 for ac_hdr in sys/acl.h sys/cdefs.h glob.h
2736 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2737 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2738 echo "configure:2739: checking for $ac_hdr" >&5
2739 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2740 echo $ac_n "(cached) $ac_c" 1>&6
2742 cat > conftest.$ac_ext <<EOF
2743 #line 2744 "configure"
2744 #include "confdefs.h"
2747 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2748 { (eval echo configure:2749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2749 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2750 if test -z "$ac_err"; then
2752 eval "ac_cv_header_$ac_safe=yes"
2755 echo "configure: failed program was:" >&5
2756 cat conftest.$ac_ext >&5
2758 eval "ac_cv_header_$ac_safe=no"
2762 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2763 echo "$ac_t""yes" 1>&6
2764 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2765 cat >> confdefs.h <<EOF
2766 #define $ac_tr_hdr 1
2770 echo "$ac_t""no" 1>&6
2775 # For experimental utmp support (lastlog on some BSD-like systems)
2776 for ac_hdr in utmp.h utmpx.h lastlog.h
2778 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2779 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2780 echo "configure:2781: checking for $ac_hdr" >&5
2781 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2782 echo $ac_n "(cached) $ac_c" 1>&6
2784 cat > conftest.$ac_ext <<EOF
2785 #line 2786 "configure"
2786 #include "confdefs.h"
2789 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2790 { (eval echo configure:2791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2791 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2792 if test -z "$ac_err"; then
2794 eval "ac_cv_header_$ac_safe=yes"
2797 echo "configure: failed program was:" >&5
2798 cat conftest.$ac_ext >&5
2800 eval "ac_cv_header_$ac_safe=no"
2804 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2805 echo "$ac_t""yes" 1>&6
2806 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2807 cat >> confdefs.h <<EOF
2808 #define $ac_tr_hdr 1
2812 echo "$ac_t""no" 1>&6
2817 # For quotas on Veritas VxFS filesystems
2818 for ac_hdr in sys/fs/vx_quota.h
2820 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2821 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2822 echo "configure:2823: checking for $ac_hdr" >&5
2823 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2824 echo $ac_n "(cached) $ac_c" 1>&6
2826 cat > conftest.$ac_ext <<EOF
2827 #line 2828 "configure"
2828 #include "confdefs.h"
2831 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2832 { (eval echo configure:2833: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2833 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2834 if test -z "$ac_err"; then
2836 eval "ac_cv_header_$ac_safe=yes"
2839 echo "configure: failed program was:" >&5
2840 cat conftest.$ac_ext >&5
2842 eval "ac_cv_header_$ac_safe=no"
2846 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2847 echo "$ac_t""yes" 1>&6
2848 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2849 cat >> confdefs.h <<EOF
2850 #define $ac_tr_hdr 1
2854 echo "$ac_t""no" 1>&6
2859 # For quotas on Linux XFS filesystems
2860 for ac_hdr in linux/xqm.h
2862 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2863 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2864 echo "configure:2865: checking for $ac_hdr" >&5
2865 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2866 echo $ac_n "(cached) $ac_c" 1>&6
2868 cat > conftest.$ac_ext <<EOF
2869 #line 2870 "configure"
2870 #include "confdefs.h"
2873 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2874 { (eval echo configure:2875: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2875 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2876 if test -z "$ac_err"; then
2878 eval "ac_cv_header_$ac_safe=yes"
2881 echo "configure: failed program was:" >&5
2882 cat conftest.$ac_ext >&5
2884 eval "ac_cv_header_$ac_safe=no"
2888 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2889 echo "$ac_t""yes" 1>&6
2890 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2891 cat >> confdefs.h <<EOF
2892 #define $ac_tr_hdr 1
2896 echo "$ac_t""no" 1>&6
2901 echo $ac_n "checking size of int""... $ac_c" 1>&6
2902 echo "configure:2903: checking size of int" >&5
2903 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2904 echo $ac_n "(cached) $ac_c" 1>&6
2906 if test "$cross_compiling" = yes; then
2907 ac_cv_sizeof_int=cross
2909 cat > conftest.$ac_ext <<EOF
2910 #line 2911 "configure"
2911 #include "confdefs.h"
2913 #include <sys/types.h>
2916 FILE *f=fopen("conftestval", "w");
2918 fprintf(f, "%d\n", sizeof(int));
2922 if { (eval echo configure:2923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2924 ac_cv_sizeof_int=`cat conftestval`
2926 echo "configure: failed program was:" >&5
2927 cat conftest.$ac_ext >&5
2935 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2936 cat >> confdefs.h <<EOF
2937 #define SIZEOF_INT $ac_cv_sizeof_int
2941 echo $ac_n "checking size of long""... $ac_c" 1>&6
2942 echo "configure:2943: checking size of long" >&5
2943 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2944 echo $ac_n "(cached) $ac_c" 1>&6
2946 if test "$cross_compiling" = yes; then
2947 ac_cv_sizeof_long=cross
2949 cat > conftest.$ac_ext <<EOF
2950 #line 2951 "configure"
2951 #include "confdefs.h"
2953 #include <sys/types.h>
2956 FILE *f=fopen("conftestval", "w");
2958 fprintf(f, "%d\n", sizeof(long));
2962 if { (eval echo configure:2963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2964 ac_cv_sizeof_long=`cat conftestval`
2966 echo "configure: failed program was:" >&5
2967 cat conftest.$ac_ext >&5
2975 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2976 cat >> confdefs.h <<EOF
2977 #define SIZEOF_LONG $ac_cv_sizeof_long
2981 echo $ac_n "checking size of short""... $ac_c" 1>&6
2982 echo "configure:2983: checking size of short" >&5
2983 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2984 echo $ac_n "(cached) $ac_c" 1>&6
2986 if test "$cross_compiling" = yes; then
2987 ac_cv_sizeof_short=cross
2989 cat > conftest.$ac_ext <<EOF
2990 #line 2991 "configure"
2991 #include "confdefs.h"
2993 #include <sys/types.h>
2996 FILE *f=fopen("conftestval", "w");
2998 fprintf(f, "%d\n", sizeof(short));
3002 if { (eval echo configure:3003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3004 ac_cv_sizeof_short=`cat conftestval`
3006 echo "configure: failed program was:" >&5
3007 cat conftest.$ac_ext >&5
3009 ac_cv_sizeof_short=0
3015 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
3016 cat >> confdefs.h <<EOF
3017 #define SIZEOF_SHORT $ac_cv_sizeof_short
3022 echo $ac_n "checking for working const""... $ac_c" 1>&6
3023 echo "configure:3024: checking for working const" >&5
3024 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3025 echo $ac_n "(cached) $ac_c" 1>&6
3027 cat > conftest.$ac_ext <<EOF
3028 #line 3029 "configure"
3029 #include "confdefs.h"
3033 /* Ultrix mips cc rejects this. */
3034 typedef int charset[2]; const charset x;
3035 /* SunOS 4.1.1 cc rejects this. */
3036 char const *const *ccp;
3038 /* NEC SVR4.0.2 mips cc rejects this. */
3039 struct point {int x, y;};
3040 static struct point const zero = {0,0};
3041 /* AIX XL C 1.02.0.0 rejects this.
3042 It does not let you subtract one const X* pointer from another in an arm
3043 of an if-expression whose if-part is not a constant expression */
3044 const char *g = "string";
3045 ccp = &g + (g ? g-g : 0);
3046 /* HPUX 7.0 cc rejects these. */
3049 ccp = (char const *const *) p;
3050 { /* SCO 3.2v4 cc rejects this. */
3052 char const *s = 0 ? (char *) 0 : (char const *) 0;
3056 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3058 const int *foo = &x[0];
3061 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3062 typedef const int *iptr;
3066 { /* AIX XL C 1.02.0.0 rejects this saying
3067 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3068 struct s { int j; const int *ap[3]; };
3069 struct s *b; b->j = 5;
3071 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3077 if { (eval echo configure:3078: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3081 echo "configure: failed program was:" >&5
3082 cat conftest.$ac_ext >&5
3089 echo "$ac_t""$ac_cv_c_const" 1>&6
3090 if test $ac_cv_c_const = no; then
3091 cat >> confdefs.h <<\EOF
3097 echo $ac_n "checking for inline""... $ac_c" 1>&6
3098 echo "configure:3099: checking for inline" >&5
3099 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3100 echo $ac_n "(cached) $ac_c" 1>&6
3103 for ac_kw in inline __inline__ __inline; do
3104 cat > conftest.$ac_ext <<EOF
3105 #line 3106 "configure"
3106 #include "confdefs.h"
3112 if { (eval echo configure:3113: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3114 ac_cv_c_inline=$ac_kw; break
3116 echo "configure: failed program was:" >&5
3117 cat conftest.$ac_ext >&5
3124 echo "$ac_t""$ac_cv_c_inline" 1>&6
3125 case "$ac_cv_c_inline" in
3127 no) cat >> confdefs.h <<\EOF
3131 *) cat >> confdefs.h <<EOF
3132 #define inline $ac_cv_c_inline
3137 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3138 echo "configure:3139: checking whether byte ordering is bigendian" >&5
3139 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3140 echo $ac_n "(cached) $ac_c" 1>&6
3142 ac_cv_c_bigendian=unknown
3143 # See if sys/param.h defines the BYTE_ORDER macro.
3144 cat > conftest.$ac_ext <<EOF
3145 #line 3146 "configure"
3146 #include "confdefs.h"
3147 #include <sys/types.h>
3148 #include <sys/param.h>
3151 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3156 if { (eval echo configure:3157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3158 # It does; now see whether it defined to BIG_ENDIAN or not.
3159 cat > conftest.$ac_ext <<EOF
3160 #line 3161 "configure"
3161 #include "confdefs.h"
3162 #include <sys/types.h>
3163 #include <sys/param.h>
3166 #if BYTE_ORDER != BIG_ENDIAN
3171 if { (eval echo configure:3172: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3173 ac_cv_c_bigendian=yes
3175 echo "configure: failed program was:" >&5
3176 cat conftest.$ac_ext >&5
3178 ac_cv_c_bigendian=no
3182 echo "configure: failed program was:" >&5
3183 cat conftest.$ac_ext >&5
3186 if test $ac_cv_c_bigendian = unknown; then
3187 if test "$cross_compiling" = yes; then
3188 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3190 cat > conftest.$ac_ext <<EOF
3191 #line 3192 "configure"
3192 #include "confdefs.h"
3194 /* Are we little or big endian? From Harbison&Steele. */
3198 char c[sizeof (long)];
3201 exit (u.c[sizeof (long) - 1] == 1);
3204 if { (eval echo configure:3205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3206 ac_cv_c_bigendian=no
3208 echo "configure: failed program was:" >&5
3209 cat conftest.$ac_ext >&5
3211 ac_cv_c_bigendian=yes
3219 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3220 if test $ac_cv_c_bigendian = yes; then
3221 cat >> confdefs.h <<\EOF
3222 #define WORDS_BIGENDIAN 1
3227 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3228 echo "configure:3229: checking whether char is unsigned" >&5
3229 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3230 echo $ac_n "(cached) $ac_c" 1>&6
3232 if test "$GCC" = yes; then
3233 # GCC predefines this symbol on systems where it applies.
3234 cat > conftest.$ac_ext <<EOF
3235 #line 3236 "configure"
3236 #include "confdefs.h"
3237 #ifdef __CHAR_UNSIGNED__
3242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3243 egrep "yes" >/dev/null 2>&1; then
3245 ac_cv_c_char_unsigned=yes
3248 ac_cv_c_char_unsigned=no
3253 if test "$cross_compiling" = yes; then
3254 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3256 cat > conftest.$ac_ext <<EOF
3257 #line 3258 "configure"
3258 #include "confdefs.h"
3259 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3260 #if !defined(__STDC__) || __STDC__ != 1
3264 volatile char c = 255; exit(c < 0);
3267 if { (eval echo configure:3268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3269 ac_cv_c_char_unsigned=yes
3271 echo "configure: failed program was:" >&5
3272 cat conftest.$ac_ext >&5
3274 ac_cv_c_char_unsigned=no
3282 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3283 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3284 cat >> confdefs.h <<\EOF
3285 #define __CHAR_UNSIGNED__ 1
3291 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3292 echo "configure:3293: checking return type of signal handlers" >&5
3293 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3294 echo $ac_n "(cached) $ac_c" 1>&6
3296 cat > conftest.$ac_ext <<EOF
3297 #line 3298 "configure"
3298 #include "confdefs.h"
3299 #include <sys/types.h>
3305 extern "C" void (*signal (int, void (*)(int)))(int);
3307 void (*signal ()) ();
3314 if { (eval echo configure:3315: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3316 ac_cv_type_signal=void
3318 echo "configure: failed program was:" >&5
3319 cat conftest.$ac_ext >&5
3321 ac_cv_type_signal=int
3326 echo "$ac_t""$ac_cv_type_signal" 1>&6
3327 cat >> confdefs.h <<EOF
3328 #define RETSIGTYPE $ac_cv_type_signal
3332 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3333 echo "configure:3334: checking for uid_t in sys/types.h" >&5
3334 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3335 echo $ac_n "(cached) $ac_c" 1>&6
3337 cat > conftest.$ac_ext <<EOF
3338 #line 3339 "configure"
3339 #include "confdefs.h"
3340 #include <sys/types.h>
3342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3343 egrep "uid_t" >/dev/null 2>&1; then
3345 ac_cv_type_uid_t=yes
3354 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3355 if test $ac_cv_type_uid_t = no; then
3356 cat >> confdefs.h <<\EOF
3360 cat >> confdefs.h <<\EOF
3366 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3367 echo "configure:3368: checking for mode_t" >&5
3368 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3369 echo $ac_n "(cached) $ac_c" 1>&6
3371 cat > conftest.$ac_ext <<EOF
3372 #line 3373 "configure"
3373 #include "confdefs.h"
3374 #include <sys/types.h>
3380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3381 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3383 ac_cv_type_mode_t=yes
3386 ac_cv_type_mode_t=no
3391 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3392 if test $ac_cv_type_mode_t = no; then
3393 cat >> confdefs.h <<\EOF
3399 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3400 echo "configure:3401: checking for off_t" >&5
3401 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3402 echo $ac_n "(cached) $ac_c" 1>&6
3404 cat > conftest.$ac_ext <<EOF
3405 #line 3406 "configure"
3406 #include "confdefs.h"
3407 #include <sys/types.h>
3413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3414 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3416 ac_cv_type_off_t=yes
3424 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3425 if test $ac_cv_type_off_t = no; then
3426 cat >> confdefs.h <<\EOF
3432 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3433 echo "configure:3434: checking for size_t" >&5
3434 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3435 echo $ac_n "(cached) $ac_c" 1>&6
3437 cat > conftest.$ac_ext <<EOF
3438 #line 3439 "configure"
3439 #include "confdefs.h"
3440 #include <sys/types.h>
3446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3447 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3449 ac_cv_type_size_t=yes
3452 ac_cv_type_size_t=no
3457 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3458 if test $ac_cv_type_size_t = no; then
3459 cat >> confdefs.h <<\EOF
3460 #define size_t unsigned
3465 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3466 echo "configure:3467: checking for pid_t" >&5
3467 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3468 echo $ac_n "(cached) $ac_c" 1>&6
3470 cat > conftest.$ac_ext <<EOF
3471 #line 3472 "configure"
3472 #include "confdefs.h"
3473 #include <sys/types.h>
3479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3480 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3482 ac_cv_type_pid_t=yes
3490 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3491 if test $ac_cv_type_pid_t = no; then
3492 cat >> confdefs.h <<\EOF
3498 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3499 echo "configure:3500: checking for st_rdev in struct stat" >&5
3500 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3501 echo $ac_n "(cached) $ac_c" 1>&6
3503 cat > conftest.$ac_ext <<EOF
3504 #line 3505 "configure"
3505 #include "confdefs.h"
3506 #include <sys/types.h>
3507 #include <sys/stat.h>
3509 struct stat s; s.st_rdev;
3512 if { (eval echo configure:3513: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3514 ac_cv_struct_st_rdev=yes
3516 echo "configure: failed program was:" >&5
3517 cat conftest.$ac_ext >&5
3519 ac_cv_struct_st_rdev=no
3524 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3525 if test $ac_cv_struct_st_rdev = yes; then
3526 cat >> confdefs.h <<\EOF
3527 #define HAVE_ST_RDEV 1
3532 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3533 echo "configure:3534: checking for d_off in dirent" >&5
3534 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3535 echo $ac_n "(cached) $ac_c" 1>&6
3537 cat > conftest.$ac_ext <<EOF
3538 #line 3539 "configure"
3539 #include "confdefs.h"
3542 #include <sys/types.h>
3545 struct dirent d; d.d_off;
3548 if { (eval echo configure:3549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3550 ac_cv_dirent_d_off=yes
3552 echo "configure: failed program was:" >&5
3553 cat conftest.$ac_ext >&5
3555 ac_cv_dirent_d_off=no
3560 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3561 if test $ac_cv_dirent_d_off = yes; then
3562 cat >> confdefs.h <<\EOF
3563 #define HAVE_DIRENT_D_OFF 1
3568 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3569 echo "configure:3570: checking for ino_t" >&5
3570 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3571 echo $ac_n "(cached) $ac_c" 1>&6
3573 cat > conftest.$ac_ext <<EOF
3574 #line 3575 "configure"
3575 #include "confdefs.h"
3576 #include <sys/types.h>
3582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3583 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3585 ac_cv_type_ino_t=yes
3593 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3594 if test $ac_cv_type_ino_t = no; then
3595 cat >> confdefs.h <<\EOF
3596 #define ino_t unsigned
3601 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3602 echo "configure:3603: checking for loff_t" >&5
3603 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3604 echo $ac_n "(cached) $ac_c" 1>&6
3606 cat > conftest.$ac_ext <<EOF
3607 #line 3608 "configure"
3608 #include "confdefs.h"
3609 #include <sys/types.h>
3615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3616 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3618 ac_cv_type_loff_t=yes
3621 ac_cv_type_loff_t=no
3626 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3627 if test $ac_cv_type_loff_t = no; then
3628 cat >> confdefs.h <<\EOF
3629 #define loff_t off_t
3634 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3635 echo "configure:3636: checking for offset_t" >&5
3636 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3637 echo $ac_n "(cached) $ac_c" 1>&6
3639 cat > conftest.$ac_ext <<EOF
3640 #line 3641 "configure"
3641 #include "confdefs.h"
3642 #include <sys/types.h>
3648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3649 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3651 ac_cv_type_offset_t=yes
3654 ac_cv_type_offset_t=no
3659 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3660 if test $ac_cv_type_offset_t = no; then
3661 cat >> confdefs.h <<\EOF
3662 #define offset_t loff_t
3667 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3668 echo "configure:3669: checking for ssize_t" >&5
3669 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3670 echo $ac_n "(cached) $ac_c" 1>&6
3672 cat > conftest.$ac_ext <<EOF
3673 #line 3674 "configure"
3674 #include "confdefs.h"
3675 #include <sys/types.h>
3681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3682 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3684 ac_cv_type_ssize_t=yes
3687 ac_cv_type_ssize_t=no
3692 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3693 if test $ac_cv_type_ssize_t = no; then
3694 cat >> confdefs.h <<\EOF
3700 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3701 echo "configure:3702: checking for wchar_t" >&5
3702 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3703 echo $ac_n "(cached) $ac_c" 1>&6
3705 cat > conftest.$ac_ext <<EOF
3706 #line 3707 "configure"
3707 #include "confdefs.h"
3708 #include <sys/types.h>
3714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3715 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3717 ac_cv_type_wchar_t=yes
3720 ac_cv_type_wchar_t=no
3725 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3726 if test $ac_cv_type_wchar_t = no; then
3727 cat >> confdefs.h <<\EOF
3728 #define wchar_t unsigned short
3734 ############################################
3735 # for cups support we need libcups, and a handful of header files
3737 # Check whether --enable-cups or --disable-cups was given.
3738 if test "${enable_cups+set}" = set; then
3739 enableval="$enable_cups"
3744 if test x$enable_cups != xno; then
3745 # Extract the first word of "cups-config", so it can be a program name with args.
3746 set dummy cups-config; ac_word=$2
3747 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3748 echo "configure:3749: checking for $ac_word" >&5
3749 if eval "test \"`echo '$''{'ac_cv_path_CUPS_CONFIG'+set}'`\" = set"; then
3750 echo $ac_n "(cached) $ac_c" 1>&6
3752 case "$CUPS_CONFIG" in
3754 ac_cv_path_CUPS_CONFIG="$CUPS_CONFIG" # Let the user override the test with a path.
3757 ac_cv_path_CUPS_CONFIG="$CUPS_CONFIG" # Let the user override the test with a dos path.
3760 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3762 for ac_dir in $ac_dummy; do
3763 test -z "$ac_dir" && ac_dir=.
3764 if test -f $ac_dir/$ac_word; then
3765 ac_cv_path_CUPS_CONFIG="$ac_dir/$ac_word"
3773 CUPS_CONFIG="$ac_cv_path_CUPS_CONFIG"
3774 if test -n "$CUPS_CONFIG"; then
3775 echo "$ac_t""$CUPS_CONFIG" 1>&6
3777 echo "$ac_t""no" 1>&6
3781 if test "x$CUPS_CONFIG" != x; then
3782 cat >> confdefs.h <<\EOF
3786 CFLAGS="$CFLAGS `$CUPS_CONFIG --cflags`"
3787 LDFLAGS="$LDFLAGS `$CUPS_CONFIG --ldflags`"
3788 PRINTLIBS="$PRINTLIBS `$CUPS_CONFIG --libs`"
3792 ############################################
3793 # we need dlopen/dlclose/dlsym/dlerror for PAM, the password database plugins and the new VFS code
3794 for ac_func in dlopen
3796 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3797 echo "configure:3798: checking for $ac_func" >&5
3798 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3799 echo $ac_n "(cached) $ac_c" 1>&6
3801 cat > conftest.$ac_ext <<EOF
3802 #line 3803 "configure"
3803 #include "confdefs.h"
3804 /* System header to define __stub macros and hopefully few prototypes,
3805 which can conflict with char $ac_func(); below. */
3807 /* Override any gcc2 internal prototype to avoid an error. */
3808 /* We use char because int might match the return type of a gcc2
3809 builtin and then its argument prototype would still apply. */
3814 /* The GNU C library defines this for functions which it implements
3815 to always fail with ENOSYS. Some functions are actually named
3816 something starting with __ and the normal name is an alias. */
3817 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3825 if { (eval echo configure:3826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3827 eval "ac_cv_func_$ac_func=yes"
3829 echo "configure: failed program was:" >&5
3830 cat conftest.$ac_ext >&5
3832 eval "ac_cv_func_$ac_func=no"
3837 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3838 echo "$ac_t""yes" 1>&6
3839 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3840 cat >> confdefs.h <<EOF
3841 #define $ac_tr_func 1
3845 echo "$ac_t""no" 1>&6
3849 if test x"$ac_cv_func_dlopen" = x"no"; then
3850 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3851 echo "configure:3852: checking for dlopen in -ldl" >&5
3852 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3853 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3854 echo $ac_n "(cached) $ac_c" 1>&6
3856 ac_save_LIBS="$LIBS"
3858 cat > conftest.$ac_ext <<EOF
3859 #line 3860 "configure"
3860 #include "confdefs.h"
3861 /* Override any gcc2 internal prototype to avoid an error. */
3862 /* We use char because int might match the return type of a gcc2
3863 builtin and then its argument prototype would still apply. */
3870 if { (eval echo configure:3871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3872 eval "ac_cv_lib_$ac_lib_var=yes"
3874 echo "configure: failed program was:" >&5
3875 cat conftest.$ac_ext >&5
3877 eval "ac_cv_lib_$ac_lib_var=no"
3880 LIBS="$ac_save_LIBS"
3883 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3884 echo "$ac_t""yes" 1>&6
3886 cat >> confdefs.h <<\EOF
3887 #define HAVE_DLOPEN 1
3891 echo "$ac_t""no" 1>&6
3895 # dlopen/dlclose/dlsym/dlerror will be checked again later and defines will be set then
3897 ############################################
3898 # check if the compiler can do immediate structures
3899 echo $ac_n "checking for immediate structures""... $ac_c" 1>&6
3900 echo "configure:3901: checking for immediate structures" >&5
3901 if eval "test \"`echo '$''{'samba_cv_immediate_structures'+set}'`\" = set"; then
3902 echo $ac_n "(cached) $ac_c" 1>&6
3905 cat > conftest.$ac_ext <<EOF
3906 #line 3907 "configure"
3907 #include "confdefs.h"
3912 typedef struct {unsigned x;} FOOBAR;
3913 #define X_FOOBAR(x) ((FOOBAR) { x })
3914 #define FOO_ONE X_FOOBAR(1)
3924 if { (eval echo configure:3925: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3926 samba_cv_immediate_structures=yes
3928 echo "configure: failed program was:" >&5
3929 cat conftest.$ac_ext >&5
3931 samba_cv_immediate_structures=no
3936 echo "$ac_t""$samba_cv_immediate_structures" 1>&6
3937 if test x"$samba_cv_immediate_structures" = x"yes"; then
3938 cat >> confdefs.h <<\EOF
3939 #define HAVE_IMMEDIATE_STRUCTURES 1
3944 ############################################
3945 # check for unix domain sockets
3946 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
3947 echo "configure:3948: checking for unix domain sockets" >&5
3948 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
3949 echo $ac_n "(cached) $ac_c" 1>&6
3952 cat > conftest.$ac_ext <<EOF
3953 #line 3954 "configure"
3954 #include "confdefs.h"
3956 #include <sys/types.h>
3959 #include <sys/socket.h>
3963 struct sockaddr_un sunaddr;
3964 sunaddr.sun_family = AF_UNIX;
3968 if { (eval echo configure:3969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3970 samba_cv_unixsocket=yes
3972 echo "configure: failed program was:" >&5
3973 cat conftest.$ac_ext >&5
3975 samba_cv_unixsocket=no
3980 echo "$ac_t""$samba_cv_unixsocket" 1>&6
3981 if test x"$samba_cv_unixsocket" = x"yes"; then
3982 cat >> confdefs.h <<\EOF
3983 #define HAVE_UNIXSOCKET 1
3989 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
3990 echo "configure:3991: checking for socklen_t type" >&5
3991 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
3992 echo $ac_n "(cached) $ac_c" 1>&6
3995 cat > conftest.$ac_ext <<EOF
3996 #line 3997 "configure"
3997 #include "confdefs.h"
3999 #include <sys/types.h>
4004 #include <sys/socket.h>
4009 if { (eval echo configure:4010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4011 samba_cv_socklen_t=yes
4013 echo "configure: failed program was:" >&5
4014 cat conftest.$ac_ext >&5
4016 samba_cv_socklen_t=no
4021 echo "$ac_t""$samba_cv_socklen_t" 1>&6
4022 if test x"$samba_cv_socklen_t" = x"yes"; then
4023 cat >> confdefs.h <<\EOF
4024 #define HAVE_SOCKLEN_T_TYPE 1
4029 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
4030 echo "configure:4031: checking for sig_atomic_t type" >&5
4031 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
4032 echo $ac_n "(cached) $ac_c" 1>&6
4035 cat > conftest.$ac_ext <<EOF
4036 #line 4037 "configure"
4037 #include "confdefs.h"
4039 #include <sys/types.h>
4049 if { (eval echo configure:4050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4051 samba_cv_sig_atomic_t=yes
4053 echo "configure: failed program was:" >&5
4054 cat conftest.$ac_ext >&5
4056 samba_cv_sig_atomic_t=no
4061 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
4062 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
4063 cat >> confdefs.h <<\EOF
4064 #define HAVE_SIG_ATOMIC_T_TYPE 1
4069 # stupid headers have the functions but no declaration. grrrr.
4071 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
4072 echo "configure:4073: checking for errno declaration" >&5
4073 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
4074 echo $ac_n "(cached) $ac_c" 1>&6
4077 cat > conftest.$ac_ext <<EOF
4078 #line 4079 "configure"
4079 #include "confdefs.h"
4085 if { (eval echo configure:4086: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4087 ac_cv_have_errno_decl=yes
4089 echo "configure: failed program was:" >&5
4090 cat conftest.$ac_ext >&5
4092 ac_cv_have_errno_decl=no
4097 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
4098 if test x"$ac_cv_have_errno_decl" = x"yes"; then
4099 cat >> confdefs.h <<\EOF
4100 #define HAVE_ERRNO_DECL 1
4106 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
4107 echo "configure:4108: checking for setresuid declaration" >&5
4108 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
4109 echo $ac_n "(cached) $ac_c" 1>&6
4112 cat > conftest.$ac_ext <<EOF
4113 #line 4114 "configure"
4114 #include "confdefs.h"
4117 int i = (int)setresuid
4120 if { (eval echo configure:4121: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4122 ac_cv_have_setresuid_decl=yes
4124 echo "configure: failed program was:" >&5
4125 cat conftest.$ac_ext >&5
4127 ac_cv_have_setresuid_decl=no
4132 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
4133 if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
4134 cat >> confdefs.h <<\EOF
4135 #define HAVE_SETRESUID_DECL 1
4141 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
4142 echo "configure:4143: checking for setresgid declaration" >&5
4143 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
4144 echo $ac_n "(cached) $ac_c" 1>&6
4147 cat > conftest.$ac_ext <<EOF
4148 #line 4149 "configure"
4149 #include "confdefs.h"
4152 int i = (int)setresgid
4155 if { (eval echo configure:4156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4157 ac_cv_have_setresgid_decl=yes
4159 echo "configure: failed program was:" >&5
4160 cat conftest.$ac_ext >&5
4162 ac_cv_have_setresgid_decl=no
4167 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
4168 if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
4169 cat >> confdefs.h <<\EOF
4170 #define HAVE_SETRESGID_DECL 1
4176 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
4177 echo "configure:4178: checking for asprintf declaration" >&5
4178 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
4179 echo $ac_n "(cached) $ac_c" 1>&6
4182 cat > conftest.$ac_ext <<EOF
4183 #line 4184 "configure"
4184 #include "confdefs.h"
4187 int i = (int)asprintf
4190 if { (eval echo configure:4191: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4192 ac_cv_have_asprintf_decl=yes
4194 echo "configure: failed program was:" >&5
4195 cat conftest.$ac_ext >&5
4197 ac_cv_have_asprintf_decl=no
4202 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
4203 if test x"$ac_cv_have_asprintf_decl" = x"yes"; then
4204 cat >> confdefs.h <<\EOF
4205 #define HAVE_ASPRINTF_DECL 1
4211 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
4212 echo "configure:4213: checking for vasprintf declaration" >&5
4213 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
4214 echo $ac_n "(cached) $ac_c" 1>&6
4217 cat > conftest.$ac_ext <<EOF
4218 #line 4219 "configure"
4219 #include "confdefs.h"
4222 int i = (int)vasprintf
4225 if { (eval echo configure:4226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4227 ac_cv_have_vasprintf_decl=yes
4229 echo "configure: failed program was:" >&5
4230 cat conftest.$ac_ext >&5
4232 ac_cv_have_vasprintf_decl=no
4237 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
4238 if test x"$ac_cv_have_vasprintf_decl" = x"yes"; then
4239 cat >> confdefs.h <<\EOF
4240 #define HAVE_VASPRINTF_DECL 1
4246 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
4247 echo "configure:4248: checking for vsnprintf declaration" >&5
4248 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
4249 echo $ac_n "(cached) $ac_c" 1>&6
4252 cat > conftest.$ac_ext <<EOF
4253 #line 4254 "configure"
4254 #include "confdefs.h"
4257 int i = (int)vsnprintf
4260 if { (eval echo configure:4261: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4262 ac_cv_have_vsnprintf_decl=yes
4264 echo "configure: failed program was:" >&5
4265 cat conftest.$ac_ext >&5
4267 ac_cv_have_vsnprintf_decl=no
4272 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
4273 if test x"$ac_cv_have_vsnprintf_decl" = x"yes"; then
4274 cat >> confdefs.h <<\EOF
4275 #define HAVE_VSNPRINTF_DECL 1
4281 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
4282 echo "configure:4283: checking for snprintf declaration" >&5
4283 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
4284 echo $ac_n "(cached) $ac_c" 1>&6
4287 cat > conftest.$ac_ext <<EOF
4288 #line 4289 "configure"
4289 #include "confdefs.h"
4292 int i = (int)snprintf
4295 if { (eval echo configure:4296: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4297 ac_cv_have_snprintf_decl=yes
4299 echo "configure: failed program was:" >&5
4300 cat conftest.$ac_ext >&5
4302 ac_cv_have_snprintf_decl=no
4307 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
4308 if test x"$ac_cv_have_snprintf_decl" = x"yes"; then
4309 cat >> confdefs.h <<\EOF
4310 #define HAVE_SNPRINTF_DECL 1
4316 # and glibc has setresuid under linux but the function does
4317 # nothing until kernel 2.1.44! very dumb.
4318 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
4319 echo "configure:4320: checking for real setresuid" >&5
4320 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
4321 echo $ac_n "(cached) $ac_c" 1>&6
4324 if test "$cross_compiling" = yes; then
4325 samba_cv_have_setresuid=cross
4327 cat > conftest.$ac_ext <<EOF
4328 #line 4329 "configure"
4329 #include "confdefs.h"
4331 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4333 if { (eval echo configure:4334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4335 samba_cv_have_setresuid=yes
4337 echo "configure: failed program was:" >&5
4338 cat conftest.$ac_ext >&5
4340 samba_cv_have_setresuid=no
4347 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4348 if test x"$samba_cv_have_setresuid" = x"yes"; then
4349 cat >> confdefs.h <<\EOF
4350 #define HAVE_SETRESUID 1
4355 # Do the same check for setresguid...
4357 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4358 echo "configure:4359: checking for real setresgid" >&5
4359 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4360 echo $ac_n "(cached) $ac_c" 1>&6
4363 if test "$cross_compiling" = yes; then
4364 samba_cv_have_setresgid=cross
4366 cat > conftest.$ac_ext <<EOF
4367 #line 4368 "configure"
4368 #include "confdefs.h"
4371 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4373 if { (eval echo configure:4374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4375 samba_cv_have_setresgid=yes
4377 echo "configure: failed program was:" >&5
4378 cat conftest.$ac_ext >&5
4380 samba_cv_have_setresgid=no
4387 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4388 if test x"$samba_cv_have_setresgid" = x"yes"; then
4389 cat >> confdefs.h <<\EOF
4390 #define HAVE_SETRESGID 1
4395 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4396 echo "configure:4397: checking for 8-bit clean memcmp" >&5
4397 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4398 echo $ac_n "(cached) $ac_c" 1>&6
4400 if test "$cross_compiling" = yes; then
4401 ac_cv_func_memcmp_clean=no
4403 cat > conftest.$ac_ext <<EOF
4404 #line 4405 "configure"
4405 #include "confdefs.h"
4409 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4410 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4414 if { (eval echo configure:4415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4416 ac_cv_func_memcmp_clean=yes
4418 echo "configure: failed program was:" >&5
4419 cat conftest.$ac_ext >&5
4421 ac_cv_func_memcmp_clean=no
4428 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4429 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
4432 ###############################################
4433 # test for where we get crypt() from
4434 for ac_func in crypt
4436 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4437 echo "configure:4438: checking for $ac_func" >&5
4438 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4439 echo $ac_n "(cached) $ac_c" 1>&6
4441 cat > conftest.$ac_ext <<EOF
4442 #line 4443 "configure"
4443 #include "confdefs.h"
4444 /* System header to define __stub macros and hopefully few prototypes,
4445 which can conflict with char $ac_func(); below. */
4447 /* Override any gcc2 internal prototype to avoid an error. */
4448 /* We use char because int might match the return type of a gcc2
4449 builtin and then its argument prototype would still apply. */
4454 /* The GNU C library defines this for functions which it implements
4455 to always fail with ENOSYS. Some functions are actually named
4456 something starting with __ and the normal name is an alias. */
4457 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4465 if { (eval echo configure:4466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4467 eval "ac_cv_func_$ac_func=yes"
4469 echo "configure: failed program was:" >&5
4470 cat conftest.$ac_ext >&5
4472 eval "ac_cv_func_$ac_func=no"
4477 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4478 echo "$ac_t""yes" 1>&6
4479 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4480 cat >> confdefs.h <<EOF
4481 #define $ac_tr_func 1
4485 echo "$ac_t""no" 1>&6
4489 if test x"$ac_cv_func_crypt" = x"no"; then
4490 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4491 echo "configure:4492: checking for crypt in -lcrypt" >&5
4492 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4493 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4494 echo $ac_n "(cached) $ac_c" 1>&6
4496 ac_save_LIBS="$LIBS"
4497 LIBS="-lcrypt $LIBS"
4498 cat > conftest.$ac_ext <<EOF
4499 #line 4500 "configure"
4500 #include "confdefs.h"
4501 /* Override any gcc2 internal prototype to avoid an error. */
4502 /* We use char because int might match the return type of a gcc2
4503 builtin and then its argument prototype would still apply. */
4510 if { (eval echo configure:4511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4512 eval "ac_cv_lib_$ac_lib_var=yes"
4514 echo "configure: failed program was:" >&5
4515 cat conftest.$ac_ext >&5
4517 eval "ac_cv_lib_$ac_lib_var=no"
4520 LIBS="$ac_save_LIBS"
4523 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4524 echo "$ac_t""yes" 1>&6
4525 LIBS="$LIBS -lcrypt";
4526 cat >> confdefs.h <<\EOF
4527 #define HAVE_CRYPT 1
4531 echo "$ac_t""no" 1>&6
4537 ###############################################
4538 # Readline included by default unless explicitly asked not to
4539 test "${with_readline+set}" != "set" && with_readline=yes
4541 # test for where we get readline() from
4542 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4543 echo "configure:4544: checking whether to use readline" >&5
4544 # Check whether --with-readline or --without-readline was given.
4545 if test "${with_readline+set}" = set; then
4546 withval="$with_readline"
4547 case "$with_readline" in
4549 echo "$ac_t""yes" 1>&6
4551 for ac_hdr in readline.h history.h readline/readline.h
4553 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4554 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4555 echo "configure:4556: checking for $ac_hdr" >&5
4556 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4557 echo $ac_n "(cached) $ac_c" 1>&6
4559 cat > conftest.$ac_ext <<EOF
4560 #line 4561 "configure"
4561 #include "confdefs.h"
4564 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4565 { (eval echo configure:4566: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4566 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4567 if test -z "$ac_err"; then
4569 eval "ac_cv_header_$ac_safe=yes"
4572 echo "configure: failed program was:" >&5
4573 cat conftest.$ac_ext >&5
4575 eval "ac_cv_header_$ac_safe=no"
4579 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4580 echo "$ac_t""yes" 1>&6
4581 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4582 cat >> confdefs.h <<EOF
4583 #define $ac_tr_hdr 1
4587 echo "$ac_t""no" 1>&6
4591 for ac_hdr in readline/history.h
4593 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4594 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4595 echo "configure:4596: checking for $ac_hdr" >&5
4596 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4597 echo $ac_n "(cached) $ac_c" 1>&6
4599 cat > conftest.$ac_ext <<EOF
4600 #line 4601 "configure"
4601 #include "confdefs.h"
4604 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4605 { (eval echo configure:4606: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4606 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4607 if test -z "$ac_err"; then
4609 eval "ac_cv_header_$ac_safe=yes"
4612 echo "configure: failed program was:" >&5
4613 cat conftest.$ac_ext >&5
4615 eval "ac_cv_header_$ac_safe=no"
4619 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4620 echo "$ac_t""yes" 1>&6
4621 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4622 cat >> confdefs.h <<EOF
4623 #define $ac_tr_hdr 1
4627 echo "$ac_t""no" 1>&6
4632 for ac_hdr in readline.h readline/readline.h
4634 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4635 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4636 echo "configure:4637: checking for $ac_hdr" >&5
4637 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4638 echo $ac_n "(cached) $ac_c" 1>&6
4640 cat > conftest.$ac_ext <<EOF
4641 #line 4642 "configure"
4642 #include "confdefs.h"
4645 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4646 { (eval echo configure:4647: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4647 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4648 if test -z "$ac_err"; then
4650 eval "ac_cv_header_$ac_safe=yes"
4653 echo "configure: failed program was:" >&5
4654 cat conftest.$ac_ext >&5
4656 eval "ac_cv_header_$ac_safe=no"
4660 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4661 echo "$ac_t""yes" 1>&6
4662 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4663 cat >> confdefs.h <<EOF
4664 #define $ac_tr_hdr 1
4667 for termlib in ncurses curses termcap terminfo termlib; do
4668 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4669 echo "configure:4670: checking for tgetent in -l${termlib}" >&5
4670 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4671 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4672 echo $ac_n "(cached) $ac_c" 1>&6
4674 ac_save_LIBS="$LIBS"
4675 LIBS="-l${termlib} $LIBS"
4676 cat > conftest.$ac_ext <<EOF
4677 #line 4678 "configure"
4678 #include "confdefs.h"
4679 /* Override any gcc2 internal prototype to avoid an error. */
4680 /* We use char because int might match the return type of a gcc2
4681 builtin and then its argument prototype would still apply. */
4688 if { (eval echo configure:4689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4690 eval "ac_cv_lib_$ac_lib_var=yes"
4692 echo "configure: failed program was:" >&5
4693 cat conftest.$ac_ext >&5
4695 eval "ac_cv_lib_$ac_lib_var=no"
4698 LIBS="$ac_save_LIBS"
4701 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4702 echo "$ac_t""yes" 1>&6
4703 TERMLIBS="-l${termlib}"; break
4705 echo "$ac_t""no" 1>&6
4709 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4710 echo "configure:4711: checking for rl_callback_handler_install in -lreadline" >&5
4711 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4712 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4713 echo $ac_n "(cached) $ac_c" 1>&6
4715 ac_save_LIBS="$LIBS"
4716 LIBS="-lreadline $TERMLIBS $LIBS"
4717 cat > conftest.$ac_ext <<EOF
4718 #line 4719 "configure"
4719 #include "confdefs.h"
4720 /* Override any gcc2 internal prototype to avoid an error. */
4721 /* We use char because int might match the return type of a gcc2
4722 builtin and then its argument prototype would still apply. */
4723 char rl_callback_handler_install();
4726 rl_callback_handler_install()
4729 if { (eval echo configure:4730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4731 eval "ac_cv_lib_$ac_lib_var=yes"
4733 echo "configure: failed program was:" >&5
4734 cat conftest.$ac_ext >&5
4736 eval "ac_cv_lib_$ac_lib_var=no"
4739 LIBS="$ac_save_LIBS"
4742 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4743 echo "$ac_t""yes" 1>&6
4744 TERMLIBS="-lreadline $TERMLIBS"
4745 cat >> confdefs.h <<\EOF
4746 #define HAVE_LIBREADLINE 1
4751 echo "$ac_t""no" 1>&6
4756 echo "$ac_t""no" 1>&6
4762 echo "$ac_t""no" 1>&6
4765 echo "$ac_t""yes" 1>&6
4767 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4768 # alternate readline path
4770 _cppflags=${CPPFLAGS}
4772 # Add additional search path
4773 LDFLAGS="-L$with_readline/lib $LDFLAGS"
4774 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4776 for ac_hdr in readline.h history.h readline/readline.h
4778 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4779 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4780 echo "configure:4781: checking for $ac_hdr" >&5
4781 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4782 echo $ac_n "(cached) $ac_c" 1>&6
4784 cat > conftest.$ac_ext <<EOF
4785 #line 4786 "configure"
4786 #include "confdefs.h"
4789 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4790 { (eval echo configure:4791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4791 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4792 if test -z "$ac_err"; then
4794 eval "ac_cv_header_$ac_safe=yes"
4797 echo "configure: failed program was:" >&5
4798 cat conftest.$ac_ext >&5
4800 eval "ac_cv_header_$ac_safe=no"
4804 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4805 echo "$ac_t""yes" 1>&6
4806 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4807 cat >> confdefs.h <<EOF
4808 #define $ac_tr_hdr 1
4812 echo "$ac_t""no" 1>&6
4816 for ac_hdr in readline/history.h
4818 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4819 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4820 echo "configure:4821: checking for $ac_hdr" >&5
4821 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4822 echo $ac_n "(cached) $ac_c" 1>&6
4824 cat > conftest.$ac_ext <<EOF
4825 #line 4826 "configure"
4826 #include "confdefs.h"
4829 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4830 { (eval echo configure:4831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4831 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4832 if test -z "$ac_err"; then
4834 eval "ac_cv_header_$ac_safe=yes"
4837 echo "configure: failed program was:" >&5
4838 cat conftest.$ac_ext >&5
4840 eval "ac_cv_header_$ac_safe=no"
4844 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4845 echo "$ac_t""yes" 1>&6
4846 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4847 cat >> confdefs.h <<EOF
4848 #define $ac_tr_hdr 1
4852 echo "$ac_t""no" 1>&6
4857 for ac_hdr in readline.h readline/readline.h
4859 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4860 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4861 echo "configure:4862: checking for $ac_hdr" >&5
4862 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4863 echo $ac_n "(cached) $ac_c" 1>&6
4865 cat > conftest.$ac_ext <<EOF
4866 #line 4867 "configure"
4867 #include "confdefs.h"
4870 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4871 { (eval echo configure:4872: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4872 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4873 if test -z "$ac_err"; then
4875 eval "ac_cv_header_$ac_safe=yes"
4878 echo "configure: failed program was:" >&5
4879 cat conftest.$ac_ext >&5
4881 eval "ac_cv_header_$ac_safe=no"
4885 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4886 echo "$ac_t""yes" 1>&6
4887 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4888 cat >> confdefs.h <<EOF
4889 #define $ac_tr_hdr 1
4892 for termlib in ncurses curses termcap terminfo termlib; do
4893 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4894 echo "configure:4895: checking for tgetent in -l${termlib}" >&5
4895 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4896 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4897 echo $ac_n "(cached) $ac_c" 1>&6
4899 ac_save_LIBS="$LIBS"
4900 LIBS="-l${termlib} $LIBS"
4901 cat > conftest.$ac_ext <<EOF
4902 #line 4903 "configure"
4903 #include "confdefs.h"
4904 /* Override any gcc2 internal prototype to avoid an error. */
4905 /* We use char because int might match the return type of a gcc2
4906 builtin and then its argument prototype would still apply. */
4913 if { (eval echo configure:4914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4915 eval "ac_cv_lib_$ac_lib_var=yes"
4917 echo "configure: failed program was:" >&5
4918 cat conftest.$ac_ext >&5
4920 eval "ac_cv_lib_$ac_lib_var=no"
4923 LIBS="$ac_save_LIBS"
4926 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4927 echo "$ac_t""yes" 1>&6
4928 TERMLIBS="-l${termlib}"; break
4930 echo "$ac_t""no" 1>&6
4934 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4935 echo "configure:4936: checking for rl_callback_handler_install in -lreadline" >&5
4936 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4937 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4938 echo $ac_n "(cached) $ac_c" 1>&6
4940 ac_save_LIBS="$LIBS"
4941 LIBS="-lreadline $TERMLIBS $LIBS"
4942 cat > conftest.$ac_ext <<EOF
4943 #line 4944 "configure"
4944 #include "confdefs.h"
4945 /* Override any gcc2 internal prototype to avoid an error. */
4946 /* We use char because int might match the return type of a gcc2
4947 builtin and then its argument prototype would still apply. */
4948 char rl_callback_handler_install();
4951 rl_callback_handler_install()
4954 if { (eval echo configure:4955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4956 eval "ac_cv_lib_$ac_lib_var=yes"
4958 echo "configure: failed program was:" >&5
4959 cat conftest.$ac_ext >&5
4961 eval "ac_cv_lib_$ac_lib_var=no"
4964 LIBS="$ac_save_LIBS"
4967 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4968 echo "$ac_t""yes" 1>&6
4969 TERMLDFLAGS="-L$with_readline/lib"
4970 TERMCPPFLAGS="-I$with_readline/include"
4971 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4972 TERMLIBS="-lreadline $TERMLIBS"
4973 cat >> confdefs.h <<\EOF
4974 #define HAVE_LIBREADLINE 1
4979 echo "$ac_t""no" 1>&6
4980 TERMLIBS= CPPFLAGS=$_cppflags
4984 echo "$ac_t""no" 1>&6
4993 echo "$ac_t""no" 1>&6
5000 # The readline API changed slightly from readline3 to readline4, so
5001 # code will generate warnings on one of them unless we have a few
5003 echo $ac_n "checking for rl_completion_matches in -lreadline""... $ac_c" 1>&6
5004 echo "configure:5005: checking for rl_completion_matches in -lreadline" >&5
5005 ac_lib_var=`echo readline'_'rl_completion_matches | sed 'y%./+-%__p_%'`
5006 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5007 echo $ac_n "(cached) $ac_c" 1>&6
5009 ac_save_LIBS="$LIBS"
5010 LIBS="-lreadline $TERMLIBS $LIBS"
5011 cat > conftest.$ac_ext <<EOF
5012 #line 5013 "configure"
5013 #include "confdefs.h"
5014 /* Override any gcc2 internal prototype to avoid an error. */
5015 /* We use char because int might match the return type of a gcc2
5016 builtin and then its argument prototype would still apply. */
5017 char rl_completion_matches();
5020 rl_completion_matches()
5023 if { (eval echo configure:5024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5025 eval "ac_cv_lib_$ac_lib_var=yes"
5027 echo "configure: failed program was:" >&5
5028 cat conftest.$ac_ext >&5
5030 eval "ac_cv_lib_$ac_lib_var=no"
5033 LIBS="$ac_save_LIBS"
5036 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5037 echo "$ac_t""yes" 1>&6
5038 cat >> confdefs.h <<\EOF
5039 #define HAVE_NEW_LIBREADLINE 1
5043 echo "$ac_t""no" 1>&6
5047 # The following test taken from the cvs sources
5048 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
5049 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
5050 # libsocket.so which has a bad implementation of gethostbyname (it
5051 # only looks in /etc/hosts), so we only look for -lsocket if we need
5053 for ac_func in connect
5055 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5056 echo "configure:5057: checking for $ac_func" >&5
5057 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5058 echo $ac_n "(cached) $ac_c" 1>&6
5060 cat > conftest.$ac_ext <<EOF
5061 #line 5062 "configure"
5062 #include "confdefs.h"
5063 /* System header to define __stub macros and hopefully few prototypes,
5064 which can conflict with char $ac_func(); below. */
5066 /* Override any gcc2 internal prototype to avoid an error. */
5067 /* We use char because int might match the return type of a gcc2
5068 builtin and then its argument prototype would still apply. */
5073 /* The GNU C library defines this for functions which it implements
5074 to always fail with ENOSYS. Some functions are actually named
5075 something starting with __ and the normal name is an alias. */
5076 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5084 if { (eval echo configure:5085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5086 eval "ac_cv_func_$ac_func=yes"
5088 echo "configure: failed program was:" >&5
5089 cat conftest.$ac_ext >&5
5091 eval "ac_cv_func_$ac_func=no"
5096 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5097 echo "$ac_t""yes" 1>&6
5098 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5099 cat >> confdefs.h <<EOF
5100 #define $ac_tr_func 1
5104 echo "$ac_t""no" 1>&6
5108 if test x"$ac_cv_func_connect" = x"no"; then
5111 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
5112 echo "configure:5113: checking for printf in -lnsl_s" >&5
5113 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
5114 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5115 echo $ac_n "(cached) $ac_c" 1>&6
5117 ac_save_LIBS="$LIBS"
5118 LIBS="-lnsl_s $LIBS"
5119 cat > conftest.$ac_ext <<EOF
5120 #line 5121 "configure"
5121 #include "confdefs.h"
5122 /* Override any gcc2 internal prototype to avoid an error. */
5123 /* We use char because int might match the return type of a gcc2
5124 builtin and then its argument prototype would still apply. */
5131 if { (eval echo configure:5132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5133 eval "ac_cv_lib_$ac_lib_var=yes"
5135 echo "configure: failed program was:" >&5
5136 cat conftest.$ac_ext >&5
5138 eval "ac_cv_lib_$ac_lib_var=no"
5141 LIBS="$ac_save_LIBS"
5144 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5145 echo "$ac_t""yes" 1>&6
5146 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5147 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5148 cat >> confdefs.h <<EOF
5149 #define $ac_tr_lib 1
5152 LIBS="-lnsl_s $LIBS"
5155 echo "$ac_t""no" 1>&6
5161 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
5162 echo "configure:5163: checking for printf in -lnsl" >&5
5163 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
5164 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5165 echo $ac_n "(cached) $ac_c" 1>&6
5167 ac_save_LIBS="$LIBS"
5169 cat > conftest.$ac_ext <<EOF
5170 #line 5171 "configure"
5171 #include "confdefs.h"
5172 /* Override any gcc2 internal prototype to avoid an error. */
5173 /* We use char because int might match the return type of a gcc2
5174 builtin and then its argument prototype would still apply. */
5181 if { (eval echo configure:5182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5183 eval "ac_cv_lib_$ac_lib_var=yes"
5185 echo "configure: failed program was:" >&5
5186 cat conftest.$ac_ext >&5
5188 eval "ac_cv_lib_$ac_lib_var=no"
5191 LIBS="$ac_save_LIBS"
5194 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5195 echo "$ac_t""yes" 1>&6
5196 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5197 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5198 cat >> confdefs.h <<EOF
5199 #define $ac_tr_lib 1
5205 echo "$ac_t""no" 1>&6
5211 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
5212 echo "configure:5213: checking for connect in -lsocket" >&5
5213 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5214 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5215 echo $ac_n "(cached) $ac_c" 1>&6
5217 ac_save_LIBS="$LIBS"
5218 LIBS="-lsocket $LIBS"
5219 cat > conftest.$ac_ext <<EOF
5220 #line 5221 "configure"
5221 #include "confdefs.h"
5222 /* Override any gcc2 internal prototype to avoid an error. */
5223 /* We use char because int might match the return type of a gcc2
5224 builtin and then its argument prototype would still apply. */
5231 if { (eval echo configure:5232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5233 eval "ac_cv_lib_$ac_lib_var=yes"
5235 echo "configure: failed program was:" >&5
5236 cat conftest.$ac_ext >&5
5238 eval "ac_cv_lib_$ac_lib_var=no"
5241 LIBS="$ac_save_LIBS"
5244 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5245 echo "$ac_t""yes" 1>&6
5246 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5247 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5248 cat >> confdefs.h <<EOF
5249 #define $ac_tr_lib 1
5252 LIBS="-lsocket $LIBS"
5255 echo "$ac_t""no" 1>&6
5261 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
5262 echo "configure:5263: checking for connect in -linet" >&5
5263 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
5264 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5265 echo $ac_n "(cached) $ac_c" 1>&6
5267 ac_save_LIBS="$LIBS"
5269 cat > conftest.$ac_ext <<EOF
5270 #line 5271 "configure"
5271 #include "confdefs.h"
5272 /* Override any gcc2 internal prototype to avoid an error. */
5273 /* We use char because int might match the return type of a gcc2
5274 builtin and then its argument prototype would still apply. */
5281 if { (eval echo configure:5282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5283 eval "ac_cv_lib_$ac_lib_var=yes"
5285 echo "configure: failed program was:" >&5
5286 cat conftest.$ac_ext >&5
5288 eval "ac_cv_lib_$ac_lib_var=no"
5291 LIBS="$ac_save_LIBS"
5294 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5295 echo "$ac_t""yes" 1>&6
5296 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5297 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5298 cat >> confdefs.h <<EOF
5299 #define $ac_tr_lib 1
5305 echo "$ac_t""no" 1>&6
5309 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
5310 test x"$ac_cv_lib_inet_connect" = x"yes"; then
5311 # ac_cv_func_connect=yes
5312 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
5313 cat >> confdefs.h <<\EOF
5314 #define HAVE_CONNECT 1
5320 ###############################################
5321 # test for where we get get_yp_default_domain() from
5322 for ac_func in yp_get_default_domain
5324 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5325 echo "configure:5326: checking for $ac_func" >&5
5326 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5327 echo $ac_n "(cached) $ac_c" 1>&6
5329 cat > conftest.$ac_ext <<EOF
5330 #line 5331 "configure"
5331 #include "confdefs.h"
5332 /* System header to define __stub macros and hopefully few prototypes,
5333 which can conflict with char $ac_func(); below. */
5335 /* Override any gcc2 internal prototype to avoid an error. */
5336 /* We use char because int might match the return type of a gcc2
5337 builtin and then its argument prototype would still apply. */
5342 /* The GNU C library defines this for functions which it implements
5343 to always fail with ENOSYS. Some functions are actually named
5344 something starting with __ and the normal name is an alias. */
5345 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5353 if { (eval echo configure:5354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5355 eval "ac_cv_func_$ac_func=yes"
5357 echo "configure: failed program was:" >&5
5358 cat conftest.$ac_ext >&5
5360 eval "ac_cv_func_$ac_func=no"
5365 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5366 echo "$ac_t""yes" 1>&6
5367 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5368 cat >> confdefs.h <<EOF
5369 #define $ac_tr_func 1
5373 echo "$ac_t""no" 1>&6
5377 if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then
5378 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
5379 echo "configure:5380: checking for yp_get_default_domain in -lnsl" >&5
5380 ac_lib_var=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
5381 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5382 echo $ac_n "(cached) $ac_c" 1>&6
5384 ac_save_LIBS="$LIBS"
5386 cat > conftest.$ac_ext <<EOF
5387 #line 5388 "configure"
5388 #include "confdefs.h"
5389 /* Override any gcc2 internal prototype to avoid an error. */
5390 /* We use char because int might match the return type of a gcc2
5391 builtin and then its argument prototype would still apply. */
5392 char yp_get_default_domain();
5395 yp_get_default_domain()
5398 if { (eval echo configure:5399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5400 eval "ac_cv_lib_$ac_lib_var=yes"
5402 echo "configure: failed program was:" >&5
5403 cat conftest.$ac_ext >&5
5405 eval "ac_cv_lib_$ac_lib_var=no"
5408 LIBS="$ac_save_LIBS"
5411 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5412 echo "$ac_t""yes" 1>&6
5414 cat >> confdefs.h <<\EOF
5415 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
5419 echo "$ac_t""no" 1>&6
5424 # Check if we have execl, if not we need to compile smbrun.
5425 for ac_func in execl
5427 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5428 echo "configure:5429: checking for $ac_func" >&5
5429 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5430 echo $ac_n "(cached) $ac_c" 1>&6
5432 cat > conftest.$ac_ext <<EOF
5433 #line 5434 "configure"
5434 #include "confdefs.h"
5435 /* System header to define __stub macros and hopefully few prototypes,
5436 which can conflict with char $ac_func(); below. */
5438 /* Override any gcc2 internal prototype to avoid an error. */
5439 /* We use char because int might match the return type of a gcc2
5440 builtin and then its argument prototype would still apply. */
5445 /* The GNU C library defines this for functions which it implements
5446 to always fail with ENOSYS. Some functions are actually named
5447 something starting with __ and the normal name is an alias. */
5448 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5456 if { (eval echo configure:5457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5458 eval "ac_cv_func_$ac_func=yes"
5460 echo "configure: failed program was:" >&5
5461 cat conftest.$ac_ext >&5
5463 eval "ac_cv_func_$ac_func=no"
5468 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5469 echo "$ac_t""yes" 1>&6
5470 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5471 cat >> confdefs.h <<EOF
5472 #define $ac_tr_func 1
5476 echo "$ac_t""no" 1>&6
5480 if test x"$ac_cv_func_execl" = x"no"; then
5481 RUNPROG="bin/smbrun"
5486 for ac_func in dlopen dlclose dlsym dlerror waitpid getcwd strdup strndup strnlen strtoul strerror chown fchown chmod fchmod chroot link mknod mknod64
5488 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5489 echo "configure:5490: checking for $ac_func" >&5
5490 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5491 echo $ac_n "(cached) $ac_c" 1>&6
5493 cat > conftest.$ac_ext <<EOF
5494 #line 5495 "configure"
5495 #include "confdefs.h"
5496 /* System header to define __stub macros and hopefully few prototypes,
5497 which can conflict with char $ac_func(); below. */
5499 /* Override any gcc2 internal prototype to avoid an error. */
5500 /* We use char because int might match the return type of a gcc2
5501 builtin and then its argument prototype would still apply. */
5506 /* The GNU C library defines this for functions which it implements
5507 to always fail with ENOSYS. Some functions are actually named
5508 something starting with __ and the normal name is an alias. */
5509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5517 if { (eval echo configure:5518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5519 eval "ac_cv_func_$ac_func=yes"
5521 echo "configure: failed program was:" >&5
5522 cat conftest.$ac_ext >&5
5524 eval "ac_cv_func_$ac_func=no"
5529 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5530 echo "$ac_t""yes" 1>&6
5531 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5532 cat >> confdefs.h <<EOF
5533 #define $ac_tr_func 1
5537 echo "$ac_t""no" 1>&6
5541 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset strlcpy strlcat setpgid
5543 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5544 echo "configure:5545: checking for $ac_func" >&5
5545 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5546 echo $ac_n "(cached) $ac_c" 1>&6
5548 cat > conftest.$ac_ext <<EOF
5549 #line 5550 "configure"
5550 #include "confdefs.h"
5551 /* System header to define __stub macros and hopefully few prototypes,
5552 which can conflict with char $ac_func(); below. */
5554 /* Override any gcc2 internal prototype to avoid an error. */
5555 /* We use char because int might match the return type of a gcc2
5556 builtin and then its argument prototype would still apply. */
5561 /* The GNU C library defines this for functions which it implements
5562 to always fail with ENOSYS. Some functions are actually named
5563 something starting with __ and the normal name is an alias. */
5564 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5572 if { (eval echo configure:5573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5574 eval "ac_cv_func_$ac_func=yes"
5576 echo "configure: failed program was:" >&5
5577 cat conftest.$ac_ext >&5
5579 eval "ac_cv_func_$ac_func=no"
5584 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5585 echo "$ac_t""yes" 1>&6
5586 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5587 cat >> confdefs.h <<EOF
5588 #define $ac_tr_func 1
5592 echo "$ac_t""no" 1>&6
5596 for ac_func in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5598 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5599 echo "configure:5600: checking for $ac_func" >&5
5600 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5601 echo $ac_n "(cached) $ac_c" 1>&6
5603 cat > conftest.$ac_ext <<EOF
5604 #line 5605 "configure"
5605 #include "confdefs.h"
5606 /* System header to define __stub macros and hopefully few prototypes,
5607 which can conflict with char $ac_func(); below. */
5609 /* Override any gcc2 internal prototype to avoid an error. */
5610 /* We use char because int might match the return type of a gcc2
5611 builtin and then its argument prototype would still apply. */
5616 /* The GNU C library defines this for functions which it implements
5617 to always fail with ENOSYS. Some functions are actually named
5618 something starting with __ and the normal name is an alias. */
5619 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5627 if { (eval echo configure:5628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5629 eval "ac_cv_func_$ac_func=yes"
5631 echo "configure: failed program was:" >&5
5632 cat conftest.$ac_ext >&5
5634 eval "ac_cv_func_$ac_func=no"
5639 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5640 echo "$ac_t""yes" 1>&6
5641 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5642 cat >> confdefs.h <<EOF
5643 #define $ac_tr_func 1
5647 echo "$ac_t""no" 1>&6
5651 for ac_func in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
5653 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5654 echo "configure:5655: checking for $ac_func" >&5
5655 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5656 echo $ac_n "(cached) $ac_c" 1>&6
5658 cat > conftest.$ac_ext <<EOF
5659 #line 5660 "configure"
5660 #include "confdefs.h"
5661 /* System header to define __stub macros and hopefully few prototypes,
5662 which can conflict with char $ac_func(); below. */
5664 /* Override any gcc2 internal prototype to avoid an error. */
5665 /* We use char because int might match the return type of a gcc2
5666 builtin and then its argument prototype would still apply. */
5671 /* The GNU C library defines this for functions which it implements
5672 to always fail with ENOSYS. Some functions are actually named
5673 something starting with __ and the normal name is an alias. */
5674 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5682 if { (eval echo configure:5683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5684 eval "ac_cv_func_$ac_func=yes"
5686 echo "configure: failed program was:" >&5
5687 cat conftest.$ac_ext >&5
5689 eval "ac_cv_func_$ac_func=no"
5694 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5695 echo "$ac_t""yes" 1>&6
5696 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5697 cat >> confdefs.h <<EOF
5698 #define $ac_tr_func 1
5702 echo "$ac_t""no" 1>&6
5706 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf realpath
5708 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5709 echo "configure:5710: checking for $ac_func" >&5
5710 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5711 echo $ac_n "(cached) $ac_c" 1>&6
5713 cat > conftest.$ac_ext <<EOF
5714 #line 5715 "configure"
5715 #include "confdefs.h"
5716 /* System header to define __stub macros and hopefully few prototypes,
5717 which can conflict with char $ac_func(); below. */
5719 /* Override any gcc2 internal prototype to avoid an error. */
5720 /* We use char because int might match the return type of a gcc2
5721 builtin and then its argument prototype would still apply. */
5726 /* The GNU C library defines this for functions which it implements
5727 to always fail with ENOSYS. Some functions are actually named
5728 something starting with __ and the normal name is an alias. */
5729 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5737 if { (eval echo configure:5738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5739 eval "ac_cv_func_$ac_func=yes"
5741 echo "configure: failed program was:" >&5
5742 cat conftest.$ac_ext >&5
5744 eval "ac_cv_func_$ac_func=no"
5749 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5750 echo "$ac_t""yes" 1>&6
5751 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5752 cat >> confdefs.h <<EOF
5753 #define $ac_tr_func 1
5757 echo "$ac_t""no" 1>&6
5761 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5763 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5764 echo "configure:5765: checking for $ac_func" >&5
5765 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5766 echo $ac_n "(cached) $ac_c" 1>&6
5768 cat > conftest.$ac_ext <<EOF
5769 #line 5770 "configure"
5770 #include "confdefs.h"
5771 /* System header to define __stub macros and hopefully few prototypes,
5772 which can conflict with char $ac_func(); below. */
5774 /* Override any gcc2 internal prototype to avoid an error. */
5775 /* We use char because int might match the return type of a gcc2
5776 builtin and then its argument prototype would still apply. */
5781 /* The GNU C library defines this for functions which it implements
5782 to always fail with ENOSYS. Some functions are actually named
5783 something starting with __ and the normal name is an alias. */
5784 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5792 if { (eval echo configure:5793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5794 eval "ac_cv_func_$ac_func=yes"
5796 echo "configure: failed program was:" >&5
5797 cat conftest.$ac_ext >&5
5799 eval "ac_cv_func_$ac_func=no"
5804 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5805 echo "$ac_t""yes" 1>&6
5806 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5807 cat >> confdefs.h <<EOF
5808 #define $ac_tr_func 1
5812 echo "$ac_t""no" 1>&6
5816 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5818 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5819 echo "configure:5820: checking for $ac_func" >&5
5820 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5821 echo $ac_n "(cached) $ac_c" 1>&6
5823 cat > conftest.$ac_ext <<EOF
5824 #line 5825 "configure"
5825 #include "confdefs.h"
5826 /* System header to define __stub macros and hopefully few prototypes,
5827 which can conflict with char $ac_func(); below. */
5829 /* Override any gcc2 internal prototype to avoid an error. */
5830 /* We use char because int might match the return type of a gcc2
5831 builtin and then its argument prototype would still apply. */
5836 /* The GNU C library defines this for functions which it implements
5837 to always fail with ENOSYS. Some functions are actually named
5838 something starting with __ and the normal name is an alias. */
5839 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5847 if { (eval echo configure:5848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5849 eval "ac_cv_func_$ac_func=yes"
5851 echo "configure: failed program was:" >&5
5852 cat conftest.$ac_ext >&5
5854 eval "ac_cv_func_$ac_func=no"
5859 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5860 echo "$ac_t""yes" 1>&6
5861 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5862 cat >> confdefs.h <<EOF
5863 #define $ac_tr_func 1
5867 echo "$ac_t""no" 1>&6
5871 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5873 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5874 echo "configure:5875: checking for $ac_func" >&5
5875 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5876 echo $ac_n "(cached) $ac_c" 1>&6
5878 cat > conftest.$ac_ext <<EOF
5879 #line 5880 "configure"
5880 #include "confdefs.h"
5881 /* System header to define __stub macros and hopefully few prototypes,
5882 which can conflict with char $ac_func(); below. */
5884 /* Override any gcc2 internal prototype to avoid an error. */
5885 /* We use char because int might match the return type of a gcc2
5886 builtin and then its argument prototype would still apply. */
5891 /* The GNU C library defines this for functions which it implements
5892 to always fail with ENOSYS. Some functions are actually named
5893 something starting with __ and the normal name is an alias. */
5894 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5902 if { (eval echo configure:5903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5904 eval "ac_cv_func_$ac_func=yes"
5906 echo "configure: failed program was:" >&5
5907 cat conftest.$ac_ext >&5
5909 eval "ac_cv_func_$ac_func=no"
5914 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5915 echo "$ac_t""yes" 1>&6
5916 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5917 cat >> confdefs.h <<EOF
5918 #define $ac_tr_func 1
5922 echo "$ac_t""no" 1>&6
5926 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl symlink readlink
5928 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5929 echo "configure:5930: checking for $ac_func" >&5
5930 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5931 echo $ac_n "(cached) $ac_c" 1>&6
5933 cat > conftest.$ac_ext <<EOF
5934 #line 5935 "configure"
5935 #include "confdefs.h"
5936 /* System header to define __stub macros and hopefully few prototypes,
5937 which can conflict with char $ac_func(); below. */
5939 /* Override any gcc2 internal prototype to avoid an error. */
5940 /* We use char because int might match the return type of a gcc2
5941 builtin and then its argument prototype would still apply. */
5946 /* The GNU C library defines this for functions which it implements
5947 to always fail with ENOSYS. Some functions are actually named
5948 something starting with __ and the normal name is an alias. */
5949 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5957 if { (eval echo configure:5958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5959 eval "ac_cv_func_$ac_func=yes"
5961 echo "configure: failed program was:" >&5
5962 cat conftest.$ac_ext >&5
5964 eval "ac_cv_func_$ac_func=no"
5969 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5970 echo "$ac_t""yes" 1>&6
5971 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5972 cat >> confdefs.h <<EOF
5973 #define $ac_tr_func 1
5977 echo "$ac_t""no" 1>&6
5981 for ac_func in syslog vsyslog getgrouplist
5983 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5984 echo "configure:5985: checking for $ac_func" >&5
5985 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5986 echo $ac_n "(cached) $ac_c" 1>&6
5988 cat > conftest.$ac_ext <<EOF
5989 #line 5990 "configure"
5990 #include "confdefs.h"
5991 /* System header to define __stub macros and hopefully few prototypes,
5992 which can conflict with char $ac_func(); below. */
5994 /* Override any gcc2 internal prototype to avoid an error. */
5995 /* We use char because int might match the return type of a gcc2
5996 builtin and then its argument prototype would still apply. */
6001 /* The GNU C library defines this for functions which it implements
6002 to always fail with ENOSYS. Some functions are actually named
6003 something starting with __ and the normal name is an alias. */
6004 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6012 if { (eval echo configure:6013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6014 eval "ac_cv_func_$ac_func=yes"
6016 echo "configure: failed program was:" >&5
6017 cat conftest.$ac_ext >&5
6019 eval "ac_cv_func_$ac_func=no"
6024 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6025 echo "$ac_t""yes" 1>&6
6026 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6027 cat >> confdefs.h <<EOF
6028 #define $ac_tr_func 1
6032 echo "$ac_t""no" 1>&6
6036 # setbuffer is needed for smbtorture
6037 for ac_func in setbuffer
6039 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6040 echo "configure:6041: checking for $ac_func" >&5
6041 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6042 echo $ac_n "(cached) $ac_c" 1>&6
6044 cat > conftest.$ac_ext <<EOF
6045 #line 6046 "configure"
6046 #include "confdefs.h"
6047 /* System header to define __stub macros and hopefully few prototypes,
6048 which can conflict with char $ac_func(); below. */
6050 /* Override any gcc2 internal prototype to avoid an error. */
6051 /* We use char because int might match the return type of a gcc2
6052 builtin and then its argument prototype would still apply. */
6057 /* The GNU C library defines this for functions which it implements
6058 to always fail with ENOSYS. Some functions are actually named
6059 something starting with __ and the normal name is an alias. */
6060 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6068 if { (eval echo configure:6069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6070 eval "ac_cv_func_$ac_func=yes"
6072 echo "configure: failed program was:" >&5
6073 cat conftest.$ac_ext >&5
6075 eval "ac_cv_func_$ac_func=no"
6080 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6081 echo "$ac_t""yes" 1>&6
6082 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6083 cat >> confdefs.h <<EOF
6084 #define $ac_tr_func 1
6088 echo "$ac_t""no" 1>&6
6093 # syscall() is needed for smbwrapper.
6094 for ac_func in syscall
6096 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6097 echo "configure:6098: checking for $ac_func" >&5
6098 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6099 echo $ac_n "(cached) $ac_c" 1>&6
6101 cat > conftest.$ac_ext <<EOF
6102 #line 6103 "configure"
6103 #include "confdefs.h"
6104 /* System header to define __stub macros and hopefully few prototypes,
6105 which can conflict with char $ac_func(); below. */
6107 /* Override any gcc2 internal prototype to avoid an error. */
6108 /* We use char because int might match the return type of a gcc2
6109 builtin and then its argument prototype would still apply. */
6114 /* The GNU C library defines this for functions which it implements
6115 to always fail with ENOSYS. Some functions are actually named
6116 something starting with __ and the normal name is an alias. */
6117 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6125 if { (eval echo configure:6126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6127 eval "ac_cv_func_$ac_func=yes"
6129 echo "configure: failed program was:" >&5
6130 cat conftest.$ac_ext >&5
6132 eval "ac_cv_func_$ac_func=no"
6137 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6138 echo "$ac_t""yes" 1>&6
6139 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6140 cat >> confdefs.h <<EOF
6141 #define $ac_tr_func 1
6145 echo "$ac_t""no" 1>&6
6150 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
6152 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6153 echo "configure:6154: checking for $ac_func" >&5
6154 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6155 echo $ac_n "(cached) $ac_c" 1>&6
6157 cat > conftest.$ac_ext <<EOF
6158 #line 6159 "configure"
6159 #include "confdefs.h"
6160 /* System header to define __stub macros and hopefully few prototypes,
6161 which can conflict with char $ac_func(); below. */
6163 /* Override any gcc2 internal prototype to avoid an error. */
6164 /* We use char because int might match the return type of a gcc2
6165 builtin and then its argument prototype would still apply. */
6170 /* The GNU C library defines this for functions which it implements
6171 to always fail with ENOSYS. Some functions are actually named
6172 something starting with __ and the normal name is an alias. */
6173 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6181 if { (eval echo configure:6182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6183 eval "ac_cv_func_$ac_func=yes"
6185 echo "configure: failed program was:" >&5
6186 cat conftest.$ac_ext >&5
6188 eval "ac_cv_func_$ac_func=no"
6193 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6194 echo "$ac_t""yes" 1>&6
6195 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6196 cat >> confdefs.h <<EOF
6197 #define $ac_tr_func 1
6201 echo "$ac_t""no" 1>&6
6205 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
6207 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6208 echo "configure:6209: checking for $ac_func" >&5
6209 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6210 echo $ac_n "(cached) $ac_c" 1>&6
6212 cat > conftest.$ac_ext <<EOF
6213 #line 6214 "configure"
6214 #include "confdefs.h"
6215 /* System header to define __stub macros and hopefully few prototypes,
6216 which can conflict with char $ac_func(); below. */
6218 /* Override any gcc2 internal prototype to avoid an error. */
6219 /* We use char because int might match the return type of a gcc2
6220 builtin and then its argument prototype would still apply. */
6225 /* The GNU C library defines this for functions which it implements
6226 to always fail with ENOSYS. Some functions are actually named
6227 something starting with __ and the normal name is an alias. */
6228 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6236 if { (eval echo configure:6237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6238 eval "ac_cv_func_$ac_func=yes"
6240 echo "configure: failed program was:" >&5
6241 cat conftest.$ac_ext >&5
6243 eval "ac_cv_func_$ac_func=no"
6248 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6249 echo "$ac_t""yes" 1>&6
6250 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6251 cat >> confdefs.h <<EOF
6252 #define $ac_tr_func 1
6256 echo "$ac_t""no" 1>&6
6260 for ac_func in __getcwd _getcwd
6262 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6263 echo "configure:6264: checking for $ac_func" >&5
6264 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6265 echo $ac_n "(cached) $ac_c" 1>&6
6267 cat > conftest.$ac_ext <<EOF
6268 #line 6269 "configure"
6269 #include "confdefs.h"
6270 /* System header to define __stub macros and hopefully few prototypes,
6271 which can conflict with char $ac_func(); below. */
6273 /* Override any gcc2 internal prototype to avoid an error. */
6274 /* We use char because int might match the return type of a gcc2
6275 builtin and then its argument prototype would still apply. */
6280 /* The GNU C library defines this for functions which it implements
6281 to always fail with ENOSYS. Some functions are actually named
6282 something starting with __ and the normal name is an alias. */
6283 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6291 if { (eval echo configure:6292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6293 eval "ac_cv_func_$ac_func=yes"
6295 echo "configure: failed program was:" >&5
6296 cat conftest.$ac_ext >&5
6298 eval "ac_cv_func_$ac_func=no"
6303 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6304 echo "$ac_t""yes" 1>&6
6305 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6306 cat >> confdefs.h <<EOF
6307 #define $ac_tr_func 1
6311 echo "$ac_t""no" 1>&6
6315 for ac_func in __xstat __fxstat __lxstat
6317 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6318 echo "configure:6319: checking for $ac_func" >&5
6319 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6320 echo $ac_n "(cached) $ac_c" 1>&6
6322 cat > conftest.$ac_ext <<EOF
6323 #line 6324 "configure"
6324 #include "confdefs.h"
6325 /* System header to define __stub macros and hopefully few prototypes,
6326 which can conflict with char $ac_func(); below. */
6328 /* Override any gcc2 internal prototype to avoid an error. */
6329 /* We use char because int might match the return type of a gcc2
6330 builtin and then its argument prototype would still apply. */
6335 /* The GNU C library defines this for functions which it implements
6336 to always fail with ENOSYS. Some functions are actually named
6337 something starting with __ and the normal name is an alias. */
6338 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6346 if { (eval echo configure:6347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6348 eval "ac_cv_func_$ac_func=yes"
6350 echo "configure: failed program was:" >&5
6351 cat conftest.$ac_ext >&5
6353 eval "ac_cv_func_$ac_func=no"
6358 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6359 echo "$ac_t""yes" 1>&6
6360 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6361 cat >> confdefs.h <<EOF
6362 #define $ac_tr_func 1
6366 echo "$ac_t""no" 1>&6
6370 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
6372 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6373 echo "configure:6374: checking for $ac_func" >&5
6374 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6375 echo $ac_n "(cached) $ac_c" 1>&6
6377 cat > conftest.$ac_ext <<EOF
6378 #line 6379 "configure"
6379 #include "confdefs.h"
6380 /* System header to define __stub macros and hopefully few prototypes,
6381 which can conflict with char $ac_func(); below. */
6383 /* Override any gcc2 internal prototype to avoid an error. */
6384 /* We use char because int might match the return type of a gcc2
6385 builtin and then its argument prototype would still apply. */
6390 /* The GNU C library defines this for functions which it implements
6391 to always fail with ENOSYS. Some functions are actually named
6392 something starting with __ and the normal name is an alias. */
6393 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6401 if { (eval echo configure:6402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6403 eval "ac_cv_func_$ac_func=yes"
6405 echo "configure: failed program was:" >&5
6406 cat conftest.$ac_ext >&5
6408 eval "ac_cv_func_$ac_func=no"
6413 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6414 echo "$ac_t""yes" 1>&6
6415 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6416 cat >> confdefs.h <<EOF
6417 #define $ac_tr_func 1
6421 echo "$ac_t""no" 1>&6
6425 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
6427 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6428 echo "configure:6429: checking for $ac_func" >&5
6429 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6430 echo $ac_n "(cached) $ac_c" 1>&6
6432 cat > conftest.$ac_ext <<EOF
6433 #line 6434 "configure"
6434 #include "confdefs.h"
6435 /* System header to define __stub macros and hopefully few prototypes,
6436 which can conflict with char $ac_func(); below. */
6438 /* Override any gcc2 internal prototype to avoid an error. */
6439 /* We use char because int might match the return type of a gcc2
6440 builtin and then its argument prototype would still apply. */
6445 /* The GNU C library defines this for functions which it implements
6446 to always fail with ENOSYS. Some functions are actually named
6447 something starting with __ and the normal name is an alias. */
6448 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6456 if { (eval echo configure:6457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6458 eval "ac_cv_func_$ac_func=yes"
6460 echo "configure: failed program was:" >&5
6461 cat conftest.$ac_ext >&5
6463 eval "ac_cv_func_$ac_func=no"
6468 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6469 echo "$ac_t""yes" 1>&6
6470 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6471 cat >> confdefs.h <<EOF
6472 #define $ac_tr_func 1
6476 echo "$ac_t""no" 1>&6
6480 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
6482 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6483 echo "configure:6484: checking for $ac_func" >&5
6484 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6485 echo $ac_n "(cached) $ac_c" 1>&6
6487 cat > conftest.$ac_ext <<EOF
6488 #line 6489 "configure"
6489 #include "confdefs.h"
6490 /* System header to define __stub macros and hopefully few prototypes,
6491 which can conflict with char $ac_func(); below. */
6493 /* Override any gcc2 internal prototype to avoid an error. */
6494 /* We use char because int might match the return type of a gcc2
6495 builtin and then its argument prototype would still apply. */
6500 /* The GNU C library defines this for functions which it implements
6501 to always fail with ENOSYS. Some functions are actually named
6502 something starting with __ and the normal name is an alias. */
6503 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6511 if { (eval echo configure:6512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6513 eval "ac_cv_func_$ac_func=yes"
6515 echo "configure: failed program was:" >&5
6516 cat conftest.$ac_ext >&5
6518 eval "ac_cv_func_$ac_func=no"
6523 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6524 echo "$ac_t""yes" 1>&6
6525 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6526 cat >> confdefs.h <<EOF
6527 #define $ac_tr_func 1
6531 echo "$ac_t""no" 1>&6
6535 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
6537 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6538 echo "configure:6539: checking for $ac_func" >&5
6539 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6540 echo $ac_n "(cached) $ac_c" 1>&6
6542 cat > conftest.$ac_ext <<EOF
6543 #line 6544 "configure"
6544 #include "confdefs.h"
6545 /* System header to define __stub macros and hopefully few prototypes,
6546 which can conflict with char $ac_func(); below. */
6548 /* Override any gcc2 internal prototype to avoid an error. */
6549 /* We use char because int might match the return type of a gcc2
6550 builtin and then its argument prototype would still apply. */
6555 /* The GNU C library defines this for functions which it implements
6556 to always fail with ENOSYS. Some functions are actually named
6557 something starting with __ and the normal name is an alias. */
6558 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6566 if { (eval echo configure:6567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6568 eval "ac_cv_func_$ac_func=yes"
6570 echo "configure: failed program was:" >&5
6571 cat conftest.$ac_ext >&5
6573 eval "ac_cv_func_$ac_func=no"
6578 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6579 echo "$ac_t""yes" 1>&6
6580 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6581 cat >> confdefs.h <<EOF
6582 #define $ac_tr_func 1
6586 echo "$ac_t""no" 1>&6
6590 for ac_func in _write __write _fork __fork
6592 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6593 echo "configure:6594: checking for $ac_func" >&5
6594 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6595 echo $ac_n "(cached) $ac_c" 1>&6
6597 cat > conftest.$ac_ext <<EOF
6598 #line 6599 "configure"
6599 #include "confdefs.h"
6600 /* System header to define __stub macros and hopefully few prototypes,
6601 which can conflict with char $ac_func(); below. */
6603 /* Override any gcc2 internal prototype to avoid an error. */
6604 /* We use char because int might match the return type of a gcc2
6605 builtin and then its argument prototype would still apply. */
6610 /* The GNU C library defines this for functions which it implements
6611 to always fail with ENOSYS. Some functions are actually named
6612 something starting with __ and the normal name is an alias. */
6613 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6621 if { (eval echo configure:6622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6623 eval "ac_cv_func_$ac_func=yes"
6625 echo "configure: failed program was:" >&5
6626 cat conftest.$ac_ext >&5
6628 eval "ac_cv_func_$ac_func=no"
6633 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6634 echo "$ac_t""yes" 1>&6
6635 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6636 cat >> confdefs.h <<EOF
6637 #define $ac_tr_func 1
6641 echo "$ac_t""no" 1>&6
6645 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6647 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6648 echo "configure:6649: checking for $ac_func" >&5
6649 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6650 echo $ac_n "(cached) $ac_c" 1>&6
6652 cat > conftest.$ac_ext <<EOF
6653 #line 6654 "configure"
6654 #include "confdefs.h"
6655 /* System header to define __stub macros and hopefully few prototypes,
6656 which can conflict with char $ac_func(); below. */
6658 /* Override any gcc2 internal prototype to avoid an error. */
6659 /* We use char because int might match the return type of a gcc2
6660 builtin and then its argument prototype would still apply. */
6665 /* The GNU C library defines this for functions which it implements
6666 to always fail with ENOSYS. Some functions are actually named
6667 something starting with __ and the normal name is an alias. */
6668 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6676 if { (eval echo configure:6677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6678 eval "ac_cv_func_$ac_func=yes"
6680 echo "configure: failed program was:" >&5
6681 cat conftest.$ac_ext >&5
6683 eval "ac_cv_func_$ac_func=no"
6688 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6689 echo "$ac_t""yes" 1>&6
6690 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6691 cat >> confdefs.h <<EOF
6692 #define $ac_tr_func 1
6696 echo "$ac_t""no" 1>&6
6700 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6702 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6703 echo "configure:6704: checking for $ac_func" >&5
6704 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6705 echo $ac_n "(cached) $ac_c" 1>&6
6707 cat > conftest.$ac_ext <<EOF
6708 #line 6709 "configure"
6709 #include "confdefs.h"
6710 /* System header to define __stub macros and hopefully few prototypes,
6711 which can conflict with char $ac_func(); below. */
6713 /* Override any gcc2 internal prototype to avoid an error. */
6714 /* We use char because int might match the return type of a gcc2
6715 builtin and then its argument prototype would still apply. */
6720 /* The GNU C library defines this for functions which it implements
6721 to always fail with ENOSYS. Some functions are actually named
6722 something starting with __ and the normal name is an alias. */
6723 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6731 if { (eval echo configure:6732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6733 eval "ac_cv_func_$ac_func=yes"
6735 echo "configure: failed program was:" >&5
6736 cat conftest.$ac_ext >&5
6738 eval "ac_cv_func_$ac_func=no"
6743 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6744 echo "$ac_t""yes" 1>&6
6745 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6746 cat >> confdefs.h <<EOF
6747 #define $ac_tr_func 1
6751 echo "$ac_t""no" 1>&6
6755 for ac_func in pread _pread __pread pread64 _pread64 __pread64
6757 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6758 echo "configure:6759: checking for $ac_func" >&5
6759 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6760 echo $ac_n "(cached) $ac_c" 1>&6
6762 cat > conftest.$ac_ext <<EOF
6763 #line 6764 "configure"
6764 #include "confdefs.h"
6765 /* System header to define __stub macros and hopefully few prototypes,
6766 which can conflict with char $ac_func(); below. */
6768 /* Override any gcc2 internal prototype to avoid an error. */
6769 /* We use char because int might match the return type of a gcc2
6770 builtin and then its argument prototype would still apply. */
6775 /* The GNU C library defines this for functions which it implements
6776 to always fail with ENOSYS. Some functions are actually named
6777 something starting with __ and the normal name is an alias. */
6778 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6786 if { (eval echo configure:6787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6788 eval "ac_cv_func_$ac_func=yes"
6790 echo "configure: failed program was:" >&5
6791 cat conftest.$ac_ext >&5
6793 eval "ac_cv_func_$ac_func=no"
6798 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6799 echo "$ac_t""yes" 1>&6
6800 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6801 cat >> confdefs.h <<EOF
6802 #define $ac_tr_func 1
6806 echo "$ac_t""no" 1>&6
6810 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6812 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6813 echo "configure:6814: checking for $ac_func" >&5
6814 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6815 echo $ac_n "(cached) $ac_c" 1>&6
6817 cat > conftest.$ac_ext <<EOF
6818 #line 6819 "configure"
6819 #include "confdefs.h"
6820 /* System header to define __stub macros and hopefully few prototypes,
6821 which can conflict with char $ac_func(); below. */
6823 /* Override any gcc2 internal prototype to avoid an error. */
6824 /* We use char because int might match the return type of a gcc2
6825 builtin and then its argument prototype would still apply. */
6830 /* The GNU C library defines this for functions which it implements
6831 to always fail with ENOSYS. Some functions are actually named
6832 something starting with __ and the normal name is an alias. */
6833 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6841 if { (eval echo configure:6842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6843 eval "ac_cv_func_$ac_func=yes"
6845 echo "configure: failed program was:" >&5
6846 cat conftest.$ac_ext >&5
6848 eval "ac_cv_func_$ac_func=no"
6853 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6854 echo "$ac_t""yes" 1>&6
6855 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6856 cat >> confdefs.h <<EOF
6857 #define $ac_tr_func 1
6861 echo "$ac_t""no" 1>&6
6865 for ac_func in open64 _open64 __open64 creat64
6867 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6868 echo "configure:6869: checking for $ac_func" >&5
6869 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6870 echo $ac_n "(cached) $ac_c" 1>&6
6872 cat > conftest.$ac_ext <<EOF
6873 #line 6874 "configure"
6874 #include "confdefs.h"
6875 /* System header to define __stub macros and hopefully few prototypes,
6876 which can conflict with char $ac_func(); below. */
6878 /* Override any gcc2 internal prototype to avoid an error. */
6879 /* We use char because int might match the return type of a gcc2
6880 builtin and then its argument prototype would still apply. */
6885 /* The GNU C library defines this for functions which it implements
6886 to always fail with ENOSYS. Some functions are actually named
6887 something starting with __ and the normal name is an alias. */
6888 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6896 if { (eval echo configure:6897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6898 eval "ac_cv_func_$ac_func=yes"
6900 echo "configure: failed program was:" >&5
6901 cat conftest.$ac_ext >&5
6903 eval "ac_cv_func_$ac_func=no"
6908 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6909 echo "$ac_t""yes" 1>&6
6910 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6911 cat >> confdefs.h <<EOF
6912 #define $ac_tr_func 1
6916 echo "$ac_t""no" 1>&6
6922 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6925 if test x$ac_cv_func_stat64 = xno ; then
6926 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6927 echo "configure:6928: checking for stat64 in <sys/stat.h>" >&5
6928 cat > conftest.$ac_ext <<EOF
6929 #line 6930 "configure"
6930 #include "confdefs.h"
6932 #if defined(HAVE_UNISTD_H)
6935 #include <sys/stat.h>
6938 struct stat64 st64; exit(stat64(".",&st64));
6941 if { (eval echo configure:6942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6943 ac_cv_func_stat64=yes
6945 echo "configure: failed program was:" >&5
6946 cat conftest.$ac_ext >&5
6949 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6950 if test x$ac_cv_func_stat64 = xyes ; then
6951 cat >> confdefs.h <<\EOF
6952 #define HAVE_STAT64 1
6958 if test x$ac_cv_func_lstat64 = xno ; then
6959 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6960 echo "configure:6961: checking for lstat64 in <sys/stat.h>" >&5
6961 cat > conftest.$ac_ext <<EOF
6962 #line 6963 "configure"
6963 #include "confdefs.h"
6965 #if defined(HAVE_UNISTD_H)
6968 #include <sys/stat.h>
6971 struct stat64 st64; exit(lstat64(".",&st64));
6974 if { (eval echo configure:6975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6976 ac_cv_func_lstat64=yes
6978 echo "configure: failed program was:" >&5
6979 cat conftest.$ac_ext >&5
6982 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6983 if test x$ac_cv_func_lstat64 = xyes ; then
6984 cat >> confdefs.h <<\EOF
6985 #define HAVE_LSTAT64 1
6991 if test x$ac_cv_func_fstat64 = xno ; then
6992 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6993 echo "configure:6994: checking for fstat64 in <sys/stat.h>" >&5
6994 cat > conftest.$ac_ext <<EOF
6995 #line 6996 "configure"
6996 #include "confdefs.h"
6998 #if defined(HAVE_UNISTD_H)
7001 #include <sys/stat.h>
7004 struct stat64 st64; exit(fstat64(0,&st64));
7007 if { (eval echo configure:7008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7009 ac_cv_func_fstat64=yes
7011 echo "configure: failed program was:" >&5
7012 cat conftest.$ac_ext >&5
7015 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
7016 if test x$ac_cv_func_fstat64 = xyes ; then
7017 cat >> confdefs.h <<\EOF
7018 #define HAVE_FSTAT64 1
7024 #####################################
7025 # we might need the resolv library on some systems
7026 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
7027 echo "configure:7028: checking for dn_expand in -lresolv" >&5
7028 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
7029 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7030 echo $ac_n "(cached) $ac_c" 1>&6
7032 ac_save_LIBS="$LIBS"
7033 LIBS="-lresolv $LIBS"
7034 cat > conftest.$ac_ext <<EOF
7035 #line 7036 "configure"
7036 #include "confdefs.h"
7037 /* Override any gcc2 internal prototype to avoid an error. */
7038 /* We use char because int might match the return type of a gcc2
7039 builtin and then its argument prototype would still apply. */
7046 if { (eval echo configure:7047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7048 eval "ac_cv_lib_$ac_lib_var=yes"
7050 echo "configure: failed program was:" >&5
7051 cat conftest.$ac_ext >&5
7053 eval "ac_cv_lib_$ac_lib_var=no"
7056 LIBS="$ac_save_LIBS"
7059 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7060 echo "$ac_t""yes" 1>&6
7061 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7062 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7063 cat >> confdefs.h <<EOF
7064 #define $ac_tr_lib 1
7067 LIBS="-lresolv $LIBS"
7070 echo "$ac_t""no" 1>&6
7075 # Check for the functions putprpwnam, set_auth_parameters,
7076 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
7077 # Needed for OSF1 and HPUX.
7081 *-lsecurity*) for ac_func in putprpwnam
7083 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7084 echo "configure:7085: checking for $ac_func" >&5
7085 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7086 echo $ac_n "(cached) $ac_c" 1>&6
7088 cat > conftest.$ac_ext <<EOF
7089 #line 7090 "configure"
7090 #include "confdefs.h"
7091 /* System header to define __stub macros and hopefully few prototypes,
7092 which can conflict with char $ac_func(); below. */
7094 /* Override any gcc2 internal prototype to avoid an error. */
7095 /* We use char because int might match the return type of a gcc2
7096 builtin and then its argument prototype would still apply. */
7101 /* The GNU C library defines this for functions which it implements
7102 to always fail with ENOSYS. Some functions are actually named
7103 something starting with __ and the normal name is an alias. */
7104 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7112 if { (eval echo configure:7113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7114 eval "ac_cv_func_$ac_func=yes"
7116 echo "configure: failed program was:" >&5
7117 cat conftest.$ac_ext >&5
7119 eval "ac_cv_func_$ac_func=no"
7124 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7125 echo "$ac_t""yes" 1>&6
7126 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7127 cat >> confdefs.h <<EOF
7128 #define $ac_tr_func 1
7132 echo "$ac_t""no" 1>&6
7136 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
7137 echo "configure:7138: checking for putprpwnam in -lsecurity" >&5
7138 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
7139 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7140 echo $ac_n "(cached) $ac_c" 1>&6
7142 ac_save_LIBS="$LIBS"
7143 LIBS="-lsecurity $LIBS"
7144 cat > conftest.$ac_ext <<EOF
7145 #line 7146 "configure"
7146 #include "confdefs.h"
7147 /* Override any gcc2 internal prototype to avoid an error. */
7148 /* We use char because int might match the return type of a gcc2
7149 builtin and then its argument prototype would still apply. */
7156 if { (eval echo configure:7157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7158 eval "ac_cv_lib_$ac_lib_var=yes"
7160 echo "configure: failed program was:" >&5
7161 cat conftest.$ac_ext >&5
7163 eval "ac_cv_lib_$ac_lib_var=no"
7166 LIBS="$ac_save_LIBS"
7169 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7170 echo "$ac_t""yes" 1>&6
7171 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7172 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7173 cat >> confdefs.h <<EOF
7174 #define $ac_tr_lib 1
7177 LIBS="-lsecurity $LIBS"
7180 echo "$ac_t""no" 1>&6
7183 for ac_func in putprpwnam
7185 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7186 echo "configure:7187: checking for $ac_func" >&5
7187 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7188 echo $ac_n "(cached) $ac_c" 1>&6
7190 cat > conftest.$ac_ext <<EOF
7191 #line 7192 "configure"
7192 #include "confdefs.h"
7193 /* System header to define __stub macros and hopefully few prototypes,
7194 which can conflict with char $ac_func(); below. */
7196 /* Override any gcc2 internal prototype to avoid an error. */
7197 /* We use char because int might match the return type of a gcc2
7198 builtin and then its argument prototype would still apply. */
7203 /* The GNU C library defines this for functions which it implements
7204 to always fail with ENOSYS. Some functions are actually named
7205 something starting with __ and the normal name is an alias. */
7206 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7214 if { (eval echo configure:7215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7216 eval "ac_cv_func_$ac_func=yes"
7218 echo "configure: failed program was:" >&5
7219 cat conftest.$ac_ext >&5
7221 eval "ac_cv_func_$ac_func=no"
7226 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7227 echo "$ac_t""yes" 1>&6
7228 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7229 cat >> confdefs.h <<EOF
7230 #define $ac_tr_func 1
7234 echo "$ac_t""no" 1>&6
7242 *-lsec*) for ac_func in putprpwnam
7244 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7245 echo "configure:7246: checking for $ac_func" >&5
7246 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7247 echo $ac_n "(cached) $ac_c" 1>&6
7249 cat > conftest.$ac_ext <<EOF
7250 #line 7251 "configure"
7251 #include "confdefs.h"
7252 /* System header to define __stub macros and hopefully few prototypes,
7253 which can conflict with char $ac_func(); below. */
7255 /* Override any gcc2 internal prototype to avoid an error. */
7256 /* We use char because int might match the return type of a gcc2
7257 builtin and then its argument prototype would still apply. */
7262 /* The GNU C library defines this for functions which it implements
7263 to always fail with ENOSYS. Some functions are actually named
7264 something starting with __ and the normal name is an alias. */
7265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7273 if { (eval echo configure:7274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7275 eval "ac_cv_func_$ac_func=yes"
7277 echo "configure: failed program was:" >&5
7278 cat conftest.$ac_ext >&5
7280 eval "ac_cv_func_$ac_func=no"
7285 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7286 echo "$ac_t""yes" 1>&6
7287 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7288 cat >> confdefs.h <<EOF
7289 #define $ac_tr_func 1
7293 echo "$ac_t""no" 1>&6
7297 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
7298 echo "configure:7299: checking for putprpwnam in -lsec" >&5
7299 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
7300 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7301 echo $ac_n "(cached) $ac_c" 1>&6
7303 ac_save_LIBS="$LIBS"
7305 cat > conftest.$ac_ext <<EOF
7306 #line 7307 "configure"
7307 #include "confdefs.h"
7308 /* Override any gcc2 internal prototype to avoid an error. */
7309 /* We use char because int might match the return type of a gcc2
7310 builtin and then its argument prototype would still apply. */
7317 if { (eval echo configure:7318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7319 eval "ac_cv_lib_$ac_lib_var=yes"
7321 echo "configure: failed program was:" >&5
7322 cat conftest.$ac_ext >&5
7324 eval "ac_cv_lib_$ac_lib_var=no"
7327 LIBS="$ac_save_LIBS"
7330 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7331 echo "$ac_t""yes" 1>&6
7332 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7333 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7334 cat >> confdefs.h <<EOF
7335 #define $ac_tr_lib 1
7341 echo "$ac_t""no" 1>&6
7344 for ac_func in putprpwnam
7346 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7347 echo "configure:7348: checking for $ac_func" >&5
7348 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7349 echo $ac_n "(cached) $ac_c" 1>&6
7351 cat > conftest.$ac_ext <<EOF
7352 #line 7353 "configure"
7353 #include "confdefs.h"
7354 /* System header to define __stub macros and hopefully few prototypes,
7355 which can conflict with char $ac_func(); below. */
7357 /* Override any gcc2 internal prototype to avoid an error. */
7358 /* We use char because int might match the return type of a gcc2
7359 builtin and then its argument prototype would still apply. */
7364 /* The GNU C library defines this for functions which it implements
7365 to always fail with ENOSYS. Some functions are actually named
7366 something starting with __ and the normal name is an alias. */
7367 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7375 if { (eval echo configure:7376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7377 eval "ac_cv_func_$ac_func=yes"
7379 echo "configure: failed program was:" >&5
7380 cat conftest.$ac_ext >&5
7382 eval "ac_cv_func_$ac_func=no"
7387 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7388 echo "$ac_t""yes" 1>&6
7389 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7390 cat >> confdefs.h <<EOF
7391 #define $ac_tr_func 1
7395 echo "$ac_t""no" 1>&6
7404 *-lsecurity*) for ac_func in set_auth_parameters
7406 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7407 echo "configure:7408: checking for $ac_func" >&5
7408 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7409 echo $ac_n "(cached) $ac_c" 1>&6
7411 cat > conftest.$ac_ext <<EOF
7412 #line 7413 "configure"
7413 #include "confdefs.h"
7414 /* System header to define __stub macros and hopefully few prototypes,
7415 which can conflict with char $ac_func(); below. */
7417 /* Override any gcc2 internal prototype to avoid an error. */
7418 /* We use char because int might match the return type of a gcc2
7419 builtin and then its argument prototype would still apply. */
7424 /* The GNU C library defines this for functions which it implements
7425 to always fail with ENOSYS. Some functions are actually named
7426 something starting with __ and the normal name is an alias. */
7427 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7435 if { (eval echo configure:7436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7437 eval "ac_cv_func_$ac_func=yes"
7439 echo "configure: failed program was:" >&5
7440 cat conftest.$ac_ext >&5
7442 eval "ac_cv_func_$ac_func=no"
7447 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7448 echo "$ac_t""yes" 1>&6
7449 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7450 cat >> confdefs.h <<EOF
7451 #define $ac_tr_func 1
7455 echo "$ac_t""no" 1>&6
7459 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
7460 echo "configure:7461: checking for set_auth_parameters in -lsecurity" >&5
7461 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7462 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7463 echo $ac_n "(cached) $ac_c" 1>&6
7465 ac_save_LIBS="$LIBS"
7466 LIBS="-lsecurity $LIBS"
7467 cat > conftest.$ac_ext <<EOF
7468 #line 7469 "configure"
7469 #include "confdefs.h"
7470 /* Override any gcc2 internal prototype to avoid an error. */
7471 /* We use char because int might match the return type of a gcc2
7472 builtin and then its argument prototype would still apply. */
7473 char set_auth_parameters();
7476 set_auth_parameters()
7479 if { (eval echo configure:7480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7481 eval "ac_cv_lib_$ac_lib_var=yes"
7483 echo "configure: failed program was:" >&5
7484 cat conftest.$ac_ext >&5
7486 eval "ac_cv_lib_$ac_lib_var=no"
7489 LIBS="$ac_save_LIBS"
7492 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7493 echo "$ac_t""yes" 1>&6
7494 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7495 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7496 cat >> confdefs.h <<EOF
7497 #define $ac_tr_lib 1
7500 LIBS="-lsecurity $LIBS"
7503 echo "$ac_t""no" 1>&6
7506 for ac_func in set_auth_parameters
7508 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7509 echo "configure:7510: checking for $ac_func" >&5
7510 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7511 echo $ac_n "(cached) $ac_c" 1>&6
7513 cat > conftest.$ac_ext <<EOF
7514 #line 7515 "configure"
7515 #include "confdefs.h"
7516 /* System header to define __stub macros and hopefully few prototypes,
7517 which can conflict with char $ac_func(); below. */
7519 /* Override any gcc2 internal prototype to avoid an error. */
7520 /* We use char because int might match the return type of a gcc2
7521 builtin and then its argument prototype would still apply. */
7526 /* The GNU C library defines this for functions which it implements
7527 to always fail with ENOSYS. Some functions are actually named
7528 something starting with __ and the normal name is an alias. */
7529 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7537 if { (eval echo configure:7538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7539 eval "ac_cv_func_$ac_func=yes"
7541 echo "configure: failed program was:" >&5
7542 cat conftest.$ac_ext >&5
7544 eval "ac_cv_func_$ac_func=no"
7549 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7550 echo "$ac_t""yes" 1>&6
7551 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7552 cat >> confdefs.h <<EOF
7553 #define $ac_tr_func 1
7557 echo "$ac_t""no" 1>&6
7565 *-lsec*) for ac_func in set_auth_parameters
7567 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7568 echo "configure:7569: checking for $ac_func" >&5
7569 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7570 echo $ac_n "(cached) $ac_c" 1>&6
7572 cat > conftest.$ac_ext <<EOF
7573 #line 7574 "configure"
7574 #include "confdefs.h"
7575 /* System header to define __stub macros and hopefully few prototypes,
7576 which can conflict with char $ac_func(); below. */
7578 /* Override any gcc2 internal prototype to avoid an error. */
7579 /* We use char because int might match the return type of a gcc2
7580 builtin and then its argument prototype would still apply. */
7585 /* The GNU C library defines this for functions which it implements
7586 to always fail with ENOSYS. Some functions are actually named
7587 something starting with __ and the normal name is an alias. */
7588 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7596 if { (eval echo configure:7597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7598 eval "ac_cv_func_$ac_func=yes"
7600 echo "configure: failed program was:" >&5
7601 cat conftest.$ac_ext >&5
7603 eval "ac_cv_func_$ac_func=no"
7608 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7609 echo "$ac_t""yes" 1>&6
7610 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7611 cat >> confdefs.h <<EOF
7612 #define $ac_tr_func 1
7616 echo "$ac_t""no" 1>&6
7620 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7621 echo "configure:7622: checking for set_auth_parameters in -lsec" >&5
7622 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7623 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7624 echo $ac_n "(cached) $ac_c" 1>&6
7626 ac_save_LIBS="$LIBS"
7628 cat > conftest.$ac_ext <<EOF
7629 #line 7630 "configure"
7630 #include "confdefs.h"
7631 /* Override any gcc2 internal prototype to avoid an error. */
7632 /* We use char because int might match the return type of a gcc2
7633 builtin and then its argument prototype would still apply. */
7634 char set_auth_parameters();
7637 set_auth_parameters()
7640 if { (eval echo configure:7641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7642 eval "ac_cv_lib_$ac_lib_var=yes"
7644 echo "configure: failed program was:" >&5
7645 cat conftest.$ac_ext >&5
7647 eval "ac_cv_lib_$ac_lib_var=no"
7650 LIBS="$ac_save_LIBS"
7653 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7654 echo "$ac_t""yes" 1>&6
7655 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7656 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7657 cat >> confdefs.h <<EOF
7658 #define $ac_tr_lib 1
7664 echo "$ac_t""no" 1>&6
7667 for ac_func in set_auth_parameters
7669 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7670 echo "configure:7671: checking for $ac_func" >&5
7671 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7672 echo $ac_n "(cached) $ac_c" 1>&6
7674 cat > conftest.$ac_ext <<EOF
7675 #line 7676 "configure"
7676 #include "confdefs.h"
7677 /* System header to define __stub macros and hopefully few prototypes,
7678 which can conflict with char $ac_func(); below. */
7680 /* Override any gcc2 internal prototype to avoid an error. */
7681 /* We use char because int might match the return type of a gcc2
7682 builtin and then its argument prototype would still apply. */
7687 /* The GNU C library defines this for functions which it implements
7688 to always fail with ENOSYS. Some functions are actually named
7689 something starting with __ and the normal name is an alias. */
7690 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7698 if { (eval echo configure:7699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7700 eval "ac_cv_func_$ac_func=yes"
7702 echo "configure: failed program was:" >&5
7703 cat conftest.$ac_ext >&5
7705 eval "ac_cv_func_$ac_func=no"
7710 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7711 echo "$ac_t""yes" 1>&6
7712 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7713 cat >> confdefs.h <<EOF
7714 #define $ac_tr_func 1
7718 echo "$ac_t""no" 1>&6
7726 # UnixWare 7.x has its getspnam in -lgen
7728 *-lgen*) for ac_func in getspnam
7730 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7731 echo "configure:7732: checking for $ac_func" >&5
7732 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7733 echo $ac_n "(cached) $ac_c" 1>&6
7735 cat > conftest.$ac_ext <<EOF
7736 #line 7737 "configure"
7737 #include "confdefs.h"
7738 /* System header to define __stub macros and hopefully few prototypes,
7739 which can conflict with char $ac_func(); below. */
7741 /* Override any gcc2 internal prototype to avoid an error. */
7742 /* We use char because int might match the return type of a gcc2
7743 builtin and then its argument prototype would still apply. */
7748 /* The GNU C library defines this for functions which it implements
7749 to always fail with ENOSYS. Some functions are actually named
7750 something starting with __ and the normal name is an alias. */
7751 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7759 if { (eval echo configure:7760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7761 eval "ac_cv_func_$ac_func=yes"
7763 echo "configure: failed program was:" >&5
7764 cat conftest.$ac_ext >&5
7766 eval "ac_cv_func_$ac_func=no"
7771 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7772 echo "$ac_t""yes" 1>&6
7773 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7774 cat >> confdefs.h <<EOF
7775 #define $ac_tr_func 1
7779 echo "$ac_t""no" 1>&6
7783 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7784 echo "configure:7785: checking for getspnam in -lgen" >&5
7785 ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7786 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7787 echo $ac_n "(cached) $ac_c" 1>&6
7789 ac_save_LIBS="$LIBS"
7791 cat > conftest.$ac_ext <<EOF
7792 #line 7793 "configure"
7793 #include "confdefs.h"
7794 /* Override any gcc2 internal prototype to avoid an error. */
7795 /* We use char because int might match the return type of a gcc2
7796 builtin and then its argument prototype would still apply. */
7803 if { (eval echo configure:7804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7805 eval "ac_cv_lib_$ac_lib_var=yes"
7807 echo "configure: failed program was:" >&5
7808 cat conftest.$ac_ext >&5
7810 eval "ac_cv_lib_$ac_lib_var=no"
7813 LIBS="$ac_save_LIBS"
7816 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7817 echo "$ac_t""yes" 1>&6
7818 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7819 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7820 cat >> confdefs.h <<EOF
7821 #define $ac_tr_lib 1
7827 echo "$ac_t""no" 1>&6
7830 for ac_func in getspnam
7832 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7833 echo "configure:7834: checking for $ac_func" >&5
7834 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7835 echo $ac_n "(cached) $ac_c" 1>&6
7837 cat > conftest.$ac_ext <<EOF
7838 #line 7839 "configure"
7839 #include "confdefs.h"
7840 /* System header to define __stub macros and hopefully few prototypes,
7841 which can conflict with char $ac_func(); below. */
7843 /* Override any gcc2 internal prototype to avoid an error. */
7844 /* We use char because int might match the return type of a gcc2
7845 builtin and then its argument prototype would still apply. */
7850 /* The GNU C library defines this for functions which it implements
7851 to always fail with ENOSYS. Some functions are actually named
7852 something starting with __ and the normal name is an alias. */
7853 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7861 if { (eval echo configure:7862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7863 eval "ac_cv_func_$ac_func=yes"
7865 echo "configure: failed program was:" >&5
7866 cat conftest.$ac_ext >&5
7868 eval "ac_cv_func_$ac_func=no"
7873 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7874 echo "$ac_t""yes" 1>&6
7875 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7876 cat >> confdefs.h <<EOF
7877 #define $ac_tr_func 1
7881 echo "$ac_t""no" 1>&6
7890 *-lsecurity*) for ac_func in getspnam
7892 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7893 echo "configure:7894: checking for $ac_func" >&5
7894 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7895 echo $ac_n "(cached) $ac_c" 1>&6
7897 cat > conftest.$ac_ext <<EOF
7898 #line 7899 "configure"
7899 #include "confdefs.h"
7900 /* System header to define __stub macros and hopefully few prototypes,
7901 which can conflict with char $ac_func(); below. */
7903 /* Override any gcc2 internal prototype to avoid an error. */
7904 /* We use char because int might match the return type of a gcc2
7905 builtin and then its argument prototype would still apply. */
7910 /* The GNU C library defines this for functions which it implements
7911 to always fail with ENOSYS. Some functions are actually named
7912 something starting with __ and the normal name is an alias. */
7913 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7921 if { (eval echo configure:7922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7923 eval "ac_cv_func_$ac_func=yes"
7925 echo "configure: failed program was:" >&5
7926 cat conftest.$ac_ext >&5
7928 eval "ac_cv_func_$ac_func=no"
7933 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7934 echo "$ac_t""yes" 1>&6
7935 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7936 cat >> confdefs.h <<EOF
7937 #define $ac_tr_func 1
7941 echo "$ac_t""no" 1>&6
7945 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7946 echo "configure:7947: checking for getspnam in -lsecurity" >&5
7947 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7948 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7949 echo $ac_n "(cached) $ac_c" 1>&6
7951 ac_save_LIBS="$LIBS"
7952 LIBS="-lsecurity $LIBS"
7953 cat > conftest.$ac_ext <<EOF
7954 #line 7955 "configure"
7955 #include "confdefs.h"
7956 /* Override any gcc2 internal prototype to avoid an error. */
7957 /* We use char because int might match the return type of a gcc2
7958 builtin and then its argument prototype would still apply. */
7965 if { (eval echo configure:7966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7967 eval "ac_cv_lib_$ac_lib_var=yes"
7969 echo "configure: failed program was:" >&5
7970 cat conftest.$ac_ext >&5
7972 eval "ac_cv_lib_$ac_lib_var=no"
7975 LIBS="$ac_save_LIBS"
7978 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7979 echo "$ac_t""yes" 1>&6
7980 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7981 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7982 cat >> confdefs.h <<EOF
7983 #define $ac_tr_lib 1
7986 LIBS="-lsecurity $LIBS"
7989 echo "$ac_t""no" 1>&6
7992 for ac_func in getspnam
7994 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7995 echo "configure:7996: checking for $ac_func" >&5
7996 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7997 echo $ac_n "(cached) $ac_c" 1>&6
7999 cat > conftest.$ac_ext <<EOF
8000 #line 8001 "configure"
8001 #include "confdefs.h"
8002 /* System header to define __stub macros and hopefully few prototypes,
8003 which can conflict with char $ac_func(); below. */
8005 /* Override any gcc2 internal prototype to avoid an error. */
8006 /* We use char because int might match the return type of a gcc2
8007 builtin and then its argument prototype would still apply. */
8012 /* The GNU C library defines this for functions which it implements
8013 to always fail with ENOSYS. Some functions are actually named
8014 something starting with __ and the normal name is an alias. */
8015 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8023 if { (eval echo configure:8024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8025 eval "ac_cv_func_$ac_func=yes"
8027 echo "configure: failed program was:" >&5
8028 cat conftest.$ac_ext >&5
8030 eval "ac_cv_func_$ac_func=no"
8035 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8036 echo "$ac_t""yes" 1>&6
8037 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8038 cat >> confdefs.h <<EOF
8039 #define $ac_tr_func 1
8043 echo "$ac_t""no" 1>&6
8051 *-lsec*) for ac_func in getspnam
8053 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8054 echo "configure:8055: checking for $ac_func" >&5
8055 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8056 echo $ac_n "(cached) $ac_c" 1>&6
8058 cat > conftest.$ac_ext <<EOF
8059 #line 8060 "configure"
8060 #include "confdefs.h"
8061 /* System header to define __stub macros and hopefully few prototypes,
8062 which can conflict with char $ac_func(); below. */
8064 /* Override any gcc2 internal prototype to avoid an error. */
8065 /* We use char because int might match the return type of a gcc2
8066 builtin and then its argument prototype would still apply. */
8071 /* The GNU C library defines this for functions which it implements
8072 to always fail with ENOSYS. Some functions are actually named
8073 something starting with __ and the normal name is an alias. */
8074 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8082 if { (eval echo configure:8083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8084 eval "ac_cv_func_$ac_func=yes"
8086 echo "configure: failed program was:" >&5
8087 cat conftest.$ac_ext >&5
8089 eval "ac_cv_func_$ac_func=no"
8094 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8095 echo "$ac_t""yes" 1>&6
8096 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8097 cat >> confdefs.h <<EOF
8098 #define $ac_tr_func 1
8102 echo "$ac_t""no" 1>&6
8106 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
8107 echo "configure:8108: checking for getspnam in -lsec" >&5
8108 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
8109 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8110 echo $ac_n "(cached) $ac_c" 1>&6
8112 ac_save_LIBS="$LIBS"
8114 cat > conftest.$ac_ext <<EOF
8115 #line 8116 "configure"
8116 #include "confdefs.h"
8117 /* Override any gcc2 internal prototype to avoid an error. */
8118 /* We use char because int might match the return type of a gcc2
8119 builtin and then its argument prototype would still apply. */
8126 if { (eval echo configure:8127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8128 eval "ac_cv_lib_$ac_lib_var=yes"
8130 echo "configure: failed program was:" >&5
8131 cat conftest.$ac_ext >&5
8133 eval "ac_cv_lib_$ac_lib_var=no"
8136 LIBS="$ac_save_LIBS"
8139 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8140 echo "$ac_t""yes" 1>&6
8141 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8142 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8143 cat >> confdefs.h <<EOF
8144 #define $ac_tr_lib 1
8150 echo "$ac_t""no" 1>&6
8153 for ac_func in getspnam
8155 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8156 echo "configure:8157: checking for $ac_func" >&5
8157 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8158 echo $ac_n "(cached) $ac_c" 1>&6
8160 cat > conftest.$ac_ext <<EOF
8161 #line 8162 "configure"
8162 #include "confdefs.h"
8163 /* System header to define __stub macros and hopefully few prototypes,
8164 which can conflict with char $ac_func(); below. */
8166 /* Override any gcc2 internal prototype to avoid an error. */
8167 /* We use char because int might match the return type of a gcc2
8168 builtin and then its argument prototype would still apply. */
8173 /* The GNU C library defines this for functions which it implements
8174 to always fail with ENOSYS. Some functions are actually named
8175 something starting with __ and the normal name is an alias. */
8176 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8184 if { (eval echo configure:8185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8186 eval "ac_cv_func_$ac_func=yes"
8188 echo "configure: failed program was:" >&5
8189 cat conftest.$ac_ext >&5
8191 eval "ac_cv_func_$ac_func=no"
8196 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8197 echo "$ac_t""yes" 1>&6
8198 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8199 cat >> confdefs.h <<EOF
8200 #define $ac_tr_func 1
8204 echo "$ac_t""no" 1>&6
8213 *-lsecurity*) for ac_func in bigcrypt
8215 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8216 echo "configure:8217: checking for $ac_func" >&5
8217 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8218 echo $ac_n "(cached) $ac_c" 1>&6
8220 cat > conftest.$ac_ext <<EOF
8221 #line 8222 "configure"
8222 #include "confdefs.h"
8223 /* System header to define __stub macros and hopefully few prototypes,
8224 which can conflict with char $ac_func(); below. */
8226 /* Override any gcc2 internal prototype to avoid an error. */
8227 /* We use char because int might match the return type of a gcc2
8228 builtin and then its argument prototype would still apply. */
8233 /* The GNU C library defines this for functions which it implements
8234 to always fail with ENOSYS. Some functions are actually named
8235 something starting with __ and the normal name is an alias. */
8236 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8244 if { (eval echo configure:8245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8246 eval "ac_cv_func_$ac_func=yes"
8248 echo "configure: failed program was:" >&5
8249 cat conftest.$ac_ext >&5
8251 eval "ac_cv_func_$ac_func=no"
8256 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8257 echo "$ac_t""yes" 1>&6
8258 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8259 cat >> confdefs.h <<EOF
8260 #define $ac_tr_func 1
8264 echo "$ac_t""no" 1>&6
8268 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
8269 echo "configure:8270: checking for bigcrypt in -lsecurity" >&5
8270 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
8271 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8272 echo $ac_n "(cached) $ac_c" 1>&6
8274 ac_save_LIBS="$LIBS"
8275 LIBS="-lsecurity $LIBS"
8276 cat > conftest.$ac_ext <<EOF
8277 #line 8278 "configure"
8278 #include "confdefs.h"
8279 /* Override any gcc2 internal prototype to avoid an error. */
8280 /* We use char because int might match the return type of a gcc2
8281 builtin and then its argument prototype would still apply. */
8288 if { (eval echo configure:8289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8290 eval "ac_cv_lib_$ac_lib_var=yes"
8292 echo "configure: failed program was:" >&5
8293 cat conftest.$ac_ext >&5
8295 eval "ac_cv_lib_$ac_lib_var=no"
8298 LIBS="$ac_save_LIBS"
8301 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8302 echo "$ac_t""yes" 1>&6
8303 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8304 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8305 cat >> confdefs.h <<EOF
8306 #define $ac_tr_lib 1
8309 LIBS="-lsecurity $LIBS"
8312 echo "$ac_t""no" 1>&6
8315 for ac_func in bigcrypt
8317 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8318 echo "configure:8319: checking for $ac_func" >&5
8319 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8320 echo $ac_n "(cached) $ac_c" 1>&6
8322 cat > conftest.$ac_ext <<EOF
8323 #line 8324 "configure"
8324 #include "confdefs.h"
8325 /* System header to define __stub macros and hopefully few prototypes,
8326 which can conflict with char $ac_func(); below. */
8328 /* Override any gcc2 internal prototype to avoid an error. */
8329 /* We use char because int might match the return type of a gcc2
8330 builtin and then its argument prototype would still apply. */
8335 /* The GNU C library defines this for functions which it implements
8336 to always fail with ENOSYS. Some functions are actually named
8337 something starting with __ and the normal name is an alias. */
8338 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8346 if { (eval echo configure:8347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8348 eval "ac_cv_func_$ac_func=yes"
8350 echo "configure: failed program was:" >&5
8351 cat conftest.$ac_ext >&5
8353 eval "ac_cv_func_$ac_func=no"
8358 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8359 echo "$ac_t""yes" 1>&6
8360 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8361 cat >> confdefs.h <<EOF
8362 #define $ac_tr_func 1
8366 echo "$ac_t""no" 1>&6
8374 *-lsec*) for ac_func in bigcrypt
8376 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8377 echo "configure:8378: checking for $ac_func" >&5
8378 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8379 echo $ac_n "(cached) $ac_c" 1>&6
8381 cat > conftest.$ac_ext <<EOF
8382 #line 8383 "configure"
8383 #include "confdefs.h"
8384 /* System header to define __stub macros and hopefully few prototypes,
8385 which can conflict with char $ac_func(); below. */
8387 /* Override any gcc2 internal prototype to avoid an error. */
8388 /* We use char because int might match the return type of a gcc2
8389 builtin and then its argument prototype would still apply. */
8394 /* The GNU C library defines this for functions which it implements
8395 to always fail with ENOSYS. Some functions are actually named
8396 something starting with __ and the normal name is an alias. */
8397 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8405 if { (eval echo configure:8406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8407 eval "ac_cv_func_$ac_func=yes"
8409 echo "configure: failed program was:" >&5
8410 cat conftest.$ac_ext >&5
8412 eval "ac_cv_func_$ac_func=no"
8417 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8418 echo "$ac_t""yes" 1>&6
8419 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8420 cat >> confdefs.h <<EOF
8421 #define $ac_tr_func 1
8425 echo "$ac_t""no" 1>&6
8429 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
8430 echo "configure:8431: checking for bigcrypt in -lsec" >&5
8431 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
8432 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8433 echo $ac_n "(cached) $ac_c" 1>&6
8435 ac_save_LIBS="$LIBS"
8437 cat > conftest.$ac_ext <<EOF
8438 #line 8439 "configure"
8439 #include "confdefs.h"
8440 /* Override any gcc2 internal prototype to avoid an error. */
8441 /* We use char because int might match the return type of a gcc2
8442 builtin and then its argument prototype would still apply. */
8449 if { (eval echo configure:8450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8451 eval "ac_cv_lib_$ac_lib_var=yes"
8453 echo "configure: failed program was:" >&5
8454 cat conftest.$ac_ext >&5
8456 eval "ac_cv_lib_$ac_lib_var=no"
8459 LIBS="$ac_save_LIBS"
8462 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8463 echo "$ac_t""yes" 1>&6
8464 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8465 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8466 cat >> confdefs.h <<EOF
8467 #define $ac_tr_lib 1
8473 echo "$ac_t""no" 1>&6
8476 for ac_func in bigcrypt
8478 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8479 echo "configure:8480: checking for $ac_func" >&5
8480 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8481 echo $ac_n "(cached) $ac_c" 1>&6
8483 cat > conftest.$ac_ext <<EOF
8484 #line 8485 "configure"
8485 #include "confdefs.h"
8486 /* System header to define __stub macros and hopefully few prototypes,
8487 which can conflict with char $ac_func(); below. */
8489 /* Override any gcc2 internal prototype to avoid an error. */
8490 /* We use char because int might match the return type of a gcc2
8491 builtin and then its argument prototype would still apply. */
8496 /* The GNU C library defines this for functions which it implements
8497 to always fail with ENOSYS. Some functions are actually named
8498 something starting with __ and the normal name is an alias. */
8499 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8507 if { (eval echo configure:8508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8509 eval "ac_cv_func_$ac_func=yes"
8511 echo "configure: failed program was:" >&5
8512 cat conftest.$ac_ext >&5
8514 eval "ac_cv_func_$ac_func=no"
8519 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8520 echo "$ac_t""yes" 1>&6
8521 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8522 cat >> confdefs.h <<EOF
8523 #define $ac_tr_func 1
8527 echo "$ac_t""no" 1>&6
8536 *-lsecurity*) for ac_func in getprpwnam
8538 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8539 echo "configure:8540: checking for $ac_func" >&5
8540 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8541 echo $ac_n "(cached) $ac_c" 1>&6
8543 cat > conftest.$ac_ext <<EOF
8544 #line 8545 "configure"
8545 #include "confdefs.h"
8546 /* System header to define __stub macros and hopefully few prototypes,
8547 which can conflict with char $ac_func(); below. */
8549 /* Override any gcc2 internal prototype to avoid an error. */
8550 /* We use char because int might match the return type of a gcc2
8551 builtin and then its argument prototype would still apply. */
8556 /* The GNU C library defines this for functions which it implements
8557 to always fail with ENOSYS. Some functions are actually named
8558 something starting with __ and the normal name is an alias. */
8559 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8567 if { (eval echo configure:8568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8569 eval "ac_cv_func_$ac_func=yes"
8571 echo "configure: failed program was:" >&5
8572 cat conftest.$ac_ext >&5
8574 eval "ac_cv_func_$ac_func=no"
8579 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8580 echo "$ac_t""yes" 1>&6
8581 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8582 cat >> confdefs.h <<EOF
8583 #define $ac_tr_func 1
8587 echo "$ac_t""no" 1>&6
8591 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8592 echo "configure:8593: checking for getprpwnam in -lsecurity" >&5
8593 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8594 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8595 echo $ac_n "(cached) $ac_c" 1>&6
8597 ac_save_LIBS="$LIBS"
8598 LIBS="-lsecurity $LIBS"
8599 cat > conftest.$ac_ext <<EOF
8600 #line 8601 "configure"
8601 #include "confdefs.h"
8602 /* Override any gcc2 internal prototype to avoid an error. */
8603 /* We use char because int might match the return type of a gcc2
8604 builtin and then its argument prototype would still apply. */
8611 if { (eval echo configure:8612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8613 eval "ac_cv_lib_$ac_lib_var=yes"
8615 echo "configure: failed program was:" >&5
8616 cat conftest.$ac_ext >&5
8618 eval "ac_cv_lib_$ac_lib_var=no"
8621 LIBS="$ac_save_LIBS"
8624 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8625 echo "$ac_t""yes" 1>&6
8626 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8627 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8628 cat >> confdefs.h <<EOF
8629 #define $ac_tr_lib 1
8632 LIBS="-lsecurity $LIBS"
8635 echo "$ac_t""no" 1>&6
8638 for ac_func in getprpwnam
8640 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8641 echo "configure:8642: checking for $ac_func" >&5
8642 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8643 echo $ac_n "(cached) $ac_c" 1>&6
8645 cat > conftest.$ac_ext <<EOF
8646 #line 8647 "configure"
8647 #include "confdefs.h"
8648 /* System header to define __stub macros and hopefully few prototypes,
8649 which can conflict with char $ac_func(); below. */
8651 /* Override any gcc2 internal prototype to avoid an error. */
8652 /* We use char because int might match the return type of a gcc2
8653 builtin and then its argument prototype would still apply. */
8658 /* The GNU C library defines this for functions which it implements
8659 to always fail with ENOSYS. Some functions are actually named
8660 something starting with __ and the normal name is an alias. */
8661 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8669 if { (eval echo configure:8670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8671 eval "ac_cv_func_$ac_func=yes"
8673 echo "configure: failed program was:" >&5
8674 cat conftest.$ac_ext >&5
8676 eval "ac_cv_func_$ac_func=no"
8681 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8682 echo "$ac_t""yes" 1>&6
8683 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8684 cat >> confdefs.h <<EOF
8685 #define $ac_tr_func 1
8689 echo "$ac_t""no" 1>&6
8697 *-lsec*) for ac_func in getprpwnam
8699 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8700 echo "configure:8701: checking for $ac_func" >&5
8701 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8702 echo $ac_n "(cached) $ac_c" 1>&6
8704 cat > conftest.$ac_ext <<EOF
8705 #line 8706 "configure"
8706 #include "confdefs.h"
8707 /* System header to define __stub macros and hopefully few prototypes,
8708 which can conflict with char $ac_func(); below. */
8710 /* Override any gcc2 internal prototype to avoid an error. */
8711 /* We use char because int might match the return type of a gcc2
8712 builtin and then its argument prototype would still apply. */
8717 /* The GNU C library defines this for functions which it implements
8718 to always fail with ENOSYS. Some functions are actually named
8719 something starting with __ and the normal name is an alias. */
8720 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8728 if { (eval echo configure:8729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8730 eval "ac_cv_func_$ac_func=yes"
8732 echo "configure: failed program was:" >&5
8733 cat conftest.$ac_ext >&5
8735 eval "ac_cv_func_$ac_func=no"
8740 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8741 echo "$ac_t""yes" 1>&6
8742 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8743 cat >> confdefs.h <<EOF
8744 #define $ac_tr_func 1
8748 echo "$ac_t""no" 1>&6
8752 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8753 echo "configure:8754: checking for getprpwnam in -lsec" >&5
8754 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8755 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8756 echo $ac_n "(cached) $ac_c" 1>&6
8758 ac_save_LIBS="$LIBS"
8760 cat > conftest.$ac_ext <<EOF
8761 #line 8762 "configure"
8762 #include "confdefs.h"
8763 /* Override any gcc2 internal prototype to avoid an error. */
8764 /* We use char because int might match the return type of a gcc2
8765 builtin and then its argument prototype would still apply. */
8772 if { (eval echo configure:8773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8774 eval "ac_cv_lib_$ac_lib_var=yes"
8776 echo "configure: failed program was:" >&5
8777 cat conftest.$ac_ext >&5
8779 eval "ac_cv_lib_$ac_lib_var=no"
8782 LIBS="$ac_save_LIBS"
8785 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8786 echo "$ac_t""yes" 1>&6
8787 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8788 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8789 cat >> confdefs.h <<EOF
8790 #define $ac_tr_lib 1
8796 echo "$ac_t""no" 1>&6
8799 for ac_func in getprpwnam
8801 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8802 echo "configure:8803: checking for $ac_func" >&5
8803 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8804 echo $ac_n "(cached) $ac_c" 1>&6
8806 cat > conftest.$ac_ext <<EOF
8807 #line 8808 "configure"
8808 #include "confdefs.h"
8809 /* System header to define __stub macros and hopefully few prototypes,
8810 which can conflict with char $ac_func(); below. */
8812 /* Override any gcc2 internal prototype to avoid an error. */
8813 /* We use char because int might match the return type of a gcc2
8814 builtin and then its argument prototype would still apply. */
8819 /* The GNU C library defines this for functions which it implements
8820 to always fail with ENOSYS. Some functions are actually named
8821 something starting with __ and the normal name is an alias. */
8822 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8830 if { (eval echo configure:8831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8832 eval "ac_cv_func_$ac_func=yes"
8834 echo "configure: failed program was:" >&5
8835 cat conftest.$ac_ext >&5
8837 eval "ac_cv_func_$ac_func=no"
8842 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8843 echo "$ac_t""yes" 1>&6
8844 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8845 cat >> confdefs.h <<EOF
8846 #define $ac_tr_func 1
8850 echo "$ac_t""no" 1>&6
8858 # this bit needs to be modified for each OS that is suported by
8859 # smbwrapper. You need to specify how to created a shared library and
8860 # how to compile C code to produce PIC object files
8862 # these are the defaults, good for lots of systems
8871 # Assume non-shared by default and override below
8873 echo $ac_n "checking ability to build shared libraries""... $ac_c" 1>&6
8874 echo "configure:8875: checking ability to build shared libraries" >&5
8876 # and these are for particular systems
8878 *linux*) cat >> confdefs.h <<\EOF
8884 DYNEXP="-Wl,--export-dynamic"
8886 SONAMEFLAG="-Wl,-soname="
8887 cat >> confdefs.h <<\EOF
8888 #define STAT_ST_BLOCKSIZE 512
8892 *solaris*) cat >> confdefs.h <<\EOF
8899 if test "${GCC}" = "yes"; then
8901 if test "${ac_cv_prog_gnu_ld}" = "yes"; then
8906 ## ${CFLAGS} added for building 64-bit shared
8907 ## libs using Sun's Compiler
8908 LDSHFLAGS="-G \${CFLAGS}"
8912 cat >> confdefs.h <<\EOF
8913 #define STAT_ST_BLOCKSIZE 512
8917 *sunos*) cat >> confdefs.h <<\EOF
8923 SONAMEFLAG="-Wl,-h,"
8924 PICFLAG="-KPIC" # Is this correct for SunOS
8926 *bsd*) BLDSHARED="true"
8928 DYNEXP="-Wl,-Bdynamic"
8929 SONAMEFLAG="-Wl,-soname,"
8931 cat >> confdefs.h <<\EOF
8932 #define STAT_ST_BLOCKSIZE 512
8936 *irix*) cat >> confdefs.h <<\EOF
8941 *irix6*) cat >> confdefs.h <<\EOF
8947 ATTEMPT_WRAP32_BUILD=yes
8949 LDSHFLAGS="-set_version sgi1.0 -shared"
8950 SONAMEFLAG="-soname "
8952 if test "${GCC}" = "yes"; then
8957 cat >> confdefs.h <<\EOF
8958 #define STAT_ST_BLOCKSIZE 512
8962 *aix*) cat >> confdefs.h <<\EOF
8967 LDSHFLAGS="-Wl,-bexpall,-bM:SRE,-bnoentry"
8968 DYNEXP="-Wl,-brtl,-bexpall"
8969 if test "${GCC}" = "yes"; then
8972 PICFLAG="-O2 -qmaxmem=6000"
8973 ## for funky AIX compiler using strncpy()
8974 CFLAGS="$CFLAGS -D_LINUX_SOURCE_COMPAT"
8977 cat >> confdefs.h <<\EOF
8978 #define STAT_ST_BLOCKSIZE DEV_BSIZE
8982 *hpux*) cat >> confdefs.h <<\EOF
8987 # Use special PIC flags for the native HP-UX compiler.
8988 if test $ac_cv_prog_cc_Ae = yes; then
8991 LDSHFLAGS="-B symbolic -b -z"
8996 cat >> confdefs.h <<\EOF
8997 #define STAT_ST_BLOCKSIZE 8192
9001 *qnx*) cat >> confdefs.h <<\EOF
9005 *osf*) cat >> confdefs.h <<\EOF
9011 SONAMEFLAG="-Wl,-soname,"
9014 *sco*) cat >> confdefs.h <<\EOF
9018 *unixware*) cat >> confdefs.h <<\EOF
9024 SONAMEFLAG="-Wl,-soname,"
9027 *next2*) cat >> confdefs.h <<\EOF
9031 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
9032 set dummy groff; ac_word=$2
9033 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9034 echo "configure:9035: checking for $ac_word" >&5
9035 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
9036 echo $ac_n "(cached) $ac_c" 1>&6
9038 if test -n "$ROFF"; then
9039 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
9041 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9043 for ac_dir in $ac_dummy; do
9044 test -z "$ac_dir" && ac_dir=.
9045 if test -f $ac_dir/$ac_word; then
9046 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
9053 ROFF="$ac_cv_prog_ROFF"
9054 if test -n "$ROFF"; then
9055 echo "$ac_t""$ROFF" 1>&6
9057 echo "$ac_t""no" 1>&6
9062 *-univel-*) if test "$GCC" != yes ; then
9063 cat >> confdefs.h <<\EOF
9064 #define HAVE_MEMSET 1
9071 *mips-sni-sysv4*) cat >> confdefs.h <<\EOF
9072 #define RELIANTUNIX 1
9079 if test "$GCC" != yes ; then
9080 cat >> confdefs.h <<\EOF
9081 #define HAVE_MEMSET 1
9089 echo "$ac_t""$BLDSHARED" 1>&6
9090 echo $ac_n "checking linker flags for shared libraries""... $ac_c" 1>&6
9091 echo "configure:9092: checking linker flags for shared libraries" >&5
9092 echo "$ac_t""$LDSHFLAGS" 1>&6
9093 echo $ac_n "checking compiler flags for position-independent code""... $ac_c" 1>&6
9094 echo "configure:9095: checking compiler flags for position-independent code" >&5
9095 echo "$ac_t""$PICFLAGS" 1>&6
9097 #######################################################
9098 # test whether building a shared library actually works
9099 if test $BLDSHARED = true; then
9100 echo $ac_n "checking whether building shared libraries actually works""... $ac_c" 1>&6
9101 echo "configure:9102: checking whether building shared libraries actually works" >&5
9102 if eval "test \"`echo '$''{'ac_cv_shlib_works'+set}'`\" = set"; then
9103 echo $ac_n "(cached) $ac_c" 1>&6
9106 ac_cv_shlib_works=no
9107 # try building a trivial shared library
9108 $CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.po ${srcdir-.}/tests/shlib.c &&
9109 $CC $CPPFLAGS $CFLAGS $LDSHFLAGS -o shlib.so shlib.po &&
9110 ac_cv_shlib_works=yes
9111 rm -f shlib.so shlib.po
9115 echo "$ac_t""$ac_cv_shlib_works" 1>&6
9116 if test $ac_cv_shlib_works = no; then
9122 # this updates our target list if we can build shared libs
9123 if test $BLDSHARED = true; then
9124 LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
9126 LIBSMBCLIENT_SHARED=
9131 echo $ac_n "checking for long long""... $ac_c" 1>&6
9132 echo "configure:9133: checking for long long" >&5
9133 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
9134 echo $ac_n "(cached) $ac_c" 1>&6
9137 if test "$cross_compiling" = yes; then
9138 samba_cv_have_longlong=cross
9140 cat > conftest.$ac_ext <<EOF
9141 #line 9142 "configure"
9142 #include "confdefs.h"
9144 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
9146 if { (eval echo configure:9147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9148 samba_cv_have_longlong=yes
9150 echo "configure: failed program was:" >&5
9151 cat conftest.$ac_ext >&5
9153 samba_cv_have_longlong=no
9160 echo "$ac_t""$samba_cv_have_longlong" 1>&6
9161 if test x"$samba_cv_have_longlong" = x"yes"; then
9162 cat >> confdefs.h <<\EOF
9163 #define HAVE_LONGLONG 1
9169 # Check if the compiler supports the LL prefix on long long integers.
9172 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
9173 echo "configure:9174: checking for LL suffix on long long integers" >&5
9174 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
9175 echo $ac_n "(cached) $ac_c" 1>&6
9178 cat > conftest.$ac_ext <<EOF
9179 #line 9180 "configure"
9180 #include "confdefs.h"
9183 long long i = 0x8000000000LL
9186 if { (eval echo configure:9187: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9188 samba_cv_compiler_supports_ll=yes
9190 echo "configure: failed program was:" >&5
9191 cat conftest.$ac_ext >&5
9193 samba_cv_compiler_supports_ll=no
9198 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
9199 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
9200 cat >> confdefs.h <<\EOF
9201 #define COMPILER_SUPPORTS_LL 1
9207 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
9208 echo "configure:9209: checking for 64 bit off_t" >&5
9209 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
9210 echo $ac_n "(cached) $ac_c" 1>&6
9213 if test "$cross_compiling" = yes; then
9214 samba_cv_SIZEOF_OFF_T=cross
9216 cat > conftest.$ac_ext <<EOF
9217 #line 9218 "configure"
9218 #include "confdefs.h"
9220 #include <sys/stat.h>
9221 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
9223 if { (eval echo configure:9224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9225 samba_cv_SIZEOF_OFF_T=yes
9227 echo "configure: failed program was:" >&5
9228 cat conftest.$ac_ext >&5
9230 samba_cv_SIZEOF_OFF_T=no
9237 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
9238 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
9239 cat >> confdefs.h <<\EOF
9240 #define SIZEOF_OFF_T 8
9245 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
9246 echo "configure:9247: checking for off64_t" >&5
9247 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
9248 echo $ac_n "(cached) $ac_c" 1>&6
9251 if test "$cross_compiling" = yes; then
9252 samba_cv_HAVE_OFF64_T=cross
9254 cat > conftest.$ac_ext <<EOF
9255 #line 9256 "configure"
9256 #include "confdefs.h"
9258 #if defined(HAVE_UNISTD_H)
9262 #include <sys/stat.h>
9263 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9265 if { (eval echo configure:9266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9267 samba_cv_HAVE_OFF64_T=yes
9269 echo "configure: failed program was:" >&5
9270 cat conftest.$ac_ext >&5
9272 samba_cv_HAVE_OFF64_T=no
9279 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
9280 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
9281 cat >> confdefs.h <<\EOF
9282 #define HAVE_OFF64_T 1
9287 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
9288 echo "configure:9289: checking for 64 bit ino_t" >&5
9289 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
9290 echo $ac_n "(cached) $ac_c" 1>&6
9293 if test "$cross_compiling" = yes; then
9294 samba_cv_SIZEOF_INO_T=cross
9296 cat > conftest.$ac_ext <<EOF
9297 #line 9298 "configure"
9298 #include "confdefs.h"
9300 #include <sys/stat.h>
9301 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
9303 if { (eval echo configure:9304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9305 samba_cv_SIZEOF_INO_T=yes
9307 echo "configure: failed program was:" >&5
9308 cat conftest.$ac_ext >&5
9310 samba_cv_SIZEOF_INO_T=no
9317 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
9318 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
9319 cat >> confdefs.h <<\EOF
9320 #define SIZEOF_INO_T 8
9325 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
9326 echo "configure:9327: checking for ino64_t" >&5
9327 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
9328 echo $ac_n "(cached) $ac_c" 1>&6
9331 if test "$cross_compiling" = yes; then
9332 samba_cv_HAVE_INO64_T=cross
9334 cat > conftest.$ac_ext <<EOF
9335 #line 9336 "configure"
9336 #include "confdefs.h"
9338 #if defined(HAVE_UNISTD_H)
9342 #include <sys/stat.h>
9343 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9345 if { (eval echo configure:9346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9347 samba_cv_HAVE_INO64_T=yes
9349 echo "configure: failed program was:" >&5
9350 cat conftest.$ac_ext >&5
9352 samba_cv_HAVE_INO64_T=no
9359 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
9360 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
9361 cat >> confdefs.h <<\EOF
9362 #define HAVE_INO64_T 1
9367 echo $ac_n "checking for dev64_t""... $ac_c" 1>&6
9368 echo "configure:9369: checking for dev64_t" >&5
9369 if eval "test \"`echo '$''{'samba_cv_HAVE_DEV64_T'+set}'`\" = set"; then
9370 echo $ac_n "(cached) $ac_c" 1>&6
9373 if test "$cross_compiling" = yes; then
9374 samba_cv_HAVE_DEV64_T=cross
9376 cat > conftest.$ac_ext <<EOF
9377 #line 9378 "configure"
9378 #include "confdefs.h"
9380 #if defined(HAVE_UNISTD_H)
9384 #include <sys/stat.h>
9385 main() { struct stat64 st; dev64_t s; if (sizeof(dev_t) == sizeof(dev64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9387 if { (eval echo configure:9388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9389 samba_cv_HAVE_DEV64_T=yes
9391 echo "configure: failed program was:" >&5
9392 cat conftest.$ac_ext >&5
9394 samba_cv_HAVE_DEV64_T=no
9401 echo "$ac_t""$samba_cv_HAVE_DEV64_T" 1>&6
9402 if test x"$samba_cv_HAVE_DEV64_T" = x"yes"; then
9403 cat >> confdefs.h <<\EOF
9404 #define HAVE_DEV64_T 1
9409 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
9410 echo "configure:9411: checking for struct dirent64" >&5
9411 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
9412 echo $ac_n "(cached) $ac_c" 1>&6
9415 cat > conftest.$ac_ext <<EOF
9416 #line 9417 "configure"
9417 #include "confdefs.h"
9419 #if defined(HAVE_UNISTD_H)
9422 #include <sys/types.h>
9428 if { (eval echo configure:9429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9430 samba_cv_HAVE_STRUCT_DIRENT64=yes
9432 echo "configure: failed program was:" >&5
9433 cat conftest.$ac_ext >&5
9435 samba_cv_HAVE_STRUCT_DIRENT64=no
9440 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
9441 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes" && test x"$ac_cv_func_readdir64" = x"yes"; then
9442 cat >> confdefs.h <<\EOF
9443 #define HAVE_STRUCT_DIRENT64 1
9448 echo $ac_n "checking for major macro""... $ac_c" 1>&6
9449 echo "configure:9450: checking for major macro" >&5
9450 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MAJOR_FN'+set}'`\" = set"; then
9451 echo $ac_n "(cached) $ac_c" 1>&6
9454 if test "$cross_compiling" = yes; then
9455 samba_cv_HAVE_DEVICE_MAJOR_FN=cross
9457 cat > conftest.$ac_ext <<EOF
9458 #line 9459 "configure"
9459 #include "confdefs.h"
9461 #if defined(HAVE_UNISTD_H)
9464 #include <sys/types.h>
9465 main() { dev_t dev; int i = major(dev); return 0; }
9467 if { (eval echo configure:9468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9469 samba_cv_HAVE_DEVICE_MAJOR_FN=yes
9471 echo "configure: failed program was:" >&5
9472 cat conftest.$ac_ext >&5
9474 samba_cv_HAVE_DEVICE_MAJOR_FN=no
9481 echo "$ac_t""$samba_cv_HAVE_DEVICE_MAJOR_FN" 1>&6
9482 if test x"$samba_cv_HAVE_DEVICE_MAJOR_FN" = x"yes"; then
9483 cat >> confdefs.h <<\EOF
9484 #define HAVE_DEVICE_MAJOR_FN 1
9489 echo $ac_n "checking for minor macro""... $ac_c" 1>&6
9490 echo "configure:9491: checking for minor macro" >&5
9491 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MINOR_FN'+set}'`\" = set"; then
9492 echo $ac_n "(cached) $ac_c" 1>&6
9495 if test "$cross_compiling" = yes; then
9496 samba_cv_HAVE_DEVICE_MINOR_FN=cross
9498 cat > conftest.$ac_ext <<EOF
9499 #line 9500 "configure"
9500 #include "confdefs.h"
9502 #if defined(HAVE_UNISTD_H)
9505 #include <sys/types.h>
9506 main() { dev_t dev; int i = minor(dev); return 0; }
9508 if { (eval echo configure:9509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9510 samba_cv_HAVE_DEVICE_MINOR_FN=yes
9512 echo "configure: failed program was:" >&5
9513 cat conftest.$ac_ext >&5
9515 samba_cv_HAVE_DEVICE_MINOR_FN=no
9522 echo "$ac_t""$samba_cv_HAVE_DEVICE_MINOR_FN" 1>&6
9523 if test x"$samba_cv_HAVE_DEVICE_MINOR_FN" = x"yes"; then
9524 cat >> confdefs.h <<\EOF
9525 #define HAVE_DEVICE_MINOR_FN 1
9530 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
9531 echo "configure:9532: checking for unsigned char" >&5
9532 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
9533 echo $ac_n "(cached) $ac_c" 1>&6
9536 if test "$cross_compiling" = yes; then
9537 samba_cv_HAVE_UNSIGNED_CHAR=cross
9539 cat > conftest.$ac_ext <<EOF
9540 #line 9541 "configure"
9541 #include "confdefs.h"
9543 main() { char c; c=250; exit((c > 0)?0:1); }
9545 if { (eval echo configure:9546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9547 samba_cv_HAVE_UNSIGNED_CHAR=yes
9549 echo "configure: failed program was:" >&5
9550 cat conftest.$ac_ext >&5
9552 samba_cv_HAVE_UNSIGNED_CHAR=no
9559 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
9560 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
9561 cat >> confdefs.h <<\EOF
9562 #define HAVE_UNSIGNED_CHAR 1
9567 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
9568 echo "configure:9569: checking for sin_len in sock" >&5
9569 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
9570 echo $ac_n "(cached) $ac_c" 1>&6
9573 cat > conftest.$ac_ext <<EOF
9574 #line 9575 "configure"
9575 #include "confdefs.h"
9576 #include <sys/types.h>
9577 #include <sys/socket.h>
9578 #include <netinet/in.h>
9580 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
9583 if { (eval echo configure:9584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9585 samba_cv_HAVE_SOCK_SIN_LEN=yes
9587 echo "configure: failed program was:" >&5
9588 cat conftest.$ac_ext >&5
9590 samba_cv_HAVE_SOCK_SIN_LEN=no
9595 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
9596 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
9597 cat >> confdefs.h <<\EOF
9598 #define HAVE_SOCK_SIN_LEN 1
9603 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
9604 echo "configure:9605: checking whether seekdir returns void" >&5
9605 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
9606 echo $ac_n "(cached) $ac_c" 1>&6
9609 cat > conftest.$ac_ext <<EOF
9610 #line 9611 "configure"
9611 #include "confdefs.h"
9612 #include <sys/types.h>
9614 void seekdir(DIR *d, long loc) { return; }
9619 if { (eval echo configure:9620: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9621 samba_cv_SEEKDIR_RETURNS_VOID=yes
9623 echo "configure: failed program was:" >&5
9624 cat conftest.$ac_ext >&5
9626 samba_cv_SEEKDIR_RETURNS_VOID=no
9631 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
9632 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
9633 cat >> confdefs.h <<\EOF
9634 #define SEEKDIR_RETURNS_VOID 1
9639 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
9640 echo "configure:9641: checking for __FILE__ macro" >&5
9641 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
9642 echo $ac_n "(cached) $ac_c" 1>&6
9645 cat > conftest.$ac_ext <<EOF
9646 #line 9647 "configure"
9647 #include "confdefs.h"
9650 printf("%s\n", __FILE__);
9653 if { (eval echo configure:9654: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9655 samba_cv_HAVE_FILE_MACRO=yes
9657 echo "configure: failed program was:" >&5
9658 cat conftest.$ac_ext >&5
9660 samba_cv_HAVE_FILE_MACRO=no
9665 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
9666 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
9667 cat >> confdefs.h <<\EOF
9668 #define HAVE_FILE_MACRO 1
9673 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9674 echo "configure:9675: checking for __FUNCTION__ macro" >&5
9675 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9676 echo $ac_n "(cached) $ac_c" 1>&6
9679 cat > conftest.$ac_ext <<EOF
9680 #line 9681 "configure"
9681 #include "confdefs.h"
9684 printf("%s\n", __FUNCTION__);
9687 if { (eval echo configure:9688: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9689 samba_cv_HAVE_FUNCTION_MACRO=yes
9691 echo "configure: failed program was:" >&5
9692 cat conftest.$ac_ext >&5
9694 samba_cv_HAVE_FUNCTION_MACRO=no
9699 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9700 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
9701 cat >> confdefs.h <<\EOF
9702 #define HAVE_FUNCTION_MACRO 1
9707 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9708 echo "configure:9709: checking if gettimeofday takes tz argument" >&5
9709 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9710 echo $ac_n "(cached) $ac_c" 1>&6
9713 if test "$cross_compiling" = yes; then
9714 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
9716 cat > conftest.$ac_ext <<EOF
9717 #line 9718 "configure"
9718 #include "confdefs.h"
9720 #include <sys/time.h>
9722 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9724 if { (eval echo configure:9725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9726 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
9728 echo "configure: failed program was:" >&5
9729 cat conftest.$ac_ext >&5
9731 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
9738 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9739 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
9740 cat >> confdefs.h <<\EOF
9741 #define HAVE_GETTIMEOFDAY_TZ 1
9746 echo $ac_n "checking for __va_copy""... $ac_c" 1>&6
9747 echo "configure:9748: checking for __va_copy" >&5
9748 if eval "test \"`echo '$''{'samba_cv_HAVE_VA_COPY'+set}'`\" = set"; then
9749 echo $ac_n "(cached) $ac_c" 1>&6
9752 cat > conftest.$ac_ext <<EOF
9753 #line 9754 "configure"
9754 #include "confdefs.h"
9761 if { (eval echo configure:9762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9763 samba_cv_HAVE_VA_COPY=yes
9765 echo "configure: failed program was:" >&5
9766 cat conftest.$ac_ext >&5
9768 samba_cv_HAVE_VA_COPY=no
9773 echo "$ac_t""$samba_cv_HAVE_VA_COPY" 1>&6
9774 if test x"$samba_cv_HAVE_VA_COPY" = x"yes"; then
9775 cat >> confdefs.h <<\EOF
9776 #define HAVE_VA_COPY 1
9781 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
9782 echo "configure:9783: checking for C99 vsnprintf" >&5
9783 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
9784 echo $ac_n "(cached) $ac_c" 1>&6
9787 if test "$cross_compiling" = yes; then
9788 samba_cv_HAVE_C99_VSNPRINTF=cross
9790 cat > conftest.$ac_ext <<EOF
9791 #line 9792 "configure"
9792 #include "confdefs.h"
9794 #include <sys/types.h>
9796 void foo(const char *format, ...) {
9801 va_start(ap, format);
9802 len = vsnprintf(buf, 0, format, ap);
9804 if (len != 5) exit(1);
9806 va_start(ap, format);
9807 len = vsnprintf(0, 0, format, ap);
9809 if (len != 5) exit(1);
9811 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
9815 main() { foo("hello"); }
9818 if { (eval echo configure:9819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9820 samba_cv_HAVE_C99_VSNPRINTF=yes
9822 echo "configure: failed program was:" >&5
9823 cat conftest.$ac_ext >&5
9825 samba_cv_HAVE_C99_VSNPRINTF=no
9832 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
9833 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
9834 cat >> confdefs.h <<\EOF
9835 #define HAVE_C99_VSNPRINTF 1
9840 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9841 echo "configure:9842: checking for broken readdir" >&5
9842 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9843 echo $ac_n "(cached) $ac_c" 1>&6
9846 if test "$cross_compiling" = yes; then
9847 samba_cv_HAVE_BROKEN_READDIR=cross
9849 cat > conftest.$ac_ext <<EOF
9850 #line 9851 "configure"
9851 #include "confdefs.h"
9852 #include <sys/types.h>
9854 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9855 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9856 di->d_name[0] == 0) exit(0); exit(1);}
9858 if { (eval echo configure:9859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9860 samba_cv_HAVE_BROKEN_READDIR=yes
9862 echo "configure: failed program was:" >&5
9863 cat conftest.$ac_ext >&5
9865 samba_cv_HAVE_BROKEN_READDIR=no
9872 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9873 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
9874 cat >> confdefs.h <<\EOF
9875 #define HAVE_BROKEN_READDIR 1
9880 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9881 echo "configure:9882: checking for utimbuf" >&5
9882 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9883 echo $ac_n "(cached) $ac_c" 1>&6
9886 cat > conftest.$ac_ext <<EOF
9887 #line 9888 "configure"
9888 #include "confdefs.h"
9889 #include <sys/types.h>
9892 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9895 if { (eval echo configure:9896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9897 samba_cv_HAVE_UTIMBUF=yes
9899 echo "configure: failed program was:" >&5
9900 cat conftest.$ac_ext >&5
9902 samba_cv_HAVE_UTIMBUF=no
9907 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9908 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
9909 cat >> confdefs.h <<\EOF
9910 #define HAVE_UTIMBUF 1
9916 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
9918 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9919 echo "configure:9920: checking for $ac_func" >&5
9920 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9921 echo $ac_n "(cached) $ac_c" 1>&6
9923 cat > conftest.$ac_ext <<EOF
9924 #line 9925 "configure"
9925 #include "confdefs.h"
9926 /* System header to define __stub macros and hopefully few prototypes,
9927 which can conflict with char $ac_func(); below. */
9929 /* Override any gcc2 internal prototype to avoid an error. */
9930 /* We use char because int might match the return type of a gcc2
9931 builtin and then its argument prototype would still apply. */
9936 /* The GNU C library defines this for functions which it implements
9937 to always fail with ENOSYS. Some functions are actually named
9938 something starting with __ and the normal name is an alias. */
9939 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9947 if { (eval echo configure:9948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9949 eval "ac_cv_func_$ac_func=yes"
9951 echo "configure: failed program was:" >&5
9952 cat conftest.$ac_ext >&5
9954 eval "ac_cv_func_$ac_func=no"
9959 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9960 echo "$ac_t""yes" 1>&6
9961 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9962 cat >> confdefs.h <<EOF
9963 #define $ac_tr_func 1
9967 echo "$ac_t""no" 1>&6
9972 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9973 echo "configure:9974: checking for ut_name in utmp" >&5
9974 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9975 echo $ac_n "(cached) $ac_c" 1>&6
9978 cat > conftest.$ac_ext <<EOF
9979 #line 9980 "configure"
9980 #include "confdefs.h"
9981 #include <sys/types.h>
9984 struct utmp ut; ut.ut_name[0] = 'a';
9987 if { (eval echo configure:9988: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9989 samba_cv_HAVE_UT_UT_NAME=yes
9991 echo "configure: failed program was:" >&5
9992 cat conftest.$ac_ext >&5
9994 samba_cv_HAVE_UT_UT_NAME=no
9999 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
10000 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
10001 cat >> confdefs.h <<\EOF
10002 #define HAVE_UT_UT_NAME 1
10007 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
10008 echo "configure:10009: checking for ut_user in utmp" >&5
10009 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
10010 echo $ac_n "(cached) $ac_c" 1>&6
10013 cat > conftest.$ac_ext <<EOF
10014 #line 10015 "configure"
10015 #include "confdefs.h"
10016 #include <sys/types.h>
10019 struct utmp ut; ut.ut_user[0] = 'a';
10022 if { (eval echo configure:10023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10024 samba_cv_HAVE_UT_UT_USER=yes
10026 echo "configure: failed program was:" >&5
10027 cat conftest.$ac_ext >&5
10029 samba_cv_HAVE_UT_UT_USER=no
10034 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
10035 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
10036 cat >> confdefs.h <<\EOF
10037 #define HAVE_UT_UT_USER 1
10042 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
10043 echo "configure:10044: checking for ut_id in utmp" >&5
10044 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
10045 echo $ac_n "(cached) $ac_c" 1>&6
10048 cat > conftest.$ac_ext <<EOF
10049 #line 10050 "configure"
10050 #include "confdefs.h"
10051 #include <sys/types.h>
10054 struct utmp ut; ut.ut_id[0] = 'a';
10057 if { (eval echo configure:10058: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10059 samba_cv_HAVE_UT_UT_ID=yes
10061 echo "configure: failed program was:" >&5
10062 cat conftest.$ac_ext >&5
10064 samba_cv_HAVE_UT_UT_ID=no
10069 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
10070 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
10071 cat >> confdefs.h <<\EOF
10072 #define HAVE_UT_UT_ID 1
10077 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
10078 echo "configure:10079: checking for ut_host in utmp" >&5
10079 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
10080 echo $ac_n "(cached) $ac_c" 1>&6
10083 cat > conftest.$ac_ext <<EOF
10084 #line 10085 "configure"
10085 #include "confdefs.h"
10086 #include <sys/types.h>
10089 struct utmp ut; ut.ut_host[0] = 'a';
10092 if { (eval echo configure:10093: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10094 samba_cv_HAVE_UT_UT_HOST=yes
10096 echo "configure: failed program was:" >&5
10097 cat conftest.$ac_ext >&5
10099 samba_cv_HAVE_UT_UT_HOST=no
10104 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
10105 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
10106 cat >> confdefs.h <<\EOF
10107 #define HAVE_UT_UT_HOST 1
10112 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
10113 echo "configure:10114: checking for ut_time in utmp" >&5
10114 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
10115 echo $ac_n "(cached) $ac_c" 1>&6
10118 cat > conftest.$ac_ext <<EOF
10119 #line 10120 "configure"
10120 #include "confdefs.h"
10121 #include <sys/types.h>
10124 struct utmp ut; time_t t; ut.ut_time = t;
10127 if { (eval echo configure:10128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10129 samba_cv_HAVE_UT_UT_TIME=yes
10131 echo "configure: failed program was:" >&5
10132 cat conftest.$ac_ext >&5
10134 samba_cv_HAVE_UT_UT_TIME=no
10139 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
10140 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
10141 cat >> confdefs.h <<\EOF
10142 #define HAVE_UT_UT_TIME 1
10147 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
10148 echo "configure:10149: checking for ut_tv in utmp" >&5
10149 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
10150 echo $ac_n "(cached) $ac_c" 1>&6
10153 cat > conftest.$ac_ext <<EOF
10154 #line 10155 "configure"
10155 #include "confdefs.h"
10156 #include <sys/types.h>
10159 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
10162 if { (eval echo configure:10163: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10164 samba_cv_HAVE_UT_UT_TV=yes
10166 echo "configure: failed program was:" >&5
10167 cat conftest.$ac_ext >&5
10169 samba_cv_HAVE_UT_UT_TV=no
10174 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
10175 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
10176 cat >> confdefs.h <<\EOF
10177 #define HAVE_UT_UT_TV 1
10182 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
10183 echo "configure:10184: checking for ut_type in utmp" >&5
10184 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
10185 echo $ac_n "(cached) $ac_c" 1>&6
10188 cat > conftest.$ac_ext <<EOF
10189 #line 10190 "configure"
10190 #include "confdefs.h"
10191 #include <sys/types.h>
10194 struct utmp ut; ut.ut_type = 0;
10197 if { (eval echo configure:10198: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10199 samba_cv_HAVE_UT_UT_TYPE=yes
10201 echo "configure: failed program was:" >&5
10202 cat conftest.$ac_ext >&5
10204 samba_cv_HAVE_UT_UT_TYPE=no
10209 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
10210 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
10211 cat >> confdefs.h <<\EOF
10212 #define HAVE_UT_UT_TYPE 1
10217 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
10218 echo "configure:10219: checking for ut_pid in utmp" >&5
10219 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
10220 echo $ac_n "(cached) $ac_c" 1>&6
10223 cat > conftest.$ac_ext <<EOF
10224 #line 10225 "configure"
10225 #include "confdefs.h"
10226 #include <sys/types.h>
10229 struct utmp ut; ut.ut_pid = 0;
10232 if { (eval echo configure:10233: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10234 samba_cv_HAVE_UT_UT_PID=yes
10236 echo "configure: failed program was:" >&5
10237 cat conftest.$ac_ext >&5
10239 samba_cv_HAVE_UT_UT_PID=no
10244 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
10245 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
10246 cat >> confdefs.h <<\EOF
10247 #define HAVE_UT_UT_PID 1
10252 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
10253 echo "configure:10254: checking for ut_exit in utmp" >&5
10254 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
10255 echo $ac_n "(cached) $ac_c" 1>&6
10258 cat > conftest.$ac_ext <<EOF
10259 #line 10260 "configure"
10260 #include "confdefs.h"
10261 #include <sys/types.h>
10264 struct utmp ut; ut.ut_exit.e_exit = 0;
10267 if { (eval echo configure:10268: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10269 samba_cv_HAVE_UT_UT_EXIT=yes
10271 echo "configure: failed program was:" >&5
10272 cat conftest.$ac_ext >&5
10274 samba_cv_HAVE_UT_UT_EXIT=no
10279 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
10280 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
10281 cat >> confdefs.h <<\EOF
10282 #define HAVE_UT_UT_EXIT 1
10287 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
10288 echo "configure:10289: checking for ut_addr in utmp" >&5
10289 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
10290 echo $ac_n "(cached) $ac_c" 1>&6
10293 cat > conftest.$ac_ext <<EOF
10294 #line 10295 "configure"
10295 #include "confdefs.h"
10296 #include <sys/types.h>
10299 struct utmp ut; ut.ut_addr = 0;
10302 if { (eval echo configure:10303: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10304 samba_cv_HAVE_UT_UT_ADDR=yes
10306 echo "configure: failed program was:" >&5
10307 cat conftest.$ac_ext >&5
10309 samba_cv_HAVE_UT_UT_ADDR=no
10314 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
10315 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
10316 cat >> confdefs.h <<\EOF
10317 #define HAVE_UT_UT_ADDR 1
10322 if test x$ac_cv_func_pututline = xyes ; then
10323 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
10324 echo "configure:10325: checking whether pututline returns pointer" >&5
10325 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
10326 echo $ac_n "(cached) $ac_c" 1>&6
10329 cat > conftest.$ac_ext <<EOF
10330 #line 10331 "configure"
10331 #include "confdefs.h"
10332 #include <sys/types.h>
10335 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
10338 if { (eval echo configure:10339: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10340 samba_cv_PUTUTLINE_RETURNS_UTMP=yes
10342 echo "configure: failed program was:" >&5
10343 cat conftest.$ac_ext >&5
10345 samba_cv_PUTUTLINE_RETURNS_UTMP=no
10350 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
10351 if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
10352 cat >> confdefs.h <<\EOF
10353 #define PUTUTLINE_RETURNS_UTMP 1
10359 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
10360 echo "configure:10361: checking for ut_syslen in utmpx" >&5
10361 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
10362 echo $ac_n "(cached) $ac_c" 1>&6
10365 cat > conftest.$ac_ext <<EOF
10366 #line 10367 "configure"
10367 #include "confdefs.h"
10368 #include <sys/types.h>
10371 struct utmpx ux; ux.ut_syslen = 0;
10374 if { (eval echo configure:10375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10376 samba_cv_HAVE_UX_UT_SYSLEN=yes
10378 echo "configure: failed program was:" >&5
10379 cat conftest.$ac_ext >&5
10381 samba_cv_HAVE_UX_UT_SYSLEN=no
10386 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
10387 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
10388 cat >> confdefs.h <<\EOF
10389 #define HAVE_UX_UT_SYSLEN 1
10395 #################################################
10396 # check for libiconv support
10397 echo $ac_n "checking whether to use libiconv""... $ac_c" 1>&6
10398 echo "configure:10399: checking whether to use libiconv" >&5
10399 # Check whether --with-libiconv or --without-libiconv was given.
10400 if test "${with_libiconv+set}" = set; then
10401 withval="$with_libiconv"
10404 echo "$ac_t""no" 1>&6
10407 echo "$ac_t""yes" 1>&6
10408 CFLAGS="$CFLAGS -I$withval/include"
10409 LDFLAGS="$LDFLAGS -L$withval/lib"
10410 echo $ac_n "checking for iconv_open in -liconv""... $ac_c" 1>&6
10411 echo "configure:10412: checking for iconv_open in -liconv" >&5
10412 ac_lib_var=`echo iconv'_'iconv_open | sed 'y%./+-%__p_%'`
10413 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10414 echo $ac_n "(cached) $ac_c" 1>&6
10416 ac_save_LIBS="$LIBS"
10417 LIBS="-liconv $LIBS"
10418 cat > conftest.$ac_ext <<EOF
10419 #line 10420 "configure"
10420 #include "confdefs.h"
10421 /* Override any gcc2 internal prototype to avoid an error. */
10422 /* We use char because int might match the return type of a gcc2
10423 builtin and then its argument prototype would still apply. */
10430 if { (eval echo configure:10431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10432 eval "ac_cv_lib_$ac_lib_var=yes"
10434 echo "configure: failed program was:" >&5
10435 cat conftest.$ac_ext >&5
10437 eval "ac_cv_lib_$ac_lib_var=no"
10440 LIBS="$ac_save_LIBS"
10443 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10444 echo "$ac_t""yes" 1>&6
10445 ac_tr_lib=HAVE_LIB`echo iconv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10446 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10447 cat >> confdefs.h <<EOF
10448 #define $ac_tr_lib 1
10451 LIBS="-liconv $LIBS"
10454 echo "$ac_t""no" 1>&6
10457 cat >> confdefs.h <<EOF
10458 #define WITH_LIBICONV "${withval}"
10464 echo "$ac_t""no" 1>&6
10471 # check for iconv in libc
10472 echo $ac_n "checking for working iconv""... $ac_c" 1>&6
10473 echo "configure:10474: checking for working iconv" >&5
10474 if eval "test \"`echo '$''{'samba_cv_HAVE_NATIVE_ICONV'+set}'`\" = set"; then
10475 echo $ac_n "(cached) $ac_c" 1>&6
10478 if test "$cross_compiling" = yes; then
10479 samba_cv_HAVE_NATIVE_ICONV=cross
10481 cat > conftest.$ac_ext <<EOF
10482 #line 10483 "configure"
10483 #include "confdefs.h"
10487 iconv_t cd = iconv_open("ASCII", "UCS-2LE");
10488 if (cd == 0 || cd == (iconv_t)-1) return -1;
10493 if { (eval echo configure:10494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10495 samba_cv_HAVE_NATIVE_ICONV=yes
10497 echo "configure: failed program was:" >&5
10498 cat conftest.$ac_ext >&5
10500 samba_cv_HAVE_NATIVE_ICONV=no
10507 echo "$ac_t""$samba_cv_HAVE_NATIVE_ICONV" 1>&6
10508 if test x"$samba_cv_HAVE_NATIVE_ICONV" = x"yes"; then
10509 cat >> confdefs.h <<\EOF
10510 #define HAVE_NATIVE_ICONV 1
10516 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
10517 echo "configure:10518: checking for Linux kernel oplocks" >&5
10518 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
10519 echo $ac_n "(cached) $ac_c" 1>&6
10522 if test "$cross_compiling" = yes; then
10523 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
10525 cat > conftest.$ac_ext <<EOF
10526 #line 10527 "configure"
10527 #include "confdefs.h"
10529 #include <sys/types.h>
10532 #define F_GETLEASE 1025
10535 int fd = open("/dev/null", O_RDONLY);
10536 return fcntl(fd, F_GETLEASE, 0) == -1;
10540 if { (eval echo configure:10541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10542 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
10544 echo "configure: failed program was:" >&5
10545 cat conftest.$ac_ext >&5
10547 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
10554 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
10555 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
10556 cat >> confdefs.h <<\EOF
10557 #define HAVE_KERNEL_OPLOCKS_LINUX 1
10562 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
10563 echo "configure:10564: checking for kernel change notify support" >&5
10564 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
10565 echo $ac_n "(cached) $ac_c" 1>&6
10568 if test "$cross_compiling" = yes; then
10569 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
10571 cat > conftest.$ac_ext <<EOF
10572 #line 10573 "configure"
10573 #include "confdefs.h"
10575 #include <sys/types.h>
10577 #include <signal.h>
10579 #define F_NOTIFY 1026
10582 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
10586 if { (eval echo configure:10587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10588 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
10590 echo "configure: failed program was:" >&5
10591 cat conftest.$ac_ext >&5
10593 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
10600 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
10601 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes"; then
10602 cat >> confdefs.h <<\EOF
10603 #define HAVE_KERNEL_CHANGE_NOTIFY 1
10608 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
10609 echo "configure:10610: checking for kernel share modes" >&5
10610 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
10611 echo $ac_n "(cached) $ac_c" 1>&6
10614 if test "$cross_compiling" = yes; then
10615 samba_cv_HAVE_KERNEL_SHARE_MODES=cross
10617 cat > conftest.$ac_ext <<EOF
10618 #line 10619 "configure"
10619 #include "confdefs.h"
10621 #include <sys/types.h>
10623 #include <signal.h>
10624 #include <sys/file.h>
10626 #define LOCK_MAND 32
10627 #define LOCK_READ 64
10630 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
10634 if { (eval echo configure:10635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10636 samba_cv_HAVE_KERNEL_SHARE_MODES=yes
10638 echo "configure: failed program was:" >&5
10639 cat conftest.$ac_ext >&5
10641 samba_cv_HAVE_KERNEL_SHARE_MODES=no
10648 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
10649 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
10650 cat >> confdefs.h <<\EOF
10651 #define HAVE_KERNEL_SHARE_MODES 1
10659 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
10660 echo "configure:10661: checking for IRIX kernel oplock type definitions" >&5
10661 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
10662 echo $ac_n "(cached) $ac_c" 1>&6
10665 cat > conftest.$ac_ext <<EOF
10666 #line 10667 "configure"
10667 #include "confdefs.h"
10668 #include <sys/types.h>
10671 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
10674 if { (eval echo configure:10675: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10676 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
10678 echo "configure: failed program was:" >&5
10679 cat conftest.$ac_ext >&5
10681 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
10686 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
10687 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
10688 cat >> confdefs.h <<\EOF
10689 #define HAVE_KERNEL_OPLOCKS_IRIX 1
10694 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
10695 echo "configure:10696: checking for irix specific capabilities" >&5
10696 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
10697 echo $ac_n "(cached) $ac_c" 1>&6
10700 if test "$cross_compiling" = yes; then
10701 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
10703 cat > conftest.$ac_ext <<EOF
10704 #line 10705 "configure"
10705 #include "confdefs.h"
10706 #include <sys/types.h>
10707 #include <sys/capability.h>
10710 if ((cap = cap_get_proc()) == NULL)
10712 cap->cap_effective |= CAP_NETWORK_MGT;
10713 cap->cap_inheritable |= CAP_NETWORK_MGT;
10719 if { (eval echo configure:10720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10721 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
10723 echo "configure: failed program was:" >&5
10724 cat conftest.$ac_ext >&5
10726 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
10733 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
10734 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
10735 cat >> confdefs.h <<\EOF
10736 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
10742 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
10743 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
10746 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10747 echo "configure:10748: checking for int16 typedef included by rpc/rpc.h" >&5
10748 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10749 echo $ac_n "(cached) $ac_c" 1>&6
10752 cat > conftest.$ac_ext <<EOF
10753 #line 10754 "configure"
10754 #include "confdefs.h"
10755 #include <sys/types.h>
10756 #if defined(HAVE_RPC_RPC_H)
10757 #include <rpc/rpc.h>
10763 if { (eval echo configure:10764: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10765 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
10767 echo "configure: failed program was:" >&5
10768 cat conftest.$ac_ext >&5
10770 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
10775 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
10776 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
10777 cat >> confdefs.h <<\EOF
10778 #define HAVE_INT16_FROM_RPC_RPC_H 1
10783 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10784 echo "configure:10785: checking for uint16 typedef included by rpc/rpc.h" >&5
10785 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10786 echo $ac_n "(cached) $ac_c" 1>&6
10789 cat > conftest.$ac_ext <<EOF
10790 #line 10791 "configure"
10791 #include "confdefs.h"
10792 #include <sys/types.h>
10793 #if defined(HAVE_RPC_RPC_H)
10794 #include <rpc/rpc.h>
10800 if { (eval echo configure:10801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10802 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
10804 echo "configure: failed program was:" >&5
10805 cat conftest.$ac_ext >&5
10807 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
10812 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
10813 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
10814 cat >> confdefs.h <<\EOF
10815 #define HAVE_UINT16_FROM_RPC_RPC_H 1
10820 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10821 echo "configure:10822: checking for int32 typedef included by rpc/rpc.h" >&5
10822 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10823 echo $ac_n "(cached) $ac_c" 1>&6
10826 cat > conftest.$ac_ext <<EOF
10827 #line 10828 "configure"
10828 #include "confdefs.h"
10829 #include <sys/types.h>
10830 #if defined(HAVE_RPC_RPC_H)
10831 #include <rpc/rpc.h>
10837 if { (eval echo configure:10838: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10839 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
10841 echo "configure: failed program was:" >&5
10842 cat conftest.$ac_ext >&5
10844 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
10849 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
10850 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
10851 cat >> confdefs.h <<\EOF
10852 #define HAVE_INT32_FROM_RPC_RPC_H 1
10857 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10858 echo "configure:10859: checking for uint32 typedef included by rpc/rpc.h" >&5
10859 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10860 echo $ac_n "(cached) $ac_c" 1>&6
10863 cat > conftest.$ac_ext <<EOF
10864 #line 10865 "configure"
10865 #include "confdefs.h"
10866 #include <sys/types.h>
10867 #if defined(HAVE_RPC_RPC_H)
10868 #include <rpc/rpc.h>
10874 if { (eval echo configure:10875: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10876 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
10878 echo "configure: failed program was:" >&5
10879 cat conftest.$ac_ext >&5
10881 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
10886 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
10887 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
10888 cat >> confdefs.h <<\EOF
10889 #define HAVE_UINT32_FROM_RPC_RPC_H 1
10895 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
10896 echo "configure:10897: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
10897 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
10898 echo $ac_n "(cached) $ac_c" 1>&6
10901 cat > conftest.$ac_ext <<EOF
10902 #line 10903 "configure"
10903 #include "confdefs.h"
10904 #include <sys/types.h>
10905 #ifdef HAVE_SYS_SECURITY_H
10906 #include <sys/security.h>
10908 #endif /* HAVE_SYS_SECURITY_H */
10909 #if defined(HAVE_RPC_RPC_H)
10910 #include <rpc/rpc.h>
10916 if { (eval echo configure:10917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10918 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
10920 echo "configure: failed program was:" >&5
10921 cat conftest.$ac_ext >&5
10923 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
10928 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
10929 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
10930 cat >> confdefs.h <<\EOF
10931 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
10936 echo $ac_n "checking for test routines""... $ac_c" 1>&6
10937 echo "configure:10938: checking for test routines" >&5
10938 if test "$cross_compiling" = yes; then
10939 echo "configure: warning: cannot run when cross-compiling" 1>&2
10941 cat > conftest.$ac_ext <<EOF
10942 #line 10943 "configure"
10943 #include "confdefs.h"
10944 #include "${srcdir-.}/tests/trivial.c"
10946 if { (eval echo configure:10947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10948 echo "$ac_t""yes" 1>&6
10950 echo "configure: failed program was:" >&5
10951 cat conftest.$ac_ext >&5
10953 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10959 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10960 echo "configure:10961: checking for ftruncate extend" >&5
10961 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10962 echo $ac_n "(cached) $ac_c" 1>&6
10965 if test "$cross_compiling" = yes; then
10966 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
10968 cat > conftest.$ac_ext <<EOF
10969 #line 10970 "configure"
10970 #include "confdefs.h"
10971 #include "${srcdir-.}/tests/ftruncate.c"
10973 if { (eval echo configure:10974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10975 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
10977 echo "configure: failed program was:" >&5
10978 cat conftest.$ac_ext >&5
10980 samba_cv_HAVE_FTRUNCATE_EXTEND=no
10987 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10988 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
10989 cat >> confdefs.h <<\EOF
10990 #define HAVE_FTRUNCATE_EXTEND 1
10995 echo $ac_n "checking for AF_LOCAL socket support""... $ac_c" 1>&6
10996 echo "configure:10997: checking for AF_LOCAL socket support" >&5
10997 if eval "test \"`echo '$''{'samba_cv_HAVE_WORKING_AF_LOCAL'+set}'`\" = set"; then
10998 echo $ac_n "(cached) $ac_c" 1>&6
11001 if test "$cross_compiling" = yes; then
11002 samba_cv_HAVE_WORKING_AF_LOCAL=cross
11004 cat > conftest.$ac_ext <<EOF
11005 #line 11006 "configure"
11006 #include "confdefs.h"
11007 #include "${srcdir-.}/tests/unixsock.c"
11009 if { (eval echo configure:11010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11011 samba_cv_HAVE_WORKING_AF_LOCAL=yes
11013 echo "configure: failed program was:" >&5
11014 cat conftest.$ac_ext >&5
11016 samba_cv_HAVE_WORKING_AF_LOCAL=no
11023 echo "$ac_t""$samba_cv_HAVE_WORKING_AF_LOCAL" 1>&6
11024 if test x"$samba_cv_HAVE_WORKING_AF_LOCAL" != xno
11026 cat >> confdefs.h <<\EOF
11027 #define HAVE_WORKING_AF_LOCAL 1
11032 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
11033 echo "configure:11034: checking for broken getgroups" >&5
11034 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
11035 echo $ac_n "(cached) $ac_c" 1>&6
11038 if test "$cross_compiling" = yes; then
11039 samba_cv_HAVE_BROKEN_GETGROUPS=cross
11041 cat > conftest.$ac_ext <<EOF
11042 #line 11043 "configure"
11043 #include "confdefs.h"
11044 #include "${srcdir-.}/tests/getgroups.c"
11046 if { (eval echo configure:11047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11048 samba_cv_HAVE_BROKEN_GETGROUPS=yes
11050 echo "configure: failed program was:" >&5
11051 cat conftest.$ac_ext >&5
11053 samba_cv_HAVE_BROKEN_GETGROUPS=no
11060 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
11061 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
11062 cat >> confdefs.h <<\EOF
11063 #define HAVE_BROKEN_GETGROUPS 1
11068 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
11069 echo "configure:11070: checking whether getpass should be replaced" >&5
11070 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
11071 echo $ac_n "(cached) $ac_c" 1>&6
11074 SAVE_CPPFLAGS="$CPPFLAGS"
11075 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/popt -I${srcdir-.}/smbwrapper"
11076 cat > conftest.$ac_ext <<EOF
11077 #line 11078 "configure"
11078 #include "confdefs.h"
11080 #define REPLACE_GETPASS 1
11081 #define NO_CONFIG_H 1
11082 #define main dont_declare_main
11083 #include "${srcdir-.}/lib/getsmbpass.c"
11090 if { (eval echo configure:11091: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11092 samba_cv_REPLACE_GETPASS=yes
11094 echo "configure: failed program was:" >&5
11095 cat conftest.$ac_ext >&5
11097 samba_cv_REPLACE_GETPASS=no
11100 CPPFLAGS="$SAVE_CPPFLAGS"
11104 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
11105 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
11106 cat >> confdefs.h <<\EOF
11107 #define REPLACE_GETPASS 1
11112 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
11113 echo "configure:11114: checking for broken inet_ntoa" >&5
11114 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
11115 echo $ac_n "(cached) $ac_c" 1>&6
11118 if test "$cross_compiling" = yes; then
11119 samba_cv_REPLACE_INET_NTOA=cross
11121 cat > conftest.$ac_ext <<EOF
11122 #line 11123 "configure"
11123 #include "confdefs.h"
11126 #include <sys/types.h>
11127 #include <netinet/in.h>
11128 #ifdef HAVE_ARPA_INET_H
11129 #include <arpa/inet.h>
11131 main() { struct in_addr ip; ip.s_addr = 0x12345678;
11132 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
11133 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
11136 if { (eval echo configure:11137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11138 samba_cv_REPLACE_INET_NTOA=yes
11140 echo "configure: failed program was:" >&5
11141 cat conftest.$ac_ext >&5
11143 samba_cv_REPLACE_INET_NTOA=no
11150 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
11151 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
11152 cat >> confdefs.h <<\EOF
11153 #define REPLACE_INET_NTOA 1
11158 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
11159 echo "configure:11160: checking for secure mkstemp" >&5
11160 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
11161 echo $ac_n "(cached) $ac_c" 1>&6
11164 if test "$cross_compiling" = yes; then
11165 samba_cv_HAVE_SECURE_MKSTEMP=cross
11167 cat > conftest.$ac_ext <<EOF
11168 #line 11169 "configure"
11169 #include "confdefs.h"
11170 #include <stdlib.h>
11171 #include <sys/types.h>
11172 #include <sys/stat.h>
11173 #include <unistd.h>
11176 char tpl[20]="/tmp/test.XXXXXX";
11177 int fd = mkstemp(tpl);
11178 if (fd == -1) exit(1);
11180 if (fstat(fd, &st) != 0) exit(1);
11181 if ((st.st_mode & 0777) != 0600) exit(1);
11185 if { (eval echo configure:11186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11187 samba_cv_HAVE_SECURE_MKSTEMP=yes
11189 echo "configure: failed program was:" >&5
11190 cat conftest.$ac_ext >&5
11192 samba_cv_HAVE_SECURE_MKSTEMP=no
11199 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
11200 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
11201 cat >> confdefs.h <<\EOF
11202 #define HAVE_SECURE_MKSTEMP 1
11207 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
11208 echo "configure:11209: checking for sysconf(_SC_NGROUPS_MAX)" >&5
11209 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
11210 echo $ac_n "(cached) $ac_c" 1>&6
11213 if test "$cross_compiling" = yes; then
11214 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
11216 cat > conftest.$ac_ext <<EOF
11217 #line 11218 "configure"
11218 #include "confdefs.h"
11219 #include <unistd.h>
11220 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
11222 if { (eval echo configure:11223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11224 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
11226 echo "configure: failed program was:" >&5
11227 cat conftest.$ac_ext >&5
11229 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
11236 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
11237 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
11238 cat >> confdefs.h <<\EOF
11239 #define SYSCONF_SC_NGROUPS_MAX 1
11244 echo $ac_n "checking for root""... $ac_c" 1>&6
11245 echo "configure:11246: checking for root" >&5
11246 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
11247 echo $ac_n "(cached) $ac_c" 1>&6
11250 if test "$cross_compiling" = yes; then
11251 samba_cv_HAVE_ROOT=cross
11253 cat > conftest.$ac_ext <<EOF
11254 #line 11255 "configure"
11255 #include "confdefs.h"
11256 main() { exit(getuid() != 0); }
11258 if { (eval echo configure:11259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11260 samba_cv_HAVE_ROOT=yes
11262 echo "configure: failed program was:" >&5
11263 cat conftest.$ac_ext >&5
11265 samba_cv_HAVE_ROOT=no
11272 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
11273 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
11274 cat >> confdefs.h <<\EOF
11275 #define HAVE_ROOT 1
11279 echo "configure: warning: running as non-root will disable some tests" 1>&2
11283 # look for a method of finding the list of network interfaces
11285 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
11286 echo "configure:11287: checking for iface AIX" >&5
11287 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
11288 echo $ac_n "(cached) $ac_c" 1>&6
11291 if test "$cross_compiling" = yes; then
11292 samba_cv_HAVE_IFACE_AIX=cross
11294 cat > conftest.$ac_ext <<EOF
11295 #line 11296 "configure"
11296 #include "confdefs.h"
11298 #define HAVE_IFACE_AIX 1
11299 #define AUTOCONF_TEST 1
11300 #include "confdefs.h"
11301 #include "${srcdir-.}/lib/interfaces.c"
11303 if { (eval echo configure:11304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11305 samba_cv_HAVE_IFACE_AIX=yes
11307 echo "configure: failed program was:" >&5
11308 cat conftest.$ac_ext >&5
11310 samba_cv_HAVE_IFACE_AIX=no
11317 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
11318 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
11319 iface=yes;cat >> confdefs.h <<\EOF
11320 #define HAVE_IFACE_AIX 1
11325 if test $iface = no; then
11326 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
11327 echo "configure:11328: checking for iface ifconf" >&5
11328 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
11329 echo $ac_n "(cached) $ac_c" 1>&6
11332 if test "$cross_compiling" = yes; then
11333 samba_cv_HAVE_IFACE_IFCONF=cross
11335 cat > conftest.$ac_ext <<EOF
11336 #line 11337 "configure"
11337 #include "confdefs.h"
11339 #define HAVE_IFACE_IFCONF 1
11340 #define AUTOCONF_TEST 1
11341 #include "confdefs.h"
11342 #include "${srcdir-.}/lib/interfaces.c"
11344 if { (eval echo configure:11345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11346 samba_cv_HAVE_IFACE_IFCONF=yes
11348 echo "configure: failed program was:" >&5
11349 cat conftest.$ac_ext >&5
11351 samba_cv_HAVE_IFACE_IFCONF=no
11358 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
11359 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
11360 iface=yes;cat >> confdefs.h <<\EOF
11361 #define HAVE_IFACE_IFCONF 1
11367 if test $iface = no; then
11368 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
11369 echo "configure:11370: checking for iface ifreq" >&5
11370 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
11371 echo $ac_n "(cached) $ac_c" 1>&6
11374 if test "$cross_compiling" = yes; then
11375 samba_cv_HAVE_IFACE_IFREQ=cross
11377 cat > conftest.$ac_ext <<EOF
11378 #line 11379 "configure"
11379 #include "confdefs.h"
11381 #define HAVE_IFACE_IFREQ 1
11382 #define AUTOCONF_TEST 1
11383 #include "confdefs.h"
11384 #include "${srcdir-.}/lib/interfaces.c"
11386 if { (eval echo configure:11387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11388 samba_cv_HAVE_IFACE_IFREQ=yes
11390 echo "configure: failed program was:" >&5
11391 cat conftest.$ac_ext >&5
11393 samba_cv_HAVE_IFACE_IFREQ=no
11400 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
11401 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
11402 iface=yes;cat >> confdefs.h <<\EOF
11403 #define HAVE_IFACE_IFREQ 1
11410 ################################################
11411 # look for a method of setting the effective uid
11413 if test $seteuid = no; then
11414 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
11415 echo "configure:11416: checking for setresuid" >&5
11416 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
11417 echo $ac_n "(cached) $ac_c" 1>&6
11420 if test "$cross_compiling" = yes; then
11421 samba_cv_USE_SETRESUID=cross
11423 cat > conftest.$ac_ext <<EOF
11424 #line 11425 "configure"
11425 #include "confdefs.h"
11427 #define AUTOCONF_TEST 1
11428 #define USE_SETRESUID 1
11429 #include "confdefs.h"
11430 #include "${srcdir-.}/lib/util_sec.c"
11432 if { (eval echo configure:11433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11434 samba_cv_USE_SETRESUID=yes
11436 echo "configure: failed program was:" >&5
11437 cat conftest.$ac_ext >&5
11439 samba_cv_USE_SETRESUID=no
11446 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
11447 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
11448 seteuid=yes;cat >> confdefs.h <<\EOF
11449 #define USE_SETRESUID 1
11456 if test $seteuid = no; then
11457 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
11458 echo "configure:11459: checking for setreuid" >&5
11459 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
11460 echo $ac_n "(cached) $ac_c" 1>&6
11463 if test "$cross_compiling" = yes; then
11464 samba_cv_USE_SETREUID=cross
11466 cat > conftest.$ac_ext <<EOF
11467 #line 11468 "configure"
11468 #include "confdefs.h"
11470 #define AUTOCONF_TEST 1
11471 #define USE_SETREUID 1
11472 #include "confdefs.h"
11473 #include "${srcdir-.}/lib/util_sec.c"
11475 if { (eval echo configure:11476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11477 samba_cv_USE_SETREUID=yes
11479 echo "configure: failed program was:" >&5
11480 cat conftest.$ac_ext >&5
11482 samba_cv_USE_SETREUID=no
11489 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
11490 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
11491 seteuid=yes;cat >> confdefs.h <<\EOF
11492 #define USE_SETREUID 1
11498 if test $seteuid = no; then
11499 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
11500 echo "configure:11501: checking for seteuid" >&5
11501 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
11502 echo $ac_n "(cached) $ac_c" 1>&6
11505 if test "$cross_compiling" = yes; then
11506 samba_cv_USE_SETEUID=cross
11508 cat > conftest.$ac_ext <<EOF
11509 #line 11510 "configure"
11510 #include "confdefs.h"
11512 #define AUTOCONF_TEST 1
11513 #define USE_SETEUID 1
11514 #include "confdefs.h"
11515 #include "${srcdir-.}/lib/util_sec.c"
11517 if { (eval echo configure:11518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11519 samba_cv_USE_SETEUID=yes
11521 echo "configure: failed program was:" >&5
11522 cat conftest.$ac_ext >&5
11524 samba_cv_USE_SETEUID=no
11531 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
11532 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
11533 seteuid=yes;cat >> confdefs.h <<\EOF
11534 #define USE_SETEUID 1
11540 if test $seteuid = no; then
11541 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
11542 echo "configure:11543: checking for setuidx" >&5
11543 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
11544 echo $ac_n "(cached) $ac_c" 1>&6
11547 if test "$cross_compiling" = yes; then
11548 samba_cv_USE_SETUIDX=cross
11550 cat > conftest.$ac_ext <<EOF
11551 #line 11552 "configure"
11552 #include "confdefs.h"
11554 #define AUTOCONF_TEST 1
11555 #define USE_SETUIDX 1
11556 #include "confdefs.h"
11557 #include "${srcdir-.}/lib/util_sec.c"
11559 if { (eval echo configure:11560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11561 samba_cv_USE_SETUIDX=yes
11563 echo "configure: failed program was:" >&5
11564 cat conftest.$ac_ext >&5
11566 samba_cv_USE_SETUIDX=no
11573 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
11574 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
11575 seteuid=yes;cat >> confdefs.h <<\EOF
11576 #define USE_SETUIDX 1
11583 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
11584 echo "configure:11585: checking for working mmap" >&5
11585 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
11586 echo $ac_n "(cached) $ac_c" 1>&6
11589 if test "$cross_compiling" = yes; then
11590 samba_cv_HAVE_MMAP=cross
11592 cat > conftest.$ac_ext <<EOF
11593 #line 11594 "configure"
11594 #include "confdefs.h"
11595 #include "${srcdir-.}/tests/shared_mmap.c"
11597 if { (eval echo configure:11598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11599 samba_cv_HAVE_MMAP=yes
11601 echo "configure: failed program was:" >&5
11602 cat conftest.$ac_ext >&5
11604 samba_cv_HAVE_MMAP=no
11611 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
11612 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
11613 cat >> confdefs.h <<\EOF
11614 #define HAVE_MMAP 1
11619 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
11620 echo "configure:11621: checking for ftruncate needs root" >&5
11621 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
11622 echo $ac_n "(cached) $ac_c" 1>&6
11625 if test "$cross_compiling" = yes; then
11626 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
11628 cat > conftest.$ac_ext <<EOF
11629 #line 11630 "configure"
11630 #include "confdefs.h"
11631 #include "${srcdir-.}/tests/ftruncroot.c"
11633 if { (eval echo configure:11634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11635 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
11637 echo "configure: failed program was:" >&5
11638 cat conftest.$ac_ext >&5
11640 samba_cv_FTRUNCATE_NEEDS_ROOT=no
11647 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
11648 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
11649 cat >> confdefs.h <<\EOF
11650 #define FTRUNCATE_NEEDS_ROOT 1
11655 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
11656 echo "configure:11657: checking for fcntl locking" >&5
11657 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
11658 echo $ac_n "(cached) $ac_c" 1>&6
11661 if test "$cross_compiling" = yes; then
11662 samba_cv_HAVE_FCNTL_LOCK=cross
11664 cat > conftest.$ac_ext <<EOF
11665 #line 11666 "configure"
11666 #include "confdefs.h"
11667 #include "${srcdir-.}/tests/fcntl_lock.c"
11669 if { (eval echo configure:11670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11671 samba_cv_HAVE_FCNTL_LOCK=yes
11673 echo "configure: failed program was:" >&5
11674 cat conftest.$ac_ext >&5
11676 samba_cv_HAVE_FCNTL_LOCK=no
11683 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
11684 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
11685 cat >> confdefs.h <<\EOF
11686 #define HAVE_FCNTL_LOCK 1
11691 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
11692 echo "configure:11693: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
11693 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
11694 echo $ac_n "(cached) $ac_c" 1>&6
11697 if test "$cross_compiling" = yes; then
11698 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
11700 cat > conftest.$ac_ext <<EOF
11701 #line 11702 "configure"
11702 #include "confdefs.h"
11703 #include "${srcdir-.}/tests/fcntl_lock64.c"
11705 if { (eval echo configure:11706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11707 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
11709 echo "configure: failed program was:" >&5
11710 cat conftest.$ac_ext >&5
11712 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
11719 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
11720 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
11721 cat >> confdefs.h <<\EOF
11722 #define HAVE_BROKEN_FCNTL64_LOCKS 1
11729 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
11730 echo "configure:11731: checking for 64 bit fcntl locking" >&5
11731 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
11732 echo $ac_n "(cached) $ac_c" 1>&6
11735 if test "$cross_compiling" = yes; then
11736 samba_cv_HAVE_STRUCT_FLOCK64=cross
11738 cat > conftest.$ac_ext <<EOF
11739 #line 11740 "configure"
11740 #include "confdefs.h"
11742 #if defined(HAVE_UNISTD_H)
11743 #include <unistd.h>
11746 #include <stdlib.h>
11748 #ifdef HAVE_FCNTL_H
11752 #ifdef HAVE_SYS_FCNTL_H
11753 #include <sys/fcntl.h>
11755 main() { struct flock64 fl64;
11756 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
11763 if { (eval echo configure:11764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11765 samba_cv_HAVE_STRUCT_FLOCK64=yes
11767 echo "configure: failed program was:" >&5
11768 cat conftest.$ac_ext >&5
11770 samba_cv_HAVE_STRUCT_FLOCK64=no
11777 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
11779 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
11780 cat >> confdefs.h <<\EOF
11781 #define HAVE_STRUCT_FLOCK64 1
11787 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
11788 echo "configure:11789: checking for st_blocks in struct stat" >&5
11789 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLOCKS'+set}'`\" = set"; then
11790 echo $ac_n "(cached) $ac_c" 1>&6
11793 cat > conftest.$ac_ext <<EOF
11794 #line 11795 "configure"
11795 #include "confdefs.h"
11796 #include <sys/types.h>
11797 #include <sys/stat.h>
11798 #include <unistd.h>
11800 struct stat st; st.st_blocks = 0;
11803 if { (eval echo configure:11804: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11805 samba_cv_HAVE_STAT_ST_BLOCKS=yes
11807 echo "configure: failed program was:" >&5
11808 cat conftest.$ac_ext >&5
11810 samba_cv_HAVE_STAT_ST_BLOCKS=no
11815 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLOCKS" 1>&6
11816 if test x"$samba_cv_HAVE_STAT_ST_BLOCKS" = x"yes"; then
11817 cat >> confdefs.h <<\EOF
11818 #define HAVE_STAT_ST_BLOCKS 1
11823 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
11824 echo "configure:11825: checking for st_blksize in struct stat" >&5
11825 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLKSIZE'+set}'`\" = set"; then
11826 echo $ac_n "(cached) $ac_c" 1>&6
11829 cat > conftest.$ac_ext <<EOF
11830 #line 11831 "configure"
11831 #include "confdefs.h"
11832 #include <sys/types.h>
11833 #include <sys/stat.h>
11834 #include <unistd.h>
11836 struct stat st; st.st_blksize = 0;
11839 if { (eval echo configure:11840: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11841 samba_cv_HAVE_STAT_ST_BLKSIZE=yes
11843 echo "configure: failed program was:" >&5
11844 cat conftest.$ac_ext >&5
11846 samba_cv_HAVE_STAT_ST_BLKSIZE=no
11851 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLKSIZE" 1>&6
11852 if test x"$samba_cv_HAVE_STAT_ST_BLKSIZE" = x"yes"; then
11853 cat >> confdefs.h <<\EOF
11854 #define HAVE_STAT_ST_BLKSIZE 1
11861 echo $ac_n "checking for broken RedHat 7.2 system header files""... $ac_c" 1>&6
11862 echo "configure:11863: checking for broken RedHat 7.2 system header files" >&5
11863 if eval "test \"`echo '$''{'samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS'+set}'`\" = set"; then
11864 echo $ac_n "(cached) $ac_c" 1>&6
11867 cat > conftest.$ac_ext <<EOF
11868 #line 11869 "configure"
11869 #include "confdefs.h"
11871 #ifdef HAVE_SYS_VFS_H
11872 #include <sys/vfs.h>
11874 #ifdef HAVE_SYS_CAPABILITY_H
11875 #include <sys/capability.h>
11882 if { (eval echo configure:11883: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11884 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=no
11886 echo "configure: failed program was:" >&5
11887 cat conftest.$ac_ext >&5
11889 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=yes
11894 echo "$ac_t""$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" 1>&6
11895 if test x"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x"yes"; then
11896 cat >> confdefs.h <<\EOF
11897 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
11904 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
11905 echo "configure:11906: checking for broken nisplus include files" >&5
11906 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
11907 echo $ac_n "(cached) $ac_c" 1>&6
11910 cat > conftest.$ac_ext <<EOF
11911 #line 11912 "configure"
11912 #include "confdefs.h"
11913 #include <sys/acl.h>
11914 #if defined(HAVE_RPCSVC_NIS_H)
11915 #include <rpcsvc/nis.h>
11921 if { (eval echo configure:11922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11923 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
11925 echo "configure: failed program was:" >&5
11926 cat conftest.$ac_ext >&5
11928 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
11933 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
11934 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
11935 cat >> confdefs.h <<\EOF
11936 #define BROKEN_NISPLUS_INCLUDE_FILES 1
11942 #################################################
11943 # check for smbwrapper support
11944 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
11945 echo "configure:11946: checking whether to use smbwrapper" >&5
11946 # Check whether --with-smbwrapper or --without-smbwrapper was given.
11947 if test "${with_smbwrapper+set}" = set; then
11948 withval="$with_smbwrapper"
11951 echo "$ac_t""yes" 1>&6
11952 cat >> confdefs.h <<\EOF
11953 #define WITH_SMBWRAPPER 1
11956 WRAPPROG="bin/smbsh"
11957 WRAP="bin/smbwrapper.$SHLIBEXT"
11959 if test x$ATTEMPT_WRAP32_BUILD = x; then
11962 WRAP32=bin/smbwrapper.32.$SHLIBEXT
11965 # Conditions under which smbwrapper should not be built.
11967 if test x$PICFLAG = x; then
11968 echo No support for PIC code - disabling smbwrapper and smbsh
11972 elif test x$ac_cv_func_syscall = xno; then
11973 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
11980 echo "$ac_t""no" 1>&6
11984 echo "$ac_t""no" 1>&6
11989 #################################################
11990 # check for AFS clear-text auth support
11991 echo $ac_n "checking whether to use AFS clear-text auth""... $ac_c" 1>&6
11992 echo "configure:11993: checking whether to use AFS clear-text auth" >&5
11993 # Check whether --with-afs or --without-afs was given.
11994 if test "${with_afs+set}" = set; then
11995 withval="$with_afs"
11998 echo "$ac_t""yes" 1>&6
11999 cat >> confdefs.h <<\EOF
12005 echo "$ac_t""no" 1>&6
12009 echo "$ac_t""no" 1>&6
12015 #################################################
12016 # check for the DFS clear-text auth system
12017 echo $ac_n "checking whether to use DFS clear-text auth""... $ac_c" 1>&6
12018 echo "configure:12019: checking whether to use DFS clear-text auth" >&5
12019 # Check whether --with-dfs or --without-dfs was given.
12020 if test "${with_dfs+set}" = set; then
12021 withval="$with_dfs"
12024 echo "$ac_t""yes" 1>&6
12025 cat >> confdefs.h <<\EOF
12031 echo "$ac_t""no" 1>&6
12035 echo "$ac_t""no" 1>&6
12041 #################################################
12042 # see if this box has the RedHat location for kerberos
12043 echo $ac_n "checking for /usr/kerberos""... $ac_c" 1>&6
12044 echo "configure:12045: checking for /usr/kerberos" >&5
12045 if test -d /usr/kerberos; then
12046 LDFLAGS="$LDFLAGS -L/usr/kerberos/lib"
12047 CFLAGS="$CFLAGS -I/usr/kerberos/include"
12048 CPPFLAGS="$CPPFLAGS -I/usr/kerberos/include"
12049 echo "$ac_t""yes" 1>&6
12051 echo "$ac_t""no" 1>&6
12054 #################################################
12055 # check for location of Kerberos 5 install
12056 echo $ac_n "checking for kerberos 5 install path""... $ac_c" 1>&6
12057 echo "configure:12058: checking for kerberos 5 install path" >&5
12058 # Check whether --with-krb5 or --without-krb5 was given.
12059 if test "${with_krb5+set}" = set; then
12060 withval="$with_krb5"
12063 echo "$ac_t""no" 1>&6
12066 echo "$ac_t""yes" 1>&6
12067 LIBS="$LIBS -lkrb5"
12068 CFLAGS="$CFLAGS -I$withval/include"
12069 CPPFLAGS="$CPPFLAGS -I$withval/include"
12070 LDFLAGS="$LDFLAGS -L$withval/lib"
12074 echo "$ac_t""no" 1>&6
12079 # now check for krb5.h. Some systems have the libraries without the headers!
12080 # note that this check is done here to allow for different kerberos
12082 for ac_hdr in krb5.h
12084 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12085 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12086 echo "configure:12087: checking for $ac_hdr" >&5
12087 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12088 echo $ac_n "(cached) $ac_c" 1>&6
12090 cat > conftest.$ac_ext <<EOF
12091 #line 12092 "configure"
12092 #include "confdefs.h"
12095 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12096 { (eval echo configure:12097: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12097 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12098 if test -z "$ac_err"; then
12100 eval "ac_cv_header_$ac_safe=yes"
12103 echo "configure: failed program was:" >&5
12104 cat conftest.$ac_ext >&5
12106 eval "ac_cv_header_$ac_safe=no"
12110 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12111 echo "$ac_t""yes" 1>&6
12112 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12113 cat >> confdefs.h <<EOF
12114 #define $ac_tr_hdr 1
12118 echo "$ac_t""no" 1>&6
12123 # now check for gssapi headers. This is also done here to allow for
12124 # different kerberos include paths
12125 for ac_hdr in gssapi/gssapi_generic.h gssapi/gssapi.h
12127 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12128 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12129 echo "configure:12130: checking for $ac_hdr" >&5
12130 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12131 echo $ac_n "(cached) $ac_c" 1>&6
12133 cat > conftest.$ac_ext <<EOF
12134 #line 12135 "configure"
12135 #include "confdefs.h"
12138 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12139 { (eval echo configure:12140: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12140 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12141 if test -z "$ac_err"; then
12143 eval "ac_cv_header_$ac_safe=yes"
12146 echo "configure: failed program was:" >&5
12147 cat conftest.$ac_ext >&5
12149 eval "ac_cv_header_$ac_safe=no"
12153 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12154 echo "$ac_t""yes" 1>&6
12155 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12156 cat >> confdefs.h <<EOF
12157 #define $ac_tr_hdr 1
12161 echo "$ac_t""no" 1>&6
12166 ##################################################################
12167 # we might need the k5crypto and com_err libraries on some systems
12168 echo $ac_n "checking for _et_list in -lcom_err""... $ac_c" 1>&6
12169 echo "configure:12170: checking for _et_list in -lcom_err" >&5
12170 ac_lib_var=`echo com_err'_'_et_list | sed 'y%./+-%__p_%'`
12171 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12172 echo $ac_n "(cached) $ac_c" 1>&6
12174 ac_save_LIBS="$LIBS"
12175 LIBS="-lcom_err $LIBS"
12176 cat > conftest.$ac_ext <<EOF
12177 #line 12178 "configure"
12178 #include "confdefs.h"
12179 /* Override any gcc2 internal prototype to avoid an error. */
12180 /* We use char because int might match the return type of a gcc2
12181 builtin and then its argument prototype would still apply. */
12188 if { (eval echo configure:12189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12190 eval "ac_cv_lib_$ac_lib_var=yes"
12192 echo "configure: failed program was:" >&5
12193 cat conftest.$ac_ext >&5
12195 eval "ac_cv_lib_$ac_lib_var=no"
12198 LIBS="$ac_save_LIBS"
12201 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12202 echo "$ac_t""yes" 1>&6
12203 LIBS="$LIBS -lcom_err"
12205 echo "$ac_t""no" 1>&6
12208 echo $ac_n "checking for krb5_encrypt_data in -lk5crypto""... $ac_c" 1>&6
12209 echo "configure:12210: checking for krb5_encrypt_data in -lk5crypto" >&5
12210 ac_lib_var=`echo k5crypto'_'krb5_encrypt_data | sed 'y%./+-%__p_%'`
12211 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12212 echo $ac_n "(cached) $ac_c" 1>&6
12214 ac_save_LIBS="$LIBS"
12215 LIBS="-lk5crypto $LIBS"
12216 cat > conftest.$ac_ext <<EOF
12217 #line 12218 "configure"
12218 #include "confdefs.h"
12219 /* Override any gcc2 internal prototype to avoid an error. */
12220 /* We use char because int might match the return type of a gcc2
12221 builtin and then its argument prototype would still apply. */
12222 char krb5_encrypt_data();
12225 krb5_encrypt_data()
12228 if { (eval echo configure:12229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12230 eval "ac_cv_lib_$ac_lib_var=yes"
12232 echo "configure: failed program was:" >&5
12233 cat conftest.$ac_ext >&5
12235 eval "ac_cv_lib_$ac_lib_var=no"
12238 LIBS="$ac_save_LIBS"
12241 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12242 echo "$ac_t""yes" 1>&6
12243 LIBS="$LIBS -lk5crypto"
12245 echo "$ac_t""no" 1>&6
12249 ########################################################
12250 # now see if we can find the krb5 libs in standard paths
12251 # or as specified above
12252 echo $ac_n "checking for krb5_mk_req_extended in -lkrb5""... $ac_c" 1>&6
12253 echo "configure:12254: checking for krb5_mk_req_extended in -lkrb5" >&5
12254 ac_lib_var=`echo krb5'_'krb5_mk_req_extended | sed 'y%./+-%__p_%'`
12255 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12256 echo $ac_n "(cached) $ac_c" 1>&6
12258 ac_save_LIBS="$LIBS"
12259 LIBS="-lkrb5 $LIBS"
12260 cat > conftest.$ac_ext <<EOF
12261 #line 12262 "configure"
12262 #include "confdefs.h"
12263 /* Override any gcc2 internal prototype to avoid an error. */
12264 /* We use char because int might match the return type of a gcc2
12265 builtin and then its argument prototype would still apply. */
12266 char krb5_mk_req_extended();
12269 krb5_mk_req_extended()
12272 if { (eval echo configure:12273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12274 eval "ac_cv_lib_$ac_lib_var=yes"
12276 echo "configure: failed program was:" >&5
12277 cat conftest.$ac_ext >&5
12279 eval "ac_cv_lib_$ac_lib_var=no"
12282 LIBS="$ac_save_LIBS"
12285 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12286 echo "$ac_t""yes" 1>&6
12287 LIBS="$LIBS -lkrb5";
12288 cat >> confdefs.h <<\EOF
12289 #define HAVE_KRB5 1
12293 echo "$ac_t""no" 1>&6
12297 ########################################################
12298 # now see if we can find the gssapi libs in standard paths
12299 echo $ac_n "checking for gss_display_status in -lgssapi_krb5""... $ac_c" 1>&6
12300 echo "configure:12301: checking for gss_display_status in -lgssapi_krb5" >&5
12301 ac_lib_var=`echo gssapi_krb5'_'gss_display_status | sed 'y%./+-%__p_%'`
12302 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12303 echo $ac_n "(cached) $ac_c" 1>&6
12305 ac_save_LIBS="$LIBS"
12306 LIBS="-lgssapi_krb5 $LIBS"
12307 cat > conftest.$ac_ext <<EOF
12308 #line 12309 "configure"
12309 #include "confdefs.h"
12310 /* Override any gcc2 internal prototype to avoid an error. */
12311 /* We use char because int might match the return type of a gcc2
12312 builtin and then its argument prototype would still apply. */
12313 char gss_display_status();
12316 gss_display_status()
12319 if { (eval echo configure:12320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12321 eval "ac_cv_lib_$ac_lib_var=yes"
12323 echo "configure: failed program was:" >&5
12324 cat conftest.$ac_ext >&5
12326 eval "ac_cv_lib_$ac_lib_var=no"
12329 LIBS="$ac_save_LIBS"
12332 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12333 echo "$ac_t""yes" 1>&6
12334 LIBS="$LIBS -lgssapi_krb5";
12335 cat >> confdefs.h <<\EOF
12336 #define HAVE_GSSAPI 1
12340 echo "$ac_t""no" 1>&6
12344 ##################################################################
12345 # we might need the lber lib on some systems. To avoid link errors
12346 # this test must be before the libldap test
12347 echo $ac_n "checking for ber_scanf in -llber""... $ac_c" 1>&6
12348 echo "configure:12349: checking for ber_scanf in -llber" >&5
12349 ac_lib_var=`echo lber'_'ber_scanf | sed 'y%./+-%__p_%'`
12350 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12351 echo $ac_n "(cached) $ac_c" 1>&6
12353 ac_save_LIBS="$LIBS"
12354 LIBS="-llber $LIBS"
12355 cat > conftest.$ac_ext <<EOF
12356 #line 12357 "configure"
12357 #include "confdefs.h"
12358 /* Override any gcc2 internal prototype to avoid an error. */
12359 /* We use char because int might match the return type of a gcc2
12360 builtin and then its argument prototype would still apply. */
12367 if { (eval echo configure:12368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12369 eval "ac_cv_lib_$ac_lib_var=yes"
12371 echo "configure: failed program was:" >&5
12372 cat conftest.$ac_ext >&5
12374 eval "ac_cv_lib_$ac_lib_var=no"
12377 LIBS="$ac_save_LIBS"
12380 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12381 echo "$ac_t""yes" 1>&6
12382 LIBS="$LIBS -llber"
12384 echo "$ac_t""no" 1>&6
12388 ########################################################
12389 # now see if we can find the ldap libs in standard paths
12390 if test x$have_ldap != xyes; then
12391 echo $ac_n "checking for ldap_domain2hostlist in -lldap""... $ac_c" 1>&6
12392 echo "configure:12393: checking for ldap_domain2hostlist in -lldap" >&5
12393 ac_lib_var=`echo ldap'_'ldap_domain2hostlist | sed 'y%./+-%__p_%'`
12394 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12395 echo $ac_n "(cached) $ac_c" 1>&6
12397 ac_save_LIBS="$LIBS"
12398 LIBS="-lldap $LIBS"
12399 cat > conftest.$ac_ext <<EOF
12400 #line 12401 "configure"
12401 #include "confdefs.h"
12402 /* Override any gcc2 internal prototype to avoid an error. */
12403 /* We use char because int might match the return type of a gcc2
12404 builtin and then its argument prototype would still apply. */
12405 char ldap_domain2hostlist();
12408 ldap_domain2hostlist()
12411 if { (eval echo configure:12412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12413 eval "ac_cv_lib_$ac_lib_var=yes"
12415 echo "configure: failed program was:" >&5
12416 cat conftest.$ac_ext >&5
12418 eval "ac_cv_lib_$ac_lib_var=no"
12421 LIBS="$ac_save_LIBS"
12424 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12425 echo "$ac_t""yes" 1>&6
12426 LIBS="$LIBS -lldap";
12427 cat >> confdefs.h <<\EOF
12428 #define HAVE_LDAP 1
12432 echo "$ac_t""no" 1>&6
12436 ########################################################
12437 # If we have LDAP, does it's rebind procedure take 2 or 3 arguments?
12438 # Check found in pam_ldap 145.
12439 for ac_func in ldap_set_rebind_proc
12441 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12442 echo "configure:12443: checking for $ac_func" >&5
12443 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12444 echo $ac_n "(cached) $ac_c" 1>&6
12446 cat > conftest.$ac_ext <<EOF
12447 #line 12448 "configure"
12448 #include "confdefs.h"
12449 /* System header to define __stub macros and hopefully few prototypes,
12450 which can conflict with char $ac_func(); below. */
12451 #include <assert.h>
12452 /* Override any gcc2 internal prototype to avoid an error. */
12453 /* We use char because int might match the return type of a gcc2
12454 builtin and then its argument prototype would still apply. */
12459 /* The GNU C library defines this for functions which it implements
12460 to always fail with ENOSYS. Some functions are actually named
12461 something starting with __ and the normal name is an alias. */
12462 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12470 if { (eval echo configure:12471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12472 eval "ac_cv_func_$ac_func=yes"
12474 echo "configure: failed program was:" >&5
12475 cat conftest.$ac_ext >&5
12477 eval "ac_cv_func_$ac_func=no"
12482 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12483 echo "$ac_t""yes" 1>&6
12484 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12485 cat >> confdefs.h <<EOF
12486 #define $ac_tr_func 1
12490 echo "$ac_t""no" 1>&6
12494 echo $ac_n "checking whether ldap_set_rebind_proc takes 3 arguments""... $ac_c" 1>&6
12495 echo "configure:12496: checking whether ldap_set_rebind_proc takes 3 arguments" >&5
12496 if eval "test \"`echo '$''{'pam_ldap_cv_ldap_set_rebind_proc'+set}'`\" = set"; then
12497 echo $ac_n "(cached) $ac_c" 1>&6
12500 cat > conftest.$ac_ext <<EOF
12501 #line 12502 "configure"
12502 #include "confdefs.h"
12507 ldap_set_rebind_proc(0, 0, 0);
12510 if { (eval echo configure:12511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12512 pam_ldap_cv_ldap_set_rebind_proc=3
12514 echo "configure: failed program was:" >&5
12515 cat conftest.$ac_ext >&5
12517 pam_ldap_cv_ldap_set_rebind_proc=2
12522 echo "$ac_t""$pam_ldap_cv_ldap_set_rebind_proc" 1>&6
12523 cat >> confdefs.h <<EOF
12524 #define LDAP_SET_REBIND_PROC_ARGS $pam_ldap_cv_ldap_set_rebind_proc
12529 #################################################
12530 # check for automount support
12531 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
12532 echo "configure:12533: checking whether to use AUTOMOUNT" >&5
12533 # Check whether --with-automount or --without-automount was given.
12534 if test "${with_automount+set}" = set; then
12535 withval="$with_automount"
12538 echo "$ac_t""yes" 1>&6
12539 cat >> confdefs.h <<\EOF
12540 #define WITH_AUTOMOUNT 1
12545 echo "$ac_t""no" 1>&6
12549 echo "$ac_t""no" 1>&6
12554 #################################################
12555 # check for smbmount support
12556 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
12557 echo "configure:12558: checking whether to use SMBMOUNT" >&5
12558 # Check whether --with-smbmount or --without-smbmount was given.
12559 if test "${with_smbmount+set}" = set; then
12560 withval="$with_smbmount"
12565 echo "$ac_t""yes" 1>&6
12566 cat >> confdefs.h <<\EOF
12567 #define WITH_SMBMOUNT 1
12570 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
12573 { echo "configure: error: not on a linux system!" 1>&2; exit 1; }
12578 echo "$ac_t""no" 1>&6
12583 echo "$ac_t""no" 1>&6
12590 #################################################
12591 # check for a PAM clear-text auth, accounts, password and session support
12592 with_pam_for_crypt=no
12593 echo $ac_n "checking whether to use PAM""... $ac_c" 1>&6
12594 echo "configure:12595: checking whether to use PAM" >&5
12595 # Check whether --with-pam or --without-pam was given.
12596 if test "${with_pam+set}" = set; then
12597 withval="$with_pam"
12600 echo "$ac_t""yes" 1>&6
12601 cat >> confdefs.h <<\EOF
12606 with_pam_for_crypt=yes
12609 echo "$ac_t""no" 1>&6
12613 echo "$ac_t""no" 1>&6
12618 # we can't build a pam module if we don't have pam.
12619 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
12620 echo "configure:12621: checking for pam_get_data in -lpam" >&5
12621 ac_lib_var=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
12622 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12623 echo $ac_n "(cached) $ac_c" 1>&6
12625 ac_save_LIBS="$LIBS"
12627 cat > conftest.$ac_ext <<EOF
12628 #line 12629 "configure"
12629 #include "confdefs.h"
12630 /* Override any gcc2 internal prototype to avoid an error. */
12631 /* We use char because int might match the return type of a gcc2
12632 builtin and then its argument prototype would still apply. */
12633 char pam_get_data();
12639 if { (eval echo configure:12640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12641 eval "ac_cv_lib_$ac_lib_var=yes"
12643 echo "configure: failed program was:" >&5
12644 cat conftest.$ac_ext >&5
12646 eval "ac_cv_lib_$ac_lib_var=no"
12649 LIBS="$ac_save_LIBS"
12652 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12653 echo "$ac_t""yes" 1>&6
12654 cat >> confdefs.h <<\EOF
12655 #define HAVE_LIBPAM 1
12659 echo "$ac_t""no" 1>&6
12663 #################################################
12664 # check for pam_smbpass support
12665 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
12666 echo "configure:12667: checking whether to use pam_smbpass" >&5
12667 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
12668 if test "${with_pam_smbpass+set}" = set; then
12669 withval="$with_pam_smbpass"
12672 echo "$ac_t""yes" 1>&6
12674 # Conditions under which pam_smbpass should not be built.
12676 if test x$PICFLAG = x; then
12677 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
12679 elif test x$ac_cv_lib_pam_pam_get_data = xno; then
12680 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
12683 PAM_MOD="bin/pam_smbpass.so"
12687 echo "$ac_t""no" 1>&6
12691 echo "$ac_t""no" 1>&6
12697 ###############################################
12698 # test for where we get crypt() from, but only
12700 if test $with_pam_for_crypt = no; then
12701 for ac_func in crypt
12703 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12704 echo "configure:12705: checking for $ac_func" >&5
12705 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12706 echo $ac_n "(cached) $ac_c" 1>&6
12708 cat > conftest.$ac_ext <<EOF
12709 #line 12710 "configure"
12710 #include "confdefs.h"
12711 /* System header to define __stub macros and hopefully few prototypes,
12712 which can conflict with char $ac_func(); below. */
12713 #include <assert.h>
12714 /* Override any gcc2 internal prototype to avoid an error. */
12715 /* We use char because int might match the return type of a gcc2
12716 builtin and then its argument prototype would still apply. */
12721 /* The GNU C library defines this for functions which it implements
12722 to always fail with ENOSYS. Some functions are actually named
12723 something starting with __ and the normal name is an alias. */
12724 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12732 if { (eval echo configure:12733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12734 eval "ac_cv_func_$ac_func=yes"
12736 echo "configure: failed program was:" >&5
12737 cat conftest.$ac_ext >&5
12739 eval "ac_cv_func_$ac_func=no"
12744 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12745 echo "$ac_t""yes" 1>&6
12746 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12747 cat >> confdefs.h <<EOF
12748 #define $ac_tr_func 1
12752 echo "$ac_t""no" 1>&6
12756 if test x"$ac_cv_func_crypt" = x"no"; then
12757 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
12758 echo "configure:12759: checking for crypt in -lcrypt" >&5
12759 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
12760 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12761 echo $ac_n "(cached) $ac_c" 1>&6
12763 ac_save_LIBS="$LIBS"
12764 LIBS="-lcrypt $LIBS"
12765 cat > conftest.$ac_ext <<EOF
12766 #line 12767 "configure"
12767 #include "confdefs.h"
12768 /* Override any gcc2 internal prototype to avoid an error. */
12769 /* We use char because int might match the return type of a gcc2
12770 builtin and then its argument prototype would still apply. */
12777 if { (eval echo configure:12778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12779 eval "ac_cv_lib_$ac_lib_var=yes"
12781 echo "configure: failed program was:" >&5
12782 cat conftest.$ac_ext >&5
12784 eval "ac_cv_lib_$ac_lib_var=no"
12787 LIBS="$ac_save_LIBS"
12790 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12791 echo "$ac_t""yes" 1>&6
12792 LIBS="$LIBS -lcrypt";
12793 cat >> confdefs.h <<\EOF
12794 #define HAVE_CRYPT 1
12798 echo "$ac_t""no" 1>&6
12805 ## moved after the check for -lcrypt in order to
12806 ## ensure that the necessary libraries are included
12807 ## check checking for truncated salt. Wrapped by the
12808 ## $with_pam_for_crypt variable as above --jerry
12810 if test $with_pam_for_crypt = no; then
12811 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
12812 echo "configure:12813: checking for a crypt that needs truncated salt" >&5
12813 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
12814 echo $ac_n "(cached) $ac_c" 1>&6
12817 if test "$cross_compiling" = yes; then
12818 samba_cv_HAVE_TRUNCATED_SALT=cross
12820 cat > conftest.$ac_ext <<EOF
12821 #line 12822 "configure"
12822 #include "confdefs.h"
12823 #include "${srcdir-.}/tests/crypttest.c"
12825 if { (eval echo configure:12826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12827 samba_cv_HAVE_TRUNCATED_SALT=no
12829 echo "configure: failed program was:" >&5
12830 cat conftest.$ac_ext >&5
12832 samba_cv_HAVE_TRUNCATED_SALT=yes
12839 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
12840 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
12841 cat >> confdefs.h <<\EOF
12842 #define HAVE_TRUNCATED_SALT 1
12848 # New experimental SAM system
12850 echo $ac_n "checking whether to build the new (experimental) SAM database""... $ac_c" 1>&6
12851 echo "configure:12852: checking whether to build the new (experimental) SAM database" >&5
12852 # Check whether --with-sam or --without-sam was given.
12853 if test "${with_sam+set}" = set; then
12854 withval="$with_sam"
12857 echo "$ac_t""yes" 1>&6
12858 cat >> confdefs.h <<\EOF
12864 echo "$ac_t""no" 1>&6
12868 echo "$ac_t""no" 1>&6
12874 ########################################################################################
12876 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
12878 ########################################################################################
12880 #################################################
12881 # check for a TDB password database
12882 echo $ac_n "checking whether to use TDB SAM database""... $ac_c" 1>&6
12883 echo "configure:12884: checking whether to use TDB SAM database" >&5
12884 # Check whether --with-tdbsam or --without-tdbsam was given.
12885 if test "${with_tdbsam+set}" = set; then
12886 withval="$with_tdbsam"
12889 echo "$ac_t""yes" 1>&6
12890 cat >> confdefs.h <<\EOF
12891 #define WITH_TDB_SAM 1
12896 echo "$ac_t""no" 1>&6
12900 echo "$ac_t""no" 1>&6
12905 #################################################
12906 # check for a NISPLUS password database
12907 echo $ac_n "checking whether to use NISPLUS SAM database""... $ac_c" 1>&6
12908 echo "configure:12909: checking whether to use NISPLUS SAM database" >&5
12909 # Check whether --with-nisplussam or --without-nisplussam was given.
12910 if test "${with_nisplussam+set}" = set; then
12911 withval="$with_nisplussam"
12914 echo "$ac_t""yes" 1>&6
12915 cat >> confdefs.h <<\EOF
12916 #define WITH_NISPLUS_SAM 1
12921 echo "$ac_t""no" 1>&6
12925 echo "$ac_t""no" 1>&6
12930 ########################################################################################
12932 ## END OF TESTS FOR SAM BACKENDS.
12934 ########################################################################################
12936 #################################################
12937 # check for a NISPLUS_HOME support
12938 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
12939 echo "configure:12940: checking whether to use NISPLUS_HOME" >&5
12940 # Check whether --with-nisplus-home or --without-nisplus-home was given.
12941 if test "${with_nisplus_home+set}" = set; then
12942 withval="$with_nisplus_home"
12945 echo "$ac_t""yes" 1>&6
12946 cat >> confdefs.h <<\EOF
12947 #define WITH_NISPLUS_HOME 1
12952 echo "$ac_t""no" 1>&6
12956 echo "$ac_t""no" 1>&6
12961 #################################################
12962 # check for syslog logging
12963 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
12964 echo "configure:12965: checking whether to use syslog logging" >&5
12965 # Check whether --with-syslog or --without-syslog was given.
12966 if test "${with_syslog+set}" = set; then
12967 withval="$with_syslog"
12970 echo "$ac_t""yes" 1>&6
12971 cat >> confdefs.h <<\EOF
12972 #define WITH_SYSLOG 1
12977 echo "$ac_t""no" 1>&6
12981 echo "$ac_t""no" 1>&6
12986 #################################################
12987 # check for a shared memory profiling support
12988 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
12989 echo "configure:12990: checking whether to use profiling" >&5
12990 # Check whether --with-profiling-data or --without-profiling-data was given.
12991 if test "${with_profiling_data+set}" = set; then
12992 withval="$with_profiling_data"
12995 echo "$ac_t""yes" 1>&6
12996 cat >> confdefs.h <<\EOF
12997 #define WITH_PROFILE 1
13002 echo "$ac_t""no" 1>&6
13006 echo "$ac_t""no" 1>&6
13012 #################################################
13013 # check for experimental disk-quotas support
13014 QUOTAOBJS=smbd/noquotas.o
13016 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
13017 echo "configure:13018: checking whether to support disk-quotas" >&5
13018 # Check whether --with-quotas or --without-quotas was given.
13019 if test "${with_quotas+set}" = set; then
13020 withval="$with_quotas"
13023 echo "$ac_t""yes" 1>&6
13026 # Check for kernel 2.4.x quota braindamage...
13027 echo $ac_n "checking for linux 2.4.x quota braindamage..""... $ac_c" 1>&6
13028 echo "configure:13029: checking for linux 2.4.x quota braindamage.." >&5
13029 if eval "test \"`echo '$''{'samba_cv_linux_2_4_quota_braindamage'+set}'`\" = set"; then
13030 echo $ac_n "(cached) $ac_c" 1>&6
13033 cat > conftest.$ac_ext <<EOF
13034 #line 13035 "configure"
13035 #include "confdefs.h"
13037 #include <sys/types.h>
13038 #include <asm/types.h>
13039 #include <linux/quota.h>
13040 #include <mntent.h>
13041 #include <linux/unistd.h>
13043 struct mem_dqblk D;
13046 if { (eval echo configure:13047: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13048 samba_cv_linux_2_4_quota_braindamage=yes
13050 echo "configure: failed program was:" >&5
13051 cat conftest.$ac_ext >&5
13053 samba_cv_linux_2_4_quota_braindamage=no
13058 echo "$ac_t""$samba_cv_linux_2_4_quota_braindamage" 1>&6
13059 if test x"$samba_cv_linux_2_4_quota_braindamage" = x"yes"; then
13060 cat >> confdefs.h <<\EOF
13061 #define LINUX_QUOTAS_2 1
13065 cat >> confdefs.h <<\EOF
13066 #define LINUX_QUOTAS_1 1
13074 QUOTAOBJS=smbd/quotas.o
13075 cat >> confdefs.h <<\EOF
13076 #define WITH_QUOTAS 1
13081 echo "$ac_t""no" 1>&6
13085 echo "$ac_t""no" 1>&6
13091 #################################################
13092 # check for experimental utmp accounting
13094 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
13095 echo "configure:13096: checking whether to support utmp accounting" >&5
13096 # Check whether --with-utmp or --without-utmp was given.
13097 if test "${with_utmp+set}" = set; then
13098 withval="$with_utmp"
13101 echo "$ac_t""yes" 1>&6
13102 cat >> confdefs.h <<\EOF
13103 #define WITH_UTMP 1
13108 echo "$ac_t""no" 1>&6
13112 echo "$ac_t""no" 1>&6
13117 #################################################
13118 # choose native language(s) of man pages
13119 echo $ac_n "checking chosen man pages' language(s)""... $ac_c" 1>&6
13120 echo "configure:13121: checking chosen man pages' language(s)" >&5
13121 # Check whether --with-manpages-langs or --without-manpages-langs was given.
13122 if test "${with_manpages_langs+set}" = set; then
13123 withval="$with_manpages_langs"
13126 echo "configure: warning: --with-manpages-langs called without argument - will use default" 1>&2
13130 manlangs="$withval"
13134 echo "$ac_t""$manlangs" 1>&6
13135 manlangs=`echo $manlangs | sed "s/,/ /"` # replacing commas with spaces to produce a list
13139 echo "$ac_t""$manlangs" 1>&6
13145 #################################################
13146 # should we build libsmbclient?
13148 LIBSMBCLIENT_SHARED=
13150 echo $ac_n "checking whether to build the libsmbclient shared library""... $ac_c" 1>&6
13151 echo "configure:13152: checking whether to build the libsmbclient shared library" >&5
13152 # Check whether --with-libsmbclient or --without-libsmbclient was given.
13153 if test "${with_libsmbclient+set}" = set; then
13154 withval="$with_libsmbclient"
13157 echo "$ac_t""no" 1>&6
13160 if test $BLDSHARED = true; then
13161 LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
13162 LIBSMBCLIENT=libsmbclient
13163 echo "$ac_t""yes" 1>&6
13165 echo "$ac_t""no shared library support" 1>&6
13170 echo "$ac_t""yes" 1>&6
13176 #################################################
13177 # these tests are taken from the GNU fileutils package
13178 echo "checking how to get filesystem space usage" 1>&6
13179 echo "configure:13180: checking how to get filesystem space usage" >&5
13182 # Test for statvfs64.
13183 if test $space = no; then
13185 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
13186 echo "configure:13187: checking statvfs64 function (SVR4)" >&5
13187 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
13188 echo $ac_n "(cached) $ac_c" 1>&6
13190 if test "$cross_compiling" = yes; then
13191 fu_cv_sys_stat_statvfs64=cross
13193 cat > conftest.$ac_ext <<EOF
13194 #line 13195 "configure"
13195 #include "confdefs.h"
13197 #if defined(HAVE_UNISTD_H)
13198 #include <unistd.h>
13200 #include <sys/types.h>
13201 #include <sys/statvfs.h>
13204 struct statvfs64 fsd;
13205 exit (statvfs64 (".", &fsd));
13208 if { (eval echo configure:13209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13210 fu_cv_sys_stat_statvfs64=yes
13212 echo "configure: failed program was:" >&5
13213 cat conftest.$ac_ext >&5
13215 fu_cv_sys_stat_statvfs64=no
13222 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
13223 if test $fu_cv_sys_stat_statvfs64 = yes; then
13225 cat >> confdefs.h <<\EOF
13226 #define STAT_STATVFS64 1
13232 # Perform only the link test since it seems there are no variants of the
13233 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
13234 # because that got a false positive on SCO OSR5. Adding the declaration
13235 # of a `struct statvfs' causes this test to fail (as it should) on such
13236 # systems. That system is reported to work fine with STAT_STATFS4 which
13237 # is what it gets when this test fails.
13238 if test $space = no; then
13240 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
13241 echo "configure:13242: checking statvfs function (SVR4)" >&5
13242 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
13243 echo $ac_n "(cached) $ac_c" 1>&6
13245 cat > conftest.$ac_ext <<EOF
13246 #line 13247 "configure"
13247 #include "confdefs.h"
13248 #include <sys/types.h>
13249 #include <sys/statvfs.h>
13251 struct statvfs fsd; statvfs (0, &fsd);
13254 if { (eval echo configure:13255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13256 fu_cv_sys_stat_statvfs=yes
13258 echo "configure: failed program was:" >&5
13259 cat conftest.$ac_ext >&5
13261 fu_cv_sys_stat_statvfs=no
13266 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
13267 if test $fu_cv_sys_stat_statvfs = yes; then
13269 cat >> confdefs.h <<\EOF
13270 #define STAT_STATVFS 1
13276 if test $space = no; then
13277 # DEC Alpha running OSF/1
13278 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
13279 echo "configure:13280: checking for 3-argument statfs function (DEC OSF/1)" >&5
13280 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
13281 echo $ac_n "(cached) $ac_c" 1>&6
13283 if test "$cross_compiling" = yes; then
13284 fu_cv_sys_stat_statfs3_osf1=no
13286 cat > conftest.$ac_ext <<EOF
13287 #line 13288 "configure"
13288 #include "confdefs.h"
13290 #include <sys/param.h>
13291 #include <sys/types.h>
13292 #include <sys/mount.h>
13297 exit (statfs (".", &fsd, sizeof (struct statfs)));
13300 if { (eval echo configure:13301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13302 fu_cv_sys_stat_statfs3_osf1=yes
13304 echo "configure: failed program was:" >&5
13305 cat conftest.$ac_ext >&5
13307 fu_cv_sys_stat_statfs3_osf1=no
13314 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
13315 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
13317 cat >> confdefs.h <<\EOF
13318 #define STAT_STATFS3_OSF1 1
13324 if test $space = no; then
13326 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
13327 echo "configure:13328: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
13328 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
13329 echo $ac_n "(cached) $ac_c" 1>&6
13331 if test "$cross_compiling" = yes; then
13332 fu_cv_sys_stat_statfs2_bsize=no
13334 cat > conftest.$ac_ext <<EOF
13335 #line 13336 "configure"
13336 #include "confdefs.h"
13338 #ifdef HAVE_SYS_PARAM_H
13339 #include <sys/param.h>
13341 #ifdef HAVE_SYS_MOUNT_H
13342 #include <sys/mount.h>
13344 #ifdef HAVE_SYS_VFS_H
13345 #include <sys/vfs.h>
13351 exit (statfs (".", &fsd));
13354 if { (eval echo configure:13355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13356 fu_cv_sys_stat_statfs2_bsize=yes
13358 echo "configure: failed program was:" >&5
13359 cat conftest.$ac_ext >&5
13361 fu_cv_sys_stat_statfs2_bsize=no
13368 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
13369 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
13371 cat >> confdefs.h <<\EOF
13372 #define STAT_STATFS2_BSIZE 1
13378 if test $space = no; then
13380 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
13381 echo "configure:13382: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
13382 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
13383 echo $ac_n "(cached) $ac_c" 1>&6
13385 if test "$cross_compiling" = yes; then
13386 fu_cv_sys_stat_statfs4=no
13388 cat > conftest.$ac_ext <<EOF
13389 #line 13390 "configure"
13390 #include "confdefs.h"
13391 #include <sys/types.h>
13392 #include <sys/statfs.h>
13396 exit (statfs (".", &fsd, sizeof fsd, 0));
13399 if { (eval echo configure:13400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13401 fu_cv_sys_stat_statfs4=yes
13403 echo "configure: failed program was:" >&5
13404 cat conftest.$ac_ext >&5
13406 fu_cv_sys_stat_statfs4=no
13413 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
13414 if test $fu_cv_sys_stat_statfs4 = yes; then
13416 cat >> confdefs.h <<\EOF
13417 #define STAT_STATFS4 1
13423 if test $space = no; then
13424 # 4.4BSD and NetBSD
13425 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
13426 echo "configure:13427: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
13427 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
13428 echo $ac_n "(cached) $ac_c" 1>&6
13430 if test "$cross_compiling" = yes; then
13431 fu_cv_sys_stat_statfs2_fsize=no
13433 cat > conftest.$ac_ext <<EOF
13434 #line 13435 "configure"
13435 #include "confdefs.h"
13436 #include <sys/types.h>
13437 #ifdef HAVE_SYS_PARAM_H
13438 #include <sys/param.h>
13440 #ifdef HAVE_SYS_MOUNT_H
13441 #include <sys/mount.h>
13447 exit (statfs (".", &fsd));
13450 if { (eval echo configure:13451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13452 fu_cv_sys_stat_statfs2_fsize=yes
13454 echo "configure: failed program was:" >&5
13455 cat conftest.$ac_ext >&5
13457 fu_cv_sys_stat_statfs2_fsize=no
13464 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
13465 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
13467 cat >> confdefs.h <<\EOF
13468 #define STAT_STATFS2_FSIZE 1
13474 if test $space = no; then
13476 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
13477 echo "configure:13478: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
13478 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
13479 echo $ac_n "(cached) $ac_c" 1>&6
13481 if test "$cross_compiling" = yes; then
13482 fu_cv_sys_stat_fs_data=no
13484 cat > conftest.$ac_ext <<EOF
13485 #line 13486 "configure"
13486 #include "confdefs.h"
13487 #include <sys/types.h>
13488 #ifdef HAVE_SYS_PARAM_H
13489 #include <sys/param.h>
13491 #ifdef HAVE_SYS_MOUNT_H
13492 #include <sys/mount.h>
13494 #ifdef HAVE_SYS_FS_TYPES_H
13495 #include <sys/fs_types.h>
13499 struct fs_data fsd;
13500 /* Ultrix's statfs returns 1 for success,
13501 0 for not mounted, -1 for failure. */
13502 exit (statfs (".", &fsd) != 1);
13505 if { (eval echo configure:13506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13507 fu_cv_sys_stat_fs_data=yes
13509 echo "configure: failed program was:" >&5
13510 cat conftest.$ac_ext >&5
13512 fu_cv_sys_stat_fs_data=no
13519 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
13520 if test $fu_cv_sys_stat_fs_data = yes; then
13522 cat >> confdefs.h <<\EOF
13523 #define STAT_STATFS2_FS_DATA 1
13530 # As a gating factor for large file support, in order to
13531 # use <4GB files we must have the following minimal support
13533 # long long, and a 64 bit off_t or off64_t.
13534 # If we don't have all of these then disable large
13537 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
13538 echo "configure:13539: checking if large file support can be enabled" >&5
13539 cat > conftest.$ac_ext <<EOF
13540 #line 13541 "configure"
13541 #include "confdefs.h"
13543 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
13544 #include <sys/types.h>
13553 if { (eval echo configure:13554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13555 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
13557 echo "configure: failed program was:" >&5
13558 cat conftest.$ac_ext >&5
13560 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
13563 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
13564 cat >> confdefs.h <<\EOF
13565 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
13569 echo "$ac_t""$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" 1>&6
13571 # Check whether --with-spinlocks or --without-spinlocks was given.
13572 if test "${with_spinlocks+set}" = set; then
13573 withval="$with_spinlocks"
13577 if test "x$with_spinlocks" = "xyes"; then
13578 cat >> confdefs.h <<\EOF
13579 #define USE_SPINLOCKS 1
13583 case "$host_cpu" in
13585 cat >> confdefs.h <<\EOF
13586 #define SPARC_SPINLOCKS 1
13591 i386|i486|i586|i686)
13592 cat >> confdefs.h <<\EOF
13593 #define INTEL_SPINLOCKS 1
13599 cat >> confdefs.h <<\EOF
13600 #define MIPS_SPINLOCKS 1
13606 cat >> confdefs.h <<\EOF
13607 #define POWERPC_SPINLOCKS 1
13614 #################################################
13615 # check for ACL support
13617 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
13618 echo "configure:13619: checking whether to support ACLs" >&5
13619 # Check whether --with-acl-support or --without-acl-support was given.
13620 if test "${with_acl_support+set}" = set; then
13621 withval="$with_acl_support"
13627 echo "$ac_t""Using UnixWare ACLs" 1>&6
13628 cat >> confdefs.h <<\EOF
13629 #define HAVE_UNIXWARE_ACLS 1
13634 echo "$ac_t""Using solaris ACLs" 1>&6
13635 cat >> confdefs.h <<\EOF
13636 #define HAVE_SOLARIS_ACLS 1
13641 echo "$ac_t""Using HPUX ACLs" 1>&6
13642 cat >> confdefs.h <<\EOF
13643 #define HAVE_HPUX_ACLS 1
13648 echo "$ac_t""Using IRIX ACLs" 1>&6
13649 cat >> confdefs.h <<\EOF
13650 #define HAVE_IRIX_ACLS 1
13655 echo "$ac_t""Using AIX ACLs" 1>&6
13656 cat >> confdefs.h <<\EOF
13657 #define HAVE_AIX_ACLS 1
13662 echo "$ac_t""Using Tru64 ACLs" 1>&6
13663 cat >> confdefs.h <<\EOF
13664 #define HAVE_TRU64_ACLS 1
13667 LIBS="$LIBS -lpacl"
13670 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
13671 echo "configure:13672: checking for acl_get_file in -lacl" >&5
13672 ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
13673 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13674 echo $ac_n "(cached) $ac_c" 1>&6
13676 ac_save_LIBS="$LIBS"
13678 cat > conftest.$ac_ext <<EOF
13679 #line 13680 "configure"
13680 #include "confdefs.h"
13681 /* Override any gcc2 internal prototype to avoid an error. */
13682 /* We use char because int might match the return type of a gcc2
13683 builtin and then its argument prototype would still apply. */
13684 char acl_get_file();
13690 if { (eval echo configure:13691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13692 eval "ac_cv_lib_$ac_lib_var=yes"
13694 echo "configure: failed program was:" >&5
13695 cat conftest.$ac_ext >&5
13697 eval "ac_cv_lib_$ac_lib_var=no"
13700 LIBS="$ac_save_LIBS"
13703 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13704 echo "$ac_t""yes" 1>&6
13705 ac_tr_lib=HAVE_LIB`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13706 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13707 cat >> confdefs.h <<EOF
13708 #define $ac_tr_lib 1
13714 echo "$ac_t""no" 1>&6
13717 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
13718 echo "configure:13719: checking for ACL support" >&5
13719 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
13720 echo $ac_n "(cached) $ac_c" 1>&6
13723 cat > conftest.$ac_ext <<EOF
13724 #line 13725 "configure"
13725 #include "confdefs.h"
13726 #include <sys/types.h>
13727 #include <sys/acl.h>
13729 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
13732 if { (eval echo configure:13733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13734 samba_cv_HAVE_POSIX_ACLS=yes
13736 echo "configure: failed program was:" >&5
13737 cat conftest.$ac_ext >&5
13739 samba_cv_HAVE_POSIX_ACLS=no
13744 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
13745 if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
13746 echo "$ac_t""Using posix ACLs" 1>&6
13747 cat >> confdefs.h <<\EOF
13748 #define HAVE_POSIX_ACLS 1
13751 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
13752 echo "configure:13753: checking for acl_get_perm_np" >&5
13753 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
13754 echo $ac_n "(cached) $ac_c" 1>&6
13757 cat > conftest.$ac_ext <<EOF
13758 #line 13759 "configure"
13759 #include "confdefs.h"
13760 #include <sys/types.h>
13761 #include <sys/acl.h>
13763 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
13766 if { (eval echo configure:13767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13768 samba_cv_HAVE_ACL_GET_PERM_NP=yes
13770 echo "configure: failed program was:" >&5
13771 cat conftest.$ac_ext >&5
13773 samba_cv_HAVE_ACL_GET_PERM_NP=no
13778 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
13779 if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
13780 cat >> confdefs.h <<\EOF
13781 #define HAVE_ACL_GET_PERM_NP 1
13790 echo "$ac_t""no" 1>&6
13791 cat >> confdefs.h <<\EOF
13792 #define HAVE_NO_ACLS 1
13798 cat >> confdefs.h <<\EOF
13799 #define HAVE_NO_ACLS 1
13802 echo "$ac_t""no" 1>&6
13807 #################################################
13808 # Check whether winbind is supported on this platform. If so we need to
13809 # build and install client programs (WINBIND_TARGETS), sbin programs
13810 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
13812 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
13813 echo "configure:13814: checking whether to build winbind" >&5
13815 # Initially, the value of $host_os decides whether winbind is supported
13823 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
13824 WINBIND_NSS_EXTRA_LIBS="-lsocket"
13828 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
13832 winbind_no_reason=", unsupported on $host_os"
13836 # Check the setting of --with-winbindd
13838 # Check whether --with-winbind or --without-winbind was given.
13839 if test "${with_winbind+set}" = set; then
13840 withval="$with_winbind"
13854 # We need unix domain sockets for winbind
13856 if test x"$HAVE_WINBIND" = x"yes"; then
13857 if test x"$samba_cv_unixsocket" = x"no"; then
13858 winbind_no_reason=", no unix domain socket support on $host_os"
13863 # Display test results
13866 WINBIND_STARGETS=""
13867 WINBIND_LTARGETS=""
13868 WINBIND_PAM_PROGS=""
13870 if test x"$HAVE_WINBIND" = x"yes"; then
13871 echo "$ac_t""yes" 1>&6
13872 cat >> confdefs.h <<\EOF
13873 #define WITH_WINBIND 1
13877 WINBIND_TARGETS="bin/wbinfo"
13878 WINBIND_STARGETS="bin/winbindd"
13879 if test x"$BLDSHARED" = x"true"; then
13880 WINBIND_LTARGETS="nsswitch/libnss_winbind.so"
13881 if test x"$with_pam" = x"yes"; then
13882 WINBIND_PAM_TARGETS="nsswitch/pam_winbind.so"
13886 echo "$ac_t""no$winbind_no_reason" 1>&6
13890 # Substitution time!
13899 # Solaris has some extra fields in struct passwd that need to be
13900 # initialised otherwise nscd crashes. Unfortunately autoconf < 2.50
13901 # doesn't have the AC_CHECK_MEMBER macro which would be handy for checking
13904 #AC_CHECK_MEMBER(struct passwd.pw_comment,
13905 # AC_DEFINE(HAVE_PASSWD_PW_COMMENT, 1, [Defined if struct passwd has pw_comment field]),
13906 # [#include <pwd.h>])
13908 echo $ac_n "checking whether struct passwd has pw_comment""... $ac_c" 1>&6
13909 echo "configure:13910: checking whether struct passwd has pw_comment" >&5
13910 if eval "test \"`echo '$''{'samba_cv_passwd_pw_comment'+set}'`\" = set"; then
13911 echo $ac_n "(cached) $ac_c" 1>&6
13914 cat > conftest.$ac_ext <<EOF
13915 #line 13916 "configure"
13916 #include "confdefs.h"
13919 struct passwd p; p.pw_comment;
13922 if { (eval echo configure:13923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13924 samba_cv_passwd_pw_comment=yes
13926 echo "configure: failed program was:" >&5
13927 cat conftest.$ac_ext >&5
13929 samba_cv_passwd_pw_comment=no
13934 echo "$ac_t""$samba_cv_passwd_pw_comment" 1>&6
13935 if test x"$samba_cv_passwd_pw_comment" = x"yes"; then
13936 cat >> confdefs.h <<\EOF
13937 #define HAVE_PASSWD_PW_COMMENT 1
13942 #AC_CHECK_MEMBER(struct passwd.pw_age,
13943 # AC_DEFINE(HAVE_PASSWD_PW_AGE, 1, [Defined if struct passwd has pw_age field]),
13944 # [#include <pwd.h>])
13946 echo $ac_n "checking whether struct passwd has pw_age""... $ac_c" 1>&6
13947 echo "configure:13948: checking whether struct passwd has pw_age" >&5
13948 if eval "test \"`echo '$''{'samba_cv_passwd_pw_age'+set}'`\" = set"; then
13949 echo $ac_n "(cached) $ac_c" 1>&6
13952 cat > conftest.$ac_ext <<EOF
13953 #line 13954 "configure"
13954 #include "confdefs.h"
13957 struct passwd p; p.pw_age;
13960 if { (eval echo configure:13961: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13962 samba_cv_passwd_pw_age=yes
13964 echo "configure: failed program was:" >&5
13965 cat conftest.$ac_ext >&5
13967 samba_cv_passwd_pw_age=no
13972 echo "$ac_t""$samba_cv_passwd_pw_age" 1>&6
13973 if test x"$samba_cv_passwd_pw_age" = x"yes"; then
13974 cat >> confdefs.h <<\EOF
13975 #define HAVE_PASSWD_PW_AGE 1
13980 #################################################
13981 # Check to see if we should use the included popt
13983 # Check whether --with-included-popt or --without-included-popt was given.
13984 if test "${with_included_popt+set}" = set; then
13985 withval="$with_included_popt"
13997 if test x"$INCLUDED_POPT" != x"yes"; then
13998 echo $ac_n "checking for poptGetContext in -lpopt""... $ac_c" 1>&6
13999 echo "configure:14000: checking for poptGetContext in -lpopt" >&5
14000 ac_lib_var=`echo popt'_'poptGetContext | sed 'y%./+-%__p_%'`
14001 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14002 echo $ac_n "(cached) $ac_c" 1>&6
14004 ac_save_LIBS="$LIBS"
14005 LIBS="-lpopt $LIBS"
14006 cat > conftest.$ac_ext <<EOF
14007 #line 14008 "configure"
14008 #include "confdefs.h"
14009 /* Override any gcc2 internal prototype to avoid an error. */
14010 /* We use char because int might match the return type of a gcc2
14011 builtin and then its argument prototype would still apply. */
14012 char poptGetContext();
14018 if { (eval echo configure:14019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14020 eval "ac_cv_lib_$ac_lib_var=yes"
14022 echo "configure: failed program was:" >&5
14023 cat conftest.$ac_ext >&5
14025 eval "ac_cv_lib_$ac_lib_var=no"
14028 LIBS="$ac_save_LIBS"
14031 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14032 echo "$ac_t""yes" 1>&6
14035 echo "$ac_t""no" 1>&6
14041 echo $ac_n "checking whether to use included popt""... $ac_c" 1>&6
14042 echo "configure:14043: checking whether to use included popt" >&5
14043 if test x"$INCLUDED_POPT" = x"yes"; then
14044 echo "$ac_t""yes" 1>&6
14045 BUILD_POPT='$(POPT_OBJS)'
14046 FLAGS1="-I$srcdir/popt"
14048 echo "$ac_t""no" 1>&6
14049 LIBS="$LIBS -lpopt"
14054 #################################################
14055 # do extra things if we are running insure
14057 if test "${ac_cv_prog_CC}" = "insure"; then
14058 CPPFLAGS="$CPPFLAGS -D__INSURE__"
14061 #################################################
14062 # final configure stuff
14064 echo $ac_n "checking configure summary""... $ac_c" 1>&6
14065 echo "configure:14066: checking configure summary" >&5
14066 if test "$cross_compiling" = yes; then
14067 echo "configure: warning: cannot run when cross-compiling" 1>&2
14069 cat > conftest.$ac_ext <<EOF
14070 #line 14071 "configure"
14071 #include "confdefs.h"
14072 #include "${srcdir-.}/tests/summary.c"
14074 if { (eval echo configure:14075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14076 echo "$ac_t""yes" 1>&6
14078 echo "configure: failed program was:" >&5
14079 cat conftest.$ac_ext >&5
14081 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }; exit 1;
14090 # I added make files that are outside /source directory.
14091 # I know this is not a good solution, will work out a better
14092 # solution soon. --simo
14094 cat > confcache <<\EOF
14095 # This file is a shell script that caches the results of configure
14096 # tests run on this system so they can be shared between configure
14097 # scripts and configure runs. It is not useful on other systems.
14098 # If it contains results you don't want to keep, you may remove or edit it.
14100 # By default, configure uses ./config.cache as the cache file,
14101 # creating it if it does not exist already. You can give configure
14102 # the --cache-file=FILE option to use a different cache file; that is
14103 # what configure does when it calls configure scripts in
14104 # subdirectories, so they share the cache.
14105 # Giving --cache-file=/dev/null disables caching, for debugging configure.
14106 # config.status only pays attention to the cache file if you give it the
14107 # --recheck option to rerun configure.
14110 # The following way of writing the cache mishandles newlines in values,
14111 # but we know of no workaround that is simple, portable, and efficient.
14112 # So, don't put newlines in cache variables' values.
14113 # Ultrix sh set writes to stderr and can't be redirected directly,
14114 # and sets the high bit in the cache file unless we assign to the vars.
14116 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14118 # `set' does not quote correctly, so add quotes (double-quote substitution
14119 # turns \\\\ into \\, and sed turns \\ into \).
14121 -e "s/'/'\\\\''/g" \
14122 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
14125 # `set' quotes correctly as required by POSIX, so do not add quotes.
14126 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
14129 if cmp -s $cache_file confcache; then
14132 if test -w $cache_file; then
14133 echo "updating cache $cache_file"
14134 cat confcache > $cache_file
14136 echo "not updating unwritable cache $cache_file"
14141 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
14143 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14144 # Let make expand exec_prefix.
14145 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14147 # Any assignment to VPATH causes Sun make to only execute
14148 # the first set of double-colon rules, so remove it if not needed.
14149 # If there is a colon in the path, we need to keep it.
14150 if test "x$srcdir" = x.; then
14151 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
14154 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
14156 DEFS=-DHAVE_CONFIG_H
14158 # Without the "./", some shells look in PATH for config.status.
14159 : ${CONFIG_STATUS=./config.status}
14161 echo creating $CONFIG_STATUS
14162 rm -f $CONFIG_STATUS
14163 cat > $CONFIG_STATUS <<EOF
14165 # Generated automatically by configure.
14166 # Run this file to recreate the current configuration.
14167 # This directory was configured as follows,
14168 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14170 # $0 $ac_configure_args
14172 # Compiler output produced by configure, useful for debugging
14173 # configure, is in ./config.log if it exists.
14175 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
14178 case "\$ac_option" in
14179 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14180 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
14181 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
14182 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
14183 echo "$CONFIG_STATUS generated by autoconf version 2.13"
14185 -help | --help | --hel | --he | --h)
14186 echo "\$ac_cs_usage"; exit 0 ;;
14187 *) echo "\$ac_cs_usage"; exit 1 ;;
14191 ac_given_srcdir=$srcdir
14192 ac_given_INSTALL="$INSTALL"
14194 trap 'rm -fr `echo "include/stamp-h Makefile script/findsmb ../examples/VFS/Makefile ../examples/pdb/mysql/Makefile ../examples/pdb/xml/Makefile ../examples/sam/Makefile python/setup.py include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
14196 cat >> $CONFIG_STATUS <<EOF
14198 # Protect against being on the right side of a sed subst in config.status.
14199 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
14200 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
14204 s%@CFLAGS@%$CFLAGS%g
14205 s%@CPPFLAGS@%$CPPFLAGS%g
14206 s%@CXXFLAGS@%$CXXFLAGS%g
14207 s%@FFLAGS@%$FFLAGS%g
14209 s%@LDFLAGS@%$LDFLAGS%g
14211 s%@exec_prefix@%$exec_prefix%g
14212 s%@prefix@%$prefix%g
14213 s%@program_transform_name@%$program_transform_name%g
14214 s%@bindir@%$bindir%g
14215 s%@sbindir@%$sbindir%g
14216 s%@libexecdir@%$libexecdir%g
14217 s%@datadir@%$datadir%g
14218 s%@sysconfdir@%$sysconfdir%g
14219 s%@sharedstatedir@%$sharedstatedir%g
14220 s%@localstatedir@%$localstatedir%g
14221 s%@libdir@%$libdir%g
14222 s%@includedir@%$includedir%g
14223 s%@oldincludedir@%$oldincludedir%g
14224 s%@infodir@%$infodir%g
14225 s%@mandir@%$mandir%g
14226 s%@configdir@%$configdir%g
14227 s%@lockdir@%$lockdir%g
14228 s%@piddir@%$piddir%g
14229 s%@logfilebase@%$logfilebase%g
14230 s%@privatedir@%$privatedir%g
14231 s%@swatdir@%$swatdir%g
14232 s%@RUNPROG@%$RUNPROG%g
14233 s%@MPROGS@%$MPROGS%g
14234 s%@LDSHFLAGS@%$LDSHFLAGS%g
14235 s%@SONAMEFLAG@%$SONAMEFLAG%g
14237 s%@HOST_OS@%$HOST_OS%g
14238 s%@PAM_MOD@%$PAM_MOD%g
14240 s%@WRAP32@%$WRAP32%g
14241 s%@WRAPPROG@%$WRAPPROG%g
14242 s%@PICFLAG@%$PICFLAG%g
14243 s%@PICSUFFIX@%$PICSUFFIX%g
14244 s%@POBAD_CC@%$POBAD_CC%g
14245 s%@SHLIBEXT@%$SHLIBEXT%g
14246 s%@LIBSMBCLIENT_SHARED@%$LIBSMBCLIENT_SHARED%g
14247 s%@LIBSMBCLIENT@%$LIBSMBCLIENT%g
14248 s%@PRINTLIBS@%$PRINTLIBS%g
14250 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
14251 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
14252 s%@INSTALL_DATA@%$INSTALL_DATA%g
14254 s%@BROKEN_CC@%$BROKEN_CC%g
14256 s%@host_alias@%$host_alias%g
14257 s%@host_cpu@%$host_cpu%g
14258 s%@host_vendor@%$host_vendor%g
14259 s%@host_os@%$host_os%g
14260 s%@target@%$target%g
14261 s%@target_alias@%$target_alias%g
14262 s%@target_cpu@%$target_cpu%g
14263 s%@target_vendor@%$target_vendor%g
14264 s%@target_os@%$target_os%g
14266 s%@build_alias@%$build_alias%g
14267 s%@build_cpu@%$build_cpu%g
14268 s%@build_vendor@%$build_vendor%g
14269 s%@build_os@%$build_os%g
14271 s%@CUPS_CONFIG@%$CUPS_CONFIG%g
14272 s%@LIBOBJS@%$LIBOBJS%g
14273 s%@TERMLIBS@%$TERMLIBS%g
14274 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
14276 s%@DYNEXP@%$DYNEXP%g
14277 s%@QUOTAOBJS@%$QUOTAOBJS%g
14278 s%@manlangs@%$manlangs%g
14279 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
14280 s%@WINBIND_STARGETS@%$WINBIND_STARGETS%g
14281 s%@WINBIND_LTARGETS@%$WINBIND_LTARGETS%g
14282 s%@WINBIND_PAM_TARGETS@%$WINBIND_PAM_TARGETS%g
14283 s%@WINBIND_NSS_EXTRA_OBJS@%$WINBIND_NSS_EXTRA_OBJS%g
14284 s%@WINBIND_NSS_EXTRA_LIBS@%$WINBIND_NSS_EXTRA_LIBS%g
14285 s%@BUILD_POPT@%$BUILD_POPT%g
14286 s%@FLAGS1@%$FLAGS1%g
14287 s%@builddir@%$builddir%g
14292 cat >> $CONFIG_STATUS <<\EOF
14294 # Split the substitutions into bite-sized pieces for seds with
14295 # small command number limits, like on Digital OSF/1 and HP-UX.
14296 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
14297 ac_file=1 # Number of current file.
14298 ac_beg=1 # First line for current file.
14299 ac_end=$ac_max_sed_cmds # Line after last line for current file.
14302 while $ac_more_lines; do
14303 if test $ac_beg -gt 1; then
14304 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
14306 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
14308 if test ! -s conftest.s$ac_file; then
14309 ac_more_lines=false
14310 rm -f conftest.s$ac_file
14312 if test -z "$ac_sed_cmds"; then
14313 ac_sed_cmds="sed -f conftest.s$ac_file"
14315 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
14317 ac_file=`expr $ac_file + 1`
14319 ac_end=`expr $ac_end + $ac_max_sed_cmds`
14322 if test -z "$ac_sed_cmds"; then
14327 cat >> $CONFIG_STATUS <<EOF
14329 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile script/findsmb ../examples/VFS/Makefile ../examples/pdb/mysql/Makefile ../examples/pdb/xml/Makefile ../examples/sam/Makefile python/setup.py"}
14331 cat >> $CONFIG_STATUS <<\EOF
14332 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
14333 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14335 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14336 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14337 *) ac_file_in="${ac_file}.in" ;;
14340 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
14342 # Remove last slash and all that follows it. Not all systems have dirname.
14343 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14344 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14345 # The file is in a subdirectory.
14346 test ! -d "$ac_dir" && mkdir "$ac_dir"
14347 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
14348 # A "../" for each directory in $ac_dir_suffix.
14349 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
14351 ac_dir_suffix= ac_dots=
14354 case "$ac_given_srcdir" in
14356 if test -z "$ac_dots"; then top_srcdir=.
14357 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
14358 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
14359 *) # Relative path.
14360 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
14361 top_srcdir="$ac_dots$ac_given_srcdir" ;;
14364 case "$ac_given_INSTALL" in
14365 [/$]*) INSTALL="$ac_given_INSTALL" ;;
14366 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
14369 echo creating "$ac_file"
14371 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
14373 *Makefile*) ac_comsub="1i\\
14374 # $configure_input" ;;
14378 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14380 s%@configure_input@%$configure_input%g
14381 s%@srcdir@%$srcdir%g
14382 s%@top_srcdir@%$top_srcdir%g
14383 s%@INSTALL@%$INSTALL%g
14384 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
14388 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14389 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14391 # ac_d sets the value in "#define NAME VALUE" lines.
14392 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14393 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
14396 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
14397 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14398 ac_uB='\([ ]\)%\1#\2define\3'
14401 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14402 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14403 ac_eB='$%\1#\2define\3'
14407 if test "${CONFIG_HEADERS+set}" != set; then
14409 cat >> $CONFIG_STATUS <<EOF
14410 CONFIG_HEADERS="include/config.h"
14412 cat >> $CONFIG_STATUS <<\EOF
14414 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
14415 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14417 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14418 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14419 *) ac_file_in="${ac_file}.in" ;;
14422 echo creating $ac_file
14424 rm -f conftest.frag conftest.in conftest.out
14425 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14426 cat $ac_file_inputs > conftest.in
14430 # Transform confdefs.h into a sed script conftest.vals that substitutes
14431 # the proper values into config.h.in to produce config.h. And first:
14432 # Protect against being on the right side of a sed subst in config.status.
14433 # Protect against being in an unquoted here document in config.status.
14434 rm -f conftest.vals
14435 cat > conftest.hdr <<\EOF
14438 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
14442 sed -n -f conftest.hdr confdefs.h > conftest.vals
14445 # This sed command replaces #undef with comments. This is necessary, for
14446 # example, in the case of _POSIX_SOURCE, which is predefined and required
14447 # on some systems where configure will not decide to define it.
14448 cat >> conftest.vals <<\EOF
14449 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
14452 # Break up conftest.vals because some shells have a limit on
14453 # the size of here documents, and old seds have small limits too.
14455 rm -f conftest.tail
14458 ac_lines=`grep -c . conftest.vals`
14459 # grep -c gives empty output for an empty file on some AIX systems.
14460 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
14461 # Write a limited-size here document to conftest.frag.
14462 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
14463 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
14465 sed -f conftest.frag conftest.in > conftest.out
14467 mv conftest.out conftest.in
14468 ' >> $CONFIG_STATUS
14469 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
14470 rm -f conftest.vals
14471 mv conftest.tail conftest.vals
14473 rm -f conftest.vals
14475 cat >> $CONFIG_STATUS <<\EOF
14476 rm -f conftest.frag conftest.h
14477 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
14478 cat conftest.in >> conftest.h
14480 if cmp -s $ac_file conftest.h 2>/dev/null; then
14481 echo "$ac_file is unchanged"
14484 # Remove last slash and all that follows it. Not all systems have dirname.
14485 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14486 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14487 # The file is in a subdirectory.
14488 test ! -d "$ac_dir" && mkdir "$ac_dir"
14491 mv conftest.h $ac_file
14496 cat >> $CONFIG_STATUS <<EOF
14499 cat >> $CONFIG_STATUS <<\EOF
14503 chmod +x $CONFIG_STATUS
14504 rm -fr confdefs* $ac_clean_files
14505 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
14508 #################################################
14509 # Print very concise instructions on building/use
14510 if test "x$enable_dmalloc" = xyes
14512 echo "$ac_t""Note: The dmalloc debug library will be included. To turn it on use" 1>&6
14513 echo "$ac_t"" \$ eval \`dmalloc samba\`." 1>&6