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-codepagedir=DIR Where to put codepage files (\$libdir/codepages)"
30 --with-logfilebase=DIR Where to put log files (\$(VARDIR))"
32 --enable-debug Turn on compiler debugging information (default=no)"
34 --enable-developer turn on developer warnings and debugging [default=no]"
36 --enable-krb5developer turn on developer warnings and debugging, except -Wstrict-prototypes [default=no]"
38 --enable-dmalloc enable heap debugging [default=no]"
40 --with-readline[=DIR] Look for readline include/libs in DIR (default=auto) "
42 --with-libiconv=BASEDIR Use libiconv in BASEDIR/lib and BASEDIR/include (default=auto) "
44 --with-smbwrapper Include SMB wrapper support (default=no) "
46 --with-afs Include AFS clear-text auth support (default=no) "
48 --with-dce-dfs Include DCE/DFS clear-text auth support (default=no)"
50 --with-krb5=base-dir Locate Kerberos 5 support (default=/usr)"
52 --with-automount Include AUTOMOUNT support (default=no)"
54 --with-smbmount Include SMBMOUNT (Linux only) support (default=no)"
56 --with-pam Include PAM support (default=no)"
58 --with-pam_smbpass Build a PAM module to allow other applications to use our smbpasswd file (default=no)"
60 --with-tdbsam Include experimental TDB SAM support (default=no)"
62 --with-ldapsam Include experimental LDAP 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-ssl Include SSL support (default=no)
69 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl/include)
70 --with-ssllib=DIR Where the SSL libraries are (defaults to /usr/local/ssl/lib)"
72 --with-syslog Include experimental SYSLOG support (default=no)"
74 --with-profiling-data Include gathering source code profile information (default=no)"
76 --with-quotas Include experimental disk-quota support (default=no)"
78 --with-utmp Include experimental utmp accounting (default=no)"
80 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
82 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
84 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
86 --with-manpages-langs={en,ja,pl} Choose man pages' language(s). (en)"
88 --with-spinlocks Use spin locks instead of fcntl locks (default=no) "
90 --with-acl-support Include ACL support (default=no)"
92 --with-winbind Build winbind (default, if supported by OS)"
94 --with-included-popt use bundled popt library, not from system"
96 # Initialize some variables set by options.
97 # The variables have the same names as the options, with
98 # dashes changed to underlines.
100 cache_file=./config.cache
109 program_transform_name=s,x,x,
117 bindir='${exec_prefix}/bin'
118 sbindir='${exec_prefix}/sbin'
119 libexecdir='${exec_prefix}/libexec'
120 datadir='${prefix}/share'
121 sysconfdir='${prefix}/etc'
122 sharedstatedir='${prefix}/com'
123 localstatedir='${prefix}/var'
124 libdir='${exec_prefix}/lib'
125 includedir='${prefix}/include'
126 oldincludedir='/usr/include'
127 infodir='${prefix}/info'
128 mandir='${prefix}/man'
130 # Initialize some other variables.
133 SHELL=${CONFIG_SHELL-/bin/sh}
134 # Maximum number of lines to put in a shell here document.
141 # If the previous option needs an argument, assign it.
142 if test -n "$ac_prev"; then
143 eval "$ac_prev=\$ac_option"
149 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
153 # Accept the important Cygnus configure options, so we can diagnose typos.
157 -bindir | --bindir | --bindi | --bind | --bin | --bi)
159 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
160 bindir="$ac_optarg" ;;
162 -build | --build | --buil | --bui | --bu)
164 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
165 build="$ac_optarg" ;;
167 -cache-file | --cache-file | --cache-fil | --cache-fi \
168 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
169 ac_prev=cache_file ;;
170 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
171 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
172 cache_file="$ac_optarg" ;;
174 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
176 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
178 datadir="$ac_optarg" ;;
180 -disable-* | --disable-*)
181 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
182 # Reject names that are not valid shell variable names.
183 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
184 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
186 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
187 eval "enable_${ac_feature}=no" ;;
189 -enable-* | --enable-*)
190 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
191 # Reject names that are not valid shell variable names.
192 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
193 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
195 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
200 eval "enable_${ac_feature}='$ac_optarg'" ;;
202 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
203 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
204 | --exec | --exe | --ex)
205 ac_prev=exec_prefix ;;
206 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
207 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
208 | --exec=* | --exe=* | --ex=*)
209 exec_prefix="$ac_optarg" ;;
211 -gas | --gas | --ga | --g)
212 # Obsolete; use --with-gas.
215 -help | --help | --hel | --he)
216 # Omit some internal or obsolete options to make the list less imposing.
217 # This message is too long to be a string in the A/UX 3.1 sh.
219 Usage: configure [options] [host]
220 Options: [defaults in brackets after descriptions]
222 --cache-file=FILE cache test results in FILE
223 --help print this message
224 --no-create do not create output files
225 --quiet, --silent do not print \`checking...' messages
226 --version print the version of autoconf that created configure
227 Directory and file names:
228 --prefix=PREFIX install architecture-independent files in PREFIX
230 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
232 --bindir=DIR user executables in DIR [EPREFIX/bin]
233 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
234 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
235 --datadir=DIR read-only architecture-independent data in DIR
237 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
238 --sharedstatedir=DIR modifiable architecture-independent data in DIR
240 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
241 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
242 --includedir=DIR C header files in DIR [PREFIX/include]
243 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
244 --infodir=DIR info documentation in DIR [PREFIX/info]
245 --mandir=DIR man documentation in DIR [PREFIX/man]
246 --srcdir=DIR find the sources in DIR [configure dir or ..]
247 --program-prefix=PREFIX prepend PREFIX to installed program names
248 --program-suffix=SUFFIX append SUFFIX to installed program names
249 --program-transform-name=PROGRAM
250 run sed PROGRAM on installed program names
254 --build=BUILD configure for building on BUILD [BUILD=HOST]
255 --host=HOST configure for HOST [guessed]
256 --target=TARGET configure for TARGET [TARGET=HOST]
257 Features and packages:
258 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
259 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
260 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
261 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
262 --x-includes=DIR X include files are in DIR
263 --x-libraries=DIR X library files are in DIR
265 if test -n "$ac_help"; then
266 echo "--enable and --with options recognized:$ac_help"
270 -host | --host | --hos | --ho)
272 -host=* | --host=* | --hos=* | --ho=*)
275 -includedir | --includedir | --includedi | --included | --include \
276 | --includ | --inclu | --incl | --inc)
277 ac_prev=includedir ;;
278 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
279 | --includ=* | --inclu=* | --incl=* | --inc=*)
280 includedir="$ac_optarg" ;;
282 -infodir | --infodir | --infodi | --infod | --info | --inf)
284 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
285 infodir="$ac_optarg" ;;
287 -libdir | --libdir | --libdi | --libd)
289 -libdir=* | --libdir=* | --libdi=* | --libd=*)
290 libdir="$ac_optarg" ;;
292 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
293 | --libexe | --libex | --libe)
294 ac_prev=libexecdir ;;
295 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
296 | --libexe=* | --libex=* | --libe=*)
297 libexecdir="$ac_optarg" ;;
299 -localstatedir | --localstatedir | --localstatedi | --localstated \
300 | --localstate | --localstat | --localsta | --localst \
301 | --locals | --local | --loca | --loc | --lo)
302 ac_prev=localstatedir ;;
303 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
304 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
305 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
306 localstatedir="$ac_optarg" ;;
308 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
310 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
311 mandir="$ac_optarg" ;;
314 # Obsolete; use --without-fp.
317 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
321 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
322 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
325 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
326 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
327 | --oldin | --oldi | --old | --ol | --o)
328 ac_prev=oldincludedir ;;
329 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
330 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
331 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
332 oldincludedir="$ac_optarg" ;;
334 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
336 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
337 prefix="$ac_optarg" ;;
339 -program-prefix | --program-prefix | --program-prefi | --program-pref \
340 | --program-pre | --program-pr | --program-p)
341 ac_prev=program_prefix ;;
342 -program-prefix=* | --program-prefix=* | --program-prefi=* \
343 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
344 program_prefix="$ac_optarg" ;;
346 -program-suffix | --program-suffix | --program-suffi | --program-suff \
347 | --program-suf | --program-su | --program-s)
348 ac_prev=program_suffix ;;
349 -program-suffix=* | --program-suffix=* | --program-suffi=* \
350 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
351 program_suffix="$ac_optarg" ;;
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 ac_prev=program_transform_name ;;
361 -program-transform-name=* | --program-transform-name=* \
362 | --program-transform-nam=* | --program-transform-na=* \
363 | --program-transform-n=* | --program-transform-=* \
364 | --program-transform=* | --program-transfor=* \
365 | --program-transfo=* | --program-transf=* \
366 | --program-trans=* | --program-tran=* \
367 | --progr-tra=* | --program-tr=* | --program-t=*)
368 program_transform_name="$ac_optarg" ;;
370 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
371 | -silent | --silent | --silen | --sile | --sil)
374 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
376 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
378 sbindir="$ac_optarg" ;;
380 -sharedstatedir | --sharedstatedir | --sharedstatedi \
381 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
382 | --sharedst | --shareds | --shared | --share | --shar \
384 ac_prev=sharedstatedir ;;
385 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
386 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
387 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
389 sharedstatedir="$ac_optarg" ;;
391 -site | --site | --sit)
393 -site=* | --site=* | --sit=*)
396 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
398 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
399 srcdir="$ac_optarg" ;;
401 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
402 | --syscon | --sysco | --sysc | --sys | --sy)
403 ac_prev=sysconfdir ;;
404 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
405 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
406 sysconfdir="$ac_optarg" ;;
408 -target | --target | --targe | --targ | --tar | --ta | --t)
410 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
411 target="$ac_optarg" ;;
413 -v | -verbose | --verbose | --verbos | --verbo | --verb)
416 -version | --version | --versio | --versi | --vers)
417 echo "configure generated by autoconf version 2.13"
421 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
422 # Reject names that are not valid shell variable names.
423 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
424 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
426 ac_package=`echo $ac_package| sed 's/-/_/g'`
431 eval "with_${ac_package}='$ac_optarg'" ;;
433 -without-* | --without-*)
434 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
435 # Reject names that are not valid shell variable names.
436 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
437 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
439 ac_package=`echo $ac_package| sed 's/-/_/g'`
440 eval "with_${ac_package}=no" ;;
443 # Obsolete; use --with-x.
446 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
447 | --x-incl | --x-inc | --x-in | --x-i)
448 ac_prev=x_includes ;;
449 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
450 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
451 x_includes="$ac_optarg" ;;
453 -x-libraries | --x-libraries | --x-librarie | --x-librari \
454 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
455 ac_prev=x_libraries ;;
456 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
457 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
458 x_libraries="$ac_optarg" ;;
460 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
464 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
465 echo "configure: warning: $ac_option: invalid host type" 1>&2
467 if test "x$nonopt" != xNONE; then
468 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
476 if test -n "$ac_prev"; then
477 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
480 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
482 # File descriptor usage:
485 # 2 errors and warnings
486 # 3 some systems may open it to /dev/tty
487 # 4 used on the Kubota Titan
488 # 6 checking for... messages and results
489 # 5 compiler messages saved in config.log
490 if test "$silent" = yes; then
498 This file contains any messages produced by compilers while
499 running configure, to aid debugging if configure makes a mistake.
502 # Strip out --no-create and --no-recursion so they do not pile up.
503 # Also quote any args containing shell metacharacters.
508 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
509 | --no-cr | --no-c) ;;
510 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
511 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
512 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
513 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
514 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
519 # Only set these to C if already set. These must not be set unconditionally
520 # because not all systems understand e.g. LANG=C (notably SCO).
521 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
522 # Non-C LC_CTYPE values break the ctype check.
523 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
524 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
525 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
526 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
528 # confdefs.h avoids OS command line length limits that DEFS can exceed.
529 rm -rf conftest* confdefs.h
530 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
533 # A filename unique to this package, relative to the directory that
534 # configure is in, which we can look for to find out if srcdir is correct.
535 ac_unique_file=include/includes.h
537 # Find the source files, if location was not specified.
538 if test -z "$srcdir"; then
539 ac_srcdir_defaulted=yes
540 # Try the directory containing this script, then its parent.
542 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
543 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
545 if test ! -r $srcdir/$ac_unique_file; then
549 ac_srcdir_defaulted=no
551 if test ! -r $srcdir/$ac_unique_file; then
552 if test "$ac_srcdir_defaulted" = yes; then
553 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
555 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
558 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
560 # Prefer explicitly selected file to automatically selected ones.
561 if test -z "$CONFIG_SITE"; then
562 if test "x$prefix" != xNONE; then
563 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
565 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
568 for ac_site_file in $CONFIG_SITE; do
569 if test -r "$ac_site_file"; then
570 echo "loading site script $ac_site_file"
575 if test -r "$cache_file"; then
576 echo "loading cache $cache_file"
579 echo "creating cache $cache_file"
584 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
585 ac_cpp='$CPP $CPPFLAGS'
586 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
587 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
588 cross_compiling=$ac_cv_prog_cc_cross
592 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
593 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
594 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
601 ac_n= ac_c='\c' ac_t=
607 #################################################
608 # Directory handling stuff to support both the
609 # legacy SAMBA directories and FHS compliant
613 # Check whether --with-fhs or --without-fhs was given.
614 if test "${with_fhs+set}" = set; then
616 codepagedir="\$(DATADIR)/samba/codepages"
617 configdir="${sysconfdir}/samba"
618 lockdir="\${VARDIR}/cache/samba"
619 piddir="\$(VARDIR)/run/samba"
620 logfilebase="\${VARDIR}/log/samba"
621 privatedir="\${CONFIGDIR}/private"
622 swatdir="\${DATADIR}/samba/swat"
624 codepagedir="\$(LIBDIR)/codepages"
625 configdir="\$(LIBDIR)"
626 logfilebase="\$(VARDIR)"
627 lockdir="\${VARDIR}/locks"
628 piddir="\$(VARDIR)/locks"
629 privatedir="\${prefix}/private"
630 swatdir="\${prefix}/swat"
634 #################################################
635 # set private directory location
636 # Check whether --with-privatedir or --without-privatedir was given.
637 if test "${with_privatedir+set}" = set; then
638 withval="$with_privatedir"
642 # Just in case anybody calls it without argument
644 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
647 privatedir="$withval"
653 #################################################
654 # set lock directory location
655 # Check whether --with-lockdir or --without-lockdir was given.
656 if test "${with_lockdir+set}" = set; then
657 withval="$with_lockdir"
661 # Just in case anybody calls it without argument
663 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
672 #################################################
673 # set pid directory location
674 # Check whether --with-piddir or --without-piddir was given.
675 if test "${with_piddir+set}" = set; then
676 withval="$with_piddir"
680 # Just in case anybody calls it without argument
682 echo "configure: warning: --with-piddir called without argument - will use default" 1>&2
691 #################################################
692 # set SWAT directory location
693 # Check whether --with-swatdir or --without-swatdir was given.
694 if test "${with_swatdir+set}" = set; then
695 withval="$with_swatdir"
699 # Just in case anybody does it
701 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
710 #################################################
711 # set configuration directory location
712 # Check whether --with-configdir or --without-configdir was given.
713 if test "${with_configdir+set}" = set; then
714 withval="$with_configdir"
718 # Just in case anybody does it
720 echo "configure: warning: --with-configdir called without argument - will use default" 1>&2
729 #################################################
730 # set codepage directory location
731 # Check whether --with-codepagedir or --without-codepagedir was given.
732 if test "${with_codepagedir+set}" = set; then
733 withval="$with_codepagedir"
737 # Just in case anybody does it
739 echo "configure: warning: --with-codepagedir called without argument - will use default" 1>&2
742 codepagedir="$withval"
748 #################################################
749 # set log directory location
750 # Check whether --with-logfilebase or --without-logfilebase was given.
751 if test "${with_logfilebase+set}" = set; then
752 withval="$with_logfilebase"
756 # Just in case anybody does it
758 echo "configure: warning: --with-logfilebase called without argument - will use default" 1>&2
761 logfilebase="$withval"
792 # compile with optimisation and without debugging by default
793 CFLAGS="-O ${CFLAGS}"
795 # Check whether --enable-debug or --disable-debug was given.
796 if test "${enable_debug+set}" = set; then
797 enableval="$enable_debug"
798 if eval "test x$enable_debug = xyes"; then
799 CFLAGS="${CFLAGS} -g"
804 # Check whether --enable-developer or --disable-developer was given.
805 if test "${enable_developer+set}" = set; then
806 enableval="$enable_developer"
807 if eval "test x$enable_developer = xyes"; then
808 CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
813 # Check whether --enable-krb5developer or --disable-krb5developer was given.
814 if test "${enable_krb5developer+set}" = set; then
815 enableval="$enable_krb5developer"
816 if eval "test x$enable_krb5developer = xyes"; then
817 CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
822 # Check whether --enable-dmalloc or --disable-dmalloc was given.
823 if test "${enable_dmalloc+set}" = set; then
824 enableval="$enable_dmalloc"
829 if test "x$enable_dmalloc" = xyes
831 cat >> confdefs.h <<\EOF
832 #define ENABLE_DMALLOC 1
835 cat >> confdefs.h <<\EOF
836 #define DMALLOC_FUNC_CHECK 1
839 LIBS="$LIBS -ldmalloc"
842 # Extract the first word of "gcc", so it can be a program name with args.
843 set dummy gcc; ac_word=$2
844 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
845 echo "configure:846: checking for $ac_word" >&5
846 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
847 echo $ac_n "(cached) $ac_c" 1>&6
849 if test -n "$CC"; then
850 ac_cv_prog_CC="$CC" # Let the user override the test.
852 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
854 for ac_dir in $ac_dummy; do
855 test -z "$ac_dir" && ac_dir=.
856 if test -f $ac_dir/$ac_word; then
865 if test -n "$CC"; then
866 echo "$ac_t""$CC" 1>&6
868 echo "$ac_t""no" 1>&6
871 if test -z "$CC"; then
872 # Extract the first word of "cc", so it can be a program name with args.
873 set dummy cc; ac_word=$2
874 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
875 echo "configure:876: checking for $ac_word" >&5
876 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
877 echo $ac_n "(cached) $ac_c" 1>&6
879 if test -n "$CC"; then
880 ac_cv_prog_CC="$CC" # Let the user override the test.
882 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
885 for ac_dir in $ac_dummy; do
886 test -z "$ac_dir" && ac_dir=.
887 if test -f $ac_dir/$ac_word; then
888 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
897 if test $ac_prog_rejected = yes; then
898 # We found a bogon in the path, so make sure we never use it.
899 set dummy $ac_cv_prog_CC
901 if test $# -gt 0; then
902 # We chose a different compiler from the bogus one.
903 # However, it has the same basename, so the bogon will be chosen
904 # first if we set CC to just the basename; use the full file name.
906 set dummy "$ac_dir/$ac_word" "$@"
914 if test -n "$CC"; then
915 echo "$ac_t""$CC" 1>&6
917 echo "$ac_t""no" 1>&6
920 if test -z "$CC"; then
923 # Extract the first word of "cl", so it can be a program name with args.
924 set dummy cl; ac_word=$2
925 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
926 echo "configure:927: checking for $ac_word" >&5
927 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
928 echo $ac_n "(cached) $ac_c" 1>&6
930 if test -n "$CC"; then
931 ac_cv_prog_CC="$CC" # Let the user override the test.
933 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
935 for ac_dir in $ac_dummy; do
936 test -z "$ac_dir" && ac_dir=.
937 if test -f $ac_dir/$ac_word; then
946 if test -n "$CC"; then
947 echo "$ac_t""$CC" 1>&6
949 echo "$ac_t""no" 1>&6
954 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
957 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
958 echo "configure:959: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
961 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
962 ac_cpp='$CPP $CPPFLAGS'
963 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
964 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
965 cross_compiling=$ac_cv_prog_cc_cross
967 cat > conftest.$ac_ext << EOF
969 #line 970 "configure"
970 #include "confdefs.h"
974 if { (eval echo configure:975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
975 ac_cv_prog_cc_works=yes
976 # If we can't run a trivial program, we are probably using a cross compiler.
977 if (./conftest; exit) 2>/dev/null; then
978 ac_cv_prog_cc_cross=no
980 ac_cv_prog_cc_cross=yes
983 echo "configure: failed program was:" >&5
984 cat conftest.$ac_ext >&5
985 ac_cv_prog_cc_works=no
989 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
990 ac_cpp='$CPP $CPPFLAGS'
991 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
992 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
993 cross_compiling=$ac_cv_prog_cc_cross
995 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
996 if test $ac_cv_prog_cc_works = no; then
997 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
999 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1000 echo "configure:1001: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1001 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1002 cross_compiling=$ac_cv_prog_cc_cross
1004 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1005 echo "configure:1006: checking whether we are using GNU C" >&5
1006 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1007 echo $ac_n "(cached) $ac_c" 1>&6
1009 cat > conftest.c <<EOF
1014 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1015: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1021 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1023 if test $ac_cv_prog_gcc = yes; then
1029 ac_test_CFLAGS="${CFLAGS+set}"
1030 ac_save_CFLAGS="$CFLAGS"
1032 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1033 echo "configure:1034: checking whether ${CC-cc} accepts -g" >&5
1034 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1035 echo $ac_n "(cached) $ac_c" 1>&6
1037 echo 'void f(){}' > conftest.c
1038 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1047 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1048 if test "$ac_test_CFLAGS" = set; then
1049 CFLAGS="$ac_save_CFLAGS"
1050 elif test $ac_cv_prog_cc_g = yes; then
1051 if test "$GCC" = yes; then
1057 if test "$GCC" = yes; then
1065 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1066 if test -f $ac_dir/install-sh; then
1068 ac_install_sh="$ac_aux_dir/install-sh -c"
1070 elif test -f $ac_dir/install.sh; then
1072 ac_install_sh="$ac_aux_dir/install.sh -c"
1076 if test -z "$ac_aux_dir"; then
1077 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1079 ac_config_guess=$ac_aux_dir/config.guess
1080 ac_config_sub=$ac_aux_dir/config.sub
1081 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1083 # Find a good install program. We prefer a C program (faster),
1084 # so one script is as good as another. But avoid the broken or
1085 # incompatible versions:
1086 # SysV /etc/install, /usr/sbin/install
1087 # SunOS /usr/etc/install
1088 # IRIX /sbin/install
1090 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1091 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1092 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1093 # ./install, which can be erroneously created by make from ./install.sh.
1094 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1095 echo "configure:1096: checking for a BSD compatible install" >&5
1096 if test -z "$INSTALL"; then
1097 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1098 echo $ac_n "(cached) $ac_c" 1>&6
1100 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1101 for ac_dir in $PATH; do
1102 # Account for people who put trailing slashes in PATH elements.
1104 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1106 # OSF1 and SCO ODT 3.0 have their own names for install.
1107 # Don't use installbsd from OSF since it installs stuff as root
1109 for ac_prog in ginstall scoinst install; do
1110 if test -f $ac_dir/$ac_prog; then
1111 if test $ac_prog = install &&
1112 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1113 # AIX install. It has an incompatible calling convention.
1116 ac_cv_path_install="$ac_dir/$ac_prog -c"
1127 if test "${ac_cv_path_install+set}" = set; then
1128 INSTALL="$ac_cv_path_install"
1130 # As a last resort, use the slow shell script. We don't cache a
1131 # path for INSTALL within a source directory, because that will
1132 # break other packages using the cache if that directory is
1133 # removed, or if the path is relative.
1134 INSTALL="$ac_install_sh"
1137 echo "$ac_t""$INSTALL" 1>&6
1139 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1140 # It thinks the first close brace ends the variable substitution.
1141 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1143 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1145 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1147 for ac_prog in gawk mawk nawk awk
1149 # Extract the first word of "$ac_prog", so it can be a program name with args.
1150 set dummy $ac_prog; ac_word=$2
1151 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1152 echo "configure:1153: checking for $ac_word" >&5
1153 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1154 echo $ac_n "(cached) $ac_c" 1>&6
1156 if test -n "$AWK"; then
1157 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1159 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1161 for ac_dir in $ac_dummy; do
1162 test -z "$ac_dir" && ac_dir=.
1163 if test -f $ac_dir/$ac_word; then
1164 ac_cv_prog_AWK="$ac_prog"
1171 AWK="$ac_cv_prog_AWK"
1172 if test -n "$AWK"; then
1173 echo "$ac_t""$AWK" 1>&6
1175 echo "$ac_t""no" 1>&6
1178 test -n "$AWK" && break
1182 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1183 echo "configure:1184: checking for POSIXized ISC" >&5
1184 if test -d /etc/conf/kconfig.d &&
1185 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1187 echo "$ac_t""yes" 1>&6
1188 ISC=yes # If later tests want to check for ISC.
1189 cat >> confdefs.h <<\EOF
1190 #define _POSIX_SOURCE 1
1193 if test "$GCC" = yes; then
1199 echo "$ac_t""no" 1>&6
1204 if test "x$CC" != xcc; then
1205 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1206 echo "configure:1207: checking whether $CC and cc understand -c and -o together" >&5
1208 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1209 echo "configure:1210: checking whether cc understands -c and -o together" >&5
1211 set dummy $CC; ac_cc="`echo $2 |
1212 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1213 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1214 echo $ac_n "(cached) $ac_c" 1>&6
1216 echo 'foo(){}' > conftest.c
1217 # Make sure it works both with $CC and with simple cc.
1218 # We do the test twice because some compilers refuse to overwrite an
1219 # existing .o file with -o, though they will create one.
1220 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1221 if { (eval echo configure:1222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1222 test -f conftest.o && { (eval echo configure:1223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1224 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1225 if test "x$CC" != xcc; then
1226 # Test first that cc exists at all.
1227 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1228: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1228 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1229 if { (eval echo configure:1230: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1230 test -f conftest.o && { (eval echo configure:1231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1235 # cc exists but doesn't like -o.
1236 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1241 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1246 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1247 echo "$ac_t""yes" 1>&6
1249 echo "$ac_t""no" 1>&6
1250 cat >> confdefs.h <<\EOF
1251 #define NO_MINUS_C_MINUS_O 1
1256 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1263 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1264 echo "configure:1265: checking that the C compiler understands volatile" >&5
1265 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1266 echo $ac_n "(cached) $ac_c" 1>&6
1269 cat > conftest.$ac_ext <<EOF
1270 #line 1271 "configure"
1271 #include "confdefs.h"
1272 #include <sys/types.h>
1277 if { (eval echo configure:1278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1279 samba_cv_volatile=yes
1281 echo "configure: failed program was:" >&5
1282 cat conftest.$ac_ext >&5
1284 samba_cv_volatile=no
1289 echo "$ac_t""$samba_cv_volatile" 1>&6
1290 if test x"$samba_cv_volatile" = x"yes"; then
1291 cat >> confdefs.h <<\EOF
1292 #define HAVE_VOLATILE 1
1299 # Do some error checking and defaulting for the host and target type.
1301 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1304 # 1. You are not allowed to specify --host, --target, and nonopt at the
1306 # 2. Host defaults to nonopt.
1307 # 3. If nonopt is not specified, then host defaults to the current host,
1308 # as determined by config.guess.
1309 # 4. Target and build default to nonopt.
1310 # 5. If nonopt is not specified, then target and build default to host.
1312 # The aliases save the names the user supplied, while $host etc.
1313 # will get canonicalized.
1314 case $host---$target---$nonopt in
1315 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1316 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1320 # Make sure we can run config.sub.
1321 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1322 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1325 echo $ac_n "checking host system type""... $ac_c" 1>&6
1326 echo "configure:1327: checking host system type" >&5
1329 case "$host_alias" in
1333 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1334 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1336 *) host_alias=$nonopt ;;
1340 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1341 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1342 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1343 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1344 echo "$ac_t""$host" 1>&6
1346 echo $ac_n "checking target system type""... $ac_c" 1>&6
1347 echo "configure:1348: checking target system type" >&5
1349 target_alias=$target
1350 case "$target_alias" in
1353 NONE) target_alias=$host_alias ;;
1354 *) target_alias=$nonopt ;;
1358 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1359 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1360 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1361 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1362 echo "$ac_t""$target" 1>&6
1364 echo $ac_n "checking build system type""... $ac_c" 1>&6
1365 echo "configure:1366: checking build system type" >&5
1368 case "$build_alias" in
1371 NONE) build_alias=$host_alias ;;
1372 *) build_alias=$nonopt ;;
1376 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1377 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1378 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1379 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1380 echo "$ac_t""$build" 1>&6
1382 test "$host_alias" != "$target_alias" &&
1383 test "$program_prefix$program_suffix$program_transform_name" = \
1385 program_prefix=${target_alias}-
1389 *irix6*) cat >> confdefs.h <<\EOF
1390 #include <standards.h>
1398 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1399 echo "configure:1400: checking config.cache system type" >&5
1400 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1401 test x"$ac_cv_host_system_type" != x"$host"; } ||
1402 { test x"${ac_cv_build_system_type+set}" = x"set" &&
1403 test x"$ac_cv_build_system_type" != x"$build"; } ||
1404 { test x"${ac_cv_target_system_type+set}" = x"set" &&
1405 test x"$ac_cv_target_system_type" != x"$target"; }; then
1406 echo "$ac_t""different" 1>&6
1407 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
1409 echo "$ac_t""same" 1>&6
1411 ac_cv_host_system_type="$host"
1412 ac_cv_build_system_type="$build"
1413 ac_cv_target_system_type="$target"
1419 # Config CPPFLAG settings for strange OS's that must be set
1420 # before other tests.
1423 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1426 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1427 echo "configure:1428: checking whether ${CC-cc} accepts -Ae" >&5
1428 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1429 echo $ac_n "(cached) $ac_c" 1>&6
1431 echo 'void f(){}' > conftest.c
1432 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1433 ac_cv_prog_cc_Ae=yes
1441 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1442 # mmap on HPUX is completely broken...
1443 cat >> confdefs.h <<\EOF
1444 #define MMAP_BLACKLIST 1
1447 if test $ac_cv_prog_cc_Ae = yes; then
1448 CPPFLAGS="$CPPFLAGS -Ae"
1451 # Defines needed for HPUX support.
1452 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1453 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1457 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1458 cat >> confdefs.h <<\EOF
1459 #define USE_BOTH_CRYPT_CALLS 1
1462 cat >> confdefs.h <<\EOF
1463 #define _HPUX_SOURCE 1
1466 cat >> confdefs.h <<\EOF
1467 #define _POSIX_SOURCE 1
1470 cat >> confdefs.h <<\EOF
1471 #define _ALIGNMENT_REQUIRED 1
1474 cat >> confdefs.h <<\EOF
1475 #define _MAX_ALIGNMENT 4
1480 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1481 cat >> confdefs.h <<\EOF
1482 #define USE_BOTH_CRYPT_CALLS 1
1485 cat >> confdefs.h <<\EOF
1486 #define _HPUX_SOURCE 1
1489 cat >> confdefs.h <<\EOF
1490 #define _POSIX_SOURCE 1
1493 cat >> confdefs.h <<\EOF
1494 #define _LARGEFILE64_SOURCE 1
1497 cat >> confdefs.h <<\EOF
1498 #define _ALIGNMENT_REQUIRED 1
1501 cat >> confdefs.h <<\EOF
1502 #define _MAX_ALIGNMENT 4
1511 # CRAY Unicos has broken const handling
1513 echo "$ac_t""disabling const" 1>&6
1514 CPPFLAGS="$CPPFLAGS -Dconst="
1518 # AIX4.x doesn't even admit to having large
1519 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1522 echo "$ac_t""enabling large file support" 1>&6
1523 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1524 cat >> confdefs.h <<\EOF
1525 #define _LARGE_FILES 1
1530 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1531 # to the existance of large files..
1532 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1533 # recommendations on large file support, however it makes the
1534 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1535 # recommendation makes the compile fail on gcc2.7. JRA.
1539 5.0*|5.1*|5.2*|5.3*|5.5*)
1540 echo "$ac_t""no large file support" 1>&6
1543 echo "$ac_t""enabling large file support" 1>&6
1544 if test "$ac_cv_prog_gcc" = yes; then
1545 ${CC-cc} -v >conftest.c 2>&1
1546 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
1548 case "$ac_cv_gcc_compiler_version_number" in
1549 *"gcc version 2.6"*|*"gcc version 2.7"*)
1550 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1551 cat >> confdefs.h <<\EOF
1552 #define _LARGEFILE64_SOURCE 1
1557 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1558 cat >> confdefs.h <<\EOF
1559 #define _LARGEFILE64_SOURCE 1
1562 cat >> confdefs.h <<\EOF
1563 #define _FILE_OFFSET_BITS 64
1570 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1571 cat >> confdefs.h <<\EOF
1572 #define _LARGEFILE64_SOURCE 1
1575 cat >> confdefs.h <<\EOF
1576 #define _FILE_OFFSET_BITS 64
1584 # Tests needed for SINIX large file support.
1587 if test $host = mips-sni-sysv4 ; then
1588 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1589 echo "configure:1590: checking for LFS support" >&5
1590 old_CPPFLAGS="$CPPFLAGS"
1591 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1592 if test "$cross_compiling" = yes; then
1593 SINIX_LFS_SUPPORT=cross
1595 cat > conftest.$ac_ext <<EOF
1596 #line 1597 "configure"
1597 #include "confdefs.h"
1601 #if _LFS64_LARGEFILE == 1
1608 if { (eval echo configure:1609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1610 SINIX_LFS_SUPPORT=yes
1612 echo "configure: failed program was:" >&5
1613 cat conftest.$ac_ext >&5
1615 SINIX_LFS_SUPPORT=no
1620 CPPFLAGS="$old_CPPFLAGS"
1621 if test x$SINIX_LFS_SUPPORT = xyes ; then
1622 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1623 cat >> confdefs.h <<\EOF
1624 #define _LARGEFILE64_SOURCE 1
1627 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
1628 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
1629 LIBS="`getconf LFS64_LIBS` $LIBS"
1631 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1635 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1638 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1639 echo "configure:1640: checking for LFS support" >&5
1640 old_CPPFLAGS="$CPPFLAGS"
1641 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1642 if test "$cross_compiling" = yes; then
1643 LINUX_LFS_SUPPORT=cross
1645 cat > conftest.$ac_ext <<EOF
1646 #line 1647 "configure"
1647 #include "confdefs.h"
1650 #include <sys/utsname.h>
1652 #if _LFS64_LARGEFILE == 1
1657 /* Ensure this is glibc 2.2 or higher */
1658 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1659 int libc_major = __GLIBC__;
1660 int libc_minor = __GLIBC_MINOR__;
1668 /* Ensure this is kernel 2.4 or higher */
1671 release = uts.release;
1672 major = atoi(strsep(&release, "."));
1673 minor = atoi(strsep(&release, "."));
1675 if (major > 2 || (major == 2 && minor > 3))
1684 if { (eval echo configure:1685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1686 LINUX_LFS_SUPPORT=yes
1688 echo "configure: failed program was:" >&5
1689 cat conftest.$ac_ext >&5
1691 LINUX_LFS_SUPPORT=no
1696 CPPFLAGS="$old_CPPFLAGS"
1697 if test x$LINUX_LFS_SUPPORT = xyes ; then
1698 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1699 cat >> confdefs.h <<\EOF
1700 #define _LARGEFILE64_SOURCE 1
1703 cat >> confdefs.h <<\EOF
1704 #define _FILE_OFFSET_BITS 64
1707 cat >> confdefs.h <<\EOF
1708 #define _GNU_SOURCE 1
1712 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1716 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1717 echo "configure:1718: checking for LFS support" >&5
1718 old_CPPFLAGS="$CPPFLAGS"
1719 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1720 if test "$cross_compiling" = yes; then
1721 GLIBC_LFS_SUPPORT=cross
1723 cat > conftest.$ac_ext <<EOF
1724 #line 1725 "configure"
1725 #include "confdefs.h"
1729 #if _LFS64_LARGEFILE == 1
1736 if { (eval echo configure:1737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1738 GLIBC_LFS_SUPPORT=yes
1740 echo "configure: failed program was:" >&5
1741 cat conftest.$ac_ext >&5
1743 GLIBC_LFS_SUPPORT=no
1748 CPPFLAGS="$old_CPPFLAGS"
1749 if test x$GLIBC_LFS_SUPPORT = xyes ; then
1750 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1751 cat >> confdefs.h <<\EOF
1752 #define _LARGEFILE64_SOURCE 1
1755 cat >> confdefs.h <<\EOF
1756 #define _GNU_SOURCE 1
1760 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1765 echo $ac_n "checking for inline""... $ac_c" 1>&6
1766 echo "configure:1767: checking for inline" >&5
1767 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1768 echo $ac_n "(cached) $ac_c" 1>&6
1771 for ac_kw in inline __inline__ __inline; do
1772 cat > conftest.$ac_ext <<EOF
1773 #line 1774 "configure"
1774 #include "confdefs.h"
1780 if { (eval echo configure:1781: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1782 ac_cv_c_inline=$ac_kw; break
1784 echo "configure: failed program was:" >&5
1785 cat conftest.$ac_ext >&5
1792 echo "$ac_t""$ac_cv_c_inline" 1>&6
1793 case "$ac_cv_c_inline" in
1795 no) cat >> confdefs.h <<\EOF
1799 *) cat >> confdefs.h <<EOF
1800 #define inline $ac_cv_c_inline
1805 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1806 echo "configure:1807: checking how to run the C preprocessor" >&5
1807 # On Suns, sometimes $CPP names a directory.
1808 if test -n "$CPP" && test -d "$CPP"; then
1811 if test -z "$CPP"; then
1812 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1813 echo $ac_n "(cached) $ac_c" 1>&6
1815 # This must be in double quotes, not single quotes, because CPP may get
1816 # substituted into the Makefile and "${CC-cc}" will confuse make.
1818 # On the NeXT, cc -E runs the code through the compiler's parser,
1819 # not just through cpp.
1820 cat > conftest.$ac_ext <<EOF
1821 #line 1822 "configure"
1822 #include "confdefs.h"
1826 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1827 { (eval echo configure:1828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1828 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1829 if test -z "$ac_err"; then
1833 echo "configure: failed program was:" >&5
1834 cat conftest.$ac_ext >&5
1836 CPP="${CC-cc} -E -traditional-cpp"
1837 cat > conftest.$ac_ext <<EOF
1838 #line 1839 "configure"
1839 #include "confdefs.h"
1843 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1844 { (eval echo configure:1845: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1845 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1846 if test -z "$ac_err"; then
1850 echo "configure: failed program was:" >&5
1851 cat conftest.$ac_ext >&5
1853 CPP="${CC-cc} -nologo -E"
1854 cat > conftest.$ac_ext <<EOF
1855 #line 1856 "configure"
1856 #include "confdefs.h"
1860 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1861 { (eval echo configure:1862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1862 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1863 if test -z "$ac_err"; then
1867 echo "configure: failed program was:" >&5
1868 cat conftest.$ac_ext >&5
1877 ac_cv_prog_CPP="$CPP"
1879 CPP="$ac_cv_prog_CPP"
1881 ac_cv_prog_CPP="$CPP"
1883 echo "$ac_t""$CPP" 1>&6
1885 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1886 echo "configure:1887: checking for ANSI C header files" >&5
1887 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1888 echo $ac_n "(cached) $ac_c" 1>&6
1890 cat > conftest.$ac_ext <<EOF
1891 #line 1892 "configure"
1892 #include "confdefs.h"
1898 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1899 { (eval echo configure:1900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1900 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1901 if test -z "$ac_err"; then
1903 ac_cv_header_stdc=yes
1906 echo "configure: failed program was:" >&5
1907 cat conftest.$ac_ext >&5
1909 ac_cv_header_stdc=no
1913 if test $ac_cv_header_stdc = yes; then
1914 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1915 cat > conftest.$ac_ext <<EOF
1916 #line 1917 "configure"
1917 #include "confdefs.h"
1920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1921 egrep "memchr" >/dev/null 2>&1; then
1925 ac_cv_header_stdc=no
1931 if test $ac_cv_header_stdc = yes; then
1932 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1933 cat > conftest.$ac_ext <<EOF
1934 #line 1935 "configure"
1935 #include "confdefs.h"
1938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1939 egrep "free" >/dev/null 2>&1; then
1943 ac_cv_header_stdc=no
1949 if test $ac_cv_header_stdc = yes; then
1950 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1951 if test "$cross_compiling" = yes; then
1954 cat > conftest.$ac_ext <<EOF
1955 #line 1956 "configure"
1956 #include "confdefs.h"
1958 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1959 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1960 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1961 int main () { int i; for (i = 0; i < 256; i++)
1962 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1966 if { (eval echo configure:1967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1970 echo "configure: failed program was:" >&5
1971 cat conftest.$ac_ext >&5
1973 ac_cv_header_stdc=no
1981 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1982 if test $ac_cv_header_stdc = yes; then
1983 cat >> confdefs.h <<\EOF
1984 #define STDC_HEADERS 1
1990 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1992 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1993 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1994 echo "configure:1995: checking for $ac_hdr that defines DIR" >&5
1995 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1996 echo $ac_n "(cached) $ac_c" 1>&6
1998 cat > conftest.$ac_ext <<EOF
1999 #line 2000 "configure"
2000 #include "confdefs.h"
2001 #include <sys/types.h>
2007 if { (eval echo configure:2008: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2009 eval "ac_cv_header_dirent_$ac_safe=yes"
2011 echo "configure: failed program was:" >&5
2012 cat conftest.$ac_ext >&5
2014 eval "ac_cv_header_dirent_$ac_safe=no"
2018 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2019 echo "$ac_t""yes" 1>&6
2020 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2021 cat >> confdefs.h <<EOF
2022 #define $ac_tr_hdr 1
2024 ac_header_dirent=$ac_hdr; break
2026 echo "$ac_t""no" 1>&6
2029 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2030 if test $ac_header_dirent = dirent.h; then
2031 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2032 echo "configure:2033: checking for opendir in -ldir" >&5
2033 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2034 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2035 echo $ac_n "(cached) $ac_c" 1>&6
2037 ac_save_LIBS="$LIBS"
2039 cat > conftest.$ac_ext <<EOF
2040 #line 2041 "configure"
2041 #include "confdefs.h"
2042 /* Override any gcc2 internal prototype to avoid an error. */
2043 /* We use char because int might match the return type of a gcc2
2044 builtin and then its argument prototype would still apply. */
2051 if { (eval echo configure:2052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2053 eval "ac_cv_lib_$ac_lib_var=yes"
2055 echo "configure: failed program was:" >&5
2056 cat conftest.$ac_ext >&5
2058 eval "ac_cv_lib_$ac_lib_var=no"
2061 LIBS="$ac_save_LIBS"
2064 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2065 echo "$ac_t""yes" 1>&6
2068 echo "$ac_t""no" 1>&6
2072 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2073 echo "configure:2074: checking for opendir in -lx" >&5
2074 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2075 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2076 echo $ac_n "(cached) $ac_c" 1>&6
2078 ac_save_LIBS="$LIBS"
2080 cat > conftest.$ac_ext <<EOF
2081 #line 2082 "configure"
2082 #include "confdefs.h"
2083 /* Override any gcc2 internal prototype to avoid an error. */
2084 /* We use char because int might match the return type of a gcc2
2085 builtin and then its argument prototype would still apply. */
2092 if { (eval echo configure:2093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2094 eval "ac_cv_lib_$ac_lib_var=yes"
2096 echo "configure: failed program was:" >&5
2097 cat conftest.$ac_ext >&5
2099 eval "ac_cv_lib_$ac_lib_var=no"
2102 LIBS="$ac_save_LIBS"
2105 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2106 echo "$ac_t""yes" 1>&6
2109 echo "$ac_t""no" 1>&6
2114 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2115 echo "configure:2116: checking whether time.h and sys/time.h may both be included" >&5
2116 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2117 echo $ac_n "(cached) $ac_c" 1>&6
2119 cat > conftest.$ac_ext <<EOF
2120 #line 2121 "configure"
2121 #include "confdefs.h"
2122 #include <sys/types.h>
2123 #include <sys/time.h>
2129 if { (eval echo configure:2130: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2131 ac_cv_header_time=yes
2133 echo "configure: failed program was:" >&5
2134 cat conftest.$ac_ext >&5
2136 ac_cv_header_time=no
2141 echo "$ac_t""$ac_cv_header_time" 1>&6
2142 if test $ac_cv_header_time = yes; then
2143 cat >> confdefs.h <<\EOF
2144 #define TIME_WITH_SYS_TIME 1
2149 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2150 echo "configure:2151: checking for sys/wait.h that is POSIX.1 compatible" >&5
2151 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2152 echo $ac_n "(cached) $ac_c" 1>&6
2154 cat > conftest.$ac_ext <<EOF
2155 #line 2156 "configure"
2156 #include "confdefs.h"
2157 #include <sys/types.h>
2158 #include <sys/wait.h>
2160 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2163 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2168 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2171 if { (eval echo configure:2172: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2173 ac_cv_header_sys_wait_h=yes
2175 echo "configure: failed program was:" >&5
2176 cat conftest.$ac_ext >&5
2178 ac_cv_header_sys_wait_h=no
2183 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2184 if test $ac_cv_header_sys_wait_h = yes; then
2185 cat >> confdefs.h <<\EOF
2186 #define HAVE_SYS_WAIT_H 1
2191 for ac_hdr in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
2193 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2194 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2195 echo "configure:2196: checking for $ac_hdr" >&5
2196 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2197 echo $ac_n "(cached) $ac_c" 1>&6
2199 cat > conftest.$ac_ext <<EOF
2200 #line 2201 "configure"
2201 #include "confdefs.h"
2204 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2205 { (eval echo configure:2206: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2206 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2207 if test -z "$ac_err"; then
2209 eval "ac_cv_header_$ac_safe=yes"
2212 echo "configure: failed program was:" >&5
2213 cat conftest.$ac_ext >&5
2215 eval "ac_cv_header_$ac_safe=no"
2219 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2220 echo "$ac_t""yes" 1>&6
2221 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2222 cat >> confdefs.h <<EOF
2223 #define $ac_tr_hdr 1
2227 echo "$ac_t""no" 1>&6
2231 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
2233 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2234 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2235 echo "configure:2236: checking for $ac_hdr" >&5
2236 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2237 echo $ac_n "(cached) $ac_c" 1>&6
2239 cat > conftest.$ac_ext <<EOF
2240 #line 2241 "configure"
2241 #include "confdefs.h"
2244 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2245 { (eval echo configure:2246: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2246 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2247 if test -z "$ac_err"; then
2249 eval "ac_cv_header_$ac_safe=yes"
2252 echo "configure: failed program was:" >&5
2253 cat conftest.$ac_ext >&5
2255 eval "ac_cv_header_$ac_safe=no"
2259 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2260 echo "$ac_t""yes" 1>&6
2261 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2262 cat >> confdefs.h <<EOF
2263 #define $ac_tr_hdr 1
2267 echo "$ac_t""no" 1>&6
2271 for ac_hdr in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
2273 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2274 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2275 echo "configure:2276: checking for $ac_hdr" >&5
2276 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2277 echo $ac_n "(cached) $ac_c" 1>&6
2279 cat > conftest.$ac_ext <<EOF
2280 #line 2281 "configure"
2281 #include "confdefs.h"
2284 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2285 { (eval echo configure:2286: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2286 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2287 if test -z "$ac_err"; then
2289 eval "ac_cv_header_$ac_safe=yes"
2292 echo "configure: failed program was:" >&5
2293 cat conftest.$ac_ext >&5
2295 eval "ac_cv_header_$ac_safe=no"
2299 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2300 echo "$ac_t""yes" 1>&6
2301 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2302 cat >> confdefs.h <<EOF
2303 #define $ac_tr_hdr 1
2307 echo "$ac_t""no" 1>&6
2311 for ac_hdr in sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h
2313 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2314 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2315 echo "configure:2316: checking for $ac_hdr" >&5
2316 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2317 echo $ac_n "(cached) $ac_c" 1>&6
2319 cat > conftest.$ac_ext <<EOF
2320 #line 2321 "configure"
2321 #include "confdefs.h"
2324 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2325 { (eval echo configure:2326: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2326 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2327 if test -z "$ac_err"; then
2329 eval "ac_cv_header_$ac_safe=yes"
2332 echo "configure: failed program was:" >&5
2333 cat conftest.$ac_ext >&5
2335 eval "ac_cv_header_$ac_safe=no"
2339 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2340 echo "$ac_t""yes" 1>&6
2341 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2342 cat >> confdefs.h <<EOF
2343 #define $ac_tr_hdr 1
2347 echo "$ac_t""no" 1>&6
2351 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
2353 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2354 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2355 echo "configure:2356: checking for $ac_hdr" >&5
2356 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2357 echo $ac_n "(cached) $ac_c" 1>&6
2359 cat > conftest.$ac_ext <<EOF
2360 #line 2361 "configure"
2361 #include "confdefs.h"
2364 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2365 { (eval echo configure:2366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2366 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2367 if test -z "$ac_err"; then
2369 eval "ac_cv_header_$ac_safe=yes"
2372 echo "configure: failed program was:" >&5
2373 cat conftest.$ac_ext >&5
2375 eval "ac_cv_header_$ac_safe=no"
2379 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2380 echo "$ac_t""yes" 1>&6
2381 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2382 cat >> confdefs.h <<EOF
2383 #define $ac_tr_hdr 1
2387 echo "$ac_t""no" 1>&6
2391 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
2393 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2394 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2395 echo "configure:2396: checking for $ac_hdr" >&5
2396 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2397 echo $ac_n "(cached) $ac_c" 1>&6
2399 cat > conftest.$ac_ext <<EOF
2400 #line 2401 "configure"
2401 #include "confdefs.h"
2404 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2405 { (eval echo configure:2406: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2406 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2407 if test -z "$ac_err"; then
2409 eval "ac_cv_header_$ac_safe=yes"
2412 echo "configure: failed program was:" >&5
2413 cat conftest.$ac_ext >&5
2415 eval "ac_cv_header_$ac_safe=no"
2419 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2420 echo "$ac_t""yes" 1>&6
2421 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2422 cat >> confdefs.h <<EOF
2423 #define $ac_tr_hdr 1
2427 echo "$ac_t""no" 1>&6
2431 for ac_hdr in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
2433 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2434 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2435 echo "configure:2436: checking for $ac_hdr" >&5
2436 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2437 echo $ac_n "(cached) $ac_c" 1>&6
2439 cat > conftest.$ac_ext <<EOF
2440 #line 2441 "configure"
2441 #include "confdefs.h"
2444 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2445 { (eval echo configure:2446: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2446 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2447 if test -z "$ac_err"; then
2449 eval "ac_cv_header_$ac_safe=yes"
2452 echo "configure: failed program was:" >&5
2453 cat conftest.$ac_ext >&5
2455 eval "ac_cv_header_$ac_safe=no"
2459 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2460 echo "$ac_t""yes" 1>&6
2461 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2462 cat >> confdefs.h <<EOF
2463 #define $ac_tr_hdr 1
2467 echo "$ac_t""no" 1>&6
2471 for ac_hdr in security/pam_modules.h security/_pam_macros.h ldap.h lber.h dlfcn.h
2473 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2474 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2475 echo "configure:2476: checking for $ac_hdr" >&5
2476 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2477 echo $ac_n "(cached) $ac_c" 1>&6
2479 cat > conftest.$ac_ext <<EOF
2480 #line 2481 "configure"
2481 #include "confdefs.h"
2484 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2485 { (eval echo configure:2486: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2486 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2487 if test -z "$ac_err"; then
2489 eval "ac_cv_header_$ac_safe=yes"
2492 echo "configure: failed program was:" >&5
2493 cat conftest.$ac_ext >&5
2495 eval "ac_cv_header_$ac_safe=no"
2499 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2500 echo "$ac_t""yes" 1>&6
2501 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2502 cat >> confdefs.h <<EOF
2503 #define $ac_tr_hdr 1
2507 echo "$ac_t""no" 1>&6
2513 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2514 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2518 cat > conftest.$ac_ext <<EOF
2519 #line 2520 "configure"
2520 #include "confdefs.h"
2526 if { (eval echo configure:2527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2528 ac_cv_header_shadow_h=yes
2530 echo "configure: failed program was:" >&5
2531 cat conftest.$ac_ext >&5
2533 ac_cv_header_shadow_h=no
2536 if test x"$ac_cv_header_shadow_h" = x"yes"; then
2537 cat >> confdefs.h <<\EOF
2538 #define HAVE_SHADOW_H 1
2544 for ac_hdr in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
2546 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2547 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2548 echo "configure:2549: checking for $ac_hdr" >&5
2549 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2550 echo $ac_n "(cached) $ac_c" 1>&6
2552 cat > conftest.$ac_ext <<EOF
2553 #line 2554 "configure"
2554 #include "confdefs.h"
2557 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2558 { (eval echo configure:2559: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2559 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2560 if test -z "$ac_err"; then
2562 eval "ac_cv_header_$ac_safe=yes"
2565 echo "configure: failed program was:" >&5
2566 cat conftest.$ac_ext >&5
2568 eval "ac_cv_header_$ac_safe=no"
2572 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2573 echo "$ac_t""yes" 1>&6
2574 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2575 cat >> confdefs.h <<EOF
2576 #define $ac_tr_hdr 1
2580 echo "$ac_t""no" 1>&6
2584 for ac_hdr in nss.h nss_common.h ns_api.h sys/security.h security/pam_appl.h security/pam_modules.h
2586 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2587 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2588 echo "configure:2589: checking for $ac_hdr" >&5
2589 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2590 echo $ac_n "(cached) $ac_c" 1>&6
2592 cat > conftest.$ac_ext <<EOF
2593 #line 2594 "configure"
2594 #include "confdefs.h"
2597 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2598 { (eval echo configure:2599: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2599 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2600 if test -z "$ac_err"; then
2602 eval "ac_cv_header_$ac_safe=yes"
2605 echo "configure: failed program was:" >&5
2606 cat conftest.$ac_ext >&5
2608 eval "ac_cv_header_$ac_safe=no"
2612 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2613 echo "$ac_t""yes" 1>&6
2614 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2615 cat >> confdefs.h <<EOF
2616 #define $ac_tr_hdr 1
2620 echo "$ac_t""no" 1>&6
2624 for ac_hdr in stropts.h poll.h
2626 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2627 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2628 echo "configure:2629: checking for $ac_hdr" >&5
2629 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2630 echo $ac_n "(cached) $ac_c" 1>&6
2632 cat > conftest.$ac_ext <<EOF
2633 #line 2634 "configure"
2634 #include "confdefs.h"
2637 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2638 { (eval echo configure:2639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2639 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2640 if test -z "$ac_err"; then
2642 eval "ac_cv_header_$ac_safe=yes"
2645 echo "configure: failed program was:" >&5
2646 cat conftest.$ac_ext >&5
2648 eval "ac_cv_header_$ac_safe=no"
2652 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2653 echo "$ac_t""yes" 1>&6
2654 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2655 cat >> confdefs.h <<EOF
2656 #define $ac_tr_hdr 1
2660 echo "$ac_t""no" 1>&6
2664 for ac_hdr in sys/capability.h syscall.h sys/syscall.h
2666 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2667 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2668 echo "configure:2669: checking for $ac_hdr" >&5
2669 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2670 echo $ac_n "(cached) $ac_c" 1>&6
2672 cat > conftest.$ac_ext <<EOF
2673 #line 2674 "configure"
2674 #include "confdefs.h"
2677 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2678 { (eval echo configure:2679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2679 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2680 if test -z "$ac_err"; then
2682 eval "ac_cv_header_$ac_safe=yes"
2685 echo "configure: failed program was:" >&5
2686 cat conftest.$ac_ext >&5
2688 eval "ac_cv_header_$ac_safe=no"
2692 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2693 echo "$ac_t""yes" 1>&6
2694 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2695 cat >> confdefs.h <<EOF
2696 #define $ac_tr_hdr 1
2700 echo "$ac_t""no" 1>&6
2704 for ac_hdr in sys/acl.h sys/cdefs.h glob.h
2706 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2707 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2708 echo "configure:2709: checking for $ac_hdr" >&5
2709 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2710 echo $ac_n "(cached) $ac_c" 1>&6
2712 cat > conftest.$ac_ext <<EOF
2713 #line 2714 "configure"
2714 #include "confdefs.h"
2717 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2718 { (eval echo configure:2719: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2719 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2720 if test -z "$ac_err"; then
2722 eval "ac_cv_header_$ac_safe=yes"
2725 echo "configure: failed program was:" >&5
2726 cat conftest.$ac_ext >&5
2728 eval "ac_cv_header_$ac_safe=no"
2732 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2733 echo "$ac_t""yes" 1>&6
2734 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2735 cat >> confdefs.h <<EOF
2736 #define $ac_tr_hdr 1
2740 echo "$ac_t""no" 1>&6
2745 # For experimental utmp support (lastlog on some BSD-like systems)
2746 for ac_hdr in utmp.h utmpx.h lastlog.h
2748 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2749 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2750 echo "configure:2751: checking for $ac_hdr" >&5
2751 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2752 echo $ac_n "(cached) $ac_c" 1>&6
2754 cat > conftest.$ac_ext <<EOF
2755 #line 2756 "configure"
2756 #include "confdefs.h"
2759 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2760 { (eval echo configure:2761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2761 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2762 if test -z "$ac_err"; then
2764 eval "ac_cv_header_$ac_safe=yes"
2767 echo "configure: failed program was:" >&5
2768 cat conftest.$ac_ext >&5
2770 eval "ac_cv_header_$ac_safe=no"
2774 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2775 echo "$ac_t""yes" 1>&6
2776 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2777 cat >> confdefs.h <<EOF
2778 #define $ac_tr_hdr 1
2782 echo "$ac_t""no" 1>&6
2787 # For quotas on Veritas VxFS filesystems
2788 for ac_hdr in sys/fs/vx_quota.h
2790 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2791 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2792 echo "configure:2793: checking for $ac_hdr" >&5
2793 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2794 echo $ac_n "(cached) $ac_c" 1>&6
2796 cat > conftest.$ac_ext <<EOF
2797 #line 2798 "configure"
2798 #include "confdefs.h"
2801 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2802 { (eval echo configure:2803: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2803 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2804 if test -z "$ac_err"; then
2806 eval "ac_cv_header_$ac_safe=yes"
2809 echo "configure: failed program was:" >&5
2810 cat conftest.$ac_ext >&5
2812 eval "ac_cv_header_$ac_safe=no"
2816 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2817 echo "$ac_t""yes" 1>&6
2818 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2819 cat >> confdefs.h <<EOF
2820 #define $ac_tr_hdr 1
2824 echo "$ac_t""no" 1>&6
2829 # For quotas on Linux XFS filesystems
2830 for ac_hdr in linux/xqm.h
2832 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2833 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2834 echo "configure:2835: checking for $ac_hdr" >&5
2835 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2836 echo $ac_n "(cached) $ac_c" 1>&6
2838 cat > conftest.$ac_ext <<EOF
2839 #line 2840 "configure"
2840 #include "confdefs.h"
2843 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2844 { (eval echo configure:2845: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2845 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2846 if test -z "$ac_err"; then
2848 eval "ac_cv_header_$ac_safe=yes"
2851 echo "configure: failed program was:" >&5
2852 cat conftest.$ac_ext >&5
2854 eval "ac_cv_header_$ac_safe=no"
2858 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2859 echo "$ac_t""yes" 1>&6
2860 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2861 cat >> confdefs.h <<EOF
2862 #define $ac_tr_hdr 1
2866 echo "$ac_t""no" 1>&6
2871 echo $ac_n "checking size of int""... $ac_c" 1>&6
2872 echo "configure:2873: checking size of int" >&5
2873 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2874 echo $ac_n "(cached) $ac_c" 1>&6
2876 if test "$cross_compiling" = yes; then
2877 ac_cv_sizeof_int=cross
2879 cat > conftest.$ac_ext <<EOF
2880 #line 2881 "configure"
2881 #include "confdefs.h"
2885 FILE *f=fopen("conftestval", "w");
2887 fprintf(f, "%d\n", sizeof(int));
2891 if { (eval echo configure:2892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2893 ac_cv_sizeof_int=`cat conftestval`
2895 echo "configure: failed program was:" >&5
2896 cat conftest.$ac_ext >&5
2904 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2905 cat >> confdefs.h <<EOF
2906 #define SIZEOF_INT $ac_cv_sizeof_int
2910 echo $ac_n "checking size of long""... $ac_c" 1>&6
2911 echo "configure:2912: checking size of long" >&5
2912 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2913 echo $ac_n "(cached) $ac_c" 1>&6
2915 if test "$cross_compiling" = yes; then
2916 ac_cv_sizeof_long=cross
2918 cat > conftest.$ac_ext <<EOF
2919 #line 2920 "configure"
2920 #include "confdefs.h"
2924 FILE *f=fopen("conftestval", "w");
2926 fprintf(f, "%d\n", sizeof(long));
2930 if { (eval echo configure:2931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2932 ac_cv_sizeof_long=`cat conftestval`
2934 echo "configure: failed program was:" >&5
2935 cat conftest.$ac_ext >&5
2943 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2944 cat >> confdefs.h <<EOF
2945 #define SIZEOF_LONG $ac_cv_sizeof_long
2949 echo $ac_n "checking size of short""... $ac_c" 1>&6
2950 echo "configure:2951: checking size of short" >&5
2951 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2952 echo $ac_n "(cached) $ac_c" 1>&6
2954 if test "$cross_compiling" = yes; then
2955 ac_cv_sizeof_short=cross
2957 cat > conftest.$ac_ext <<EOF
2958 #line 2959 "configure"
2959 #include "confdefs.h"
2963 FILE *f=fopen("conftestval", "w");
2965 fprintf(f, "%d\n", sizeof(short));
2969 if { (eval echo configure:2970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2971 ac_cv_sizeof_short=`cat conftestval`
2973 echo "configure: failed program was:" >&5
2974 cat conftest.$ac_ext >&5
2976 ac_cv_sizeof_short=0
2982 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2983 cat >> confdefs.h <<EOF
2984 #define SIZEOF_SHORT $ac_cv_sizeof_short
2989 echo $ac_n "checking for working const""... $ac_c" 1>&6
2990 echo "configure:2991: checking for working const" >&5
2991 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2992 echo $ac_n "(cached) $ac_c" 1>&6
2994 cat > conftest.$ac_ext <<EOF
2995 #line 2996 "configure"
2996 #include "confdefs.h"
3000 /* Ultrix mips cc rejects this. */
3001 typedef int charset[2]; const charset x;
3002 /* SunOS 4.1.1 cc rejects this. */
3003 char const *const *ccp;
3005 /* NEC SVR4.0.2 mips cc rejects this. */
3006 struct point {int x, y;};
3007 static struct point const zero = {0,0};
3008 /* AIX XL C 1.02.0.0 rejects this.
3009 It does not let you subtract one const X* pointer from another in an arm
3010 of an if-expression whose if-part is not a constant expression */
3011 const char *g = "string";
3012 ccp = &g + (g ? g-g : 0);
3013 /* HPUX 7.0 cc rejects these. */
3016 ccp = (char const *const *) p;
3017 { /* SCO 3.2v4 cc rejects this. */
3019 char const *s = 0 ? (char *) 0 : (char const *) 0;
3023 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3025 const int *foo = &x[0];
3028 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3029 typedef const int *iptr;
3033 { /* AIX XL C 1.02.0.0 rejects this saying
3034 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3035 struct s { int j; const int *ap[3]; };
3036 struct s *b; b->j = 5;
3038 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3044 if { (eval echo configure:3045: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3048 echo "configure: failed program was:" >&5
3049 cat conftest.$ac_ext >&5
3056 echo "$ac_t""$ac_cv_c_const" 1>&6
3057 if test $ac_cv_c_const = no; then
3058 cat >> confdefs.h <<\EOF
3064 echo $ac_n "checking for inline""... $ac_c" 1>&6
3065 echo "configure:3066: checking for inline" >&5
3066 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3067 echo $ac_n "(cached) $ac_c" 1>&6
3070 for ac_kw in inline __inline__ __inline; do
3071 cat > conftest.$ac_ext <<EOF
3072 #line 3073 "configure"
3073 #include "confdefs.h"
3079 if { (eval echo configure:3080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3081 ac_cv_c_inline=$ac_kw; break
3083 echo "configure: failed program was:" >&5
3084 cat conftest.$ac_ext >&5
3091 echo "$ac_t""$ac_cv_c_inline" 1>&6
3092 case "$ac_cv_c_inline" in
3094 no) cat >> confdefs.h <<\EOF
3098 *) cat >> confdefs.h <<EOF
3099 #define inline $ac_cv_c_inline
3104 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3105 echo "configure:3106: checking whether byte ordering is bigendian" >&5
3106 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3107 echo $ac_n "(cached) $ac_c" 1>&6
3109 ac_cv_c_bigendian=unknown
3110 # See if sys/param.h defines the BYTE_ORDER macro.
3111 cat > conftest.$ac_ext <<EOF
3112 #line 3113 "configure"
3113 #include "confdefs.h"
3114 #include <sys/types.h>
3115 #include <sys/param.h>
3118 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3123 if { (eval echo configure:3124: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3125 # It does; now see whether it defined to BIG_ENDIAN or not.
3126 cat > conftest.$ac_ext <<EOF
3127 #line 3128 "configure"
3128 #include "confdefs.h"
3129 #include <sys/types.h>
3130 #include <sys/param.h>
3133 #if BYTE_ORDER != BIG_ENDIAN
3138 if { (eval echo configure:3139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3140 ac_cv_c_bigendian=yes
3142 echo "configure: failed program was:" >&5
3143 cat conftest.$ac_ext >&5
3145 ac_cv_c_bigendian=no
3149 echo "configure: failed program was:" >&5
3150 cat conftest.$ac_ext >&5
3153 if test $ac_cv_c_bigendian = unknown; then
3154 if test "$cross_compiling" = yes; then
3155 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3157 cat > conftest.$ac_ext <<EOF
3158 #line 3159 "configure"
3159 #include "confdefs.h"
3161 /* Are we little or big endian? From Harbison&Steele. */
3165 char c[sizeof (long)];
3168 exit (u.c[sizeof (long) - 1] == 1);
3171 if { (eval echo configure:3172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3173 ac_cv_c_bigendian=no
3175 echo "configure: failed program was:" >&5
3176 cat conftest.$ac_ext >&5
3178 ac_cv_c_bigendian=yes
3186 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3187 if test $ac_cv_c_bigendian = yes; then
3188 cat >> confdefs.h <<\EOF
3189 #define WORDS_BIGENDIAN 1
3194 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3195 echo "configure:3196: checking whether char is unsigned" >&5
3196 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3197 echo $ac_n "(cached) $ac_c" 1>&6
3199 if test "$GCC" = yes; then
3200 # GCC predefines this symbol on systems where it applies.
3201 cat > conftest.$ac_ext <<EOF
3202 #line 3203 "configure"
3203 #include "confdefs.h"
3204 #ifdef __CHAR_UNSIGNED__
3209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3210 egrep "yes" >/dev/null 2>&1; then
3212 ac_cv_c_char_unsigned=yes
3215 ac_cv_c_char_unsigned=no
3220 if test "$cross_compiling" = yes; then
3221 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3223 cat > conftest.$ac_ext <<EOF
3224 #line 3225 "configure"
3225 #include "confdefs.h"
3226 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3227 #if !defined(__STDC__) || __STDC__ != 1
3231 volatile char c = 255; exit(c < 0);
3234 if { (eval echo configure:3235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3236 ac_cv_c_char_unsigned=yes
3238 echo "configure: failed program was:" >&5
3239 cat conftest.$ac_ext >&5
3241 ac_cv_c_char_unsigned=no
3249 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3250 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3251 cat >> confdefs.h <<\EOF
3252 #define __CHAR_UNSIGNED__ 1
3258 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3259 echo "configure:3260: checking return type of signal handlers" >&5
3260 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3261 echo $ac_n "(cached) $ac_c" 1>&6
3263 cat > conftest.$ac_ext <<EOF
3264 #line 3265 "configure"
3265 #include "confdefs.h"
3266 #include <sys/types.h>
3272 extern "C" void (*signal (int, void (*)(int)))(int);
3274 void (*signal ()) ();
3281 if { (eval echo configure:3282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3283 ac_cv_type_signal=void
3285 echo "configure: failed program was:" >&5
3286 cat conftest.$ac_ext >&5
3288 ac_cv_type_signal=int
3293 echo "$ac_t""$ac_cv_type_signal" 1>&6
3294 cat >> confdefs.h <<EOF
3295 #define RETSIGTYPE $ac_cv_type_signal
3299 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3300 echo "configure:3301: checking for uid_t in sys/types.h" >&5
3301 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3302 echo $ac_n "(cached) $ac_c" 1>&6
3304 cat > conftest.$ac_ext <<EOF
3305 #line 3306 "configure"
3306 #include "confdefs.h"
3307 #include <sys/types.h>
3309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3310 egrep "uid_t" >/dev/null 2>&1; then
3312 ac_cv_type_uid_t=yes
3321 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3322 if test $ac_cv_type_uid_t = no; then
3323 cat >> confdefs.h <<\EOF
3327 cat >> confdefs.h <<\EOF
3333 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3334 echo "configure:3335: checking for mode_t" >&5
3335 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3336 echo $ac_n "(cached) $ac_c" 1>&6
3338 cat > conftest.$ac_ext <<EOF
3339 #line 3340 "configure"
3340 #include "confdefs.h"
3341 #include <sys/types.h>
3347 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3348 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3350 ac_cv_type_mode_t=yes
3353 ac_cv_type_mode_t=no
3358 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3359 if test $ac_cv_type_mode_t = no; then
3360 cat >> confdefs.h <<\EOF
3366 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3367 echo "configure:3368: checking for off_t" >&5
3368 if eval "test \"`echo '$''{'ac_cv_type_off_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])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3383 ac_cv_type_off_t=yes
3391 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3392 if test $ac_cv_type_off_t = no; then
3393 cat >> confdefs.h <<\EOF
3399 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3400 echo "configure:3401: checking for size_t" >&5
3401 if eval "test \"`echo '$''{'ac_cv_type_size_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])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3416 ac_cv_type_size_t=yes
3419 ac_cv_type_size_t=no
3424 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3425 if test $ac_cv_type_size_t = no; then
3426 cat >> confdefs.h <<\EOF
3427 #define size_t unsigned
3432 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3433 echo "configure:3434: checking for pid_t" >&5
3434 if eval "test \"`echo '$''{'ac_cv_type_pid_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])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3449 ac_cv_type_pid_t=yes
3457 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3458 if test $ac_cv_type_pid_t = no; then
3459 cat >> confdefs.h <<\EOF
3465 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3466 echo "configure:3467: checking for st_rdev in struct stat" >&5
3467 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+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>
3474 #include <sys/stat.h>
3476 struct stat s; s.st_rdev;
3479 if { (eval echo configure:3480: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3481 ac_cv_struct_st_rdev=yes
3483 echo "configure: failed program was:" >&5
3484 cat conftest.$ac_ext >&5
3486 ac_cv_struct_st_rdev=no
3491 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3492 if test $ac_cv_struct_st_rdev = yes; then
3493 cat >> confdefs.h <<\EOF
3494 #define HAVE_ST_RDEV 1
3499 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3500 echo "configure:3501: checking for d_off in dirent" >&5
3501 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3502 echo $ac_n "(cached) $ac_c" 1>&6
3504 cat > conftest.$ac_ext <<EOF
3505 #line 3506 "configure"
3506 #include "confdefs.h"
3509 #include <sys/types.h>
3512 struct dirent d; d.d_off;
3515 if { (eval echo configure:3516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3517 ac_cv_dirent_d_off=yes
3519 echo "configure: failed program was:" >&5
3520 cat conftest.$ac_ext >&5
3522 ac_cv_dirent_d_off=no
3527 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3528 if test $ac_cv_dirent_d_off = yes; then
3529 cat >> confdefs.h <<\EOF
3530 #define HAVE_DIRENT_D_OFF 1
3535 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3536 echo "configure:3537: checking for ino_t" >&5
3537 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3538 echo $ac_n "(cached) $ac_c" 1>&6
3540 cat > conftest.$ac_ext <<EOF
3541 #line 3542 "configure"
3542 #include "confdefs.h"
3543 #include <sys/types.h>
3549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3550 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3552 ac_cv_type_ino_t=yes
3560 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3561 if test $ac_cv_type_ino_t = no; then
3562 cat >> confdefs.h <<\EOF
3563 #define ino_t unsigned
3568 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3569 echo "configure:3570: checking for loff_t" >&5
3570 if eval "test \"`echo '$''{'ac_cv_type_loff_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])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3585 ac_cv_type_loff_t=yes
3588 ac_cv_type_loff_t=no
3593 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3594 if test $ac_cv_type_loff_t = no; then
3595 cat >> confdefs.h <<\EOF
3596 #define loff_t off_t
3601 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3602 echo "configure:3603: checking for offset_t" >&5
3603 if eval "test \"`echo '$''{'ac_cv_type_offset_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])offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3618 ac_cv_type_offset_t=yes
3621 ac_cv_type_offset_t=no
3626 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3627 if test $ac_cv_type_offset_t = no; then
3628 cat >> confdefs.h <<\EOF
3629 #define offset_t loff_t
3634 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3635 echo "configure:3636: checking for ssize_t" >&5
3636 if eval "test \"`echo '$''{'ac_cv_type_ssize_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])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3651 ac_cv_type_ssize_t=yes
3654 ac_cv_type_ssize_t=no
3659 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3660 if test $ac_cv_type_ssize_t = no; then
3661 cat >> confdefs.h <<\EOF
3667 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3668 echo "configure:3669: checking for wchar_t" >&5
3669 if eval "test \"`echo '$''{'ac_cv_type_wchar_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])wchar_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3684 ac_cv_type_wchar_t=yes
3687 ac_cv_type_wchar_t=no
3692 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3693 if test $ac_cv_type_wchar_t = no; then
3694 cat >> confdefs.h <<\EOF
3695 #define wchar_t unsigned short
3701 ############################################
3702 # for cups support we need libcups, and a handful of header files
3704 echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
3705 echo "configure:3706: checking for httpConnect in -lcups" >&5
3706 ac_lib_var=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
3707 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3708 echo $ac_n "(cached) $ac_c" 1>&6
3710 ac_save_LIBS="$LIBS"
3712 cat > conftest.$ac_ext <<EOF
3713 #line 3714 "configure"
3714 #include "confdefs.h"
3715 /* Override any gcc2 internal prototype to avoid an error. */
3716 /* We use char because int might match the return type of a gcc2
3717 builtin and then its argument prototype would still apply. */
3724 if { (eval echo configure:3725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3726 eval "ac_cv_lib_$ac_lib_var=yes"
3728 echo "configure: failed program was:" >&5
3729 cat conftest.$ac_ext >&5
3731 eval "ac_cv_lib_$ac_lib_var=no"
3734 LIBS="$ac_save_LIBS"
3737 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3738 echo "$ac_t""yes" 1>&6
3739 ac_tr_lib=HAVE_LIB`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3740 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3741 cat >> confdefs.h <<EOF
3742 #define $ac_tr_lib 1
3748 echo "$ac_t""no" 1>&6
3752 # I wonder if there is a nicer way of doing this?
3754 if test x"$ac_cv_lib_cups_httpConnect" = x"yes"; then
3755 for ac_hdr in cups/cups.h cups/language.h
3757 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3758 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3759 echo "configure:3760: checking for $ac_hdr" >&5
3760 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3761 echo $ac_n "(cached) $ac_c" 1>&6
3763 cat > conftest.$ac_ext <<EOF
3764 #line 3765 "configure"
3765 #include "confdefs.h"
3768 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3769 { (eval echo configure:3770: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3770 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3771 if test -z "$ac_err"; then
3773 eval "ac_cv_header_$ac_safe=yes"
3776 echo "configure: failed program was:" >&5
3777 cat conftest.$ac_ext >&5
3779 eval "ac_cv_header_$ac_safe=no"
3783 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3784 echo "$ac_t""yes" 1>&6
3785 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3786 cat >> confdefs.h <<EOF
3787 #define $ac_tr_hdr 1
3791 echo "$ac_t""no" 1>&6
3795 if test x"$ac_cv_header_cups_cups_h" = x"yes"; then
3796 if test x"$ac_cv_header_cups_language_h" = x"yes"; then
3797 cat >> confdefs.h <<\EOF
3805 ############################################
3806 # we need dlopen/dlclose/dlsym/dlerror for PAM, the password database plugins and the new VFS code
3807 for ac_func in dlopen
3809 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3810 echo "configure:3811: checking for $ac_func" >&5
3811 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3812 echo $ac_n "(cached) $ac_c" 1>&6
3814 cat > conftest.$ac_ext <<EOF
3815 #line 3816 "configure"
3816 #include "confdefs.h"
3817 /* System header to define __stub macros and hopefully few prototypes,
3818 which can conflict with char $ac_func(); below. */
3820 /* Override any gcc2 internal prototype to avoid an error. */
3821 /* We use char because int might match the return type of a gcc2
3822 builtin and then its argument prototype would still apply. */
3827 /* The GNU C library defines this for functions which it implements
3828 to always fail with ENOSYS. Some functions are actually named
3829 something starting with __ and the normal name is an alias. */
3830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3838 if { (eval echo configure:3839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3840 eval "ac_cv_func_$ac_func=yes"
3842 echo "configure: failed program was:" >&5
3843 cat conftest.$ac_ext >&5
3845 eval "ac_cv_func_$ac_func=no"
3850 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3851 echo "$ac_t""yes" 1>&6
3852 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3853 cat >> confdefs.h <<EOF
3854 #define $ac_tr_func 1
3858 echo "$ac_t""no" 1>&6
3862 if test x"$ac_cv_func_dlopen" = x"no"; then
3863 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3864 echo "configure:3865: checking for dlopen in -ldl" >&5
3865 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3866 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3867 echo $ac_n "(cached) $ac_c" 1>&6
3869 ac_save_LIBS="$LIBS"
3871 cat > conftest.$ac_ext <<EOF
3872 #line 3873 "configure"
3873 #include "confdefs.h"
3874 /* Override any gcc2 internal prototype to avoid an error. */
3875 /* We use char because int might match the return type of a gcc2
3876 builtin and then its argument prototype would still apply. */
3883 if { (eval echo configure:3884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3885 eval "ac_cv_lib_$ac_lib_var=yes"
3887 echo "configure: failed program was:" >&5
3888 cat conftest.$ac_ext >&5
3890 eval "ac_cv_lib_$ac_lib_var=no"
3893 LIBS="$ac_save_LIBS"
3896 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3897 echo "$ac_t""yes" 1>&6
3899 cat >> confdefs.h <<\EOF
3900 #define HAVE_DLOPEN 1
3904 echo "$ac_t""no" 1>&6
3908 # dlopen/dlclose/dlsym/dlerror will be checked again later and defines will be set then
3910 ############################################
3911 # check if the compiler can do immediate structures
3912 echo $ac_n "checking for immediate structures""... $ac_c" 1>&6
3913 echo "configure:3914: checking for immediate structures" >&5
3914 if eval "test \"`echo '$''{'samba_cv_immediate_structures'+set}'`\" = set"; then
3915 echo $ac_n "(cached) $ac_c" 1>&6
3918 cat > conftest.$ac_ext <<EOF
3919 #line 3920 "configure"
3920 #include "confdefs.h"
3925 typedef struct {unsigned x;} FOOBAR;
3926 #define X_FOOBAR(x) ((FOOBAR) { x })
3927 #define FOO_ONE X_FOOBAR(1)
3937 if { (eval echo configure:3938: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3939 samba_cv_immediate_structures=yes
3941 echo "configure: failed program was:" >&5
3942 cat conftest.$ac_ext >&5
3944 samba_cv_immediate_structures=no
3949 echo "$ac_t""$samba_cv_immediate_structures" 1>&6
3950 if test x"$samba_cv_immediate_structures" = x"yes"; then
3951 cat >> confdefs.h <<\EOF
3952 #define HAVE_IMMEDIATE_STRUCTURES 1
3957 ############################################
3958 # check for unix domain sockets
3959 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
3960 echo "configure:3961: checking for unix domain sockets" >&5
3961 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
3962 echo $ac_n "(cached) $ac_c" 1>&6
3965 cat > conftest.$ac_ext <<EOF
3966 #line 3967 "configure"
3967 #include "confdefs.h"
3969 #include <sys/types.h>
3972 #include <sys/socket.h>
3976 struct sockaddr_un sunaddr;
3977 sunaddr.sun_family = AF_UNIX;
3981 if { (eval echo configure:3982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3983 samba_cv_unixsocket=yes
3985 echo "configure: failed program was:" >&5
3986 cat conftest.$ac_ext >&5
3988 samba_cv_unixsocket=no
3993 echo "$ac_t""$samba_cv_unixsocket" 1>&6
3994 if test x"$samba_cv_unixsocket" = x"yes"; then
3995 cat >> confdefs.h <<\EOF
3996 #define HAVE_UNIXSOCKET 1
4002 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
4003 echo "configure:4004: checking for socklen_t type" >&5
4004 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
4005 echo $ac_n "(cached) $ac_c" 1>&6
4008 cat > conftest.$ac_ext <<EOF
4009 #line 4010 "configure"
4010 #include "confdefs.h"
4012 #include <sys/types.h>
4017 #include <sys/socket.h>
4022 if { (eval echo configure:4023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4024 samba_cv_socklen_t=yes
4026 echo "configure: failed program was:" >&5
4027 cat conftest.$ac_ext >&5
4029 samba_cv_socklen_t=no
4034 echo "$ac_t""$samba_cv_socklen_t" 1>&6
4035 if test x"$samba_cv_socklen_t" = x"yes"; then
4036 cat >> confdefs.h <<\EOF
4037 #define HAVE_SOCKLEN_T_TYPE 1
4042 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
4043 echo "configure:4044: checking for sig_atomic_t type" >&5
4044 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
4045 echo $ac_n "(cached) $ac_c" 1>&6
4048 cat > conftest.$ac_ext <<EOF
4049 #line 4050 "configure"
4050 #include "confdefs.h"
4052 #include <sys/types.h>
4062 if { (eval echo configure:4063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4064 samba_cv_sig_atomic_t=yes
4066 echo "configure: failed program was:" >&5
4067 cat conftest.$ac_ext >&5
4069 samba_cv_sig_atomic_t=no
4074 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
4075 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
4076 cat >> confdefs.h <<\EOF
4077 #define HAVE_SIG_ATOMIC_T_TYPE 1
4082 # stupid headers have the functions but no declaration. grrrr.
4084 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
4085 echo "configure:4086: checking for errno declaration" >&5
4086 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
4087 echo $ac_n "(cached) $ac_c" 1>&6
4090 cat > conftest.$ac_ext <<EOF
4091 #line 4092 "configure"
4092 #include "confdefs.h"
4098 if { (eval echo configure:4099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4100 ac_cv_have_errno_decl=yes
4102 echo "configure: failed program was:" >&5
4103 cat conftest.$ac_ext >&5
4105 ac_cv_have_errno_decl=no
4110 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
4111 if test x"$ac_cv_have_errno_decl" = x"yes"; then
4112 cat >> confdefs.h <<\EOF
4113 #define HAVE_ERRNO_DECL 1
4119 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
4120 echo "configure:4121: checking for setresuid declaration" >&5
4121 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
4122 echo $ac_n "(cached) $ac_c" 1>&6
4125 cat > conftest.$ac_ext <<EOF
4126 #line 4127 "configure"
4127 #include "confdefs.h"
4130 int i = (int)setresuid
4133 if { (eval echo configure:4134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4135 ac_cv_have_setresuid_decl=yes
4137 echo "configure: failed program was:" >&5
4138 cat conftest.$ac_ext >&5
4140 ac_cv_have_setresuid_decl=no
4145 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
4146 if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
4147 cat >> confdefs.h <<\EOF
4148 #define HAVE_SETRESUID_DECL 1
4154 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
4155 echo "configure:4156: checking for setresgid declaration" >&5
4156 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
4157 echo $ac_n "(cached) $ac_c" 1>&6
4160 cat > conftest.$ac_ext <<EOF
4161 #line 4162 "configure"
4162 #include "confdefs.h"
4165 int i = (int)setresgid
4168 if { (eval echo configure:4169: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4170 ac_cv_have_setresgid_decl=yes
4172 echo "configure: failed program was:" >&5
4173 cat conftest.$ac_ext >&5
4175 ac_cv_have_setresgid_decl=no
4180 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
4181 if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
4182 cat >> confdefs.h <<\EOF
4183 #define HAVE_SETRESGID_DECL 1
4189 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
4190 echo "configure:4191: checking for asprintf declaration" >&5
4191 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
4192 echo $ac_n "(cached) $ac_c" 1>&6
4195 cat > conftest.$ac_ext <<EOF
4196 #line 4197 "configure"
4197 #include "confdefs.h"
4200 int i = (int)asprintf
4203 if { (eval echo configure:4204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4205 ac_cv_have_asprintf_decl=yes
4207 echo "configure: failed program was:" >&5
4208 cat conftest.$ac_ext >&5
4210 ac_cv_have_asprintf_decl=no
4215 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
4216 if test x"$ac_cv_have_asprintf_decl" = x"yes"; then
4217 cat >> confdefs.h <<\EOF
4218 #define HAVE_ASPRINTF_DECL 1
4224 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
4225 echo "configure:4226: checking for vasprintf declaration" >&5
4226 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
4227 echo $ac_n "(cached) $ac_c" 1>&6
4230 cat > conftest.$ac_ext <<EOF
4231 #line 4232 "configure"
4232 #include "confdefs.h"
4235 int i = (int)vasprintf
4238 if { (eval echo configure:4239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4240 ac_cv_have_vasprintf_decl=yes
4242 echo "configure: failed program was:" >&5
4243 cat conftest.$ac_ext >&5
4245 ac_cv_have_vasprintf_decl=no
4250 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
4251 if test x"$ac_cv_have_vasprintf_decl" = x"yes"; then
4252 cat >> confdefs.h <<\EOF
4253 #define HAVE_VASPRINTF_DECL 1
4259 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
4260 echo "configure:4261: checking for vsnprintf declaration" >&5
4261 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
4262 echo $ac_n "(cached) $ac_c" 1>&6
4265 cat > conftest.$ac_ext <<EOF
4266 #line 4267 "configure"
4267 #include "confdefs.h"
4270 int i = (int)vsnprintf
4273 if { (eval echo configure:4274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4275 ac_cv_have_vsnprintf_decl=yes
4277 echo "configure: failed program was:" >&5
4278 cat conftest.$ac_ext >&5
4280 ac_cv_have_vsnprintf_decl=no
4285 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
4286 if test x"$ac_cv_have_vsnprintf_decl" = x"yes"; then
4287 cat >> confdefs.h <<\EOF
4288 #define HAVE_VSNPRINTF_DECL 1
4294 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
4295 echo "configure:4296: checking for snprintf declaration" >&5
4296 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
4297 echo $ac_n "(cached) $ac_c" 1>&6
4300 cat > conftest.$ac_ext <<EOF
4301 #line 4302 "configure"
4302 #include "confdefs.h"
4305 int i = (int)snprintf
4308 if { (eval echo configure:4309: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4310 ac_cv_have_snprintf_decl=yes
4312 echo "configure: failed program was:" >&5
4313 cat conftest.$ac_ext >&5
4315 ac_cv_have_snprintf_decl=no
4320 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
4321 if test x"$ac_cv_have_snprintf_decl" = x"yes"; then
4322 cat >> confdefs.h <<\EOF
4323 #define HAVE_SNPRINTF_DECL 1
4329 # and glibc has setresuid under linux but the function does
4330 # nothing until kernel 2.1.44! very dumb.
4331 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
4332 echo "configure:4333: checking for real setresuid" >&5
4333 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
4334 echo $ac_n "(cached) $ac_c" 1>&6
4337 if test "$cross_compiling" = yes; then
4338 samba_cv_have_setresuid=cross
4340 cat > conftest.$ac_ext <<EOF
4341 #line 4342 "configure"
4342 #include "confdefs.h"
4344 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4346 if { (eval echo configure:4347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4348 samba_cv_have_setresuid=yes
4350 echo "configure: failed program was:" >&5
4351 cat conftest.$ac_ext >&5
4353 samba_cv_have_setresuid=no
4360 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4361 if test x"$samba_cv_have_setresuid" = x"yes"; then
4362 cat >> confdefs.h <<\EOF
4363 #define HAVE_SETRESUID 1
4368 # Do the same check for setresguid...
4370 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4371 echo "configure:4372: checking for real setresgid" >&5
4372 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4373 echo $ac_n "(cached) $ac_c" 1>&6
4376 if test "$cross_compiling" = yes; then
4377 samba_cv_have_setresgid=cross
4379 cat > conftest.$ac_ext <<EOF
4380 #line 4381 "configure"
4381 #include "confdefs.h"
4384 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4386 if { (eval echo configure:4387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4388 samba_cv_have_setresgid=yes
4390 echo "configure: failed program was:" >&5
4391 cat conftest.$ac_ext >&5
4393 samba_cv_have_setresgid=no
4400 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4401 if test x"$samba_cv_have_setresgid" = x"yes"; then
4402 cat >> confdefs.h <<\EOF
4403 #define HAVE_SETRESGID 1
4408 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4409 echo "configure:4410: checking for 8-bit clean memcmp" >&5
4410 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4411 echo $ac_n "(cached) $ac_c" 1>&6
4413 if test "$cross_compiling" = yes; then
4414 ac_cv_func_memcmp_clean=no
4416 cat > conftest.$ac_ext <<EOF
4417 #line 4418 "configure"
4418 #include "confdefs.h"
4422 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4423 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4427 if { (eval echo configure:4428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4429 ac_cv_func_memcmp_clean=yes
4431 echo "configure: failed program was:" >&5
4432 cat conftest.$ac_ext >&5
4434 ac_cv_func_memcmp_clean=no
4441 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4442 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
4445 ###############################################
4446 # test for where we get crypt() from
4447 for ac_func in crypt
4449 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4450 echo "configure:4451: checking for $ac_func" >&5
4451 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4452 echo $ac_n "(cached) $ac_c" 1>&6
4454 cat > conftest.$ac_ext <<EOF
4455 #line 4456 "configure"
4456 #include "confdefs.h"
4457 /* System header to define __stub macros and hopefully few prototypes,
4458 which can conflict with char $ac_func(); below. */
4460 /* Override any gcc2 internal prototype to avoid an error. */
4461 /* We use char because int might match the return type of a gcc2
4462 builtin and then its argument prototype would still apply. */
4467 /* The GNU C library defines this for functions which it implements
4468 to always fail with ENOSYS. Some functions are actually named
4469 something starting with __ and the normal name is an alias. */
4470 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4478 if { (eval echo configure:4479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4480 eval "ac_cv_func_$ac_func=yes"
4482 echo "configure: failed program was:" >&5
4483 cat conftest.$ac_ext >&5
4485 eval "ac_cv_func_$ac_func=no"
4490 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4491 echo "$ac_t""yes" 1>&6
4492 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4493 cat >> confdefs.h <<EOF
4494 #define $ac_tr_func 1
4498 echo "$ac_t""no" 1>&6
4502 if test x"$ac_cv_func_crypt" = x"no"; then
4503 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4504 echo "configure:4505: checking for crypt in -lcrypt" >&5
4505 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4506 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4507 echo $ac_n "(cached) $ac_c" 1>&6
4509 ac_save_LIBS="$LIBS"
4510 LIBS="-lcrypt $LIBS"
4511 cat > conftest.$ac_ext <<EOF
4512 #line 4513 "configure"
4513 #include "confdefs.h"
4514 /* Override any gcc2 internal prototype to avoid an error. */
4515 /* We use char because int might match the return type of a gcc2
4516 builtin and then its argument prototype would still apply. */
4523 if { (eval echo configure:4524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4525 eval "ac_cv_lib_$ac_lib_var=yes"
4527 echo "configure: failed program was:" >&5
4528 cat conftest.$ac_ext >&5
4530 eval "ac_cv_lib_$ac_lib_var=no"
4533 LIBS="$ac_save_LIBS"
4536 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4537 echo "$ac_t""yes" 1>&6
4538 LIBS="$LIBS -lcrypt";
4539 cat >> confdefs.h <<\EOF
4540 #define HAVE_CRYPT 1
4544 echo "$ac_t""no" 1>&6
4550 ###############################################
4551 # Readline included by default unless explicitly asked not to
4552 test "${with_readline+set}" != "set" && with_readline=yes
4554 # test for where we get readline() from
4555 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4556 echo "configure:4557: checking whether to use readline" >&5
4557 # Check whether --with-readline or --without-readline was given.
4558 if test "${with_readline+set}" = set; then
4559 withval="$with_readline"
4560 case "$with_readline" in
4562 echo "$ac_t""yes" 1>&6
4564 for ac_hdr in readline.h history.h readline/readline.h
4566 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4567 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4568 echo "configure:4569: checking for $ac_hdr" >&5
4569 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4570 echo $ac_n "(cached) $ac_c" 1>&6
4572 cat > conftest.$ac_ext <<EOF
4573 #line 4574 "configure"
4574 #include "confdefs.h"
4577 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4578 { (eval echo configure:4579: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4579 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4580 if test -z "$ac_err"; then
4582 eval "ac_cv_header_$ac_safe=yes"
4585 echo "configure: failed program was:" >&5
4586 cat conftest.$ac_ext >&5
4588 eval "ac_cv_header_$ac_safe=no"
4592 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4593 echo "$ac_t""yes" 1>&6
4594 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4595 cat >> confdefs.h <<EOF
4596 #define $ac_tr_hdr 1
4600 echo "$ac_t""no" 1>&6
4604 for ac_hdr in readline/history.h
4606 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4607 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4608 echo "configure:4609: checking for $ac_hdr" >&5
4609 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4610 echo $ac_n "(cached) $ac_c" 1>&6
4612 cat > conftest.$ac_ext <<EOF
4613 #line 4614 "configure"
4614 #include "confdefs.h"
4617 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4618 { (eval echo configure:4619: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4619 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4620 if test -z "$ac_err"; then
4622 eval "ac_cv_header_$ac_safe=yes"
4625 echo "configure: failed program was:" >&5
4626 cat conftest.$ac_ext >&5
4628 eval "ac_cv_header_$ac_safe=no"
4632 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4633 echo "$ac_t""yes" 1>&6
4634 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4635 cat >> confdefs.h <<EOF
4636 #define $ac_tr_hdr 1
4640 echo "$ac_t""no" 1>&6
4645 for ac_hdr in readline.h readline/readline.h
4647 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4648 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4649 echo "configure:4650: checking for $ac_hdr" >&5
4650 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4651 echo $ac_n "(cached) $ac_c" 1>&6
4653 cat > conftest.$ac_ext <<EOF
4654 #line 4655 "configure"
4655 #include "confdefs.h"
4658 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4659 { (eval echo configure:4660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4660 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4661 if test -z "$ac_err"; then
4663 eval "ac_cv_header_$ac_safe=yes"
4666 echo "configure: failed program was:" >&5
4667 cat conftest.$ac_ext >&5
4669 eval "ac_cv_header_$ac_safe=no"
4673 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4674 echo "$ac_t""yes" 1>&6
4675 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4676 cat >> confdefs.h <<EOF
4677 #define $ac_tr_hdr 1
4680 for termlib in ncurses curses termcap terminfo termlib; do
4681 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4682 echo "configure:4683: checking for tgetent in -l${termlib}" >&5
4683 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4684 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4685 echo $ac_n "(cached) $ac_c" 1>&6
4687 ac_save_LIBS="$LIBS"
4688 LIBS="-l${termlib} $LIBS"
4689 cat > conftest.$ac_ext <<EOF
4690 #line 4691 "configure"
4691 #include "confdefs.h"
4692 /* Override any gcc2 internal prototype to avoid an error. */
4693 /* We use char because int might match the return type of a gcc2
4694 builtin and then its argument prototype would still apply. */
4701 if { (eval echo configure:4702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4703 eval "ac_cv_lib_$ac_lib_var=yes"
4705 echo "configure: failed program was:" >&5
4706 cat conftest.$ac_ext >&5
4708 eval "ac_cv_lib_$ac_lib_var=no"
4711 LIBS="$ac_save_LIBS"
4714 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4715 echo "$ac_t""yes" 1>&6
4716 TERMLIBS="-l${termlib}"; break
4718 echo "$ac_t""no" 1>&6
4722 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4723 echo "configure:4724: checking for rl_callback_handler_install in -lreadline" >&5
4724 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4725 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4726 echo $ac_n "(cached) $ac_c" 1>&6
4728 ac_save_LIBS="$LIBS"
4729 LIBS="-lreadline $TERMLIBS $LIBS"
4730 cat > conftest.$ac_ext <<EOF
4731 #line 4732 "configure"
4732 #include "confdefs.h"
4733 /* Override any gcc2 internal prototype to avoid an error. */
4734 /* We use char because int might match the return type of a gcc2
4735 builtin and then its argument prototype would still apply. */
4736 char rl_callback_handler_install();
4739 rl_callback_handler_install()
4742 if { (eval echo configure:4743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4744 eval "ac_cv_lib_$ac_lib_var=yes"
4746 echo "configure: failed program was:" >&5
4747 cat conftest.$ac_ext >&5
4749 eval "ac_cv_lib_$ac_lib_var=no"
4752 LIBS="$ac_save_LIBS"
4755 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4756 echo "$ac_t""yes" 1>&6
4757 TERMLIBS="-lreadline $TERMLIBS"
4758 cat >> confdefs.h <<\EOF
4759 #define HAVE_LIBREADLINE 1
4764 echo "$ac_t""no" 1>&6
4769 echo "$ac_t""no" 1>&6
4775 echo "$ac_t""no" 1>&6
4778 echo "$ac_t""yes" 1>&6
4780 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4781 # alternate readline path
4783 _cppflags=${CPPFLAGS}
4785 # Add additional search path
4786 LDFLAGS="-L$with_readline/lib $LDFLAGS"
4787 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4789 for ac_hdr in readline.h history.h readline/readline.h
4791 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4792 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4793 echo "configure:4794: checking for $ac_hdr" >&5
4794 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4795 echo $ac_n "(cached) $ac_c" 1>&6
4797 cat > conftest.$ac_ext <<EOF
4798 #line 4799 "configure"
4799 #include "confdefs.h"
4802 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4803 { (eval echo configure:4804: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4804 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4805 if test -z "$ac_err"; then
4807 eval "ac_cv_header_$ac_safe=yes"
4810 echo "configure: failed program was:" >&5
4811 cat conftest.$ac_ext >&5
4813 eval "ac_cv_header_$ac_safe=no"
4817 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4818 echo "$ac_t""yes" 1>&6
4819 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4820 cat >> confdefs.h <<EOF
4821 #define $ac_tr_hdr 1
4825 echo "$ac_t""no" 1>&6
4829 for ac_hdr in readline/history.h
4831 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4832 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4833 echo "configure:4834: checking for $ac_hdr" >&5
4834 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4835 echo $ac_n "(cached) $ac_c" 1>&6
4837 cat > conftest.$ac_ext <<EOF
4838 #line 4839 "configure"
4839 #include "confdefs.h"
4842 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4843 { (eval echo configure:4844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4844 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4845 if test -z "$ac_err"; then
4847 eval "ac_cv_header_$ac_safe=yes"
4850 echo "configure: failed program was:" >&5
4851 cat conftest.$ac_ext >&5
4853 eval "ac_cv_header_$ac_safe=no"
4857 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4858 echo "$ac_t""yes" 1>&6
4859 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4860 cat >> confdefs.h <<EOF
4861 #define $ac_tr_hdr 1
4865 echo "$ac_t""no" 1>&6
4870 for ac_hdr in readline.h readline/readline.h
4872 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4873 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4874 echo "configure:4875: checking for $ac_hdr" >&5
4875 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4876 echo $ac_n "(cached) $ac_c" 1>&6
4878 cat > conftest.$ac_ext <<EOF
4879 #line 4880 "configure"
4880 #include "confdefs.h"
4883 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4884 { (eval echo configure:4885: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4885 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4886 if test -z "$ac_err"; then
4888 eval "ac_cv_header_$ac_safe=yes"
4891 echo "configure: failed program was:" >&5
4892 cat conftest.$ac_ext >&5
4894 eval "ac_cv_header_$ac_safe=no"
4898 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4899 echo "$ac_t""yes" 1>&6
4900 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4901 cat >> confdefs.h <<EOF
4902 #define $ac_tr_hdr 1
4905 for termlib in ncurses curses termcap terminfo termlib; do
4906 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4907 echo "configure:4908: checking for tgetent in -l${termlib}" >&5
4908 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4909 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4910 echo $ac_n "(cached) $ac_c" 1>&6
4912 ac_save_LIBS="$LIBS"
4913 LIBS="-l${termlib} $LIBS"
4914 cat > conftest.$ac_ext <<EOF
4915 #line 4916 "configure"
4916 #include "confdefs.h"
4917 /* Override any gcc2 internal prototype to avoid an error. */
4918 /* We use char because int might match the return type of a gcc2
4919 builtin and then its argument prototype would still apply. */
4926 if { (eval echo configure:4927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4928 eval "ac_cv_lib_$ac_lib_var=yes"
4930 echo "configure: failed program was:" >&5
4931 cat conftest.$ac_ext >&5
4933 eval "ac_cv_lib_$ac_lib_var=no"
4936 LIBS="$ac_save_LIBS"
4939 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4940 echo "$ac_t""yes" 1>&6
4941 TERMLIBS="-l${termlib}"; break
4943 echo "$ac_t""no" 1>&6
4947 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4948 echo "configure:4949: checking for rl_callback_handler_install in -lreadline" >&5
4949 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4950 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4951 echo $ac_n "(cached) $ac_c" 1>&6
4953 ac_save_LIBS="$LIBS"
4954 LIBS="-lreadline $TERMLIBS $LIBS"
4955 cat > conftest.$ac_ext <<EOF
4956 #line 4957 "configure"
4957 #include "confdefs.h"
4958 /* Override any gcc2 internal prototype to avoid an error. */
4959 /* We use char because int might match the return type of a gcc2
4960 builtin and then its argument prototype would still apply. */
4961 char rl_callback_handler_install();
4964 rl_callback_handler_install()
4967 if { (eval echo configure:4968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4969 eval "ac_cv_lib_$ac_lib_var=yes"
4971 echo "configure: failed program was:" >&5
4972 cat conftest.$ac_ext >&5
4974 eval "ac_cv_lib_$ac_lib_var=no"
4977 LIBS="$ac_save_LIBS"
4980 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4981 echo "$ac_t""yes" 1>&6
4982 TERMLDFLAGS="-L$with_readline/lib"
4983 TERMCPPFLAGS="-I$with_readline/include"
4984 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4985 TERMLIBS="-lreadline $TERMLIBS"
4986 cat >> confdefs.h <<\EOF
4987 #define HAVE_LIBREADLINE 1
4992 echo "$ac_t""no" 1>&6
4993 TERMLIBS= CPPFLAGS=$_cppflags
4997 echo "$ac_t""no" 1>&6
5006 echo "$ac_t""no" 1>&6
5013 # The readline API changed slightly from readline3 to readline4, so
5014 # code will generate warnings on one of them unless we have a few
5016 echo $ac_n "checking for rl_completion_matches in -lreadline""... $ac_c" 1>&6
5017 echo "configure:5018: checking for rl_completion_matches in -lreadline" >&5
5018 ac_lib_var=`echo readline'_'rl_completion_matches | sed 'y%./+-%__p_%'`
5019 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5020 echo $ac_n "(cached) $ac_c" 1>&6
5022 ac_save_LIBS="$LIBS"
5023 LIBS="-lreadline $TERMLIBS $LIBS"
5024 cat > conftest.$ac_ext <<EOF
5025 #line 5026 "configure"
5026 #include "confdefs.h"
5027 /* Override any gcc2 internal prototype to avoid an error. */
5028 /* We use char because int might match the return type of a gcc2
5029 builtin and then its argument prototype would still apply. */
5030 char rl_completion_matches();
5033 rl_completion_matches()
5036 if { (eval echo configure:5037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5038 eval "ac_cv_lib_$ac_lib_var=yes"
5040 echo "configure: failed program was:" >&5
5041 cat conftest.$ac_ext >&5
5043 eval "ac_cv_lib_$ac_lib_var=no"
5046 LIBS="$ac_save_LIBS"
5049 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5050 echo "$ac_t""yes" 1>&6
5051 cat >> confdefs.h <<\EOF
5052 #define HAVE_NEW_LIBREADLINE 1
5056 echo "$ac_t""no" 1>&6
5060 # The following test taken from the cvs sources
5061 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
5062 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
5063 # libsocket.so which has a bad implementation of gethostbyname (it
5064 # only looks in /etc/hosts), so we only look for -lsocket if we need
5066 for ac_func in connect
5068 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5069 echo "configure:5070: checking for $ac_func" >&5
5070 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5071 echo $ac_n "(cached) $ac_c" 1>&6
5073 cat > conftest.$ac_ext <<EOF
5074 #line 5075 "configure"
5075 #include "confdefs.h"
5076 /* System header to define __stub macros and hopefully few prototypes,
5077 which can conflict with char $ac_func(); below. */
5079 /* Override any gcc2 internal prototype to avoid an error. */
5080 /* We use char because int might match the return type of a gcc2
5081 builtin and then its argument prototype would still apply. */
5086 /* The GNU C library defines this for functions which it implements
5087 to always fail with ENOSYS. Some functions are actually named
5088 something starting with __ and the normal name is an alias. */
5089 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5097 if { (eval echo configure:5098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5099 eval "ac_cv_func_$ac_func=yes"
5101 echo "configure: failed program was:" >&5
5102 cat conftest.$ac_ext >&5
5104 eval "ac_cv_func_$ac_func=no"
5109 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5110 echo "$ac_t""yes" 1>&6
5111 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5112 cat >> confdefs.h <<EOF
5113 #define $ac_tr_func 1
5117 echo "$ac_t""no" 1>&6
5121 if test x"$ac_cv_func_connect" = x"no"; then
5124 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
5125 echo "configure:5126: checking for printf in -lnsl_s" >&5
5126 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
5127 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5128 echo $ac_n "(cached) $ac_c" 1>&6
5130 ac_save_LIBS="$LIBS"
5131 LIBS="-lnsl_s $LIBS"
5132 cat > conftest.$ac_ext <<EOF
5133 #line 5134 "configure"
5134 #include "confdefs.h"
5135 /* Override any gcc2 internal prototype to avoid an error. */
5136 /* We use char because int might match the return type of a gcc2
5137 builtin and then its argument prototype would still apply. */
5144 if { (eval echo configure:5145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5146 eval "ac_cv_lib_$ac_lib_var=yes"
5148 echo "configure: failed program was:" >&5
5149 cat conftest.$ac_ext >&5
5151 eval "ac_cv_lib_$ac_lib_var=no"
5154 LIBS="$ac_save_LIBS"
5157 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5158 echo "$ac_t""yes" 1>&6
5159 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5160 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5161 cat >> confdefs.h <<EOF
5162 #define $ac_tr_lib 1
5165 LIBS="-lnsl_s $LIBS"
5168 echo "$ac_t""no" 1>&6
5174 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
5175 echo "configure:5176: checking for printf in -lnsl" >&5
5176 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
5177 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5178 echo $ac_n "(cached) $ac_c" 1>&6
5180 ac_save_LIBS="$LIBS"
5182 cat > conftest.$ac_ext <<EOF
5183 #line 5184 "configure"
5184 #include "confdefs.h"
5185 /* Override any gcc2 internal prototype to avoid an error. */
5186 /* We use char because int might match the return type of a gcc2
5187 builtin and then its argument prototype would still apply. */
5194 if { (eval echo configure:5195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5196 eval "ac_cv_lib_$ac_lib_var=yes"
5198 echo "configure: failed program was:" >&5
5199 cat conftest.$ac_ext >&5
5201 eval "ac_cv_lib_$ac_lib_var=no"
5204 LIBS="$ac_save_LIBS"
5207 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5208 echo "$ac_t""yes" 1>&6
5209 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5210 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5211 cat >> confdefs.h <<EOF
5212 #define $ac_tr_lib 1
5218 echo "$ac_t""no" 1>&6
5224 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
5225 echo "configure:5226: checking for connect in -lsocket" >&5
5226 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5227 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5228 echo $ac_n "(cached) $ac_c" 1>&6
5230 ac_save_LIBS="$LIBS"
5231 LIBS="-lsocket $LIBS"
5232 cat > conftest.$ac_ext <<EOF
5233 #line 5234 "configure"
5234 #include "confdefs.h"
5235 /* Override any gcc2 internal prototype to avoid an error. */
5236 /* We use char because int might match the return type of a gcc2
5237 builtin and then its argument prototype would still apply. */
5244 if { (eval echo configure:5245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5246 eval "ac_cv_lib_$ac_lib_var=yes"
5248 echo "configure: failed program was:" >&5
5249 cat conftest.$ac_ext >&5
5251 eval "ac_cv_lib_$ac_lib_var=no"
5254 LIBS="$ac_save_LIBS"
5257 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5258 echo "$ac_t""yes" 1>&6
5259 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5260 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5261 cat >> confdefs.h <<EOF
5262 #define $ac_tr_lib 1
5265 LIBS="-lsocket $LIBS"
5268 echo "$ac_t""no" 1>&6
5274 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
5275 echo "configure:5276: checking for connect in -linet" >&5
5276 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
5277 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5278 echo $ac_n "(cached) $ac_c" 1>&6
5280 ac_save_LIBS="$LIBS"
5282 cat > conftest.$ac_ext <<EOF
5283 #line 5284 "configure"
5284 #include "confdefs.h"
5285 /* Override any gcc2 internal prototype to avoid an error. */
5286 /* We use char because int might match the return type of a gcc2
5287 builtin and then its argument prototype would still apply. */
5294 if { (eval echo configure:5295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5296 eval "ac_cv_lib_$ac_lib_var=yes"
5298 echo "configure: failed program was:" >&5
5299 cat conftest.$ac_ext >&5
5301 eval "ac_cv_lib_$ac_lib_var=no"
5304 LIBS="$ac_save_LIBS"
5307 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5308 echo "$ac_t""yes" 1>&6
5309 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5310 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5311 cat >> confdefs.h <<EOF
5312 #define $ac_tr_lib 1
5318 echo "$ac_t""no" 1>&6
5322 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
5323 test x"$ac_cv_lib_inet_connect" = x"yes"; then
5324 # ac_cv_func_connect=yes
5325 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
5326 cat >> confdefs.h <<\EOF
5327 #define HAVE_CONNECT 1
5333 ###############################################
5334 # test for where we get get_yp_default_domain() from
5335 for ac_func in yp_get_default_domain
5337 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5338 echo "configure:5339: checking for $ac_func" >&5
5339 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5340 echo $ac_n "(cached) $ac_c" 1>&6
5342 cat > conftest.$ac_ext <<EOF
5343 #line 5344 "configure"
5344 #include "confdefs.h"
5345 /* System header to define __stub macros and hopefully few prototypes,
5346 which can conflict with char $ac_func(); below. */
5348 /* Override any gcc2 internal prototype to avoid an error. */
5349 /* We use char because int might match the return type of a gcc2
5350 builtin and then its argument prototype would still apply. */
5355 /* The GNU C library defines this for functions which it implements
5356 to always fail with ENOSYS. Some functions are actually named
5357 something starting with __ and the normal name is an alias. */
5358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5366 if { (eval echo configure:5367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5368 eval "ac_cv_func_$ac_func=yes"
5370 echo "configure: failed program was:" >&5
5371 cat conftest.$ac_ext >&5
5373 eval "ac_cv_func_$ac_func=no"
5378 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5379 echo "$ac_t""yes" 1>&6
5380 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5381 cat >> confdefs.h <<EOF
5382 #define $ac_tr_func 1
5386 echo "$ac_t""no" 1>&6
5390 if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then
5391 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
5392 echo "configure:5393: checking for yp_get_default_domain in -lnsl" >&5
5393 ac_lib_var=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
5394 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5395 echo $ac_n "(cached) $ac_c" 1>&6
5397 ac_save_LIBS="$LIBS"
5399 cat > conftest.$ac_ext <<EOF
5400 #line 5401 "configure"
5401 #include "confdefs.h"
5402 /* Override any gcc2 internal prototype to avoid an error. */
5403 /* We use char because int might match the return type of a gcc2
5404 builtin and then its argument prototype would still apply. */
5405 char yp_get_default_domain();
5408 yp_get_default_domain()
5411 if { (eval echo configure:5412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5413 eval "ac_cv_lib_$ac_lib_var=yes"
5415 echo "configure: failed program was:" >&5
5416 cat conftest.$ac_ext >&5
5418 eval "ac_cv_lib_$ac_lib_var=no"
5421 LIBS="$ac_save_LIBS"
5424 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5425 echo "$ac_t""yes" 1>&6
5427 cat >> confdefs.h <<\EOF
5428 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
5432 echo "$ac_t""no" 1>&6
5437 # Check if we have execl, if not we need to compile smbrun.
5438 for ac_func in execl
5440 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5441 echo "configure:5442: checking for $ac_func" >&5
5442 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5443 echo $ac_n "(cached) $ac_c" 1>&6
5445 cat > conftest.$ac_ext <<EOF
5446 #line 5447 "configure"
5447 #include "confdefs.h"
5448 /* System header to define __stub macros and hopefully few prototypes,
5449 which can conflict with char $ac_func(); below. */
5451 /* Override any gcc2 internal prototype to avoid an error. */
5452 /* We use char because int might match the return type of a gcc2
5453 builtin and then its argument prototype would still apply. */
5458 /* The GNU C library defines this for functions which it implements
5459 to always fail with ENOSYS. Some functions are actually named
5460 something starting with __ and the normal name is an alias. */
5461 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5469 if { (eval echo configure:5470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5471 eval "ac_cv_func_$ac_func=yes"
5473 echo "configure: failed program was:" >&5
5474 cat conftest.$ac_ext >&5
5476 eval "ac_cv_func_$ac_func=no"
5481 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5482 echo "$ac_t""yes" 1>&6
5483 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5484 cat >> confdefs.h <<EOF
5485 #define $ac_tr_func 1
5489 echo "$ac_t""no" 1>&6
5493 if test x"$ac_cv_func_execl" = x"no"; then
5494 RUNPROG="bin/smbrun"
5499 for ac_func in dlopen dlclose dlsym dlerror waitpid getcwd strdup strndup strnlen strtoul strerror chown fchown chmod fchmod chroot link mknod mknod64
5501 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5502 echo "configure:5503: checking for $ac_func" >&5
5503 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5504 echo $ac_n "(cached) $ac_c" 1>&6
5506 cat > conftest.$ac_ext <<EOF
5507 #line 5508 "configure"
5508 #include "confdefs.h"
5509 /* System header to define __stub macros and hopefully few prototypes,
5510 which can conflict with char $ac_func(); below. */
5512 /* Override any gcc2 internal prototype to avoid an error. */
5513 /* We use char because int might match the return type of a gcc2
5514 builtin and then its argument prototype would still apply. */
5519 /* The GNU C library defines this for functions which it implements
5520 to always fail with ENOSYS. Some functions are actually named
5521 something starting with __ and the normal name is an alias. */
5522 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5530 if { (eval echo configure:5531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5532 eval "ac_cv_func_$ac_func=yes"
5534 echo "configure: failed program was:" >&5
5535 cat conftest.$ac_ext >&5
5537 eval "ac_cv_func_$ac_func=no"
5542 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5543 echo "$ac_t""yes" 1>&6
5544 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5545 cat >> confdefs.h <<EOF
5546 #define $ac_tr_func 1
5550 echo "$ac_t""no" 1>&6
5554 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset strlcpy strlcat setpgid
5556 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5557 echo "configure:5558: checking for $ac_func" >&5
5558 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5559 echo $ac_n "(cached) $ac_c" 1>&6
5561 cat > conftest.$ac_ext <<EOF
5562 #line 5563 "configure"
5563 #include "confdefs.h"
5564 /* System header to define __stub macros and hopefully few prototypes,
5565 which can conflict with char $ac_func(); below. */
5567 /* Override any gcc2 internal prototype to avoid an error. */
5568 /* We use char because int might match the return type of a gcc2
5569 builtin and then its argument prototype would still apply. */
5574 /* The GNU C library defines this for functions which it implements
5575 to always fail with ENOSYS. Some functions are actually named
5576 something starting with __ and the normal name is an alias. */
5577 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5585 if { (eval echo configure:5586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5587 eval "ac_cv_func_$ac_func=yes"
5589 echo "configure: failed program was:" >&5
5590 cat conftest.$ac_ext >&5
5592 eval "ac_cv_func_$ac_func=no"
5597 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5598 echo "$ac_t""yes" 1>&6
5599 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5600 cat >> confdefs.h <<EOF
5601 #define $ac_tr_func 1
5605 echo "$ac_t""no" 1>&6
5609 for ac_func in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5611 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5612 echo "configure:5613: checking for $ac_func" >&5
5613 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5614 echo $ac_n "(cached) $ac_c" 1>&6
5616 cat > conftest.$ac_ext <<EOF
5617 #line 5618 "configure"
5618 #include "confdefs.h"
5619 /* System header to define __stub macros and hopefully few prototypes,
5620 which can conflict with char $ac_func(); below. */
5622 /* Override any gcc2 internal prototype to avoid an error. */
5623 /* We use char because int might match the return type of a gcc2
5624 builtin and then its argument prototype would still apply. */
5629 /* The GNU C library defines this for functions which it implements
5630 to always fail with ENOSYS. Some functions are actually named
5631 something starting with __ and the normal name is an alias. */
5632 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5640 if { (eval echo configure:5641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5642 eval "ac_cv_func_$ac_func=yes"
5644 echo "configure: failed program was:" >&5
5645 cat conftest.$ac_ext >&5
5647 eval "ac_cv_func_$ac_func=no"
5652 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5653 echo "$ac_t""yes" 1>&6
5654 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5655 cat >> confdefs.h <<EOF
5656 #define $ac_tr_func 1
5660 echo "$ac_t""no" 1>&6
5664 for ac_func in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
5666 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5667 echo "configure:5668: checking for $ac_func" >&5
5668 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5669 echo $ac_n "(cached) $ac_c" 1>&6
5671 cat > conftest.$ac_ext <<EOF
5672 #line 5673 "configure"
5673 #include "confdefs.h"
5674 /* System header to define __stub macros and hopefully few prototypes,
5675 which can conflict with char $ac_func(); below. */
5677 /* Override any gcc2 internal prototype to avoid an error. */
5678 /* We use char because int might match the return type of a gcc2
5679 builtin and then its argument prototype would still apply. */
5684 /* The GNU C library defines this for functions which it implements
5685 to always fail with ENOSYS. Some functions are actually named
5686 something starting with __ and the normal name is an alias. */
5687 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5695 if { (eval echo configure:5696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5697 eval "ac_cv_func_$ac_func=yes"
5699 echo "configure: failed program was:" >&5
5700 cat conftest.$ac_ext >&5
5702 eval "ac_cv_func_$ac_func=no"
5707 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5708 echo "$ac_t""yes" 1>&6
5709 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5710 cat >> confdefs.h <<EOF
5711 #define $ac_tr_func 1
5715 echo "$ac_t""no" 1>&6
5719 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf realpath
5721 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5722 echo "configure:5723: checking for $ac_func" >&5
5723 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5724 echo $ac_n "(cached) $ac_c" 1>&6
5726 cat > conftest.$ac_ext <<EOF
5727 #line 5728 "configure"
5728 #include "confdefs.h"
5729 /* System header to define __stub macros and hopefully few prototypes,
5730 which can conflict with char $ac_func(); below. */
5732 /* Override any gcc2 internal prototype to avoid an error. */
5733 /* We use char because int might match the return type of a gcc2
5734 builtin and then its argument prototype would still apply. */
5739 /* The GNU C library defines this for functions which it implements
5740 to always fail with ENOSYS. Some functions are actually named
5741 something starting with __ and the normal name is an alias. */
5742 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5750 if { (eval echo configure:5751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5752 eval "ac_cv_func_$ac_func=yes"
5754 echo "configure: failed program was:" >&5
5755 cat conftest.$ac_ext >&5
5757 eval "ac_cv_func_$ac_func=no"
5762 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5763 echo "$ac_t""yes" 1>&6
5764 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5765 cat >> confdefs.h <<EOF
5766 #define $ac_tr_func 1
5770 echo "$ac_t""no" 1>&6
5774 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5776 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5777 echo "configure:5778: checking for $ac_func" >&5
5778 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5779 echo $ac_n "(cached) $ac_c" 1>&6
5781 cat > conftest.$ac_ext <<EOF
5782 #line 5783 "configure"
5783 #include "confdefs.h"
5784 /* System header to define __stub macros and hopefully few prototypes,
5785 which can conflict with char $ac_func(); below. */
5787 /* Override any gcc2 internal prototype to avoid an error. */
5788 /* We use char because int might match the return type of a gcc2
5789 builtin and then its argument prototype would still apply. */
5794 /* The GNU C library defines this for functions which it implements
5795 to always fail with ENOSYS. Some functions are actually named
5796 something starting with __ and the normal name is an alias. */
5797 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5805 if { (eval echo configure:5806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5807 eval "ac_cv_func_$ac_func=yes"
5809 echo "configure: failed program was:" >&5
5810 cat conftest.$ac_ext >&5
5812 eval "ac_cv_func_$ac_func=no"
5817 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5818 echo "$ac_t""yes" 1>&6
5819 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5820 cat >> confdefs.h <<EOF
5821 #define $ac_tr_func 1
5825 echo "$ac_t""no" 1>&6
5829 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5831 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5832 echo "configure:5833: checking for $ac_func" >&5
5833 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5834 echo $ac_n "(cached) $ac_c" 1>&6
5836 cat > conftest.$ac_ext <<EOF
5837 #line 5838 "configure"
5838 #include "confdefs.h"
5839 /* System header to define __stub macros and hopefully few prototypes,
5840 which can conflict with char $ac_func(); below. */
5842 /* Override any gcc2 internal prototype to avoid an error. */
5843 /* We use char because int might match the return type of a gcc2
5844 builtin and then its argument prototype would still apply. */
5849 /* The GNU C library defines this for functions which it implements
5850 to always fail with ENOSYS. Some functions are actually named
5851 something starting with __ and the normal name is an alias. */
5852 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5860 if { (eval echo configure:5861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5862 eval "ac_cv_func_$ac_func=yes"
5864 echo "configure: failed program was:" >&5
5865 cat conftest.$ac_ext >&5
5867 eval "ac_cv_func_$ac_func=no"
5872 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5873 echo "$ac_t""yes" 1>&6
5874 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5875 cat >> confdefs.h <<EOF
5876 #define $ac_tr_func 1
5880 echo "$ac_t""no" 1>&6
5884 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5886 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5887 echo "configure:5888: checking for $ac_func" >&5
5888 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5889 echo $ac_n "(cached) $ac_c" 1>&6
5891 cat > conftest.$ac_ext <<EOF
5892 #line 5893 "configure"
5893 #include "confdefs.h"
5894 /* System header to define __stub macros and hopefully few prototypes,
5895 which can conflict with char $ac_func(); below. */
5897 /* Override any gcc2 internal prototype to avoid an error. */
5898 /* We use char because int might match the return type of a gcc2
5899 builtin and then its argument prototype would still apply. */
5904 /* The GNU C library defines this for functions which it implements
5905 to always fail with ENOSYS. Some functions are actually named
5906 something starting with __ and the normal name is an alias. */
5907 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5915 if { (eval echo configure:5916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5917 eval "ac_cv_func_$ac_func=yes"
5919 echo "configure: failed program was:" >&5
5920 cat conftest.$ac_ext >&5
5922 eval "ac_cv_func_$ac_func=no"
5927 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5928 echo "$ac_t""yes" 1>&6
5929 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5930 cat >> confdefs.h <<EOF
5931 #define $ac_tr_func 1
5935 echo "$ac_t""no" 1>&6
5939 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl symlink readlink
5941 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5942 echo "configure:5943: checking for $ac_func" >&5
5943 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5944 echo $ac_n "(cached) $ac_c" 1>&6
5946 cat > conftest.$ac_ext <<EOF
5947 #line 5948 "configure"
5948 #include "confdefs.h"
5949 /* System header to define __stub macros and hopefully few prototypes,
5950 which can conflict with char $ac_func(); below. */
5952 /* Override any gcc2 internal prototype to avoid an error. */
5953 /* We use char because int might match the return type of a gcc2
5954 builtin and then its argument prototype would still apply. */
5959 /* The GNU C library defines this for functions which it implements
5960 to always fail with ENOSYS. Some functions are actually named
5961 something starting with __ and the normal name is an alias. */
5962 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5970 if { (eval echo configure:5971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5972 eval "ac_cv_func_$ac_func=yes"
5974 echo "configure: failed program was:" >&5
5975 cat conftest.$ac_ext >&5
5977 eval "ac_cv_func_$ac_func=no"
5982 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5983 echo "$ac_t""yes" 1>&6
5984 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5985 cat >> confdefs.h <<EOF
5986 #define $ac_tr_func 1
5990 echo "$ac_t""no" 1>&6
5994 for ac_func in syslog vsyslog
5996 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5997 echo "configure:5998: checking for $ac_func" >&5
5998 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5999 echo $ac_n "(cached) $ac_c" 1>&6
6001 cat > conftest.$ac_ext <<EOF
6002 #line 6003 "configure"
6003 #include "confdefs.h"
6004 /* System header to define __stub macros and hopefully few prototypes,
6005 which can conflict with char $ac_func(); below. */
6007 /* Override any gcc2 internal prototype to avoid an error. */
6008 /* We use char because int might match the return type of a gcc2
6009 builtin and then its argument prototype would still apply. */
6014 /* The GNU C library defines this for functions which it implements
6015 to always fail with ENOSYS. Some functions are actually named
6016 something starting with __ and the normal name is an alias. */
6017 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6025 if { (eval echo configure:6026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6027 eval "ac_cv_func_$ac_func=yes"
6029 echo "configure: failed program was:" >&5
6030 cat conftest.$ac_ext >&5
6032 eval "ac_cv_func_$ac_func=no"
6037 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6038 echo "$ac_t""yes" 1>&6
6039 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6040 cat >> confdefs.h <<EOF
6041 #define $ac_tr_func 1
6045 echo "$ac_t""no" 1>&6
6049 # setbuffer is needed for smbtorture
6050 for ac_func in setbuffer
6052 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6053 echo "configure:6054: checking for $ac_func" >&5
6054 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6055 echo $ac_n "(cached) $ac_c" 1>&6
6057 cat > conftest.$ac_ext <<EOF
6058 #line 6059 "configure"
6059 #include "confdefs.h"
6060 /* System header to define __stub macros and hopefully few prototypes,
6061 which can conflict with char $ac_func(); below. */
6063 /* Override any gcc2 internal prototype to avoid an error. */
6064 /* We use char because int might match the return type of a gcc2
6065 builtin and then its argument prototype would still apply. */
6070 /* The GNU C library defines this for functions which it implements
6071 to always fail with ENOSYS. Some functions are actually named
6072 something starting with __ and the normal name is an alias. */
6073 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6081 if { (eval echo configure:6082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6083 eval "ac_cv_func_$ac_func=yes"
6085 echo "configure: failed program was:" >&5
6086 cat conftest.$ac_ext >&5
6088 eval "ac_cv_func_$ac_func=no"
6093 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6094 echo "$ac_t""yes" 1>&6
6095 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6096 cat >> confdefs.h <<EOF
6097 #define $ac_tr_func 1
6101 echo "$ac_t""no" 1>&6
6106 # syscall() is needed for smbwrapper.
6107 for ac_func in syscall
6109 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6110 echo "configure:6111: checking for $ac_func" >&5
6111 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6112 echo $ac_n "(cached) $ac_c" 1>&6
6114 cat > conftest.$ac_ext <<EOF
6115 #line 6116 "configure"
6116 #include "confdefs.h"
6117 /* System header to define __stub macros and hopefully few prototypes,
6118 which can conflict with char $ac_func(); below. */
6120 /* Override any gcc2 internal prototype to avoid an error. */
6121 /* We use char because int might match the return type of a gcc2
6122 builtin and then its argument prototype would still apply. */
6127 /* The GNU C library defines this for functions which it implements
6128 to always fail with ENOSYS. Some functions are actually named
6129 something starting with __ and the normal name is an alias. */
6130 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6138 if { (eval echo configure:6139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6140 eval "ac_cv_func_$ac_func=yes"
6142 echo "configure: failed program was:" >&5
6143 cat conftest.$ac_ext >&5
6145 eval "ac_cv_func_$ac_func=no"
6150 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6151 echo "$ac_t""yes" 1>&6
6152 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6153 cat >> confdefs.h <<EOF
6154 #define $ac_tr_func 1
6158 echo "$ac_t""no" 1>&6
6163 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
6165 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6166 echo "configure:6167: checking for $ac_func" >&5
6167 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6168 echo $ac_n "(cached) $ac_c" 1>&6
6170 cat > conftest.$ac_ext <<EOF
6171 #line 6172 "configure"
6172 #include "confdefs.h"
6173 /* System header to define __stub macros and hopefully few prototypes,
6174 which can conflict with char $ac_func(); below. */
6176 /* Override any gcc2 internal prototype to avoid an error. */
6177 /* We use char because int might match the return type of a gcc2
6178 builtin and then its argument prototype would still apply. */
6183 /* The GNU C library defines this for functions which it implements
6184 to always fail with ENOSYS. Some functions are actually named
6185 something starting with __ and the normal name is an alias. */
6186 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6194 if { (eval echo configure:6195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6196 eval "ac_cv_func_$ac_func=yes"
6198 echo "configure: failed program was:" >&5
6199 cat conftest.$ac_ext >&5
6201 eval "ac_cv_func_$ac_func=no"
6206 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6207 echo "$ac_t""yes" 1>&6
6208 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6209 cat >> confdefs.h <<EOF
6210 #define $ac_tr_func 1
6214 echo "$ac_t""no" 1>&6
6218 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
6220 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6221 echo "configure:6222: checking for $ac_func" >&5
6222 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6223 echo $ac_n "(cached) $ac_c" 1>&6
6225 cat > conftest.$ac_ext <<EOF
6226 #line 6227 "configure"
6227 #include "confdefs.h"
6228 /* System header to define __stub macros and hopefully few prototypes,
6229 which can conflict with char $ac_func(); below. */
6231 /* Override any gcc2 internal prototype to avoid an error. */
6232 /* We use char because int might match the return type of a gcc2
6233 builtin and then its argument prototype would still apply. */
6238 /* The GNU C library defines this for functions which it implements
6239 to always fail with ENOSYS. Some functions are actually named
6240 something starting with __ and the normal name is an alias. */
6241 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6249 if { (eval echo configure:6250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6251 eval "ac_cv_func_$ac_func=yes"
6253 echo "configure: failed program was:" >&5
6254 cat conftest.$ac_ext >&5
6256 eval "ac_cv_func_$ac_func=no"
6261 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6262 echo "$ac_t""yes" 1>&6
6263 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6264 cat >> confdefs.h <<EOF
6265 #define $ac_tr_func 1
6269 echo "$ac_t""no" 1>&6
6273 for ac_func in __getcwd _getcwd
6275 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6276 echo "configure:6277: checking for $ac_func" >&5
6277 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6278 echo $ac_n "(cached) $ac_c" 1>&6
6280 cat > conftest.$ac_ext <<EOF
6281 #line 6282 "configure"
6282 #include "confdefs.h"
6283 /* System header to define __stub macros and hopefully few prototypes,
6284 which can conflict with char $ac_func(); below. */
6286 /* Override any gcc2 internal prototype to avoid an error. */
6287 /* We use char because int might match the return type of a gcc2
6288 builtin and then its argument prototype would still apply. */
6293 /* The GNU C library defines this for functions which it implements
6294 to always fail with ENOSYS. Some functions are actually named
6295 something starting with __ and the normal name is an alias. */
6296 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6304 if { (eval echo configure:6305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6306 eval "ac_cv_func_$ac_func=yes"
6308 echo "configure: failed program was:" >&5
6309 cat conftest.$ac_ext >&5
6311 eval "ac_cv_func_$ac_func=no"
6316 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6317 echo "$ac_t""yes" 1>&6
6318 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6319 cat >> confdefs.h <<EOF
6320 #define $ac_tr_func 1
6324 echo "$ac_t""no" 1>&6
6328 for ac_func in __xstat __fxstat __lxstat
6330 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6331 echo "configure:6332: checking for $ac_func" >&5
6332 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6333 echo $ac_n "(cached) $ac_c" 1>&6
6335 cat > conftest.$ac_ext <<EOF
6336 #line 6337 "configure"
6337 #include "confdefs.h"
6338 /* System header to define __stub macros and hopefully few prototypes,
6339 which can conflict with char $ac_func(); below. */
6341 /* Override any gcc2 internal prototype to avoid an error. */
6342 /* We use char because int might match the return type of a gcc2
6343 builtin and then its argument prototype would still apply. */
6348 /* The GNU C library defines this for functions which it implements
6349 to always fail with ENOSYS. Some functions are actually named
6350 something starting with __ and the normal name is an alias. */
6351 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6359 if { (eval echo configure:6360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6361 eval "ac_cv_func_$ac_func=yes"
6363 echo "configure: failed program was:" >&5
6364 cat conftest.$ac_ext >&5
6366 eval "ac_cv_func_$ac_func=no"
6371 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6372 echo "$ac_t""yes" 1>&6
6373 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6374 cat >> confdefs.h <<EOF
6375 #define $ac_tr_func 1
6379 echo "$ac_t""no" 1>&6
6383 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
6385 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6386 echo "configure:6387: checking for $ac_func" >&5
6387 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6388 echo $ac_n "(cached) $ac_c" 1>&6
6390 cat > conftest.$ac_ext <<EOF
6391 #line 6392 "configure"
6392 #include "confdefs.h"
6393 /* System header to define __stub macros and hopefully few prototypes,
6394 which can conflict with char $ac_func(); below. */
6396 /* Override any gcc2 internal prototype to avoid an error. */
6397 /* We use char because int might match the return type of a gcc2
6398 builtin and then its argument prototype would still apply. */
6403 /* The GNU C library defines this for functions which it implements
6404 to always fail with ENOSYS. Some functions are actually named
6405 something starting with __ and the normal name is an alias. */
6406 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6414 if { (eval echo configure:6415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6416 eval "ac_cv_func_$ac_func=yes"
6418 echo "configure: failed program was:" >&5
6419 cat conftest.$ac_ext >&5
6421 eval "ac_cv_func_$ac_func=no"
6426 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6427 echo "$ac_t""yes" 1>&6
6428 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6429 cat >> confdefs.h <<EOF
6430 #define $ac_tr_func 1
6434 echo "$ac_t""no" 1>&6
6438 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
6440 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6441 echo "configure:6442: checking for $ac_func" >&5
6442 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6443 echo $ac_n "(cached) $ac_c" 1>&6
6445 cat > conftest.$ac_ext <<EOF
6446 #line 6447 "configure"
6447 #include "confdefs.h"
6448 /* System header to define __stub macros and hopefully few prototypes,
6449 which can conflict with char $ac_func(); below. */
6451 /* Override any gcc2 internal prototype to avoid an error. */
6452 /* We use char because int might match the return type of a gcc2
6453 builtin and then its argument prototype would still apply. */
6458 /* The GNU C library defines this for functions which it implements
6459 to always fail with ENOSYS. Some functions are actually named
6460 something starting with __ and the normal name is an alias. */
6461 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6469 if { (eval echo configure:6470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6471 eval "ac_cv_func_$ac_func=yes"
6473 echo "configure: failed program was:" >&5
6474 cat conftest.$ac_ext >&5
6476 eval "ac_cv_func_$ac_func=no"
6481 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6482 echo "$ac_t""yes" 1>&6
6483 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6484 cat >> confdefs.h <<EOF
6485 #define $ac_tr_func 1
6489 echo "$ac_t""no" 1>&6
6493 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
6495 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6496 echo "configure:6497: checking for $ac_func" >&5
6497 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6498 echo $ac_n "(cached) $ac_c" 1>&6
6500 cat > conftest.$ac_ext <<EOF
6501 #line 6502 "configure"
6502 #include "confdefs.h"
6503 /* System header to define __stub macros and hopefully few prototypes,
6504 which can conflict with char $ac_func(); below. */
6506 /* Override any gcc2 internal prototype to avoid an error. */
6507 /* We use char because int might match the return type of a gcc2
6508 builtin and then its argument prototype would still apply. */
6513 /* The GNU C library defines this for functions which it implements
6514 to always fail with ENOSYS. Some functions are actually named
6515 something starting with __ and the normal name is an alias. */
6516 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6524 if { (eval echo configure:6525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6526 eval "ac_cv_func_$ac_func=yes"
6528 echo "configure: failed program was:" >&5
6529 cat conftest.$ac_ext >&5
6531 eval "ac_cv_func_$ac_func=no"
6536 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6537 echo "$ac_t""yes" 1>&6
6538 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6539 cat >> confdefs.h <<EOF
6540 #define $ac_tr_func 1
6544 echo "$ac_t""no" 1>&6
6548 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
6550 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6551 echo "configure:6552: checking for $ac_func" >&5
6552 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6553 echo $ac_n "(cached) $ac_c" 1>&6
6555 cat > conftest.$ac_ext <<EOF
6556 #line 6557 "configure"
6557 #include "confdefs.h"
6558 /* System header to define __stub macros and hopefully few prototypes,
6559 which can conflict with char $ac_func(); below. */
6561 /* Override any gcc2 internal prototype to avoid an error. */
6562 /* We use char because int might match the return type of a gcc2
6563 builtin and then its argument prototype would still apply. */
6568 /* The GNU C library defines this for functions which it implements
6569 to always fail with ENOSYS. Some functions are actually named
6570 something starting with __ and the normal name is an alias. */
6571 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6579 if { (eval echo configure:6580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6581 eval "ac_cv_func_$ac_func=yes"
6583 echo "configure: failed program was:" >&5
6584 cat conftest.$ac_ext >&5
6586 eval "ac_cv_func_$ac_func=no"
6591 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6592 echo "$ac_t""yes" 1>&6
6593 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6594 cat >> confdefs.h <<EOF
6595 #define $ac_tr_func 1
6599 echo "$ac_t""no" 1>&6
6603 for ac_func in _write __write _fork __fork
6605 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6606 echo "configure:6607: checking for $ac_func" >&5
6607 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6608 echo $ac_n "(cached) $ac_c" 1>&6
6610 cat > conftest.$ac_ext <<EOF
6611 #line 6612 "configure"
6612 #include "confdefs.h"
6613 /* System header to define __stub macros and hopefully few prototypes,
6614 which can conflict with char $ac_func(); below. */
6616 /* Override any gcc2 internal prototype to avoid an error. */
6617 /* We use char because int might match the return type of a gcc2
6618 builtin and then its argument prototype would still apply. */
6623 /* The GNU C library defines this for functions which it implements
6624 to always fail with ENOSYS. Some functions are actually named
6625 something starting with __ and the normal name is an alias. */
6626 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6634 if { (eval echo configure:6635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6636 eval "ac_cv_func_$ac_func=yes"
6638 echo "configure: failed program was:" >&5
6639 cat conftest.$ac_ext >&5
6641 eval "ac_cv_func_$ac_func=no"
6646 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6647 echo "$ac_t""yes" 1>&6
6648 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6649 cat >> confdefs.h <<EOF
6650 #define $ac_tr_func 1
6654 echo "$ac_t""no" 1>&6
6658 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6660 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6661 echo "configure:6662: checking for $ac_func" >&5
6662 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6663 echo $ac_n "(cached) $ac_c" 1>&6
6665 cat > conftest.$ac_ext <<EOF
6666 #line 6667 "configure"
6667 #include "confdefs.h"
6668 /* System header to define __stub macros and hopefully few prototypes,
6669 which can conflict with char $ac_func(); below. */
6671 /* Override any gcc2 internal prototype to avoid an error. */
6672 /* We use char because int might match the return type of a gcc2
6673 builtin and then its argument prototype would still apply. */
6678 /* The GNU C library defines this for functions which it implements
6679 to always fail with ENOSYS. Some functions are actually named
6680 something starting with __ and the normal name is an alias. */
6681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6689 if { (eval echo configure:6690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6691 eval "ac_cv_func_$ac_func=yes"
6693 echo "configure: failed program was:" >&5
6694 cat conftest.$ac_ext >&5
6696 eval "ac_cv_func_$ac_func=no"
6701 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6702 echo "$ac_t""yes" 1>&6
6703 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6704 cat >> confdefs.h <<EOF
6705 #define $ac_tr_func 1
6709 echo "$ac_t""no" 1>&6
6713 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6715 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6716 echo "configure:6717: checking for $ac_func" >&5
6717 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6718 echo $ac_n "(cached) $ac_c" 1>&6
6720 cat > conftest.$ac_ext <<EOF
6721 #line 6722 "configure"
6722 #include "confdefs.h"
6723 /* System header to define __stub macros and hopefully few prototypes,
6724 which can conflict with char $ac_func(); below. */
6726 /* Override any gcc2 internal prototype to avoid an error. */
6727 /* We use char because int might match the return type of a gcc2
6728 builtin and then its argument prototype would still apply. */
6733 /* The GNU C library defines this for functions which it implements
6734 to always fail with ENOSYS. Some functions are actually named
6735 something starting with __ and the normal name is an alias. */
6736 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6744 if { (eval echo configure:6745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6746 eval "ac_cv_func_$ac_func=yes"
6748 echo "configure: failed program was:" >&5
6749 cat conftest.$ac_ext >&5
6751 eval "ac_cv_func_$ac_func=no"
6756 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6757 echo "$ac_t""yes" 1>&6
6758 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6759 cat >> confdefs.h <<EOF
6760 #define $ac_tr_func 1
6764 echo "$ac_t""no" 1>&6
6768 for ac_func in pread _pread __pread pread64 _pread64 __pread64
6770 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6771 echo "configure:6772: checking for $ac_func" >&5
6772 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6773 echo $ac_n "(cached) $ac_c" 1>&6
6775 cat > conftest.$ac_ext <<EOF
6776 #line 6777 "configure"
6777 #include "confdefs.h"
6778 /* System header to define __stub macros and hopefully few prototypes,
6779 which can conflict with char $ac_func(); below. */
6781 /* Override any gcc2 internal prototype to avoid an error. */
6782 /* We use char because int might match the return type of a gcc2
6783 builtin and then its argument prototype would still apply. */
6788 /* The GNU C library defines this for functions which it implements
6789 to always fail with ENOSYS. Some functions are actually named
6790 something starting with __ and the normal name is an alias. */
6791 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6799 if { (eval echo configure:6800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6801 eval "ac_cv_func_$ac_func=yes"
6803 echo "configure: failed program was:" >&5
6804 cat conftest.$ac_ext >&5
6806 eval "ac_cv_func_$ac_func=no"
6811 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6812 echo "$ac_t""yes" 1>&6
6813 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6814 cat >> confdefs.h <<EOF
6815 #define $ac_tr_func 1
6819 echo "$ac_t""no" 1>&6
6823 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6825 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6826 echo "configure:6827: checking for $ac_func" >&5
6827 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6828 echo $ac_n "(cached) $ac_c" 1>&6
6830 cat > conftest.$ac_ext <<EOF
6831 #line 6832 "configure"
6832 #include "confdefs.h"
6833 /* System header to define __stub macros and hopefully few prototypes,
6834 which can conflict with char $ac_func(); below. */
6836 /* Override any gcc2 internal prototype to avoid an error. */
6837 /* We use char because int might match the return type of a gcc2
6838 builtin and then its argument prototype would still apply. */
6843 /* The GNU C library defines this for functions which it implements
6844 to always fail with ENOSYS. Some functions are actually named
6845 something starting with __ and the normal name is an alias. */
6846 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6854 if { (eval echo configure:6855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6856 eval "ac_cv_func_$ac_func=yes"
6858 echo "configure: failed program was:" >&5
6859 cat conftest.$ac_ext >&5
6861 eval "ac_cv_func_$ac_func=no"
6866 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6867 echo "$ac_t""yes" 1>&6
6868 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6869 cat >> confdefs.h <<EOF
6870 #define $ac_tr_func 1
6874 echo "$ac_t""no" 1>&6
6878 for ac_func in open64 _open64 __open64 creat64
6880 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6881 echo "configure:6882: checking for $ac_func" >&5
6882 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6883 echo $ac_n "(cached) $ac_c" 1>&6
6885 cat > conftest.$ac_ext <<EOF
6886 #line 6887 "configure"
6887 #include "confdefs.h"
6888 /* System header to define __stub macros and hopefully few prototypes,
6889 which can conflict with char $ac_func(); below. */
6891 /* Override any gcc2 internal prototype to avoid an error. */
6892 /* We use char because int might match the return type of a gcc2
6893 builtin and then its argument prototype would still apply. */
6898 /* The GNU C library defines this for functions which it implements
6899 to always fail with ENOSYS. Some functions are actually named
6900 something starting with __ and the normal name is an alias. */
6901 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6909 if { (eval echo configure:6910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6911 eval "ac_cv_func_$ac_func=yes"
6913 echo "configure: failed program was:" >&5
6914 cat conftest.$ac_ext >&5
6916 eval "ac_cv_func_$ac_func=no"
6921 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6922 echo "$ac_t""yes" 1>&6
6923 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6924 cat >> confdefs.h <<EOF
6925 #define $ac_tr_func 1
6929 echo "$ac_t""no" 1>&6
6935 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6938 if test x$ac_cv_func_stat64 = xno ; then
6939 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6940 echo "configure:6941: checking for stat64 in <sys/stat.h>" >&5
6941 cat > conftest.$ac_ext <<EOF
6942 #line 6943 "configure"
6943 #include "confdefs.h"
6945 #if defined(HAVE_UNISTD_H)
6948 #include <sys/stat.h>
6951 struct stat64 st64; exit(stat64(".",&st64));
6954 if { (eval echo configure:6955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6956 ac_cv_func_stat64=yes
6958 echo "configure: failed program was:" >&5
6959 cat conftest.$ac_ext >&5
6962 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6963 if test x$ac_cv_func_stat64 = xyes ; then
6964 cat >> confdefs.h <<\EOF
6965 #define HAVE_STAT64 1
6971 if test x$ac_cv_func_lstat64 = xno ; then
6972 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6973 echo "configure:6974: checking for lstat64 in <sys/stat.h>" >&5
6974 cat > conftest.$ac_ext <<EOF
6975 #line 6976 "configure"
6976 #include "confdefs.h"
6978 #if defined(HAVE_UNISTD_H)
6981 #include <sys/stat.h>
6984 struct stat64 st64; exit(lstat64(".",&st64));
6987 if { (eval echo configure:6988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6989 ac_cv_func_lstat64=yes
6991 echo "configure: failed program was:" >&5
6992 cat conftest.$ac_ext >&5
6995 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6996 if test x$ac_cv_func_lstat64 = xyes ; then
6997 cat >> confdefs.h <<\EOF
6998 #define HAVE_LSTAT64 1
7004 if test x$ac_cv_func_fstat64 = xno ; then
7005 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
7006 echo "configure:7007: checking for fstat64 in <sys/stat.h>" >&5
7007 cat > conftest.$ac_ext <<EOF
7008 #line 7009 "configure"
7009 #include "confdefs.h"
7011 #if defined(HAVE_UNISTD_H)
7014 #include <sys/stat.h>
7017 struct stat64 st64; exit(fstat64(0,&st64));
7020 if { (eval echo configure:7021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7022 ac_cv_func_fstat64=yes
7024 echo "configure: failed program was:" >&5
7025 cat conftest.$ac_ext >&5
7028 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
7029 if test x$ac_cv_func_fstat64 = xyes ; then
7030 cat >> confdefs.h <<\EOF
7031 #define HAVE_FSTAT64 1
7037 #####################################
7038 # we might need the resolv library on some systems
7039 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
7040 echo "configure:7041: checking for dn_expand in -lresolv" >&5
7041 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
7042 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7043 echo $ac_n "(cached) $ac_c" 1>&6
7045 ac_save_LIBS="$LIBS"
7046 LIBS="-lresolv $LIBS"
7047 cat > conftest.$ac_ext <<EOF
7048 #line 7049 "configure"
7049 #include "confdefs.h"
7050 /* Override any gcc2 internal prototype to avoid an error. */
7051 /* We use char because int might match the return type of a gcc2
7052 builtin and then its argument prototype would still apply. */
7059 if { (eval echo configure:7060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7061 eval "ac_cv_lib_$ac_lib_var=yes"
7063 echo "configure: failed program was:" >&5
7064 cat conftest.$ac_ext >&5
7066 eval "ac_cv_lib_$ac_lib_var=no"
7069 LIBS="$ac_save_LIBS"
7072 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7073 echo "$ac_t""yes" 1>&6
7074 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7075 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7076 cat >> confdefs.h <<EOF
7077 #define $ac_tr_lib 1
7080 LIBS="-lresolv $LIBS"
7083 echo "$ac_t""no" 1>&6
7088 # Check for the functions putprpwnam, set_auth_parameters,
7089 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
7090 # Needed for OSF1 and HPUX.
7094 *-lsecurity*) for ac_func in putprpwnam
7096 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7097 echo "configure:7098: checking for $ac_func" >&5
7098 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7099 echo $ac_n "(cached) $ac_c" 1>&6
7101 cat > conftest.$ac_ext <<EOF
7102 #line 7103 "configure"
7103 #include "confdefs.h"
7104 /* System header to define __stub macros and hopefully few prototypes,
7105 which can conflict with char $ac_func(); below. */
7107 /* Override any gcc2 internal prototype to avoid an error. */
7108 /* We use char because int might match the return type of a gcc2
7109 builtin and then its argument prototype would still apply. */
7114 /* The GNU C library defines this for functions which it implements
7115 to always fail with ENOSYS. Some functions are actually named
7116 something starting with __ and the normal name is an alias. */
7117 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7125 if { (eval echo configure:7126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7127 eval "ac_cv_func_$ac_func=yes"
7129 echo "configure: failed program was:" >&5
7130 cat conftest.$ac_ext >&5
7132 eval "ac_cv_func_$ac_func=no"
7137 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7138 echo "$ac_t""yes" 1>&6
7139 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7140 cat >> confdefs.h <<EOF
7141 #define $ac_tr_func 1
7145 echo "$ac_t""no" 1>&6
7149 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
7150 echo "configure:7151: checking for putprpwnam in -lsecurity" >&5
7151 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
7152 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7153 echo $ac_n "(cached) $ac_c" 1>&6
7155 ac_save_LIBS="$LIBS"
7156 LIBS="-lsecurity $LIBS"
7157 cat > conftest.$ac_ext <<EOF
7158 #line 7159 "configure"
7159 #include "confdefs.h"
7160 /* Override any gcc2 internal prototype to avoid an error. */
7161 /* We use char because int might match the return type of a gcc2
7162 builtin and then its argument prototype would still apply. */
7169 if { (eval echo configure:7170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7171 eval "ac_cv_lib_$ac_lib_var=yes"
7173 echo "configure: failed program was:" >&5
7174 cat conftest.$ac_ext >&5
7176 eval "ac_cv_lib_$ac_lib_var=no"
7179 LIBS="$ac_save_LIBS"
7182 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7183 echo "$ac_t""yes" 1>&6
7184 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7185 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7186 cat >> confdefs.h <<EOF
7187 #define $ac_tr_lib 1
7190 LIBS="-lsecurity $LIBS"
7193 echo "$ac_t""no" 1>&6
7196 for ac_func in putprpwnam
7198 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7199 echo "configure:7200: checking for $ac_func" >&5
7200 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7201 echo $ac_n "(cached) $ac_c" 1>&6
7203 cat > conftest.$ac_ext <<EOF
7204 #line 7205 "configure"
7205 #include "confdefs.h"
7206 /* System header to define __stub macros and hopefully few prototypes,
7207 which can conflict with char $ac_func(); below. */
7209 /* Override any gcc2 internal prototype to avoid an error. */
7210 /* We use char because int might match the return type of a gcc2
7211 builtin and then its argument prototype would still apply. */
7216 /* The GNU C library defines this for functions which it implements
7217 to always fail with ENOSYS. Some functions are actually named
7218 something starting with __ and the normal name is an alias. */
7219 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7227 if { (eval echo configure:7228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7229 eval "ac_cv_func_$ac_func=yes"
7231 echo "configure: failed program was:" >&5
7232 cat conftest.$ac_ext >&5
7234 eval "ac_cv_func_$ac_func=no"
7239 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7240 echo "$ac_t""yes" 1>&6
7241 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7242 cat >> confdefs.h <<EOF
7243 #define $ac_tr_func 1
7247 echo "$ac_t""no" 1>&6
7255 *-lsec*) for ac_func in putprpwnam
7257 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7258 echo "configure:7259: checking for $ac_func" >&5
7259 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7260 echo $ac_n "(cached) $ac_c" 1>&6
7262 cat > conftest.$ac_ext <<EOF
7263 #line 7264 "configure"
7264 #include "confdefs.h"
7265 /* System header to define __stub macros and hopefully few prototypes,
7266 which can conflict with char $ac_func(); below. */
7268 /* Override any gcc2 internal prototype to avoid an error. */
7269 /* We use char because int might match the return type of a gcc2
7270 builtin and then its argument prototype would still apply. */
7275 /* The GNU C library defines this for functions which it implements
7276 to always fail with ENOSYS. Some functions are actually named
7277 something starting with __ and the normal name is an alias. */
7278 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7286 if { (eval echo configure:7287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7288 eval "ac_cv_func_$ac_func=yes"
7290 echo "configure: failed program was:" >&5
7291 cat conftest.$ac_ext >&5
7293 eval "ac_cv_func_$ac_func=no"
7298 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7299 echo "$ac_t""yes" 1>&6
7300 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7301 cat >> confdefs.h <<EOF
7302 #define $ac_tr_func 1
7306 echo "$ac_t""no" 1>&6
7310 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
7311 echo "configure:7312: checking for putprpwnam in -lsec" >&5
7312 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
7313 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7314 echo $ac_n "(cached) $ac_c" 1>&6
7316 ac_save_LIBS="$LIBS"
7318 cat > conftest.$ac_ext <<EOF
7319 #line 7320 "configure"
7320 #include "confdefs.h"
7321 /* Override any gcc2 internal prototype to avoid an error. */
7322 /* We use char because int might match the return type of a gcc2
7323 builtin and then its argument prototype would still apply. */
7330 if { (eval echo configure:7331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7332 eval "ac_cv_lib_$ac_lib_var=yes"
7334 echo "configure: failed program was:" >&5
7335 cat conftest.$ac_ext >&5
7337 eval "ac_cv_lib_$ac_lib_var=no"
7340 LIBS="$ac_save_LIBS"
7343 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7344 echo "$ac_t""yes" 1>&6
7345 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7346 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7347 cat >> confdefs.h <<EOF
7348 #define $ac_tr_lib 1
7354 echo "$ac_t""no" 1>&6
7357 for ac_func in putprpwnam
7359 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7360 echo "configure:7361: checking for $ac_func" >&5
7361 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7362 echo $ac_n "(cached) $ac_c" 1>&6
7364 cat > conftest.$ac_ext <<EOF
7365 #line 7366 "configure"
7366 #include "confdefs.h"
7367 /* System header to define __stub macros and hopefully few prototypes,
7368 which can conflict with char $ac_func(); below. */
7370 /* Override any gcc2 internal prototype to avoid an error. */
7371 /* We use char because int might match the return type of a gcc2
7372 builtin and then its argument prototype would still apply. */
7377 /* The GNU C library defines this for functions which it implements
7378 to always fail with ENOSYS. Some functions are actually named
7379 something starting with __ and the normal name is an alias. */
7380 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7388 if { (eval echo configure:7389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7390 eval "ac_cv_func_$ac_func=yes"
7392 echo "configure: failed program was:" >&5
7393 cat conftest.$ac_ext >&5
7395 eval "ac_cv_func_$ac_func=no"
7400 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7401 echo "$ac_t""yes" 1>&6
7402 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7403 cat >> confdefs.h <<EOF
7404 #define $ac_tr_func 1
7408 echo "$ac_t""no" 1>&6
7417 *-lsecurity*) for ac_func in set_auth_parameters
7419 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7420 echo "configure:7421: checking for $ac_func" >&5
7421 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7422 echo $ac_n "(cached) $ac_c" 1>&6
7424 cat > conftest.$ac_ext <<EOF
7425 #line 7426 "configure"
7426 #include "confdefs.h"
7427 /* System header to define __stub macros and hopefully few prototypes,
7428 which can conflict with char $ac_func(); below. */
7430 /* Override any gcc2 internal prototype to avoid an error. */
7431 /* We use char because int might match the return type of a gcc2
7432 builtin and then its argument prototype would still apply. */
7437 /* The GNU C library defines this for functions which it implements
7438 to always fail with ENOSYS. Some functions are actually named
7439 something starting with __ and the normal name is an alias. */
7440 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7448 if { (eval echo configure:7449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7450 eval "ac_cv_func_$ac_func=yes"
7452 echo "configure: failed program was:" >&5
7453 cat conftest.$ac_ext >&5
7455 eval "ac_cv_func_$ac_func=no"
7460 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7461 echo "$ac_t""yes" 1>&6
7462 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7463 cat >> confdefs.h <<EOF
7464 #define $ac_tr_func 1
7468 echo "$ac_t""no" 1>&6
7472 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
7473 echo "configure:7474: checking for set_auth_parameters in -lsecurity" >&5
7474 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7475 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7476 echo $ac_n "(cached) $ac_c" 1>&6
7478 ac_save_LIBS="$LIBS"
7479 LIBS="-lsecurity $LIBS"
7480 cat > conftest.$ac_ext <<EOF
7481 #line 7482 "configure"
7482 #include "confdefs.h"
7483 /* Override any gcc2 internal prototype to avoid an error. */
7484 /* We use char because int might match the return type of a gcc2
7485 builtin and then its argument prototype would still apply. */
7486 char set_auth_parameters();
7489 set_auth_parameters()
7492 if { (eval echo configure:7493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7494 eval "ac_cv_lib_$ac_lib_var=yes"
7496 echo "configure: failed program was:" >&5
7497 cat conftest.$ac_ext >&5
7499 eval "ac_cv_lib_$ac_lib_var=no"
7502 LIBS="$ac_save_LIBS"
7505 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7506 echo "$ac_t""yes" 1>&6
7507 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7508 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7509 cat >> confdefs.h <<EOF
7510 #define $ac_tr_lib 1
7513 LIBS="-lsecurity $LIBS"
7516 echo "$ac_t""no" 1>&6
7519 for ac_func in set_auth_parameters
7521 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7522 echo "configure:7523: checking for $ac_func" >&5
7523 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7524 echo $ac_n "(cached) $ac_c" 1>&6
7526 cat > conftest.$ac_ext <<EOF
7527 #line 7528 "configure"
7528 #include "confdefs.h"
7529 /* System header to define __stub macros and hopefully few prototypes,
7530 which can conflict with char $ac_func(); below. */
7532 /* Override any gcc2 internal prototype to avoid an error. */
7533 /* We use char because int might match the return type of a gcc2
7534 builtin and then its argument prototype would still apply. */
7539 /* The GNU C library defines this for functions which it implements
7540 to always fail with ENOSYS. Some functions are actually named
7541 something starting with __ and the normal name is an alias. */
7542 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7550 if { (eval echo configure:7551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7552 eval "ac_cv_func_$ac_func=yes"
7554 echo "configure: failed program was:" >&5
7555 cat conftest.$ac_ext >&5
7557 eval "ac_cv_func_$ac_func=no"
7562 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7563 echo "$ac_t""yes" 1>&6
7564 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7565 cat >> confdefs.h <<EOF
7566 #define $ac_tr_func 1
7570 echo "$ac_t""no" 1>&6
7578 *-lsec*) for ac_func in set_auth_parameters
7580 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7581 echo "configure:7582: checking for $ac_func" >&5
7582 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7583 echo $ac_n "(cached) $ac_c" 1>&6
7585 cat > conftest.$ac_ext <<EOF
7586 #line 7587 "configure"
7587 #include "confdefs.h"
7588 /* System header to define __stub macros and hopefully few prototypes,
7589 which can conflict with char $ac_func(); below. */
7591 /* Override any gcc2 internal prototype to avoid an error. */
7592 /* We use char because int might match the return type of a gcc2
7593 builtin and then its argument prototype would still apply. */
7598 /* The GNU C library defines this for functions which it implements
7599 to always fail with ENOSYS. Some functions are actually named
7600 something starting with __ and the normal name is an alias. */
7601 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7609 if { (eval echo configure:7610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7611 eval "ac_cv_func_$ac_func=yes"
7613 echo "configure: failed program was:" >&5
7614 cat conftest.$ac_ext >&5
7616 eval "ac_cv_func_$ac_func=no"
7621 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7622 echo "$ac_t""yes" 1>&6
7623 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7624 cat >> confdefs.h <<EOF
7625 #define $ac_tr_func 1
7629 echo "$ac_t""no" 1>&6
7633 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7634 echo "configure:7635: checking for set_auth_parameters in -lsec" >&5
7635 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7636 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7637 echo $ac_n "(cached) $ac_c" 1>&6
7639 ac_save_LIBS="$LIBS"
7641 cat > conftest.$ac_ext <<EOF
7642 #line 7643 "configure"
7643 #include "confdefs.h"
7644 /* Override any gcc2 internal prototype to avoid an error. */
7645 /* We use char because int might match the return type of a gcc2
7646 builtin and then its argument prototype would still apply. */
7647 char set_auth_parameters();
7650 set_auth_parameters()
7653 if { (eval echo configure:7654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7655 eval "ac_cv_lib_$ac_lib_var=yes"
7657 echo "configure: failed program was:" >&5
7658 cat conftest.$ac_ext >&5
7660 eval "ac_cv_lib_$ac_lib_var=no"
7663 LIBS="$ac_save_LIBS"
7666 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7667 echo "$ac_t""yes" 1>&6
7668 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7669 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7670 cat >> confdefs.h <<EOF
7671 #define $ac_tr_lib 1
7677 echo "$ac_t""no" 1>&6
7680 for ac_func in set_auth_parameters
7682 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7683 echo "configure:7684: checking for $ac_func" >&5
7684 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7685 echo $ac_n "(cached) $ac_c" 1>&6
7687 cat > conftest.$ac_ext <<EOF
7688 #line 7689 "configure"
7689 #include "confdefs.h"
7690 /* System header to define __stub macros and hopefully few prototypes,
7691 which can conflict with char $ac_func(); below. */
7693 /* Override any gcc2 internal prototype to avoid an error. */
7694 /* We use char because int might match the return type of a gcc2
7695 builtin and then its argument prototype would still apply. */
7700 /* The GNU C library defines this for functions which it implements
7701 to always fail with ENOSYS. Some functions are actually named
7702 something starting with __ and the normal name is an alias. */
7703 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7711 if { (eval echo configure:7712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7713 eval "ac_cv_func_$ac_func=yes"
7715 echo "configure: failed program was:" >&5
7716 cat conftest.$ac_ext >&5
7718 eval "ac_cv_func_$ac_func=no"
7723 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7724 echo "$ac_t""yes" 1>&6
7725 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7726 cat >> confdefs.h <<EOF
7727 #define $ac_tr_func 1
7731 echo "$ac_t""no" 1>&6
7739 # UnixWare 7.x has its getspnam in -lgen
7741 *-lgen*) for ac_func in getspnam
7743 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7744 echo "configure:7745: checking for $ac_func" >&5
7745 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7746 echo $ac_n "(cached) $ac_c" 1>&6
7748 cat > conftest.$ac_ext <<EOF
7749 #line 7750 "configure"
7750 #include "confdefs.h"
7751 /* System header to define __stub macros and hopefully few prototypes,
7752 which can conflict with char $ac_func(); below. */
7754 /* Override any gcc2 internal prototype to avoid an error. */
7755 /* We use char because int might match the return type of a gcc2
7756 builtin and then its argument prototype would still apply. */
7761 /* The GNU C library defines this for functions which it implements
7762 to always fail with ENOSYS. Some functions are actually named
7763 something starting with __ and the normal name is an alias. */
7764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7772 if { (eval echo configure:7773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7774 eval "ac_cv_func_$ac_func=yes"
7776 echo "configure: failed program was:" >&5
7777 cat conftest.$ac_ext >&5
7779 eval "ac_cv_func_$ac_func=no"
7784 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7785 echo "$ac_t""yes" 1>&6
7786 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7787 cat >> confdefs.h <<EOF
7788 #define $ac_tr_func 1
7792 echo "$ac_t""no" 1>&6
7796 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7797 echo "configure:7798: checking for getspnam in -lgen" >&5
7798 ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7799 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7800 echo $ac_n "(cached) $ac_c" 1>&6
7802 ac_save_LIBS="$LIBS"
7804 cat > conftest.$ac_ext <<EOF
7805 #line 7806 "configure"
7806 #include "confdefs.h"
7807 /* Override any gcc2 internal prototype to avoid an error. */
7808 /* We use char because int might match the return type of a gcc2
7809 builtin and then its argument prototype would still apply. */
7816 if { (eval echo configure:7817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7818 eval "ac_cv_lib_$ac_lib_var=yes"
7820 echo "configure: failed program was:" >&5
7821 cat conftest.$ac_ext >&5
7823 eval "ac_cv_lib_$ac_lib_var=no"
7826 LIBS="$ac_save_LIBS"
7829 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7830 echo "$ac_t""yes" 1>&6
7831 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7832 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7833 cat >> confdefs.h <<EOF
7834 #define $ac_tr_lib 1
7840 echo "$ac_t""no" 1>&6
7843 for ac_func in getspnam
7845 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7846 echo "configure:7847: checking for $ac_func" >&5
7847 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7848 echo $ac_n "(cached) $ac_c" 1>&6
7850 cat > conftest.$ac_ext <<EOF
7851 #line 7852 "configure"
7852 #include "confdefs.h"
7853 /* System header to define __stub macros and hopefully few prototypes,
7854 which can conflict with char $ac_func(); below. */
7856 /* Override any gcc2 internal prototype to avoid an error. */
7857 /* We use char because int might match the return type of a gcc2
7858 builtin and then its argument prototype would still apply. */
7863 /* The GNU C library defines this for functions which it implements
7864 to always fail with ENOSYS. Some functions are actually named
7865 something starting with __ and the normal name is an alias. */
7866 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7874 if { (eval echo configure:7875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7876 eval "ac_cv_func_$ac_func=yes"
7878 echo "configure: failed program was:" >&5
7879 cat conftest.$ac_ext >&5
7881 eval "ac_cv_func_$ac_func=no"
7886 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7887 echo "$ac_t""yes" 1>&6
7888 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7889 cat >> confdefs.h <<EOF
7890 #define $ac_tr_func 1
7894 echo "$ac_t""no" 1>&6
7903 *-lsecurity*) for ac_func in getspnam
7905 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7906 echo "configure:7907: checking for $ac_func" >&5
7907 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7908 echo $ac_n "(cached) $ac_c" 1>&6
7910 cat > conftest.$ac_ext <<EOF
7911 #line 7912 "configure"
7912 #include "confdefs.h"
7913 /* System header to define __stub macros and hopefully few prototypes,
7914 which can conflict with char $ac_func(); below. */
7916 /* Override any gcc2 internal prototype to avoid an error. */
7917 /* We use char because int might match the return type of a gcc2
7918 builtin and then its argument prototype would still apply. */
7923 /* The GNU C library defines this for functions which it implements
7924 to always fail with ENOSYS. Some functions are actually named
7925 something starting with __ and the normal name is an alias. */
7926 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7934 if { (eval echo configure:7935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7936 eval "ac_cv_func_$ac_func=yes"
7938 echo "configure: failed program was:" >&5
7939 cat conftest.$ac_ext >&5
7941 eval "ac_cv_func_$ac_func=no"
7946 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7947 echo "$ac_t""yes" 1>&6
7948 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7949 cat >> confdefs.h <<EOF
7950 #define $ac_tr_func 1
7954 echo "$ac_t""no" 1>&6
7958 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7959 echo "configure:7960: checking for getspnam in -lsecurity" >&5
7960 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7961 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7962 echo $ac_n "(cached) $ac_c" 1>&6
7964 ac_save_LIBS="$LIBS"
7965 LIBS="-lsecurity $LIBS"
7966 cat > conftest.$ac_ext <<EOF
7967 #line 7968 "configure"
7968 #include "confdefs.h"
7969 /* Override any gcc2 internal prototype to avoid an error. */
7970 /* We use char because int might match the return type of a gcc2
7971 builtin and then its argument prototype would still apply. */
7978 if { (eval echo configure:7979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7980 eval "ac_cv_lib_$ac_lib_var=yes"
7982 echo "configure: failed program was:" >&5
7983 cat conftest.$ac_ext >&5
7985 eval "ac_cv_lib_$ac_lib_var=no"
7988 LIBS="$ac_save_LIBS"
7991 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7992 echo "$ac_t""yes" 1>&6
7993 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7994 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7995 cat >> confdefs.h <<EOF
7996 #define $ac_tr_lib 1
7999 LIBS="-lsecurity $LIBS"
8002 echo "$ac_t""no" 1>&6
8005 for ac_func in getspnam
8007 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8008 echo "configure:8009: checking for $ac_func" >&5
8009 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8010 echo $ac_n "(cached) $ac_c" 1>&6
8012 cat > conftest.$ac_ext <<EOF
8013 #line 8014 "configure"
8014 #include "confdefs.h"
8015 /* System header to define __stub macros and hopefully few prototypes,
8016 which can conflict with char $ac_func(); below. */
8018 /* Override any gcc2 internal prototype to avoid an error. */
8019 /* We use char because int might match the return type of a gcc2
8020 builtin and then its argument prototype would still apply. */
8025 /* The GNU C library defines this for functions which it implements
8026 to always fail with ENOSYS. Some functions are actually named
8027 something starting with __ and the normal name is an alias. */
8028 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8036 if { (eval echo configure:8037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8038 eval "ac_cv_func_$ac_func=yes"
8040 echo "configure: failed program was:" >&5
8041 cat conftest.$ac_ext >&5
8043 eval "ac_cv_func_$ac_func=no"
8048 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8049 echo "$ac_t""yes" 1>&6
8050 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8051 cat >> confdefs.h <<EOF
8052 #define $ac_tr_func 1
8056 echo "$ac_t""no" 1>&6
8064 *-lsec*) for ac_func in getspnam
8066 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8067 echo "configure:8068: checking for $ac_func" >&5
8068 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8069 echo $ac_n "(cached) $ac_c" 1>&6
8071 cat > conftest.$ac_ext <<EOF
8072 #line 8073 "configure"
8073 #include "confdefs.h"
8074 /* System header to define __stub macros and hopefully few prototypes,
8075 which can conflict with char $ac_func(); below. */
8077 /* Override any gcc2 internal prototype to avoid an error. */
8078 /* We use char because int might match the return type of a gcc2
8079 builtin and then its argument prototype would still apply. */
8084 /* The GNU C library defines this for functions which it implements
8085 to always fail with ENOSYS. Some functions are actually named
8086 something starting with __ and the normal name is an alias. */
8087 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8095 if { (eval echo configure:8096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8097 eval "ac_cv_func_$ac_func=yes"
8099 echo "configure: failed program was:" >&5
8100 cat conftest.$ac_ext >&5
8102 eval "ac_cv_func_$ac_func=no"
8107 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8108 echo "$ac_t""yes" 1>&6
8109 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8110 cat >> confdefs.h <<EOF
8111 #define $ac_tr_func 1
8115 echo "$ac_t""no" 1>&6
8119 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
8120 echo "configure:8121: checking for getspnam in -lsec" >&5
8121 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
8122 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8123 echo $ac_n "(cached) $ac_c" 1>&6
8125 ac_save_LIBS="$LIBS"
8127 cat > conftest.$ac_ext <<EOF
8128 #line 8129 "configure"
8129 #include "confdefs.h"
8130 /* Override any gcc2 internal prototype to avoid an error. */
8131 /* We use char because int might match the return type of a gcc2
8132 builtin and then its argument prototype would still apply. */
8139 if { (eval echo configure:8140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8141 eval "ac_cv_lib_$ac_lib_var=yes"
8143 echo "configure: failed program was:" >&5
8144 cat conftest.$ac_ext >&5
8146 eval "ac_cv_lib_$ac_lib_var=no"
8149 LIBS="$ac_save_LIBS"
8152 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8153 echo "$ac_t""yes" 1>&6
8154 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8155 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8156 cat >> confdefs.h <<EOF
8157 #define $ac_tr_lib 1
8163 echo "$ac_t""no" 1>&6
8166 for ac_func in getspnam
8168 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8169 echo "configure:8170: checking for $ac_func" >&5
8170 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8171 echo $ac_n "(cached) $ac_c" 1>&6
8173 cat > conftest.$ac_ext <<EOF
8174 #line 8175 "configure"
8175 #include "confdefs.h"
8176 /* System header to define __stub macros and hopefully few prototypes,
8177 which can conflict with char $ac_func(); below. */
8179 /* Override any gcc2 internal prototype to avoid an error. */
8180 /* We use char because int might match the return type of a gcc2
8181 builtin and then its argument prototype would still apply. */
8186 /* The GNU C library defines this for functions which it implements
8187 to always fail with ENOSYS. Some functions are actually named
8188 something starting with __ and the normal name is an alias. */
8189 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8197 if { (eval echo configure:8198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8199 eval "ac_cv_func_$ac_func=yes"
8201 echo "configure: failed program was:" >&5
8202 cat conftest.$ac_ext >&5
8204 eval "ac_cv_func_$ac_func=no"
8209 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8210 echo "$ac_t""yes" 1>&6
8211 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8212 cat >> confdefs.h <<EOF
8213 #define $ac_tr_func 1
8217 echo "$ac_t""no" 1>&6
8226 *-lsecurity*) for ac_func in bigcrypt
8228 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8229 echo "configure:8230: checking for $ac_func" >&5
8230 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8231 echo $ac_n "(cached) $ac_c" 1>&6
8233 cat > conftest.$ac_ext <<EOF
8234 #line 8235 "configure"
8235 #include "confdefs.h"
8236 /* System header to define __stub macros and hopefully few prototypes,
8237 which can conflict with char $ac_func(); below. */
8239 /* Override any gcc2 internal prototype to avoid an error. */
8240 /* We use char because int might match the return type of a gcc2
8241 builtin and then its argument prototype would still apply. */
8246 /* The GNU C library defines this for functions which it implements
8247 to always fail with ENOSYS. Some functions are actually named
8248 something starting with __ and the normal name is an alias. */
8249 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8257 if { (eval echo configure:8258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8259 eval "ac_cv_func_$ac_func=yes"
8261 echo "configure: failed program was:" >&5
8262 cat conftest.$ac_ext >&5
8264 eval "ac_cv_func_$ac_func=no"
8269 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8270 echo "$ac_t""yes" 1>&6
8271 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8272 cat >> confdefs.h <<EOF
8273 #define $ac_tr_func 1
8277 echo "$ac_t""no" 1>&6
8281 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
8282 echo "configure:8283: checking for bigcrypt in -lsecurity" >&5
8283 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
8284 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8285 echo $ac_n "(cached) $ac_c" 1>&6
8287 ac_save_LIBS="$LIBS"
8288 LIBS="-lsecurity $LIBS"
8289 cat > conftest.$ac_ext <<EOF
8290 #line 8291 "configure"
8291 #include "confdefs.h"
8292 /* Override any gcc2 internal prototype to avoid an error. */
8293 /* We use char because int might match the return type of a gcc2
8294 builtin and then its argument prototype would still apply. */
8301 if { (eval echo configure:8302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8303 eval "ac_cv_lib_$ac_lib_var=yes"
8305 echo "configure: failed program was:" >&5
8306 cat conftest.$ac_ext >&5
8308 eval "ac_cv_lib_$ac_lib_var=no"
8311 LIBS="$ac_save_LIBS"
8314 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8315 echo "$ac_t""yes" 1>&6
8316 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8317 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8318 cat >> confdefs.h <<EOF
8319 #define $ac_tr_lib 1
8322 LIBS="-lsecurity $LIBS"
8325 echo "$ac_t""no" 1>&6
8328 for ac_func in bigcrypt
8330 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8331 echo "configure:8332: checking for $ac_func" >&5
8332 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8333 echo $ac_n "(cached) $ac_c" 1>&6
8335 cat > conftest.$ac_ext <<EOF
8336 #line 8337 "configure"
8337 #include "confdefs.h"
8338 /* System header to define __stub macros and hopefully few prototypes,
8339 which can conflict with char $ac_func(); below. */
8341 /* Override any gcc2 internal prototype to avoid an error. */
8342 /* We use char because int might match the return type of a gcc2
8343 builtin and then its argument prototype would still apply. */
8348 /* The GNU C library defines this for functions which it implements
8349 to always fail with ENOSYS. Some functions are actually named
8350 something starting with __ and the normal name is an alias. */
8351 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8359 if { (eval echo configure:8360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8361 eval "ac_cv_func_$ac_func=yes"
8363 echo "configure: failed program was:" >&5
8364 cat conftest.$ac_ext >&5
8366 eval "ac_cv_func_$ac_func=no"
8371 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8372 echo "$ac_t""yes" 1>&6
8373 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8374 cat >> confdefs.h <<EOF
8375 #define $ac_tr_func 1
8379 echo "$ac_t""no" 1>&6
8387 *-lsec*) for ac_func in bigcrypt
8389 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8390 echo "configure:8391: checking for $ac_func" >&5
8391 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8392 echo $ac_n "(cached) $ac_c" 1>&6
8394 cat > conftest.$ac_ext <<EOF
8395 #line 8396 "configure"
8396 #include "confdefs.h"
8397 /* System header to define __stub macros and hopefully few prototypes,
8398 which can conflict with char $ac_func(); below. */
8400 /* Override any gcc2 internal prototype to avoid an error. */
8401 /* We use char because int might match the return type of a gcc2
8402 builtin and then its argument prototype would still apply. */
8407 /* The GNU C library defines this for functions which it implements
8408 to always fail with ENOSYS. Some functions are actually named
8409 something starting with __ and the normal name is an alias. */
8410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8418 if { (eval echo configure:8419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8420 eval "ac_cv_func_$ac_func=yes"
8422 echo "configure: failed program was:" >&5
8423 cat conftest.$ac_ext >&5
8425 eval "ac_cv_func_$ac_func=no"
8430 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8431 echo "$ac_t""yes" 1>&6
8432 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8433 cat >> confdefs.h <<EOF
8434 #define $ac_tr_func 1
8438 echo "$ac_t""no" 1>&6
8442 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
8443 echo "configure:8444: checking for bigcrypt in -lsec" >&5
8444 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
8445 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8446 echo $ac_n "(cached) $ac_c" 1>&6
8448 ac_save_LIBS="$LIBS"
8450 cat > conftest.$ac_ext <<EOF
8451 #line 8452 "configure"
8452 #include "confdefs.h"
8453 /* Override any gcc2 internal prototype to avoid an error. */
8454 /* We use char because int might match the return type of a gcc2
8455 builtin and then its argument prototype would still apply. */
8462 if { (eval echo configure:8463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8464 eval "ac_cv_lib_$ac_lib_var=yes"
8466 echo "configure: failed program was:" >&5
8467 cat conftest.$ac_ext >&5
8469 eval "ac_cv_lib_$ac_lib_var=no"
8472 LIBS="$ac_save_LIBS"
8475 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8476 echo "$ac_t""yes" 1>&6
8477 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8478 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8479 cat >> confdefs.h <<EOF
8480 #define $ac_tr_lib 1
8486 echo "$ac_t""no" 1>&6
8489 for ac_func in bigcrypt
8491 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8492 echo "configure:8493: checking for $ac_func" >&5
8493 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8494 echo $ac_n "(cached) $ac_c" 1>&6
8496 cat > conftest.$ac_ext <<EOF
8497 #line 8498 "configure"
8498 #include "confdefs.h"
8499 /* System header to define __stub macros and hopefully few prototypes,
8500 which can conflict with char $ac_func(); below. */
8502 /* Override any gcc2 internal prototype to avoid an error. */
8503 /* We use char because int might match the return type of a gcc2
8504 builtin and then its argument prototype would still apply. */
8509 /* The GNU C library defines this for functions which it implements
8510 to always fail with ENOSYS. Some functions are actually named
8511 something starting with __ and the normal name is an alias. */
8512 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8520 if { (eval echo configure:8521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8522 eval "ac_cv_func_$ac_func=yes"
8524 echo "configure: failed program was:" >&5
8525 cat conftest.$ac_ext >&5
8527 eval "ac_cv_func_$ac_func=no"
8532 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8533 echo "$ac_t""yes" 1>&6
8534 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8535 cat >> confdefs.h <<EOF
8536 #define $ac_tr_func 1
8540 echo "$ac_t""no" 1>&6
8549 *-lsecurity*) for ac_func in getprpwnam
8551 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8552 echo "configure:8553: checking for $ac_func" >&5
8553 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8554 echo $ac_n "(cached) $ac_c" 1>&6
8556 cat > conftest.$ac_ext <<EOF
8557 #line 8558 "configure"
8558 #include "confdefs.h"
8559 /* System header to define __stub macros and hopefully few prototypes,
8560 which can conflict with char $ac_func(); below. */
8562 /* Override any gcc2 internal prototype to avoid an error. */
8563 /* We use char because int might match the return type of a gcc2
8564 builtin and then its argument prototype would still apply. */
8569 /* The GNU C library defines this for functions which it implements
8570 to always fail with ENOSYS. Some functions are actually named
8571 something starting with __ and the normal name is an alias. */
8572 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8580 if { (eval echo configure:8581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8582 eval "ac_cv_func_$ac_func=yes"
8584 echo "configure: failed program was:" >&5
8585 cat conftest.$ac_ext >&5
8587 eval "ac_cv_func_$ac_func=no"
8592 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8593 echo "$ac_t""yes" 1>&6
8594 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8595 cat >> confdefs.h <<EOF
8596 #define $ac_tr_func 1
8600 echo "$ac_t""no" 1>&6
8604 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8605 echo "configure:8606: checking for getprpwnam in -lsecurity" >&5
8606 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8607 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8608 echo $ac_n "(cached) $ac_c" 1>&6
8610 ac_save_LIBS="$LIBS"
8611 LIBS="-lsecurity $LIBS"
8612 cat > conftest.$ac_ext <<EOF
8613 #line 8614 "configure"
8614 #include "confdefs.h"
8615 /* Override any gcc2 internal prototype to avoid an error. */
8616 /* We use char because int might match the return type of a gcc2
8617 builtin and then its argument prototype would still apply. */
8624 if { (eval echo configure:8625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8626 eval "ac_cv_lib_$ac_lib_var=yes"
8628 echo "configure: failed program was:" >&5
8629 cat conftest.$ac_ext >&5
8631 eval "ac_cv_lib_$ac_lib_var=no"
8634 LIBS="$ac_save_LIBS"
8637 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8638 echo "$ac_t""yes" 1>&6
8639 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8640 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8641 cat >> confdefs.h <<EOF
8642 #define $ac_tr_lib 1
8645 LIBS="-lsecurity $LIBS"
8648 echo "$ac_t""no" 1>&6
8651 for ac_func in getprpwnam
8653 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8654 echo "configure:8655: checking for $ac_func" >&5
8655 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8656 echo $ac_n "(cached) $ac_c" 1>&6
8658 cat > conftest.$ac_ext <<EOF
8659 #line 8660 "configure"
8660 #include "confdefs.h"
8661 /* System header to define __stub macros and hopefully few prototypes,
8662 which can conflict with char $ac_func(); below. */
8664 /* Override any gcc2 internal prototype to avoid an error. */
8665 /* We use char because int might match the return type of a gcc2
8666 builtin and then its argument prototype would still apply. */
8671 /* The GNU C library defines this for functions which it implements
8672 to always fail with ENOSYS. Some functions are actually named
8673 something starting with __ and the normal name is an alias. */
8674 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8682 if { (eval echo configure:8683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8684 eval "ac_cv_func_$ac_func=yes"
8686 echo "configure: failed program was:" >&5
8687 cat conftest.$ac_ext >&5
8689 eval "ac_cv_func_$ac_func=no"
8694 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8695 echo "$ac_t""yes" 1>&6
8696 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8697 cat >> confdefs.h <<EOF
8698 #define $ac_tr_func 1
8702 echo "$ac_t""no" 1>&6
8710 *-lsec*) for ac_func in getprpwnam
8712 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8713 echo "configure:8714: checking for $ac_func" >&5
8714 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8715 echo $ac_n "(cached) $ac_c" 1>&6
8717 cat > conftest.$ac_ext <<EOF
8718 #line 8719 "configure"
8719 #include "confdefs.h"
8720 /* System header to define __stub macros and hopefully few prototypes,
8721 which can conflict with char $ac_func(); below. */
8723 /* Override any gcc2 internal prototype to avoid an error. */
8724 /* We use char because int might match the return type of a gcc2
8725 builtin and then its argument prototype would still apply. */
8730 /* The GNU C library defines this for functions which it implements
8731 to always fail with ENOSYS. Some functions are actually named
8732 something starting with __ and the normal name is an alias. */
8733 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8741 if { (eval echo configure:8742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8743 eval "ac_cv_func_$ac_func=yes"
8745 echo "configure: failed program was:" >&5
8746 cat conftest.$ac_ext >&5
8748 eval "ac_cv_func_$ac_func=no"
8753 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8754 echo "$ac_t""yes" 1>&6
8755 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8756 cat >> confdefs.h <<EOF
8757 #define $ac_tr_func 1
8761 echo "$ac_t""no" 1>&6
8765 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8766 echo "configure:8767: checking for getprpwnam in -lsec" >&5
8767 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8768 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8769 echo $ac_n "(cached) $ac_c" 1>&6
8771 ac_save_LIBS="$LIBS"
8773 cat > conftest.$ac_ext <<EOF
8774 #line 8775 "configure"
8775 #include "confdefs.h"
8776 /* Override any gcc2 internal prototype to avoid an error. */
8777 /* We use char because int might match the return type of a gcc2
8778 builtin and then its argument prototype would still apply. */
8785 if { (eval echo configure:8786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8787 eval "ac_cv_lib_$ac_lib_var=yes"
8789 echo "configure: failed program was:" >&5
8790 cat conftest.$ac_ext >&5
8792 eval "ac_cv_lib_$ac_lib_var=no"
8795 LIBS="$ac_save_LIBS"
8798 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8799 echo "$ac_t""yes" 1>&6
8800 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8801 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8802 cat >> confdefs.h <<EOF
8803 #define $ac_tr_lib 1
8809 echo "$ac_t""no" 1>&6
8812 for ac_func in getprpwnam
8814 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8815 echo "configure:8816: checking for $ac_func" >&5
8816 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8817 echo $ac_n "(cached) $ac_c" 1>&6
8819 cat > conftest.$ac_ext <<EOF
8820 #line 8821 "configure"
8821 #include "confdefs.h"
8822 /* System header to define __stub macros and hopefully few prototypes,
8823 which can conflict with char $ac_func(); below. */
8825 /* Override any gcc2 internal prototype to avoid an error. */
8826 /* We use char because int might match the return type of a gcc2
8827 builtin and then its argument prototype would still apply. */
8832 /* The GNU C library defines this for functions which it implements
8833 to always fail with ENOSYS. Some functions are actually named
8834 something starting with __ and the normal name is an alias. */
8835 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8843 if { (eval echo configure:8844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8845 eval "ac_cv_func_$ac_func=yes"
8847 echo "configure: failed program was:" >&5
8848 cat conftest.$ac_ext >&5
8850 eval "ac_cv_func_$ac_func=no"
8855 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8856 echo "$ac_t""yes" 1>&6
8857 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8858 cat >> confdefs.h <<EOF
8859 #define $ac_tr_func 1
8863 echo "$ac_t""no" 1>&6
8871 # this bit needs to be modified for each OS that is suported by
8872 # smbwrapper. You need to specify how to created a shared library and
8873 # how to compile C code to produce PIC object files
8875 # these are the defaults, good for lots of systems
8883 # Assume non-shared by default and override below
8885 echo $ac_n "checking ability to build shared libraries""... $ac_c" 1>&6
8886 echo "configure:8887: checking ability to build shared libraries" >&5
8888 # and these are for particular systems
8890 *linux*) cat >> confdefs.h <<\EOF
8896 DYNEXP="-Wl,--export-dynamic"
8898 cat >> confdefs.h <<\EOF
8899 #define STAT_ST_BLOCKSIZE 512
8904 cat >> confdefs.h <<\EOF
8909 LDSHFLAGS="-h \$@ -G"
8910 if test "${GCC}" = "yes"; then
8917 cat >> confdefs.h <<\EOF
8918 #define STAT_ST_BLOCKSIZE 512
8922 *sunos*) cat >> confdefs.h <<\EOF
8927 LDSHFLAGS="-Wl,-h,\$@ -G"
8928 PICFLAG="-KPIC" # Is this correct for SunOS
8930 *bsd*) BLDSHARED="true"
8931 LDSHFLAGS="-Wl,-soname,\$@ -shared"
8932 DYNEXP="-Wl,--export-dynamic"
8934 cat >> confdefs.h <<\EOF
8935 #define STAT_ST_BLOCKSIZE 512
8939 *irix*) cat >> confdefs.h <<\EOF
8944 *irix6*) cat >> confdefs.h <<\EOF
8950 ATTEMPT_WRAP32_BUILD=yes
8952 LDSHFLAGS="-soname \$@ -shared"
8954 if test "${GCC}" = "yes"; then
8959 cat >> confdefs.h <<\EOF
8960 #define STAT_ST_BLOCKSIZE 512
8964 *aix*) cat >> confdefs.h <<\EOF
8969 LDSHFLAGS="-Wl,-bexpall,-bM:SRE,-bnoentry"
8970 PICFLAG="-O2 -qmaxmem=6000"
8971 cat >> confdefs.h <<\EOF
8972 #define STAT_ST_BLOCKSIZE DEV_BSIZE
8976 *hpux*) cat >> confdefs.h <<\EOF
8981 # Use special PIC flags for the native HP-UX compiler.
8982 if test $ac_cv_prog_cc_Ae = yes; then
8985 LDSHFLAGS="-B symbolic -b -z +h \$@"
8989 cat >> confdefs.h <<\EOF
8990 #define STAT_ST_BLOCKSIZE 8192
8994 *qnx*) cat >> confdefs.h <<\EOF
8998 *osf*) cat >> confdefs.h <<\EOF
9003 LDSHFLAGS="-Wl,-soname,\$@ -shared"
9007 cat >> confdefs.h <<\EOF
9012 *unixware*) cat >> confdefs.h <<\EOF
9017 LDSHFLAGS="-Wl,-soname,\$@ -shared"
9020 *next2*) cat >> confdefs.h <<\EOF
9024 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
9025 set dummy groff; ac_word=$2
9026 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9027 echo "configure:9028: checking for $ac_word" >&5
9028 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
9029 echo $ac_n "(cached) $ac_c" 1>&6
9031 if test -n "$ROFF"; then
9032 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
9034 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9036 for ac_dir in $ac_dummy; do
9037 test -z "$ac_dir" && ac_dir=.
9038 if test -f $ac_dir/$ac_word; then
9039 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
9046 ROFF="$ac_cv_prog_ROFF"
9047 if test -n "$ROFF"; then
9048 echo "$ac_t""$ROFF" 1>&6
9050 echo "$ac_t""no" 1>&6
9056 if test "$GCC" != yes ; then
9057 cat >> confdefs.h <<\EOF
9058 #define HAVE_MEMSET 1
9066 cat >> confdefs.h <<\EOF
9067 #define RELIANTUNIX 1
9075 if test "$GCC" != yes ; then
9076 cat >> confdefs.h <<\EOF
9077 #define HAVE_MEMSET 1
9085 echo "$ac_t""$BLDSHARED" 1>&6
9086 echo $ac_n "checking linker flags for shared libraries""... $ac_c" 1>&6
9087 echo "configure:9088: checking linker flags for shared libraries" >&5
9088 echo "$ac_t""$LDSHFLAGS" 1>&6
9089 echo $ac_n "checking compiler flags for position-independent code""... $ac_c" 1>&6
9090 echo "configure:9091: checking compiler flags for position-independent code" >&5
9091 echo "$ac_t""$PICFLAGS" 1>&6
9093 #######################################################
9094 # test whether building a shared library actually works
9095 if test $BLDSHARED = true; then
9096 echo $ac_n "checking whether building shared libraries actually works""... $ac_c" 1>&6
9097 echo "configure:9098: checking whether building shared libraries actually works" >&5
9098 if eval "test \"`echo '$''{'ac_cv_shlib_works'+set}'`\" = set"; then
9099 echo $ac_n "(cached) $ac_c" 1>&6
9102 ac_cv_shlib_works=no
9103 # try building a trivial shared library
9104 $CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.po ${srcdir-.}/tests/shlib.c &&
9105 $CC $CPPFLAGS $CFLAGS $LDSHFLAGS -o shlib.so shlib.po &&
9106 ac_cv_shlib_works=yes
9107 rm -f shlib.so shlib.po
9111 echo "$ac_t""$ac_cv_shlib_works" 1>&6
9112 if test $ac_cv_shlib_works = no; then
9118 # this updates our target list if we can build shared libs
9119 if test $BLDSHARED = true; then
9120 LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
9122 LIBSMBCLIENT_SHARED=
9127 echo $ac_n "checking for long long""... $ac_c" 1>&6
9128 echo "configure:9129: checking for long long" >&5
9129 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
9130 echo $ac_n "(cached) $ac_c" 1>&6
9133 if test "$cross_compiling" = yes; then
9134 samba_cv_have_longlong=cross
9136 cat > conftest.$ac_ext <<EOF
9137 #line 9138 "configure"
9138 #include "confdefs.h"
9140 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
9142 if { (eval echo configure:9143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9144 samba_cv_have_longlong=yes
9146 echo "configure: failed program was:" >&5
9147 cat conftest.$ac_ext >&5
9149 samba_cv_have_longlong=no
9156 echo "$ac_t""$samba_cv_have_longlong" 1>&6
9157 if test x"$samba_cv_have_longlong" = x"yes"; then
9158 cat >> confdefs.h <<\EOF
9159 #define HAVE_LONGLONG 1
9165 # Check if the compiler supports the LL prefix on long long integers.
9168 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
9169 echo "configure:9170: checking for LL suffix on long long integers" >&5
9170 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
9171 echo $ac_n "(cached) $ac_c" 1>&6
9174 cat > conftest.$ac_ext <<EOF
9175 #line 9176 "configure"
9176 #include "confdefs.h"
9179 long long i = 0x8000000000LL
9182 if { (eval echo configure:9183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9184 samba_cv_compiler_supports_ll=yes
9186 echo "configure: failed program was:" >&5
9187 cat conftest.$ac_ext >&5
9189 samba_cv_compiler_supports_ll=no
9194 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
9195 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
9196 cat >> confdefs.h <<\EOF
9197 #define COMPILER_SUPPORTS_LL 1
9203 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
9204 echo "configure:9205: checking for 64 bit off_t" >&5
9205 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
9206 echo $ac_n "(cached) $ac_c" 1>&6
9209 if test "$cross_compiling" = yes; then
9210 samba_cv_SIZEOF_OFF_T=cross
9212 cat > conftest.$ac_ext <<EOF
9213 #line 9214 "configure"
9214 #include "confdefs.h"
9216 #include <sys/stat.h>
9217 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
9219 if { (eval echo configure:9220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9221 samba_cv_SIZEOF_OFF_T=yes
9223 echo "configure: failed program was:" >&5
9224 cat conftest.$ac_ext >&5
9226 samba_cv_SIZEOF_OFF_T=no
9233 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
9234 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
9235 cat >> confdefs.h <<\EOF
9236 #define SIZEOF_OFF_T 8
9241 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
9242 echo "configure:9243: checking for off64_t" >&5
9243 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
9244 echo $ac_n "(cached) $ac_c" 1>&6
9247 if test "$cross_compiling" = yes; then
9248 samba_cv_HAVE_OFF64_T=cross
9250 cat > conftest.$ac_ext <<EOF
9251 #line 9252 "configure"
9252 #include "confdefs.h"
9254 #if defined(HAVE_UNISTD_H)
9258 #include <sys/stat.h>
9259 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9261 if { (eval echo configure:9262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9263 samba_cv_HAVE_OFF64_T=yes
9265 echo "configure: failed program was:" >&5
9266 cat conftest.$ac_ext >&5
9268 samba_cv_HAVE_OFF64_T=no
9275 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
9276 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
9277 cat >> confdefs.h <<\EOF
9278 #define HAVE_OFF64_T 1
9283 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
9284 echo "configure:9285: checking for 64 bit ino_t" >&5
9285 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
9286 echo $ac_n "(cached) $ac_c" 1>&6
9289 if test "$cross_compiling" = yes; then
9290 samba_cv_SIZEOF_INO_T=cross
9292 cat > conftest.$ac_ext <<EOF
9293 #line 9294 "configure"
9294 #include "confdefs.h"
9296 #include <sys/stat.h>
9297 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
9299 if { (eval echo configure:9300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9301 samba_cv_SIZEOF_INO_T=yes
9303 echo "configure: failed program was:" >&5
9304 cat conftest.$ac_ext >&5
9306 samba_cv_SIZEOF_INO_T=no
9313 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
9314 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
9315 cat >> confdefs.h <<\EOF
9316 #define SIZEOF_INO_T 8
9321 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
9322 echo "configure:9323: checking for ino64_t" >&5
9323 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
9324 echo $ac_n "(cached) $ac_c" 1>&6
9327 if test "$cross_compiling" = yes; then
9328 samba_cv_HAVE_INO64_T=cross
9330 cat > conftest.$ac_ext <<EOF
9331 #line 9332 "configure"
9332 #include "confdefs.h"
9334 #if defined(HAVE_UNISTD_H)
9338 #include <sys/stat.h>
9339 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9341 if { (eval echo configure:9342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9343 samba_cv_HAVE_INO64_T=yes
9345 echo "configure: failed program was:" >&5
9346 cat conftest.$ac_ext >&5
9348 samba_cv_HAVE_INO64_T=no
9355 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
9356 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
9357 cat >> confdefs.h <<\EOF
9358 #define HAVE_INO64_T 1
9363 echo $ac_n "checking for dev64_t""... $ac_c" 1>&6
9364 echo "configure:9365: checking for dev64_t" >&5
9365 if eval "test \"`echo '$''{'samba_cv_HAVE_DEV64_T'+set}'`\" = set"; then
9366 echo $ac_n "(cached) $ac_c" 1>&6
9369 if test "$cross_compiling" = yes; then
9370 samba_cv_HAVE_DEV64_T=cross
9372 cat > conftest.$ac_ext <<EOF
9373 #line 9374 "configure"
9374 #include "confdefs.h"
9376 #if defined(HAVE_UNISTD_H)
9380 #include <sys/stat.h>
9381 main() { struct stat64 st; dev64_t s; if (sizeof(dev_t) == sizeof(dev64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9383 if { (eval echo configure:9384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9385 samba_cv_HAVE_DEV64_T=yes
9387 echo "configure: failed program was:" >&5
9388 cat conftest.$ac_ext >&5
9390 samba_cv_HAVE_DEV64_T=no
9397 echo "$ac_t""$samba_cv_HAVE_DEV64_T" 1>&6
9398 if test x"$samba_cv_HAVE_DEV64_T" = x"yes"; then
9399 cat >> confdefs.h <<\EOF
9400 #define HAVE_DEV64_T 1
9405 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
9406 echo "configure:9407: checking for struct dirent64" >&5
9407 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
9408 echo $ac_n "(cached) $ac_c" 1>&6
9411 cat > conftest.$ac_ext <<EOF
9412 #line 9413 "configure"
9413 #include "confdefs.h"
9415 #if defined(HAVE_UNISTD_H)
9418 #include <sys/types.h>
9424 if { (eval echo configure:9425: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9426 samba_cv_HAVE_STRUCT_DIRENT64=yes
9428 echo "configure: failed program was:" >&5
9429 cat conftest.$ac_ext >&5
9431 samba_cv_HAVE_STRUCT_DIRENT64=no
9436 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
9437 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes"; then
9438 cat >> confdefs.h <<\EOF
9439 #define HAVE_STRUCT_DIRENT64 1
9444 echo $ac_n "checking for major macro""... $ac_c" 1>&6
9445 echo "configure:9446: checking for major macro" >&5
9446 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MAJOR_FN'+set}'`\" = set"; then
9447 echo $ac_n "(cached) $ac_c" 1>&6
9450 if test "$cross_compiling" = yes; then
9451 samba_cv_HAVE_DEVICE_MAJOR_FN=cross
9453 cat > conftest.$ac_ext <<EOF
9454 #line 9455 "configure"
9455 #include "confdefs.h"
9457 #if defined(HAVE_UNISTD_H)
9460 #include <sys/types.h>
9461 main() { dev_t dev; int i = major(dev); return 0; }
9463 if { (eval echo configure:9464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9465 samba_cv_HAVE_DEVICE_MAJOR_FN=yes
9467 echo "configure: failed program was:" >&5
9468 cat conftest.$ac_ext >&5
9470 samba_cv_HAVE_DEVICE_MAJOR_FN=no
9477 echo "$ac_t""$samba_cv_HAVE_DEVICE_MAJOR_FN" 1>&6
9478 if test x"$samba_cv_HAVE_DEVICE_MAJOR_FN" = x"yes"; then
9479 cat >> confdefs.h <<\EOF
9480 #define HAVE_DEVICE_MAJOR_FN 1
9485 echo $ac_n "checking for minor macro""... $ac_c" 1>&6
9486 echo "configure:9487: checking for minor macro" >&5
9487 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MINOR_FN'+set}'`\" = set"; then
9488 echo $ac_n "(cached) $ac_c" 1>&6
9491 if test "$cross_compiling" = yes; then
9492 samba_cv_HAVE_DEVICE_MINOR_FN=cross
9494 cat > conftest.$ac_ext <<EOF
9495 #line 9496 "configure"
9496 #include "confdefs.h"
9498 #if defined(HAVE_UNISTD_H)
9501 #include <sys/types.h>
9502 main() { dev_t dev; int i = minor(dev); return 0; }
9504 if { (eval echo configure:9505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9506 samba_cv_HAVE_DEVICE_MINOR_FN=yes
9508 echo "configure: failed program was:" >&5
9509 cat conftest.$ac_ext >&5
9511 samba_cv_HAVE_DEVICE_MINOR_FN=no
9518 echo "$ac_t""$samba_cv_HAVE_DEVICE_MINOR_FN" 1>&6
9519 if test x"$samba_cv_HAVE_DEVICE_MINOR_FN" = x"yes"; then
9520 cat >> confdefs.h <<\EOF
9521 #define HAVE_DEVICE_MINOR_FN 1
9526 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
9527 echo "configure:9528: checking for unsigned char" >&5
9528 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
9529 echo $ac_n "(cached) $ac_c" 1>&6
9532 if test "$cross_compiling" = yes; then
9533 samba_cv_HAVE_UNSIGNED_CHAR=cross
9535 cat > conftest.$ac_ext <<EOF
9536 #line 9537 "configure"
9537 #include "confdefs.h"
9539 main() { char c; c=250; exit((c > 0)?0:1); }
9541 if { (eval echo configure:9542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9543 samba_cv_HAVE_UNSIGNED_CHAR=yes
9545 echo "configure: failed program was:" >&5
9546 cat conftest.$ac_ext >&5
9548 samba_cv_HAVE_UNSIGNED_CHAR=no
9555 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
9556 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
9557 cat >> confdefs.h <<\EOF
9558 #define HAVE_UNSIGNED_CHAR 1
9563 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
9564 echo "configure:9565: checking for sin_len in sock" >&5
9565 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
9566 echo $ac_n "(cached) $ac_c" 1>&6
9569 cat > conftest.$ac_ext <<EOF
9570 #line 9571 "configure"
9571 #include "confdefs.h"
9572 #include <sys/types.h>
9573 #include <sys/socket.h>
9574 #include <netinet/in.h>
9576 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
9579 if { (eval echo configure:9580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9581 samba_cv_HAVE_SOCK_SIN_LEN=yes
9583 echo "configure: failed program was:" >&5
9584 cat conftest.$ac_ext >&5
9586 samba_cv_HAVE_SOCK_SIN_LEN=no
9591 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
9592 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
9593 cat >> confdefs.h <<\EOF
9594 #define HAVE_SOCK_SIN_LEN 1
9599 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
9600 echo "configure:9601: checking whether seekdir returns void" >&5
9601 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
9602 echo $ac_n "(cached) $ac_c" 1>&6
9605 cat > conftest.$ac_ext <<EOF
9606 #line 9607 "configure"
9607 #include "confdefs.h"
9608 #include <sys/types.h>
9610 void seekdir(DIR *d, long loc) { return; }
9615 if { (eval echo configure:9616: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9617 samba_cv_SEEKDIR_RETURNS_VOID=yes
9619 echo "configure: failed program was:" >&5
9620 cat conftest.$ac_ext >&5
9622 samba_cv_SEEKDIR_RETURNS_VOID=no
9627 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
9628 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
9629 cat >> confdefs.h <<\EOF
9630 #define SEEKDIR_RETURNS_VOID 1
9635 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
9636 echo "configure:9637: checking for __FILE__ macro" >&5
9637 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
9638 echo $ac_n "(cached) $ac_c" 1>&6
9641 cat > conftest.$ac_ext <<EOF
9642 #line 9643 "configure"
9643 #include "confdefs.h"
9646 printf("%s\n", __FILE__);
9649 if { (eval echo configure:9650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9651 samba_cv_HAVE_FILE_MACRO=yes
9653 echo "configure: failed program was:" >&5
9654 cat conftest.$ac_ext >&5
9656 samba_cv_HAVE_FILE_MACRO=no
9661 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
9662 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
9663 cat >> confdefs.h <<\EOF
9664 #define HAVE_FILE_MACRO 1
9669 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9670 echo "configure:9671: checking for __FUNCTION__ macro" >&5
9671 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9672 echo $ac_n "(cached) $ac_c" 1>&6
9675 cat > conftest.$ac_ext <<EOF
9676 #line 9677 "configure"
9677 #include "confdefs.h"
9680 printf("%s\n", __FUNCTION__);
9683 if { (eval echo configure:9684: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9685 samba_cv_HAVE_FUNCTION_MACRO=yes
9687 echo "configure: failed program was:" >&5
9688 cat conftest.$ac_ext >&5
9690 samba_cv_HAVE_FUNCTION_MACRO=no
9695 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9696 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
9697 cat >> confdefs.h <<\EOF
9698 #define HAVE_FUNCTION_MACRO 1
9703 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9704 echo "configure:9705: checking if gettimeofday takes tz argument" >&5
9705 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9706 echo $ac_n "(cached) $ac_c" 1>&6
9709 if test "$cross_compiling" = yes; then
9710 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
9712 cat > conftest.$ac_ext <<EOF
9713 #line 9714 "configure"
9714 #include "confdefs.h"
9716 #include <sys/time.h>
9718 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9720 if { (eval echo configure:9721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9722 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
9724 echo "configure: failed program was:" >&5
9725 cat conftest.$ac_ext >&5
9727 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
9734 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9735 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
9736 cat >> confdefs.h <<\EOF
9737 #define HAVE_GETTIMEOFDAY_TZ 1
9742 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
9743 echo "configure:9744: checking for C99 vsnprintf" >&5
9744 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
9745 echo $ac_n "(cached) $ac_c" 1>&6
9748 if test "$cross_compiling" = yes; then
9749 samba_cv_HAVE_C99_VSNPRINTF=cross
9751 cat > conftest.$ac_ext <<EOF
9752 #line 9753 "configure"
9753 #include "confdefs.h"
9755 #include <sys/types.h>
9757 void foo(const char *format, ...) {
9762 va_start(ap, format);
9763 len = vsnprintf(buf, 0, format, ap);
9765 if (len != 5) exit(1);
9767 va_start(ap, format);
9768 len = vsnprintf(0, 0, format, ap);
9770 if (len != 5) exit(1);
9772 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
9776 main() { foo("hello"); }
9779 if { (eval echo configure:9780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9781 samba_cv_HAVE_C99_VSNPRINTF=yes
9783 echo "configure: failed program was:" >&5
9784 cat conftest.$ac_ext >&5
9786 samba_cv_HAVE_C99_VSNPRINTF=no
9793 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
9794 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
9795 cat >> confdefs.h <<\EOF
9796 #define HAVE_C99_VSNPRINTF 1
9801 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9802 echo "configure:9803: checking for broken readdir" >&5
9803 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9804 echo $ac_n "(cached) $ac_c" 1>&6
9807 if test "$cross_compiling" = yes; then
9808 samba_cv_HAVE_BROKEN_READDIR=cross
9810 cat > conftest.$ac_ext <<EOF
9811 #line 9812 "configure"
9812 #include "confdefs.h"
9813 #include <sys/types.h>
9815 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9816 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9817 di->d_name[0] == 0) exit(0); exit(1);}
9819 if { (eval echo configure:9820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9821 samba_cv_HAVE_BROKEN_READDIR=yes
9823 echo "configure: failed program was:" >&5
9824 cat conftest.$ac_ext >&5
9826 samba_cv_HAVE_BROKEN_READDIR=no
9833 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9834 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
9835 cat >> confdefs.h <<\EOF
9836 #define HAVE_BROKEN_READDIR 1
9841 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9842 echo "configure:9843: checking for utimbuf" >&5
9843 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9844 echo $ac_n "(cached) $ac_c" 1>&6
9847 cat > conftest.$ac_ext <<EOF
9848 #line 9849 "configure"
9849 #include "confdefs.h"
9850 #include <sys/types.h>
9853 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9856 if { (eval echo configure:9857: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9858 samba_cv_HAVE_UTIMBUF=yes
9860 echo "configure: failed program was:" >&5
9861 cat conftest.$ac_ext >&5
9863 samba_cv_HAVE_UTIMBUF=no
9868 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9869 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
9870 cat >> confdefs.h <<\EOF
9871 #define HAVE_UTIMBUF 1
9877 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
9879 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9880 echo "configure:9881: checking for $ac_func" >&5
9881 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9882 echo $ac_n "(cached) $ac_c" 1>&6
9884 cat > conftest.$ac_ext <<EOF
9885 #line 9886 "configure"
9886 #include "confdefs.h"
9887 /* System header to define __stub macros and hopefully few prototypes,
9888 which can conflict with char $ac_func(); below. */
9890 /* Override any gcc2 internal prototype to avoid an error. */
9891 /* We use char because int might match the return type of a gcc2
9892 builtin and then its argument prototype would still apply. */
9897 /* The GNU C library defines this for functions which it implements
9898 to always fail with ENOSYS. Some functions are actually named
9899 something starting with __ and the normal name is an alias. */
9900 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9908 if { (eval echo configure:9909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9910 eval "ac_cv_func_$ac_func=yes"
9912 echo "configure: failed program was:" >&5
9913 cat conftest.$ac_ext >&5
9915 eval "ac_cv_func_$ac_func=no"
9920 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9921 echo "$ac_t""yes" 1>&6
9922 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9923 cat >> confdefs.h <<EOF
9924 #define $ac_tr_func 1
9928 echo "$ac_t""no" 1>&6
9933 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9934 echo "configure:9935: checking for ut_name in utmp" >&5
9935 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9936 echo $ac_n "(cached) $ac_c" 1>&6
9939 cat > conftest.$ac_ext <<EOF
9940 #line 9941 "configure"
9941 #include "confdefs.h"
9942 #include <sys/types.h>
9945 struct utmp ut; ut.ut_name[0] = 'a';
9948 if { (eval echo configure:9949: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9950 samba_cv_HAVE_UT_UT_NAME=yes
9952 echo "configure: failed program was:" >&5
9953 cat conftest.$ac_ext >&5
9955 samba_cv_HAVE_UT_UT_NAME=no
9960 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9961 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
9962 cat >> confdefs.h <<\EOF
9963 #define HAVE_UT_UT_NAME 1
9968 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
9969 echo "configure:9970: checking for ut_user in utmp" >&5
9970 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
9971 echo $ac_n "(cached) $ac_c" 1>&6
9974 cat > conftest.$ac_ext <<EOF
9975 #line 9976 "configure"
9976 #include "confdefs.h"
9977 #include <sys/types.h>
9980 struct utmp ut; ut.ut_user[0] = 'a';
9983 if { (eval echo configure:9984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9985 samba_cv_HAVE_UT_UT_USER=yes
9987 echo "configure: failed program was:" >&5
9988 cat conftest.$ac_ext >&5
9990 samba_cv_HAVE_UT_UT_USER=no
9995 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
9996 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
9997 cat >> confdefs.h <<\EOF
9998 #define HAVE_UT_UT_USER 1
10003 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
10004 echo "configure:10005: checking for ut_id in utmp" >&5
10005 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
10006 echo $ac_n "(cached) $ac_c" 1>&6
10009 cat > conftest.$ac_ext <<EOF
10010 #line 10011 "configure"
10011 #include "confdefs.h"
10012 #include <sys/types.h>
10015 struct utmp ut; ut.ut_id[0] = 'a';
10018 if { (eval echo configure:10019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10020 samba_cv_HAVE_UT_UT_ID=yes
10022 echo "configure: failed program was:" >&5
10023 cat conftest.$ac_ext >&5
10025 samba_cv_HAVE_UT_UT_ID=no
10030 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
10031 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
10032 cat >> confdefs.h <<\EOF
10033 #define HAVE_UT_UT_ID 1
10038 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
10039 echo "configure:10040: checking for ut_host in utmp" >&5
10040 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
10041 echo $ac_n "(cached) $ac_c" 1>&6
10044 cat > conftest.$ac_ext <<EOF
10045 #line 10046 "configure"
10046 #include "confdefs.h"
10047 #include <sys/types.h>
10050 struct utmp ut; ut.ut_host[0] = 'a';
10053 if { (eval echo configure:10054: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10055 samba_cv_HAVE_UT_UT_HOST=yes
10057 echo "configure: failed program was:" >&5
10058 cat conftest.$ac_ext >&5
10060 samba_cv_HAVE_UT_UT_HOST=no
10065 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
10066 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
10067 cat >> confdefs.h <<\EOF
10068 #define HAVE_UT_UT_HOST 1
10073 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
10074 echo "configure:10075: checking for ut_time in utmp" >&5
10075 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
10076 echo $ac_n "(cached) $ac_c" 1>&6
10079 cat > conftest.$ac_ext <<EOF
10080 #line 10081 "configure"
10081 #include "confdefs.h"
10082 #include <sys/types.h>
10085 struct utmp ut; time_t t; ut.ut_time = t;
10088 if { (eval echo configure:10089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10090 samba_cv_HAVE_UT_UT_TIME=yes
10092 echo "configure: failed program was:" >&5
10093 cat conftest.$ac_ext >&5
10095 samba_cv_HAVE_UT_UT_TIME=no
10100 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
10101 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
10102 cat >> confdefs.h <<\EOF
10103 #define HAVE_UT_UT_TIME 1
10108 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
10109 echo "configure:10110: checking for ut_tv in utmp" >&5
10110 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
10111 echo $ac_n "(cached) $ac_c" 1>&6
10114 cat > conftest.$ac_ext <<EOF
10115 #line 10116 "configure"
10116 #include "confdefs.h"
10117 #include <sys/types.h>
10120 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
10123 if { (eval echo configure:10124: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10125 samba_cv_HAVE_UT_UT_TV=yes
10127 echo "configure: failed program was:" >&5
10128 cat conftest.$ac_ext >&5
10130 samba_cv_HAVE_UT_UT_TV=no
10135 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
10136 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
10137 cat >> confdefs.h <<\EOF
10138 #define HAVE_UT_UT_TV 1
10143 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
10144 echo "configure:10145: checking for ut_type in utmp" >&5
10145 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
10146 echo $ac_n "(cached) $ac_c" 1>&6
10149 cat > conftest.$ac_ext <<EOF
10150 #line 10151 "configure"
10151 #include "confdefs.h"
10152 #include <sys/types.h>
10155 struct utmp ut; ut.ut_type = 0;
10158 if { (eval echo configure:10159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10160 samba_cv_HAVE_UT_UT_TYPE=yes
10162 echo "configure: failed program was:" >&5
10163 cat conftest.$ac_ext >&5
10165 samba_cv_HAVE_UT_UT_TYPE=no
10170 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
10171 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
10172 cat >> confdefs.h <<\EOF
10173 #define HAVE_UT_UT_TYPE 1
10178 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
10179 echo "configure:10180: checking for ut_pid in utmp" >&5
10180 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
10181 echo $ac_n "(cached) $ac_c" 1>&6
10184 cat > conftest.$ac_ext <<EOF
10185 #line 10186 "configure"
10186 #include "confdefs.h"
10187 #include <sys/types.h>
10190 struct utmp ut; ut.ut_pid = 0;
10193 if { (eval echo configure:10194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10195 samba_cv_HAVE_UT_UT_PID=yes
10197 echo "configure: failed program was:" >&5
10198 cat conftest.$ac_ext >&5
10200 samba_cv_HAVE_UT_UT_PID=no
10205 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
10206 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
10207 cat >> confdefs.h <<\EOF
10208 #define HAVE_UT_UT_PID 1
10213 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
10214 echo "configure:10215: checking for ut_exit in utmp" >&5
10215 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
10216 echo $ac_n "(cached) $ac_c" 1>&6
10219 cat > conftest.$ac_ext <<EOF
10220 #line 10221 "configure"
10221 #include "confdefs.h"
10222 #include <sys/types.h>
10225 struct utmp ut; ut.ut_exit.e_exit = 0;
10228 if { (eval echo configure:10229: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10230 samba_cv_HAVE_UT_UT_EXIT=yes
10232 echo "configure: failed program was:" >&5
10233 cat conftest.$ac_ext >&5
10235 samba_cv_HAVE_UT_UT_EXIT=no
10240 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
10241 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
10242 cat >> confdefs.h <<\EOF
10243 #define HAVE_UT_UT_EXIT 1
10248 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
10249 echo "configure:10250: checking for ut_addr in utmp" >&5
10250 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
10251 echo $ac_n "(cached) $ac_c" 1>&6
10254 cat > conftest.$ac_ext <<EOF
10255 #line 10256 "configure"
10256 #include "confdefs.h"
10257 #include <sys/types.h>
10260 struct utmp ut; ut.ut_addr = 0;
10263 if { (eval echo configure:10264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10265 samba_cv_HAVE_UT_UT_ADDR=yes
10267 echo "configure: failed program was:" >&5
10268 cat conftest.$ac_ext >&5
10270 samba_cv_HAVE_UT_UT_ADDR=no
10275 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
10276 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
10277 cat >> confdefs.h <<\EOF
10278 #define HAVE_UT_UT_ADDR 1
10283 if test x$ac_cv_func_pututline = xyes ; then
10284 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
10285 echo "configure:10286: checking whether pututline returns pointer" >&5
10286 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
10287 echo $ac_n "(cached) $ac_c" 1>&6
10290 cat > conftest.$ac_ext <<EOF
10291 #line 10292 "configure"
10292 #include "confdefs.h"
10293 #include <sys/types.h>
10296 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
10299 if { (eval echo configure:10300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10301 samba_cv_PUTUTLINE_RETURNS_UTMP=yes
10303 echo "configure: failed program was:" >&5
10304 cat conftest.$ac_ext >&5
10306 samba_cv_PUTUTLINE_RETURNS_UTMP=no
10311 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
10312 if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
10313 cat >> confdefs.h <<\EOF
10314 #define PUTUTLINE_RETURNS_UTMP 1
10320 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
10321 echo "configure:10322: checking for ut_syslen in utmpx" >&5
10322 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
10323 echo $ac_n "(cached) $ac_c" 1>&6
10326 cat > conftest.$ac_ext <<EOF
10327 #line 10328 "configure"
10328 #include "confdefs.h"
10329 #include <sys/types.h>
10332 struct utmpx ux; ux.ut_syslen = 0;
10335 if { (eval echo configure:10336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10337 samba_cv_HAVE_UX_UT_SYSLEN=yes
10339 echo "configure: failed program was:" >&5
10340 cat conftest.$ac_ext >&5
10342 samba_cv_HAVE_UX_UT_SYSLEN=no
10347 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
10348 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
10349 cat >> confdefs.h <<\EOF
10350 #define HAVE_UX_UT_SYSLEN 1
10356 #################################################
10357 # check for libiconv support
10358 echo $ac_n "checking whether to use libiconv""... $ac_c" 1>&6
10359 echo "configure:10360: checking whether to use libiconv" >&5
10360 # Check whether --with-libiconv or --without-libiconv was given.
10361 if test "${with_libiconv+set}" = set; then
10362 withval="$with_libiconv"
10365 echo "$ac_t""no" 1>&6
10368 echo "$ac_t""yes" 1>&6
10369 CFLAGS="$CFLAGS -I$withval/include"
10370 LDFLAGS="$LDFLAGS -L$withval/lib"
10371 echo $ac_n "checking for iconv_open in -liconv""... $ac_c" 1>&6
10372 echo "configure:10373: checking for iconv_open in -liconv" >&5
10373 ac_lib_var=`echo iconv'_'iconv_open | sed 'y%./+-%__p_%'`
10374 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10375 echo $ac_n "(cached) $ac_c" 1>&6
10377 ac_save_LIBS="$LIBS"
10378 LIBS="-liconv $LIBS"
10379 cat > conftest.$ac_ext <<EOF
10380 #line 10381 "configure"
10381 #include "confdefs.h"
10382 /* Override any gcc2 internal prototype to avoid an error. */
10383 /* We use char because int might match the return type of a gcc2
10384 builtin and then its argument prototype would still apply. */
10391 if { (eval echo configure:10392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10393 eval "ac_cv_lib_$ac_lib_var=yes"
10395 echo "configure: failed program was:" >&5
10396 cat conftest.$ac_ext >&5
10398 eval "ac_cv_lib_$ac_lib_var=no"
10401 LIBS="$ac_save_LIBS"
10404 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10405 echo "$ac_t""yes" 1>&6
10406 ac_tr_lib=HAVE_LIB`echo iconv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10407 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10408 cat >> confdefs.h <<EOF
10409 #define $ac_tr_lib 1
10412 LIBS="-liconv $LIBS"
10415 echo "$ac_t""no" 1>&6
10418 cat >> confdefs.h <<EOF
10419 #define WITH_LIBICONV "${withval}"
10425 echo "$ac_t""no" 1>&6
10432 # check for iconv in libc
10433 echo $ac_n "checking for working iconv""... $ac_c" 1>&6
10434 echo "configure:10435: checking for working iconv" >&5
10435 if eval "test \"`echo '$''{'samba_cv_HAVE_NATIVE_ICONV'+set}'`\" = set"; then
10436 echo $ac_n "(cached) $ac_c" 1>&6
10439 if test "$cross_compiling" = yes; then
10440 samba_cv_HAVE_NATIVE_ICONV=cross
10442 cat > conftest.$ac_ext <<EOF
10443 #line 10444 "configure"
10444 #include "confdefs.h"
10448 iconv_t cd = iconv_open("ASCII", "UCS-2LE");
10449 if (cd == 0 || cd == (iconv_t)-1) return -1;
10454 if { (eval echo configure:10455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10456 samba_cv_HAVE_NATIVE_ICONV=yes
10458 echo "configure: failed program was:" >&5
10459 cat conftest.$ac_ext >&5
10461 samba_cv_HAVE_NATIVE_ICONV=no
10468 echo "$ac_t""$samba_cv_HAVE_NATIVE_ICONV" 1>&6
10469 if test x"$samba_cv_HAVE_NATIVE_ICONV" = x"yes"; then
10470 cat >> confdefs.h <<\EOF
10471 #define HAVE_NATIVE_ICONV 1
10477 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
10478 echo "configure:10479: checking for Linux kernel oplocks" >&5
10479 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
10480 echo $ac_n "(cached) $ac_c" 1>&6
10483 if test "$cross_compiling" = yes; then
10484 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
10486 cat > conftest.$ac_ext <<EOF
10487 #line 10488 "configure"
10488 #include "confdefs.h"
10490 #include <sys/types.h>
10493 #define F_GETLEASE 1025
10496 int fd = open("/dev/null", O_RDONLY);
10497 return fcntl(fd, F_GETLEASE, 0) == -1;
10501 if { (eval echo configure:10502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10503 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
10505 echo "configure: failed program was:" >&5
10506 cat conftest.$ac_ext >&5
10508 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
10515 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
10516 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
10517 cat >> confdefs.h <<\EOF
10518 #define HAVE_KERNEL_OPLOCKS_LINUX 1
10523 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
10524 echo "configure:10525: checking for kernel change notify support" >&5
10525 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
10526 echo $ac_n "(cached) $ac_c" 1>&6
10529 if test "$cross_compiling" = yes; then
10530 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
10532 cat > conftest.$ac_ext <<EOF
10533 #line 10534 "configure"
10534 #include "confdefs.h"
10536 #include <sys/types.h>
10538 #include <signal.h>
10540 #define F_NOTIFY 1026
10543 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
10547 if { (eval echo configure:10548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10549 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
10551 echo "configure: failed program was:" >&5
10552 cat conftest.$ac_ext >&5
10554 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
10561 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
10562 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes"; then
10563 cat >> confdefs.h <<\EOF
10564 #define HAVE_KERNEL_CHANGE_NOTIFY 1
10569 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
10570 echo "configure:10571: checking for kernel share modes" >&5
10571 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
10572 echo $ac_n "(cached) $ac_c" 1>&6
10575 if test "$cross_compiling" = yes; then
10576 samba_cv_HAVE_KERNEL_SHARE_MODES=cross
10578 cat > conftest.$ac_ext <<EOF
10579 #line 10580 "configure"
10580 #include "confdefs.h"
10582 #include <sys/types.h>
10584 #include <signal.h>
10585 #include <sys/file.h>
10587 #define LOCK_MAND 32
10588 #define LOCK_READ 64
10591 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
10595 if { (eval echo configure:10596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10597 samba_cv_HAVE_KERNEL_SHARE_MODES=yes
10599 echo "configure: failed program was:" >&5
10600 cat conftest.$ac_ext >&5
10602 samba_cv_HAVE_KERNEL_SHARE_MODES=no
10609 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
10610 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
10611 cat >> confdefs.h <<\EOF
10612 #define HAVE_KERNEL_SHARE_MODES 1
10620 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
10621 echo "configure:10622: checking for IRIX kernel oplock type definitions" >&5
10622 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
10623 echo $ac_n "(cached) $ac_c" 1>&6
10626 cat > conftest.$ac_ext <<EOF
10627 #line 10628 "configure"
10628 #include "confdefs.h"
10629 #include <sys/types.h>
10632 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
10635 if { (eval echo configure:10636: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10637 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
10639 echo "configure: failed program was:" >&5
10640 cat conftest.$ac_ext >&5
10642 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
10647 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
10648 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
10649 cat >> confdefs.h <<\EOF
10650 #define HAVE_KERNEL_OPLOCKS_IRIX 1
10655 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
10656 echo "configure:10657: checking for irix specific capabilities" >&5
10657 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
10658 echo $ac_n "(cached) $ac_c" 1>&6
10661 if test "$cross_compiling" = yes; then
10662 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
10664 cat > conftest.$ac_ext <<EOF
10665 #line 10666 "configure"
10666 #include "confdefs.h"
10667 #include <sys/types.h>
10668 #include <sys/capability.h>
10671 if ((cap = cap_get_proc()) == NULL)
10673 cap->cap_effective |= CAP_NETWORK_MGT;
10674 cap->cap_inheritable |= CAP_NETWORK_MGT;
10680 if { (eval echo configure:10681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10682 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
10684 echo "configure: failed program was:" >&5
10685 cat conftest.$ac_ext >&5
10687 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
10694 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
10695 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
10696 cat >> confdefs.h <<\EOF
10697 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
10703 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
10704 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
10707 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10708 echo "configure:10709: checking for int16 typedef included by rpc/rpc.h" >&5
10709 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10710 echo $ac_n "(cached) $ac_c" 1>&6
10713 cat > conftest.$ac_ext <<EOF
10714 #line 10715 "configure"
10715 #include "confdefs.h"
10716 #include <sys/types.h>
10717 #if defined(HAVE_RPC_RPC_H)
10718 #include <rpc/rpc.h>
10724 if { (eval echo configure:10725: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10726 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
10728 echo "configure: failed program was:" >&5
10729 cat conftest.$ac_ext >&5
10731 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
10736 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
10737 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
10738 cat >> confdefs.h <<\EOF
10739 #define HAVE_INT16_FROM_RPC_RPC_H 1
10744 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10745 echo "configure:10746: checking for uint16 typedef included by rpc/rpc.h" >&5
10746 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10747 echo $ac_n "(cached) $ac_c" 1>&6
10750 cat > conftest.$ac_ext <<EOF
10751 #line 10752 "configure"
10752 #include "confdefs.h"
10753 #include <sys/types.h>
10754 #if defined(HAVE_RPC_RPC_H)
10755 #include <rpc/rpc.h>
10761 if { (eval echo configure:10762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10763 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
10765 echo "configure: failed program was:" >&5
10766 cat conftest.$ac_ext >&5
10768 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
10773 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
10774 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
10775 cat >> confdefs.h <<\EOF
10776 #define HAVE_UINT16_FROM_RPC_RPC_H 1
10781 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10782 echo "configure:10783: checking for int32 typedef included by rpc/rpc.h" >&5
10783 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10784 echo $ac_n "(cached) $ac_c" 1>&6
10787 cat > conftest.$ac_ext <<EOF
10788 #line 10789 "configure"
10789 #include "confdefs.h"
10790 #include <sys/types.h>
10791 #if defined(HAVE_RPC_RPC_H)
10792 #include <rpc/rpc.h>
10798 if { (eval echo configure:10799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10800 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
10802 echo "configure: failed program was:" >&5
10803 cat conftest.$ac_ext >&5
10805 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
10810 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
10811 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
10812 cat >> confdefs.h <<\EOF
10813 #define HAVE_INT32_FROM_RPC_RPC_H 1
10818 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10819 echo "configure:10820: checking for uint32 typedef included by rpc/rpc.h" >&5
10820 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10821 echo $ac_n "(cached) $ac_c" 1>&6
10824 cat > conftest.$ac_ext <<EOF
10825 #line 10826 "configure"
10826 #include "confdefs.h"
10827 #include <sys/types.h>
10828 #if defined(HAVE_RPC_RPC_H)
10829 #include <rpc/rpc.h>
10835 if { (eval echo configure:10836: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10837 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
10839 echo "configure: failed program was:" >&5
10840 cat conftest.$ac_ext >&5
10842 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
10847 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
10848 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
10849 cat >> confdefs.h <<\EOF
10850 #define HAVE_UINT32_FROM_RPC_RPC_H 1
10856 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
10857 echo "configure:10858: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
10858 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
10859 echo $ac_n "(cached) $ac_c" 1>&6
10862 cat > conftest.$ac_ext <<EOF
10863 #line 10864 "configure"
10864 #include "confdefs.h"
10865 #include <sys/types.h>
10866 #ifdef HAVE_SYS_SECURITY_H
10867 #include <sys/security.h>
10869 #endif /* HAVE_SYS_SECURITY_H */
10870 #if defined(HAVE_RPC_RPC_H)
10871 #include <rpc/rpc.h>
10877 if { (eval echo configure:10878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10879 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
10881 echo "configure: failed program was:" >&5
10882 cat conftest.$ac_ext >&5
10884 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
10889 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
10890 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
10891 cat >> confdefs.h <<\EOF
10892 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
10897 echo $ac_n "checking for test routines""... $ac_c" 1>&6
10898 echo "configure:10899: checking for test routines" >&5
10899 if test "$cross_compiling" = yes; then
10900 echo "configure: warning: cannot run when cross-compiling" 1>&2
10902 cat > conftest.$ac_ext <<EOF
10903 #line 10904 "configure"
10904 #include "confdefs.h"
10905 #include "${srcdir-.}/tests/trivial.c"
10907 if { (eval echo configure:10908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10909 echo "$ac_t""yes" 1>&6
10911 echo "configure: failed program was:" >&5
10912 cat conftest.$ac_ext >&5
10914 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10920 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10921 echo "configure:10922: checking for ftruncate extend" >&5
10922 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10923 echo $ac_n "(cached) $ac_c" 1>&6
10926 if test "$cross_compiling" = yes; then
10927 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
10929 cat > conftest.$ac_ext <<EOF
10930 #line 10931 "configure"
10931 #include "confdefs.h"
10932 #include "${srcdir-.}/tests/ftruncate.c"
10934 if { (eval echo configure:10935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10936 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
10938 echo "configure: failed program was:" >&5
10939 cat conftest.$ac_ext >&5
10941 samba_cv_HAVE_FTRUNCATE_EXTEND=no
10948 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10949 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
10950 cat >> confdefs.h <<\EOF
10951 #define HAVE_FTRUNCATE_EXTEND 1
10956 echo $ac_n "checking for AF_LOCAL socket support""... $ac_c" 1>&6
10957 echo "configure:10958: checking for AF_LOCAL socket support" >&5
10958 if eval "test \"`echo '$''{'samba_cv_HAVE_WORKING_AF_LOCAL'+set}'`\" = set"; then
10959 echo $ac_n "(cached) $ac_c" 1>&6
10962 if test "$cross_compiling" = yes; then
10963 samba_cv_HAVE_WORKING_AF_LOCAL=cross
10965 cat > conftest.$ac_ext <<EOF
10966 #line 10967 "configure"
10967 #include "confdefs.h"
10968 #include "${srcdir-.}/tests/unixsock.c"
10970 if { (eval echo configure:10971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10972 samba_cv_HAVE_WORKING_AF_LOCAL=yes
10974 echo "configure: failed program was:" >&5
10975 cat conftest.$ac_ext >&5
10977 samba_cv_HAVE_WORKING_AF_LOCAL=no
10984 echo "$ac_t""$samba_cv_HAVE_WORKING_AF_LOCAL" 1>&6
10985 if test x"$samba_cv_HAVE_WORKING_AF_LOCAL" != xno
10987 cat >> confdefs.h <<\EOF
10988 #define HAVE_WORKING_AF_LOCAL 1
10993 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10994 echo "configure:10995: checking for broken getgroups" >&5
10995 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10996 echo $ac_n "(cached) $ac_c" 1>&6
10999 if test "$cross_compiling" = yes; then
11000 samba_cv_HAVE_BROKEN_GETGROUPS=cross
11002 cat > conftest.$ac_ext <<EOF
11003 #line 11004 "configure"
11004 #include "confdefs.h"
11005 #include "${srcdir-.}/tests/getgroups.c"
11007 if { (eval echo configure:11008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11009 samba_cv_HAVE_BROKEN_GETGROUPS=yes
11011 echo "configure: failed program was:" >&5
11012 cat conftest.$ac_ext >&5
11014 samba_cv_HAVE_BROKEN_GETGROUPS=no
11021 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
11022 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
11023 cat >> confdefs.h <<\EOF
11024 #define HAVE_BROKEN_GETGROUPS 1
11029 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
11030 echo "configure:11031: checking whether getpass should be replaced" >&5
11031 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
11032 echo $ac_n "(cached) $ac_c" 1>&6
11035 SAVE_CPPFLAGS="$CPPFLAGS"
11036 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/popt -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
11037 cat > conftest.$ac_ext <<EOF
11038 #line 11039 "configure"
11039 #include "confdefs.h"
11041 #define REPLACE_GETPASS 1
11042 #define NO_CONFIG_H 1
11043 #define main dont_declare_main
11044 #include "${srcdir-.}/lib/getsmbpass.c"
11051 if { (eval echo configure:11052: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11053 samba_cv_REPLACE_GETPASS=yes
11055 echo "configure: failed program was:" >&5
11056 cat conftest.$ac_ext >&5
11058 samba_cv_REPLACE_GETPASS=no
11061 CPPFLAGS="$SAVE_CPPFLAGS"
11065 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
11066 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
11067 cat >> confdefs.h <<\EOF
11068 #define REPLACE_GETPASS 1
11073 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
11074 echo "configure:11075: checking for broken inet_ntoa" >&5
11075 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
11076 echo $ac_n "(cached) $ac_c" 1>&6
11079 if test "$cross_compiling" = yes; then
11080 samba_cv_REPLACE_INET_NTOA=cross
11082 cat > conftest.$ac_ext <<EOF
11083 #line 11084 "configure"
11084 #include "confdefs.h"
11087 #include <sys/types.h>
11088 #include <netinet/in.h>
11089 #ifdef HAVE_ARPA_INET_H
11090 #include <arpa/inet.h>
11092 main() { struct in_addr ip; ip.s_addr = 0x12345678;
11093 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
11094 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
11097 if { (eval echo configure:11098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11099 samba_cv_REPLACE_INET_NTOA=yes
11101 echo "configure: failed program was:" >&5
11102 cat conftest.$ac_ext >&5
11104 samba_cv_REPLACE_INET_NTOA=no
11111 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
11112 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
11113 cat >> confdefs.h <<\EOF
11114 #define REPLACE_INET_NTOA 1
11119 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
11120 echo "configure:11121: checking for secure mkstemp" >&5
11121 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
11122 echo $ac_n "(cached) $ac_c" 1>&6
11125 if test "$cross_compiling" = yes; then
11126 samba_cv_HAVE_SECURE_MKSTEMP=cross
11128 cat > conftest.$ac_ext <<EOF
11129 #line 11130 "configure"
11130 #include "confdefs.h"
11131 #include <stdlib.h>
11132 #include <sys/types.h>
11133 #include <sys/stat.h>
11134 #include <unistd.h>
11137 char tpl[20]="/tmp/test.XXXXXX";
11138 int fd = mkstemp(tpl);
11139 if (fd == -1) exit(1);
11141 if (fstat(fd, &st) != 0) exit(1);
11142 if ((st.st_mode & 0777) != 0600) exit(1);
11146 if { (eval echo configure:11147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11148 samba_cv_HAVE_SECURE_MKSTEMP=yes
11150 echo "configure: failed program was:" >&5
11151 cat conftest.$ac_ext >&5
11153 samba_cv_HAVE_SECURE_MKSTEMP=no
11160 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
11161 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
11162 cat >> confdefs.h <<\EOF
11163 #define HAVE_SECURE_MKSTEMP 1
11168 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
11169 echo "configure:11170: checking for sysconf(_SC_NGROUPS_MAX)" >&5
11170 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
11171 echo $ac_n "(cached) $ac_c" 1>&6
11174 if test "$cross_compiling" = yes; then
11175 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
11177 cat > conftest.$ac_ext <<EOF
11178 #line 11179 "configure"
11179 #include "confdefs.h"
11180 #include <unistd.h>
11181 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
11183 if { (eval echo configure:11184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11185 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
11187 echo "configure: failed program was:" >&5
11188 cat conftest.$ac_ext >&5
11190 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
11197 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
11198 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
11199 cat >> confdefs.h <<\EOF
11200 #define SYSCONF_SC_NGROUPS_MAX 1
11205 echo $ac_n "checking for root""... $ac_c" 1>&6
11206 echo "configure:11207: checking for root" >&5
11207 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
11208 echo $ac_n "(cached) $ac_c" 1>&6
11211 if test "$cross_compiling" = yes; then
11212 samba_cv_HAVE_ROOT=cross
11214 cat > conftest.$ac_ext <<EOF
11215 #line 11216 "configure"
11216 #include "confdefs.h"
11217 main() { exit(getuid() != 0); }
11219 if { (eval echo configure:11220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11221 samba_cv_HAVE_ROOT=yes
11223 echo "configure: failed program was:" >&5
11224 cat conftest.$ac_ext >&5
11226 samba_cv_HAVE_ROOT=no
11233 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
11234 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
11235 cat >> confdefs.h <<\EOF
11236 #define HAVE_ROOT 1
11240 echo "configure: warning: running as non-root will disable some tests" 1>&2
11244 # look for a method of finding the list of network interfaces
11246 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
11247 echo "configure:11248: checking for iface AIX" >&5
11248 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
11249 echo $ac_n "(cached) $ac_c" 1>&6
11252 if test "$cross_compiling" = yes; then
11253 samba_cv_HAVE_IFACE_AIX=cross
11255 cat > conftest.$ac_ext <<EOF
11256 #line 11257 "configure"
11257 #include "confdefs.h"
11259 #define HAVE_IFACE_AIX 1
11260 #define AUTOCONF_TEST 1
11261 #include "confdefs.h"
11262 #include "${srcdir-.}/lib/interfaces.c"
11264 if { (eval echo configure:11265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11266 samba_cv_HAVE_IFACE_AIX=yes
11268 echo "configure: failed program was:" >&5
11269 cat conftest.$ac_ext >&5
11271 samba_cv_HAVE_IFACE_AIX=no
11278 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
11279 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
11280 iface=yes;cat >> confdefs.h <<\EOF
11281 #define HAVE_IFACE_AIX 1
11286 if test $iface = no; then
11287 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
11288 echo "configure:11289: checking for iface ifconf" >&5
11289 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
11290 echo $ac_n "(cached) $ac_c" 1>&6
11293 if test "$cross_compiling" = yes; then
11294 samba_cv_HAVE_IFACE_IFCONF=cross
11296 cat > conftest.$ac_ext <<EOF
11297 #line 11298 "configure"
11298 #include "confdefs.h"
11300 #define HAVE_IFACE_IFCONF 1
11301 #define AUTOCONF_TEST 1
11302 #include "confdefs.h"
11303 #include "${srcdir-.}/lib/interfaces.c"
11305 if { (eval echo configure:11306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11307 samba_cv_HAVE_IFACE_IFCONF=yes
11309 echo "configure: failed program was:" >&5
11310 cat conftest.$ac_ext >&5
11312 samba_cv_HAVE_IFACE_IFCONF=no
11319 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
11320 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
11321 iface=yes;cat >> confdefs.h <<\EOF
11322 #define HAVE_IFACE_IFCONF 1
11328 if test $iface = no; then
11329 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
11330 echo "configure:11331: checking for iface ifreq" >&5
11331 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
11332 echo $ac_n "(cached) $ac_c" 1>&6
11335 if test "$cross_compiling" = yes; then
11336 samba_cv_HAVE_IFACE_IFREQ=cross
11338 cat > conftest.$ac_ext <<EOF
11339 #line 11340 "configure"
11340 #include "confdefs.h"
11342 #define HAVE_IFACE_IFREQ 1
11343 #define AUTOCONF_TEST 1
11344 #include "confdefs.h"
11345 #include "${srcdir-.}/lib/interfaces.c"
11347 if { (eval echo configure:11348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11349 samba_cv_HAVE_IFACE_IFREQ=yes
11351 echo "configure: failed program was:" >&5
11352 cat conftest.$ac_ext >&5
11354 samba_cv_HAVE_IFACE_IFREQ=no
11361 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
11362 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
11363 iface=yes;cat >> confdefs.h <<\EOF
11364 #define HAVE_IFACE_IFREQ 1
11371 ################################################
11372 # look for a method of setting the effective uid
11374 if test $seteuid = no; then
11375 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
11376 echo "configure:11377: checking for setresuid" >&5
11377 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
11378 echo $ac_n "(cached) $ac_c" 1>&6
11381 if test "$cross_compiling" = yes; then
11382 samba_cv_USE_SETRESUID=cross
11384 cat > conftest.$ac_ext <<EOF
11385 #line 11386 "configure"
11386 #include "confdefs.h"
11388 #define AUTOCONF_TEST 1
11389 #define USE_SETRESUID 1
11390 #include "confdefs.h"
11391 #include "${srcdir-.}/lib/util_sec.c"
11393 if { (eval echo configure:11394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11395 samba_cv_USE_SETRESUID=yes
11397 echo "configure: failed program was:" >&5
11398 cat conftest.$ac_ext >&5
11400 samba_cv_USE_SETRESUID=no
11407 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
11408 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
11409 seteuid=yes;cat >> confdefs.h <<\EOF
11410 #define USE_SETRESUID 1
11417 if test $seteuid = no; then
11418 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
11419 echo "configure:11420: checking for setreuid" >&5
11420 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
11421 echo $ac_n "(cached) $ac_c" 1>&6
11424 if test "$cross_compiling" = yes; then
11425 samba_cv_USE_SETREUID=cross
11427 cat > conftest.$ac_ext <<EOF
11428 #line 11429 "configure"
11429 #include "confdefs.h"
11431 #define AUTOCONF_TEST 1
11432 #define USE_SETREUID 1
11433 #include "confdefs.h"
11434 #include "${srcdir-.}/lib/util_sec.c"
11436 if { (eval echo configure:11437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11438 samba_cv_USE_SETREUID=yes
11440 echo "configure: failed program was:" >&5
11441 cat conftest.$ac_ext >&5
11443 samba_cv_USE_SETREUID=no
11450 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
11451 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
11452 seteuid=yes;cat >> confdefs.h <<\EOF
11453 #define USE_SETREUID 1
11459 if test $seteuid = no; then
11460 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
11461 echo "configure:11462: checking for seteuid" >&5
11462 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
11463 echo $ac_n "(cached) $ac_c" 1>&6
11466 if test "$cross_compiling" = yes; then
11467 samba_cv_USE_SETEUID=cross
11469 cat > conftest.$ac_ext <<EOF
11470 #line 11471 "configure"
11471 #include "confdefs.h"
11473 #define AUTOCONF_TEST 1
11474 #define USE_SETEUID 1
11475 #include "confdefs.h"
11476 #include "${srcdir-.}/lib/util_sec.c"
11478 if { (eval echo configure:11479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11480 samba_cv_USE_SETEUID=yes
11482 echo "configure: failed program was:" >&5
11483 cat conftest.$ac_ext >&5
11485 samba_cv_USE_SETEUID=no
11492 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
11493 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
11494 seteuid=yes;cat >> confdefs.h <<\EOF
11495 #define USE_SETEUID 1
11501 if test $seteuid = no; then
11502 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
11503 echo "configure:11504: checking for setuidx" >&5
11504 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
11505 echo $ac_n "(cached) $ac_c" 1>&6
11508 if test "$cross_compiling" = yes; then
11509 samba_cv_USE_SETUIDX=cross
11511 cat > conftest.$ac_ext <<EOF
11512 #line 11513 "configure"
11513 #include "confdefs.h"
11515 #define AUTOCONF_TEST 1
11516 #define USE_SETUIDX 1
11517 #include "confdefs.h"
11518 #include "${srcdir-.}/lib/util_sec.c"
11520 if { (eval echo configure:11521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11522 samba_cv_USE_SETUIDX=yes
11524 echo "configure: failed program was:" >&5
11525 cat conftest.$ac_ext >&5
11527 samba_cv_USE_SETUIDX=no
11534 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
11535 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
11536 seteuid=yes;cat >> confdefs.h <<\EOF
11537 #define USE_SETUIDX 1
11544 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
11545 echo "configure:11546: checking for working mmap" >&5
11546 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
11547 echo $ac_n "(cached) $ac_c" 1>&6
11550 if test "$cross_compiling" = yes; then
11551 samba_cv_HAVE_MMAP=cross
11553 cat > conftest.$ac_ext <<EOF
11554 #line 11555 "configure"
11555 #include "confdefs.h"
11556 #include "${srcdir-.}/tests/shared_mmap.c"
11558 if { (eval echo configure:11559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11560 samba_cv_HAVE_MMAP=yes
11562 echo "configure: failed program was:" >&5
11563 cat conftest.$ac_ext >&5
11565 samba_cv_HAVE_MMAP=no
11572 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
11573 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
11574 cat >> confdefs.h <<\EOF
11575 #define HAVE_MMAP 1
11580 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
11581 echo "configure:11582: checking for ftruncate needs root" >&5
11582 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
11583 echo $ac_n "(cached) $ac_c" 1>&6
11586 if test "$cross_compiling" = yes; then
11587 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
11589 cat > conftest.$ac_ext <<EOF
11590 #line 11591 "configure"
11591 #include "confdefs.h"
11592 #include "${srcdir-.}/tests/ftruncroot.c"
11594 if { (eval echo configure:11595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11596 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
11598 echo "configure: failed program was:" >&5
11599 cat conftest.$ac_ext >&5
11601 samba_cv_FTRUNCATE_NEEDS_ROOT=no
11608 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
11609 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
11610 cat >> confdefs.h <<\EOF
11611 #define FTRUNCATE_NEEDS_ROOT 1
11616 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
11617 echo "configure:11618: checking for fcntl locking" >&5
11618 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
11619 echo $ac_n "(cached) $ac_c" 1>&6
11622 if test "$cross_compiling" = yes; then
11623 samba_cv_HAVE_FCNTL_LOCK=cross
11625 cat > conftest.$ac_ext <<EOF
11626 #line 11627 "configure"
11627 #include "confdefs.h"
11628 #include "${srcdir-.}/tests/fcntl_lock.c"
11630 if { (eval echo configure:11631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11632 samba_cv_HAVE_FCNTL_LOCK=yes
11634 echo "configure: failed program was:" >&5
11635 cat conftest.$ac_ext >&5
11637 samba_cv_HAVE_FCNTL_LOCK=no
11644 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
11645 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
11646 cat >> confdefs.h <<\EOF
11647 #define HAVE_FCNTL_LOCK 1
11652 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
11653 echo "configure:11654: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
11654 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
11655 echo $ac_n "(cached) $ac_c" 1>&6
11658 if test "$cross_compiling" = yes; then
11659 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
11661 cat > conftest.$ac_ext <<EOF
11662 #line 11663 "configure"
11663 #include "confdefs.h"
11664 #include "${srcdir-.}/tests/fcntl_lock64.c"
11666 if { (eval echo configure:11667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11668 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
11670 echo "configure: failed program was:" >&5
11671 cat conftest.$ac_ext >&5
11673 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
11680 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
11681 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
11682 cat >> confdefs.h <<\EOF
11683 #define HAVE_BROKEN_FCNTL64_LOCKS 1
11690 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
11691 echo "configure:11692: checking for 64 bit fcntl locking" >&5
11692 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
11693 echo $ac_n "(cached) $ac_c" 1>&6
11696 if test "$cross_compiling" = yes; then
11697 samba_cv_HAVE_STRUCT_FLOCK64=cross
11699 cat > conftest.$ac_ext <<EOF
11700 #line 11701 "configure"
11701 #include "confdefs.h"
11703 #if defined(HAVE_UNISTD_H)
11704 #include <unistd.h>
11707 #include <stdlib.h>
11709 #ifdef HAVE_FCNTL_H
11713 #ifdef HAVE_SYS_FCNTL_H
11714 #include <sys/fcntl.h>
11716 main() { struct flock64 fl64;
11717 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
11724 if { (eval echo configure:11725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11726 samba_cv_HAVE_STRUCT_FLOCK64=yes
11728 echo "configure: failed program was:" >&5
11729 cat conftest.$ac_ext >&5
11731 samba_cv_HAVE_STRUCT_FLOCK64=no
11738 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
11740 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
11741 cat >> confdefs.h <<\EOF
11742 #define HAVE_STRUCT_FLOCK64 1
11748 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
11749 echo "configure:11750: checking for st_blocks in struct stat" >&5
11750 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLOCKS'+set}'`\" = set"; then
11751 echo $ac_n "(cached) $ac_c" 1>&6
11754 cat > conftest.$ac_ext <<EOF
11755 #line 11756 "configure"
11756 #include "confdefs.h"
11757 #include <sys/types.h>
11758 #include <sys/stat.h>
11759 #include <unistd.h>
11761 struct stat st; st.st_blocks = 0;
11764 if { (eval echo configure:11765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11766 samba_cv_HAVE_STAT_ST_BLOCKS=yes
11768 echo "configure: failed program was:" >&5
11769 cat conftest.$ac_ext >&5
11771 samba_cv_HAVE_STAT_ST_BLOCKS=no
11776 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLOCKS" 1>&6
11777 if test x"$samba_cv_HAVE_STAT_ST_BLOCKS" = x"yes"; then
11778 cat >> confdefs.h <<\EOF
11779 #define HAVE_STAT_ST_BLOCKS 1
11786 echo $ac_n "checking for broken RedHat 7.2 system header files""... $ac_c" 1>&6
11787 echo "configure:11788: checking for broken RedHat 7.2 system header files" >&5
11788 if eval "test \"`echo '$''{'samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS'+set}'`\" = set"; then
11789 echo $ac_n "(cached) $ac_c" 1>&6
11792 cat > conftest.$ac_ext <<EOF
11793 #line 11794 "configure"
11794 #include "confdefs.h"
11796 #ifdef HAVE_SYS_VFS_H
11797 #include <sys/vfs.h>
11799 #ifdef HAVE_SYS_CAPABILITY_H
11800 #include <sys/capability.h>
11807 if { (eval echo configure:11808: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11809 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=no
11811 echo "configure: failed program was:" >&5
11812 cat conftest.$ac_ext >&5
11814 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=yes
11819 echo "$ac_t""$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" 1>&6
11820 if test x"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x"yes"; then
11821 cat >> confdefs.h <<\EOF
11822 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
11829 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
11830 echo "configure:11831: checking for broken nisplus include files" >&5
11831 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
11832 echo $ac_n "(cached) $ac_c" 1>&6
11835 cat > conftest.$ac_ext <<EOF
11836 #line 11837 "configure"
11837 #include "confdefs.h"
11838 #include <sys/acl.h>
11839 #if defined(HAVE_RPCSVC_NIS_H)
11840 #include <rpcsvc/nis.h>
11846 if { (eval echo configure:11847: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11848 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
11850 echo "configure: failed program was:" >&5
11851 cat conftest.$ac_ext >&5
11853 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
11858 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
11859 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
11860 cat >> confdefs.h <<\EOF
11861 #define BROKEN_NISPLUS_INCLUDE_FILES 1
11867 #################################################
11868 # check for smbwrapper support
11869 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
11870 echo "configure:11871: checking whether to use smbwrapper" >&5
11871 # Check whether --with-smbwrapper or --without-smbwrapper was given.
11872 if test "${with_smbwrapper+set}" = set; then
11873 withval="$with_smbwrapper"
11876 echo "$ac_t""yes" 1>&6
11877 cat >> confdefs.h <<\EOF
11878 #define WITH_SMBWRAPPER 1
11881 WRAP="bin/smbsh bin/smbwrapper.$SHLIBEXT"
11883 if test x$ATTEMPT_WRAP32_BUILD = x; then
11886 WRAP32=bin/smbwrapper.32.$SHLIBEXT
11889 # Conditions under which smbwrapper should not be built.
11891 if test x$PICFLAG = x; then
11892 echo No support for PIC code - disabling smbwrapper and smbsh
11895 elif test x$ac_cv_func_syscall = xno; then
11896 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
11902 echo "$ac_t""no" 1>&6
11906 echo "$ac_t""no" 1>&6
11911 #################################################
11912 # check for AFS clear-text auth support
11913 echo $ac_n "checking whether to use AFS clear-text auth""... $ac_c" 1>&6
11914 echo "configure:11915: checking whether to use AFS clear-text auth" >&5
11915 # Check whether --with-afs or --without-afs was given.
11916 if test "${with_afs+set}" = set; then
11917 withval="$with_afs"
11920 echo "$ac_t""yes" 1>&6
11921 cat >> confdefs.h <<\EOF
11927 echo "$ac_t""no" 1>&6
11931 echo "$ac_t""no" 1>&6
11937 #################################################
11938 # check for the DFS clear-text auth system
11939 echo $ac_n "checking whether to use DFS clear-text auth""... $ac_c" 1>&6
11940 echo "configure:11941: checking whether to use DFS clear-text auth" >&5
11941 # Check whether --with-dfs or --without-dfs was given.
11942 if test "${with_dfs+set}" = set; then
11943 withval="$with_dfs"
11946 echo "$ac_t""yes" 1>&6
11947 cat >> confdefs.h <<\EOF
11953 echo "$ac_t""no" 1>&6
11957 echo "$ac_t""no" 1>&6
11963 #################################################
11964 # see if this box has the RedHat location for kerberos
11965 echo $ac_n "checking for /usr/kerberos""... $ac_c" 1>&6
11966 echo "configure:11967: checking for /usr/kerberos" >&5
11967 if test -d /usr/kerberos; then
11968 LDFLAGS="$LDFLAGS -L/usr/kerberos/lib"
11969 CFLAGS="$CFLAGS -I/usr/kerberos/include"
11970 CPPFLAGS="$CPPFLAGS -I/usr/kerberos/include"
11971 echo "$ac_t""yes" 1>&6
11973 echo "$ac_t""no" 1>&6
11976 #################################################
11977 # check for location of Kerberos 5 install
11978 echo $ac_n "checking for kerberos 5 install path""... $ac_c" 1>&6
11979 echo "configure:11980: checking for kerberos 5 install path" >&5
11980 # Check whether --with-krb5 or --without-krb5 was given.
11981 if test "${with_krb5+set}" = set; then
11982 withval="$with_krb5"
11985 echo "$ac_t""no" 1>&6
11988 echo "$ac_t""yes" 1>&6
11989 LIBS="$LIBS -lkrb5"
11990 CFLAGS="$CFLAGS -I$withval/include"
11991 CPPFLAGS="$CPPFLAGS -I$withval/include"
11992 LDFLAGS="$LDFLAGS -L$withval/lib"
11996 echo "$ac_t""no" 1>&6
12001 # now check for krb5.h. Some systems have the libraries without the headers!
12002 # note that this check is done here to allow for different kerberos
12004 for ac_hdr in krb5.h
12006 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12007 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12008 echo "configure:12009: checking for $ac_hdr" >&5
12009 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12010 echo $ac_n "(cached) $ac_c" 1>&6
12012 cat > conftest.$ac_ext <<EOF
12013 #line 12014 "configure"
12014 #include "confdefs.h"
12017 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12018 { (eval echo configure:12019: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12019 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12020 if test -z "$ac_err"; then
12022 eval "ac_cv_header_$ac_safe=yes"
12025 echo "configure: failed program was:" >&5
12026 cat conftest.$ac_ext >&5
12028 eval "ac_cv_header_$ac_safe=no"
12032 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12033 echo "$ac_t""yes" 1>&6
12034 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12035 cat >> confdefs.h <<EOF
12036 #define $ac_tr_hdr 1
12040 echo "$ac_t""no" 1>&6
12045 # now check for gssapi headers. This is also done here to allow for
12046 # different kerberos include paths
12047 for ac_hdr in gssapi/gssapi_generic.h gssapi/gssapi.h
12049 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12050 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12051 echo "configure:12052: checking for $ac_hdr" >&5
12052 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12053 echo $ac_n "(cached) $ac_c" 1>&6
12055 cat > conftest.$ac_ext <<EOF
12056 #line 12057 "configure"
12057 #include "confdefs.h"
12060 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12061 { (eval echo configure:12062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12062 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12063 if test -z "$ac_err"; then
12065 eval "ac_cv_header_$ac_safe=yes"
12068 echo "configure: failed program was:" >&5
12069 cat conftest.$ac_ext >&5
12071 eval "ac_cv_header_$ac_safe=no"
12075 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12076 echo "$ac_t""yes" 1>&6
12077 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12078 cat >> confdefs.h <<EOF
12079 #define $ac_tr_hdr 1
12083 echo "$ac_t""no" 1>&6
12088 ##################################################################
12089 # we might need the k5crypto and com_err libraries on some systems
12090 echo $ac_n "checking for _et_list in -lcom_err""... $ac_c" 1>&6
12091 echo "configure:12092: checking for _et_list in -lcom_err" >&5
12092 ac_lib_var=`echo com_err'_'_et_list | sed 'y%./+-%__p_%'`
12093 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12094 echo $ac_n "(cached) $ac_c" 1>&6
12096 ac_save_LIBS="$LIBS"
12097 LIBS="-lcom_err $LIBS"
12098 cat > conftest.$ac_ext <<EOF
12099 #line 12100 "configure"
12100 #include "confdefs.h"
12101 /* Override any gcc2 internal prototype to avoid an error. */
12102 /* We use char because int might match the return type of a gcc2
12103 builtin and then its argument prototype would still apply. */
12110 if { (eval echo configure:12111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12112 eval "ac_cv_lib_$ac_lib_var=yes"
12114 echo "configure: failed program was:" >&5
12115 cat conftest.$ac_ext >&5
12117 eval "ac_cv_lib_$ac_lib_var=no"
12120 LIBS="$ac_save_LIBS"
12123 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12124 echo "$ac_t""yes" 1>&6
12125 LIBS="$LIBS -lcom_err"
12127 echo "$ac_t""no" 1>&6
12130 echo $ac_n "checking for krb5_encrypt_data in -lk5crypto""... $ac_c" 1>&6
12131 echo "configure:12132: checking for krb5_encrypt_data in -lk5crypto" >&5
12132 ac_lib_var=`echo k5crypto'_'krb5_encrypt_data | sed 'y%./+-%__p_%'`
12133 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12134 echo $ac_n "(cached) $ac_c" 1>&6
12136 ac_save_LIBS="$LIBS"
12137 LIBS="-lk5crypto $LIBS"
12138 cat > conftest.$ac_ext <<EOF
12139 #line 12140 "configure"
12140 #include "confdefs.h"
12141 /* Override any gcc2 internal prototype to avoid an error. */
12142 /* We use char because int might match the return type of a gcc2
12143 builtin and then its argument prototype would still apply. */
12144 char krb5_encrypt_data();
12147 krb5_encrypt_data()
12150 if { (eval echo configure:12151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12152 eval "ac_cv_lib_$ac_lib_var=yes"
12154 echo "configure: failed program was:" >&5
12155 cat conftest.$ac_ext >&5
12157 eval "ac_cv_lib_$ac_lib_var=no"
12160 LIBS="$ac_save_LIBS"
12163 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12164 echo "$ac_t""yes" 1>&6
12165 LIBS="$LIBS -lk5crypto"
12167 echo "$ac_t""no" 1>&6
12171 ########################################################
12172 # now see if we can find the krb5 libs in standard paths
12173 # or as specified above
12174 echo $ac_n "checking for krb5_mk_req_extended in -lkrb5""... $ac_c" 1>&6
12175 echo "configure:12176: checking for krb5_mk_req_extended in -lkrb5" >&5
12176 ac_lib_var=`echo krb5'_'krb5_mk_req_extended | sed 'y%./+-%__p_%'`
12177 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12178 echo $ac_n "(cached) $ac_c" 1>&6
12180 ac_save_LIBS="$LIBS"
12181 LIBS="-lkrb5 $LIBS"
12182 cat > conftest.$ac_ext <<EOF
12183 #line 12184 "configure"
12184 #include "confdefs.h"
12185 /* Override any gcc2 internal prototype to avoid an error. */
12186 /* We use char because int might match the return type of a gcc2
12187 builtin and then its argument prototype would still apply. */
12188 char krb5_mk_req_extended();
12191 krb5_mk_req_extended()
12194 if { (eval echo configure:12195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12196 eval "ac_cv_lib_$ac_lib_var=yes"
12198 echo "configure: failed program was:" >&5
12199 cat conftest.$ac_ext >&5
12201 eval "ac_cv_lib_$ac_lib_var=no"
12204 LIBS="$ac_save_LIBS"
12207 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12208 echo "$ac_t""yes" 1>&6
12209 LIBS="$LIBS -lkrb5";
12210 cat >> confdefs.h <<\EOF
12211 #define HAVE_KRB5 1
12215 echo "$ac_t""no" 1>&6
12219 ########################################################
12220 # now see if we can find the gssapi libs in standard paths
12221 echo $ac_n "checking for gss_display_status in -lgssapi_krb5""... $ac_c" 1>&6
12222 echo "configure:12223: checking for gss_display_status in -lgssapi_krb5" >&5
12223 ac_lib_var=`echo gssapi_krb5'_'gss_display_status | sed 'y%./+-%__p_%'`
12224 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12225 echo $ac_n "(cached) $ac_c" 1>&6
12227 ac_save_LIBS="$LIBS"
12228 LIBS="-lgssapi_krb5 $LIBS"
12229 cat > conftest.$ac_ext <<EOF
12230 #line 12231 "configure"
12231 #include "confdefs.h"
12232 /* Override any gcc2 internal prototype to avoid an error. */
12233 /* We use char because int might match the return type of a gcc2
12234 builtin and then its argument prototype would still apply. */
12235 char gss_display_status();
12238 gss_display_status()
12241 if { (eval echo configure:12242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12243 eval "ac_cv_lib_$ac_lib_var=yes"
12245 echo "configure: failed program was:" >&5
12246 cat conftest.$ac_ext >&5
12248 eval "ac_cv_lib_$ac_lib_var=no"
12251 LIBS="$ac_save_LIBS"
12254 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12255 echo "$ac_t""yes" 1>&6
12256 LIBS="$LIBS -lgssapi_krb5";
12257 cat >> confdefs.h <<\EOF
12258 #define HAVE_GSSAPI 1
12262 echo "$ac_t""no" 1>&6
12266 ##################################################################
12267 # we might need the lber lib on some systems. To avoid link errors
12268 # this test must be before the libldap test
12269 echo $ac_n "checking for ber_scanf in -llber""... $ac_c" 1>&6
12270 echo "configure:12271: checking for ber_scanf in -llber" >&5
12271 ac_lib_var=`echo lber'_'ber_scanf | sed 'y%./+-%__p_%'`
12272 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12273 echo $ac_n "(cached) $ac_c" 1>&6
12275 ac_save_LIBS="$LIBS"
12276 LIBS="-llber $LIBS"
12277 cat > conftest.$ac_ext <<EOF
12278 #line 12279 "configure"
12279 #include "confdefs.h"
12280 /* Override any gcc2 internal prototype to avoid an error. */
12281 /* We use char because int might match the return type of a gcc2
12282 builtin and then its argument prototype would still apply. */
12289 if { (eval echo configure:12290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12291 eval "ac_cv_lib_$ac_lib_var=yes"
12293 echo "configure: failed program was:" >&5
12294 cat conftest.$ac_ext >&5
12296 eval "ac_cv_lib_$ac_lib_var=no"
12299 LIBS="$ac_save_LIBS"
12302 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12303 echo "$ac_t""yes" 1>&6
12304 LIBS="$LIBS -llber"
12306 echo "$ac_t""no" 1>&6
12310 ########################################################
12311 # now see if we can find the ldap libs in standard paths
12312 if test x$have_ldap != xyes; then
12313 echo $ac_n "checking for ldap_domain2hostlist in -lldap""... $ac_c" 1>&6
12314 echo "configure:12315: checking for ldap_domain2hostlist in -lldap" >&5
12315 ac_lib_var=`echo ldap'_'ldap_domain2hostlist | sed 'y%./+-%__p_%'`
12316 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12317 echo $ac_n "(cached) $ac_c" 1>&6
12319 ac_save_LIBS="$LIBS"
12320 LIBS="-lldap $LIBS"
12321 cat > conftest.$ac_ext <<EOF
12322 #line 12323 "configure"
12323 #include "confdefs.h"
12324 /* Override any gcc2 internal prototype to avoid an error. */
12325 /* We use char because int might match the return type of a gcc2
12326 builtin and then its argument prototype would still apply. */
12327 char ldap_domain2hostlist();
12330 ldap_domain2hostlist()
12333 if { (eval echo configure:12334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12335 eval "ac_cv_lib_$ac_lib_var=yes"
12337 echo "configure: failed program was:" >&5
12338 cat conftest.$ac_ext >&5
12340 eval "ac_cv_lib_$ac_lib_var=no"
12343 LIBS="$ac_save_LIBS"
12346 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12347 echo "$ac_t""yes" 1>&6
12348 LIBS="$LIBS -lldap";
12349 cat >> confdefs.h <<\EOF
12350 #define HAVE_LDAP 1
12354 echo "$ac_t""no" 1>&6
12359 #################################################
12360 # check for automount support
12361 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
12362 echo "configure:12363: checking whether to use AUTOMOUNT" >&5
12363 # Check whether --with-automount or --without-automount was given.
12364 if test "${with_automount+set}" = set; then
12365 withval="$with_automount"
12368 echo "$ac_t""yes" 1>&6
12369 cat >> confdefs.h <<\EOF
12370 #define WITH_AUTOMOUNT 1
12375 echo "$ac_t""no" 1>&6
12379 echo "$ac_t""no" 1>&6
12384 #################################################
12385 # check for smbmount support
12386 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
12387 echo "configure:12388: checking whether to use SMBMOUNT" >&5
12388 # Check whether --with-smbmount or --without-smbmount was given.
12389 if test "${with_smbmount+set}" = set; then
12390 withval="$with_smbmount"
12395 echo "$ac_t""yes" 1>&6
12396 cat >> confdefs.h <<\EOF
12397 #define WITH_SMBMOUNT 1
12400 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
12403 { echo "configure: error: not on a linux system!" 1>&2; exit 1; }
12408 echo "$ac_t""no" 1>&6
12413 echo "$ac_t""no" 1>&6
12420 #################################################
12421 # check for a PAM clear-text auth, accounts, password and session support
12422 with_pam_for_crypt=no
12423 echo $ac_n "checking whether to use PAM""... $ac_c" 1>&6
12424 echo "configure:12425: checking whether to use PAM" >&5
12425 # Check whether --with-pam or --without-pam was given.
12426 if test "${with_pam+set}" = set; then
12427 withval="$with_pam"
12430 echo "$ac_t""yes" 1>&6
12431 cat >> confdefs.h <<\EOF
12436 with_pam_for_crypt=yes
12439 echo "$ac_t""no" 1>&6
12443 echo "$ac_t""no" 1>&6
12448 # we can't build a pam module if we don't have pam.
12449 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
12450 echo "configure:12451: checking for pam_get_data in -lpam" >&5
12451 ac_lib_var=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
12452 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12453 echo $ac_n "(cached) $ac_c" 1>&6
12455 ac_save_LIBS="$LIBS"
12457 cat > conftest.$ac_ext <<EOF
12458 #line 12459 "configure"
12459 #include "confdefs.h"
12460 /* Override any gcc2 internal prototype to avoid an error. */
12461 /* We use char because int might match the return type of a gcc2
12462 builtin and then its argument prototype would still apply. */
12463 char pam_get_data();
12469 if { (eval echo configure:12470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12471 eval "ac_cv_lib_$ac_lib_var=yes"
12473 echo "configure: failed program was:" >&5
12474 cat conftest.$ac_ext >&5
12476 eval "ac_cv_lib_$ac_lib_var=no"
12479 LIBS="$ac_save_LIBS"
12482 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12483 echo "$ac_t""yes" 1>&6
12484 cat >> confdefs.h <<\EOF
12485 #define HAVE_LIBPAM 1
12489 echo "$ac_t""no" 1>&6
12493 #################################################
12494 # check for pam_smbpass support
12495 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
12496 echo "configure:12497: checking whether to use pam_smbpass" >&5
12497 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
12498 if test "${with_pam_smbpass+set}" = set; then
12499 withval="$with_pam_smbpass"
12502 echo "$ac_t""yes" 1>&6
12504 # Conditions under which pam_smbpass should not be built.
12506 if test x$PICFLAG = x; then
12507 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
12509 elif test x$ac_cv_lib_pam_pam_get_data = xno; then
12510 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
12513 PAM_MOD="bin/pam_smbpass.so"
12517 echo "$ac_t""no" 1>&6
12521 echo "$ac_t""no" 1>&6
12527 ###############################################
12528 # test for where we get crypt() from, but only
12530 if test $with_pam_for_crypt = no; then
12531 for ac_func in crypt
12533 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12534 echo "configure:12535: checking for $ac_func" >&5
12535 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12536 echo $ac_n "(cached) $ac_c" 1>&6
12538 cat > conftest.$ac_ext <<EOF
12539 #line 12540 "configure"
12540 #include "confdefs.h"
12541 /* System header to define __stub macros and hopefully few prototypes,
12542 which can conflict with char $ac_func(); below. */
12543 #include <assert.h>
12544 /* Override any gcc2 internal prototype to avoid an error. */
12545 /* We use char because int might match the return type of a gcc2
12546 builtin and then its argument prototype would still apply. */
12551 /* The GNU C library defines this for functions which it implements
12552 to always fail with ENOSYS. Some functions are actually named
12553 something starting with __ and the normal name is an alias. */
12554 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12562 if { (eval echo configure:12563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12564 eval "ac_cv_func_$ac_func=yes"
12566 echo "configure: failed program was:" >&5
12567 cat conftest.$ac_ext >&5
12569 eval "ac_cv_func_$ac_func=no"
12574 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12575 echo "$ac_t""yes" 1>&6
12576 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12577 cat >> confdefs.h <<EOF
12578 #define $ac_tr_func 1
12582 echo "$ac_t""no" 1>&6
12586 if test x"$ac_cv_func_crypt" = x"no"; then
12587 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
12588 echo "configure:12589: checking for crypt in -lcrypt" >&5
12589 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
12590 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12591 echo $ac_n "(cached) $ac_c" 1>&6
12593 ac_save_LIBS="$LIBS"
12594 LIBS="-lcrypt $LIBS"
12595 cat > conftest.$ac_ext <<EOF
12596 #line 12597 "configure"
12597 #include "confdefs.h"
12598 /* Override any gcc2 internal prototype to avoid an error. */
12599 /* We use char because int might match the return type of a gcc2
12600 builtin and then its argument prototype would still apply. */
12607 if { (eval echo configure:12608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12609 eval "ac_cv_lib_$ac_lib_var=yes"
12611 echo "configure: failed program was:" >&5
12612 cat conftest.$ac_ext >&5
12614 eval "ac_cv_lib_$ac_lib_var=no"
12617 LIBS="$ac_save_LIBS"
12620 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12621 echo "$ac_t""yes" 1>&6
12622 LIBS="$LIBS -lcrypt";
12623 cat >> confdefs.h <<\EOF
12624 #define HAVE_CRYPT 1
12628 echo "$ac_t""no" 1>&6
12635 ## moved after the check for -lcrypt in order to
12636 ## ensure that the necessary libraries are included
12637 ## check checking for truncated salt. Wrapped by the
12638 ## $with_pam_for_crypt variable as above --jerry
12640 if test $with_pam_for_crypt = no; then
12641 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
12642 echo "configure:12643: checking for a crypt that needs truncated salt" >&5
12643 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
12644 echo $ac_n "(cached) $ac_c" 1>&6
12647 if test "$cross_compiling" = yes; then
12648 samba_cv_HAVE_TRUNCATED_SALT=cross
12650 cat > conftest.$ac_ext <<EOF
12651 #line 12652 "configure"
12652 #include "confdefs.h"
12653 #include "${srcdir-.}/tests/crypttest.c"
12655 if { (eval echo configure:12656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12657 samba_cv_HAVE_TRUNCATED_SALT=no
12659 echo "configure: failed program was:" >&5
12660 cat conftest.$ac_ext >&5
12662 samba_cv_HAVE_TRUNCATED_SALT=yes
12669 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
12670 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
12671 cat >> confdefs.h <<\EOF
12672 #define HAVE_TRUNCATED_SALT 1
12680 ########################################################################################
12682 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
12684 ########################################################################################
12686 #################################################
12687 # check for a TDB password database
12688 echo $ac_n "checking whether to use TDB SAM database""... $ac_c" 1>&6
12689 echo "configure:12690: checking whether to use TDB SAM database" >&5
12690 # Check whether --with-tdbsam or --without-tdbsam was given.
12691 if test "${with_tdbsam+set}" = set; then
12692 withval="$with_tdbsam"
12695 echo "$ac_t""yes" 1>&6
12696 cat >> confdefs.h <<\EOF
12697 #define WITH_TDB_SAM 1
12702 echo "$ac_t""no" 1>&6
12706 echo "$ac_t""no" 1>&6
12711 #################################################
12712 # check for a LDAP password database
12713 echo $ac_n "checking whether to use LDAP SAM database""... $ac_c" 1>&6
12714 echo "configure:12715: checking whether to use LDAP SAM database" >&5
12715 # Check whether --with-ldapsam or --without-ldapsam was given.
12716 if test "${with_ldapsam+set}" = set; then
12717 withval="$with_ldapsam"
12720 echo "$ac_t""yes" 1>&6
12721 cat >> confdefs.h <<\EOF
12722 #define WITH_LDAP_SAM 1
12725 LIBS="-lldap -llber $LIBS"
12728 echo "$ac_t""no" 1>&6
12732 echo "$ac_t""no" 1>&6
12737 #################################################
12738 # check for a NISPLUS password database
12739 echo $ac_n "checking whether to use NISPLUS SAM database""... $ac_c" 1>&6
12740 echo "configure:12741: checking whether to use NISPLUS SAM database" >&5
12741 # Check whether --with-nisplussam or --without-nisplussam was given.
12742 if test "${with_nisplussam+set}" = set; then
12743 withval="$with_nisplussam"
12746 echo "$ac_t""yes" 1>&6
12747 cat >> confdefs.h <<\EOF
12748 #define WITH_NISPLUS_SAM 1
12753 echo "$ac_t""no" 1>&6
12757 echo "$ac_t""no" 1>&6
12762 ########################################################################################
12764 ## END OF TESTS FOR SAM BACKENDS.
12766 ########################################################################################
12768 #################################################
12769 # check for a NISPLUS_HOME support
12770 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
12771 echo "configure:12772: checking whether to use NISPLUS_HOME" >&5
12772 # Check whether --with-nisplus-home or --without-nisplus-home was given.
12773 if test "${with_nisplus_home+set}" = set; then
12774 withval="$with_nisplus_home"
12777 echo "$ac_t""yes" 1>&6
12778 cat >> confdefs.h <<\EOF
12779 #define WITH_NISPLUS_HOME 1
12784 echo "$ac_t""no" 1>&6
12788 echo "$ac_t""no" 1>&6
12793 #################################################
12794 # check for the secure socket layer
12795 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
12796 echo "configure:12797: checking whether to use SSL" >&5
12797 # Check whether --with-ssl or --without-ssl was given.
12798 if test "${with_ssl+set}" = set; then
12799 withval="$with_ssl"
12802 echo "$ac_t""yes" 1>&6
12803 cat >> confdefs.h <<\EOF
12807 withval="/usr/local/ssl" # default
12809 if test "${with_sslinc+set}" = set; then
12811 withval="$with_sslinc"
12814 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
12815 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
12818 CFLAGS="-I${withval} $CFLAGS"
12824 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
12828 if test "${with_ssllib+set}" = set; then
12830 withval="$with_ssllib"
12833 echo "configure: warning: --with-ssllib called without argument - will use default" 1>&w
12834 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
12837 LDFLAGS="-L${withval}/lib $LDFLAGS"
12843 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
12847 LIBS="-lssl -lcrypto $LIBS"
12849 # if test ! -d ${withval}; then
12850 # echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
12854 CFLAGS="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
12858 echo "$ac_t""no" 1>&6
12862 echo "$ac_t""no" 1>&6
12867 #################################################
12868 # check for syslog logging
12869 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
12870 echo "configure:12871: checking whether to use syslog logging" >&5
12871 # Check whether --with-syslog or --without-syslog was given.
12872 if test "${with_syslog+set}" = set; then
12873 withval="$with_syslog"
12876 echo "$ac_t""yes" 1>&6
12877 cat >> confdefs.h <<\EOF
12878 #define WITH_SYSLOG 1
12883 echo "$ac_t""no" 1>&6
12887 echo "$ac_t""no" 1>&6
12892 #################################################
12893 # check for a shared memory profiling support
12894 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
12895 echo "configure:12896: checking whether to use profiling" >&5
12896 # Check whether --with-profiling-data or --without-profiling-data was given.
12897 if test "${with_profiling_data+set}" = set; then
12898 withval="$with_profiling_data"
12901 echo "$ac_t""yes" 1>&6
12902 cat >> confdefs.h <<\EOF
12903 #define WITH_PROFILE 1
12908 echo "$ac_t""no" 1>&6
12912 echo "$ac_t""no" 1>&6
12918 #################################################
12919 # check for experimental disk-quotas support
12920 QUOTAOBJS=smbd/noquotas.o
12922 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
12923 echo "configure:12924: checking whether to support disk-quotas" >&5
12924 # Check whether --with-quotas or --without-quotas was given.
12925 if test "${with_quotas+set}" = set; then
12926 withval="$with_quotas"
12929 echo "$ac_t""yes" 1>&6
12932 # Check for kernel 2.4.x quota braindamage...
12933 echo $ac_n "checking for linux 2.4.x quota braindamage..""... $ac_c" 1>&6
12934 echo "configure:12935: checking for linux 2.4.x quota braindamage.." >&5
12935 if eval "test \"`echo '$''{'samba_cv_linux_2_4_quota_braindamage'+set}'`\" = set"; then
12936 echo $ac_n "(cached) $ac_c" 1>&6
12939 cat > conftest.$ac_ext <<EOF
12940 #line 12941 "configure"
12941 #include "confdefs.h"
12943 #include <sys/types.h>
12944 #include <asm/types.h>
12945 #include <linux/quota.h>
12946 #include <mntent.h>
12947 #include <linux/unistd.h>
12949 struct mem_dqblk D;
12952 if { (eval echo configure:12953: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12954 samba_cv_linux_2_4_quota_braindamage=yes
12956 echo "configure: failed program was:" >&5
12957 cat conftest.$ac_ext >&5
12959 samba_cv_linux_2_4_quota_braindamage=no
12964 echo "$ac_t""$samba_cv_linux_2_4_quota_braindamage" 1>&6
12965 if test x"$samba_cv_linux_2_4_quota_braindamage" = x"yes"; then
12966 cat >> confdefs.h <<\EOF
12967 #define LINUX_QUOTAS_2 1
12971 cat >> confdefs.h <<\EOF
12972 #define LINUX_QUOTAS_1 1
12980 QUOTAOBJS=smbd/quotas.o
12981 cat >> confdefs.h <<\EOF
12982 #define WITH_QUOTAS 1
12987 echo "$ac_t""no" 1>&6
12991 echo "$ac_t""no" 1>&6
12997 #################################################
12998 # check for experimental utmp accounting
13000 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
13001 echo "configure:13002: checking whether to support utmp accounting" >&5
13002 # Check whether --with-utmp or --without-utmp was given.
13003 if test "${with_utmp+set}" = set; then
13004 withval="$with_utmp"
13007 echo "$ac_t""yes" 1>&6
13008 cat >> confdefs.h <<\EOF
13009 #define WITH_UTMP 1
13014 echo "$ac_t""no" 1>&6
13018 echo "$ac_t""no" 1>&6
13023 #################################################
13024 # set private directory location
13025 # Check whether --with-privatedir or --without-privatedir was given.
13026 if test "${with_privatedir+set}" = set; then
13027 withval="$with_privatedir"
13031 # Just in case anybody calls it without argument
13033 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
13034 privatedir='${prefix}/private'
13037 privatedir="$withval"
13042 privatedir='${prefix}/private'
13048 #################################################
13049 # set lock directory location
13050 # Check whether --with-lockdir or --without-lockdir was given.
13051 if test "${with_lockdir+set}" = set; then
13052 withval="$with_lockdir"
13056 # Just in case anybody calls it without argument
13058 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
13059 lockdir='$(VARDIR)/locks'
13067 lockdir='$(VARDIR)/locks'
13073 #################################################
13074 # set SWAT directory location
13075 # Check whether --with-swatdir or --without-swatdir was given.
13076 if test "${with_swatdir+set}" = set; then
13077 withval="$with_swatdir"
13081 # Just in case anybody does it
13083 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
13084 swatdir='${prefix}/swat'
13092 swatdir='${prefix}/swat'
13098 #################################################
13099 # choose native language(s) of man pages
13100 echo $ac_n "checking chosen man pages' language(s)""... $ac_c" 1>&6
13101 echo "configure:13102: checking chosen man pages' language(s)" >&5
13102 # Check whether --with-manpages-langs or --without-manpages-langs was given.
13103 if test "${with_manpages_langs+set}" = set; then
13104 withval="$with_manpages_langs"
13107 echo "configure: warning: --with-manpages-langs called without argument - will use default" 1>&2
13111 manlangs="$withval"
13115 echo "$ac_t""$manlangs" 1>&6
13116 manlangs=`echo $manlangs | sed "s/,/ /"` # replacing commas with spaces to produce a list
13120 echo "$ac_t""$manlangs" 1>&6
13126 #################################################
13127 # these tests are taken from the GNU fileutils package
13128 echo "checking how to get filesystem space usage" 1>&6
13129 echo "configure:13130: checking how to get filesystem space usage" >&5
13132 # Test for statvfs64.
13133 if test $space = no; then
13135 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
13136 echo "configure:13137: checking statvfs64 function (SVR4)" >&5
13137 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
13138 echo $ac_n "(cached) $ac_c" 1>&6
13140 if test "$cross_compiling" = yes; then
13141 fu_cv_sys_stat_statvfs64=cross
13143 cat > conftest.$ac_ext <<EOF
13144 #line 13145 "configure"
13145 #include "confdefs.h"
13147 #if defined(HAVE_UNISTD_H)
13148 #include <unistd.h>
13150 #include <sys/types.h>
13151 #include <sys/statvfs.h>
13154 struct statvfs64 fsd;
13155 exit (statvfs64 (".", &fsd));
13158 if { (eval echo configure:13159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13160 fu_cv_sys_stat_statvfs64=yes
13162 echo "configure: failed program was:" >&5
13163 cat conftest.$ac_ext >&5
13165 fu_cv_sys_stat_statvfs64=no
13172 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
13173 if test $fu_cv_sys_stat_statvfs64 = yes; then
13175 cat >> confdefs.h <<\EOF
13176 #define STAT_STATVFS64 1
13182 # Perform only the link test since it seems there are no variants of the
13183 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
13184 # because that got a false positive on SCO OSR5. Adding the declaration
13185 # of a `struct statvfs' causes this test to fail (as it should) on such
13186 # systems. That system is reported to work fine with STAT_STATFS4 which
13187 # is what it gets when this test fails.
13188 if test $space = no; then
13190 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
13191 echo "configure:13192: checking statvfs function (SVR4)" >&5
13192 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
13193 echo $ac_n "(cached) $ac_c" 1>&6
13195 cat > conftest.$ac_ext <<EOF
13196 #line 13197 "configure"
13197 #include "confdefs.h"
13198 #include <sys/types.h>
13199 #include <sys/statvfs.h>
13201 struct statvfs fsd; statvfs (0, &fsd);
13204 if { (eval echo configure:13205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13206 fu_cv_sys_stat_statvfs=yes
13208 echo "configure: failed program was:" >&5
13209 cat conftest.$ac_ext >&5
13211 fu_cv_sys_stat_statvfs=no
13216 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
13217 if test $fu_cv_sys_stat_statvfs = yes; then
13219 cat >> confdefs.h <<\EOF
13220 #define STAT_STATVFS 1
13226 if test $space = no; then
13227 # DEC Alpha running OSF/1
13228 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
13229 echo "configure:13230: checking for 3-argument statfs function (DEC OSF/1)" >&5
13230 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
13231 echo $ac_n "(cached) $ac_c" 1>&6
13233 if test "$cross_compiling" = yes; then
13234 fu_cv_sys_stat_statfs3_osf1=no
13236 cat > conftest.$ac_ext <<EOF
13237 #line 13238 "configure"
13238 #include "confdefs.h"
13240 #include <sys/param.h>
13241 #include <sys/types.h>
13242 #include <sys/mount.h>
13247 exit (statfs (".", &fsd, sizeof (struct statfs)));
13250 if { (eval echo configure:13251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13252 fu_cv_sys_stat_statfs3_osf1=yes
13254 echo "configure: failed program was:" >&5
13255 cat conftest.$ac_ext >&5
13257 fu_cv_sys_stat_statfs3_osf1=no
13264 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
13265 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
13267 cat >> confdefs.h <<\EOF
13268 #define STAT_STATFS3_OSF1 1
13274 if test $space = no; then
13276 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
13277 echo "configure:13278: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
13278 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
13279 echo $ac_n "(cached) $ac_c" 1>&6
13281 if test "$cross_compiling" = yes; then
13282 fu_cv_sys_stat_statfs2_bsize=no
13284 cat > conftest.$ac_ext <<EOF
13285 #line 13286 "configure"
13286 #include "confdefs.h"
13288 #ifdef HAVE_SYS_PARAM_H
13289 #include <sys/param.h>
13291 #ifdef HAVE_SYS_MOUNT_H
13292 #include <sys/mount.h>
13294 #ifdef HAVE_SYS_VFS_H
13295 #include <sys/vfs.h>
13301 exit (statfs (".", &fsd));
13304 if { (eval echo configure:13305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13306 fu_cv_sys_stat_statfs2_bsize=yes
13308 echo "configure: failed program was:" >&5
13309 cat conftest.$ac_ext >&5
13311 fu_cv_sys_stat_statfs2_bsize=no
13318 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
13319 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
13321 cat >> confdefs.h <<\EOF
13322 #define STAT_STATFS2_BSIZE 1
13328 if test $space = no; then
13330 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
13331 echo "configure:13332: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
13332 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
13333 echo $ac_n "(cached) $ac_c" 1>&6
13335 if test "$cross_compiling" = yes; then
13336 fu_cv_sys_stat_statfs4=no
13338 cat > conftest.$ac_ext <<EOF
13339 #line 13340 "configure"
13340 #include "confdefs.h"
13341 #include <sys/types.h>
13342 #include <sys/statfs.h>
13346 exit (statfs (".", &fsd, sizeof fsd, 0));
13349 if { (eval echo configure:13350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13351 fu_cv_sys_stat_statfs4=yes
13353 echo "configure: failed program was:" >&5
13354 cat conftest.$ac_ext >&5
13356 fu_cv_sys_stat_statfs4=no
13363 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
13364 if test $fu_cv_sys_stat_statfs4 = yes; then
13366 cat >> confdefs.h <<\EOF
13367 #define STAT_STATFS4 1
13373 if test $space = no; then
13374 # 4.4BSD and NetBSD
13375 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
13376 echo "configure:13377: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
13377 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
13378 echo $ac_n "(cached) $ac_c" 1>&6
13380 if test "$cross_compiling" = yes; then
13381 fu_cv_sys_stat_statfs2_fsize=no
13383 cat > conftest.$ac_ext <<EOF
13384 #line 13385 "configure"
13385 #include "confdefs.h"
13386 #include <sys/types.h>
13387 #ifdef HAVE_SYS_PARAM_H
13388 #include <sys/param.h>
13390 #ifdef HAVE_SYS_MOUNT_H
13391 #include <sys/mount.h>
13397 exit (statfs (".", &fsd));
13400 if { (eval echo configure:13401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13402 fu_cv_sys_stat_statfs2_fsize=yes
13404 echo "configure: failed program was:" >&5
13405 cat conftest.$ac_ext >&5
13407 fu_cv_sys_stat_statfs2_fsize=no
13414 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
13415 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
13417 cat >> confdefs.h <<\EOF
13418 #define STAT_STATFS2_FSIZE 1
13424 if test $space = no; then
13426 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
13427 echo "configure:13428: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
13428 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
13429 echo $ac_n "(cached) $ac_c" 1>&6
13431 if test "$cross_compiling" = yes; then
13432 fu_cv_sys_stat_fs_data=no
13434 cat > conftest.$ac_ext <<EOF
13435 #line 13436 "configure"
13436 #include "confdefs.h"
13437 #include <sys/types.h>
13438 #ifdef HAVE_SYS_PARAM_H
13439 #include <sys/param.h>
13441 #ifdef HAVE_SYS_MOUNT_H
13442 #include <sys/mount.h>
13444 #ifdef HAVE_SYS_FS_TYPES_H
13445 #include <sys/fs_types.h>
13449 struct fs_data fsd;
13450 /* Ultrix's statfs returns 1 for success,
13451 0 for not mounted, -1 for failure. */
13452 exit (statfs (".", &fsd) != 1);
13455 if { (eval echo configure:13456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13457 fu_cv_sys_stat_fs_data=yes
13459 echo "configure: failed program was:" >&5
13460 cat conftest.$ac_ext >&5
13462 fu_cv_sys_stat_fs_data=no
13469 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
13470 if test $fu_cv_sys_stat_fs_data = yes; then
13472 cat >> confdefs.h <<\EOF
13473 #define STAT_STATFS2_FS_DATA 1
13480 # As a gating factor for large file support, in order to
13481 # use <4GB files we must have the following minimal support
13483 # long long, and a 64 bit off_t or off64_t.
13484 # If we don't have all of these then disable large
13487 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
13488 echo "configure:13489: checking if large file support can be enabled" >&5
13489 cat > conftest.$ac_ext <<EOF
13490 #line 13491 "configure"
13491 #include "confdefs.h"
13493 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
13494 #include <sys/types.h>
13503 if { (eval echo configure:13504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13505 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
13507 echo "configure: failed program was:" >&5
13508 cat conftest.$ac_ext >&5
13510 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
13513 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
13514 cat >> confdefs.h <<\EOF
13515 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
13519 echo "$ac_t""$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" 1>&6
13521 # Check whether --with-spinlocks or --without-spinlocks was given.
13522 if test "${with_spinlocks+set}" = set; then
13523 withval="$with_spinlocks"
13527 if test "x$with_spinlocks" = "xyes"; then
13528 cat >> confdefs.h <<\EOF
13529 #define USE_SPINLOCKS 1
13533 case "$host_cpu" in
13535 cat >> confdefs.h <<\EOF
13536 #define SPARC_SPINLOCKS 1
13541 i386|i486|i586|i686)
13542 cat >> confdefs.h <<\EOF
13543 #define INTEL_SPINLOCKS 1
13549 cat >> confdefs.h <<\EOF
13550 #define MIPS_SPINLOCKS 1
13556 cat >> confdefs.h <<\EOF
13557 #define POWERPC_SPINLOCKS 1
13564 #################################################
13565 # check for ACL support
13567 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
13568 echo "configure:13569: checking whether to support ACLs" >&5
13569 # Check whether --with-acl-support or --without-acl-support was given.
13570 if test "${with_acl_support+set}" = set; then
13571 withval="$with_acl_support"
13577 echo "$ac_t""Using UnixWare ACLs" 1>&6
13578 cat >> confdefs.h <<\EOF
13579 #define HAVE_UNIXWARE_ACLS 1
13584 echo "$ac_t""Using solaris ACLs" 1>&6
13585 cat >> confdefs.h <<\EOF
13586 #define HAVE_SOLARIS_ACLS 1
13591 echo "$ac_t""Using HPUX ACLs" 1>&6
13592 cat >> confdefs.h <<\EOF
13593 #define HAVE_HPUX_ACLS 1
13598 echo "$ac_t""Using IRIX ACLs" 1>&6
13599 cat >> confdefs.h <<\EOF
13600 #define HAVE_IRIX_ACLS 1
13605 echo "$ac_t""Using AIX ACLs" 1>&6
13606 cat >> confdefs.h <<\EOF
13607 #define HAVE_AIX_ACLS 1
13612 echo "$ac_t""Using Tru64 ACLs" 1>&6
13613 cat >> confdefs.h <<\EOF
13614 #define HAVE_TRU64_ACLS 1
13617 LIBS="$LIBS -lpacl"
13620 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
13621 echo "configure:13622: checking for acl_get_file in -lacl" >&5
13622 ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
13623 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13624 echo $ac_n "(cached) $ac_c" 1>&6
13626 ac_save_LIBS="$LIBS"
13628 cat > conftest.$ac_ext <<EOF
13629 #line 13630 "configure"
13630 #include "confdefs.h"
13631 /* Override any gcc2 internal prototype to avoid an error. */
13632 /* We use char because int might match the return type of a gcc2
13633 builtin and then its argument prototype would still apply. */
13634 char acl_get_file();
13640 if { (eval echo configure:13641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13642 eval "ac_cv_lib_$ac_lib_var=yes"
13644 echo "configure: failed program was:" >&5
13645 cat conftest.$ac_ext >&5
13647 eval "ac_cv_lib_$ac_lib_var=no"
13650 LIBS="$ac_save_LIBS"
13653 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13654 echo "$ac_t""yes" 1>&6
13655 ac_tr_lib=HAVE_LIB`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13656 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13657 cat >> confdefs.h <<EOF
13658 #define $ac_tr_lib 1
13664 echo "$ac_t""no" 1>&6
13667 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
13668 echo "configure:13669: checking for ACL support" >&5
13669 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
13670 echo $ac_n "(cached) $ac_c" 1>&6
13673 cat > conftest.$ac_ext <<EOF
13674 #line 13675 "configure"
13675 #include "confdefs.h"
13676 #include <sys/types.h>
13677 #include <sys/acl.h>
13679 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
13682 if { (eval echo configure:13683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13684 samba_cv_HAVE_POSIX_ACLS=yes
13686 echo "configure: failed program was:" >&5
13687 cat conftest.$ac_ext >&5
13689 samba_cv_HAVE_POSIX_ACLS=no
13694 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
13695 if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
13696 echo "$ac_t""Using posix ACLs" 1>&6
13697 cat >> confdefs.h <<\EOF
13698 #define HAVE_POSIX_ACLS 1
13701 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
13702 echo "configure:13703: checking for acl_get_perm_np" >&5
13703 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
13704 echo $ac_n "(cached) $ac_c" 1>&6
13707 cat > conftest.$ac_ext <<EOF
13708 #line 13709 "configure"
13709 #include "confdefs.h"
13710 #include <sys/types.h>
13711 #include <sys/acl.h>
13713 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
13716 if { (eval echo configure:13717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13718 samba_cv_HAVE_ACL_GET_PERM_NP=yes
13720 echo "configure: failed program was:" >&5
13721 cat conftest.$ac_ext >&5
13723 samba_cv_HAVE_ACL_GET_PERM_NP=no
13728 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
13729 if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
13730 cat >> confdefs.h <<\EOF
13731 #define HAVE_ACL_GET_PERM_NP 1
13740 echo "$ac_t""no" 1>&6
13741 cat >> confdefs.h <<\EOF
13742 #define HAVE_NO_ACLS 1
13748 cat >> confdefs.h <<\EOF
13749 #define HAVE_NO_ACLS 1
13752 echo "$ac_t""no" 1>&6
13757 #################################################
13758 # Check whether winbind is supported on this platform. If so we need to
13759 # build and install client programs (WINBIND_TARGETS), sbin programs
13760 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
13762 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
13763 echo "configure:13764: checking whether to build winbind" >&5
13765 # Initially, the value of $host_os decides whether winbind is supported
13773 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
13774 WINBIND_NSS_EXTRA_LIBS="-lsocket"
13778 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
13782 winbind_no_reason=", unsupported on $host_os"
13786 # Check the setting of --with-winbindd
13788 # Check whether --with-winbind or --without-winbind was given.
13789 if test "${with_winbind+set}" = set; then
13790 withval="$with_winbind"
13804 # We need unix domain sockets for winbind
13806 if test x"$HAVE_WINBIND" = x"yes"; then
13807 if test x"$samba_cv_unixsocket" = x"no"; then
13808 winbind_no_reason=", no unix domain socket support on $host_os"
13813 # Display test results
13816 WINBIND_STARGETS=""
13817 WINBIND_LTARGETS=""
13818 WINBIND_PAM_PROGS=""
13820 if test x"$HAVE_WINBIND" = x"yes"; then
13821 echo "$ac_t""yes" 1>&6
13823 WINBIND_TARGETS="bin/wbinfo"
13824 WINBIND_STARGETS="bin/winbindd"
13825 if test x"$BLDSHARED" = x"true"; then
13826 WINBIND_LTARGETS="nsswitch/libnss_winbind.so"
13827 if test x"$with_pam" = x"yes"; then
13828 WINBIND_PAM_TARGETS="nsswitch/pam_winbind.so"
13832 echo "$ac_t""no$winbind_no_reason" 1>&6
13835 # Substitution time!
13844 # Solaris has some extra fields in struct passwd that need to be
13845 # initialised otherwise nscd crashes. Unfortunately autoconf < 2.50
13846 # doesn't have the AC_CHECK_MEMBER macro which would be handy for checking
13849 #AC_CHECK_MEMBER(struct passwd.pw_comment,
13850 # AC_DEFINE(HAVE_PASSWD_PW_COMMENT, 1, [Defined if struct passwd has pw_comment field]),
13851 # [#include <pwd.h>])
13853 echo $ac_n "checking whether struct passwd has pw_comment""... $ac_c" 1>&6
13854 echo "configure:13855: checking whether struct passwd has pw_comment" >&5
13855 if eval "test \"`echo '$''{'samba_cv_passwd_pw_comment'+set}'`\" = set"; then
13856 echo $ac_n "(cached) $ac_c" 1>&6
13859 cat > conftest.$ac_ext <<EOF
13860 #line 13861 "configure"
13861 #include "confdefs.h"
13864 struct passwd p; p.pw_comment;
13867 if { (eval echo configure:13868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13869 samba_cv_passwd_pw_comment=yes
13871 echo "configure: failed program was:" >&5
13872 cat conftest.$ac_ext >&5
13874 samba_cv_passwd_pw_comment=no
13879 echo "$ac_t""$samba_cv_passwd_pw_comment" 1>&6
13880 if test x"$samba_cv_passwd_pw_comment" = x"yes"; then
13881 cat >> confdefs.h <<\EOF
13882 #define HAVE_PASSWD_PW_COMMENT 1
13887 #AC_CHECK_MEMBER(struct passwd.pw_age,
13888 # AC_DEFINE(HAVE_PASSWD_PW_AGE, 1, [Defined if struct passwd has pw_age field]),
13889 # [#include <pwd.h>])
13891 echo $ac_n "checking whether struct passwd has pw_age""... $ac_c" 1>&6
13892 echo "configure:13893: checking whether struct passwd has pw_age" >&5
13893 if eval "test \"`echo '$''{'samba_cv_passwd_pw_age'+set}'`\" = set"; then
13894 echo $ac_n "(cached) $ac_c" 1>&6
13897 cat > conftest.$ac_ext <<EOF
13898 #line 13899 "configure"
13899 #include "confdefs.h"
13902 struct passwd p; p.pw_age;
13905 if { (eval echo configure:13906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13907 samba_cv_passwd_pw_age=yes
13909 echo "configure: failed program was:" >&5
13910 cat conftest.$ac_ext >&5
13912 samba_cv_passwd_pw_age=no
13917 echo "$ac_t""$samba_cv_passwd_pw_age" 1>&6
13918 if test x"$samba_cv_passwd_pw_age" = x"yes"; then
13919 cat >> confdefs.h <<\EOF
13920 #define HAVE_PASSWD_PW_AGE 1
13925 #################################################
13926 # Check to see if we should use the included popt
13928 # Check whether --with-included-popt or --without-included-popt was given.
13929 if test "${with_included_popt+set}" = set; then
13930 withval="$with_included_popt"
13942 if test x"$INCLUDED_POPT" != x"yes"; then
13943 echo $ac_n "checking for poptGetContext in -lpopt""... $ac_c" 1>&6
13944 echo "configure:13945: checking for poptGetContext in -lpopt" >&5
13945 ac_lib_var=`echo popt'_'poptGetContext | sed 'y%./+-%__p_%'`
13946 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13947 echo $ac_n "(cached) $ac_c" 1>&6
13949 ac_save_LIBS="$LIBS"
13950 LIBS="-lpopt $LIBS"
13951 cat > conftest.$ac_ext <<EOF
13952 #line 13953 "configure"
13953 #include "confdefs.h"
13954 /* Override any gcc2 internal prototype to avoid an error. */
13955 /* We use char because int might match the return type of a gcc2
13956 builtin and then its argument prototype would still apply. */
13957 char poptGetContext();
13963 if { (eval echo configure:13964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13965 eval "ac_cv_lib_$ac_lib_var=yes"
13967 echo "configure: failed program was:" >&5
13968 cat conftest.$ac_ext >&5
13970 eval "ac_cv_lib_$ac_lib_var=no"
13973 LIBS="$ac_save_LIBS"
13976 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13977 echo "$ac_t""yes" 1>&6
13980 echo "$ac_t""no" 1>&6
13986 echo $ac_n "checking whether to use included popt""... $ac_c" 1>&6
13987 echo "configure:13988: checking whether to use included popt" >&5
13988 if test x"$INCLUDED_POPT" = x"yes"; then
13989 echo "$ac_t""$srcdir/popt" 1>&6
13990 BUILD_POPT='$(POPT_OBJS)'
13991 FLAGS1="-I$srcdir/popt"
13993 echo "$ac_t""no" 1>&6
13994 LIBS="$LIBS -lpopt"
13999 #################################################
14000 # do extra things if we are running insure
14002 if test "${ac_cv_prog_CC}" = "insure"; then
14003 CPPFLAGS="$CPPFLAGS -D__INSURE__"
14006 #################################################
14007 # final configure stuff
14009 echo $ac_n "checking configure summary""... $ac_c" 1>&6
14010 echo "configure:14011: checking configure summary" >&5
14011 if test "$cross_compiling" = yes; then
14012 echo "configure: warning: cannot run when cross-compiling" 1>&2
14014 cat > conftest.$ac_ext <<EOF
14015 #line 14016 "configure"
14016 #include "confdefs.h"
14017 #include "${srcdir-.}/tests/summary.c"
14019 if { (eval echo configure:14020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14021 echo "$ac_t""yes" 1>&6
14023 echo "configure: failed program was:" >&5
14024 cat conftest.$ac_ext >&5
14026 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }; exit 1;
14036 cat > confcache <<\EOF
14037 # This file is a shell script that caches the results of configure
14038 # tests run on this system so they can be shared between configure
14039 # scripts and configure runs. It is not useful on other systems.
14040 # If it contains results you don't want to keep, you may remove or edit it.
14042 # By default, configure uses ./config.cache as the cache file,
14043 # creating it if it does not exist already. You can give configure
14044 # the --cache-file=FILE option to use a different cache file; that is
14045 # what configure does when it calls configure scripts in
14046 # subdirectories, so they share the cache.
14047 # Giving --cache-file=/dev/null disables caching, for debugging configure.
14048 # config.status only pays attention to the cache file if you give it the
14049 # --recheck option to rerun configure.
14052 # The following way of writing the cache mishandles newlines in values,
14053 # but we know of no workaround that is simple, portable, and efficient.
14054 # So, don't put newlines in cache variables' values.
14055 # Ultrix sh set writes to stderr and can't be redirected directly,
14056 # and sets the high bit in the cache file unless we assign to the vars.
14058 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14060 # `set' does not quote correctly, so add quotes (double-quote substitution
14061 # turns \\\\ into \\, and sed turns \\ into \).
14063 -e "s/'/'\\\\''/g" \
14064 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
14067 # `set' quotes correctly as required by POSIX, so do not add quotes.
14068 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
14071 if cmp -s $cache_file confcache; then
14074 if test -w $cache_file; then
14075 echo "updating cache $cache_file"
14076 cat confcache > $cache_file
14078 echo "not updating unwritable cache $cache_file"
14083 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
14085 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14086 # Let make expand exec_prefix.
14087 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14089 # Any assignment to VPATH causes Sun make to only execute
14090 # the first set of double-colon rules, so remove it if not needed.
14091 # If there is a colon in the path, we need to keep it.
14092 if test "x$srcdir" = x.; then
14093 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
14096 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
14098 DEFS=-DHAVE_CONFIG_H
14100 # Without the "./", some shells look in PATH for config.status.
14101 : ${CONFIG_STATUS=./config.status}
14103 echo creating $CONFIG_STATUS
14104 rm -f $CONFIG_STATUS
14105 cat > $CONFIG_STATUS <<EOF
14107 # Generated automatically by configure.
14108 # Run this file to recreate the current configuration.
14109 # This directory was configured as follows,
14110 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14112 # $0 $ac_configure_args
14114 # Compiler output produced by configure, useful for debugging
14115 # configure, is in ./config.log if it exists.
14117 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
14120 case "\$ac_option" in
14121 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14122 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
14123 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
14124 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
14125 echo "$CONFIG_STATUS generated by autoconf version 2.13"
14127 -help | --help | --hel | --he | --h)
14128 echo "\$ac_cs_usage"; exit 0 ;;
14129 *) echo "\$ac_cs_usage"; exit 1 ;;
14133 ac_given_srcdir=$srcdir
14134 ac_given_INSTALL="$INSTALL"
14136 trap 'rm -fr `echo "include/stamp-h Makefile script/findsmb include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
14138 cat >> $CONFIG_STATUS <<EOF
14140 # Protect against being on the right side of a sed subst in config.status.
14141 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
14142 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
14146 s%@CFLAGS@%$CFLAGS%g
14147 s%@CPPFLAGS@%$CPPFLAGS%g
14148 s%@CXXFLAGS@%$CXXFLAGS%g
14149 s%@FFLAGS@%$FFLAGS%g
14151 s%@LDFLAGS@%$LDFLAGS%g
14153 s%@exec_prefix@%$exec_prefix%g
14154 s%@prefix@%$prefix%g
14155 s%@program_transform_name@%$program_transform_name%g
14156 s%@bindir@%$bindir%g
14157 s%@sbindir@%$sbindir%g
14158 s%@libexecdir@%$libexecdir%g
14159 s%@datadir@%$datadir%g
14160 s%@sysconfdir@%$sysconfdir%g
14161 s%@sharedstatedir@%$sharedstatedir%g
14162 s%@localstatedir@%$localstatedir%g
14163 s%@libdir@%$libdir%g
14164 s%@includedir@%$includedir%g
14165 s%@oldincludedir@%$oldincludedir%g
14166 s%@infodir@%$infodir%g
14167 s%@mandir@%$mandir%g
14168 s%@codepagedir@%$codepagedir%g
14169 s%@configdir@%$configdir%g
14170 s%@lockdir@%$lockdir%g
14171 s%@piddir@%$piddir%g
14172 s%@logfilebase@%$logfilebase%g
14173 s%@privatedir@%$privatedir%g
14174 s%@swatdir@%$swatdir%g
14175 s%@RUNPROG@%$RUNPROG%g
14176 s%@MPROGS@%$MPROGS%g
14177 s%@LDSHFLAGS@%$LDSHFLAGS%g
14179 s%@HOST_OS@%$HOST_OS%g
14180 s%@PAM_MOD@%$PAM_MOD%g
14182 s%@WRAP32@%$WRAP32%g
14183 s%@PICFLAG@%$PICFLAG%g
14184 s%@PICSUFFIX@%$PICSUFFIX%g
14185 s%@POBAD_CC@%$POBAD_CC%g
14186 s%@SHLIBEXT@%$SHLIBEXT%g
14187 s%@LIBSMBCLIENT_SHARED@%$LIBSMBCLIENT_SHARED%g
14189 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
14190 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
14191 s%@INSTALL_DATA@%$INSTALL_DATA%g
14193 s%@BROKEN_CC@%$BROKEN_CC%g
14195 s%@host_alias@%$host_alias%g
14196 s%@host_cpu@%$host_cpu%g
14197 s%@host_vendor@%$host_vendor%g
14198 s%@host_os@%$host_os%g
14199 s%@target@%$target%g
14200 s%@target_alias@%$target_alias%g
14201 s%@target_cpu@%$target_cpu%g
14202 s%@target_vendor@%$target_vendor%g
14203 s%@target_os@%$target_os%g
14205 s%@build_alias@%$build_alias%g
14206 s%@build_cpu@%$build_cpu%g
14207 s%@build_vendor@%$build_vendor%g
14208 s%@build_os@%$build_os%g
14210 s%@LIBOBJS@%$LIBOBJS%g
14211 s%@TERMLIBS@%$TERMLIBS%g
14212 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
14214 s%@DYNEXP@%$DYNEXP%g
14215 s%@QUOTAOBJS@%$QUOTAOBJS%g
14216 s%@manlangs@%$manlangs%g
14217 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
14218 s%@WINBIND_STARGETS@%$WINBIND_STARGETS%g
14219 s%@WINBIND_LTARGETS@%$WINBIND_LTARGETS%g
14220 s%@WINBIND_PAM_TARGETS@%$WINBIND_PAM_TARGETS%g
14221 s%@WINBIND_NSS_EXTRA_OBJS@%$WINBIND_NSS_EXTRA_OBJS%g
14222 s%@WINBIND_NSS_EXTRA_LIBS@%$WINBIND_NSS_EXTRA_LIBS%g
14223 s%@BUILD_POPT@%$BUILD_POPT%g
14224 s%@FLAGS1@%$FLAGS1%g
14225 s%@builddir@%$builddir%g
14230 cat >> $CONFIG_STATUS <<\EOF
14232 # Split the substitutions into bite-sized pieces for seds with
14233 # small command number limits, like on Digital OSF/1 and HP-UX.
14234 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
14235 ac_file=1 # Number of current file.
14236 ac_beg=1 # First line for current file.
14237 ac_end=$ac_max_sed_cmds # Line after last line for current file.
14240 while $ac_more_lines; do
14241 if test $ac_beg -gt 1; then
14242 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
14244 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
14246 if test ! -s conftest.s$ac_file; then
14247 ac_more_lines=false
14248 rm -f conftest.s$ac_file
14250 if test -z "$ac_sed_cmds"; then
14251 ac_sed_cmds="sed -f conftest.s$ac_file"
14253 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
14255 ac_file=`expr $ac_file + 1`
14257 ac_end=`expr $ac_end + $ac_max_sed_cmds`
14260 if test -z "$ac_sed_cmds"; then
14265 cat >> $CONFIG_STATUS <<EOF
14267 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile script/findsmb"}
14269 cat >> $CONFIG_STATUS <<\EOF
14270 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
14271 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14273 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14274 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14275 *) ac_file_in="${ac_file}.in" ;;
14278 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
14280 # Remove last slash and all that follows it. Not all systems have dirname.
14281 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14282 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14283 # The file is in a subdirectory.
14284 test ! -d "$ac_dir" && mkdir "$ac_dir"
14285 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
14286 # A "../" for each directory in $ac_dir_suffix.
14287 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
14289 ac_dir_suffix= ac_dots=
14292 case "$ac_given_srcdir" in
14294 if test -z "$ac_dots"; then top_srcdir=.
14295 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
14296 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
14297 *) # Relative path.
14298 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
14299 top_srcdir="$ac_dots$ac_given_srcdir" ;;
14302 case "$ac_given_INSTALL" in
14303 [/$]*) INSTALL="$ac_given_INSTALL" ;;
14304 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
14307 echo creating "$ac_file"
14309 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
14311 *Makefile*) ac_comsub="1i\\
14312 # $configure_input" ;;
14316 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14318 s%@configure_input@%$configure_input%g
14319 s%@srcdir@%$srcdir%g
14320 s%@top_srcdir@%$top_srcdir%g
14321 s%@INSTALL@%$INSTALL%g
14322 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
14326 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14327 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14329 # ac_d sets the value in "#define NAME VALUE" lines.
14330 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14331 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
14334 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
14335 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14336 ac_uB='\([ ]\)%\1#\2define\3'
14339 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14340 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14341 ac_eB='$%\1#\2define\3'
14345 if test "${CONFIG_HEADERS+set}" != set; then
14347 cat >> $CONFIG_STATUS <<EOF
14348 CONFIG_HEADERS="include/config.h"
14350 cat >> $CONFIG_STATUS <<\EOF
14352 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
14353 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14355 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14356 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14357 *) ac_file_in="${ac_file}.in" ;;
14360 echo creating $ac_file
14362 rm -f conftest.frag conftest.in conftest.out
14363 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14364 cat $ac_file_inputs > conftest.in
14368 # Transform confdefs.h into a sed script conftest.vals that substitutes
14369 # the proper values into config.h.in to produce config.h. And first:
14370 # Protect against being on the right side of a sed subst in config.status.
14371 # Protect against being in an unquoted here document in config.status.
14372 rm -f conftest.vals
14373 cat > conftest.hdr <<\EOF
14376 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
14380 sed -n -f conftest.hdr confdefs.h > conftest.vals
14383 # This sed command replaces #undef with comments. This is necessary, for
14384 # example, in the case of _POSIX_SOURCE, which is predefined and required
14385 # on some systems where configure will not decide to define it.
14386 cat >> conftest.vals <<\EOF
14387 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
14390 # Break up conftest.vals because some shells have a limit on
14391 # the size of here documents, and old seds have small limits too.
14393 rm -f conftest.tail
14396 ac_lines=`grep -c . conftest.vals`
14397 # grep -c gives empty output for an empty file on some AIX systems.
14398 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
14399 # Write a limited-size here document to conftest.frag.
14400 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
14401 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
14403 sed -f conftest.frag conftest.in > conftest.out
14405 mv conftest.out conftest.in
14406 ' >> $CONFIG_STATUS
14407 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
14408 rm -f conftest.vals
14409 mv conftest.tail conftest.vals
14411 rm -f conftest.vals
14413 cat >> $CONFIG_STATUS <<\EOF
14414 rm -f conftest.frag conftest.h
14415 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
14416 cat conftest.in >> conftest.h
14418 if cmp -s $ac_file conftest.h 2>/dev/null; then
14419 echo "$ac_file is unchanged"
14422 # Remove last slash and all that follows it. Not all systems have dirname.
14423 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14424 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14425 # The file is in a subdirectory.
14426 test ! -d "$ac_dir" && mkdir "$ac_dir"
14429 mv conftest.h $ac_file
14434 cat >> $CONFIG_STATUS <<EOF
14437 cat >> $CONFIG_STATUS <<\EOF
14441 chmod +x $CONFIG_STATUS
14442 rm -fr confdefs* $ac_clean_files
14443 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
14446 #################################################
14447 # Print very concise instructions on building/use
14448 if test "x$enable_dmalloc" = xyes
14450 echo "$ac_t""Note: The dmalloc debug library will be included. To turn it on use" 1>&6
14451 echo "$ac_t"" \$ eval \`dmalloc samba\`." 1>&6