3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
14 ac_default_prefix
=/usr
/local
/samba
16 --with-fhs Use FHS-compliant paths (default=no)"
18 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
20 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
22 --with-piddir=DIR Where to put pid files ($ac_default_prefix/var/locks)"
24 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
26 --with-configdir=DIR Where to put configuration files (\$libdir)"
28 --with-logfilebase=DIR Where to put log files (\$(VARDIR))"
30 --enable-debug Turn on compiler debugging information (default=no)"
32 --enable-developer Turn on developer warnings and debugging (default=no)"
34 --enable-krb5developer Turn on developer warnings and debugging, except -Wstrict-prototypes (default=no)"
36 --enable-dmalloc Enable heap debugging [default=no]"
38 --enable-cups Turn on CUPS support (default=auto)"
40 --with-readline[=DIR] Look for readline include/libs in DIR (default=auto) "
42 --with-libiconv=BASEDIR Use libiconv in BASEDIR/lib and BASEDIR/include (default=auto) "
44 --with-smbwrapper Include SMB wrapper support (default=no) "
46 --with-afs Include AFS clear-text auth support (default=no) "
48 --with-dce-dfs Include DCE/DFS clear-text auth support (default=no)"
50 --with-ads Active Directory support (default yes)"
52 --with-krb5=base-dir Locate Kerberos 5 support (default=/usr)"
54 --with-ldap LDAP support (default yes)"
56 --with-mysql-prefix=PFX Prefix where MYSQL is installed (optional)"
58 --with-mysql-exec-prefix=PFX Exec prefix where MYSQL is installed (optional)"
60 --disable-mysqltest Do not try to compile and run a test MYSQL program"
62 --with-xml-prefix=PFX Prefix where libxml is installed (optional)"
64 --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)"
66 --disable-xmltest Do not try to compile and run a test LIBXML program"
68 --with-automount Include automount support (default=no)"
70 --with-smbmount Include smbmount (Linux only) support (default=no)"
72 --with-pam Include PAM support (default=no)"
74 --with-pam_smbpass Build a PAM module to allow other applications to use our smbpasswd file (default=no)"
76 --with-ldapsam Include LDAP SAM 2.2 compatible configuration (default=no)"
78 --with-tdbsam Include experimental TDB SAM support (default=no)"
80 --with-nisplussam Include NISPLUS SAM support (default=no)"
82 --with-nisplus-home Include NISPLUS_HOME support (default=no)"
84 --with-syslog Include experimental SYSLOG support (default=no)"
86 --with-profiling-data Include gathering source code profile information (default=no)"
88 --with-quotas Include experimental disk-quota support (default=no)"
90 --with-utmp Include experimental utmp accounting (default=no)"
92 --with-manpages-langs={en,ja,pl} Choose man pages' language(s). (en)"
94 --with-libsmbclient Build the libsmbclient shared library (default=yes)"
96 --with-spinlocks Use spin locks instead of fcntl locks (default=no) "
98 --with-acl-support Include ACL support (default=no)"
100 --with-sendfile-support Check for sendfile support (default=yes)"
102 --with-winbind Build winbind (default, if supported by OS)"
104 --with-included-popt use bundled popt library, not from system"
106 --with-python=PYTHONNAME build Python libraries"
108 # Initialize some variables set by options.
109 # The variables have the same names as the options, with
110 # dashes changed to underlines.
112 cache_file
=.
/config.cache
121 program_transform_name
=s
,x
,x
,
129 bindir
='${exec_prefix}/bin'
130 sbindir
='${exec_prefix}/sbin'
131 libexecdir
='${exec_prefix}/libexec'
132 datadir
='${prefix}/share'
133 sysconfdir
='${prefix}/etc'
134 sharedstatedir
='${prefix}/com'
135 localstatedir
='${prefix}/var'
136 libdir
='${exec_prefix}/lib'
137 includedir
='${prefix}/include'
138 oldincludedir
='/usr/include'
139 infodir
='${prefix}/info'
140 mandir
='${prefix}/man'
142 # Initialize some other variables.
145 SHELL
=${CONFIG_SHELL-/bin/sh}
146 # Maximum number of lines to put in a shell here document.
153 # If the previous option needs an argument, assign it.
154 if test -n "$ac_prev"; then
155 eval "$ac_prev=\$ac_option"
161 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
165 # Accept the important Cygnus configure options, so we can diagnose typos.
169 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
171 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
172 bindir
="$ac_optarg" ;;
174 -build |
--build |
--buil |
--bui |
--bu)
176 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
177 build
="$ac_optarg" ;;
179 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
180 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
181 ac_prev
=cache_file
;;
182 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
183 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
184 cache_file
="$ac_optarg" ;;
186 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
188 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
190 datadir
="$ac_optarg" ;;
192 -disable-* |
--disable-*)
193 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
194 # Reject names that are not valid shell variable names.
195 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
196 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
198 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
199 eval "enable_${ac_feature}=no" ;;
201 -enable-* |
--enable-*)
202 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
203 # Reject names that are not valid shell variable names.
204 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
205 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
207 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
212 eval "enable_${ac_feature}='$ac_optarg'" ;;
214 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
215 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
216 |
--exec |
--exe |
--ex)
217 ac_prev
=exec_prefix
;;
218 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
219 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
220 |
--exec=* |
--exe=* |
--ex=*)
221 exec_prefix
="$ac_optarg" ;;
223 -gas |
--gas |
--ga |
--g)
224 # Obsolete; use --with-gas.
227 -help |
--help |
--hel |
--he)
228 # Omit some internal or obsolete options to make the list less imposing.
229 # This message is too long to be a string in the A/UX 3.1 sh.
231 Usage: configure [options] [host]
232 Options: [defaults in brackets after descriptions]
234 --cache-file=FILE cache test results in FILE
235 --help print this message
236 --no-create do not create output files
237 --quiet, --silent do not print \`checking...' messages
238 --version print the version of autoconf that created configure
239 Directory and file names:
240 --prefix=PREFIX install architecture-independent files in PREFIX
242 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
244 --bindir=DIR user executables in DIR [EPREFIX/bin]
245 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
246 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
247 --datadir=DIR read-only architecture-independent data in DIR
249 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
250 --sharedstatedir=DIR modifiable architecture-independent data in DIR
252 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
253 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
254 --includedir=DIR C header files in DIR [PREFIX/include]
255 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
256 --infodir=DIR info documentation in DIR [PREFIX/info]
257 --mandir=DIR man documentation in DIR [PREFIX/man]
258 --srcdir=DIR find the sources in DIR [configure dir or ..]
259 --program-prefix=PREFIX prepend PREFIX to installed program names
260 --program-suffix=SUFFIX append SUFFIX to installed program names
261 --program-transform-name=PROGRAM
262 run sed PROGRAM on installed program names
266 --build=BUILD configure for building on BUILD [BUILD=HOST]
267 --host=HOST configure for HOST [guessed]
268 --target=TARGET configure for TARGET [TARGET=HOST]
269 Features and packages:
270 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
271 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
272 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
273 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
274 --x-includes=DIR X include files are in DIR
275 --x-libraries=DIR X library files are in DIR
277 if test -n "$ac_help"; then
278 echo "--enable and --with options recognized:$ac_help"
282 -host |
--host |
--hos |
--ho)
284 -host=* |
--host=* |
--hos=* |
--ho=*)
287 -includedir |
--includedir |
--includedi |
--included |
--include \
288 |
--includ |
--inclu |
--incl |
--inc)
289 ac_prev
=includedir
;;
290 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
291 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
292 includedir
="$ac_optarg" ;;
294 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
296 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
297 infodir
="$ac_optarg" ;;
299 -libdir |
--libdir |
--libdi |
--libd)
301 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
302 libdir
="$ac_optarg" ;;
304 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
305 |
--libexe |
--libex |
--libe)
306 ac_prev
=libexecdir
;;
307 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
308 |
--libexe=* |
--libex=* |
--libe=*)
309 libexecdir
="$ac_optarg" ;;
311 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
312 |
--localstate |
--localstat |
--localsta |
--localst \
313 |
--locals |
--local |
--loca |
--loc |
--lo)
314 ac_prev
=localstatedir
;;
315 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
316 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
317 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
318 localstatedir
="$ac_optarg" ;;
320 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
322 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
323 mandir
="$ac_optarg" ;;
326 # Obsolete; use --without-fp.
329 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
333 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
334 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
337 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
338 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
339 |
--oldin |
--oldi |
--old |
--ol |
--o)
340 ac_prev
=oldincludedir
;;
341 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
342 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
343 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
344 oldincludedir
="$ac_optarg" ;;
346 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
348 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
349 prefix
="$ac_optarg" ;;
351 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
352 |
--program-pre |
--program-pr |
--program-p)
353 ac_prev
=program_prefix
;;
354 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
355 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
356 program_prefix
="$ac_optarg" ;;
358 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
359 |
--program-suf |
--program-su |
--program-s)
360 ac_prev
=program_suffix
;;
361 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
362 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
363 program_suffix
="$ac_optarg" ;;
365 -program-transform-name |
--program-transform-name \
366 |
--program-transform-nam |
--program-transform-na \
367 |
--program-transform-n |
--program-transform- \
368 |
--program-transform |
--program-transfor \
369 |
--program-transfo |
--program-transf \
370 |
--program-trans |
--program-tran \
371 |
--progr-tra |
--program-tr |
--program-t)
372 ac_prev
=program_transform_name
;;
373 -program-transform-name=* |
--program-transform-name=* \
374 |
--program-transform-nam=* |
--program-transform-na=* \
375 |
--program-transform-n=* |
--program-transform-=* \
376 |
--program-transform=* |
--program-transfor=* \
377 |
--program-transfo=* |
--program-transf=* \
378 |
--program-trans=* |
--program-tran=* \
379 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
380 program_transform_name
="$ac_optarg" ;;
382 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
383 |
-silent |
--silent |
--silen |
--sile |
--sil)
386 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
388 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
390 sbindir
="$ac_optarg" ;;
392 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
393 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
394 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
396 ac_prev
=sharedstatedir
;;
397 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
398 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
399 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
401 sharedstatedir
="$ac_optarg" ;;
403 -site |
--site |
--sit)
405 -site=* |
--site=* |
--sit=*)
408 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
410 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
411 srcdir
="$ac_optarg" ;;
413 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
414 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
415 ac_prev
=sysconfdir
;;
416 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
417 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
418 sysconfdir
="$ac_optarg" ;;
420 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
422 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
423 target
="$ac_optarg" ;;
425 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
428 -version |
--version |
--versio |
--versi |
--vers)
429 echo "configure generated by autoconf version 2.13"
433 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
434 # Reject names that are not valid shell variable names.
435 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
436 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
438 ac_package
=`echo $ac_package| sed 's/-/_/g'`
443 eval "with_${ac_package}='$ac_optarg'" ;;
445 -without-* |
--without-*)
446 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
447 # Reject names that are not valid shell variable names.
448 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
449 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
451 ac_package
=`echo $ac_package| sed 's/-/_/g'`
452 eval "with_${ac_package}=no" ;;
455 # Obsolete; use --with-x.
458 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
459 |
--x-incl |
--x-inc |
--x-in |
--x-i)
460 ac_prev
=x_includes
;;
461 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
462 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
463 x_includes
="$ac_optarg" ;;
465 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
466 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
467 ac_prev
=x_libraries
;;
468 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
469 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
470 x_libraries
="$ac_optarg" ;;
472 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
476 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
477 echo "configure: warning: $ac_option: invalid host type" 1>&2
479 if test "x$nonopt" != xNONE
; then
480 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
488 if test -n "$ac_prev"; then
489 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
492 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
494 # File descriptor usage:
497 # 2 errors and warnings
498 # 3 some systems may open it to /dev/tty
499 # 4 used on the Kubota Titan
500 # 6 checking for... messages and results
501 # 5 compiler messages saved in config.log
502 if test "$silent" = yes; then
510 This file contains any messages produced by compilers while
511 running configure, to aid debugging if configure makes a mistake.
514 # Strip out --no-create and --no-recursion so they do not pile up.
515 # Also quote any args containing shell metacharacters.
520 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
521 |
--no-cr |
--no-c) ;;
522 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
523 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
524 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
525 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
526 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
531 # Only set these to C if already set. These must not be set unconditionally
532 # because not all systems understand e.g. LANG=C (notably SCO).
533 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
534 # Non-C LC_CTYPE values break the ctype check.
535 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
536 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
537 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
538 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
540 # confdefs.h avoids OS command line length limits that DEFS can exceed.
541 rm -rf conftest
* confdefs.h
542 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
545 # A filename unique to this package, relative to the directory that
546 # configure is in, which we can look for to find out if srcdir is correct.
547 ac_unique_file
=include
/includes.h
549 # Find the source files, if location was not specified.
550 if test -z "$srcdir"; then
551 ac_srcdir_defaulted
=yes
552 # Try the directory containing this script, then its parent.
554 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
555 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
557 if test ! -r $srcdir/$ac_unique_file; then
561 ac_srcdir_defaulted
=no
563 if test ! -r $srcdir/$ac_unique_file; then
564 if test "$ac_srcdir_defaulted" = yes; then
565 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
567 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
570 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
572 # Prefer explicitly selected file to automatically selected ones.
573 if test -z "$CONFIG_SITE"; then
574 if test "x$prefix" != xNONE
; then
575 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
577 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
580 for ac_site_file
in $CONFIG_SITE; do
581 if test -r "$ac_site_file"; then
582 echo "loading site script $ac_site_file"
587 if test -r "$cache_file"; then
588 echo "loading cache $cache_file"
591 echo "creating cache $cache_file"
596 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
597 ac_cpp
='$CPP $CPPFLAGS'
598 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
599 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
600 cross_compiling
=$ac_cv_prog_cc_cross
604 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
605 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
606 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
613 ac_n
= ac_c
='\c' ac_t
=
619 #################################################
620 # Directory handling stuff to support both the
621 # legacy SAMBA directories and FHS compliant
625 # Check whether --with-fhs or --without-fhs was given.
626 if test "${with_fhs+set}" = set; then
628 configdir
="${sysconfdir}/samba"
629 lockdir
="\${VARDIR}/cache/samba"
630 piddir
="\${VARDIR}/run/samba"
631 logfilebase
="\${VARDIR}/log/samba"
632 privatedir
="\${CONFIGDIR}/private"
633 libdir
="\${prefix}/lib/samba"
634 swatdir
="\${DATADIR}/samba/swat"
636 configdir
="\${LIBDIR}"
637 logfilebase
="\${VARDIR}"
638 lockdir
="\${VARDIR}/locks"
639 piddir
="\${VARDIR}/locks"
640 privatedir
="\${prefix}/private"
641 swatdir
="\${prefix}/swat"
645 #################################################
646 # set private directory location
647 # Check whether --with-privatedir or --without-privatedir was given.
648 if test "${with_privatedir+set}" = set; then
649 withval
="$with_privatedir"
653 # Just in case anybody calls it without argument
655 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
658 privatedir
="$withval"
664 #################################################
665 # set lock directory location
666 # Check whether --with-lockdir or --without-lockdir was given.
667 if test "${with_lockdir+set}" = set; then
668 withval
="$with_lockdir"
672 # Just in case anybody calls it without argument
674 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
683 #################################################
684 # set pid directory location
685 # Check whether --with-piddir or --without-piddir was given.
686 if test "${with_piddir+set}" = set; then
687 withval
="$with_piddir"
691 # Just in case anybody calls it without argument
693 echo "configure: warning: --with-piddir called without argument - will use default" 1>&2
702 #################################################
703 # set SWAT directory location
704 # Check whether --with-swatdir or --without-swatdir was given.
705 if test "${with_swatdir+set}" = set; then
706 withval
="$with_swatdir"
710 # Just in case anybody does it
712 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
721 #################################################
722 # set configuration directory location
723 # Check whether --with-configdir or --without-configdir was given.
724 if test "${with_configdir+set}" = set; then
725 withval
="$with_configdir"
729 # Just in case anybody does it
731 echo "configure: warning: --with-configdir called without argument - will use default" 1>&2
740 #################################################
741 # set log directory location
742 # Check whether --with-logfilebase or --without-logfilebase was given.
743 if test "${with_logfilebase+set}" = set; then
744 withval
="$with_logfilebase"
748 # Just in case anybody does it
750 echo "configure: warning: --with-logfilebase called without argument - will use default" 1>&2
753 logfilebase
="$withval"
787 # compile with optimization and without debugging by default
788 CFLAGS
="-O ${CFLAGS}"
790 # Check whether --enable-debug or --disable-debug was given.
791 if test "${enable_debug+set}" = set; then
792 enableval
="$enable_debug"
793 if eval "test x$enable_debug = xyes"; then
794 CFLAGS
="${CFLAGS} -g"
799 # Check whether --enable-developer or --disable-developer was given.
800 if test "${enable_developer+set}" = set; then
801 enableval
="$enable_developer"
802 if eval "test x$enable_developer = xyes"; then
803 CFLAGS
="${CFLAGS} -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
808 # Check whether --enable-krb5developer or --disable-krb5developer was given.
809 if test "${enable_krb5developer+set}" = set; then
810 enableval
="$enable_krb5developer"
811 if eval "test x$enable_krb5developer = xyes"; then
812 CFLAGS
="${CFLAGS} -g -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
817 # Check whether --enable-dmalloc or --disable-dmalloc was given.
818 if test "${enable_dmalloc+set}" = set; then
819 enableval
="$enable_dmalloc"
824 if test "x$enable_dmalloc" = xyes
826 cat >> confdefs.h
<<\EOF
827 #define ENABLE_DMALLOC 1
830 cat >> confdefs.h
<<\EOF
831 #define DMALLOC_FUNC_CHECK 1
834 LIBS
="$LIBS -ldmalloc"
837 # Extract the first word of "gcc", so it can be a program name with args.
838 set dummy gcc
; ac_word
=$2
839 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
840 echo "configure:841: checking for $ac_word" >&5
841 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
842 echo $ac_n "(cached) $ac_c" 1>&6
844 if test -n "$CC"; then
845 ac_cv_prog_CC
="$CC" # Let the user override the test.
847 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
849 for ac_dir
in $ac_dummy; do
850 test -z "$ac_dir" && ac_dir
=.
851 if test -f $ac_dir/$ac_word; then
860 if test -n "$CC"; then
861 echo "$ac_t""$CC" 1>&6
863 echo "$ac_t""no" 1>&6
866 if test -z "$CC"; then
867 # Extract the first word of "cc", so it can be a program name with args.
868 set dummy cc
; ac_word
=$2
869 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
870 echo "configure:871: checking for $ac_word" >&5
871 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
872 echo $ac_n "(cached) $ac_c" 1>&6
874 if test -n "$CC"; then
875 ac_cv_prog_CC
="$CC" # Let the user override the test.
877 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
880 for ac_dir
in $ac_dummy; do
881 test -z "$ac_dir" && ac_dir
=.
882 if test -f $ac_dir/$ac_word; then
883 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
892 if test $ac_prog_rejected = yes; then
893 # We found a bogon in the path, so make sure we never use it.
894 set dummy
$ac_cv_prog_CC
896 if test $# -gt 0; then
897 # We chose a different compiler from the bogus one.
898 # However, it has the same basename, so the bogon will be chosen
899 # first if we set CC to just the basename; use the full file name.
901 set dummy
"$ac_dir/$ac_word" "$@"
909 if test -n "$CC"; then
910 echo "$ac_t""$CC" 1>&6
912 echo "$ac_t""no" 1>&6
915 if test -z "$CC"; then
918 # Extract the first word of "cl", so it can be a program name with args.
919 set dummy cl
; ac_word
=$2
920 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
921 echo "configure:922: checking for $ac_word" >&5
922 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
923 echo $ac_n "(cached) $ac_c" 1>&6
925 if test -n "$CC"; then
926 ac_cv_prog_CC
="$CC" # Let the user override the test.
928 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
930 for ac_dir
in $ac_dummy; do
931 test -z "$ac_dir" && ac_dir
=.
932 if test -f $ac_dir/$ac_word; then
941 if test -n "$CC"; then
942 echo "$ac_t""$CC" 1>&6
944 echo "$ac_t""no" 1>&6
949 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
952 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
953 echo "configure:954: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
956 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
957 ac_cpp
='$CPP $CPPFLAGS'
958 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
959 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
960 cross_compiling
=$ac_cv_prog_cc_cross
962 cat > conftest.
$ac_ext << EOF
964 #line 965 "configure"
965 #include "confdefs.h"
969 if { (eval echo configure
:970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
970 ac_cv_prog_cc_works
=yes
971 # If we can't run a trivial program, we are probably using a cross compiler.
972 if (.
/conftest
; exit) 2>/dev
/null
; then
973 ac_cv_prog_cc_cross
=no
975 ac_cv_prog_cc_cross
=yes
978 echo "configure: failed program was:" >&5
979 cat conftest.
$ac_ext >&5
980 ac_cv_prog_cc_works
=no
984 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
985 ac_cpp
='$CPP $CPPFLAGS'
986 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
987 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
988 cross_compiling
=$ac_cv_prog_cc_cross
990 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
991 if test $ac_cv_prog_cc_works = no
; then
992 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
994 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
995 echo "configure:996: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
996 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
997 cross_compiling
=$ac_cv_prog_cc_cross
999 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1000 echo "configure:1001: checking whether we are using GNU C" >&5
1001 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1002 echo $ac_n "(cached) $ac_c" 1>&6
1004 cat > conftest.c
<<EOF
1009 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1010: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1016 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1018 if test $ac_cv_prog_gcc = yes; then
1024 ac_test_CFLAGS
="${CFLAGS+set}"
1025 ac_save_CFLAGS
="$CFLAGS"
1027 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1028 echo "configure:1029: checking whether ${CC-cc} accepts -g" >&5
1029 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1030 echo $ac_n "(cached) $ac_c" 1>&6
1032 echo 'void f(){}' > conftest.c
1033 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1042 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1043 if test "$ac_test_CFLAGS" = set; then
1044 CFLAGS
="$ac_save_CFLAGS"
1045 elif test $ac_cv_prog_cc_g = yes; then
1046 if test "$GCC" = yes; then
1052 if test "$GCC" = yes; then
1060 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1061 if test -f $ac_dir/install-sh
; then
1063 ac_install_sh
="$ac_aux_dir/install-sh -c"
1065 elif test -f $ac_dir/install.sh
; then
1067 ac_install_sh
="$ac_aux_dir/install.sh -c"
1071 if test -z "$ac_aux_dir"; then
1072 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1074 ac_config_guess
=$ac_aux_dir/config.guess
1075 ac_config_sub
=$ac_aux_dir/config.sub
1076 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1078 # Find a good install program. We prefer a C program (faster),
1079 # so one script is as good as another. But avoid the broken or
1080 # incompatible versions:
1081 # SysV /etc/install, /usr/sbin/install
1082 # SunOS /usr/etc/install
1083 # IRIX /sbin/install
1085 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1086 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1087 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1088 # ./install, which can be erroneously created by make from ./install.sh.
1089 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1090 echo "configure:1091: checking for a BSD compatible install" >&5
1091 if test -z "$INSTALL"; then
1092 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1093 echo $ac_n "(cached) $ac_c" 1>&6
1095 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1096 for ac_dir
in $PATH; do
1097 # Account for people who put trailing slashes in PATH elements.
1099 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1101 # OSF1 and SCO ODT 3.0 have their own names for install.
1102 # Don't use installbsd from OSF since it installs stuff as root
1104 for ac_prog
in ginstall scoinst
install; do
1105 if test -f $ac_dir/$ac_prog; then
1106 if test $ac_prog = install &&
1107 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1108 # AIX install. It has an incompatible calling convention.
1111 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1122 if test "${ac_cv_path_install+set}" = set; then
1123 INSTALL
="$ac_cv_path_install"
1125 # As a last resort, use the slow shell script. We don't cache a
1126 # path for INSTALL within a source directory, because that will
1127 # break other packages using the cache if that directory is
1128 # removed, or if the path is relative.
1129 INSTALL
="$ac_install_sh"
1132 echo "$ac_t""$INSTALL" 1>&6
1134 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1135 # It thinks the first close brace ends the variable substitution.
1136 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1138 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1140 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1142 for ac_prog
in gawk mawk nawk
awk
1144 # Extract the first word of "$ac_prog", so it can be a program name with args.
1145 set dummy
$ac_prog; ac_word
=$2
1146 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1147 echo "configure:1148: checking for $ac_word" >&5
1148 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1149 echo $ac_n "(cached) $ac_c" 1>&6
1151 if test -n "$AWK"; then
1152 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1154 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1156 for ac_dir
in $ac_dummy; do
1157 test -z "$ac_dir" && ac_dir
=.
1158 if test -f $ac_dir/$ac_word; then
1159 ac_cv_prog_AWK
="$ac_prog"
1166 AWK
="$ac_cv_prog_AWK"
1167 if test -n "$AWK"; then
1168 echo "$ac_t""$AWK" 1>&6
1170 echo "$ac_t""no" 1>&6
1173 test -n "$AWK" && break
1178 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1179 echo "configure:1180: checking if the linker ($LD) is GNU ld" >&5
1180 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1181 echo $ac_n "(cached) $ac_c" 1>&6
1183 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1184 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1185 ac_cv_prog_gnu_ld
=yes
1187 ac_cv_prog_gnu_ld
=no
1191 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1194 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1195 echo "configure:1196: checking for POSIXized ISC" >&5
1196 if test -d /etc
/conf
/kconfig.d
&&
1197 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
1199 echo "$ac_t""yes" 1>&6
1200 ISC
=yes # If later tests want to check for ISC.
1201 cat >> confdefs.h
<<\EOF
1202 #define _POSIX_SOURCE 1
1205 if test "$GCC" = yes; then
1211 echo "$ac_t""no" 1>&6
1216 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1217 echo "configure:1218: checking for Cygwin environment" >&5
1218 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1219 echo $ac_n "(cached) $ac_c" 1>&6
1221 cat > conftest.
$ac_ext <<EOF
1222 #line 1223 "configure"
1223 #include "confdefs.h"
1228 #define __CYGWIN__ __CYGWIN32__
1233 if { (eval echo configure
:1234: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1237 echo "configure: failed program was:" >&5
1238 cat conftest.
$ac_ext >&5
1246 echo "$ac_t""$ac_cv_cygwin" 1>&6
1248 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
1249 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1250 echo "configure:1251: checking for mingw32 environment" >&5
1251 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1252 echo $ac_n "(cached) $ac_c" 1>&6
1254 cat > conftest.
$ac_ext <<EOF
1255 #line 1256 "configure"
1256 #include "confdefs.h"
1262 if { (eval echo configure
:1263: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1266 echo "configure: failed program was:" >&5
1267 cat conftest.
$ac_ext >&5
1275 echo "$ac_t""$ac_cv_mingw32" 1>&6
1277 test "$ac_cv_mingw32" = yes && MINGW32
=yes
1280 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1281 echo "configure:1282: checking for executable suffix" >&5
1282 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1283 echo $ac_n "(cached) $ac_c" 1>&6
1285 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
1289 echo 'int main () { return 0; }' > conftest.
$ac_ext
1291 if { (eval echo configure
:1292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1292 for file in conftest.
*; do
1294 *.c |
*.o |
*.obj
) ;;
1295 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
1299 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1302 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
1307 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
1308 echo "$ac_t""${ac_cv_exeext}" 1>&6
1312 if test "x$CC" != xcc
; then
1313 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1314 echo "configure:1315: checking whether $CC and cc understand -c and -o together" >&5
1316 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1317 echo "configure:1318: checking whether cc understands -c and -o together" >&5
1319 set dummy
$CC; ac_cc
="`echo $2 |
1320 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1321 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1322 echo $ac_n "(cached) $ac_c" 1>&6
1324 echo 'foo(){}' > conftest.c
1325 # Make sure it works both with $CC and with simple cc.
1326 # We do the test twice because some compilers refuse to overwrite an
1327 # existing .o file with -o, though they will create one.
1328 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1329 if { (eval echo configure
:1330: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1330 test -f conftest.o
&& { (eval echo configure
:1331: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1332 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1333 if test "x$CC" != xcc
; then
1334 # Test first that cc exists at all.
1335 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:1336: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1336 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
1337 if { (eval echo configure
:1338: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1338 test -f conftest.o
&& { (eval echo configure
:1339: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1343 # cc exists but doesn't like -o.
1344 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1349 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1354 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1355 echo "$ac_t""yes" 1>&6
1357 echo "$ac_t""no" 1>&6
1358 cat >> confdefs.h
<<\EOF
1359 #define NO_MINUS_C_MINUS_O 1
1364 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1371 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1372 echo "configure:1373: checking that the C compiler understands volatile" >&5
1373 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1374 echo $ac_n "(cached) $ac_c" 1>&6
1377 cat > conftest.
$ac_ext <<EOF
1378 #line 1379 "configure"
1379 #include "confdefs.h"
1380 #include <sys/types.h>
1385 if { (eval echo configure
:1386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1387 samba_cv_volatile
=yes
1389 echo "configure: failed program was:" >&5
1390 cat conftest.
$ac_ext >&5
1392 samba_cv_volatile
=no
1397 echo "$ac_t""$samba_cv_volatile" 1>&6
1398 if test x
"$samba_cv_volatile" = x
"yes"; then
1399 cat >> confdefs.h
<<\EOF
1400 #define HAVE_VOLATILE 1
1407 # Do some error checking and defaulting for the host and target type.
1409 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1412 # 1. You are not allowed to specify --host, --target, and nonopt at the
1414 # 2. Host defaults to nonopt.
1415 # 3. If nonopt is not specified, then host defaults to the current host,
1416 # as determined by config.guess.
1417 # 4. Target and build default to nonopt.
1418 # 5. If nonopt is not specified, then target and build default to host.
1420 # The aliases save the names the user supplied, while $host etc.
1421 # will get canonicalized.
1422 case $host---$target---$nonopt in
1423 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1424 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1428 # Make sure we can run config.sub.
1429 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1430 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1433 echo $ac_n "checking host system type""... $ac_c" 1>&6
1434 echo "configure:1435: checking host system type" >&5
1437 case "$host_alias" in
1441 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1442 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1444 *) host_alias
=$nonopt ;;
1448 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1449 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1450 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1451 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1452 echo "$ac_t""$host" 1>&6
1454 echo $ac_n "checking target system type""... $ac_c" 1>&6
1455 echo "configure:1456: checking target system type" >&5
1457 target_alias
=$target
1458 case "$target_alias" in
1461 NONE
) target_alias
=$host_alias ;;
1462 *) target_alias
=$nonopt ;;
1466 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1467 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1468 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1469 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1470 echo "$ac_t""$target" 1>&6
1472 echo $ac_n "checking build system type""... $ac_c" 1>&6
1473 echo "configure:1474: checking build system type" >&5
1476 case "$build_alias" in
1479 NONE
) build_alias
=$host_alias ;;
1480 *) build_alias
=$nonopt ;;
1484 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1485 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1486 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1487 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1488 echo "$ac_t""$build" 1>&6
1490 test "$host_alias" != "$target_alias" &&
1491 test "$program_prefix$program_suffix$program_transform_name" = \
1493 program_prefix
=${target_alias}-
1497 *irix6
*) cat >> confdefs.h
<<\EOF
1498 #include <standards.h>
1506 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1507 echo "configure:1508: checking config.cache system type" >&5
1508 if { test x
"${ac_cv_host_system_type+set}" = x
"set" &&
1509 test x
"$ac_cv_host_system_type" != x
"$host"; } ||
1510 { test x
"${ac_cv_build_system_type+set}" = x
"set" &&
1511 test x
"$ac_cv_build_system_type" != x
"$build"; } ||
1512 { test x
"${ac_cv_target_system_type+set}" = x
"set" &&
1513 test x
"$ac_cv_target_system_type" != x
"$target"; }; then
1514 echo "$ac_t""different" 1>&6
1515 { echo "configure: error: "you must remove config.cache and restart configure
"" 1>&2; exit 1; }
1517 echo "$ac_t""same" 1>&6
1519 ac_cv_host_system_type
="$host"
1520 ac_cv_build_system_type
="$build"
1521 ac_cv_target_system_type
="$target"
1527 # Config CPPFLAG settings for strange OS's that must be set
1528 # before other tests.
1531 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1534 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1535 echo "configure:1536: checking whether ${CC-cc} accepts -Ae" >&5
1536 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1537 echo $ac_n "(cached) $ac_c" 1>&6
1539 echo 'void f(){}' > conftest.c
1540 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1541 ac_cv_prog_cc_Ae
=yes
1549 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1550 # mmap on HPUX is completely broken...
1551 cat >> confdefs.h
<<\EOF
1552 #define MMAP_BLACKLIST 1
1555 if test $ac_cv_prog_cc_Ae = yes; then
1556 CPPFLAGS
="$CPPFLAGS -Ae"
1559 # Defines needed for HPUX support.
1560 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1561 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1565 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1566 cat >> confdefs.h
<<\EOF
1567 #define USE_BOTH_CRYPT_CALLS 1
1570 cat >> confdefs.h
<<\EOF
1571 #define _HPUX_SOURCE 1
1574 cat >> confdefs.h
<<\EOF
1575 #define _POSIX_SOURCE 1
1578 cat >> confdefs.h
<<\EOF
1579 #define _ALIGNMENT_REQUIRED 1
1582 cat >> confdefs.h
<<\EOF
1583 #define _MAX_ALIGNMENT 4
1588 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1589 cat >> confdefs.h
<<\EOF
1590 #define USE_BOTH_CRYPT_CALLS 1
1593 cat >> confdefs.h
<<\EOF
1594 #define _HPUX_SOURCE 1
1597 cat >> confdefs.h
<<\EOF
1598 #define _POSIX_SOURCE 1
1601 cat >> confdefs.h
<<\EOF
1602 #define _LARGEFILE64_SOURCE 1
1605 cat >> confdefs.h
<<\EOF
1606 #define _ALIGNMENT_REQUIRED 1
1609 cat >> confdefs.h
<<\EOF
1610 #define _MAX_ALIGNMENT 4
1619 # CRAY Unicos has broken const handling
1621 echo "$ac_t""disabling const" 1>&6
1622 CPPFLAGS
="$CPPFLAGS -Dconst="
1626 # AIX4.x doesn't even admit to having large
1627 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1630 echo "$ac_t""enabling large file support" 1>&6
1631 CPPFLAGS
="$CPPFLAGS -D_LARGE_FILES"
1632 cat >> confdefs.h
<<\EOF
1633 #define _LARGE_FILES 1
1638 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1639 # to the existance of large files..
1640 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1641 # recommendations on large file support, however it makes the
1642 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1643 # recommendation makes the compile fail on gcc2.7. JRA.
1647 5.0*|
5.1*|
5.2*|
5.3*|
5.5*)
1648 echo "$ac_t""no large file support" 1>&6
1651 echo "$ac_t""enabling large file support" 1>&6
1652 if test "$ac_cv_prog_gcc" = yes; then
1653 ${CC-cc} -v >conftest.c
2>&1
1654 ac_cv_gcc_compiler_version_number
=`grep 'gcc version' conftest.c`
1656 case "$ac_cv_gcc_compiler_version_number" in
1657 *"gcc version 2.6"*|
*"gcc version 2.7"*)
1658 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1659 cat >> confdefs.h
<<\EOF
1660 #define _LARGEFILE64_SOURCE 1
1665 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1666 cat >> confdefs.h
<<\EOF
1667 #define _LARGEFILE64_SOURCE 1
1670 cat >> confdefs.h
<<\EOF
1671 #define _FILE_OFFSET_BITS 64
1677 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1678 cat >> confdefs.h
<<\EOF
1679 #define _LARGEFILE64_SOURCE 1
1682 cat >> confdefs.h
<<\EOF
1683 #define _FILE_OFFSET_BITS 64
1691 # Tests needed for SINIX large file support.
1694 if test $host = mips-sni-sysv4
; then
1695 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1696 echo "configure:1697: checking for LFS support" >&5
1697 old_CPPFLAGS
="$CPPFLAGS"
1698 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1699 if test "$cross_compiling" = yes; then
1700 SINIX_LFS_SUPPORT
=cross
1702 cat > conftest.
$ac_ext <<EOF
1703 #line 1704 "configure"
1704 #include "confdefs.h"
1708 #if _LFS64_LARGEFILE == 1
1715 if { (eval echo configure
:1716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1717 SINIX_LFS_SUPPORT
=yes
1719 echo "configure: failed program was:" >&5
1720 cat conftest.
$ac_ext >&5
1722 SINIX_LFS_SUPPORT
=no
1727 CPPFLAGS
="$old_CPPFLAGS"
1728 if test x
$SINIX_LFS_SUPPORT = xyes
; then
1729 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1730 cat >> confdefs.h
<<\EOF
1731 #define _LARGEFILE64_SOURCE 1
1734 CFLAGS
="`getconf LFS64_CFLAGS` $CFLAGS"
1735 LDFLAGS
="`getconf LFS64_LDFLAGS` $LDFLAGS"
1736 LIBS
="`getconf LFS64_LIBS` $LIBS"
1738 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1742 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1745 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1746 echo "configure:1747: checking for LFS support" >&5
1747 old_CPPFLAGS
="$CPPFLAGS"
1748 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1749 if test "$cross_compiling" = yes; then
1750 LINUX_LFS_SUPPORT
=cross
1752 cat > conftest.
$ac_ext <<EOF
1753 #line 1754 "configure"
1754 #include "confdefs.h"
1757 #include <sys/utsname.h>
1759 #if _LFS64_LARGEFILE == 1
1764 /* Ensure this is glibc 2.2 or higher */
1765 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1766 int libc_major = __GLIBC__;
1767 int libc_minor = __GLIBC_MINOR__;
1775 /* Ensure this is kernel 2.4 or higher */
1778 release = uts.release;
1779 major = atoi(strsep(&release, "."));
1780 minor = atoi(strsep(&release, "."));
1782 if (major > 2 || (major == 2 && minor > 3))
1791 if { (eval echo configure
:1792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1793 LINUX_LFS_SUPPORT
=yes
1795 echo "configure: failed program was:" >&5
1796 cat conftest.
$ac_ext >&5
1798 LINUX_LFS_SUPPORT
=no
1803 CPPFLAGS
="$old_CPPFLAGS"
1804 if test x
$LINUX_LFS_SUPPORT = xyes
; then
1805 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1806 cat >> confdefs.h
<<\EOF
1807 #define _LARGEFILE64_SOURCE 1
1810 cat >> confdefs.h
<<\EOF
1811 #define _FILE_OFFSET_BITS 64
1814 cat >> confdefs.h
<<\EOF
1815 #define _GNU_SOURCE 1
1819 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1823 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1824 echo "configure:1825: checking for LFS support" >&5
1825 old_CPPFLAGS
="$CPPFLAGS"
1826 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1827 if test "$cross_compiling" = yes; then
1828 GLIBC_LFS_SUPPORT
=cross
1830 cat > conftest.
$ac_ext <<EOF
1831 #line 1832 "configure"
1832 #include "confdefs.h"
1836 #if _LFS64_LARGEFILE == 1
1843 if { (eval echo configure
:1844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1845 GLIBC_LFS_SUPPORT
=yes
1847 echo "configure: failed program was:" >&5
1848 cat conftest.
$ac_ext >&5
1850 GLIBC_LFS_SUPPORT
=no
1855 CPPFLAGS
="$old_CPPFLAGS"
1856 if test x
$GLIBC_LFS_SUPPORT = xyes
; then
1857 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1858 cat >> confdefs.h
<<\EOF
1859 #define _LARGEFILE64_SOURCE 1
1862 cat >> confdefs.h
<<\EOF
1863 #define _GNU_SOURCE 1
1867 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1872 echo $ac_n "checking for inline""... $ac_c" 1>&6
1873 echo "configure:1874: checking for inline" >&5
1874 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1875 echo $ac_n "(cached) $ac_c" 1>&6
1878 for ac_kw
in inline __inline__ __inline
; do
1879 cat > conftest.
$ac_ext <<EOF
1880 #line 1881 "configure"
1881 #include "confdefs.h"
1887 if { (eval echo configure
:1888: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1889 ac_cv_c_inline
=$ac_kw; break
1891 echo "configure: failed program was:" >&5
1892 cat conftest.
$ac_ext >&5
1899 echo "$ac_t""$ac_cv_c_inline" 1>&6
1900 case "$ac_cv_c_inline" in
1902 no
) cat >> confdefs.h
<<\EOF
1906 *) cat >> confdefs.h
<<EOF
1907 #define inline $ac_cv_c_inline
1912 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1913 echo "configure:1914: checking how to run the C preprocessor" >&5
1914 # On Suns, sometimes $CPP names a directory.
1915 if test -n "$CPP" && test -d "$CPP"; then
1918 if test -z "$CPP"; then
1919 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1920 echo $ac_n "(cached) $ac_c" 1>&6
1922 # This must be in double quotes, not single quotes, because CPP may get
1923 # substituted into the Makefile and "${CC-cc}" will confuse make.
1925 # On the NeXT, cc -E runs the code through the compiler's parser,
1926 # not just through cpp.
1927 cat > conftest.
$ac_ext <<EOF
1928 #line 1929 "configure"
1929 #include "confdefs.h"
1933 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1934 { (eval echo configure
:1935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1935 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1936 if test -z "$ac_err"; then
1940 echo "configure: failed program was:" >&5
1941 cat conftest.
$ac_ext >&5
1943 CPP
="${CC-cc} -E -traditional-cpp"
1944 cat > conftest.
$ac_ext <<EOF
1945 #line 1946 "configure"
1946 #include "confdefs.h"
1950 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1951 { (eval echo configure
:1952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1952 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1953 if test -z "$ac_err"; then
1957 echo "configure: failed program was:" >&5
1958 cat conftest.
$ac_ext >&5
1960 CPP
="${CC-cc} -nologo -E"
1961 cat > conftest.
$ac_ext <<EOF
1962 #line 1963 "configure"
1963 #include "confdefs.h"
1967 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1968 { (eval echo configure
:1969: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1969 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1970 if test -z "$ac_err"; then
1974 echo "configure: failed program was:" >&5
1975 cat conftest.
$ac_ext >&5
1984 ac_cv_prog_CPP
="$CPP"
1986 CPP
="$ac_cv_prog_CPP"
1988 ac_cv_prog_CPP
="$CPP"
1990 echo "$ac_t""$CPP" 1>&6
1992 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1993 echo "configure:1994: checking for ANSI C header files" >&5
1994 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1995 echo $ac_n "(cached) $ac_c" 1>&6
1997 cat > conftest.
$ac_ext <<EOF
1998 #line 1999 "configure"
1999 #include "confdefs.h"
2005 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2006 { (eval echo configure
:2007: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2007 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2008 if test -z "$ac_err"; then
2010 ac_cv_header_stdc
=yes
2013 echo "configure: failed program was:" >&5
2014 cat conftest.
$ac_ext >&5
2016 ac_cv_header_stdc
=no
2020 if test $ac_cv_header_stdc = yes; then
2021 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2022 cat > conftest.
$ac_ext <<EOF
2023 #line 2024 "configure"
2024 #include "confdefs.h"
2027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2028 egrep "memchr" >/dev
/null
2>&1; then
2032 ac_cv_header_stdc
=no
2038 if test $ac_cv_header_stdc = yes; then
2039 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2040 cat > conftest.
$ac_ext <<EOF
2041 #line 2042 "configure"
2042 #include "confdefs.h"
2045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2046 egrep "free" >/dev
/null
2>&1; then
2050 ac_cv_header_stdc
=no
2056 if test $ac_cv_header_stdc = yes; then
2057 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2058 if test "$cross_compiling" = yes; then
2061 cat > conftest.
$ac_ext <<EOF
2062 #line 2063 "configure"
2063 #include "confdefs.h"
2065 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2066 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2067 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2068 int main () { int i; for (i = 0; i < 256; i++)
2069 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2073 if { (eval echo configure
:2074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2077 echo "configure: failed program was:" >&5
2078 cat conftest.
$ac_ext >&5
2080 ac_cv_header_stdc
=no
2088 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2089 if test $ac_cv_header_stdc = yes; then
2090 cat >> confdefs.h
<<\EOF
2091 #define STDC_HEADERS 1
2097 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
2099 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2100 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2101 echo "configure:2102: checking for $ac_hdr that defines DIR" >&5
2102 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2103 echo $ac_n "(cached) $ac_c" 1>&6
2105 cat > conftest.
$ac_ext <<EOF
2106 #line 2107 "configure"
2107 #include "confdefs.h"
2108 #include <sys/types.h>
2114 if { (eval echo configure
:2115: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2116 eval "ac_cv_header_dirent_$ac_safe=yes"
2118 echo "configure: failed program was:" >&5
2119 cat conftest.
$ac_ext >&5
2121 eval "ac_cv_header_dirent_$ac_safe=no"
2125 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2126 echo "$ac_t""yes" 1>&6
2127 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2128 cat >> confdefs.h
<<EOF
2129 #define $ac_tr_hdr 1
2131 ac_header_dirent
=$ac_hdr; break
2133 echo "$ac_t""no" 1>&6
2136 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2137 if test $ac_header_dirent = dirent.h
; then
2138 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2139 echo "configure:2140: checking for opendir in -ldir" >&5
2140 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2141 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2142 echo $ac_n "(cached) $ac_c" 1>&6
2144 ac_save_LIBS
="$LIBS"
2146 cat > conftest.
$ac_ext <<EOF
2147 #line 2148 "configure"
2148 #include "confdefs.h"
2149 /* Override any gcc2 internal prototype to avoid an error. */
2150 /* We use char because int might match the return type of a gcc2
2151 builtin and then its argument prototype would still apply. */
2158 if { (eval echo configure
:2159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2160 eval "ac_cv_lib_$ac_lib_var=yes"
2162 echo "configure: failed program was:" >&5
2163 cat conftest.
$ac_ext >&5
2165 eval "ac_cv_lib_$ac_lib_var=no"
2168 LIBS
="$ac_save_LIBS"
2171 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2172 echo "$ac_t""yes" 1>&6
2175 echo "$ac_t""no" 1>&6
2179 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2180 echo "configure:2181: checking for opendir in -lx" >&5
2181 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2182 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2183 echo $ac_n "(cached) $ac_c" 1>&6
2185 ac_save_LIBS
="$LIBS"
2187 cat > conftest.
$ac_ext <<EOF
2188 #line 2189 "configure"
2189 #include "confdefs.h"
2190 /* Override any gcc2 internal prototype to avoid an error. */
2191 /* We use char because int might match the return type of a gcc2
2192 builtin and then its argument prototype would still apply. */
2199 if { (eval echo configure
:2200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2201 eval "ac_cv_lib_$ac_lib_var=yes"
2203 echo "configure: failed program was:" >&5
2204 cat conftest.
$ac_ext >&5
2206 eval "ac_cv_lib_$ac_lib_var=no"
2209 LIBS
="$ac_save_LIBS"
2212 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2213 echo "$ac_t""yes" 1>&6
2216 echo "$ac_t""no" 1>&6
2221 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2222 echo "configure:2223: checking whether time.h and sys/time.h may both be included" >&5
2223 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2224 echo $ac_n "(cached) $ac_c" 1>&6
2226 cat > conftest.
$ac_ext <<EOF
2227 #line 2228 "configure"
2228 #include "confdefs.h"
2229 #include <sys/types.h>
2230 #include <sys/time.h>
2236 if { (eval echo configure
:2237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2238 ac_cv_header_time
=yes
2240 echo "configure: failed program was:" >&5
2241 cat conftest.
$ac_ext >&5
2243 ac_cv_header_time
=no
2248 echo "$ac_t""$ac_cv_header_time" 1>&6
2249 if test $ac_cv_header_time = yes; then
2250 cat >> confdefs.h
<<\EOF
2251 #define TIME_WITH_SYS_TIME 1
2256 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2257 echo "configure:2258: checking for sys/wait.h that is POSIX.1 compatible" >&5
2258 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2259 echo $ac_n "(cached) $ac_c" 1>&6
2261 cat > conftest.
$ac_ext <<EOF
2262 #line 2263 "configure"
2263 #include "confdefs.h"
2264 #include <sys/types.h>
2265 #include <sys/wait.h>
2267 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2270 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2275 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2278 if { (eval echo configure
:2279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2280 ac_cv_header_sys_wait_h
=yes
2282 echo "configure: failed program was:" >&5
2283 cat conftest.
$ac_ext >&5
2285 ac_cv_header_sys_wait_h
=no
2290 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2291 if test $ac_cv_header_sys_wait_h = yes; then
2292 cat >> confdefs.h
<<\EOF
2293 #define HAVE_SYS_WAIT_H 1
2298 for ac_hdr
in arpa
/inet.h sys
/fcntl.h sys
/select.h fcntl.h sys
/time.h sys
/unistd.h
2300 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2301 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2302 echo "configure:2303: checking for $ac_hdr" >&5
2303 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2304 echo $ac_n "(cached) $ac_c" 1>&6
2306 cat > conftest.
$ac_ext <<EOF
2307 #line 2308 "configure"
2308 #include "confdefs.h"
2311 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2312 { (eval echo configure
:2313: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2313 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2314 if test -z "$ac_err"; then
2316 eval "ac_cv_header_$ac_safe=yes"
2319 echo "configure: failed program was:" >&5
2320 cat conftest.
$ac_ext >&5
2322 eval "ac_cv_header_$ac_safe=no"
2326 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2327 echo "$ac_t""yes" 1>&6
2328 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2329 cat >> confdefs.h
<<EOF
2330 #define $ac_tr_hdr 1
2334 echo "$ac_t""no" 1>&6
2338 for ac_hdr
in unistd.h utime.h grp.h sys
/id.h limits.h memory.h net
/if.h
2340 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2341 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2342 echo "configure:2343: checking for $ac_hdr" >&5
2343 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2344 echo $ac_n "(cached) $ac_c" 1>&6
2346 cat > conftest.
$ac_ext <<EOF
2347 #line 2348 "configure"
2348 #include "confdefs.h"
2351 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2352 { (eval echo configure
:2353: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2353 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2354 if test -z "$ac_err"; then
2356 eval "ac_cv_header_$ac_safe=yes"
2359 echo "configure: failed program was:" >&5
2360 cat conftest.
$ac_ext >&5
2362 eval "ac_cv_header_$ac_safe=no"
2366 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2367 echo "$ac_t""yes" 1>&6
2368 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2369 cat >> confdefs.h
<<EOF
2370 #define $ac_tr_hdr 1
2374 echo "$ac_t""no" 1>&6
2378 for ac_hdr
in compat.h rpc
/rpc.h rpcsvc
/nis.h rpcsvc
/yp_prot.h rpcsvc
/ypclnt.h
2380 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2381 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2382 echo "configure:2383: checking for $ac_hdr" >&5
2383 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2384 echo $ac_n "(cached) $ac_c" 1>&6
2386 cat > conftest.
$ac_ext <<EOF
2387 #line 2388 "configure"
2388 #include "confdefs.h"
2391 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2392 { (eval echo configure
:2393: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2393 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2394 if test -z "$ac_err"; then
2396 eval "ac_cv_header_$ac_safe=yes"
2399 echo "configure: failed program was:" >&5
2400 cat conftest.
$ac_ext >&5
2402 eval "ac_cv_header_$ac_safe=no"
2406 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2407 echo "$ac_t""yes" 1>&6
2408 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2409 cat >> confdefs.h
<<EOF
2410 #define $ac_tr_hdr 1
2414 echo "$ac_t""no" 1>&6
2418 for ac_hdr
in sys
/param.h ctype.h sys
/wait.h sys
/resource.h sys
/ioctl.h sys
/ipc.h sys
/mode.h
2420 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2421 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2422 echo "configure:2423: checking for $ac_hdr" >&5
2423 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2424 echo $ac_n "(cached) $ac_c" 1>&6
2426 cat > conftest.
$ac_ext <<EOF
2427 #line 2428 "configure"
2428 #include "confdefs.h"
2431 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2432 { (eval echo configure
:2433: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2433 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2434 if test -z "$ac_err"; then
2436 eval "ac_cv_header_$ac_safe=yes"
2439 echo "configure: failed program was:" >&5
2440 cat conftest.
$ac_ext >&5
2442 eval "ac_cv_header_$ac_safe=no"
2446 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2447 echo "$ac_t""yes" 1>&6
2448 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2449 cat >> confdefs.h
<<EOF
2450 #define $ac_tr_hdr 1
2454 echo "$ac_t""no" 1>&6
2458 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
2460 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2461 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2462 echo "configure:2463: checking for $ac_hdr" >&5
2463 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2464 echo $ac_n "(cached) $ac_c" 1>&6
2466 cat > conftest.
$ac_ext <<EOF
2467 #line 2468 "configure"
2468 #include "confdefs.h"
2471 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2472 { (eval echo configure
:2473: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2473 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2474 if test -z "$ac_err"; then
2476 eval "ac_cv_header_$ac_safe=yes"
2479 echo "configure: failed program was:" >&5
2480 cat conftest.
$ac_ext >&5
2482 eval "ac_cv_header_$ac_safe=no"
2486 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2487 echo "$ac_t""yes" 1>&6
2488 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2489 cat >> confdefs.h
<<EOF
2490 #define $ac_tr_hdr 1
2494 echo "$ac_t""no" 1>&6
2498 for ac_hdr
in sys
/mount.h sys
/vfs.h sys
/fs
/s5param.h sys
/filsys.h termios.h termio.h
2500 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2501 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2502 echo "configure:2503: checking for $ac_hdr" >&5
2503 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2504 echo $ac_n "(cached) $ac_c" 1>&6
2506 cat > conftest.
$ac_ext <<EOF
2507 #line 2508 "configure"
2508 #include "confdefs.h"
2511 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2512 { (eval echo configure
:2513: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2513 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2514 if test -z "$ac_err"; then
2516 eval "ac_cv_header_$ac_safe=yes"
2519 echo "configure: failed program was:" >&5
2520 cat conftest.
$ac_ext >&5
2522 eval "ac_cv_header_$ac_safe=no"
2526 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2527 echo "$ac_t""yes" 1>&6
2528 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2529 cat >> confdefs.h
<<EOF
2530 #define $ac_tr_hdr 1
2534 echo "$ac_t""no" 1>&6
2538 for ac_hdr
in sys
/termio.h sys
/statfs.h sys
/dustat.h sys
/statvfs.h stdarg.h sys
/sockio.h
2540 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2541 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2542 echo "configure:2543: checking for $ac_hdr" >&5
2543 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2544 echo $ac_n "(cached) $ac_c" 1>&6
2546 cat > conftest.
$ac_ext <<EOF
2547 #line 2548 "configure"
2548 #include "confdefs.h"
2551 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2552 { (eval echo configure
:2553: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2553 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2554 if test -z "$ac_err"; then
2556 eval "ac_cv_header_$ac_safe=yes"
2559 echo "configure: failed program was:" >&5
2560 cat conftest.
$ac_ext >&5
2562 eval "ac_cv_header_$ac_safe=no"
2566 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2567 echo "$ac_t""yes" 1>&6
2568 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2569 cat >> confdefs.h
<<EOF
2570 #define $ac_tr_hdr 1
2574 echo "$ac_t""no" 1>&6
2578 for ac_hdr
in security
/pam_modules.h security
/_pam_macros.h ldap.h lber.h dlfcn.h
2580 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2581 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2582 echo "configure:2583: checking for $ac_hdr" >&5
2583 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2584 echo $ac_n "(cached) $ac_c" 1>&6
2586 cat > conftest.
$ac_ext <<EOF
2587 #line 2588 "configure"
2588 #include "confdefs.h"
2591 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2592 { (eval echo configure
:2593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2593 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2594 if test -z "$ac_err"; then
2596 eval "ac_cv_header_$ac_safe=yes"
2599 echo "configure: failed program was:" >&5
2600 cat conftest.
$ac_ext >&5
2602 eval "ac_cv_header_$ac_safe=no"
2606 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2607 echo "$ac_t""yes" 1>&6
2608 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2609 cat >> confdefs.h
<<EOF
2610 #define $ac_tr_hdr 1
2614 echo "$ac_t""no" 1>&6
2618 for ac_hdr
in sys
/syslog.h syslog.h
2620 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2621 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2622 echo "configure:2623: checking for $ac_hdr" >&5
2623 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2624 echo $ac_n "(cached) $ac_c" 1>&6
2626 cat > conftest.
$ac_ext <<EOF
2627 #line 2628 "configure"
2628 #include "confdefs.h"
2631 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2632 { (eval echo configure
:2633: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2633 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2634 if test -z "$ac_err"; then
2636 eval "ac_cv_header_$ac_safe=yes"
2639 echo "configure: failed program was:" >&5
2640 cat conftest.
$ac_ext >&5
2642 eval "ac_cv_header_$ac_safe=no"
2646 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2647 echo "$ac_t""yes" 1>&6
2648 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2649 cat >> confdefs.h
<<EOF
2650 #define $ac_tr_hdr 1
2654 echo "$ac_t""no" 1>&6
2660 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2661 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2665 cat > conftest.
$ac_ext <<EOF
2666 #line 2667 "configure"
2667 #include "confdefs.h"
2673 if { (eval echo configure
:2674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2675 ac_cv_header_shadow_h
=yes
2677 echo "configure: failed program was:" >&5
2678 cat conftest.
$ac_ext >&5
2680 ac_cv_header_shadow_h
=no
2683 if test x
"$ac_cv_header_shadow_h" = x
"yes"; then
2684 cat >> confdefs.h
<<\EOF
2685 #define HAVE_SHADOW_H 1
2691 for ac_hdr
in shadow.h netinet
/ip.h netinet
/tcp.h netinet
/in_systm.h netinet
/in_ip.h
2693 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2694 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2695 echo "configure:2696: checking for $ac_hdr" >&5
2696 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2697 echo $ac_n "(cached) $ac_c" 1>&6
2699 cat > conftest.
$ac_ext <<EOF
2700 #line 2701 "configure"
2701 #include "confdefs.h"
2704 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2705 { (eval echo configure
:2706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2706 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2707 if test -z "$ac_err"; then
2709 eval "ac_cv_header_$ac_safe=yes"
2712 echo "configure: failed program was:" >&5
2713 cat conftest.
$ac_ext >&5
2715 eval "ac_cv_header_$ac_safe=no"
2719 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2720 echo "$ac_t""yes" 1>&6
2721 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2722 cat >> confdefs.h
<<EOF
2723 #define $ac_tr_hdr 1
2727 echo "$ac_t""no" 1>&6
2731 for ac_hdr
in nss.h nss_common.h ns_api.h sys
/security.h security
/pam_appl.h security
/pam_modules.h
2733 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2734 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2735 echo "configure:2736: checking for $ac_hdr" >&5
2736 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2737 echo $ac_n "(cached) $ac_c" 1>&6
2739 cat > conftest.
$ac_ext <<EOF
2740 #line 2741 "configure"
2741 #include "confdefs.h"
2744 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2745 { (eval echo configure
:2746: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2746 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2747 if test -z "$ac_err"; then
2749 eval "ac_cv_header_$ac_safe=yes"
2752 echo "configure: failed program was:" >&5
2753 cat conftest.
$ac_ext >&5
2755 eval "ac_cv_header_$ac_safe=no"
2759 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2760 echo "$ac_t""yes" 1>&6
2761 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2762 cat >> confdefs.h
<<EOF
2763 #define $ac_tr_hdr 1
2767 echo "$ac_t""no" 1>&6
2771 for ac_hdr
in stropts.h poll.h
2773 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2774 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2775 echo "configure:2776: checking for $ac_hdr" >&5
2776 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2777 echo $ac_n "(cached) $ac_c" 1>&6
2779 cat > conftest.
$ac_ext <<EOF
2780 #line 2781 "configure"
2781 #include "confdefs.h"
2784 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2785 { (eval echo configure
:2786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2786 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2787 if test -z "$ac_err"; then
2789 eval "ac_cv_header_$ac_safe=yes"
2792 echo "configure: failed program was:" >&5
2793 cat conftest.
$ac_ext >&5
2795 eval "ac_cv_header_$ac_safe=no"
2799 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2800 echo "$ac_t""yes" 1>&6
2801 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2802 cat >> confdefs.h
<<EOF
2803 #define $ac_tr_hdr 1
2807 echo "$ac_t""no" 1>&6
2811 for ac_hdr
in sys
/capability.h syscall.h sys
/syscall.h
2813 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2814 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2815 echo "configure:2816: checking for $ac_hdr" >&5
2816 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2817 echo $ac_n "(cached) $ac_c" 1>&6
2819 cat > conftest.
$ac_ext <<EOF
2820 #line 2821 "configure"
2821 #include "confdefs.h"
2824 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2825 { (eval echo configure
:2826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2826 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2827 if test -z "$ac_err"; then
2829 eval "ac_cv_header_$ac_safe=yes"
2832 echo "configure: failed program was:" >&5
2833 cat conftest.
$ac_ext >&5
2835 eval "ac_cv_header_$ac_safe=no"
2839 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2840 echo "$ac_t""yes" 1>&6
2841 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2842 cat >> confdefs.h
<<EOF
2843 #define $ac_tr_hdr 1
2847 echo "$ac_t""no" 1>&6
2851 for ac_hdr
in sys
/acl.h sys
/cdefs.h glob.h
2853 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2854 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2855 echo "configure:2856: checking for $ac_hdr" >&5
2856 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2857 echo $ac_n "(cached) $ac_c" 1>&6
2859 cat > conftest.
$ac_ext <<EOF
2860 #line 2861 "configure"
2861 #include "confdefs.h"
2864 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2865 { (eval echo configure
:2866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2866 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2867 if test -z "$ac_err"; then
2869 eval "ac_cv_header_$ac_safe=yes"
2872 echo "configure: failed program was:" >&5
2873 cat conftest.
$ac_ext >&5
2875 eval "ac_cv_header_$ac_safe=no"
2879 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2880 echo "$ac_t""yes" 1>&6
2881 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2882 cat >> confdefs.h
<<EOF
2883 #define $ac_tr_hdr 1
2887 echo "$ac_t""no" 1>&6
2892 # For experimental utmp support (lastlog on some BSD-like systems)
2893 for ac_hdr
in utmp.h utmpx.h lastlog.h
2895 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2896 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2897 echo "configure:2898: checking for $ac_hdr" >&5
2898 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2899 echo $ac_n "(cached) $ac_c" 1>&6
2901 cat > conftest.
$ac_ext <<EOF
2902 #line 2903 "configure"
2903 #include "confdefs.h"
2906 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2907 { (eval echo configure
:2908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2908 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2909 if test -z "$ac_err"; then
2911 eval "ac_cv_header_$ac_safe=yes"
2914 echo "configure: failed program was:" >&5
2915 cat conftest.
$ac_ext >&5
2917 eval "ac_cv_header_$ac_safe=no"
2921 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2922 echo "$ac_t""yes" 1>&6
2923 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2924 cat >> confdefs.h
<<EOF
2925 #define $ac_tr_hdr 1
2929 echo "$ac_t""no" 1>&6
2934 # For quotas on Veritas VxFS filesystems
2935 for ac_hdr
in sys
/fs
/vx_quota.h
2937 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2938 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2939 echo "configure:2940: checking for $ac_hdr" >&5
2940 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2941 echo $ac_n "(cached) $ac_c" 1>&6
2943 cat > conftest.
$ac_ext <<EOF
2944 #line 2945 "configure"
2945 #include "confdefs.h"
2948 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2949 { (eval echo configure
:2950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2950 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2951 if test -z "$ac_err"; then
2953 eval "ac_cv_header_$ac_safe=yes"
2956 echo "configure: failed program was:" >&5
2957 cat conftest.
$ac_ext >&5
2959 eval "ac_cv_header_$ac_safe=no"
2963 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2964 echo "$ac_t""yes" 1>&6
2965 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2966 cat >> confdefs.h
<<EOF
2967 #define $ac_tr_hdr 1
2971 echo "$ac_t""no" 1>&6
2976 # For quotas on Linux XFS filesystems
2977 for ac_hdr
in linux
/xqm.h
2979 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2980 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2981 echo "configure:2982: checking for $ac_hdr" >&5
2982 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2983 echo $ac_n "(cached) $ac_c" 1>&6
2985 cat > conftest.
$ac_ext <<EOF
2986 #line 2987 "configure"
2987 #include "confdefs.h"
2990 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2991 { (eval echo configure
:2992: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2992 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2993 if test -z "$ac_err"; then
2995 eval "ac_cv_header_$ac_safe=yes"
2998 echo "configure: failed program was:" >&5
2999 cat conftest.
$ac_ext >&5
3001 eval "ac_cv_header_$ac_safe=no"
3005 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3006 echo "$ac_t""yes" 1>&6
3007 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3008 cat >> confdefs.h
<<EOF
3009 #define $ac_tr_hdr 1
3013 echo "$ac_t""no" 1>&6
3017 for ac_hdr
in xfs
/xqm.h
3019 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3020 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3021 echo "configure:3022: checking for $ac_hdr" >&5
3022 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3023 echo $ac_n "(cached) $ac_c" 1>&6
3025 cat > conftest.
$ac_ext <<EOF
3026 #line 3027 "configure"
3027 #include "confdefs.h"
3030 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3031 { (eval echo configure
:3032: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3032 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3033 if test -z "$ac_err"; then
3035 eval "ac_cv_header_$ac_safe=yes"
3038 echo "configure: failed program was:" >&5
3039 cat conftest.
$ac_ext >&5
3041 eval "ac_cv_header_$ac_safe=no"
3045 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3046 echo "$ac_t""yes" 1>&6
3047 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3048 cat >> confdefs.h
<<EOF
3049 #define $ac_tr_hdr 1
3053 echo "$ac_t""no" 1>&6
3058 echo $ac_n "checking size of int""... $ac_c" 1>&6
3059 echo "configure:3060: checking size of int" >&5
3060 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
3061 echo $ac_n "(cached) $ac_c" 1>&6
3063 if test "$cross_compiling" = yes; then
3064 ac_cv_sizeof_int
=cross
3066 cat > conftest.
$ac_ext <<EOF
3067 #line 3068 "configure"
3068 #include "confdefs.h"
3072 FILE *f=fopen("conftestval", "w");
3074 fprintf(f, "%d\n", sizeof(int));
3078 if { (eval echo configure
:3079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3080 ac_cv_sizeof_int
=`cat conftestval`
3082 echo "configure: failed program was:" >&5
3083 cat conftest.
$ac_ext >&5
3091 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
3092 cat >> confdefs.h
<<EOF
3093 #define SIZEOF_INT $ac_cv_sizeof_int
3097 echo $ac_n "checking size of long""... $ac_c" 1>&6
3098 echo "configure:3099: checking size of long" >&5
3099 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
3100 echo $ac_n "(cached) $ac_c" 1>&6
3102 if test "$cross_compiling" = yes; then
3103 ac_cv_sizeof_long
=cross
3105 cat > conftest.
$ac_ext <<EOF
3106 #line 3107 "configure"
3107 #include "confdefs.h"
3111 FILE *f=fopen("conftestval", "w");
3113 fprintf(f, "%d\n", sizeof(long));
3117 if { (eval echo configure
:3118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3119 ac_cv_sizeof_long
=`cat conftestval`
3121 echo "configure: failed program was:" >&5
3122 cat conftest.
$ac_ext >&5
3130 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3131 cat >> confdefs.h
<<EOF
3132 #define SIZEOF_LONG $ac_cv_sizeof_long
3136 echo $ac_n "checking size of short""... $ac_c" 1>&6
3137 echo "configure:3138: checking size of short" >&5
3138 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
3139 echo $ac_n "(cached) $ac_c" 1>&6
3141 if test "$cross_compiling" = yes; then
3142 ac_cv_sizeof_short
=cross
3144 cat > conftest.
$ac_ext <<EOF
3145 #line 3146 "configure"
3146 #include "confdefs.h"
3150 FILE *f=fopen("conftestval", "w");
3152 fprintf(f, "%d\n", sizeof(short));
3156 if { (eval echo configure
:3157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3158 ac_cv_sizeof_short
=`cat conftestval`
3160 echo "configure: failed program was:" >&5
3161 cat conftest.
$ac_ext >&5
3163 ac_cv_sizeof_short
=0
3169 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
3170 cat >> confdefs.h
<<EOF
3171 #define SIZEOF_SHORT $ac_cv_sizeof_short
3176 echo $ac_n "checking for working const""... $ac_c" 1>&6
3177 echo "configure:3178: checking for working const" >&5
3178 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3179 echo $ac_n "(cached) $ac_c" 1>&6
3181 cat > conftest.
$ac_ext <<EOF
3182 #line 3183 "configure"
3183 #include "confdefs.h"
3187 /* Ultrix mips cc rejects this. */
3188 typedef int charset[2]; const charset x;
3189 /* SunOS 4.1.1 cc rejects this. */
3190 char const *const *ccp;
3192 /* NEC SVR4.0.2 mips cc rejects this. */
3193 struct point {int x, y;};
3194 static struct point const zero = {0,0};
3195 /* AIX XL C 1.02.0.0 rejects this.
3196 It does not let you subtract one const X* pointer from another in an arm
3197 of an if-expression whose if-part is not a constant expression */
3198 const char *g = "string";
3199 ccp = &g + (g ? g-g : 0);
3200 /* HPUX 7.0 cc rejects these. */
3203 ccp = (char const *const *) p;
3204 { /* SCO 3.2v4 cc rejects this. */
3206 char const *s = 0 ? (char *) 0 : (char const *) 0;
3210 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3212 const int *foo = &x[0];
3215 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3216 typedef const int *iptr;
3220 { /* AIX XL C 1.02.0.0 rejects this saying
3221 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3222 struct s { int j; const int *ap[3]; };
3223 struct s *b; b->j = 5;
3225 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3231 if { (eval echo configure
:3232: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3235 echo "configure: failed program was:" >&5
3236 cat conftest.
$ac_ext >&5
3243 echo "$ac_t""$ac_cv_c_const" 1>&6
3244 if test $ac_cv_c_const = no
; then
3245 cat >> confdefs.h
<<\EOF
3251 echo $ac_n "checking for inline""... $ac_c" 1>&6
3252 echo "configure:3253: checking for inline" >&5
3253 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3254 echo $ac_n "(cached) $ac_c" 1>&6
3257 for ac_kw
in inline __inline__ __inline
; do
3258 cat > conftest.
$ac_ext <<EOF
3259 #line 3260 "configure"
3260 #include "confdefs.h"
3266 if { (eval echo configure
:3267: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3268 ac_cv_c_inline
=$ac_kw; break
3270 echo "configure: failed program was:" >&5
3271 cat conftest.
$ac_ext >&5
3278 echo "$ac_t""$ac_cv_c_inline" 1>&6
3279 case "$ac_cv_c_inline" in
3281 no
) cat >> confdefs.h
<<\EOF
3285 *) cat >> confdefs.h
<<EOF
3286 #define inline $ac_cv_c_inline
3291 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3292 echo "configure:3293: checking whether byte ordering is bigendian" >&5
3293 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3294 echo $ac_n "(cached) $ac_c" 1>&6
3296 ac_cv_c_bigendian
=unknown
3297 # See if sys/param.h defines the BYTE_ORDER macro.
3298 cat > conftest.
$ac_ext <<EOF
3299 #line 3300 "configure"
3300 #include "confdefs.h"
3301 #include <sys/types.h>
3302 #include <sys/param.h>
3305 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3310 if { (eval echo configure
:3311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3312 # It does; now see whether it defined to BIG_ENDIAN or not.
3313 cat > conftest.
$ac_ext <<EOF
3314 #line 3315 "configure"
3315 #include "confdefs.h"
3316 #include <sys/types.h>
3317 #include <sys/param.h>
3320 #if BYTE_ORDER != BIG_ENDIAN
3325 if { (eval echo configure
:3326: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3327 ac_cv_c_bigendian
=yes
3329 echo "configure: failed program was:" >&5
3330 cat conftest.
$ac_ext >&5
3332 ac_cv_c_bigendian
=no
3336 echo "configure: failed program was:" >&5
3337 cat conftest.
$ac_ext >&5
3340 if test $ac_cv_c_bigendian = unknown
; then
3341 if test "$cross_compiling" = yes; then
3342 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3344 cat > conftest.
$ac_ext <<EOF
3345 #line 3346 "configure"
3346 #include "confdefs.h"
3348 /* Are we little or big endian? From Harbison&Steele. */
3352 char c[sizeof (long)];
3355 exit (u.c[sizeof (long) - 1] == 1);
3358 if { (eval echo configure
:3359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3360 ac_cv_c_bigendian
=no
3362 echo "configure: failed program was:" >&5
3363 cat conftest.
$ac_ext >&5
3365 ac_cv_c_bigendian
=yes
3373 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3374 if test $ac_cv_c_bigendian = yes; then
3375 cat >> confdefs.h
<<\EOF
3376 #define WORDS_BIGENDIAN 1
3381 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3382 echo "configure:3383: checking whether char is unsigned" >&5
3383 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3384 echo $ac_n "(cached) $ac_c" 1>&6
3386 if test "$GCC" = yes; then
3387 # GCC predefines this symbol on systems where it applies.
3388 cat > conftest.
$ac_ext <<EOF
3389 #line 3390 "configure"
3390 #include "confdefs.h"
3391 #ifdef __CHAR_UNSIGNED__
3396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3397 egrep "yes" >/dev
/null
2>&1; then
3399 ac_cv_c_char_unsigned
=yes
3402 ac_cv_c_char_unsigned
=no
3407 if test "$cross_compiling" = yes; then
3408 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3410 cat > conftest.
$ac_ext <<EOF
3411 #line 3412 "configure"
3412 #include "confdefs.h"
3413 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3414 #if !defined(__STDC__) || __STDC__ != 1
3418 volatile char c = 255; exit(c < 0);
3421 if { (eval echo configure
:3422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3423 ac_cv_c_char_unsigned
=yes
3425 echo "configure: failed program was:" >&5
3426 cat conftest.
$ac_ext >&5
3428 ac_cv_c_char_unsigned
=no
3436 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3437 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3438 cat >> confdefs.h
<<\EOF
3439 #define __CHAR_UNSIGNED__ 1
3445 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3446 echo "configure:3447: checking return type of signal handlers" >&5
3447 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3448 echo $ac_n "(cached) $ac_c" 1>&6
3450 cat > conftest.
$ac_ext <<EOF
3451 #line 3452 "configure"
3452 #include "confdefs.h"
3453 #include <sys/types.h>
3459 extern "C" void (*signal (int, void (*)(int)))(int);
3461 void (*signal ()) ();
3468 if { (eval echo configure
:3469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3470 ac_cv_type_signal
=void
3472 echo "configure: failed program was:" >&5
3473 cat conftest.
$ac_ext >&5
3475 ac_cv_type_signal
=int
3480 echo "$ac_t""$ac_cv_type_signal" 1>&6
3481 cat >> confdefs.h
<<EOF
3482 #define RETSIGTYPE $ac_cv_type_signal
3486 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3487 echo "configure:3488: checking for uid_t in sys/types.h" >&5
3488 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3489 echo $ac_n "(cached) $ac_c" 1>&6
3491 cat > conftest.
$ac_ext <<EOF
3492 #line 3493 "configure"
3493 #include "confdefs.h"
3494 #include <sys/types.h>
3496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3497 egrep "uid_t" >/dev
/null
2>&1; then
3499 ac_cv_type_uid_t
=yes
3508 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3509 if test $ac_cv_type_uid_t = no
; then
3510 cat >> confdefs.h
<<\EOF
3514 cat >> confdefs.h
<<\EOF
3520 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3521 echo "configure:3522: checking for mode_t" >&5
3522 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3523 echo $ac_n "(cached) $ac_c" 1>&6
3525 cat > conftest.
$ac_ext <<EOF
3526 #line 3527 "configure"
3527 #include "confdefs.h"
3528 #include <sys/types.h>
3534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3535 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3537 ac_cv_type_mode_t
=yes
3540 ac_cv_type_mode_t
=no
3545 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3546 if test $ac_cv_type_mode_t = no
; then
3547 cat >> confdefs.h
<<\EOF
3553 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3554 echo "configure:3555: checking for off_t" >&5
3555 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3556 echo $ac_n "(cached) $ac_c" 1>&6
3558 cat > conftest.
$ac_ext <<EOF
3559 #line 3560 "configure"
3560 #include "confdefs.h"
3561 #include <sys/types.h>
3567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3568 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3570 ac_cv_type_off_t
=yes
3578 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3579 if test $ac_cv_type_off_t = no
; then
3580 cat >> confdefs.h
<<\EOF
3586 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3587 echo "configure:3588: checking for size_t" >&5
3588 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3589 echo $ac_n "(cached) $ac_c" 1>&6
3591 cat > conftest.
$ac_ext <<EOF
3592 #line 3593 "configure"
3593 #include "confdefs.h"
3594 #include <sys/types.h>
3600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3601 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3603 ac_cv_type_size_t
=yes
3606 ac_cv_type_size_t
=no
3611 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3612 if test $ac_cv_type_size_t = no
; then
3613 cat >> confdefs.h
<<\EOF
3614 #define size_t unsigned
3619 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3620 echo "configure:3621: checking for pid_t" >&5
3621 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3622 echo $ac_n "(cached) $ac_c" 1>&6
3624 cat > conftest.
$ac_ext <<EOF
3625 #line 3626 "configure"
3626 #include "confdefs.h"
3627 #include <sys/types.h>
3633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3634 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3636 ac_cv_type_pid_t
=yes
3644 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3645 if test $ac_cv_type_pid_t = no
; then
3646 cat >> confdefs.h
<<\EOF
3652 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3653 echo "configure:3654: checking for st_rdev in struct stat" >&5
3654 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3655 echo $ac_n "(cached) $ac_c" 1>&6
3657 cat > conftest.
$ac_ext <<EOF
3658 #line 3659 "configure"
3659 #include "confdefs.h"
3660 #include <sys/types.h>
3661 #include <sys/stat.h>
3663 struct stat s; s.st_rdev;
3666 if { (eval echo configure
:3667: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3668 ac_cv_struct_st_rdev
=yes
3670 echo "configure: failed program was:" >&5
3671 cat conftest.
$ac_ext >&5
3673 ac_cv_struct_st_rdev
=no
3678 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3679 if test $ac_cv_struct_st_rdev = yes; then
3680 cat >> confdefs.h
<<\EOF
3681 #define HAVE_ST_RDEV 1
3686 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3687 echo "configure:3688: checking for d_off in dirent" >&5
3688 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3689 echo $ac_n "(cached) $ac_c" 1>&6
3691 cat > conftest.
$ac_ext <<EOF
3692 #line 3693 "configure"
3693 #include "confdefs.h"
3696 #include <sys/types.h>
3699 struct dirent d; d.d_off;
3702 if { (eval echo configure
:3703: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3704 ac_cv_dirent_d_off
=yes
3706 echo "configure: failed program was:" >&5
3707 cat conftest.
$ac_ext >&5
3709 ac_cv_dirent_d_off
=no
3714 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3715 if test $ac_cv_dirent_d_off = yes; then
3716 cat >> confdefs.h
<<\EOF
3717 #define HAVE_DIRENT_D_OFF 1
3722 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3723 echo "configure:3724: checking for ino_t" >&5
3724 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3725 echo $ac_n "(cached) $ac_c" 1>&6
3727 cat > conftest.
$ac_ext <<EOF
3728 #line 3729 "configure"
3729 #include "confdefs.h"
3730 #include <sys/types.h>
3736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3737 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3739 ac_cv_type_ino_t
=yes
3747 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3748 if test $ac_cv_type_ino_t = no
; then
3749 cat >> confdefs.h
<<\EOF
3750 #define ino_t unsigned
3755 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3756 echo "configure:3757: checking for loff_t" >&5
3757 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3758 echo $ac_n "(cached) $ac_c" 1>&6
3760 cat > conftest.
$ac_ext <<EOF
3761 #line 3762 "configure"
3762 #include "confdefs.h"
3763 #include <sys/types.h>
3769 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3770 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3772 ac_cv_type_loff_t
=yes
3775 ac_cv_type_loff_t
=no
3780 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3781 if test $ac_cv_type_loff_t = no
; then
3782 cat >> confdefs.h
<<\EOF
3783 #define loff_t off_t
3788 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3789 echo "configure:3790: checking for offset_t" >&5
3790 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3791 echo $ac_n "(cached) $ac_c" 1>&6
3793 cat > conftest.
$ac_ext <<EOF
3794 #line 3795 "configure"
3795 #include "confdefs.h"
3796 #include <sys/types.h>
3802 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3803 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3805 ac_cv_type_offset_t
=yes
3808 ac_cv_type_offset_t
=no
3813 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3814 if test $ac_cv_type_offset_t = no
; then
3815 cat >> confdefs.h
<<\EOF
3816 #define offset_t loff_t
3821 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3822 echo "configure:3823: checking for ssize_t" >&5
3823 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3824 echo $ac_n "(cached) $ac_c" 1>&6
3826 cat > conftest.
$ac_ext <<EOF
3827 #line 3828 "configure"
3828 #include "confdefs.h"
3829 #include <sys/types.h>
3835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3836 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3838 ac_cv_type_ssize_t
=yes
3841 ac_cv_type_ssize_t
=no
3846 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3847 if test $ac_cv_type_ssize_t = no
; then
3848 cat >> confdefs.h
<<\EOF
3854 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3855 echo "configure:3856: checking for wchar_t" >&5
3856 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3857 echo $ac_n "(cached) $ac_c" 1>&6
3859 cat > conftest.
$ac_ext <<EOF
3860 #line 3861 "configure"
3861 #include "confdefs.h"
3862 #include <sys/types.h>
3868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3869 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3871 ac_cv_type_wchar_t
=yes
3874 ac_cv_type_wchar_t
=no
3879 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3880 if test $ac_cv_type_wchar_t = no
; then
3881 cat >> confdefs.h
<<\EOF
3882 #define wchar_t unsigned short
3888 ############################################
3889 # for cups support we need libcups, and a handful of header files
3891 # Check whether --enable-cups or --disable-cups was given.
3892 if test "${enable_cups+set}" = set; then
3893 enableval
="$enable_cups"
3898 if test x
$enable_cups != xno
; then
3899 # Extract the first word of "cups-config", so it can be a program name with args.
3900 set dummy cups-config
; ac_word
=$2
3901 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3902 echo "configure:3903: checking for $ac_word" >&5
3903 if eval "test \"`echo '$''{'ac_cv_path_CUPS_CONFIG'+set}'`\" = set"; then
3904 echo $ac_n "(cached) $ac_c" 1>&6
3906 case "$CUPS_CONFIG" in
3908 ac_cv_path_CUPS_CONFIG
="$CUPS_CONFIG" # Let the user override the test with a path.
3911 ac_cv_path_CUPS_CONFIG
="$CUPS_CONFIG" # Let the user override the test with a dos path.
3914 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3916 for ac_dir
in $ac_dummy; do
3917 test -z "$ac_dir" && ac_dir
=.
3918 if test -f $ac_dir/$ac_word; then
3919 ac_cv_path_CUPS_CONFIG
="$ac_dir/$ac_word"
3927 CUPS_CONFIG
="$ac_cv_path_CUPS_CONFIG"
3928 if test -n "$CUPS_CONFIG"; then
3929 echo "$ac_t""$CUPS_CONFIG" 1>&6
3931 echo "$ac_t""no" 1>&6
3935 if test "x$CUPS_CONFIG" != x
; then
3936 cat >> confdefs.h
<<\EOF
3940 CFLAGS
="$CFLAGS `$CUPS_CONFIG --cflags`"
3941 LDFLAGS
="$LDFLAGS `$CUPS_CONFIG --ldflags`"
3942 PRINTLIBS
="$PRINTLIBS `$CUPS_CONFIG --libs`"
3946 ############################################
3947 # we need dlopen/dlclose/dlsym/dlerror for PAM, the password database plugins and the plugin loading code
3949 echo $ac_n "checking for library containing dlopen""... $ac_c" 1>&6
3950 echo "configure:3951: checking for library containing dlopen" >&5
3951 if eval "test \"`echo '$''{'ac_cv_search_dlopen'+set}'`\" = set"; then
3952 echo $ac_n "(cached) $ac_c" 1>&6
3954 ac_func_search_save_LIBS
="$LIBS"
3955 ac_cv_search_dlopen
="no"
3956 cat > conftest.
$ac_ext <<EOF
3957 #line 3958 "configure"
3958 #include "confdefs.h"
3959 /* Override any gcc2 internal prototype to avoid an error. */
3960 /* We use char because int might match the return type of a gcc2
3961 builtin and then its argument prototype would still apply. */
3968 if { (eval echo configure
:3969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3970 ac_cv_search_dlopen
="none required"
3972 echo "configure: failed program was:" >&5
3973 cat conftest.
$ac_ext >&5
3976 test "$ac_cv_search_dlopen" = "no" && for i
in dl
; do
3977 LIBS
="-l$i $ac_func_search_save_LIBS"
3978 cat > conftest.
$ac_ext <<EOF
3979 #line 3980 "configure"
3980 #include "confdefs.h"
3981 /* Override any gcc2 internal prototype to avoid an error. */
3982 /* We use char because int might match the return type of a gcc2
3983 builtin and then its argument prototype would still apply. */
3990 if { (eval echo configure
:3991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3992 ac_cv_search_dlopen
="-l$i"
3995 echo "configure: failed program was:" >&5
3996 cat conftest.
$ac_ext >&5
4000 LIBS
="$ac_func_search_save_LIBS"
4003 echo "$ac_t""$ac_cv_search_dlopen" 1>&6
4004 if test "$ac_cv_search_dlopen" != "no"; then
4005 test "$ac_cv_search_dlopen" = "none required" || LIBS
="$ac_cv_search_dlopen $LIBS"
4010 # dlopen/dlclose/dlsym/dlerror will be checked again later and defines will be set then
4012 ############################################
4013 # check if the compiler can do immediate structures
4014 echo $ac_n "checking for immediate structures""... $ac_c" 1>&6
4015 echo "configure:4016: checking for immediate structures" >&5
4016 if eval "test \"`echo '$''{'samba_cv_immediate_structures'+set}'`\" = set"; then
4017 echo $ac_n "(cached) $ac_c" 1>&6
4020 cat > conftest.
$ac_ext <<EOF
4021 #line 4022 "configure"
4022 #include "confdefs.h"
4027 typedef struct {unsigned x;} FOOBAR;
4028 #define X_FOOBAR(x) ((FOOBAR) { x })
4029 #define FOO_ONE X_FOOBAR(1)
4039 if { (eval echo configure
:4040: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4041 samba_cv_immediate_structures
=yes
4043 echo "configure: failed program was:" >&5
4044 cat conftest.
$ac_ext >&5
4046 samba_cv_immediate_structures
=no
4051 echo "$ac_t""$samba_cv_immediate_structures" 1>&6
4052 if test x
"$samba_cv_immediate_structures" = x
"yes"; then
4053 cat >> confdefs.h
<<\EOF
4054 #define HAVE_IMMEDIATE_STRUCTURES 1
4059 ############################################
4060 # check for unix domain sockets
4061 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
4062 echo "configure:4063: checking for unix domain sockets" >&5
4063 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
4064 echo $ac_n "(cached) $ac_c" 1>&6
4067 cat > conftest.
$ac_ext <<EOF
4068 #line 4069 "configure"
4069 #include "confdefs.h"
4071 #include <sys/types.h>
4074 #include <sys/socket.h>
4078 struct sockaddr_un sunaddr;
4079 sunaddr.sun_family = AF_UNIX;
4083 if { (eval echo configure
:4084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4085 samba_cv_unixsocket
=yes
4087 echo "configure: failed program was:" >&5
4088 cat conftest.
$ac_ext >&5
4090 samba_cv_unixsocket
=no
4095 echo "$ac_t""$samba_cv_unixsocket" 1>&6
4096 if test x
"$samba_cv_unixsocket" = x
"yes"; then
4097 cat >> confdefs.h
<<\EOF
4098 #define HAVE_UNIXSOCKET 1
4104 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
4105 echo "configure:4106: checking for socklen_t type" >&5
4106 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
4107 echo $ac_n "(cached) $ac_c" 1>&6
4110 cat > conftest.
$ac_ext <<EOF
4111 #line 4112 "configure"
4112 #include "confdefs.h"
4114 #include <sys/types.h>
4119 #include <sys/socket.h>
4124 if { (eval echo configure
:4125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4126 samba_cv_socklen_t
=yes
4128 echo "configure: failed program was:" >&5
4129 cat conftest.
$ac_ext >&5
4131 samba_cv_socklen_t
=no
4136 echo "$ac_t""$samba_cv_socklen_t" 1>&6
4137 if test x
"$samba_cv_socklen_t" = x
"yes"; then
4138 cat >> confdefs.h
<<\EOF
4139 #define HAVE_SOCKLEN_T_TYPE 1
4144 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
4145 echo "configure:4146: checking for sig_atomic_t type" >&5
4146 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
4147 echo $ac_n "(cached) $ac_c" 1>&6
4150 cat > conftest.
$ac_ext <<EOF
4151 #line 4152 "configure"
4152 #include "confdefs.h"
4154 #include <sys/types.h>
4164 if { (eval echo configure
:4165: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4166 samba_cv_sig_atomic_t
=yes
4168 echo "configure: failed program was:" >&5
4169 cat conftest.
$ac_ext >&5
4171 samba_cv_sig_atomic_t
=no
4176 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
4177 if test x
"$samba_cv_sig_atomic_t" = x
"yes"; then
4178 cat >> confdefs.h
<<\EOF
4179 #define HAVE_SIG_ATOMIC_T_TYPE 1
4184 # stupid headers have the functions but no declaration. grrrr.
4186 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
4187 echo "configure:4188: checking for errno declaration" >&5
4188 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
4189 echo $ac_n "(cached) $ac_c" 1>&6
4192 cat > conftest.
$ac_ext <<EOF
4193 #line 4194 "configure"
4194 #include "confdefs.h"
4200 if { (eval echo configure
:4201: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4202 ac_cv_have_errno_decl
=yes
4204 echo "configure: failed program was:" >&5
4205 cat conftest.
$ac_ext >&5
4207 ac_cv_have_errno_decl
=no
4212 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
4213 if test x
"$ac_cv_have_errno_decl" = x
"yes"; then
4214 cat >> confdefs.h
<<\EOF
4215 #define HAVE_ERRNO_DECL 1
4221 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
4222 echo "configure:4223: checking for setresuid declaration" >&5
4223 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
4224 echo $ac_n "(cached) $ac_c" 1>&6
4227 cat > conftest.
$ac_ext <<EOF
4228 #line 4229 "configure"
4229 #include "confdefs.h"
4232 int i = (int)setresuid
4235 if { (eval echo configure
:4236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4237 ac_cv_have_setresuid_decl
=yes
4239 echo "configure: failed program was:" >&5
4240 cat conftest.
$ac_ext >&5
4242 ac_cv_have_setresuid_decl
=no
4247 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
4248 if test x
"$ac_cv_have_setresuid_decl" = x
"yes"; then
4249 cat >> confdefs.h
<<\EOF
4250 #define HAVE_SETRESUID_DECL 1
4256 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
4257 echo "configure:4258: checking for setresgid declaration" >&5
4258 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
4259 echo $ac_n "(cached) $ac_c" 1>&6
4262 cat > conftest.
$ac_ext <<EOF
4263 #line 4264 "configure"
4264 #include "confdefs.h"
4267 int i = (int)setresgid
4270 if { (eval echo configure
:4271: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4272 ac_cv_have_setresgid_decl
=yes
4274 echo "configure: failed program was:" >&5
4275 cat conftest.
$ac_ext >&5
4277 ac_cv_have_setresgid_decl
=no
4282 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
4283 if test x
"$ac_cv_have_setresgid_decl" = x
"yes"; then
4284 cat >> confdefs.h
<<\EOF
4285 #define HAVE_SETRESGID_DECL 1
4291 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
4292 echo "configure:4293: checking for asprintf declaration" >&5
4293 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
4294 echo $ac_n "(cached) $ac_c" 1>&6
4297 cat > conftest.
$ac_ext <<EOF
4298 #line 4299 "configure"
4299 #include "confdefs.h"
4302 int i = (int)asprintf
4305 if { (eval echo configure
:4306: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4307 ac_cv_have_asprintf_decl
=yes
4309 echo "configure: failed program was:" >&5
4310 cat conftest.
$ac_ext >&5
4312 ac_cv_have_asprintf_decl
=no
4317 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
4318 if test x
"$ac_cv_have_asprintf_decl" = x
"yes"; then
4319 cat >> confdefs.h
<<\EOF
4320 #define HAVE_ASPRINTF_DECL 1
4326 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
4327 echo "configure:4328: checking for vasprintf declaration" >&5
4328 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
4329 echo $ac_n "(cached) $ac_c" 1>&6
4332 cat > conftest.
$ac_ext <<EOF
4333 #line 4334 "configure"
4334 #include "confdefs.h"
4337 int i = (int)vasprintf
4340 if { (eval echo configure
:4341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4342 ac_cv_have_vasprintf_decl
=yes
4344 echo "configure: failed program was:" >&5
4345 cat conftest.
$ac_ext >&5
4347 ac_cv_have_vasprintf_decl
=no
4352 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
4353 if test x
"$ac_cv_have_vasprintf_decl" = x
"yes"; then
4354 cat >> confdefs.h
<<\EOF
4355 #define HAVE_VASPRINTF_DECL 1
4361 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
4362 echo "configure:4363: checking for vsnprintf declaration" >&5
4363 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
4364 echo $ac_n "(cached) $ac_c" 1>&6
4367 cat > conftest.
$ac_ext <<EOF
4368 #line 4369 "configure"
4369 #include "confdefs.h"
4372 int i = (int)vsnprintf
4375 if { (eval echo configure
:4376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4377 ac_cv_have_vsnprintf_decl
=yes
4379 echo "configure: failed program was:" >&5
4380 cat conftest.
$ac_ext >&5
4382 ac_cv_have_vsnprintf_decl
=no
4387 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
4388 if test x
"$ac_cv_have_vsnprintf_decl" = x
"yes"; then
4389 cat >> confdefs.h
<<\EOF
4390 #define HAVE_VSNPRINTF_DECL 1
4396 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
4397 echo "configure:4398: checking for snprintf declaration" >&5
4398 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
4399 echo $ac_n "(cached) $ac_c" 1>&6
4402 cat > conftest.
$ac_ext <<EOF
4403 #line 4404 "configure"
4404 #include "confdefs.h"
4407 int i = (int)snprintf
4410 if { (eval echo configure
:4411: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4412 ac_cv_have_snprintf_decl
=yes
4414 echo "configure: failed program was:" >&5
4415 cat conftest.
$ac_ext >&5
4417 ac_cv_have_snprintf_decl
=no
4422 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
4423 if test x
"$ac_cv_have_snprintf_decl" = x
"yes"; then
4424 cat >> confdefs.h
<<\EOF
4425 #define HAVE_SNPRINTF_DECL 1
4431 # and glibc has setresuid under linux but the function does
4432 # nothing until kernel 2.1.44! very dumb.
4433 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
4434 echo "configure:4435: checking for real setresuid" >&5
4435 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
4436 echo $ac_n "(cached) $ac_c" 1>&6
4439 if test "$cross_compiling" = yes; then
4440 samba_cv_have_setresuid
=cross
4442 cat > conftest.
$ac_ext <<EOF
4443 #line 4444 "configure"
4444 #include "confdefs.h"
4446 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4448 if { (eval echo configure
:4449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4450 samba_cv_have_setresuid
=yes
4452 echo "configure: failed program was:" >&5
4453 cat conftest.
$ac_ext >&5
4455 samba_cv_have_setresuid
=no
4462 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4463 if test x
"$samba_cv_have_setresuid" = x
"yes"; then
4464 cat >> confdefs.h
<<\EOF
4465 #define HAVE_SETRESUID 1
4470 # Do the same check for setresguid...
4472 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4473 echo "configure:4474: checking for real setresgid" >&5
4474 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4475 echo $ac_n "(cached) $ac_c" 1>&6
4478 if test "$cross_compiling" = yes; then
4479 samba_cv_have_setresgid
=cross
4481 cat > conftest.
$ac_ext <<EOF
4482 #line 4483 "configure"
4483 #include "confdefs.h"
4486 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4488 if { (eval echo configure
:4489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4490 samba_cv_have_setresgid
=yes
4492 echo "configure: failed program was:" >&5
4493 cat conftest.
$ac_ext >&5
4495 samba_cv_have_setresgid
=no
4502 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4503 if test x
"$samba_cv_have_setresgid" = x
"yes"; then
4504 cat >> confdefs.h
<<\EOF
4505 #define HAVE_SETRESGID 1
4510 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4511 echo "configure:4512: checking for 8-bit clean memcmp" >&5
4512 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4513 echo $ac_n "(cached) $ac_c" 1>&6
4515 if test "$cross_compiling" = yes; then
4516 ac_cv_func_memcmp_clean
=no
4518 cat > conftest.
$ac_ext <<EOF
4519 #line 4520 "configure"
4520 #include "confdefs.h"
4524 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4525 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4529 if { (eval echo configure
:4530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4531 ac_cv_func_memcmp_clean
=yes
4533 echo "configure: failed program was:" >&5
4534 cat conftest.
$ac_ext >&5
4536 ac_cv_func_memcmp_clean
=no
4543 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4544 test $ac_cv_func_memcmp_clean = no
&& LIBOBJS
="$LIBOBJS memcmp.${ac_objext}"
4547 ###############################################
4548 # test for where we get crypt() from
4550 echo $ac_n "checking for library containing crypt""... $ac_c" 1>&6
4551 echo "configure:4552: checking for library containing crypt" >&5
4552 if eval "test \"`echo '$''{'ac_cv_search_crypt'+set}'`\" = set"; then
4553 echo $ac_n "(cached) $ac_c" 1>&6
4555 ac_func_search_save_LIBS
="$LIBS"
4556 ac_cv_search_crypt
="no"
4557 cat > conftest.
$ac_ext <<EOF
4558 #line 4559 "configure"
4559 #include "confdefs.h"
4560 /* Override any gcc2 internal prototype to avoid an error. */
4561 /* We use char because int might match the return type of a gcc2
4562 builtin and then its argument prototype would still apply. */
4569 if { (eval echo configure
:4570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4571 ac_cv_search_crypt
="none required"
4573 echo "configure: failed program was:" >&5
4574 cat conftest.
$ac_ext >&5
4577 test "$ac_cv_search_crypt" = "no" && for i
in crypt; do
4578 LIBS
="-l$i $ac_func_search_save_LIBS"
4579 cat > conftest.
$ac_ext <<EOF
4580 #line 4581 "configure"
4581 #include "confdefs.h"
4582 /* Override any gcc2 internal prototype to avoid an error. */
4583 /* We use char because int might match the return type of a gcc2
4584 builtin and then its argument prototype would still apply. */
4591 if { (eval echo configure
:4592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4593 ac_cv_search_crypt
="-l$i"
4596 echo "configure: failed program was:" >&5
4597 cat conftest.
$ac_ext >&5
4601 LIBS
="$ac_func_search_save_LIBS"
4604 echo "$ac_t""$ac_cv_search_crypt" 1>&6
4605 if test "$ac_cv_search_crypt" != "no"; then
4606 test "$ac_cv_search_crypt" = "none required" || LIBS
="$ac_cv_search_crypt $LIBS"
4607 AUTHLIBS
="$AUTHLIBS -lcrypt";
4608 cat >> confdefs.h
<<\EOF
4609 #define HAVE_CRYPT 1
4616 ###############################################
4617 # Readline included by default unless explicitly asked not to
4618 test "${with_readline+set}" != "set" && with_readline
=yes
4620 # test for where we get readline() from
4621 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4622 echo "configure:4623: checking whether to use readline" >&5
4623 # Check whether --with-readline or --without-readline was given.
4624 if test "${with_readline+set}" = set; then
4625 withval
="$with_readline"
4626 case "$with_readline" in
4628 echo "$ac_t""yes" 1>&6
4630 for ac_hdr
in readline.h
history.h readline
/readline.h
4632 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4633 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4634 echo "configure:4635: checking for $ac_hdr" >&5
4635 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4636 echo $ac_n "(cached) $ac_c" 1>&6
4638 cat > conftest.
$ac_ext <<EOF
4639 #line 4640 "configure"
4640 #include "confdefs.h"
4643 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4644 { (eval echo configure
:4645: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4645 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4646 if test -z "$ac_err"; then
4648 eval "ac_cv_header_$ac_safe=yes"
4651 echo "configure: failed program was:" >&5
4652 cat conftest.
$ac_ext >&5
4654 eval "ac_cv_header_$ac_safe=no"
4658 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4659 echo "$ac_t""yes" 1>&6
4660 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4661 cat >> confdefs.h
<<EOF
4662 #define $ac_tr_hdr 1
4666 echo "$ac_t""no" 1>&6
4670 for ac_hdr
in readline
/history.h
4672 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4673 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4674 echo "configure:4675: checking for $ac_hdr" >&5
4675 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4676 echo $ac_n "(cached) $ac_c" 1>&6
4678 cat > conftest.
$ac_ext <<EOF
4679 #line 4680 "configure"
4680 #include "confdefs.h"
4683 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4684 { (eval echo configure
:4685: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4685 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4686 if test -z "$ac_err"; then
4688 eval "ac_cv_header_$ac_safe=yes"
4691 echo "configure: failed program was:" >&5
4692 cat conftest.
$ac_ext >&5
4694 eval "ac_cv_header_$ac_safe=no"
4698 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4699 echo "$ac_t""yes" 1>&6
4700 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4701 cat >> confdefs.h
<<EOF
4702 #define $ac_tr_hdr 1
4706 echo "$ac_t""no" 1>&6
4711 for ac_hdr
in readline.h readline
/readline.h
4713 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4714 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4715 echo "configure:4716: checking for $ac_hdr" >&5
4716 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4717 echo $ac_n "(cached) $ac_c" 1>&6
4719 cat > conftest.
$ac_ext <<EOF
4720 #line 4721 "configure"
4721 #include "confdefs.h"
4724 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4725 { (eval echo configure
:4726: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4726 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4727 if test -z "$ac_err"; then
4729 eval "ac_cv_header_$ac_safe=yes"
4732 echo "configure: failed program was:" >&5
4733 cat conftest.
$ac_ext >&5
4735 eval "ac_cv_header_$ac_safe=no"
4739 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4740 echo "$ac_t""yes" 1>&6
4741 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4742 cat >> confdefs.h
<<EOF
4743 #define $ac_tr_hdr 1
4746 for termlib
in ncurses curses termcap terminfo termlib
; do
4747 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4748 echo "configure:4749: checking for tgetent in -l${termlib}" >&5
4749 ac_lib_var
=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4750 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4751 echo $ac_n "(cached) $ac_c" 1>&6
4753 ac_save_LIBS
="$LIBS"
4754 LIBS
="-l${termlib} $LIBS"
4755 cat > conftest.
$ac_ext <<EOF
4756 #line 4757 "configure"
4757 #include "confdefs.h"
4758 /* Override any gcc2 internal prototype to avoid an error. */
4759 /* We use char because int might match the return type of a gcc2
4760 builtin and then its argument prototype would still apply. */
4767 if { (eval echo configure
:4768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4769 eval "ac_cv_lib_$ac_lib_var=yes"
4771 echo "configure: failed program was:" >&5
4772 cat conftest.
$ac_ext >&5
4774 eval "ac_cv_lib_$ac_lib_var=no"
4777 LIBS
="$ac_save_LIBS"
4780 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4781 echo "$ac_t""yes" 1>&6
4782 TERMLIBS
="-l${termlib}"; break
4784 echo "$ac_t""no" 1>&6
4788 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4789 echo "configure:4790: checking for rl_callback_handler_install in -lreadline" >&5
4790 ac_lib_var
=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4791 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4792 echo $ac_n "(cached) $ac_c" 1>&6
4794 ac_save_LIBS
="$LIBS"
4795 LIBS
="-lreadline $TERMLIBS $LIBS"
4796 cat > conftest.
$ac_ext <<EOF
4797 #line 4798 "configure"
4798 #include "confdefs.h"
4799 /* Override any gcc2 internal prototype to avoid an error. */
4800 /* We use char because int might match the return type of a gcc2
4801 builtin and then its argument prototype would still apply. */
4802 char rl_callback_handler_install();
4805 rl_callback_handler_install()
4808 if { (eval echo configure
:4809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4810 eval "ac_cv_lib_$ac_lib_var=yes"
4812 echo "configure: failed program was:" >&5
4813 cat conftest.
$ac_ext >&5
4815 eval "ac_cv_lib_$ac_lib_var=no"
4818 LIBS
="$ac_save_LIBS"
4821 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4822 echo "$ac_t""yes" 1>&6
4823 TERMLIBS
="-lreadline $TERMLIBS"
4824 cat >> confdefs.h
<<\EOF
4825 #define HAVE_LIBREADLINE 1
4830 echo "$ac_t""no" 1>&6
4835 echo "$ac_t""no" 1>&6
4841 echo "$ac_t""no" 1>&6
4844 echo "$ac_t""yes" 1>&6
4846 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4847 # alternate readline path
4849 _cppflags
=${CPPFLAGS}
4851 # Add additional search path
4852 LDFLAGS
="-L$with_readline/lib $LDFLAGS"
4853 CPPFLAGS
="-I$with_readline/include $CPPFLAGS"
4855 for ac_hdr
in readline.h
history.h readline
/readline.h
4857 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4858 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4859 echo "configure:4860: checking for $ac_hdr" >&5
4860 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4861 echo $ac_n "(cached) $ac_c" 1>&6
4863 cat > conftest.
$ac_ext <<EOF
4864 #line 4865 "configure"
4865 #include "confdefs.h"
4868 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4869 { (eval echo configure
:4870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4870 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4871 if test -z "$ac_err"; then
4873 eval "ac_cv_header_$ac_safe=yes"
4876 echo "configure: failed program was:" >&5
4877 cat conftest.
$ac_ext >&5
4879 eval "ac_cv_header_$ac_safe=no"
4883 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4884 echo "$ac_t""yes" 1>&6
4885 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4886 cat >> confdefs.h
<<EOF
4887 #define $ac_tr_hdr 1
4891 echo "$ac_t""no" 1>&6
4895 for ac_hdr
in readline
/history.h
4897 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4898 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4899 echo "configure:4900: checking for $ac_hdr" >&5
4900 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4901 echo $ac_n "(cached) $ac_c" 1>&6
4903 cat > conftest.
$ac_ext <<EOF
4904 #line 4905 "configure"
4905 #include "confdefs.h"
4908 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4909 { (eval echo configure
:4910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4910 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4911 if test -z "$ac_err"; then
4913 eval "ac_cv_header_$ac_safe=yes"
4916 echo "configure: failed program was:" >&5
4917 cat conftest.
$ac_ext >&5
4919 eval "ac_cv_header_$ac_safe=no"
4923 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4924 echo "$ac_t""yes" 1>&6
4925 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4926 cat >> confdefs.h
<<EOF
4927 #define $ac_tr_hdr 1
4931 echo "$ac_t""no" 1>&6
4936 for ac_hdr
in readline.h readline
/readline.h
4938 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4939 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4940 echo "configure:4941: checking for $ac_hdr" >&5
4941 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4942 echo $ac_n "(cached) $ac_c" 1>&6
4944 cat > conftest.
$ac_ext <<EOF
4945 #line 4946 "configure"
4946 #include "confdefs.h"
4949 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4950 { (eval echo configure
:4951: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4951 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4952 if test -z "$ac_err"; then
4954 eval "ac_cv_header_$ac_safe=yes"
4957 echo "configure: failed program was:" >&5
4958 cat conftest.
$ac_ext >&5
4960 eval "ac_cv_header_$ac_safe=no"
4964 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4965 echo "$ac_t""yes" 1>&6
4966 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4967 cat >> confdefs.h
<<EOF
4968 #define $ac_tr_hdr 1
4971 for termlib
in ncurses curses termcap terminfo termlib
; do
4972 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4973 echo "configure:4974: checking for tgetent in -l${termlib}" >&5
4974 ac_lib_var
=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4975 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4976 echo $ac_n "(cached) $ac_c" 1>&6
4978 ac_save_LIBS
="$LIBS"
4979 LIBS
="-l${termlib} $LIBS"
4980 cat > conftest.
$ac_ext <<EOF
4981 #line 4982 "configure"
4982 #include "confdefs.h"
4983 /* Override any gcc2 internal prototype to avoid an error. */
4984 /* We use char because int might match the return type of a gcc2
4985 builtin and then its argument prototype would still apply. */
4992 if { (eval echo configure
:4993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4994 eval "ac_cv_lib_$ac_lib_var=yes"
4996 echo "configure: failed program was:" >&5
4997 cat conftest.
$ac_ext >&5
4999 eval "ac_cv_lib_$ac_lib_var=no"
5002 LIBS
="$ac_save_LIBS"
5005 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5006 echo "$ac_t""yes" 1>&6
5007 TERMLIBS
="-l${termlib}"; break
5009 echo "$ac_t""no" 1>&6
5013 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
5014 echo "configure:5015: checking for rl_callback_handler_install in -lreadline" >&5
5015 ac_lib_var
=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
5016 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5017 echo $ac_n "(cached) $ac_c" 1>&6
5019 ac_save_LIBS
="$LIBS"
5020 LIBS
="-lreadline $TERMLIBS $LIBS"
5021 cat > conftest.
$ac_ext <<EOF
5022 #line 5023 "configure"
5023 #include "confdefs.h"
5024 /* Override any gcc2 internal prototype to avoid an error. */
5025 /* We use char because int might match the return type of a gcc2
5026 builtin and then its argument prototype would still apply. */
5027 char rl_callback_handler_install();
5030 rl_callback_handler_install()
5033 if { (eval echo configure
:5034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5035 eval "ac_cv_lib_$ac_lib_var=yes"
5037 echo "configure: failed program was:" >&5
5038 cat conftest.
$ac_ext >&5
5040 eval "ac_cv_lib_$ac_lib_var=no"
5043 LIBS
="$ac_save_LIBS"
5046 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5047 echo "$ac_t""yes" 1>&6
5048 TERMLDFLAGS
="-L$with_readline/lib"
5049 TERMCPPFLAGS
="-I$with_readline/include"
5050 CPPFLAGS
="-I$with_readline/include $CPPFLAGS"
5051 TERMLIBS
="-lreadline $TERMLIBS"
5052 cat >> confdefs.h
<<\EOF
5053 #define HAVE_LIBREADLINE 1
5058 echo "$ac_t""no" 1>&6
5059 TERMLIBS
= CPPFLAGS
=$_cppflags
5063 echo "$ac_t""no" 1>&6
5072 echo "$ac_t""no" 1>&6
5079 # The readline API changed slightly from readline3 to readline4, so
5080 # code will generate warnings on one of them unless we have a few
5082 echo $ac_n "checking for rl_completion_matches in -lreadline""... $ac_c" 1>&6
5083 echo "configure:5084: checking for rl_completion_matches in -lreadline" >&5
5084 ac_lib_var
=`echo readline'_'rl_completion_matches | sed 'y%./+-%__p_%'`
5085 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5086 echo $ac_n "(cached) $ac_c" 1>&6
5088 ac_save_LIBS
="$LIBS"
5089 LIBS
="-lreadline $TERMLIBS $LIBS"
5090 cat > conftest.
$ac_ext <<EOF
5091 #line 5092 "configure"
5092 #include "confdefs.h"
5093 /* Override any gcc2 internal prototype to avoid an error. */
5094 /* We use char because int might match the return type of a gcc2
5095 builtin and then its argument prototype would still apply. */
5096 char rl_completion_matches();
5099 rl_completion_matches()
5102 if { (eval echo configure
:5103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5104 eval "ac_cv_lib_$ac_lib_var=yes"
5106 echo "configure: failed program was:" >&5
5107 cat conftest.
$ac_ext >&5
5109 eval "ac_cv_lib_$ac_lib_var=no"
5112 LIBS
="$ac_save_LIBS"
5115 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5116 echo "$ac_t""yes" 1>&6
5117 cat >> confdefs.h
<<\EOF
5118 #define HAVE_NEW_LIBREADLINE 1
5122 echo "$ac_t""no" 1>&6
5126 # The following test taken from the cvs sources
5127 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
5128 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
5129 # libsocket.so which has a bad implementation of gethostbyname (it
5130 # only looks in /etc/hosts), so we only look for -lsocket if we need
5132 for ac_func
in connect
5134 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5135 echo "configure:5136: checking for $ac_func" >&5
5136 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5137 echo $ac_n "(cached) $ac_c" 1>&6
5139 cat > conftest.
$ac_ext <<EOF
5140 #line 5141 "configure"
5141 #include "confdefs.h"
5142 /* System header to define __stub macros and hopefully few prototypes,
5143 which can conflict with char $ac_func(); below. */
5145 /* Override any gcc2 internal prototype to avoid an error. */
5146 /* We use char because int might match the return type of a gcc2
5147 builtin and then its argument prototype would still apply. */
5152 /* The GNU C library defines this for functions which it implements
5153 to always fail with ENOSYS. Some functions are actually named
5154 something starting with __ and the normal name is an alias. */
5155 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5163 if { (eval echo configure
:5164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5165 eval "ac_cv_func_$ac_func=yes"
5167 echo "configure: failed program was:" >&5
5168 cat conftest.
$ac_ext >&5
5170 eval "ac_cv_func_$ac_func=no"
5175 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5176 echo "$ac_t""yes" 1>&6
5177 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5178 cat >> confdefs.h
<<EOF
5179 #define $ac_tr_func 1
5183 echo "$ac_t""no" 1>&6
5187 if test x
"$ac_cv_func_connect" = x
"no"; then
5190 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
5191 echo "configure:5192: checking for printf in -lnsl_s" >&5
5192 ac_lib_var
=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
5193 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5194 echo $ac_n "(cached) $ac_c" 1>&6
5196 ac_save_LIBS
="$LIBS"
5197 LIBS
="-lnsl_s $LIBS"
5198 cat > conftest.
$ac_ext <<EOF
5199 #line 5200 "configure"
5200 #include "confdefs.h"
5201 /* Override any gcc2 internal prototype to avoid an error. */
5202 /* We use char because int might match the return type of a gcc2
5203 builtin and then its argument prototype would still apply. */
5210 if { (eval echo configure
:5211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5212 eval "ac_cv_lib_$ac_lib_var=yes"
5214 echo "configure: failed program was:" >&5
5215 cat conftest.
$ac_ext >&5
5217 eval "ac_cv_lib_$ac_lib_var=no"
5220 LIBS
="$ac_save_LIBS"
5223 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5224 echo "$ac_t""yes" 1>&6
5225 ac_tr_lib
=HAVE_LIB
`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5226 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5227 cat >> confdefs.h
<<EOF
5228 #define $ac_tr_lib 1
5231 LIBS
="-lnsl_s $LIBS"
5234 echo "$ac_t""no" 1>&6
5240 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
5241 echo "configure:5242: checking for printf in -lnsl" >&5
5242 ac_lib_var
=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
5243 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5244 echo $ac_n "(cached) $ac_c" 1>&6
5246 ac_save_LIBS
="$LIBS"
5248 cat > conftest.
$ac_ext <<EOF
5249 #line 5250 "configure"
5250 #include "confdefs.h"
5251 /* Override any gcc2 internal prototype to avoid an error. */
5252 /* We use char because int might match the return type of a gcc2
5253 builtin and then its argument prototype would still apply. */
5260 if { (eval echo configure
:5261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5262 eval "ac_cv_lib_$ac_lib_var=yes"
5264 echo "configure: failed program was:" >&5
5265 cat conftest.
$ac_ext >&5
5267 eval "ac_cv_lib_$ac_lib_var=no"
5270 LIBS
="$ac_save_LIBS"
5273 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5274 echo "$ac_t""yes" 1>&6
5275 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5276 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5277 cat >> confdefs.h
<<EOF
5278 #define $ac_tr_lib 1
5284 echo "$ac_t""no" 1>&6
5290 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
5291 echo "configure:5292: checking for connect in -lsocket" >&5
5292 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5293 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5294 echo $ac_n "(cached) $ac_c" 1>&6
5296 ac_save_LIBS
="$LIBS"
5297 LIBS
="-lsocket $LIBS"
5298 cat > conftest.
$ac_ext <<EOF
5299 #line 5300 "configure"
5300 #include "confdefs.h"
5301 /* Override any gcc2 internal prototype to avoid an error. */
5302 /* We use char because int might match the return type of a gcc2
5303 builtin and then its argument prototype would still apply. */
5310 if { (eval echo configure
:5311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5312 eval "ac_cv_lib_$ac_lib_var=yes"
5314 echo "configure: failed program was:" >&5
5315 cat conftest.
$ac_ext >&5
5317 eval "ac_cv_lib_$ac_lib_var=no"
5320 LIBS
="$ac_save_LIBS"
5323 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5324 echo "$ac_t""yes" 1>&6
5325 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5326 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5327 cat >> confdefs.h
<<EOF
5328 #define $ac_tr_lib 1
5331 LIBS
="-lsocket $LIBS"
5334 echo "$ac_t""no" 1>&6
5340 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
5341 echo "configure:5342: checking for connect in -linet" >&5
5342 ac_lib_var
=`echo inet'_'connect | sed 'y%./+-%__p_%'`
5343 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5344 echo $ac_n "(cached) $ac_c" 1>&6
5346 ac_save_LIBS
="$LIBS"
5348 cat > conftest.
$ac_ext <<EOF
5349 #line 5350 "configure"
5350 #include "confdefs.h"
5351 /* Override any gcc2 internal prototype to avoid an error. */
5352 /* We use char because int might match the return type of a gcc2
5353 builtin and then its argument prototype would still apply. */
5360 if { (eval echo configure
:5361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5362 eval "ac_cv_lib_$ac_lib_var=yes"
5364 echo "configure: failed program was:" >&5
5365 cat conftest.
$ac_ext >&5
5367 eval "ac_cv_lib_$ac_lib_var=no"
5370 LIBS
="$ac_save_LIBS"
5373 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5374 echo "$ac_t""yes" 1>&6
5375 ac_tr_lib
=HAVE_LIB
`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5376 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5377 cat >> confdefs.h
<<EOF
5378 #define $ac_tr_lib 1
5384 echo "$ac_t""no" 1>&6
5388 if test x
"$ac_cv_lib_socket_connect" = x
"yes" ||
5389 test x
"$ac_cv_lib_inet_connect" = x
"yes"; then
5390 # ac_cv_func_connect=yes
5391 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
5392 cat >> confdefs.h
<<\EOF
5393 #define HAVE_CONNECT 1
5399 ###############################################
5400 # test for where we get yp_get_default_domain() from
5402 echo $ac_n "checking for library containing yp_get_default_domain""... $ac_c" 1>&6
5403 echo "configure:5404: checking for library containing yp_get_default_domain" >&5
5404 if eval "test \"`echo '$''{'ac_cv_search_yp_get_default_domain'+set}'`\" = set"; then
5405 echo $ac_n "(cached) $ac_c" 1>&6
5407 ac_func_search_save_LIBS
="$LIBS"
5408 ac_cv_search_yp_get_default_domain
="no"
5409 cat > conftest.
$ac_ext <<EOF
5410 #line 5411 "configure"
5411 #include "confdefs.h"
5412 /* Override any gcc2 internal prototype to avoid an error. */
5413 /* We use char because int might match the return type of a gcc2
5414 builtin and then its argument prototype would still apply. */
5415 char yp_get_default_domain();
5418 yp_get_default_domain()
5421 if { (eval echo configure
:5422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5423 ac_cv_search_yp_get_default_domain
="none required"
5425 echo "configure: failed program was:" >&5
5426 cat conftest.
$ac_ext >&5
5429 test "$ac_cv_search_yp_get_default_domain" = "no" && for i
in nsl
; do
5430 LIBS
="-l$i $ac_func_search_save_LIBS"
5431 cat > conftest.
$ac_ext <<EOF
5432 #line 5433 "configure"
5433 #include "confdefs.h"
5434 /* Override any gcc2 internal prototype to avoid an error. */
5435 /* We use char because int might match the return type of a gcc2
5436 builtin and then its argument prototype would still apply. */
5437 char yp_get_default_domain();
5440 yp_get_default_domain()
5443 if { (eval echo configure
:5444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5445 ac_cv_search_yp_get_default_domain
="-l$i"
5448 echo "configure: failed program was:" >&5
5449 cat conftest.
$ac_ext >&5
5453 LIBS
="$ac_func_search_save_LIBS"
5456 echo "$ac_t""$ac_cv_search_yp_get_default_domain" 1>&6
5457 if test "$ac_cv_search_yp_get_default_domain" != "no"; then
5458 test "$ac_cv_search_yp_get_default_domain" = "none required" || LIBS
="$ac_cv_search_yp_get_default_domain $LIBS"
5463 for ac_func
in yp_get_default_domain
5465 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5466 echo "configure:5467: checking for $ac_func" >&5
5467 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5468 echo $ac_n "(cached) $ac_c" 1>&6
5470 cat > conftest.
$ac_ext <<EOF
5471 #line 5472 "configure"
5472 #include "confdefs.h"
5473 /* System header to define __stub macros and hopefully few prototypes,
5474 which can conflict with char $ac_func(); below. */
5476 /* Override any gcc2 internal prototype to avoid an error. */
5477 /* We use char because int might match the return type of a gcc2
5478 builtin and then its argument prototype would still apply. */
5483 /* The GNU C library defines this for functions which it implements
5484 to always fail with ENOSYS. Some functions are actually named
5485 something starting with __ and the normal name is an alias. */
5486 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5494 if { (eval echo configure
:5495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5496 eval "ac_cv_func_$ac_func=yes"
5498 echo "configure: failed program was:" >&5
5499 cat conftest.
$ac_ext >&5
5501 eval "ac_cv_func_$ac_func=no"
5506 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5507 echo "$ac_t""yes" 1>&6
5508 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5509 cat >> confdefs.h
<<EOF
5510 #define $ac_tr_func 1
5514 echo "$ac_t""no" 1>&6
5519 # Check if we have execl, if not we need to compile smbrun.
5520 for ac_func
in execl
5522 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5523 echo "configure:5524: checking for $ac_func" >&5
5524 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5525 echo $ac_n "(cached) $ac_c" 1>&6
5527 cat > conftest.
$ac_ext <<EOF
5528 #line 5529 "configure"
5529 #include "confdefs.h"
5530 /* System header to define __stub macros and hopefully few prototypes,
5531 which can conflict with char $ac_func(); below. */
5533 /* Override any gcc2 internal prototype to avoid an error. */
5534 /* We use char because int might match the return type of a gcc2
5535 builtin and then its argument prototype would still apply. */
5540 /* The GNU C library defines this for functions which it implements
5541 to always fail with ENOSYS. Some functions are actually named
5542 something starting with __ and the normal name is an alias. */
5543 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5551 if { (eval echo configure
:5552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5553 eval "ac_cv_func_$ac_func=yes"
5555 echo "configure: failed program was:" >&5
5556 cat conftest.
$ac_ext >&5
5558 eval "ac_cv_func_$ac_func=no"
5563 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5564 echo "$ac_t""yes" 1>&6
5565 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5566 cat >> confdefs.h
<<EOF
5567 #define $ac_tr_func 1
5571 echo "$ac_t""no" 1>&6
5575 if test x
"$ac_cv_func_execl" = x
"no"; then
5576 EXTRA_BIN_PROGS
="$EXTRA_BIN_PROGS bin/smbrun\$(EXEEXT)"
5579 for ac_func
in dlopen dlclose dlsym dlerror waitpid getcwd strdup strndup strnlen strtoul strerror chown fchown
chmod fchmod chroot link mknod mknod64
5581 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5582 echo "configure:5583: checking for $ac_func" >&5
5583 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5584 echo $ac_n "(cached) $ac_c" 1>&6
5586 cat > conftest.
$ac_ext <<EOF
5587 #line 5588 "configure"
5588 #include "confdefs.h"
5589 /* System header to define __stub macros and hopefully few prototypes,
5590 which can conflict with char $ac_func(); below. */
5592 /* Override any gcc2 internal prototype to avoid an error. */
5593 /* We use char because int might match the return type of a gcc2
5594 builtin and then its argument prototype would still apply. */
5599 /* The GNU C library defines this for functions which it implements
5600 to always fail with ENOSYS. Some functions are actually named
5601 something starting with __ and the normal name is an alias. */
5602 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5610 if { (eval echo configure
:5611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5612 eval "ac_cv_func_$ac_func=yes"
5614 echo "configure: failed program was:" >&5
5615 cat conftest.
$ac_ext >&5
5617 eval "ac_cv_func_$ac_func=no"
5622 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5623 echo "$ac_t""yes" 1>&6
5624 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5625 cat >> confdefs.h
<<EOF
5626 #define $ac_tr_func 1
5630 echo "$ac_t""no" 1>&6
5634 for ac_func
in fstat strchr utime utimes getrlimit fsync bzero memset strlcpy strlcat setpgid
5636 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5637 echo "configure:5638: checking for $ac_func" >&5
5638 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5639 echo $ac_n "(cached) $ac_c" 1>&6
5641 cat > conftest.
$ac_ext <<EOF
5642 #line 5643 "configure"
5643 #include "confdefs.h"
5644 /* System header to define __stub macros and hopefully few prototypes,
5645 which can conflict with char $ac_func(); below. */
5647 /* Override any gcc2 internal prototype to avoid an error. */
5648 /* We use char because int might match the return type of a gcc2
5649 builtin and then its argument prototype would still apply. */
5654 /* The GNU C library defines this for functions which it implements
5655 to always fail with ENOSYS. Some functions are actually named
5656 something starting with __ and the normal name is an alias. */
5657 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5665 if { (eval echo configure
:5666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5667 eval "ac_cv_func_$ac_func=yes"
5669 echo "configure: failed program was:" >&5
5670 cat conftest.
$ac_ext >&5
5672 eval "ac_cv_func_$ac_func=no"
5677 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5678 echo "$ac_t""yes" 1>&6
5679 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5680 cat >> confdefs.h
<<EOF
5681 #define $ac_tr_func 1
5685 echo "$ac_t""no" 1>&6
5689 for ac_func
in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5691 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5692 echo "configure:5693: checking for $ac_func" >&5
5693 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5694 echo $ac_n "(cached) $ac_c" 1>&6
5696 cat > conftest.
$ac_ext <<EOF
5697 #line 5698 "configure"
5698 #include "confdefs.h"
5699 /* System header to define __stub macros and hopefully few prototypes,
5700 which can conflict with char $ac_func(); below. */
5702 /* Override any gcc2 internal prototype to avoid an error. */
5703 /* We use char because int might match the return type of a gcc2
5704 builtin and then its argument prototype would still apply. */
5709 /* The GNU C library defines this for functions which it implements
5710 to always fail with ENOSYS. Some functions are actually named
5711 something starting with __ and the normal name is an alias. */
5712 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5720 if { (eval echo configure
:5721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5722 eval "ac_cv_func_$ac_func=yes"
5724 echo "configure: failed program was:" >&5
5725 cat conftest.
$ac_ext >&5
5727 eval "ac_cv_func_$ac_func=no"
5732 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5733 echo "$ac_t""yes" 1>&6
5734 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5735 cat >> confdefs.h
<<EOF
5736 #define $ac_tr_func 1
5740 echo "$ac_t""no" 1>&6
5744 for ac_func
in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
5746 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5747 echo "configure:5748: checking for $ac_func" >&5
5748 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5749 echo $ac_n "(cached) $ac_c" 1>&6
5751 cat > conftest.
$ac_ext <<EOF
5752 #line 5753 "configure"
5753 #include "confdefs.h"
5754 /* System header to define __stub macros and hopefully few prototypes,
5755 which can conflict with char $ac_func(); below. */
5757 /* Override any gcc2 internal prototype to avoid an error. */
5758 /* We use char because int might match the return type of a gcc2
5759 builtin and then its argument prototype would still apply. */
5764 /* The GNU C library defines this for functions which it implements
5765 to always fail with ENOSYS. Some functions are actually named
5766 something starting with __ and the normal name is an alias. */
5767 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5775 if { (eval echo configure
:5776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5777 eval "ac_cv_func_$ac_func=yes"
5779 echo "configure: failed program was:" >&5
5780 cat conftest.
$ac_ext >&5
5782 eval "ac_cv_func_$ac_func=no"
5787 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5788 echo "$ac_t""yes" 1>&6
5789 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5790 cat >> confdefs.h
<<EOF
5791 #define $ac_tr_func 1
5795 echo "$ac_t""no" 1>&6
5799 for ac_func
in initgroups
select poll rdchk getgrnam getgrent pathconf realpath
5801 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5802 echo "configure:5803: checking for $ac_func" >&5
5803 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5804 echo $ac_n "(cached) $ac_c" 1>&6
5806 cat > conftest.
$ac_ext <<EOF
5807 #line 5808 "configure"
5808 #include "confdefs.h"
5809 /* System header to define __stub macros and hopefully few prototypes,
5810 which can conflict with char $ac_func(); below. */
5812 /* Override any gcc2 internal prototype to avoid an error. */
5813 /* We use char because int might match the return type of a gcc2
5814 builtin and then its argument prototype would still apply. */
5819 /* The GNU C library defines this for functions which it implements
5820 to always fail with ENOSYS. Some functions are actually named
5821 something starting with __ and the normal name is an alias. */
5822 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5830 if { (eval echo configure
:5831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5832 eval "ac_cv_func_$ac_func=yes"
5834 echo "configure: failed program was:" >&5
5835 cat conftest.
$ac_ext >&5
5837 eval "ac_cv_func_$ac_func=no"
5842 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5843 echo "$ac_t""yes" 1>&6
5844 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5845 cat >> confdefs.h
<<EOF
5846 #define $ac_tr_func 1
5850 echo "$ac_t""no" 1>&6
5854 for ac_func
in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5856 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5857 echo "configure:5858: checking for $ac_func" >&5
5858 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5859 echo $ac_n "(cached) $ac_c" 1>&6
5861 cat > conftest.
$ac_ext <<EOF
5862 #line 5863 "configure"
5863 #include "confdefs.h"
5864 /* System header to define __stub macros and hopefully few prototypes,
5865 which can conflict with char $ac_func(); below. */
5867 /* Override any gcc2 internal prototype to avoid an error. */
5868 /* We use char because int might match the return type of a gcc2
5869 builtin and then its argument prototype would still apply. */
5874 /* The GNU C library defines this for functions which it implements
5875 to always fail with ENOSYS. Some functions are actually named
5876 something starting with __ and the normal name is an alias. */
5877 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5885 if { (eval echo configure
:5886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5887 eval "ac_cv_func_$ac_func=yes"
5889 echo "configure: failed program was:" >&5
5890 cat conftest.
$ac_ext >&5
5892 eval "ac_cv_func_$ac_func=no"
5897 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5898 echo "$ac_t""yes" 1>&6
5899 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5900 cat >> confdefs.h
<<EOF
5901 #define $ac_tr_func 1
5905 echo "$ac_t""no" 1>&6
5909 for ac_func
in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5911 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5912 echo "configure:5913: checking for $ac_func" >&5
5913 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5914 echo $ac_n "(cached) $ac_c" 1>&6
5916 cat > conftest.
$ac_ext <<EOF
5917 #line 5918 "configure"
5918 #include "confdefs.h"
5919 /* System header to define __stub macros and hopefully few prototypes,
5920 which can conflict with char $ac_func(); below. */
5922 /* Override any gcc2 internal prototype to avoid an error. */
5923 /* We use char because int might match the return type of a gcc2
5924 builtin and then its argument prototype would still apply. */
5929 /* The GNU C library defines this for functions which it implements
5930 to always fail with ENOSYS. Some functions are actually named
5931 something starting with __ and the normal name is an alias. */
5932 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5940 if { (eval echo configure
:5941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5942 eval "ac_cv_func_$ac_func=yes"
5944 echo "configure: failed program was:" >&5
5945 cat conftest.
$ac_ext >&5
5947 eval "ac_cv_func_$ac_func=no"
5952 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5953 echo "$ac_t""yes" 1>&6
5954 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5955 cat >> confdefs.h
<<EOF
5956 #define $ac_tr_func 1
5960 echo "$ac_t""no" 1>&6
5964 for ac_func
in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5966 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5967 echo "configure:5968: checking for $ac_func" >&5
5968 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5969 echo $ac_n "(cached) $ac_c" 1>&6
5971 cat > conftest.
$ac_ext <<EOF
5972 #line 5973 "configure"
5973 #include "confdefs.h"
5974 /* System header to define __stub macros and hopefully few prototypes,
5975 which can conflict with char $ac_func(); below. */
5977 /* Override any gcc2 internal prototype to avoid an error. */
5978 /* We use char because int might match the return type of a gcc2
5979 builtin and then its argument prototype would still apply. */
5984 /* The GNU C library defines this for functions which it implements
5985 to always fail with ENOSYS. Some functions are actually named
5986 something starting with __ and the normal name is an alias. */
5987 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5995 if { (eval echo configure
:5996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5997 eval "ac_cv_func_$ac_func=yes"
5999 echo "configure: failed program was:" >&5
6000 cat conftest.
$ac_ext >&5
6002 eval "ac_cv_func_$ac_func=no"
6007 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6008 echo "$ac_t""yes" 1>&6
6009 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6010 cat >> confdefs.h
<<EOF
6011 #define $ac_tr_func 1
6015 echo "$ac_t""no" 1>&6
6019 for ac_func
in srandom random srand rand setenv
usleep strcasecmp fcvt fcvtl symlink readlink
6021 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6022 echo "configure:6023: checking for $ac_func" >&5
6023 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6024 echo $ac_n "(cached) $ac_c" 1>&6
6026 cat > conftest.
$ac_ext <<EOF
6027 #line 6028 "configure"
6028 #include "confdefs.h"
6029 /* System header to define __stub macros and hopefully few prototypes,
6030 which can conflict with char $ac_func(); below. */
6032 /* Override any gcc2 internal prototype to avoid an error. */
6033 /* We use char because int might match the return type of a gcc2
6034 builtin and then its argument prototype would still apply. */
6039 /* The GNU C library defines this for functions which it implements
6040 to always fail with ENOSYS. Some functions are actually named
6041 something starting with __ and the normal name is an alias. */
6042 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6050 if { (eval echo configure
:6051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6052 eval "ac_cv_func_$ac_func=yes"
6054 echo "configure: failed program was:" >&5
6055 cat conftest.
$ac_ext >&5
6057 eval "ac_cv_func_$ac_func=no"
6062 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6063 echo "$ac_t""yes" 1>&6
6064 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6065 cat >> confdefs.h
<<EOF
6066 #define $ac_tr_func 1
6070 echo "$ac_t""no" 1>&6
6074 for ac_func
in syslog vsyslog getgrouplist timegm
6076 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6077 echo "configure:6078: checking for $ac_func" >&5
6078 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6079 echo $ac_n "(cached) $ac_c" 1>&6
6081 cat > conftest.
$ac_ext <<EOF
6082 #line 6083 "configure"
6083 #include "confdefs.h"
6084 /* System header to define __stub macros and hopefully few prototypes,
6085 which can conflict with char $ac_func(); below. */
6087 /* Override any gcc2 internal prototype to avoid an error. */
6088 /* We use char because int might match the return type of a gcc2
6089 builtin and then its argument prototype would still apply. */
6094 /* The GNU C library defines this for functions which it implements
6095 to always fail with ENOSYS. Some functions are actually named
6096 something starting with __ and the normal name is an alias. */
6097 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6105 if { (eval echo configure
:6106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6107 eval "ac_cv_func_$ac_func=yes"
6109 echo "configure: failed program was:" >&5
6110 cat conftest.
$ac_ext >&5
6112 eval "ac_cv_func_$ac_func=no"
6117 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6118 echo "$ac_t""yes" 1>&6
6119 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6120 cat >> confdefs.h
<<EOF
6121 #define $ac_tr_func 1
6125 echo "$ac_t""no" 1>&6
6129 # setbuffer, shmget, shm_open are needed for smbtorture
6130 for ac_func
in setbuffer shmget shm_open
6132 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6133 echo "configure:6134: checking for $ac_func" >&5
6134 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6135 echo $ac_n "(cached) $ac_c" 1>&6
6137 cat > conftest.
$ac_ext <<EOF
6138 #line 6139 "configure"
6139 #include "confdefs.h"
6140 /* System header to define __stub macros and hopefully few prototypes,
6141 which can conflict with char $ac_func(); below. */
6143 /* Override any gcc2 internal prototype to avoid an error. */
6144 /* We use char because int might match the return type of a gcc2
6145 builtin and then its argument prototype would still apply. */
6150 /* The GNU C library defines this for functions which it implements
6151 to always fail with ENOSYS. Some functions are actually named
6152 something starting with __ and the normal name is an alias. */
6153 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6161 if { (eval echo configure
:6162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6163 eval "ac_cv_func_$ac_func=yes"
6165 echo "configure: failed program was:" >&5
6166 cat conftest.
$ac_ext >&5
6168 eval "ac_cv_func_$ac_func=no"
6173 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6174 echo "$ac_t""yes" 1>&6
6175 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6176 cat >> confdefs.h
<<EOF
6177 #define $ac_tr_func 1
6181 echo "$ac_t""no" 1>&6
6186 # syscall() is needed for smbwrapper.
6187 for ac_func
in syscall
6189 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6190 echo "configure:6191: checking for $ac_func" >&5
6191 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6192 echo $ac_n "(cached) $ac_c" 1>&6
6194 cat > conftest.
$ac_ext <<EOF
6195 #line 6196 "configure"
6196 #include "confdefs.h"
6197 /* System header to define __stub macros and hopefully few prototypes,
6198 which can conflict with char $ac_func(); below. */
6200 /* Override any gcc2 internal prototype to avoid an error. */
6201 /* We use char because int might match the return type of a gcc2
6202 builtin and then its argument prototype would still apply. */
6207 /* The GNU C library defines this for functions which it implements
6208 to always fail with ENOSYS. Some functions are actually named
6209 something starting with __ and the normal name is an alias. */
6210 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6218 if { (eval echo configure
:6219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6220 eval "ac_cv_func_$ac_func=yes"
6222 echo "configure: failed program was:" >&5
6223 cat conftest.
$ac_ext >&5
6225 eval "ac_cv_func_$ac_func=no"
6230 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6231 echo "$ac_t""yes" 1>&6
6232 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6233 cat >> confdefs.h
<<EOF
6234 #define $ac_tr_func 1
6238 echo "$ac_t""no" 1>&6
6243 for ac_func
in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
6245 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6246 echo "configure:6247: checking for $ac_func" >&5
6247 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6248 echo $ac_n "(cached) $ac_c" 1>&6
6250 cat > conftest.
$ac_ext <<EOF
6251 #line 6252 "configure"
6252 #include "confdefs.h"
6253 /* System header to define __stub macros and hopefully few prototypes,
6254 which can conflict with char $ac_func(); below. */
6256 /* Override any gcc2 internal prototype to avoid an error. */
6257 /* We use char because int might match the return type of a gcc2
6258 builtin and then its argument prototype would still apply. */
6263 /* The GNU C library defines this for functions which it implements
6264 to always fail with ENOSYS. Some functions are actually named
6265 something starting with __ and the normal name is an alias. */
6266 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6274 if { (eval echo configure
:6275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6276 eval "ac_cv_func_$ac_func=yes"
6278 echo "configure: failed program was:" >&5
6279 cat conftest.
$ac_ext >&5
6281 eval "ac_cv_func_$ac_func=no"
6286 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6287 echo "$ac_t""yes" 1>&6
6288 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6289 cat >> confdefs.h
<<EOF
6290 #define $ac_tr_func 1
6294 echo "$ac_t""no" 1>&6
6298 for ac_func
in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
6300 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6301 echo "configure:6302: checking for $ac_func" >&5
6302 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6303 echo $ac_n "(cached) $ac_c" 1>&6
6305 cat > conftest.
$ac_ext <<EOF
6306 #line 6307 "configure"
6307 #include "confdefs.h"
6308 /* System header to define __stub macros and hopefully few prototypes,
6309 which can conflict with char $ac_func(); below. */
6311 /* Override any gcc2 internal prototype to avoid an error. */
6312 /* We use char because int might match the return type of a gcc2
6313 builtin and then its argument prototype would still apply. */
6318 /* The GNU C library defines this for functions which it implements
6319 to always fail with ENOSYS. Some functions are actually named
6320 something starting with __ and the normal name is an alias. */
6321 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6329 if { (eval echo configure
:6330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6331 eval "ac_cv_func_$ac_func=yes"
6333 echo "configure: failed program was:" >&5
6334 cat conftest.
$ac_ext >&5
6336 eval "ac_cv_func_$ac_func=no"
6341 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6342 echo "$ac_t""yes" 1>&6
6343 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6344 cat >> confdefs.h
<<EOF
6345 #define $ac_tr_func 1
6349 echo "$ac_t""no" 1>&6
6353 for ac_func
in __getcwd _getcwd
6355 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6356 echo "configure:6357: checking for $ac_func" >&5
6357 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6358 echo $ac_n "(cached) $ac_c" 1>&6
6360 cat > conftest.
$ac_ext <<EOF
6361 #line 6362 "configure"
6362 #include "confdefs.h"
6363 /* System header to define __stub macros and hopefully few prototypes,
6364 which can conflict with char $ac_func(); below. */
6366 /* Override any gcc2 internal prototype to avoid an error. */
6367 /* We use char because int might match the return type of a gcc2
6368 builtin and then its argument prototype would still apply. */
6373 /* The GNU C library defines this for functions which it implements
6374 to always fail with ENOSYS. Some functions are actually named
6375 something starting with __ and the normal name is an alias. */
6376 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6384 if { (eval echo configure
:6385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6386 eval "ac_cv_func_$ac_func=yes"
6388 echo "configure: failed program was:" >&5
6389 cat conftest.
$ac_ext >&5
6391 eval "ac_cv_func_$ac_func=no"
6396 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6397 echo "$ac_t""yes" 1>&6
6398 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6399 cat >> confdefs.h
<<EOF
6400 #define $ac_tr_func 1
6404 echo "$ac_t""no" 1>&6
6408 for ac_func
in __xstat __fxstat __lxstat
6410 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6411 echo "configure:6412: checking for $ac_func" >&5
6412 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6413 echo $ac_n "(cached) $ac_c" 1>&6
6415 cat > conftest.
$ac_ext <<EOF
6416 #line 6417 "configure"
6417 #include "confdefs.h"
6418 /* System header to define __stub macros and hopefully few prototypes,
6419 which can conflict with char $ac_func(); below. */
6421 /* Override any gcc2 internal prototype to avoid an error. */
6422 /* We use char because int might match the return type of a gcc2
6423 builtin and then its argument prototype would still apply. */
6428 /* The GNU C library defines this for functions which it implements
6429 to always fail with ENOSYS. Some functions are actually named
6430 something starting with __ and the normal name is an alias. */
6431 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6439 if { (eval echo configure
:6440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6441 eval "ac_cv_func_$ac_func=yes"
6443 echo "configure: failed program was:" >&5
6444 cat conftest.
$ac_ext >&5
6446 eval "ac_cv_func_$ac_func=no"
6451 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6452 echo "$ac_t""yes" 1>&6
6453 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6454 cat >> confdefs.h
<<EOF
6455 #define $ac_tr_func 1
6459 echo "$ac_t""no" 1>&6
6463 for ac_func
in _stat _lstat _fstat __stat __lstat __fstat
6465 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6466 echo "configure:6467: checking for $ac_func" >&5
6467 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6468 echo $ac_n "(cached) $ac_c" 1>&6
6470 cat > conftest.
$ac_ext <<EOF
6471 #line 6472 "configure"
6472 #include "confdefs.h"
6473 /* System header to define __stub macros and hopefully few prototypes,
6474 which can conflict with char $ac_func(); below. */
6476 /* Override any gcc2 internal prototype to avoid an error. */
6477 /* We use char because int might match the return type of a gcc2
6478 builtin and then its argument prototype would still apply. */
6483 /* The GNU C library defines this for functions which it implements
6484 to always fail with ENOSYS. Some functions are actually named
6485 something starting with __ and the normal name is an alias. */
6486 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6494 if { (eval echo configure
:6495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6496 eval "ac_cv_func_$ac_func=yes"
6498 echo "configure: failed program was:" >&5
6499 cat conftest.
$ac_ext >&5
6501 eval "ac_cv_func_$ac_func=no"
6506 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6507 echo "$ac_t""yes" 1>&6
6508 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6509 cat >> confdefs.h
<<EOF
6510 #define $ac_tr_func 1
6514 echo "$ac_t""no" 1>&6
6518 for ac_func
in _acl __acl _facl __facl _open __open _chdir __chdir
6520 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6521 echo "configure:6522: checking for $ac_func" >&5
6522 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6523 echo $ac_n "(cached) $ac_c" 1>&6
6525 cat > conftest.
$ac_ext <<EOF
6526 #line 6527 "configure"
6527 #include "confdefs.h"
6528 /* System header to define __stub macros and hopefully few prototypes,
6529 which can conflict with char $ac_func(); below. */
6531 /* Override any gcc2 internal prototype to avoid an error. */
6532 /* We use char because int might match the return type of a gcc2
6533 builtin and then its argument prototype would still apply. */
6538 /* The GNU C library defines this for functions which it implements
6539 to always fail with ENOSYS. Some functions are actually named
6540 something starting with __ and the normal name is an alias. */
6541 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6549 if { (eval echo configure
:6550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6551 eval "ac_cv_func_$ac_func=yes"
6553 echo "configure: failed program was:" >&5
6554 cat conftest.
$ac_ext >&5
6556 eval "ac_cv_func_$ac_func=no"
6561 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6562 echo "$ac_t""yes" 1>&6
6563 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6564 cat >> confdefs.h
<<EOF
6565 #define $ac_tr_func 1
6569 echo "$ac_t""no" 1>&6
6573 for ac_func
in _close __close _fchdir __fchdir _fcntl __fcntl
6575 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6576 echo "configure:6577: checking for $ac_func" >&5
6577 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6578 echo $ac_n "(cached) $ac_c" 1>&6
6580 cat > conftest.
$ac_ext <<EOF
6581 #line 6582 "configure"
6582 #include "confdefs.h"
6583 /* System header to define __stub macros and hopefully few prototypes,
6584 which can conflict with char $ac_func(); below. */
6586 /* Override any gcc2 internal prototype to avoid an error. */
6587 /* We use char because int might match the return type of a gcc2
6588 builtin and then its argument prototype would still apply. */
6593 /* The GNU C library defines this for functions which it implements
6594 to always fail with ENOSYS. Some functions are actually named
6595 something starting with __ and the normal name is an alias. */
6596 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6604 if { (eval echo configure
:6605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6606 eval "ac_cv_func_$ac_func=yes"
6608 echo "configure: failed program was:" >&5
6609 cat conftest.
$ac_ext >&5
6611 eval "ac_cv_func_$ac_func=no"
6616 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6617 echo "$ac_t""yes" 1>&6
6618 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6619 cat >> confdefs.h
<<EOF
6620 #define $ac_tr_func 1
6624 echo "$ac_t""no" 1>&6
6628 for ac_func
in getdents _getdents __getdents _lseek __lseek _read __read
6630 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6631 echo "configure:6632: checking for $ac_func" >&5
6632 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6633 echo $ac_n "(cached) $ac_c" 1>&6
6635 cat > conftest.
$ac_ext <<EOF
6636 #line 6637 "configure"
6637 #include "confdefs.h"
6638 /* System header to define __stub macros and hopefully few prototypes,
6639 which can conflict with char $ac_func(); below. */
6641 /* Override any gcc2 internal prototype to avoid an error. */
6642 /* We use char because int might match the return type of a gcc2
6643 builtin and then its argument prototype would still apply. */
6648 /* The GNU C library defines this for functions which it implements
6649 to always fail with ENOSYS. Some functions are actually named
6650 something starting with __ and the normal name is an alias. */
6651 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6659 if { (eval echo configure
:6660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6661 eval "ac_cv_func_$ac_func=yes"
6663 echo "configure: failed program was:" >&5
6664 cat conftest.
$ac_ext >&5
6666 eval "ac_cv_func_$ac_func=no"
6671 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6672 echo "$ac_t""yes" 1>&6
6673 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6674 cat >> confdefs.h
<<EOF
6675 #define $ac_tr_func 1
6679 echo "$ac_t""no" 1>&6
6683 for ac_func
in _write __write _fork __fork
6685 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6686 echo "configure:6687: checking for $ac_func" >&5
6687 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6688 echo $ac_n "(cached) $ac_c" 1>&6
6690 cat > conftest.
$ac_ext <<EOF
6691 #line 6692 "configure"
6692 #include "confdefs.h"
6693 /* System header to define __stub macros and hopefully few prototypes,
6694 which can conflict with char $ac_func(); below. */
6696 /* Override any gcc2 internal prototype to avoid an error. */
6697 /* We use char because int might match the return type of a gcc2
6698 builtin and then its argument prototype would still apply. */
6703 /* The GNU C library defines this for functions which it implements
6704 to always fail with ENOSYS. Some functions are actually named
6705 something starting with __ and the normal name is an alias. */
6706 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6714 if { (eval echo configure
:6715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6716 eval "ac_cv_func_$ac_func=yes"
6718 echo "configure: failed program was:" >&5
6719 cat conftest.
$ac_ext >&5
6721 eval "ac_cv_func_$ac_func=no"
6726 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6727 echo "$ac_t""yes" 1>&6
6728 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6729 cat >> confdefs.h
<<EOF
6730 #define $ac_tr_func 1
6734 echo "$ac_t""no" 1>&6
6738 for ac_func
in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6740 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6741 echo "configure:6742: checking for $ac_func" >&5
6742 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6743 echo $ac_n "(cached) $ac_c" 1>&6
6745 cat > conftest.
$ac_ext <<EOF
6746 #line 6747 "configure"
6747 #include "confdefs.h"
6748 /* System header to define __stub macros and hopefully few prototypes,
6749 which can conflict with char $ac_func(); below. */
6751 /* Override any gcc2 internal prototype to avoid an error. */
6752 /* We use char because int might match the return type of a gcc2
6753 builtin and then its argument prototype would still apply. */
6758 /* The GNU C library defines this for functions which it implements
6759 to always fail with ENOSYS. Some functions are actually named
6760 something starting with __ and the normal name is an alias. */
6761 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6769 if { (eval echo configure
:6770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6771 eval "ac_cv_func_$ac_func=yes"
6773 echo "configure: failed program was:" >&5
6774 cat conftest.
$ac_ext >&5
6776 eval "ac_cv_func_$ac_func=no"
6781 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6782 echo "$ac_t""yes" 1>&6
6783 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6784 cat >> confdefs.h
<<EOF
6785 #define $ac_tr_func 1
6789 echo "$ac_t""no" 1>&6
6793 for ac_func
in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6795 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6796 echo "configure:6797: checking for $ac_func" >&5
6797 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6798 echo $ac_n "(cached) $ac_c" 1>&6
6800 cat > conftest.
$ac_ext <<EOF
6801 #line 6802 "configure"
6802 #include "confdefs.h"
6803 /* System header to define __stub macros and hopefully few prototypes,
6804 which can conflict with char $ac_func(); below. */
6806 /* Override any gcc2 internal prototype to avoid an error. */
6807 /* We use char because int might match the return type of a gcc2
6808 builtin and then its argument prototype would still apply. */
6813 /* The GNU C library defines this for functions which it implements
6814 to always fail with ENOSYS. Some functions are actually named
6815 something starting with __ and the normal name is an alias. */
6816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6824 if { (eval echo configure
:6825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6826 eval "ac_cv_func_$ac_func=yes"
6828 echo "configure: failed program was:" >&5
6829 cat conftest.
$ac_ext >&5
6831 eval "ac_cv_func_$ac_func=no"
6836 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6837 echo "$ac_t""yes" 1>&6
6838 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6839 cat >> confdefs.h
<<EOF
6840 #define $ac_tr_func 1
6844 echo "$ac_t""no" 1>&6
6848 for ac_func
in pread _pread __pread pread64 _pread64 __pread64
6850 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6851 echo "configure:6852: checking for $ac_func" >&5
6852 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6853 echo $ac_n "(cached) $ac_c" 1>&6
6855 cat > conftest.
$ac_ext <<EOF
6856 #line 6857 "configure"
6857 #include "confdefs.h"
6858 /* System header to define __stub macros and hopefully few prototypes,
6859 which can conflict with char $ac_func(); below. */
6861 /* Override any gcc2 internal prototype to avoid an error. */
6862 /* We use char because int might match the return type of a gcc2
6863 builtin and then its argument prototype would still apply. */
6868 /* The GNU C library defines this for functions which it implements
6869 to always fail with ENOSYS. Some functions are actually named
6870 something starting with __ and the normal name is an alias. */
6871 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6879 if { (eval echo configure
:6880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6881 eval "ac_cv_func_$ac_func=yes"
6883 echo "configure: failed program was:" >&5
6884 cat conftest.
$ac_ext >&5
6886 eval "ac_cv_func_$ac_func=no"
6891 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6892 echo "$ac_t""yes" 1>&6
6893 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6894 cat >> confdefs.h
<<EOF
6895 #define $ac_tr_func 1
6899 echo "$ac_t""no" 1>&6
6903 for ac_func
in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6905 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6906 echo "configure:6907: checking for $ac_func" >&5
6907 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6908 echo $ac_n "(cached) $ac_c" 1>&6
6910 cat > conftest.
$ac_ext <<EOF
6911 #line 6912 "configure"
6912 #include "confdefs.h"
6913 /* System header to define __stub macros and hopefully few prototypes,
6914 which can conflict with char $ac_func(); below. */
6916 /* Override any gcc2 internal prototype to avoid an error. */
6917 /* We use char because int might match the return type of a gcc2
6918 builtin and then its argument prototype would still apply. */
6923 /* The GNU C library defines this for functions which it implements
6924 to always fail with ENOSYS. Some functions are actually named
6925 something starting with __ and the normal name is an alias. */
6926 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6934 if { (eval echo configure
:6935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6936 eval "ac_cv_func_$ac_func=yes"
6938 echo "configure: failed program was:" >&5
6939 cat conftest.
$ac_ext >&5
6941 eval "ac_cv_func_$ac_func=no"
6946 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6947 echo "$ac_t""yes" 1>&6
6948 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6949 cat >> confdefs.h
<<EOF
6950 #define $ac_tr_func 1
6954 echo "$ac_t""no" 1>&6
6958 for ac_func
in open64 _open64 __open64 creat64
6960 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6961 echo "configure:6962: checking for $ac_func" >&5
6962 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6963 echo $ac_n "(cached) $ac_c" 1>&6
6965 cat > conftest.
$ac_ext <<EOF
6966 #line 6967 "configure"
6967 #include "confdefs.h"
6968 /* System header to define __stub macros and hopefully few prototypes,
6969 which can conflict with char $ac_func(); below. */
6971 /* Override any gcc2 internal prototype to avoid an error. */
6972 /* We use char because int might match the return type of a gcc2
6973 builtin and then its argument prototype would still apply. */
6978 /* The GNU C library defines this for functions which it implements
6979 to always fail with ENOSYS. Some functions are actually named
6980 something starting with __ and the normal name is an alias. */
6981 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6989 if { (eval echo configure
:6990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6991 eval "ac_cv_func_$ac_func=yes"
6993 echo "configure: failed program was:" >&5
6994 cat conftest.
$ac_ext >&5
6996 eval "ac_cv_func_$ac_func=no"
7001 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7002 echo "$ac_t""yes" 1>&6
7003 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7004 cat >> confdefs.h
<<EOF
7005 #define $ac_tr_func 1
7009 echo "$ac_t""no" 1>&6
7015 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
7018 if test x
$ac_cv_func_stat64 = xno
; then
7019 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
7020 echo "configure:7021: checking for stat64 in <sys/stat.h>" >&5
7021 cat > conftest.
$ac_ext <<EOF
7022 #line 7023 "configure"
7023 #include "confdefs.h"
7025 #if defined(HAVE_UNISTD_H)
7028 #include <sys/stat.h>
7031 struct stat64 st64; exit(stat64(".",&st64));
7034 if { (eval echo configure
:7035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7036 ac_cv_func_stat64
=yes
7038 echo "configure: failed program was:" >&5
7039 cat conftest.
$ac_ext >&5
7042 echo "$ac_t""$ac_cv_func_stat64" 1>&6
7043 if test x
$ac_cv_func_stat64 = xyes
; then
7044 cat >> confdefs.h
<<\EOF
7045 #define HAVE_STAT64 1
7051 if test x
$ac_cv_func_lstat64 = xno
; then
7052 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
7053 echo "configure:7054: checking for lstat64 in <sys/stat.h>" >&5
7054 cat > conftest.
$ac_ext <<EOF
7055 #line 7056 "configure"
7056 #include "confdefs.h"
7058 #if defined(HAVE_UNISTD_H)
7061 #include <sys/stat.h>
7064 struct stat64 st64; exit(lstat64(".",&st64));
7067 if { (eval echo configure
:7068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7069 ac_cv_func_lstat64
=yes
7071 echo "configure: failed program was:" >&5
7072 cat conftest.
$ac_ext >&5
7075 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
7076 if test x
$ac_cv_func_lstat64 = xyes
; then
7077 cat >> confdefs.h
<<\EOF
7078 #define HAVE_LSTAT64 Whether lstat64() is available
7084 if test x
$ac_cv_func_fstat64 = xno
; then
7085 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
7086 echo "configure:7087: checking for fstat64 in <sys/stat.h>" >&5
7087 cat > conftest.
$ac_ext <<EOF
7088 #line 7089 "configure"
7089 #include "confdefs.h"
7091 #if defined(HAVE_UNISTD_H)
7094 #include <sys/stat.h>
7097 struct stat64 st64; exit(fstat64(0,&st64));
7100 if { (eval echo configure
:7101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7102 ac_cv_func_fstat64
=yes
7104 echo "configure: failed program was:" >&5
7105 cat conftest.
$ac_ext >&5
7108 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
7109 if test x
$ac_cv_func_fstat64 = xyes
; then
7110 cat >> confdefs.h
<<\EOF
7111 #define HAVE_FSTAT64 1
7117 #####################################
7118 # we might need the resolv library on some systems
7119 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
7120 echo "configure:7121: checking for dn_expand in -lresolv" >&5
7121 ac_lib_var
=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
7122 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7123 echo $ac_n "(cached) $ac_c" 1>&6
7125 ac_save_LIBS
="$LIBS"
7126 LIBS
="-lresolv $LIBS"
7127 cat > conftest.
$ac_ext <<EOF
7128 #line 7129 "configure"
7129 #include "confdefs.h"
7130 /* Override any gcc2 internal prototype to avoid an error. */
7131 /* We use char because int might match the return type of a gcc2
7132 builtin and then its argument prototype would still apply. */
7139 if { (eval echo configure
:7140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7141 eval "ac_cv_lib_$ac_lib_var=yes"
7143 echo "configure: failed program was:" >&5
7144 cat conftest.
$ac_ext >&5
7146 eval "ac_cv_lib_$ac_lib_var=no"
7149 LIBS
="$ac_save_LIBS"
7152 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7153 echo "$ac_t""yes" 1>&6
7154 ac_tr_lib
=HAVE_LIB
`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7155 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7156 cat >> confdefs.h
<<EOF
7157 #define $ac_tr_lib 1
7160 LIBS
="-lresolv $LIBS"
7163 echo "$ac_t""no" 1>&6
7168 # Check for the functions putprpwnam, set_auth_parameters,
7169 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
7170 # Needed for OSF1 and HPUX.
7174 *-lsecurity*) for ac_func
in putprpwnam
7176 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7177 echo "configure:7178: checking for $ac_func" >&5
7178 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7179 echo $ac_n "(cached) $ac_c" 1>&6
7181 cat > conftest.
$ac_ext <<EOF
7182 #line 7183 "configure"
7183 #include "confdefs.h"
7184 /* System header to define __stub macros and hopefully few prototypes,
7185 which can conflict with char $ac_func(); below. */
7187 /* Override any gcc2 internal prototype to avoid an error. */
7188 /* We use char because int might match the return type of a gcc2
7189 builtin and then its argument prototype would still apply. */
7194 /* The GNU C library defines this for functions which it implements
7195 to always fail with ENOSYS. Some functions are actually named
7196 something starting with __ and the normal name is an alias. */
7197 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7205 if { (eval echo configure
:7206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7207 eval "ac_cv_func_$ac_func=yes"
7209 echo "configure: failed program was:" >&5
7210 cat conftest.
$ac_ext >&5
7212 eval "ac_cv_func_$ac_func=no"
7217 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7218 echo "$ac_t""yes" 1>&6
7219 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7220 cat >> confdefs.h
<<EOF
7221 #define $ac_tr_func 1
7225 echo "$ac_t""no" 1>&6
7229 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
7230 echo "configure:7231: checking for putprpwnam in -lsecurity" >&5
7231 ac_lib_var
=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
7232 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7233 echo $ac_n "(cached) $ac_c" 1>&6
7235 ac_save_LIBS
="$LIBS"
7236 LIBS
="-lsecurity $LIBS"
7237 cat > conftest.
$ac_ext <<EOF
7238 #line 7239 "configure"
7239 #include "confdefs.h"
7240 /* Override any gcc2 internal prototype to avoid an error. */
7241 /* We use char because int might match the return type of a gcc2
7242 builtin and then its argument prototype would still apply. */
7249 if { (eval echo configure
:7250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7251 eval "ac_cv_lib_$ac_lib_var=yes"
7253 echo "configure: failed program was:" >&5
7254 cat conftest.
$ac_ext >&5
7256 eval "ac_cv_lib_$ac_lib_var=no"
7259 LIBS
="$ac_save_LIBS"
7262 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7263 echo "$ac_t""yes" 1>&6
7264 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7265 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7266 cat >> confdefs.h
<<EOF
7267 #define $ac_tr_lib 1
7270 LIBS
="-lsecurity $LIBS"
7273 echo "$ac_t""no" 1>&6
7276 for ac_func
in putprpwnam
7278 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7279 echo "configure:7280: checking for $ac_func" >&5
7280 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7281 echo $ac_n "(cached) $ac_c" 1>&6
7283 cat > conftest.
$ac_ext <<EOF
7284 #line 7285 "configure"
7285 #include "confdefs.h"
7286 /* System header to define __stub macros and hopefully few prototypes,
7287 which can conflict with char $ac_func(); below. */
7289 /* Override any gcc2 internal prototype to avoid an error. */
7290 /* We use char because int might match the return type of a gcc2
7291 builtin and then its argument prototype would still apply. */
7296 /* The GNU C library defines this for functions which it implements
7297 to always fail with ENOSYS. Some functions are actually named
7298 something starting with __ and the normal name is an alias. */
7299 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7307 if { (eval echo configure
:7308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7309 eval "ac_cv_func_$ac_func=yes"
7311 echo "configure: failed program was:" >&5
7312 cat conftest.
$ac_ext >&5
7314 eval "ac_cv_func_$ac_func=no"
7319 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7320 echo "$ac_t""yes" 1>&6
7321 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7322 cat >> confdefs.h
<<EOF
7323 #define $ac_tr_func 1
7327 echo "$ac_t""no" 1>&6
7335 *-lsec*) for ac_func
in putprpwnam
7337 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7338 echo "configure:7339: checking for $ac_func" >&5
7339 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7340 echo $ac_n "(cached) $ac_c" 1>&6
7342 cat > conftest.
$ac_ext <<EOF
7343 #line 7344 "configure"
7344 #include "confdefs.h"
7345 /* System header to define __stub macros and hopefully few prototypes,
7346 which can conflict with char $ac_func(); below. */
7348 /* Override any gcc2 internal prototype to avoid an error. */
7349 /* We use char because int might match the return type of a gcc2
7350 builtin and then its argument prototype would still apply. */
7355 /* The GNU C library defines this for functions which it implements
7356 to always fail with ENOSYS. Some functions are actually named
7357 something starting with __ and the normal name is an alias. */
7358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7366 if { (eval echo configure
:7367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7368 eval "ac_cv_func_$ac_func=yes"
7370 echo "configure: failed program was:" >&5
7371 cat conftest.
$ac_ext >&5
7373 eval "ac_cv_func_$ac_func=no"
7378 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7379 echo "$ac_t""yes" 1>&6
7380 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7381 cat >> confdefs.h
<<EOF
7382 #define $ac_tr_func 1
7386 echo "$ac_t""no" 1>&6
7390 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
7391 echo "configure:7392: checking for putprpwnam in -lsec" >&5
7392 ac_lib_var
=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
7393 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7394 echo $ac_n "(cached) $ac_c" 1>&6
7396 ac_save_LIBS
="$LIBS"
7398 cat > conftest.
$ac_ext <<EOF
7399 #line 7400 "configure"
7400 #include "confdefs.h"
7401 /* Override any gcc2 internal prototype to avoid an error. */
7402 /* We use char because int might match the return type of a gcc2
7403 builtin and then its argument prototype would still apply. */
7410 if { (eval echo configure
:7411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7412 eval "ac_cv_lib_$ac_lib_var=yes"
7414 echo "configure: failed program was:" >&5
7415 cat conftest.
$ac_ext >&5
7417 eval "ac_cv_lib_$ac_lib_var=no"
7420 LIBS
="$ac_save_LIBS"
7423 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7424 echo "$ac_t""yes" 1>&6
7425 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7426 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7427 cat >> confdefs.h
<<EOF
7428 #define $ac_tr_lib 1
7434 echo "$ac_t""no" 1>&6
7437 for ac_func
in putprpwnam
7439 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7440 echo "configure:7441: checking for $ac_func" >&5
7441 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7442 echo $ac_n "(cached) $ac_c" 1>&6
7444 cat > conftest.
$ac_ext <<EOF
7445 #line 7446 "configure"
7446 #include "confdefs.h"
7447 /* System header to define __stub macros and hopefully few prototypes,
7448 which can conflict with char $ac_func(); below. */
7450 /* Override any gcc2 internal prototype to avoid an error. */
7451 /* We use char because int might match the return type of a gcc2
7452 builtin and then its argument prototype would still apply. */
7457 /* The GNU C library defines this for functions which it implements
7458 to always fail with ENOSYS. Some functions are actually named
7459 something starting with __ and the normal name is an alias. */
7460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7468 if { (eval echo configure
:7469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7470 eval "ac_cv_func_$ac_func=yes"
7472 echo "configure: failed program was:" >&5
7473 cat conftest.
$ac_ext >&5
7475 eval "ac_cv_func_$ac_func=no"
7480 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7481 echo "$ac_t""yes" 1>&6
7482 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7483 cat >> confdefs.h
<<EOF
7484 #define $ac_tr_func 1
7488 echo "$ac_t""no" 1>&6
7497 *-lsecurity*) for ac_func
in set_auth_parameters
7499 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7500 echo "configure:7501: checking for $ac_func" >&5
7501 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7502 echo $ac_n "(cached) $ac_c" 1>&6
7504 cat > conftest.
$ac_ext <<EOF
7505 #line 7506 "configure"
7506 #include "confdefs.h"
7507 /* System header to define __stub macros and hopefully few prototypes,
7508 which can conflict with char $ac_func(); below. */
7510 /* Override any gcc2 internal prototype to avoid an error. */
7511 /* We use char because int might match the return type of a gcc2
7512 builtin and then its argument prototype would still apply. */
7517 /* The GNU C library defines this for functions which it implements
7518 to always fail with ENOSYS. Some functions are actually named
7519 something starting with __ and the normal name is an alias. */
7520 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7528 if { (eval echo configure
:7529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7530 eval "ac_cv_func_$ac_func=yes"
7532 echo "configure: failed program was:" >&5
7533 cat conftest.
$ac_ext >&5
7535 eval "ac_cv_func_$ac_func=no"
7540 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7541 echo "$ac_t""yes" 1>&6
7542 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7543 cat >> confdefs.h
<<EOF
7544 #define $ac_tr_func 1
7548 echo "$ac_t""no" 1>&6
7552 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
7553 echo "configure:7554: checking for set_auth_parameters in -lsecurity" >&5
7554 ac_lib_var
=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7555 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7556 echo $ac_n "(cached) $ac_c" 1>&6
7558 ac_save_LIBS
="$LIBS"
7559 LIBS
="-lsecurity $LIBS"
7560 cat > conftest.
$ac_ext <<EOF
7561 #line 7562 "configure"
7562 #include "confdefs.h"
7563 /* Override any gcc2 internal prototype to avoid an error. */
7564 /* We use char because int might match the return type of a gcc2
7565 builtin and then its argument prototype would still apply. */
7566 char set_auth_parameters();
7569 set_auth_parameters()
7572 if { (eval echo configure
:7573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7574 eval "ac_cv_lib_$ac_lib_var=yes"
7576 echo "configure: failed program was:" >&5
7577 cat conftest.
$ac_ext >&5
7579 eval "ac_cv_lib_$ac_lib_var=no"
7582 LIBS
="$ac_save_LIBS"
7585 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7586 echo "$ac_t""yes" 1>&6
7587 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7588 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7589 cat >> confdefs.h
<<EOF
7590 #define $ac_tr_lib 1
7593 LIBS
="-lsecurity $LIBS"
7596 echo "$ac_t""no" 1>&6
7599 for ac_func
in set_auth_parameters
7601 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7602 echo "configure:7603: checking for $ac_func" >&5
7603 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7604 echo $ac_n "(cached) $ac_c" 1>&6
7606 cat > conftest.
$ac_ext <<EOF
7607 #line 7608 "configure"
7608 #include "confdefs.h"
7609 /* System header to define __stub macros and hopefully few prototypes,
7610 which can conflict with char $ac_func(); below. */
7612 /* Override any gcc2 internal prototype to avoid an error. */
7613 /* We use char because int might match the return type of a gcc2
7614 builtin and then its argument prototype would still apply. */
7619 /* The GNU C library defines this for functions which it implements
7620 to always fail with ENOSYS. Some functions are actually named
7621 something starting with __ and the normal name is an alias. */
7622 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7630 if { (eval echo configure
:7631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7632 eval "ac_cv_func_$ac_func=yes"
7634 echo "configure: failed program was:" >&5
7635 cat conftest.
$ac_ext >&5
7637 eval "ac_cv_func_$ac_func=no"
7642 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7643 echo "$ac_t""yes" 1>&6
7644 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7645 cat >> confdefs.h
<<EOF
7646 #define $ac_tr_func 1
7650 echo "$ac_t""no" 1>&6
7658 *-lsec*) for ac_func
in set_auth_parameters
7660 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7661 echo "configure:7662: checking for $ac_func" >&5
7662 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7663 echo $ac_n "(cached) $ac_c" 1>&6
7665 cat > conftest.
$ac_ext <<EOF
7666 #line 7667 "configure"
7667 #include "confdefs.h"
7668 /* System header to define __stub macros and hopefully few prototypes,
7669 which can conflict with char $ac_func(); below. */
7671 /* Override any gcc2 internal prototype to avoid an error. */
7672 /* We use char because int might match the return type of a gcc2
7673 builtin and then its argument prototype would still apply. */
7678 /* The GNU C library defines this for functions which it implements
7679 to always fail with ENOSYS. Some functions are actually named
7680 something starting with __ and the normal name is an alias. */
7681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7689 if { (eval echo configure
:7690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7691 eval "ac_cv_func_$ac_func=yes"
7693 echo "configure: failed program was:" >&5
7694 cat conftest.
$ac_ext >&5
7696 eval "ac_cv_func_$ac_func=no"
7701 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7702 echo "$ac_t""yes" 1>&6
7703 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7704 cat >> confdefs.h
<<EOF
7705 #define $ac_tr_func 1
7709 echo "$ac_t""no" 1>&6
7713 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7714 echo "configure:7715: checking for set_auth_parameters in -lsec" >&5
7715 ac_lib_var
=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7716 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7717 echo $ac_n "(cached) $ac_c" 1>&6
7719 ac_save_LIBS
="$LIBS"
7721 cat > conftest.
$ac_ext <<EOF
7722 #line 7723 "configure"
7723 #include "confdefs.h"
7724 /* Override any gcc2 internal prototype to avoid an error. */
7725 /* We use char because int might match the return type of a gcc2
7726 builtin and then its argument prototype would still apply. */
7727 char set_auth_parameters();
7730 set_auth_parameters()
7733 if { (eval echo configure
:7734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7735 eval "ac_cv_lib_$ac_lib_var=yes"
7737 echo "configure: failed program was:" >&5
7738 cat conftest.
$ac_ext >&5
7740 eval "ac_cv_lib_$ac_lib_var=no"
7743 LIBS
="$ac_save_LIBS"
7746 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7747 echo "$ac_t""yes" 1>&6
7748 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7749 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7750 cat >> confdefs.h
<<EOF
7751 #define $ac_tr_lib 1
7757 echo "$ac_t""no" 1>&6
7760 for ac_func
in set_auth_parameters
7762 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7763 echo "configure:7764: checking for $ac_func" >&5
7764 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7765 echo $ac_n "(cached) $ac_c" 1>&6
7767 cat > conftest.
$ac_ext <<EOF
7768 #line 7769 "configure"
7769 #include "confdefs.h"
7770 /* System header to define __stub macros and hopefully few prototypes,
7771 which can conflict with char $ac_func(); below. */
7773 /* Override any gcc2 internal prototype to avoid an error. */
7774 /* We use char because int might match the return type of a gcc2
7775 builtin and then its argument prototype would still apply. */
7780 /* The GNU C library defines this for functions which it implements
7781 to always fail with ENOSYS. Some functions are actually named
7782 something starting with __ and the normal name is an alias. */
7783 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7791 if { (eval echo configure
:7792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7793 eval "ac_cv_func_$ac_func=yes"
7795 echo "configure: failed program was:" >&5
7796 cat conftest.
$ac_ext >&5
7798 eval "ac_cv_func_$ac_func=no"
7803 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7804 echo "$ac_t""yes" 1>&6
7805 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7806 cat >> confdefs.h
<<EOF
7807 #define $ac_tr_func 1
7811 echo "$ac_t""no" 1>&6
7819 # UnixWare 7.x has its getspnam in -lgen
7821 *-lgen*) for ac_func
in getspnam
7823 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7824 echo "configure:7825: checking for $ac_func" >&5
7825 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7826 echo $ac_n "(cached) $ac_c" 1>&6
7828 cat > conftest.
$ac_ext <<EOF
7829 #line 7830 "configure"
7830 #include "confdefs.h"
7831 /* System header to define __stub macros and hopefully few prototypes,
7832 which can conflict with char $ac_func(); below. */
7834 /* Override any gcc2 internal prototype to avoid an error. */
7835 /* We use char because int might match the return type of a gcc2
7836 builtin and then its argument prototype would still apply. */
7841 /* The GNU C library defines this for functions which it implements
7842 to always fail with ENOSYS. Some functions are actually named
7843 something starting with __ and the normal name is an alias. */
7844 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7852 if { (eval echo configure
:7853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7854 eval "ac_cv_func_$ac_func=yes"
7856 echo "configure: failed program was:" >&5
7857 cat conftest.
$ac_ext >&5
7859 eval "ac_cv_func_$ac_func=no"
7864 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7865 echo "$ac_t""yes" 1>&6
7866 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7867 cat >> confdefs.h
<<EOF
7868 #define $ac_tr_func 1
7872 echo "$ac_t""no" 1>&6
7876 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7877 echo "configure:7878: checking for getspnam in -lgen" >&5
7878 ac_lib_var
=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7879 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7880 echo $ac_n "(cached) $ac_c" 1>&6
7882 ac_save_LIBS
="$LIBS"
7884 cat > conftest.
$ac_ext <<EOF
7885 #line 7886 "configure"
7886 #include "confdefs.h"
7887 /* Override any gcc2 internal prototype to avoid an error. */
7888 /* We use char because int might match the return type of a gcc2
7889 builtin and then its argument prototype would still apply. */
7896 if { (eval echo configure
:7897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7898 eval "ac_cv_lib_$ac_lib_var=yes"
7900 echo "configure: failed program was:" >&5
7901 cat conftest.
$ac_ext >&5
7903 eval "ac_cv_lib_$ac_lib_var=no"
7906 LIBS
="$ac_save_LIBS"
7909 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7910 echo "$ac_t""yes" 1>&6
7911 ac_tr_lib
=HAVE_LIB
`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7912 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7913 cat >> confdefs.h
<<EOF
7914 #define $ac_tr_lib 1
7920 echo "$ac_t""no" 1>&6
7923 for ac_func
in getspnam
7925 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7926 echo "configure:7927: checking for $ac_func" >&5
7927 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7928 echo $ac_n "(cached) $ac_c" 1>&6
7930 cat > conftest.
$ac_ext <<EOF
7931 #line 7932 "configure"
7932 #include "confdefs.h"
7933 /* System header to define __stub macros and hopefully few prototypes,
7934 which can conflict with char $ac_func(); below. */
7936 /* Override any gcc2 internal prototype to avoid an error. */
7937 /* We use char because int might match the return type of a gcc2
7938 builtin and then its argument prototype would still apply. */
7943 /* The GNU C library defines this for functions which it implements
7944 to always fail with ENOSYS. Some functions are actually named
7945 something starting with __ and the normal name is an alias. */
7946 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7954 if { (eval echo configure
:7955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7956 eval "ac_cv_func_$ac_func=yes"
7958 echo "configure: failed program was:" >&5
7959 cat conftest.
$ac_ext >&5
7961 eval "ac_cv_func_$ac_func=no"
7966 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7967 echo "$ac_t""yes" 1>&6
7968 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7969 cat >> confdefs.h
<<EOF
7970 #define $ac_tr_func 1
7974 echo "$ac_t""no" 1>&6
7983 *-lsecurity*) for ac_func
in getspnam
7985 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7986 echo "configure:7987: checking for $ac_func" >&5
7987 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7988 echo $ac_n "(cached) $ac_c" 1>&6
7990 cat > conftest.
$ac_ext <<EOF
7991 #line 7992 "configure"
7992 #include "confdefs.h"
7993 /* System header to define __stub macros and hopefully few prototypes,
7994 which can conflict with char $ac_func(); below. */
7996 /* Override any gcc2 internal prototype to avoid an error. */
7997 /* We use char because int might match the return type of a gcc2
7998 builtin and then its argument prototype would still apply. */
8003 /* The GNU C library defines this for functions which it implements
8004 to always fail with ENOSYS. Some functions are actually named
8005 something starting with __ and the normal name is an alias. */
8006 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8014 if { (eval echo configure
:8015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8016 eval "ac_cv_func_$ac_func=yes"
8018 echo "configure: failed program was:" >&5
8019 cat conftest.
$ac_ext >&5
8021 eval "ac_cv_func_$ac_func=no"
8026 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8027 echo "$ac_t""yes" 1>&6
8028 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8029 cat >> confdefs.h
<<EOF
8030 #define $ac_tr_func 1
8034 echo "$ac_t""no" 1>&6
8038 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
8039 echo "configure:8040: checking for getspnam in -lsecurity" >&5
8040 ac_lib_var
=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
8041 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8042 echo $ac_n "(cached) $ac_c" 1>&6
8044 ac_save_LIBS
="$LIBS"
8045 LIBS
="-lsecurity $LIBS"
8046 cat > conftest.
$ac_ext <<EOF
8047 #line 8048 "configure"
8048 #include "confdefs.h"
8049 /* Override any gcc2 internal prototype to avoid an error. */
8050 /* We use char because int might match the return type of a gcc2
8051 builtin and then its argument prototype would still apply. */
8058 if { (eval echo configure
:8059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8060 eval "ac_cv_lib_$ac_lib_var=yes"
8062 echo "configure: failed program was:" >&5
8063 cat conftest.
$ac_ext >&5
8065 eval "ac_cv_lib_$ac_lib_var=no"
8068 LIBS
="$ac_save_LIBS"
8071 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8072 echo "$ac_t""yes" 1>&6
8073 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8074 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8075 cat >> confdefs.h
<<EOF
8076 #define $ac_tr_lib 1
8079 LIBS
="-lsecurity $LIBS"
8082 echo "$ac_t""no" 1>&6
8085 for ac_func
in getspnam
8087 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8088 echo "configure:8089: checking for $ac_func" >&5
8089 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8090 echo $ac_n "(cached) $ac_c" 1>&6
8092 cat > conftest.
$ac_ext <<EOF
8093 #line 8094 "configure"
8094 #include "confdefs.h"
8095 /* System header to define __stub macros and hopefully few prototypes,
8096 which can conflict with char $ac_func(); below. */
8098 /* Override any gcc2 internal prototype to avoid an error. */
8099 /* We use char because int might match the return type of a gcc2
8100 builtin and then its argument prototype would still apply. */
8105 /* The GNU C library defines this for functions which it implements
8106 to always fail with ENOSYS. Some functions are actually named
8107 something starting with __ and the normal name is an alias. */
8108 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8116 if { (eval echo configure
:8117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8118 eval "ac_cv_func_$ac_func=yes"
8120 echo "configure: failed program was:" >&5
8121 cat conftest.
$ac_ext >&5
8123 eval "ac_cv_func_$ac_func=no"
8128 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8129 echo "$ac_t""yes" 1>&6
8130 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8131 cat >> confdefs.h
<<EOF
8132 #define $ac_tr_func 1
8136 echo "$ac_t""no" 1>&6
8144 *-lsec*) for ac_func
in getspnam
8146 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8147 echo "configure:8148: checking for $ac_func" >&5
8148 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8149 echo $ac_n "(cached) $ac_c" 1>&6
8151 cat > conftest.
$ac_ext <<EOF
8152 #line 8153 "configure"
8153 #include "confdefs.h"
8154 /* System header to define __stub macros and hopefully few prototypes,
8155 which can conflict with char $ac_func(); below. */
8157 /* Override any gcc2 internal prototype to avoid an error. */
8158 /* We use char because int might match the return type of a gcc2
8159 builtin and then its argument prototype would still apply. */
8164 /* The GNU C library defines this for functions which it implements
8165 to always fail with ENOSYS. Some functions are actually named
8166 something starting with __ and the normal name is an alias. */
8167 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8175 if { (eval echo configure
:8176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8177 eval "ac_cv_func_$ac_func=yes"
8179 echo "configure: failed program was:" >&5
8180 cat conftest.
$ac_ext >&5
8182 eval "ac_cv_func_$ac_func=no"
8187 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8188 echo "$ac_t""yes" 1>&6
8189 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8190 cat >> confdefs.h
<<EOF
8191 #define $ac_tr_func 1
8195 echo "$ac_t""no" 1>&6
8199 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
8200 echo "configure:8201: checking for getspnam in -lsec" >&5
8201 ac_lib_var
=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
8202 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8203 echo $ac_n "(cached) $ac_c" 1>&6
8205 ac_save_LIBS
="$LIBS"
8207 cat > conftest.
$ac_ext <<EOF
8208 #line 8209 "configure"
8209 #include "confdefs.h"
8210 /* Override any gcc2 internal prototype to avoid an error. */
8211 /* We use char because int might match the return type of a gcc2
8212 builtin and then its argument prototype would still apply. */
8219 if { (eval echo configure
:8220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8221 eval "ac_cv_lib_$ac_lib_var=yes"
8223 echo "configure: failed program was:" >&5
8224 cat conftest.
$ac_ext >&5
8226 eval "ac_cv_lib_$ac_lib_var=no"
8229 LIBS
="$ac_save_LIBS"
8232 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8233 echo "$ac_t""yes" 1>&6
8234 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8235 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8236 cat >> confdefs.h
<<EOF
8237 #define $ac_tr_lib 1
8243 echo "$ac_t""no" 1>&6
8246 for ac_func
in getspnam
8248 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8249 echo "configure:8250: checking for $ac_func" >&5
8250 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8251 echo $ac_n "(cached) $ac_c" 1>&6
8253 cat > conftest.
$ac_ext <<EOF
8254 #line 8255 "configure"
8255 #include "confdefs.h"
8256 /* System header to define __stub macros and hopefully few prototypes,
8257 which can conflict with char $ac_func(); below. */
8259 /* Override any gcc2 internal prototype to avoid an error. */
8260 /* We use char because int might match the return type of a gcc2
8261 builtin and then its argument prototype would still apply. */
8266 /* The GNU C library defines this for functions which it implements
8267 to always fail with ENOSYS. Some functions are actually named
8268 something starting with __ and the normal name is an alias. */
8269 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8277 if { (eval echo configure
:8278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8279 eval "ac_cv_func_$ac_func=yes"
8281 echo "configure: failed program was:" >&5
8282 cat conftest.
$ac_ext >&5
8284 eval "ac_cv_func_$ac_func=no"
8289 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8290 echo "$ac_t""yes" 1>&6
8291 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8292 cat >> confdefs.h
<<EOF
8293 #define $ac_tr_func 1
8297 echo "$ac_t""no" 1>&6
8306 *-lsecurity*) for ac_func
in bigcrypt
8308 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8309 echo "configure:8310: checking for $ac_func" >&5
8310 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8311 echo $ac_n "(cached) $ac_c" 1>&6
8313 cat > conftest.
$ac_ext <<EOF
8314 #line 8315 "configure"
8315 #include "confdefs.h"
8316 /* System header to define __stub macros and hopefully few prototypes,
8317 which can conflict with char $ac_func(); below. */
8319 /* Override any gcc2 internal prototype to avoid an error. */
8320 /* We use char because int might match the return type of a gcc2
8321 builtin and then its argument prototype would still apply. */
8326 /* The GNU C library defines this for functions which it implements
8327 to always fail with ENOSYS. Some functions are actually named
8328 something starting with __ and the normal name is an alias. */
8329 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8337 if { (eval echo configure
:8338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8339 eval "ac_cv_func_$ac_func=yes"
8341 echo "configure: failed program was:" >&5
8342 cat conftest.
$ac_ext >&5
8344 eval "ac_cv_func_$ac_func=no"
8349 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8350 echo "$ac_t""yes" 1>&6
8351 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8352 cat >> confdefs.h
<<EOF
8353 #define $ac_tr_func 1
8357 echo "$ac_t""no" 1>&6
8361 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
8362 echo "configure:8363: checking for bigcrypt in -lsecurity" >&5
8363 ac_lib_var
=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
8364 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8365 echo $ac_n "(cached) $ac_c" 1>&6
8367 ac_save_LIBS
="$LIBS"
8368 LIBS
="-lsecurity $LIBS"
8369 cat > conftest.
$ac_ext <<EOF
8370 #line 8371 "configure"
8371 #include "confdefs.h"
8372 /* Override any gcc2 internal prototype to avoid an error. */
8373 /* We use char because int might match the return type of a gcc2
8374 builtin and then its argument prototype would still apply. */
8381 if { (eval echo configure
:8382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8383 eval "ac_cv_lib_$ac_lib_var=yes"
8385 echo "configure: failed program was:" >&5
8386 cat conftest.
$ac_ext >&5
8388 eval "ac_cv_lib_$ac_lib_var=no"
8391 LIBS
="$ac_save_LIBS"
8394 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8395 echo "$ac_t""yes" 1>&6
8396 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8397 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8398 cat >> confdefs.h
<<EOF
8399 #define $ac_tr_lib 1
8402 LIBS
="-lsecurity $LIBS"
8405 echo "$ac_t""no" 1>&6
8408 for ac_func
in bigcrypt
8410 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8411 echo "configure:8412: checking for $ac_func" >&5
8412 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8413 echo $ac_n "(cached) $ac_c" 1>&6
8415 cat > conftest.
$ac_ext <<EOF
8416 #line 8417 "configure"
8417 #include "confdefs.h"
8418 /* System header to define __stub macros and hopefully few prototypes,
8419 which can conflict with char $ac_func(); below. */
8421 /* Override any gcc2 internal prototype to avoid an error. */
8422 /* We use char because int might match the return type of a gcc2
8423 builtin and then its argument prototype would still apply. */
8428 /* The GNU C library defines this for functions which it implements
8429 to always fail with ENOSYS. Some functions are actually named
8430 something starting with __ and the normal name is an alias. */
8431 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8439 if { (eval echo configure
:8440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8441 eval "ac_cv_func_$ac_func=yes"
8443 echo "configure: failed program was:" >&5
8444 cat conftest.
$ac_ext >&5
8446 eval "ac_cv_func_$ac_func=no"
8451 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8452 echo "$ac_t""yes" 1>&6
8453 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8454 cat >> confdefs.h
<<EOF
8455 #define $ac_tr_func 1
8459 echo "$ac_t""no" 1>&6
8467 *-lsec*) for ac_func
in bigcrypt
8469 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8470 echo "configure:8471: checking for $ac_func" >&5
8471 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8472 echo $ac_n "(cached) $ac_c" 1>&6
8474 cat > conftest.
$ac_ext <<EOF
8475 #line 8476 "configure"
8476 #include "confdefs.h"
8477 /* System header to define __stub macros and hopefully few prototypes,
8478 which can conflict with char $ac_func(); below. */
8480 /* Override any gcc2 internal prototype to avoid an error. */
8481 /* We use char because int might match the return type of a gcc2
8482 builtin and then its argument prototype would still apply. */
8487 /* The GNU C library defines this for functions which it implements
8488 to always fail with ENOSYS. Some functions are actually named
8489 something starting with __ and the normal name is an alias. */
8490 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8498 if { (eval echo configure
:8499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8500 eval "ac_cv_func_$ac_func=yes"
8502 echo "configure: failed program was:" >&5
8503 cat conftest.
$ac_ext >&5
8505 eval "ac_cv_func_$ac_func=no"
8510 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8511 echo "$ac_t""yes" 1>&6
8512 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8513 cat >> confdefs.h
<<EOF
8514 #define $ac_tr_func 1
8518 echo "$ac_t""no" 1>&6
8522 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
8523 echo "configure:8524: checking for bigcrypt in -lsec" >&5
8524 ac_lib_var
=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
8525 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8526 echo $ac_n "(cached) $ac_c" 1>&6
8528 ac_save_LIBS
="$LIBS"
8530 cat > conftest.
$ac_ext <<EOF
8531 #line 8532 "configure"
8532 #include "confdefs.h"
8533 /* Override any gcc2 internal prototype to avoid an error. */
8534 /* We use char because int might match the return type of a gcc2
8535 builtin and then its argument prototype would still apply. */
8542 if { (eval echo configure
:8543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8544 eval "ac_cv_lib_$ac_lib_var=yes"
8546 echo "configure: failed program was:" >&5
8547 cat conftest.
$ac_ext >&5
8549 eval "ac_cv_lib_$ac_lib_var=no"
8552 LIBS
="$ac_save_LIBS"
8555 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8556 echo "$ac_t""yes" 1>&6
8557 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8558 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8559 cat >> confdefs.h
<<EOF
8560 #define $ac_tr_lib 1
8566 echo "$ac_t""no" 1>&6
8569 for ac_func
in bigcrypt
8571 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8572 echo "configure:8573: checking for $ac_func" >&5
8573 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8574 echo $ac_n "(cached) $ac_c" 1>&6
8576 cat > conftest.
$ac_ext <<EOF
8577 #line 8578 "configure"
8578 #include "confdefs.h"
8579 /* System header to define __stub macros and hopefully few prototypes,
8580 which can conflict with char $ac_func(); below. */
8582 /* Override any gcc2 internal prototype to avoid an error. */
8583 /* We use char because int might match the return type of a gcc2
8584 builtin and then its argument prototype would still apply. */
8589 /* The GNU C library defines this for functions which it implements
8590 to always fail with ENOSYS. Some functions are actually named
8591 something starting with __ and the normal name is an alias. */
8592 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8600 if { (eval echo configure
:8601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8602 eval "ac_cv_func_$ac_func=yes"
8604 echo "configure: failed program was:" >&5
8605 cat conftest.
$ac_ext >&5
8607 eval "ac_cv_func_$ac_func=no"
8612 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8613 echo "$ac_t""yes" 1>&6
8614 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8615 cat >> confdefs.h
<<EOF
8616 #define $ac_tr_func 1
8620 echo "$ac_t""no" 1>&6
8629 *-lsecurity*) for ac_func
in getprpwnam
8631 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8632 echo "configure:8633: checking for $ac_func" >&5
8633 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8634 echo $ac_n "(cached) $ac_c" 1>&6
8636 cat > conftest.
$ac_ext <<EOF
8637 #line 8638 "configure"
8638 #include "confdefs.h"
8639 /* System header to define __stub macros and hopefully few prototypes,
8640 which can conflict with char $ac_func(); below. */
8642 /* Override any gcc2 internal prototype to avoid an error. */
8643 /* We use char because int might match the return type of a gcc2
8644 builtin and then its argument prototype would still apply. */
8649 /* The GNU C library defines this for functions which it implements
8650 to always fail with ENOSYS. Some functions are actually named
8651 something starting with __ and the normal name is an alias. */
8652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8660 if { (eval echo configure
:8661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8662 eval "ac_cv_func_$ac_func=yes"
8664 echo "configure: failed program was:" >&5
8665 cat conftest.
$ac_ext >&5
8667 eval "ac_cv_func_$ac_func=no"
8672 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8673 echo "$ac_t""yes" 1>&6
8674 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8675 cat >> confdefs.h
<<EOF
8676 #define $ac_tr_func 1
8680 echo "$ac_t""no" 1>&6
8684 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8685 echo "configure:8686: checking for getprpwnam in -lsecurity" >&5
8686 ac_lib_var
=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8687 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8688 echo $ac_n "(cached) $ac_c" 1>&6
8690 ac_save_LIBS
="$LIBS"
8691 LIBS
="-lsecurity $LIBS"
8692 cat > conftest.
$ac_ext <<EOF
8693 #line 8694 "configure"
8694 #include "confdefs.h"
8695 /* Override any gcc2 internal prototype to avoid an error. */
8696 /* We use char because int might match the return type of a gcc2
8697 builtin and then its argument prototype would still apply. */
8704 if { (eval echo configure
:8705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8706 eval "ac_cv_lib_$ac_lib_var=yes"
8708 echo "configure: failed program was:" >&5
8709 cat conftest.
$ac_ext >&5
8711 eval "ac_cv_lib_$ac_lib_var=no"
8714 LIBS
="$ac_save_LIBS"
8717 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8718 echo "$ac_t""yes" 1>&6
8719 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8720 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8721 cat >> confdefs.h
<<EOF
8722 #define $ac_tr_lib 1
8725 LIBS
="-lsecurity $LIBS"
8728 echo "$ac_t""no" 1>&6
8731 for ac_func
in getprpwnam
8733 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8734 echo "configure:8735: checking for $ac_func" >&5
8735 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8736 echo $ac_n "(cached) $ac_c" 1>&6
8738 cat > conftest.
$ac_ext <<EOF
8739 #line 8740 "configure"
8740 #include "confdefs.h"
8741 /* System header to define __stub macros and hopefully few prototypes,
8742 which can conflict with char $ac_func(); below. */
8744 /* Override any gcc2 internal prototype to avoid an error. */
8745 /* We use char because int might match the return type of a gcc2
8746 builtin and then its argument prototype would still apply. */
8751 /* The GNU C library defines this for functions which it implements
8752 to always fail with ENOSYS. Some functions are actually named
8753 something starting with __ and the normal name is an alias. */
8754 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8762 if { (eval echo configure
:8763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8764 eval "ac_cv_func_$ac_func=yes"
8766 echo "configure: failed program was:" >&5
8767 cat conftest.
$ac_ext >&5
8769 eval "ac_cv_func_$ac_func=no"
8774 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8775 echo "$ac_t""yes" 1>&6
8776 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8777 cat >> confdefs.h
<<EOF
8778 #define $ac_tr_func 1
8782 echo "$ac_t""no" 1>&6
8790 *-lsec*) for ac_func
in getprpwnam
8792 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8793 echo "configure:8794: checking for $ac_func" >&5
8794 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8795 echo $ac_n "(cached) $ac_c" 1>&6
8797 cat > conftest.
$ac_ext <<EOF
8798 #line 8799 "configure"
8799 #include "confdefs.h"
8800 /* System header to define __stub macros and hopefully few prototypes,
8801 which can conflict with char $ac_func(); below. */
8803 /* Override any gcc2 internal prototype to avoid an error. */
8804 /* We use char because int might match the return type of a gcc2
8805 builtin and then its argument prototype would still apply. */
8810 /* The GNU C library defines this for functions which it implements
8811 to always fail with ENOSYS. Some functions are actually named
8812 something starting with __ and the normal name is an alias. */
8813 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8821 if { (eval echo configure
:8822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8823 eval "ac_cv_func_$ac_func=yes"
8825 echo "configure: failed program was:" >&5
8826 cat conftest.
$ac_ext >&5
8828 eval "ac_cv_func_$ac_func=no"
8833 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8834 echo "$ac_t""yes" 1>&6
8835 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8836 cat >> confdefs.h
<<EOF
8837 #define $ac_tr_func 1
8841 echo "$ac_t""no" 1>&6
8845 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8846 echo "configure:8847: checking for getprpwnam in -lsec" >&5
8847 ac_lib_var
=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8848 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8849 echo $ac_n "(cached) $ac_c" 1>&6
8851 ac_save_LIBS
="$LIBS"
8853 cat > conftest.
$ac_ext <<EOF
8854 #line 8855 "configure"
8855 #include "confdefs.h"
8856 /* Override any gcc2 internal prototype to avoid an error. */
8857 /* We use char because int might match the return type of a gcc2
8858 builtin and then its argument prototype would still apply. */
8865 if { (eval echo configure
:8866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8867 eval "ac_cv_lib_$ac_lib_var=yes"
8869 echo "configure: failed program was:" >&5
8870 cat conftest.
$ac_ext >&5
8872 eval "ac_cv_lib_$ac_lib_var=no"
8875 LIBS
="$ac_save_LIBS"
8878 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8879 echo "$ac_t""yes" 1>&6
8880 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8881 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8882 cat >> confdefs.h
<<EOF
8883 #define $ac_tr_lib 1
8889 echo "$ac_t""no" 1>&6
8892 for ac_func
in getprpwnam
8894 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8895 echo "configure:8896: checking for $ac_func" >&5
8896 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8897 echo $ac_n "(cached) $ac_c" 1>&6
8899 cat > conftest.
$ac_ext <<EOF
8900 #line 8901 "configure"
8901 #include "confdefs.h"
8902 /* System header to define __stub macros and hopefully few prototypes,
8903 which can conflict with char $ac_func(); below. */
8905 /* Override any gcc2 internal prototype to avoid an error. */
8906 /* We use char because int might match the return type of a gcc2
8907 builtin and then its argument prototype would still apply. */
8912 /* The GNU C library defines this for functions which it implements
8913 to always fail with ENOSYS. Some functions are actually named
8914 something starting with __ and the normal name is an alias. */
8915 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8923 if { (eval echo configure
:8924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8925 eval "ac_cv_func_$ac_func=yes"
8927 echo "configure: failed program was:" >&5
8928 cat conftest.
$ac_ext >&5
8930 eval "ac_cv_func_$ac_func=no"
8935 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8936 echo "$ac_t""yes" 1>&6
8937 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8938 cat >> confdefs.h
<<EOF
8939 #define $ac_tr_func 1
8943 echo "$ac_t""no" 1>&6
8951 # this bit needs to be modified for each OS that is suported by
8952 # smbwrapper. You need to specify how to created a shared library and
8953 # how to compile C code to produce PIC object files
8955 # these are the defaults, good for lots of systems
8964 # Assume non-shared by default and override below
8966 echo $ac_n "checking ability to build shared libraries""... $ac_c" 1>&6
8967 echo "configure:8968: checking ability to build shared libraries" >&5
8969 # and these are for particular systems
8971 *linux
*) cat >> confdefs.h
<<\EOF
8977 DYNEXP
="-Wl,--export-dynamic"
8979 SONAMEFLAG
="-Wl,-soname="
8980 cat >> confdefs.h
<<\EOF
8981 #define STAT_ST_BLOCKSIZE 512
8985 *solaris
*) cat >> confdefs.h
<<\EOF
8992 if test "${GCC}" = "yes"; then
8994 if test "${ac_cv_prog_gnu_ld}" = "yes"; then
8999 ## ${CFLAGS} added for building 64-bit shared
9000 ## libs using Sun's Compiler
9001 LDSHFLAGS
="-G \${CFLAGS}"
9005 cat >> confdefs.h
<<\EOF
9006 #define STAT_ST_BLOCKSIZE 512
9010 *sunos
*) cat >> confdefs.h
<<\EOF
9016 SONAMEFLAG
="-Wl,-h,"
9017 PICFLAG
="-KPIC" # Is this correct for SunOS
9018 cat >> confdefs.h
<<\EOF
9019 #define STAT_ST_BLOCKSIZE 512
9023 *freebsd
*) BLDSHARED
="true"
9025 DYNEXP
="-Wl,--export-dynamic"
9026 SONAMEFLAG
="-Wl,-soname,"
9027 PICFLAG
="-fPIC -DPIC"
9028 cat >> confdefs.h
<<\EOF
9029 #define STAT_ST_BLOCKSIZE 512
9033 *openbsd
*) BLDSHARED
="true"
9035 DYNEXP
="-Wl,-Bdynamic"
9036 SONAMEFLAG
="-Wl,-soname,"
9038 cat >> confdefs.h
<<\EOF
9039 #define STAT_ST_BLOCKSIZE 512
9043 *irix
*) cat >> confdefs.h
<<\EOF
9048 *irix6
*) cat >> confdefs.h
<<\EOF
9054 ATTEMPT_WRAP32_BUILD
=yes
9056 LDSHFLAGS
="-set_version sgi1.0 -shared"
9057 SONAMEFLAG
="-soname "
9059 if test "${GCC}" = "yes"; then
9064 cat >> confdefs.h
<<\EOF
9065 #define STAT_ST_BLOCKSIZE 512
9069 *aix
*) cat >> confdefs.h
<<\EOF
9074 LDSHFLAGS
="-Wl,-bexpall,-bM:SRE,-bnoentry"
9075 DYNEXP
="-Wl,-brtl,-bexpall"
9077 if test "${GCC}" != "yes"; then
9078 ## for funky AIX compiler using strncpy()
9079 CFLAGS
="$CFLAGS -D_LINUX_SOURCE_COMPAT -qmaxmem=32000"
9082 cat >> confdefs.h
<<\EOF
9083 #define STAT_ST_BLOCKSIZE DEV_BSIZE
9087 *hpux
*) cat >> confdefs.h
<<\EOF
9092 # Use special PIC flags for the native HP-UX compiler.
9093 if test $ac_cv_prog_cc_Ae = yes; then
9096 LDSHFLAGS
="-B symbolic -b -z"
9101 cat >> confdefs.h
<<\EOF
9102 #define STAT_ST_BLOCKSIZE 8192
9106 *qnx
*) cat >> confdefs.h
<<\EOF
9110 cat >> confdefs.h
<<\EOF
9111 #define STAT_ST_BLOCKSIZE 512
9115 *osf
*) cat >> confdefs.h
<<\EOF
9121 SONAMEFLAG
="-Wl,-soname,"
9123 cat >> confdefs.h
<<\EOF
9124 #define STAT_ST_BLOCKSIZE 512
9128 *sco
*) cat >> confdefs.h
<<\EOF
9132 cat >> confdefs.h
<<\EOF
9133 #define STAT_ST_BLOCKSIZE 512
9137 *unixware
*) cat >> confdefs.h
<<\EOF
9143 SONAMEFLAG
="-Wl,-soname,"
9145 cat >> confdefs.h
<<\EOF
9146 #define STAT_ST_BLOCKSIZE 512
9150 *next2
*) cat >> confdefs.h
<<\EOF
9154 cat >> confdefs.h
<<\EOF
9155 #define STAT_ST_BLOCKSIZE 512
9159 *dgux
*) # Extract the first word of "groff", so it can be a program name with args.
9160 set dummy
groff; ac_word
=$2
9161 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9162 echo "configure:9163: checking for $ac_word" >&5
9163 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
9164 echo $ac_n "(cached) $ac_c" 1>&6
9166 if test -n "$ROFF"; then
9167 ac_cv_prog_ROFF
="$ROFF" # Let the user override the test.
9169 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
9171 for ac_dir
in $ac_dummy; do
9172 test -z "$ac_dir" && ac_dir
=.
9173 if test -f $ac_dir/$ac_word; then
9174 ac_cv_prog_ROFF
="groff -etpsR -Tascii -man"
9181 ROFF
="$ac_cv_prog_ROFF"
9182 if test -n "$ROFF"; then
9183 echo "$ac_t""$ROFF" 1>&6
9185 echo "$ac_t""no" 1>&6
9188 cat >> confdefs.h
<<\EOF
9189 #define STAT_ST_BLOCKSIZE 512
9193 *sysv4
*) cat >> confdefs.h
<<\EOF
9198 *-univel-*) if test "$GCC" != yes ; then
9199 cat >> confdefs.h
<<\EOF
9200 #define HAVE_MEMSET 1
9207 *mips-sni-sysv4
*) cat >> confdefs.h
<<\EOF
9208 #define RELIANTUNIX 1
9212 cat >> confdefs.h
<<\EOF
9213 #define STAT_ST_BLOCKSIZE 512
9218 *sysv5
*) cat >> confdefs.h
<<\EOF
9222 if test "$GCC" != yes ; then
9223 cat >> confdefs.h
<<\EOF
9224 #define HAVE_MEMSET 1
9229 cat >> confdefs.h
<<\EOF
9230 #define STAT_ST_BLOCKSIZE 512
9235 cat >> confdefs.h
<<\EOF
9236 #define STAT_ST_BLOCKSIZE 512
9242 echo "$ac_t""$BLDSHARED" 1>&6
9243 echo $ac_n "checking linker flags for shared libraries""... $ac_c" 1>&6
9244 echo "configure:9245: checking linker flags for shared libraries" >&5
9245 echo "$ac_t""$LDSHFLAGS" 1>&6
9246 echo $ac_n "checking compiler flags for position-independent code""... $ac_c" 1>&6
9247 echo "configure:9248: checking compiler flags for position-independent code" >&5
9248 echo "$ac_t""$PICFLAGS" 1>&6
9250 #######################################################
9251 # test whether building a shared library actually works
9252 if test $BLDSHARED = true
; then
9253 echo $ac_n "checking whether building shared libraries actually works""... $ac_c" 1>&6
9254 echo "configure:9255: checking whether building shared libraries actually works" >&5
9255 if eval "test \"`echo '$''{'ac_cv_shlib_works'+set}'`\" = set"; then
9256 echo $ac_n "(cached) $ac_c" 1>&6
9259 ac_cv_shlib_works
=no
9260 # try building a trivial shared library
9261 if test "$PICSUFFIX" = "po"; then
9262 $CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.po
${srcdir-.}/tests
/shlib.c
&&
9263 $CC $CPPFLAGS $CFLAGS `eval echo $LDSHFLAGS` -o shlib.so shlib.po
&&
9264 ac_cv_shlib_works
=yes
9266 $CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.
$PICSUFFIX ${srcdir-.}/tests
/shlib.c
&&
9267 mv shlib.
$PICSUFFIX shlib.po
&&
9268 $CC $CPPFLAGS $CFLAGS `eval echo $LDSHFLAGS` -o shlib.so shlib.po
&&
9269 ac_cv_shlib_works
=yes
9271 rm -f shlib.so shlib.po
9275 echo "$ac_t""$ac_cv_shlib_works" 1>&6
9276 if test $ac_cv_shlib_works = no
; then
9282 # this updates our target list if we can build shared libs
9283 if test $BLDSHARED = true
; then
9284 LIBSMBCLIENT_SHARED
=bin
/libsmbclient.
$SHLIBEXT
9286 LIBSMBCLIENT_SHARED
=
9291 echo $ac_n "checking for long long""... $ac_c" 1>&6
9292 echo "configure:9293: checking for long long" >&5
9293 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
9294 echo $ac_n "(cached) $ac_c" 1>&6
9297 if test "$cross_compiling" = yes; then
9298 samba_cv_have_longlong
=cross
9300 cat > conftest.
$ac_ext <<EOF
9301 #line 9302 "configure"
9302 #include "confdefs.h"
9304 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
9306 if { (eval echo configure
:9307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9308 samba_cv_have_longlong
=yes
9310 echo "configure: failed program was:" >&5
9311 cat conftest.
$ac_ext >&5
9313 samba_cv_have_longlong
=no
9320 echo "$ac_t""$samba_cv_have_longlong" 1>&6
9321 if test x
"$samba_cv_have_longlong" = x
"yes"; then
9322 cat >> confdefs.h
<<\EOF
9323 #define HAVE_LONGLONG 1
9329 # Check if the compiler supports the LL prefix on long long integers.
9332 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
9333 echo "configure:9334: checking for LL suffix on long long integers" >&5
9334 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
9335 echo $ac_n "(cached) $ac_c" 1>&6
9338 cat > conftest.
$ac_ext <<EOF
9339 #line 9340 "configure"
9340 #include "confdefs.h"
9343 long long i = 0x8000000000LL
9346 if { (eval echo configure
:9347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9348 samba_cv_compiler_supports_ll
=yes
9350 echo "configure: failed program was:" >&5
9351 cat conftest.
$ac_ext >&5
9353 samba_cv_compiler_supports_ll
=no
9358 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
9359 if test x
"$samba_cv_compiler_supports_ll" = x
"yes"; then
9360 cat >> confdefs.h
<<\EOF
9361 #define COMPILER_SUPPORTS_LL 1
9367 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
9368 echo "configure:9369: checking for 64 bit off_t" >&5
9369 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
9370 echo $ac_n "(cached) $ac_c" 1>&6
9373 if test "$cross_compiling" = yes; then
9374 samba_cv_SIZEOF_OFF_T
=cross
9376 cat > conftest.
$ac_ext <<EOF
9377 #line 9378 "configure"
9378 #include "confdefs.h"
9380 #include <sys/stat.h>
9381 main() { exit((sizeof(off_t) == 8) ? 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_SIZEOF_OFF_T
=yes
9387 echo "configure: failed program was:" >&5
9388 cat conftest.
$ac_ext >&5
9390 samba_cv_SIZEOF_OFF_T
=no
9397 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
9398 if test x
"$samba_cv_SIZEOF_OFF_T" = x
"yes"; then
9399 cat >> confdefs.h
<<\EOF
9400 #define SIZEOF_OFF_T 8
9405 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
9406 echo "configure:9407: checking for off64_t" >&5
9407 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
9408 echo $ac_n "(cached) $ac_c" 1>&6
9411 if test "$cross_compiling" = yes; then
9412 samba_cv_HAVE_OFF64_T
=cross
9414 cat > conftest.
$ac_ext <<EOF
9415 #line 9416 "configure"
9416 #include "confdefs.h"
9418 #if defined(HAVE_UNISTD_H)
9422 #include <sys/stat.h>
9423 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9425 if { (eval echo configure
:9426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9427 samba_cv_HAVE_OFF64_T
=yes
9429 echo "configure: failed program was:" >&5
9430 cat conftest.
$ac_ext >&5
9432 samba_cv_HAVE_OFF64_T
=no
9439 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
9440 if test x
"$samba_cv_HAVE_OFF64_T" = x
"yes"; then
9441 cat >> confdefs.h
<<\EOF
9442 #define HAVE_OFF64_T 1
9447 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
9448 echo "configure:9449: checking for 64 bit ino_t" >&5
9449 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
9450 echo $ac_n "(cached) $ac_c" 1>&6
9453 if test "$cross_compiling" = yes; then
9454 samba_cv_SIZEOF_INO_T
=cross
9456 cat > conftest.
$ac_ext <<EOF
9457 #line 9458 "configure"
9458 #include "confdefs.h"
9460 #include <sys/stat.h>
9461 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
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_SIZEOF_INO_T
=yes
9467 echo "configure: failed program was:" >&5
9468 cat conftest.
$ac_ext >&5
9470 samba_cv_SIZEOF_INO_T
=no
9477 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
9478 if test x
"$samba_cv_SIZEOF_INO_T" = x
"yes"; then
9479 cat >> confdefs.h
<<\EOF
9480 #define SIZEOF_INO_T 8
9485 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
9486 echo "configure:9487: checking for ino64_t" >&5
9487 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
9488 echo $ac_n "(cached) $ac_c" 1>&6
9491 if test "$cross_compiling" = yes; then
9492 samba_cv_HAVE_INO64_T
=cross
9494 cat > conftest.
$ac_ext <<EOF
9495 #line 9496 "configure"
9496 #include "confdefs.h"
9498 #if defined(HAVE_UNISTD_H)
9502 #include <sys/stat.h>
9503 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9505 if { (eval echo configure
:9506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9507 samba_cv_HAVE_INO64_T
=yes
9509 echo "configure: failed program was:" >&5
9510 cat conftest.
$ac_ext >&5
9512 samba_cv_HAVE_INO64_T
=no
9519 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
9520 if test x
"$samba_cv_HAVE_INO64_T" = x
"yes"; then
9521 cat >> confdefs.h
<<\EOF
9522 #define HAVE_INO64_T 1
9527 echo $ac_n "checking for dev64_t""... $ac_c" 1>&6
9528 echo "configure:9529: checking for dev64_t" >&5
9529 if eval "test \"`echo '$''{'samba_cv_HAVE_DEV64_T'+set}'`\" = set"; then
9530 echo $ac_n "(cached) $ac_c" 1>&6
9533 if test "$cross_compiling" = yes; then
9534 samba_cv_HAVE_DEV64_T
=cross
9536 cat > conftest.
$ac_ext <<EOF
9537 #line 9538 "configure"
9538 #include "confdefs.h"
9540 #if defined(HAVE_UNISTD_H)
9544 #include <sys/stat.h>
9545 main() { struct stat64 st; dev64_t s; if (sizeof(dev_t) == sizeof(dev64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9547 if { (eval echo configure
:9548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9549 samba_cv_HAVE_DEV64_T
=yes
9551 echo "configure: failed program was:" >&5
9552 cat conftest.
$ac_ext >&5
9554 samba_cv_HAVE_DEV64_T
=no
9561 echo "$ac_t""$samba_cv_HAVE_DEV64_T" 1>&6
9562 if test x
"$samba_cv_HAVE_DEV64_T" = x
"yes"; then
9563 cat >> confdefs.h
<<\EOF
9564 #define HAVE_DEV64_T 1
9569 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
9570 echo "configure:9571: checking for struct dirent64" >&5
9571 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
9572 echo $ac_n "(cached) $ac_c" 1>&6
9575 cat > conftest.
$ac_ext <<EOF
9576 #line 9577 "configure"
9577 #include "confdefs.h"
9579 #if defined(HAVE_UNISTD_H)
9582 #include <sys/types.h>
9588 if { (eval echo configure
:9589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9590 samba_cv_HAVE_STRUCT_DIRENT64
=yes
9592 echo "configure: failed program was:" >&5
9593 cat conftest.
$ac_ext >&5
9595 samba_cv_HAVE_STRUCT_DIRENT64
=no
9600 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
9601 if test x
"$samba_cv_HAVE_STRUCT_DIRENT64" = x
"yes" && test x
"$ac_cv_func_readdir64" = x
"yes"; then
9602 cat >> confdefs.h
<<\EOF
9603 #define HAVE_STRUCT_DIRENT64 1
9608 echo $ac_n "checking for major macro""... $ac_c" 1>&6
9609 echo "configure:9610: checking for major macro" >&5
9610 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MAJOR_FN'+set}'`\" = set"; then
9611 echo $ac_n "(cached) $ac_c" 1>&6
9614 if test "$cross_compiling" = yes; then
9615 samba_cv_HAVE_DEVICE_MAJOR_FN
=cross
9617 cat > conftest.
$ac_ext <<EOF
9618 #line 9619 "configure"
9619 #include "confdefs.h"
9621 #if defined(HAVE_UNISTD_H)
9624 #include <sys/types.h>
9625 main() { dev_t dev; int i = major(dev); return 0; }
9627 if { (eval echo configure
:9628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9629 samba_cv_HAVE_DEVICE_MAJOR_FN
=yes
9631 echo "configure: failed program was:" >&5
9632 cat conftest.
$ac_ext >&5
9634 samba_cv_HAVE_DEVICE_MAJOR_FN
=no
9641 echo "$ac_t""$samba_cv_HAVE_DEVICE_MAJOR_FN" 1>&6
9642 if test x
"$samba_cv_HAVE_DEVICE_MAJOR_FN" = x
"yes"; then
9643 cat >> confdefs.h
<<\EOF
9644 #define HAVE_DEVICE_MAJOR_FN 1
9649 echo $ac_n "checking for minor macro""... $ac_c" 1>&6
9650 echo "configure:9651: checking for minor macro" >&5
9651 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MINOR_FN'+set}'`\" = set"; then
9652 echo $ac_n "(cached) $ac_c" 1>&6
9655 if test "$cross_compiling" = yes; then
9656 samba_cv_HAVE_DEVICE_MINOR_FN
=cross
9658 cat > conftest.
$ac_ext <<EOF
9659 #line 9660 "configure"
9660 #include "confdefs.h"
9662 #if defined(HAVE_UNISTD_H)
9665 #include <sys/types.h>
9666 main() { dev_t dev; int i = minor(dev); return 0; }
9668 if { (eval echo configure
:9669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9670 samba_cv_HAVE_DEVICE_MINOR_FN
=yes
9672 echo "configure: failed program was:" >&5
9673 cat conftest.
$ac_ext >&5
9675 samba_cv_HAVE_DEVICE_MINOR_FN
=no
9682 echo "$ac_t""$samba_cv_HAVE_DEVICE_MINOR_FN" 1>&6
9683 if test x
"$samba_cv_HAVE_DEVICE_MINOR_FN" = x
"yes"; then
9684 cat >> confdefs.h
<<\EOF
9685 #define HAVE_DEVICE_MINOR_FN 1
9690 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
9691 echo "configure:9692: checking for unsigned char" >&5
9692 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
9693 echo $ac_n "(cached) $ac_c" 1>&6
9696 if test "$cross_compiling" = yes; then
9697 samba_cv_HAVE_UNSIGNED_CHAR
=cross
9699 cat > conftest.
$ac_ext <<EOF
9700 #line 9701 "configure"
9701 #include "confdefs.h"
9703 main() { char c; c=250; exit((c > 0)?0:1); }
9705 if { (eval echo configure
:9706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9707 samba_cv_HAVE_UNSIGNED_CHAR
=yes
9709 echo "configure: failed program was:" >&5
9710 cat conftest.
$ac_ext >&5
9712 samba_cv_HAVE_UNSIGNED_CHAR
=no
9719 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
9720 if test x
"$samba_cv_HAVE_UNSIGNED_CHAR" = x
"yes"; then
9721 cat >> confdefs.h
<<\EOF
9722 #define HAVE_UNSIGNED_CHAR 1
9727 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
9728 echo "configure:9729: checking for sin_len in sock" >&5
9729 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
9730 echo $ac_n "(cached) $ac_c" 1>&6
9733 cat > conftest.
$ac_ext <<EOF
9734 #line 9735 "configure"
9735 #include "confdefs.h"
9736 #include <sys/types.h>
9737 #include <sys/socket.h>
9738 #include <netinet/in.h>
9740 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
9743 if { (eval echo configure
:9744: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9745 samba_cv_HAVE_SOCK_SIN_LEN
=yes
9747 echo "configure: failed program was:" >&5
9748 cat conftest.
$ac_ext >&5
9750 samba_cv_HAVE_SOCK_SIN_LEN
=no
9755 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
9756 if test x
"$samba_cv_HAVE_SOCK_SIN_LEN" = x
"yes"; then
9757 cat >> confdefs.h
<<\EOF
9758 #define HAVE_SOCK_SIN_LEN 1
9763 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
9764 echo "configure:9765: checking whether seekdir returns void" >&5
9765 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
9766 echo $ac_n "(cached) $ac_c" 1>&6
9769 cat > conftest.
$ac_ext <<EOF
9770 #line 9771 "configure"
9771 #include "confdefs.h"
9772 #include <sys/types.h>
9774 void seekdir(DIR *d, long loc) { return; }
9779 if { (eval echo configure
:9780: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9781 samba_cv_SEEKDIR_RETURNS_VOID
=yes
9783 echo "configure: failed program was:" >&5
9784 cat conftest.
$ac_ext >&5
9786 samba_cv_SEEKDIR_RETURNS_VOID
=no
9791 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
9792 if test x
"$samba_cv_SEEKDIR_RETURNS_VOID" = x
"yes"; then
9793 cat >> confdefs.h
<<\EOF
9794 #define SEEKDIR_RETURNS_VOID 1
9799 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9800 echo "configure:9801: checking for __FUNCTION__ macro" >&5
9801 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9802 echo $ac_n "(cached) $ac_c" 1>&6
9805 cat > conftest.
$ac_ext <<EOF
9806 #line 9807 "configure"
9807 #include "confdefs.h"
9810 printf("%s\n", __FUNCTION__);
9813 if { (eval echo configure
:9814: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9815 samba_cv_HAVE_FUNCTION_MACRO
=yes
9817 echo "configure: failed program was:" >&5
9818 cat conftest.
$ac_ext >&5
9820 samba_cv_HAVE_FUNCTION_MACRO
=no
9825 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9826 if test x
"$samba_cv_HAVE_FUNCTION_MACRO" = x
"yes"; then
9827 cat >> confdefs.h
<<\EOF
9828 #define HAVE_FUNCTION_MACRO 1
9833 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9834 echo "configure:9835: checking if gettimeofday takes tz argument" >&5
9835 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9836 echo $ac_n "(cached) $ac_c" 1>&6
9839 if test "$cross_compiling" = yes; then
9840 samba_cv_HAVE_GETTIMEOFDAY_TZ
=cross
9842 cat > conftest.
$ac_ext <<EOF
9843 #line 9844 "configure"
9844 #include "confdefs.h"
9846 #include <sys/time.h>
9848 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9850 if { (eval echo configure
:9851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9852 samba_cv_HAVE_GETTIMEOFDAY_TZ
=yes
9854 echo "configure: failed program was:" >&5
9855 cat conftest.
$ac_ext >&5
9857 samba_cv_HAVE_GETTIMEOFDAY_TZ
=no
9864 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9865 if test x
"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x
"yes"; then
9866 cat >> confdefs.h
<<\EOF
9867 #define HAVE_GETTIMEOFDAY_TZ 1
9872 echo $ac_n "checking for __va_copy""... $ac_c" 1>&6
9873 echo "configure:9874: checking for __va_copy" >&5
9874 if eval "test \"`echo '$''{'samba_cv_HAVE_VA_COPY'+set}'`\" = set"; then
9875 echo $ac_n "(cached) $ac_c" 1>&6
9878 cat > conftest.
$ac_ext <<EOF
9879 #line 9880 "configure"
9880 #include "confdefs.h"
9887 if { (eval echo configure
:9888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9889 samba_cv_HAVE_VA_COPY
=yes
9891 echo "configure: failed program was:" >&5
9892 cat conftest.
$ac_ext >&5
9894 samba_cv_HAVE_VA_COPY
=no
9899 echo "$ac_t""$samba_cv_HAVE_VA_COPY" 1>&6
9900 if test x
"$samba_cv_HAVE_VA_COPY" = x
"yes"; then
9901 cat >> confdefs.h
<<\EOF
9902 #define HAVE_VA_COPY 1
9907 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
9908 echo "configure:9909: checking for C99 vsnprintf" >&5
9909 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
9910 echo $ac_n "(cached) $ac_c" 1>&6
9913 if test "$cross_compiling" = yes; then
9914 samba_cv_HAVE_C99_VSNPRINTF
=cross
9916 cat > conftest.
$ac_ext <<EOF
9917 #line 9918 "configure"
9918 #include "confdefs.h"
9920 #include <sys/types.h>
9922 void foo(const char *format, ...) {
9927 va_start(ap, format);
9928 len = vsnprintf(buf, 0, format, ap);
9930 if (len != 5) exit(1);
9932 va_start(ap, format);
9933 len = vsnprintf(0, 0, format, ap);
9935 if (len != 5) exit(1);
9937 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
9941 main() { foo("hello"); }
9944 if { (eval echo configure
:9945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9946 samba_cv_HAVE_C99_VSNPRINTF
=yes
9948 echo "configure: failed program was:" >&5
9949 cat conftest.
$ac_ext >&5
9951 samba_cv_HAVE_C99_VSNPRINTF
=no
9958 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
9959 if test x
"$samba_cv_HAVE_C99_VSNPRINTF" = x
"yes"; then
9960 cat >> confdefs.h
<<\EOF
9961 #define HAVE_C99_VSNPRINTF 1
9966 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9967 echo "configure:9968: checking for broken readdir" >&5
9968 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9969 echo $ac_n "(cached) $ac_c" 1>&6
9972 if test "$cross_compiling" = yes; then
9973 samba_cv_HAVE_BROKEN_READDIR
=cross
9975 cat > conftest.
$ac_ext <<EOF
9976 #line 9977 "configure"
9977 #include "confdefs.h"
9978 #include <sys/types.h>
9980 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9981 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9982 di->d_name[0] == 0) exit(0); exit(1);}
9984 if { (eval echo configure
:9985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9986 samba_cv_HAVE_BROKEN_READDIR
=yes
9988 echo "configure: failed program was:" >&5
9989 cat conftest.
$ac_ext >&5
9991 samba_cv_HAVE_BROKEN_READDIR
=no
9998 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9999 if test x
"$samba_cv_HAVE_BROKEN_READDIR" = x
"yes"; then
10000 cat >> confdefs.h
<<\EOF
10001 #define HAVE_BROKEN_READDIR 1
10006 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
10007 echo "configure:10008: checking for utimbuf" >&5
10008 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
10009 echo $ac_n "(cached) $ac_c" 1>&6
10012 cat > conftest.
$ac_ext <<EOF
10013 #line 10014 "configure"
10014 #include "confdefs.h"
10015 #include <sys/types.h>
10018 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
10021 if { (eval echo configure
:10022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10023 samba_cv_HAVE_UTIMBUF
=yes
10025 echo "configure: failed program was:" >&5
10026 cat conftest.
$ac_ext >&5
10028 samba_cv_HAVE_UTIMBUF
=no
10033 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
10034 if test x
"$samba_cv_HAVE_UTIMBUF" = x
"yes"; then
10035 cat >> confdefs.h
<<\EOF
10036 #define HAVE_UTIMBUF 1
10042 for ac_func
in pututline pututxline updwtmp updwtmpx getutmpx
10044 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10045 echo "configure:10046: checking for $ac_func" >&5
10046 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10047 echo $ac_n "(cached) $ac_c" 1>&6
10049 cat > conftest.
$ac_ext <<EOF
10050 #line 10051 "configure"
10051 #include "confdefs.h"
10052 /* System header to define __stub macros and hopefully few prototypes,
10053 which can conflict with char $ac_func(); below. */
10054 #include <assert.h>
10055 /* Override any gcc2 internal prototype to avoid an error. */
10056 /* We use char because int might match the return type of a gcc2
10057 builtin and then its argument prototype would still apply. */
10062 /* The GNU C library defines this for functions which it implements
10063 to always fail with ENOSYS. Some functions are actually named
10064 something starting with __ and the normal name is an alias. */
10065 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10073 if { (eval echo configure
:10074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10075 eval "ac_cv_func_$ac_func=yes"
10077 echo "configure: failed program was:" >&5
10078 cat conftest.
$ac_ext >&5
10080 eval "ac_cv_func_$ac_func=no"
10085 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10086 echo "$ac_t""yes" 1>&6
10087 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10088 cat >> confdefs.h
<<EOF
10089 #define $ac_tr_func 1
10093 echo "$ac_t""no" 1>&6
10098 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
10099 echo "configure:10100: checking for ut_name in utmp" >&5
10100 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
10101 echo $ac_n "(cached) $ac_c" 1>&6
10104 cat > conftest.
$ac_ext <<EOF
10105 #line 10106 "configure"
10106 #include "confdefs.h"
10107 #include <sys/types.h>
10110 struct utmp ut; ut.ut_name[0] = 'a';
10113 if { (eval echo configure
:10114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10115 samba_cv_HAVE_UT_UT_NAME
=yes
10117 echo "configure: failed program was:" >&5
10118 cat conftest.
$ac_ext >&5
10120 samba_cv_HAVE_UT_UT_NAME
=no
10125 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
10126 if test x
"$samba_cv_HAVE_UT_UT_NAME" = x
"yes"; then
10127 cat >> confdefs.h
<<\EOF
10128 #define HAVE_UT_UT_NAME 1
10133 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
10134 echo "configure:10135: checking for ut_user in utmp" >&5
10135 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
10136 echo $ac_n "(cached) $ac_c" 1>&6
10139 cat > conftest.
$ac_ext <<EOF
10140 #line 10141 "configure"
10141 #include "confdefs.h"
10142 #include <sys/types.h>
10145 struct utmp ut; ut.ut_user[0] = 'a';
10148 if { (eval echo configure
:10149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10150 samba_cv_HAVE_UT_UT_USER
=yes
10152 echo "configure: failed program was:" >&5
10153 cat conftest.
$ac_ext >&5
10155 samba_cv_HAVE_UT_UT_USER
=no
10160 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
10161 if test x
"$samba_cv_HAVE_UT_UT_USER" = x
"yes"; then
10162 cat >> confdefs.h
<<\EOF
10163 #define HAVE_UT_UT_USER 1
10168 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
10169 echo "configure:10170: checking for ut_id in utmp" >&5
10170 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
10171 echo $ac_n "(cached) $ac_c" 1>&6
10174 cat > conftest.
$ac_ext <<EOF
10175 #line 10176 "configure"
10176 #include "confdefs.h"
10177 #include <sys/types.h>
10180 struct utmp ut; ut.ut_id[0] = 'a';
10183 if { (eval echo configure
:10184: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10185 samba_cv_HAVE_UT_UT_ID
=yes
10187 echo "configure: failed program was:" >&5
10188 cat conftest.
$ac_ext >&5
10190 samba_cv_HAVE_UT_UT_ID
=no
10195 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
10196 if test x
"$samba_cv_HAVE_UT_UT_ID" = x
"yes"; then
10197 cat >> confdefs.h
<<\EOF
10198 #define HAVE_UT_UT_ID 1
10203 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
10204 echo "configure:10205: checking for ut_host in utmp" >&5
10205 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
10206 echo $ac_n "(cached) $ac_c" 1>&6
10209 cat > conftest.
$ac_ext <<EOF
10210 #line 10211 "configure"
10211 #include "confdefs.h"
10212 #include <sys/types.h>
10215 struct utmp ut; ut.ut_host[0] = 'a';
10218 if { (eval echo configure
:10219: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10220 samba_cv_HAVE_UT_UT_HOST
=yes
10222 echo "configure: failed program was:" >&5
10223 cat conftest.
$ac_ext >&5
10225 samba_cv_HAVE_UT_UT_HOST
=no
10230 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
10231 if test x
"$samba_cv_HAVE_UT_UT_HOST" = x
"yes"; then
10232 cat >> confdefs.h
<<\EOF
10233 #define HAVE_UT_UT_HOST 1
10238 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
10239 echo "configure:10240: checking for ut_time in utmp" >&5
10240 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
10241 echo $ac_n "(cached) $ac_c" 1>&6
10244 cat > conftest.
$ac_ext <<EOF
10245 #line 10246 "configure"
10246 #include "confdefs.h"
10247 #include <sys/types.h>
10250 struct utmp ut; time_t t; ut.ut_time = t;
10253 if { (eval echo configure
:10254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10255 samba_cv_HAVE_UT_UT_TIME
=yes
10257 echo "configure: failed program was:" >&5
10258 cat conftest.
$ac_ext >&5
10260 samba_cv_HAVE_UT_UT_TIME
=no
10265 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
10266 if test x
"$samba_cv_HAVE_UT_UT_TIME" = x
"yes"; then
10267 cat >> confdefs.h
<<\EOF
10268 #define HAVE_UT_UT_TIME 1
10273 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
10274 echo "configure:10275: checking for ut_tv in utmp" >&5
10275 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
10276 echo $ac_n "(cached) $ac_c" 1>&6
10279 cat > conftest.
$ac_ext <<EOF
10280 #line 10281 "configure"
10281 #include "confdefs.h"
10282 #include <sys/types.h>
10285 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
10288 if { (eval echo configure
:10289: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10290 samba_cv_HAVE_UT_UT_TV
=yes
10292 echo "configure: failed program was:" >&5
10293 cat conftest.
$ac_ext >&5
10295 samba_cv_HAVE_UT_UT_TV
=no
10300 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
10301 if test x
"$samba_cv_HAVE_UT_UT_TV" = x
"yes"; then
10302 cat >> confdefs.h
<<\EOF
10303 #define HAVE_UT_UT_TV 1
10308 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
10309 echo "configure:10310: checking for ut_type in utmp" >&5
10310 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
10311 echo $ac_n "(cached) $ac_c" 1>&6
10314 cat > conftest.
$ac_ext <<EOF
10315 #line 10316 "configure"
10316 #include "confdefs.h"
10317 #include <sys/types.h>
10320 struct utmp ut; ut.ut_type = 0;
10323 if { (eval echo configure
:10324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10325 samba_cv_HAVE_UT_UT_TYPE
=yes
10327 echo "configure: failed program was:" >&5
10328 cat conftest.
$ac_ext >&5
10330 samba_cv_HAVE_UT_UT_TYPE
=no
10335 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
10336 if test x
"$samba_cv_HAVE_UT_UT_TYPE" = x
"yes"; then
10337 cat >> confdefs.h
<<\EOF
10338 #define HAVE_UT_UT_TYPE 1
10343 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
10344 echo "configure:10345: checking for ut_pid in utmp" >&5
10345 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
10346 echo $ac_n "(cached) $ac_c" 1>&6
10349 cat > conftest.
$ac_ext <<EOF
10350 #line 10351 "configure"
10351 #include "confdefs.h"
10352 #include <sys/types.h>
10355 struct utmp ut; ut.ut_pid = 0;
10358 if { (eval echo configure
:10359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10360 samba_cv_HAVE_UT_UT_PID
=yes
10362 echo "configure: failed program was:" >&5
10363 cat conftest.
$ac_ext >&5
10365 samba_cv_HAVE_UT_UT_PID
=no
10370 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
10371 if test x
"$samba_cv_HAVE_UT_UT_PID" = x
"yes"; then
10372 cat >> confdefs.h
<<\EOF
10373 #define HAVE_UT_UT_PID 1
10378 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
10379 echo "configure:10380: checking for ut_exit in utmp" >&5
10380 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
10381 echo $ac_n "(cached) $ac_c" 1>&6
10384 cat > conftest.
$ac_ext <<EOF
10385 #line 10386 "configure"
10386 #include "confdefs.h"
10387 #include <sys/types.h>
10390 struct utmp ut; ut.ut_exit.e_exit = 0;
10393 if { (eval echo configure
:10394: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10395 samba_cv_HAVE_UT_UT_EXIT
=yes
10397 echo "configure: failed program was:" >&5
10398 cat conftest.
$ac_ext >&5
10400 samba_cv_HAVE_UT_UT_EXIT
=no
10405 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
10406 if test x
"$samba_cv_HAVE_UT_UT_EXIT" = x
"yes"; then
10407 cat >> confdefs.h
<<\EOF
10408 #define HAVE_UT_UT_EXIT 1
10413 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
10414 echo "configure:10415: checking for ut_addr in utmp" >&5
10415 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
10416 echo $ac_n "(cached) $ac_c" 1>&6
10419 cat > conftest.
$ac_ext <<EOF
10420 #line 10421 "configure"
10421 #include "confdefs.h"
10422 #include <sys/types.h>
10425 struct utmp ut; ut.ut_addr = 0;
10428 if { (eval echo configure
:10429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10430 samba_cv_HAVE_UT_UT_ADDR
=yes
10432 echo "configure: failed program was:" >&5
10433 cat conftest.
$ac_ext >&5
10435 samba_cv_HAVE_UT_UT_ADDR
=no
10440 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
10441 if test x
"$samba_cv_HAVE_UT_UT_ADDR" = x
"yes"; then
10442 cat >> confdefs.h
<<\EOF
10443 #define HAVE_UT_UT_ADDR 1
10448 if test x
$ac_cv_func_pututline = xyes
; then
10449 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
10450 echo "configure:10451: checking whether pututline returns pointer" >&5
10451 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
10452 echo $ac_n "(cached) $ac_c" 1>&6
10455 cat > conftest.
$ac_ext <<EOF
10456 #line 10457 "configure"
10457 #include "confdefs.h"
10458 #include <sys/types.h>
10461 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
10464 if { (eval echo configure
:10465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10466 samba_cv_PUTUTLINE_RETURNS_UTMP
=yes
10468 echo "configure: failed program was:" >&5
10469 cat conftest.
$ac_ext >&5
10471 samba_cv_PUTUTLINE_RETURNS_UTMP
=no
10476 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
10477 if test x
"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x
"yes"; then
10478 cat >> confdefs.h
<<\EOF
10479 #define PUTUTLINE_RETURNS_UTMP 1
10485 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
10486 echo "configure:10487: checking for ut_syslen in utmpx" >&5
10487 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
10488 echo $ac_n "(cached) $ac_c" 1>&6
10491 cat > conftest.
$ac_ext <<EOF
10492 #line 10493 "configure"
10493 #include "confdefs.h"
10494 #include <sys/types.h>
10497 struct utmpx ux; ux.ut_syslen = 0;
10500 if { (eval echo configure
:10501: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10502 samba_cv_HAVE_UX_UT_SYSLEN
=yes
10504 echo "configure: failed program was:" >&5
10505 cat conftest.
$ac_ext >&5
10507 samba_cv_HAVE_UX_UT_SYSLEN
=no
10512 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
10513 if test x
"$samba_cv_HAVE_UX_UT_SYSLEN" = x
"yes"; then
10514 cat >> confdefs.h
<<\EOF
10515 #define HAVE_UX_UT_SYSLEN 1
10521 #################################################
10522 # check for libiconv support
10523 echo $ac_n "checking whether to use libiconv""... $ac_c" 1>&6
10524 echo "configure:10525: checking whether to use libiconv" >&5
10525 # Check whether --with-libiconv or --without-libiconv was given.
10526 if test "${with_libiconv+set}" = set; then
10527 withval
="$with_libiconv"
10530 echo "$ac_t""no" 1>&6
10533 echo "$ac_t""yes" 1>&6
10534 CFLAGS
="$CFLAGS -I$withval/include"
10535 LDFLAGS
="$LDFLAGS -L$withval/lib"
10536 echo $ac_n "checking for iconv_open in -liconv""... $ac_c" 1>&6
10537 echo "configure:10538: checking for iconv_open in -liconv" >&5
10538 ac_lib_var
=`echo iconv'_'iconv_open | sed 'y%./+-%__p_%'`
10539 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10540 echo $ac_n "(cached) $ac_c" 1>&6
10542 ac_save_LIBS
="$LIBS"
10543 LIBS
="-liconv $LIBS"
10544 cat > conftest.
$ac_ext <<EOF
10545 #line 10546 "configure"
10546 #include "confdefs.h"
10547 /* Override any gcc2 internal prototype to avoid an error. */
10548 /* We use char because int might match the return type of a gcc2
10549 builtin and then its argument prototype would still apply. */
10556 if { (eval echo configure
:10557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10558 eval "ac_cv_lib_$ac_lib_var=yes"
10560 echo "configure: failed program was:" >&5
10561 cat conftest.
$ac_ext >&5
10563 eval "ac_cv_lib_$ac_lib_var=no"
10566 LIBS
="$ac_save_LIBS"
10569 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10570 echo "$ac_t""yes" 1>&6
10571 ac_tr_lib
=HAVE_LIB
`echo iconv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10572 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10573 cat >> confdefs.h
<<EOF
10574 #define $ac_tr_lib 1
10577 LIBS
="-liconv $LIBS"
10580 echo "$ac_t""no" 1>&6
10583 cat >> confdefs.h
<<EOF
10584 #define WITH_LIBICONV "${withval}"
10590 echo "$ac_t""no" 1>&6
10597 # check for iconv in libc
10598 echo $ac_n "checking for working iconv""... $ac_c" 1>&6
10599 echo "configure:10600: checking for working iconv" >&5
10600 if eval "test \"`echo '$''{'samba_cv_HAVE_NATIVE_ICONV'+set}'`\" = set"; then
10601 echo $ac_n "(cached) $ac_c" 1>&6
10604 if test "$cross_compiling" = yes; then
10605 samba_cv_HAVE_NATIVE_ICONV
=cross
10607 cat > conftest.
$ac_ext <<EOF
10608 #line 10609 "configure"
10609 #include "confdefs.h"
10613 iconv_t cd = iconv_open("ASCII", "UCS-2LE");
10614 if (cd == 0 || cd == (iconv_t)-1) return -1;
10619 if { (eval echo configure
:10620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10621 samba_cv_HAVE_NATIVE_ICONV
=yes
10623 echo "configure: failed program was:" >&5
10624 cat conftest.
$ac_ext >&5
10626 samba_cv_HAVE_NATIVE_ICONV
=no
10633 echo "$ac_t""$samba_cv_HAVE_NATIVE_ICONV" 1>&6
10634 if test x
"$samba_cv_HAVE_NATIVE_ICONV" = x
"yes"; then
10635 cat >> confdefs.h
<<\EOF
10636 #define HAVE_NATIVE_ICONV 1
10642 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
10643 echo "configure:10644: checking for Linux kernel oplocks" >&5
10644 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
10645 echo $ac_n "(cached) $ac_c" 1>&6
10648 if test "$cross_compiling" = yes; then
10649 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=cross
10651 cat > conftest.
$ac_ext <<EOF
10652 #line 10653 "configure"
10653 #include "confdefs.h"
10655 #include <sys/types.h>
10658 #define F_GETLEASE 1025
10661 int fd = open("/dev/null", O_RDONLY);
10662 return fcntl(fd, F_GETLEASE, 0) == -1;
10666 if { (eval echo configure
:10667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10668 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=yes
10670 echo "configure: failed program was:" >&5
10671 cat conftest.
$ac_ext >&5
10673 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=no
10680 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
10681 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x
"yes"; then
10682 cat >> confdefs.h
<<\EOF
10683 #define HAVE_KERNEL_OPLOCKS_LINUX 1
10688 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
10689 echo "configure:10690: checking for kernel change notify support" >&5
10690 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
10691 echo $ac_n "(cached) $ac_c" 1>&6
10694 if test "$cross_compiling" = yes; then
10695 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=cross
10697 cat > conftest.
$ac_ext <<EOF
10698 #line 10699 "configure"
10699 #include "confdefs.h"
10701 #include <sys/types.h>
10703 #include <signal.h>
10705 #define F_NOTIFY 1026
10708 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
10712 if { (eval echo configure
:10713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10714 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=yes
10716 echo "configure: failed program was:" >&5
10717 cat conftest.
$ac_ext >&5
10719 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=no
10726 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
10727 if test x
"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x
"yes"; then
10728 cat >> confdefs.h
<<\EOF
10729 #define HAVE_KERNEL_CHANGE_NOTIFY 1
10734 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
10735 echo "configure:10736: checking for kernel share modes" >&5
10736 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
10737 echo $ac_n "(cached) $ac_c" 1>&6
10740 if test "$cross_compiling" = yes; then
10741 samba_cv_HAVE_KERNEL_SHARE_MODES
=cross
10743 cat > conftest.
$ac_ext <<EOF
10744 #line 10745 "configure"
10745 #include "confdefs.h"
10747 #include <sys/types.h>
10749 #include <signal.h>
10750 #include <sys/file.h>
10752 #define LOCK_MAND 32
10753 #define LOCK_READ 64
10756 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
10760 if { (eval echo configure
:10761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10762 samba_cv_HAVE_KERNEL_SHARE_MODES
=yes
10764 echo "configure: failed program was:" >&5
10765 cat conftest.
$ac_ext >&5
10767 samba_cv_HAVE_KERNEL_SHARE_MODES
=no
10774 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
10775 if test x
"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x
"yes"; then
10776 cat >> confdefs.h
<<\EOF
10777 #define HAVE_KERNEL_SHARE_MODES 1
10785 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
10786 echo "configure:10787: checking for IRIX kernel oplock type definitions" >&5
10787 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
10788 echo $ac_n "(cached) $ac_c" 1>&6
10791 cat > conftest.
$ac_ext <<EOF
10792 #line 10793 "configure"
10793 #include "confdefs.h"
10794 #include <sys/types.h>
10797 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
10800 if { (eval echo configure
:10801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10802 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=yes
10804 echo "configure: failed program was:" >&5
10805 cat conftest.
$ac_ext >&5
10807 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=no
10812 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
10813 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x
"yes"; then
10814 cat >> confdefs.h
<<\EOF
10815 #define HAVE_KERNEL_OPLOCKS_IRIX 1
10820 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
10821 echo "configure:10822: checking for irix specific capabilities" >&5
10822 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
10823 echo $ac_n "(cached) $ac_c" 1>&6
10826 if test "$cross_compiling" = yes; then
10827 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=cross
10829 cat > conftest.
$ac_ext <<EOF
10830 #line 10831 "configure"
10831 #include "confdefs.h"
10832 #include <sys/types.h>
10833 #include <sys/capability.h>
10836 if ((cap = cap_get_proc()) == NULL)
10838 cap->cap_effective |= CAP_NETWORK_MGT;
10839 cap->cap_inheritable |= CAP_NETWORK_MGT;
10845 if { (eval echo configure
:10846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10847 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=yes
10849 echo "configure: failed program was:" >&5
10850 cat conftest.
$ac_ext >&5
10852 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=no
10859 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
10860 if test x
"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x
"yes"; then
10861 cat >> confdefs.h
<<\EOF
10862 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
10868 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
10869 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
10872 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10873 echo "configure:10874: checking for int16 typedef included by rpc/rpc.h" >&5
10874 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10875 echo $ac_n "(cached) $ac_c" 1>&6
10878 cat > conftest.
$ac_ext <<EOF
10879 #line 10880 "configure"
10880 #include "confdefs.h"
10881 #include <sys/types.h>
10882 #if defined(HAVE_RPC_RPC_H)
10883 #include <rpc/rpc.h>
10889 if { (eval echo configure
:10890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10891 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=yes
10893 echo "configure: failed program was:" >&5
10894 cat conftest.
$ac_ext >&5
10896 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=no
10901 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
10902 if test x
"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x
"yes"; then
10903 cat >> confdefs.h
<<\EOF
10904 #define HAVE_INT16_FROM_RPC_RPC_H 1
10909 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10910 echo "configure:10911: checking for uint16 typedef included by rpc/rpc.h" >&5
10911 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10912 echo $ac_n "(cached) $ac_c" 1>&6
10915 cat > conftest.
$ac_ext <<EOF
10916 #line 10917 "configure"
10917 #include "confdefs.h"
10918 #include <sys/types.h>
10919 #if defined(HAVE_RPC_RPC_H)
10920 #include <rpc/rpc.h>
10926 if { (eval echo configure
:10927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10928 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=yes
10930 echo "configure: failed program was:" >&5
10931 cat conftest.
$ac_ext >&5
10933 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=no
10938 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
10939 if test x
"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x
"yes"; then
10940 cat >> confdefs.h
<<\EOF
10941 #define HAVE_UINT16_FROM_RPC_RPC_H 1
10946 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10947 echo "configure:10948: checking for int32 typedef included by rpc/rpc.h" >&5
10948 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10949 echo $ac_n "(cached) $ac_c" 1>&6
10952 cat > conftest.
$ac_ext <<EOF
10953 #line 10954 "configure"
10954 #include "confdefs.h"
10955 #include <sys/types.h>
10956 #if defined(HAVE_RPC_RPC_H)
10957 #include <rpc/rpc.h>
10963 if { (eval echo configure
:10964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10965 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=yes
10967 echo "configure: failed program was:" >&5
10968 cat conftest.
$ac_ext >&5
10970 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=no
10975 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
10976 if test x
"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x
"yes"; then
10977 cat >> confdefs.h
<<\EOF
10978 #define HAVE_INT32_FROM_RPC_RPC_H 1
10983 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10984 echo "configure:10985: checking for uint32 typedef included by rpc/rpc.h" >&5
10985 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10986 echo $ac_n "(cached) $ac_c" 1>&6
10989 cat > conftest.
$ac_ext <<EOF
10990 #line 10991 "configure"
10991 #include "confdefs.h"
10992 #include <sys/types.h>
10993 #if defined(HAVE_RPC_RPC_H)
10994 #include <rpc/rpc.h>
11000 if { (eval echo configure
:11001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11002 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=yes
11004 echo "configure: failed program was:" >&5
11005 cat conftest.
$ac_ext >&5
11007 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=no
11012 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
11013 if test x
"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x
"yes"; then
11014 cat >> confdefs.h
<<\EOF
11015 #define HAVE_UINT32_FROM_RPC_RPC_H 1
11021 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
11022 echo "configure:11023: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
11023 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
11024 echo $ac_n "(cached) $ac_c" 1>&6
11027 cat > conftest.
$ac_ext <<EOF
11028 #line 11029 "configure"
11029 #include "confdefs.h"
11030 #include <sys/types.h>
11031 #ifdef HAVE_SYS_SECURITY_H
11032 #include <sys/security.h>
11034 #endif /* HAVE_SYS_SECURITY_H */
11035 #if defined(HAVE_RPC_RPC_H)
11036 #include <rpc/rpc.h>
11042 if { (eval echo configure
:11043: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11044 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=no
11046 echo "configure: failed program was:" >&5
11047 cat conftest.
$ac_ext >&5
11049 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=yes
11054 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
11055 if test x
"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x
"yes"; then
11056 cat >> confdefs.h
<<\EOF
11057 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
11062 echo $ac_n "checking for test routines""... $ac_c" 1>&6
11063 echo "configure:11064: checking for test routines" >&5
11064 if test "$cross_compiling" = yes; then
11065 echo "configure: warning: cannot run when cross-compiling" 1>&2
11067 cat > conftest.
$ac_ext <<EOF
11068 #line 11069 "configure"
11069 #include "confdefs.h"
11070 #include "${srcdir-.}/tests/trivial.c"
11072 if { (eval echo configure
:11073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11074 echo "$ac_t""yes" 1>&6
11076 echo "configure: failed program was:" >&5
11077 cat conftest.
$ac_ext >&5
11079 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
11085 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
11086 echo "configure:11087: checking for ftruncate extend" >&5
11087 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
11088 echo $ac_n "(cached) $ac_c" 1>&6
11091 if test "$cross_compiling" = yes; then
11092 samba_cv_HAVE_FTRUNCATE_EXTEND
=cross
11094 cat > conftest.
$ac_ext <<EOF
11095 #line 11096 "configure"
11096 #include "confdefs.h"
11097 #include "${srcdir-.}/tests/ftruncate.c"
11099 if { (eval echo configure
:11100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11101 samba_cv_HAVE_FTRUNCATE_EXTEND
=yes
11103 echo "configure: failed program was:" >&5
11104 cat conftest.
$ac_ext >&5
11106 samba_cv_HAVE_FTRUNCATE_EXTEND
=no
11113 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
11114 if test x
"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x
"yes"; then
11115 cat >> confdefs.h
<<\EOF
11116 #define HAVE_FTRUNCATE_EXTEND 1
11121 echo $ac_n "checking for AF_LOCAL socket support""... $ac_c" 1>&6
11122 echo "configure:11123: checking for AF_LOCAL socket support" >&5
11123 if eval "test \"`echo '$''{'samba_cv_HAVE_WORKING_AF_LOCAL'+set}'`\" = set"; then
11124 echo $ac_n "(cached) $ac_c" 1>&6
11127 if test "$cross_compiling" = yes; then
11128 samba_cv_HAVE_WORKING_AF_LOCAL
=cross
11130 cat > conftest.
$ac_ext <<EOF
11131 #line 11132 "configure"
11132 #include "confdefs.h"
11133 #include "${srcdir-.}/tests/unixsock.c"
11135 if { (eval echo configure
:11136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11137 samba_cv_HAVE_WORKING_AF_LOCAL
=yes
11139 echo "configure: failed program was:" >&5
11140 cat conftest.
$ac_ext >&5
11142 samba_cv_HAVE_WORKING_AF_LOCAL
=no
11149 echo "$ac_t""$samba_cv_HAVE_WORKING_AF_LOCAL" 1>&6
11150 if test x
"$samba_cv_HAVE_WORKING_AF_LOCAL" != xno
11152 cat >> confdefs.h
<<\EOF
11153 #define HAVE_WORKING_AF_LOCAL 1
11158 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
11159 echo "configure:11160: checking for broken getgroups" >&5
11160 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
11161 echo $ac_n "(cached) $ac_c" 1>&6
11164 if test "$cross_compiling" = yes; then
11165 samba_cv_HAVE_BROKEN_GETGROUPS
=cross
11167 cat > conftest.
$ac_ext <<EOF
11168 #line 11169 "configure"
11169 #include "confdefs.h"
11170 #include "${srcdir-.}/tests/getgroups.c"
11172 if { (eval echo configure
:11173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11174 samba_cv_HAVE_BROKEN_GETGROUPS
=yes
11176 echo "configure: failed program was:" >&5
11177 cat conftest.
$ac_ext >&5
11179 samba_cv_HAVE_BROKEN_GETGROUPS
=no
11186 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
11187 if test x
"$samba_cv_HAVE_BROKEN_GETGROUPS" = x
"yes"; then
11188 cat >> confdefs.h
<<\EOF
11189 #define HAVE_BROKEN_GETGROUPS 1
11194 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
11195 echo "configure:11196: checking whether getpass should be replaced" >&5
11196 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
11197 echo $ac_n "(cached) $ac_c" 1>&6
11200 SAVE_CPPFLAGS
="$CPPFLAGS"
11201 CPPFLAGS
="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/popt -I${srcdir-.}/smbwrapper"
11202 cat > conftest.
$ac_ext <<EOF
11203 #line 11204 "configure"
11204 #include "confdefs.h"
11206 #define REPLACE_GETPASS 1
11207 #define NO_CONFIG_H 1
11208 #define main dont_declare_main
11209 #include "${srcdir-.}/lib/getsmbpass.c"
11216 if { (eval echo configure
:11217: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11218 samba_cv_REPLACE_GETPASS
=yes
11220 echo "configure: failed program was:" >&5
11221 cat conftest.
$ac_ext >&5
11223 samba_cv_REPLACE_GETPASS
=no
11226 CPPFLAGS
="$SAVE_CPPFLAGS"
11230 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
11231 if test x
"$samba_cv_REPLACE_GETPASS" = x
"yes"; then
11232 cat >> confdefs.h
<<\EOF
11233 #define REPLACE_GETPASS 1
11238 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
11239 echo "configure:11240: checking for broken inet_ntoa" >&5
11240 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
11241 echo $ac_n "(cached) $ac_c" 1>&6
11244 if test "$cross_compiling" = yes; then
11245 samba_cv_REPLACE_INET_NTOA
=cross
11247 cat > conftest.
$ac_ext <<EOF
11248 #line 11249 "configure"
11249 #include "confdefs.h"
11252 #include <sys/types.h>
11253 #include <netinet/in.h>
11254 #ifdef HAVE_ARPA_INET_H
11255 #include <arpa/inet.h>
11257 main() { struct in_addr ip; ip.s_addr = 0x12345678;
11258 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
11259 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
11262 if { (eval echo configure
:11263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11264 samba_cv_REPLACE_INET_NTOA
=yes
11266 echo "configure: failed program was:" >&5
11267 cat conftest.
$ac_ext >&5
11269 samba_cv_REPLACE_INET_NTOA
=no
11276 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
11277 if test x
"$samba_cv_REPLACE_INET_NTOA" = x
"yes"; then
11278 cat >> confdefs.h
<<\EOF
11279 #define REPLACE_INET_NTOA 1
11284 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
11285 echo "configure:11286: checking for secure mkstemp" >&5
11286 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
11287 echo $ac_n "(cached) $ac_c" 1>&6
11290 if test "$cross_compiling" = yes; then
11291 samba_cv_HAVE_SECURE_MKSTEMP
=cross
11293 cat > conftest.
$ac_ext <<EOF
11294 #line 11295 "configure"
11295 #include "confdefs.h"
11296 #include <stdlib.h>
11297 #include <sys/types.h>
11298 #include <sys/stat.h>
11299 #include <unistd.h>
11302 char tpl[20]="/tmp/test.XXXXXX";
11303 int fd = mkstemp(tpl);
11304 if (fd == -1) exit(1);
11306 if (fstat(fd, &st) != 0) exit(1);
11307 if ((st.st_mode & 0777) != 0600) exit(1);
11311 if { (eval echo configure
:11312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11313 samba_cv_HAVE_SECURE_MKSTEMP
=yes
11315 echo "configure: failed program was:" >&5
11316 cat conftest.
$ac_ext >&5
11318 samba_cv_HAVE_SECURE_MKSTEMP
=no
11325 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
11326 if test x
"$samba_cv_HAVE_SECURE_MKSTEMP" = x
"yes"; then
11327 cat >> confdefs.h
<<\EOF
11328 #define HAVE_SECURE_MKSTEMP 1
11333 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
11334 echo "configure:11335: checking for sysconf(_SC_NGROUPS_MAX)" >&5
11335 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
11336 echo $ac_n "(cached) $ac_c" 1>&6
11339 if test "$cross_compiling" = yes; then
11340 samba_cv_SYSCONF_SC_NGROUPS_MAX
=cross
11342 cat > conftest.
$ac_ext <<EOF
11343 #line 11344 "configure"
11344 #include "confdefs.h"
11345 #include <unistd.h>
11346 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
11348 if { (eval echo configure
:11349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11350 samba_cv_SYSCONF_SC_NGROUPS_MAX
=yes
11352 echo "configure: failed program was:" >&5
11353 cat conftest.
$ac_ext >&5
11355 samba_cv_SYSCONF_SC_NGROUPS_MAX
=no
11362 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
11363 if test x
"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x
"yes"; then
11364 cat >> confdefs.h
<<\EOF
11365 #define SYSCONF_SC_NGROUPS_MAX 1
11370 echo $ac_n "checking for root""... $ac_c" 1>&6
11371 echo "configure:11372: checking for root" >&5
11372 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
11373 echo $ac_n "(cached) $ac_c" 1>&6
11376 if test "$cross_compiling" = yes; then
11377 samba_cv_HAVE_ROOT
=cross
11379 cat > conftest.
$ac_ext <<EOF
11380 #line 11381 "configure"
11381 #include "confdefs.h"
11382 main() { exit(getuid() != 0); }
11384 if { (eval echo configure
:11385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11386 samba_cv_HAVE_ROOT
=yes
11388 echo "configure: failed program was:" >&5
11389 cat conftest.
$ac_ext >&5
11391 samba_cv_HAVE_ROOT
=no
11398 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
11399 if test x
"$samba_cv_HAVE_ROOT" = x
"yes"; then
11400 cat >> confdefs.h
<<\EOF
11401 #define HAVE_ROOT 1
11405 echo "configure: warning: running as non-root will disable some tests" 1>&2
11409 # look for a method of finding the list of network interfaces
11411 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
11412 echo "configure:11413: checking for iface AIX" >&5
11413 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
11414 echo $ac_n "(cached) $ac_c" 1>&6
11417 if test "$cross_compiling" = yes; then
11418 samba_cv_HAVE_IFACE_AIX
=cross
11420 cat > conftest.
$ac_ext <<EOF
11421 #line 11422 "configure"
11422 #include "confdefs.h"
11424 #define HAVE_IFACE_AIX 1
11425 #define AUTOCONF_TEST 1
11426 #include "confdefs.h"
11427 #include "${srcdir-.}/lib/interfaces.c"
11429 if { (eval echo configure
:11430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11431 samba_cv_HAVE_IFACE_AIX
=yes
11433 echo "configure: failed program was:" >&5
11434 cat conftest.
$ac_ext >&5
11436 samba_cv_HAVE_IFACE_AIX
=no
11443 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
11444 if test x
"$samba_cv_HAVE_IFACE_AIX" = x
"yes"; then
11445 iface
=yes;cat >> confdefs.h
<<\EOF
11446 #define HAVE_IFACE_AIX 1
11451 if test $iface = no
; then
11452 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
11453 echo "configure:11454: checking for iface ifconf" >&5
11454 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
11455 echo $ac_n "(cached) $ac_c" 1>&6
11458 if test "$cross_compiling" = yes; then
11459 samba_cv_HAVE_IFACE_IFCONF
=cross
11461 cat > conftest.
$ac_ext <<EOF
11462 #line 11463 "configure"
11463 #include "confdefs.h"
11465 #define HAVE_IFACE_IFCONF 1
11466 #define AUTOCONF_TEST 1
11467 #include "confdefs.h"
11468 #include "${srcdir-.}/lib/interfaces.c"
11470 if { (eval echo configure
:11471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11472 samba_cv_HAVE_IFACE_IFCONF
=yes
11474 echo "configure: failed program was:" >&5
11475 cat conftest.
$ac_ext >&5
11477 samba_cv_HAVE_IFACE_IFCONF
=no
11484 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
11485 if test x
"$samba_cv_HAVE_IFACE_IFCONF" = x
"yes"; then
11486 iface
=yes;cat >> confdefs.h
<<\EOF
11487 #define HAVE_IFACE_IFCONF 1
11493 if test $iface = no
; then
11494 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
11495 echo "configure:11496: checking for iface ifreq" >&5
11496 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
11497 echo $ac_n "(cached) $ac_c" 1>&6
11500 if test "$cross_compiling" = yes; then
11501 samba_cv_HAVE_IFACE_IFREQ
=cross
11503 cat > conftest.
$ac_ext <<EOF
11504 #line 11505 "configure"
11505 #include "confdefs.h"
11507 #define HAVE_IFACE_IFREQ 1
11508 #define AUTOCONF_TEST 1
11509 #include "confdefs.h"
11510 #include "${srcdir-.}/lib/interfaces.c"
11512 if { (eval echo configure
:11513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11514 samba_cv_HAVE_IFACE_IFREQ
=yes
11516 echo "configure: failed program was:" >&5
11517 cat conftest.
$ac_ext >&5
11519 samba_cv_HAVE_IFACE_IFREQ
=no
11526 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
11527 if test x
"$samba_cv_HAVE_IFACE_IFREQ" = x
"yes"; then
11528 iface
=yes;cat >> confdefs.h
<<\EOF
11529 #define HAVE_IFACE_IFREQ 1
11536 ################################################
11537 # look for a method of setting the effective uid
11539 if test $seteuid = no
; then
11540 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
11541 echo "configure:11542: checking for setresuid" >&5
11542 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
11543 echo $ac_n "(cached) $ac_c" 1>&6
11546 if test "$cross_compiling" = yes; then
11547 samba_cv_USE_SETRESUID
=cross
11549 cat > conftest.
$ac_ext <<EOF
11550 #line 11551 "configure"
11551 #include "confdefs.h"
11553 #define AUTOCONF_TEST 1
11554 #define USE_SETRESUID 1
11555 #include "confdefs.h"
11556 #include "${srcdir-.}/lib/util_sec.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_USE_SETRESUID
=yes
11562 echo "configure: failed program was:" >&5
11563 cat conftest.
$ac_ext >&5
11565 samba_cv_USE_SETRESUID
=no
11572 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
11573 if test x
"$samba_cv_USE_SETRESUID" = x
"yes"; then
11574 seteuid
=yes;cat >> confdefs.h
<<\EOF
11575 #define USE_SETRESUID 1
11582 if test $seteuid = no
; then
11583 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
11584 echo "configure:11585: checking for setreuid" >&5
11585 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
11586 echo $ac_n "(cached) $ac_c" 1>&6
11589 if test "$cross_compiling" = yes; then
11590 samba_cv_USE_SETREUID
=cross
11592 cat > conftest.
$ac_ext <<EOF
11593 #line 11594 "configure"
11594 #include "confdefs.h"
11596 #define AUTOCONF_TEST 1
11597 #define USE_SETREUID 1
11598 #include "confdefs.h"
11599 #include "${srcdir-.}/lib/util_sec.c"
11601 if { (eval echo configure
:11602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11603 samba_cv_USE_SETREUID
=yes
11605 echo "configure: failed program was:" >&5
11606 cat conftest.
$ac_ext >&5
11608 samba_cv_USE_SETREUID
=no
11615 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
11616 if test x
"$samba_cv_USE_SETREUID" = x
"yes"; then
11617 seteuid
=yes;cat >> confdefs.h
<<\EOF
11618 #define USE_SETREUID 1
11624 if test $seteuid = no
; then
11625 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
11626 echo "configure:11627: checking for seteuid" >&5
11627 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
11628 echo $ac_n "(cached) $ac_c" 1>&6
11631 if test "$cross_compiling" = yes; then
11632 samba_cv_USE_SETEUID
=cross
11634 cat > conftest.
$ac_ext <<EOF
11635 #line 11636 "configure"
11636 #include "confdefs.h"
11638 #define AUTOCONF_TEST 1
11639 #define USE_SETEUID 1
11640 #include "confdefs.h"
11641 #include "${srcdir-.}/lib/util_sec.c"
11643 if { (eval echo configure
:11644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11645 samba_cv_USE_SETEUID
=yes
11647 echo "configure: failed program was:" >&5
11648 cat conftest.
$ac_ext >&5
11650 samba_cv_USE_SETEUID
=no
11657 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
11658 if test x
"$samba_cv_USE_SETEUID" = x
"yes"; then
11659 seteuid
=yes;cat >> confdefs.h
<<\EOF
11660 #define USE_SETEUID 1
11666 if test $seteuid = no
; then
11667 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
11668 echo "configure:11669: checking for setuidx" >&5
11669 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
11670 echo $ac_n "(cached) $ac_c" 1>&6
11673 if test "$cross_compiling" = yes; then
11674 samba_cv_USE_SETUIDX
=cross
11676 cat > conftest.
$ac_ext <<EOF
11677 #line 11678 "configure"
11678 #include "confdefs.h"
11680 #define AUTOCONF_TEST 1
11681 #define USE_SETUIDX 1
11682 #include "confdefs.h"
11683 #include "${srcdir-.}/lib/util_sec.c"
11685 if { (eval echo configure
:11686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11687 samba_cv_USE_SETUIDX
=yes
11689 echo "configure: failed program was:" >&5
11690 cat conftest.
$ac_ext >&5
11692 samba_cv_USE_SETUIDX
=no
11699 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
11700 if test x
"$samba_cv_USE_SETUIDX" = x
"yes"; then
11701 seteuid
=yes;cat >> confdefs.h
<<\EOF
11702 #define USE_SETUIDX 1
11709 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
11710 echo "configure:11711: checking for working mmap" >&5
11711 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
11712 echo $ac_n "(cached) $ac_c" 1>&6
11715 if test "$cross_compiling" = yes; then
11716 samba_cv_HAVE_MMAP
=cross
11718 cat > conftest.
$ac_ext <<EOF
11719 #line 11720 "configure"
11720 #include "confdefs.h"
11721 #include "${srcdir-.}/tests/shared_mmap.c"
11723 if { (eval echo configure
:11724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11725 samba_cv_HAVE_MMAP
=yes
11727 echo "configure: failed program was:" >&5
11728 cat conftest.
$ac_ext >&5
11730 samba_cv_HAVE_MMAP
=no
11737 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
11738 if test x
"$samba_cv_HAVE_MMAP" = x
"yes"; then
11739 cat >> confdefs.h
<<\EOF
11740 #define HAVE_MMAP 1
11745 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
11746 echo "configure:11747: checking for ftruncate needs root" >&5
11747 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
11748 echo $ac_n "(cached) $ac_c" 1>&6
11751 if test "$cross_compiling" = yes; then
11752 samba_cv_FTRUNCATE_NEEDS_ROOT
=cross
11754 cat > conftest.
$ac_ext <<EOF
11755 #line 11756 "configure"
11756 #include "confdefs.h"
11757 #include "${srcdir-.}/tests/ftruncroot.c"
11759 if { (eval echo configure
:11760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11761 samba_cv_FTRUNCATE_NEEDS_ROOT
=yes
11763 echo "configure: failed program was:" >&5
11764 cat conftest.
$ac_ext >&5
11766 samba_cv_FTRUNCATE_NEEDS_ROOT
=no
11773 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
11774 if test x
"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x
"yes"; then
11775 cat >> confdefs.h
<<\EOF
11776 #define FTRUNCATE_NEEDS_ROOT 1
11781 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
11782 echo "configure:11783: checking for fcntl locking" >&5
11783 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
11784 echo $ac_n "(cached) $ac_c" 1>&6
11787 if test "$cross_compiling" = yes; then
11788 samba_cv_HAVE_FCNTL_LOCK
=cross
11790 cat > conftest.
$ac_ext <<EOF
11791 #line 11792 "configure"
11792 #include "confdefs.h"
11793 #include "${srcdir-.}/tests/fcntl_lock.c"
11795 if { (eval echo configure
:11796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11797 samba_cv_HAVE_FCNTL_LOCK
=yes
11799 echo "configure: failed program was:" >&5
11800 cat conftest.
$ac_ext >&5
11802 samba_cv_HAVE_FCNTL_LOCK
=no
11809 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
11810 if test x
"$samba_cv_HAVE_FCNTL_LOCK" = x
"yes"; then
11811 cat >> confdefs.h
<<\EOF
11812 #define HAVE_FCNTL_LOCK 1
11817 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
11818 echo "configure:11819: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
11819 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
11820 echo $ac_n "(cached) $ac_c" 1>&6
11823 if test "$cross_compiling" = yes; then
11824 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=cross
11826 cat > conftest.
$ac_ext <<EOF
11827 #line 11828 "configure"
11828 #include "confdefs.h"
11829 #include "${srcdir-.}/tests/fcntl_lock64.c"
11831 if { (eval echo configure
:11832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11833 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=yes
11835 echo "configure: failed program was:" >&5
11836 cat conftest.
$ac_ext >&5
11838 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=no
11845 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
11846 if test x
"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x
"yes"; then
11847 cat >> confdefs.h
<<\EOF
11848 #define HAVE_BROKEN_FCNTL64_LOCKS 1
11855 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
11856 echo "configure:11857: checking for 64 bit fcntl locking" >&5
11857 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
11858 echo $ac_n "(cached) $ac_c" 1>&6
11861 if test "$cross_compiling" = yes; then
11862 samba_cv_HAVE_STRUCT_FLOCK64
=cross
11864 cat > conftest.
$ac_ext <<EOF
11865 #line 11866 "configure"
11866 #include "confdefs.h"
11868 #if defined(HAVE_UNISTD_H)
11869 #include <unistd.h>
11872 #include <stdlib.h>
11874 #ifdef HAVE_FCNTL_H
11878 #ifdef HAVE_SYS_FCNTL_H
11879 #include <sys/fcntl.h>
11881 main() { struct flock64 fl64;
11882 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
11889 if { (eval echo configure
:11890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11891 samba_cv_HAVE_STRUCT_FLOCK64
=yes
11893 echo "configure: failed program was:" >&5
11894 cat conftest.
$ac_ext >&5
11896 samba_cv_HAVE_STRUCT_FLOCK64
=no
11903 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
11905 if test x
"$samba_cv_HAVE_STRUCT_FLOCK64" = x
"yes"; then
11906 cat >> confdefs.h
<<\EOF
11907 #define HAVE_STRUCT_FLOCK64 1
11913 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
11914 echo "configure:11915: checking for st_blocks in struct stat" >&5
11915 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLOCKS'+set}'`\" = set"; then
11916 echo $ac_n "(cached) $ac_c" 1>&6
11919 cat > conftest.
$ac_ext <<EOF
11920 #line 11921 "configure"
11921 #include "confdefs.h"
11922 #include <sys/types.h>
11923 #include <sys/stat.h>
11924 #include <unistd.h>
11926 struct stat st; st.st_blocks = 0;
11929 if { (eval echo configure
:11930: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11931 samba_cv_HAVE_STAT_ST_BLOCKS
=yes
11933 echo "configure: failed program was:" >&5
11934 cat conftest.
$ac_ext >&5
11936 samba_cv_HAVE_STAT_ST_BLOCKS
=no
11941 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLOCKS" 1>&6
11942 if test x
"$samba_cv_HAVE_STAT_ST_BLOCKS" = x
"yes"; then
11943 cat >> confdefs.h
<<\EOF
11944 #define HAVE_STAT_ST_BLOCKS 1
11949 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
11950 echo "configure:11951: checking for st_blksize in struct stat" >&5
11951 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLKSIZE'+set}'`\" = set"; then
11952 echo $ac_n "(cached) $ac_c" 1>&6
11955 cat > conftest.
$ac_ext <<EOF
11956 #line 11957 "configure"
11957 #include "confdefs.h"
11958 #include <sys/types.h>
11959 #include <sys/stat.h>
11960 #include <unistd.h>
11962 struct stat st; st.st_blksize = 0;
11965 if { (eval echo configure
:11966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11967 samba_cv_HAVE_STAT_ST_BLKSIZE
=yes
11969 echo "configure: failed program was:" >&5
11970 cat conftest.
$ac_ext >&5
11972 samba_cv_HAVE_STAT_ST_BLKSIZE
=no
11977 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLKSIZE" 1>&6
11978 if test x
"$samba_cv_HAVE_STAT_ST_BLKSIZE" = x
"yes"; then
11979 cat >> confdefs.h
<<\EOF
11980 #define HAVE_STAT_ST_BLKSIZE 1
11987 echo $ac_n "checking for broken RedHat 7.2 system header files""... $ac_c" 1>&6
11988 echo "configure:11989: checking for broken RedHat 7.2 system header files" >&5
11989 if eval "test \"`echo '$''{'samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS'+set}'`\" = set"; then
11990 echo $ac_n "(cached) $ac_c" 1>&6
11993 cat > conftest.
$ac_ext <<EOF
11994 #line 11995 "configure"
11995 #include "confdefs.h"
11997 #ifdef HAVE_SYS_VFS_H
11998 #include <sys/vfs.h>
12000 #ifdef HAVE_SYS_CAPABILITY_H
12001 #include <sys/capability.h>
12008 if { (eval echo configure
:12009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12010 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS
=no
12012 echo "configure: failed program was:" >&5
12013 cat conftest.
$ac_ext >&5
12015 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS
=yes
12020 echo "$ac_t""$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" 1>&6
12021 if test x
"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x
"yes"; then
12022 cat >> confdefs.h
<<\EOF
12023 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
12030 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
12031 echo "configure:12032: checking for broken nisplus include files" >&5
12032 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
12033 echo $ac_n "(cached) $ac_c" 1>&6
12036 cat > conftest.
$ac_ext <<EOF
12037 #line 12038 "configure"
12038 #include "confdefs.h"
12039 #include <sys/acl.h>
12040 #if defined(HAVE_RPCSVC_NIS_H)
12041 #include <rpcsvc/nis.h>
12047 if { (eval echo configure
:12048: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12049 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=no
12051 echo "configure: failed program was:" >&5
12052 cat conftest.
$ac_ext >&5
12054 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=yes
12059 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
12060 if test x
"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x
"yes"; then
12061 cat >> confdefs.h
<<\EOF
12062 #define BROKEN_NISPLUS_INCLUDE_FILES 1
12068 #################################################
12069 # check for smbwrapper support
12070 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
12071 echo "configure:12072: checking whether to use smbwrapper" >&5
12072 # Check whether --with-smbwrapper or --without-smbwrapper was given.
12073 if test "${with_smbwrapper+set}" = set; then
12074 withval
="$with_smbwrapper"
12077 echo "$ac_t""yes" 1>&6
12078 cat >> confdefs.h
<<\EOF
12079 #define WITH_SMBWRAPPER 1
12082 WRAPPROG
="bin/smbsh\$(EXEEXT)"
12083 WRAP
="bin/smbwrapper.$SHLIBEXT"
12085 if test x
$ATTEMPT_WRAP32_BUILD = x
; then
12088 WRAP32
=bin
/smbwrapper
.32.
$SHLIBEXT
12091 # Conditions under which smbwrapper should not be built.
12093 if test x
$PICFLAG = x
; then
12094 echo No support
for PIC code
- disabling smbwrapper and smbsh
12098 elif test x
$ac_cv_func_syscall = xno
; then
12099 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
12104 EXTRA_ALL_TARGETS
="$EXTRA_ALL_TARGETS $WRAPPROG $WRAP $WRAP32"
12105 SMBWRAPPER
="$WRAPPROG $WRAP $WRAP32"
12108 echo "$ac_t""no" 1>&6
12112 echo "$ac_t""no" 1>&6
12117 #################################################
12118 # check for AFS clear-text auth support
12119 echo $ac_n "checking whether to use AFS clear-text auth""... $ac_c" 1>&6
12120 echo "configure:12121: checking whether to use AFS clear-text auth" >&5
12121 # Check whether --with-afs or --without-afs was given.
12122 if test "${with_afs+set}" = set; then
12123 withval
="$with_afs"
12126 echo "$ac_t""yes" 1>&6
12127 cat >> confdefs.h
<<\EOF
12133 echo "$ac_t""no" 1>&6
12137 echo "$ac_t""no" 1>&6
12143 #################################################
12144 # check for the DFS clear-text auth system
12145 echo $ac_n "checking whether to use DFS clear-text auth""... $ac_c" 1>&6
12146 echo "configure:12147: checking whether to use DFS clear-text auth" >&5
12147 # Check whether --with-dfs or --without-dfs was given.
12148 if test "${with_dfs+set}" = set; then
12149 withval
="$with_dfs"
12152 echo "$ac_t""yes" 1>&6
12153 cat >> confdefs.h
<<\EOF
12159 echo "$ac_t""no" 1>&6
12163 echo "$ac_t""no" 1>&6
12168 #################################################
12169 # active directory support
12171 with_ads_support
=yes
12172 echo $ac_n "checking whether to use Active Directory""... $ac_c" 1>&6
12173 echo "configure:12174: checking whether to use Active Directory" >&5
12175 # Check whether --with-ads or --without-ads was given.
12176 if test "${with_ads+set}" = set; then
12177 withval
="$with_ads"
12180 with_ads_support
=no
12186 if test x
"$with_ads_support" = x
"yes"; then
12187 cat >> confdefs.h
<<\EOF
12193 echo "$ac_t""$with_ads_support" 1>&6
12196 if test x
"$with_ads_support" = x
"yes"; then
12198 #################################################
12199 # check for location of Kerberos 5 install
12200 echo $ac_n "checking for kerberos 5 install path""... $ac_c" 1>&6
12201 echo "configure:12202: checking for kerberos 5 install path" >&5
12202 # Check whether --with-krb5 or --without-krb5 was given.
12203 if test "${with_krb5+set}" = set; then
12204 withval
="$with_krb5"
12207 echo "$ac_t""no" 1>&6
12210 echo "$ac_t""yes" 1>&6
12211 LIBS
="$LIBS -lkrb5"
12212 CFLAGS
="$CFLAGS -I$withval/include"
12213 CPPFLAGS
="$CPPFLAGS -I$withval/include"
12214 LDFLAGS
="$LDFLAGS -L$withval/lib"
12219 echo "$ac_t""no" 1>&6
12225 if test x
$FOUND_KRB5 = x
"no"; then
12226 #################################################
12227 # see if this box has the SuSE location for the heimdal kerberos implementation
12228 echo $ac_n "checking for /usr/include/heimdal""... $ac_c" 1>&6
12229 echo "configure:12230: checking for /usr/include/heimdal" >&5
12230 if test -d /usr
/include
/heimdal
; then
12231 LIBS
="$LIBS -lkrb5"
12232 CFLAGS
="$CFLAGS -I/usr/include/heimdal"
12233 CPPFLAGS
="$CPPFLAGS -I/usr/include/heimdal"
12234 echo "$ac_t""yes" 1>&6
12236 echo "$ac_t""no" 1>&6
12241 if test x
$FOUND_KRB5 = x
"no"; then
12242 #################################################
12243 # see if this box has the RedHat location for kerberos
12244 echo $ac_n "checking for /usr/kerberos""... $ac_c" 1>&6
12245 echo "configure:12246: checking for /usr/kerberos" >&5
12246 if test -d /usr
/kerberos
; then
12247 LIBS
="$LIBS -lkrb5"
12248 LDFLAGS
="$LDFLAGS -L/usr/kerberos/lib"
12249 CFLAGS
="$CFLAGS -I/usr/kerberos/include"
12250 CPPFLAGS
="$CPPFLAGS -I/usr/kerberos/include"
12251 echo "$ac_t""yes" 1>&6
12253 echo "$ac_t""no" 1>&6
12258 # now check for krb5.h. Some systems have the libraries without the headers!
12259 # note that this check is done here to allow for different kerberos
12261 for ac_hdr
in krb5.h
12263 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12264 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12265 echo "configure:12266: checking for $ac_hdr" >&5
12266 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12267 echo $ac_n "(cached) $ac_c" 1>&6
12269 cat > conftest.
$ac_ext <<EOF
12270 #line 12271 "configure"
12271 #include "confdefs.h"
12274 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12275 { (eval echo configure
:12276: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12276 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12277 if test -z "$ac_err"; then
12279 eval "ac_cv_header_$ac_safe=yes"
12282 echo "configure: failed program was:" >&5
12283 cat conftest.
$ac_ext >&5
12285 eval "ac_cv_header_$ac_safe=no"
12289 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12290 echo "$ac_t""yes" 1>&6
12291 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12292 cat >> confdefs.h
<<EOF
12293 #define $ac_tr_hdr 1
12297 echo "$ac_t""no" 1>&6
12302 # now check for gssapi headers. This is also done here to allow for
12303 # different kerberos include paths
12304 for ac_hdr
in gssapi.h gssapi
/gssapi_generic.h gssapi
/gssapi.h com_err.h
12306 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12307 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12308 echo "configure:12309: checking for $ac_hdr" >&5
12309 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12310 echo $ac_n "(cached) $ac_c" 1>&6
12312 cat > conftest.
$ac_ext <<EOF
12313 #line 12314 "configure"
12314 #include "confdefs.h"
12317 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12318 { (eval echo configure
:12319: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12319 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12320 if test -z "$ac_err"; then
12322 eval "ac_cv_header_$ac_safe=yes"
12325 echo "configure: failed program was:" >&5
12326 cat conftest.
$ac_ext >&5
12328 eval "ac_cv_header_$ac_safe=no"
12332 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12333 echo "$ac_t""yes" 1>&6
12334 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12335 cat >> confdefs.h
<<EOF
12336 #define $ac_tr_hdr 1
12340 echo "$ac_t""no" 1>&6
12345 ##################################################################
12346 # we might need the k5crypto and com_err libraries on some systems
12347 echo $ac_n "checking for _et_list in -lcom_err""... $ac_c" 1>&6
12348 echo "configure:12349: checking for _et_list in -lcom_err" >&5
12349 ac_lib_var
=`echo com_err'_'_et_list | sed 'y%./+-%__p_%'`
12350 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12351 echo $ac_n "(cached) $ac_c" 1>&6
12353 ac_save_LIBS
="$LIBS"
12354 LIBS
="-lcom_err $LIBS"
12355 cat > conftest.
$ac_ext <<EOF
12356 #line 12357 "configure"
12357 #include "confdefs.h"
12358 /* Override any gcc2 internal prototype to avoid an error. */
12359 /* We use char because int might match the return type of a gcc2
12360 builtin and then its argument prototype would still apply. */
12367 if { (eval echo configure
:12368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12369 eval "ac_cv_lib_$ac_lib_var=yes"
12371 echo "configure: failed program was:" >&5
12372 cat conftest.
$ac_ext >&5
12374 eval "ac_cv_lib_$ac_lib_var=no"
12377 LIBS
="$ac_save_LIBS"
12380 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12381 echo "$ac_t""yes" 1>&6
12382 LIBS
="$LIBS -lcom_err"
12384 echo "$ac_t""no" 1>&6
12387 echo $ac_n "checking for krb5_encrypt_data in -lk5crypto""... $ac_c" 1>&6
12388 echo "configure:12389: checking for krb5_encrypt_data in -lk5crypto" >&5
12389 ac_lib_var
=`echo k5crypto'_'krb5_encrypt_data | sed 'y%./+-%__p_%'`
12390 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12391 echo $ac_n "(cached) $ac_c" 1>&6
12393 ac_save_LIBS
="$LIBS"
12394 LIBS
="-lk5crypto $LIBS"
12395 cat > conftest.
$ac_ext <<EOF
12396 #line 12397 "configure"
12397 #include "confdefs.h"
12398 /* Override any gcc2 internal prototype to avoid an error. */
12399 /* We use char because int might match the return type of a gcc2
12400 builtin and then its argument prototype would still apply. */
12401 char krb5_encrypt_data();
12404 krb5_encrypt_data()
12407 if { (eval echo configure
:12408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12409 eval "ac_cv_lib_$ac_lib_var=yes"
12411 echo "configure: failed program was:" >&5
12412 cat conftest.
$ac_ext >&5
12414 eval "ac_cv_lib_$ac_lib_var=no"
12417 LIBS
="$ac_save_LIBS"
12420 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12421 echo "$ac_t""yes" 1>&6
12422 LIBS
="$LIBS -lk5crypto"
12424 echo "$ac_t""no" 1>&6
12428 echo $ac_n "checking for des_set_key in -lcrypto""... $ac_c" 1>&6
12429 echo "configure:12430: checking for des_set_key in -lcrypto" >&5
12430 ac_lib_var
=`echo crypto'_'des_set_key | sed 'y%./+-%__p_%'`
12431 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12432 echo $ac_n "(cached) $ac_c" 1>&6
12434 ac_save_LIBS
="$LIBS"
12435 LIBS
="-lcrypto $LIBS"
12436 cat > conftest.
$ac_ext <<EOF
12437 #line 12438 "configure"
12438 #include "confdefs.h"
12439 /* Override any gcc2 internal prototype to avoid an error. */
12440 /* We use char because int might match the return type of a gcc2
12441 builtin and then its argument prototype would still apply. */
12442 char des_set_key();
12448 if { (eval echo configure
:12449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12450 eval "ac_cv_lib_$ac_lib_var=yes"
12452 echo "configure: failed program was:" >&5
12453 cat conftest.
$ac_ext >&5
12455 eval "ac_cv_lib_$ac_lib_var=no"
12458 LIBS
="$ac_save_LIBS"
12461 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12462 echo "$ac_t""yes" 1>&6
12463 LIBS
="$LIBS -lcrypto"
12465 echo "$ac_t""no" 1>&6
12468 echo $ac_n "checking for copy_Authenticator in -lasn1""... $ac_c" 1>&6
12469 echo "configure:12470: checking for copy_Authenticator in -lasn1" >&5
12470 ac_lib_var
=`echo asn1'_'copy_Authenticator | sed 'y%./+-%__p_%'`
12471 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12472 echo $ac_n "(cached) $ac_c" 1>&6
12474 ac_save_LIBS
="$LIBS"
12475 LIBS
="-lasn1 $LIBS"
12476 cat > conftest.
$ac_ext <<EOF
12477 #line 12478 "configure"
12478 #include "confdefs.h"
12479 /* Override any gcc2 internal prototype to avoid an error. */
12480 /* We use char because int might match the return type of a gcc2
12481 builtin and then its argument prototype would still apply. */
12482 char copy_Authenticator();
12485 copy_Authenticator()
12488 if { (eval echo configure
:12489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12490 eval "ac_cv_lib_$ac_lib_var=yes"
12492 echo "configure: failed program was:" >&5
12493 cat conftest.
$ac_ext >&5
12495 eval "ac_cv_lib_$ac_lib_var=no"
12498 LIBS
="$ac_save_LIBS"
12501 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12502 echo "$ac_t""yes" 1>&6
12503 LIBS
="$LIBS -lasn1 -lroken"
12505 echo "$ac_t""no" 1>&6
12508 # Heimdal checks. On static Heimdal gssapi must be linked before krb5.
12509 echo $ac_n "checking for gss_display_status in -lgssapi""... $ac_c" 1>&6
12510 echo "configure:12511: checking for gss_display_status in -lgssapi" >&5
12511 ac_lib_var
=`echo gssapi'_'gss_display_status | sed 'y%./+-%__p_%'`
12512 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12513 echo $ac_n "(cached) $ac_c" 1>&6
12515 ac_save_LIBS
="$LIBS"
12516 LIBS
="-lgssapi $LIBS"
12517 cat > conftest.
$ac_ext <<EOF
12518 #line 12519 "configure"
12519 #include "confdefs.h"
12520 /* Override any gcc2 internal prototype to avoid an error. */
12521 /* We use char because int might match the return type of a gcc2
12522 builtin and then its argument prototype would still apply. */
12523 char gss_display_status();
12526 gss_display_status()
12529 if { (eval echo configure
:12530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12531 eval "ac_cv_lib_$ac_lib_var=yes"
12533 echo "configure: failed program was:" >&5
12534 cat conftest.
$ac_ext >&5
12536 eval "ac_cv_lib_$ac_lib_var=no"
12539 LIBS
="$ac_save_LIBS"
12542 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12543 echo "$ac_t""yes" 1>&6
12544 LIBS
="$LIBS -lgssapi -lkrb5 -lasn1";
12545 cat >> confdefs.h
<<\EOF
12546 #define HAVE_GSSAPI 1
12550 echo "$ac_t""no" 1>&6
12554 echo $ac_n "checking for krb5_set_real_time in -lkrb5""... $ac_c" 1>&6
12555 echo "configure:12556: checking for krb5_set_real_time in -lkrb5" >&5
12556 ac_lib_var
=`echo krb5'_'krb5_set_real_time | sed 'y%./+-%__p_%'`
12557 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12558 echo $ac_n "(cached) $ac_c" 1>&6
12560 ac_save_LIBS
="$LIBS"
12561 LIBS
="-lkrb5 $LIBS"
12562 cat > conftest.
$ac_ext <<EOF
12563 #line 12564 "configure"
12564 #include "confdefs.h"
12565 /* Override any gcc2 internal prototype to avoid an error. */
12566 /* We use char because int might match the return type of a gcc2
12567 builtin and then its argument prototype would still apply. */
12568 char krb5_set_real_time();
12571 krb5_set_real_time()
12574 if { (eval echo configure
:12575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12576 eval "ac_cv_lib_$ac_lib_var=yes"
12578 echo "configure: failed program was:" >&5
12579 cat conftest.
$ac_ext >&5
12581 eval "ac_cv_lib_$ac_lib_var=no"
12584 LIBS
="$ac_save_LIBS"
12587 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12588 echo "$ac_t""yes" 1>&6
12589 cat >> confdefs.h
<<\EOF
12590 #define HAVE_KRB5_SET_REAL_TIME 1
12594 echo "$ac_t""no" 1>&6
12597 echo $ac_n "checking for krb5_set_default_in_tkt_etypes in -lkrb5""... $ac_c" 1>&6
12598 echo "configure:12599: checking for krb5_set_default_in_tkt_etypes in -lkrb5" >&5
12599 ac_lib_var
=`echo krb5'_'krb5_set_default_in_tkt_etypes | sed 'y%./+-%__p_%'`
12600 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12601 echo $ac_n "(cached) $ac_c" 1>&6
12603 ac_save_LIBS
="$LIBS"
12604 LIBS
="-lkrb5 $LIBS"
12605 cat > conftest.
$ac_ext <<EOF
12606 #line 12607 "configure"
12607 #include "confdefs.h"
12608 /* Override any gcc2 internal prototype to avoid an error. */
12609 /* We use char because int might match the return type of a gcc2
12610 builtin and then its argument prototype would still apply. */
12611 char krb5_set_default_in_tkt_etypes();
12614 krb5_set_default_in_tkt_etypes()
12617 if { (eval echo configure
:12618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12619 eval "ac_cv_lib_$ac_lib_var=yes"
12621 echo "configure: failed program was:" >&5
12622 cat conftest.
$ac_ext >&5
12624 eval "ac_cv_lib_$ac_lib_var=no"
12627 LIBS
="$ac_save_LIBS"
12630 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12631 echo "$ac_t""yes" 1>&6
12632 cat >> confdefs.h
<<\EOF
12633 #define HAVE_KRB5_SET_DEFAULT_IN_TKT_ETYPES 1
12637 echo "$ac_t""no" 1>&6
12640 echo $ac_n "checking for krb5_set_default_tgs_ktypes in -lkrb5""... $ac_c" 1>&6
12641 echo "configure:12642: checking for krb5_set_default_tgs_ktypes in -lkrb5" >&5
12642 ac_lib_var
=`echo krb5'_'krb5_set_default_tgs_ktypes | sed 'y%./+-%__p_%'`
12643 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12644 echo $ac_n "(cached) $ac_c" 1>&6
12646 ac_save_LIBS
="$LIBS"
12647 LIBS
="-lkrb5 $LIBS"
12648 cat > conftest.
$ac_ext <<EOF
12649 #line 12650 "configure"
12650 #include "confdefs.h"
12651 /* Override any gcc2 internal prototype to avoid an error. */
12652 /* We use char because int might match the return type of a gcc2
12653 builtin and then its argument prototype would still apply. */
12654 char krb5_set_default_tgs_ktypes();
12657 krb5_set_default_tgs_ktypes()
12660 if { (eval echo configure
:12661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12662 eval "ac_cv_lib_$ac_lib_var=yes"
12664 echo "configure: failed program was:" >&5
12665 cat conftest.
$ac_ext >&5
12667 eval "ac_cv_lib_$ac_lib_var=no"
12670 LIBS
="$ac_save_LIBS"
12673 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12674 echo "$ac_t""yes" 1>&6
12675 cat >> confdefs.h
<<\EOF
12676 #define HAVE_KRB5_SET_DEFAULT_TGS_KTYPES 1
12680 echo "$ac_t""no" 1>&6
12684 echo $ac_n "checking for krb5_principal2salt in -lkrb5""... $ac_c" 1>&6
12685 echo "configure:12686: checking for krb5_principal2salt in -lkrb5" >&5
12686 ac_lib_var
=`echo krb5'_'krb5_principal2salt | sed 'y%./+-%__p_%'`
12687 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12688 echo $ac_n "(cached) $ac_c" 1>&6
12690 ac_save_LIBS
="$LIBS"
12691 LIBS
="-lkrb5 $LIBS"
12692 cat > conftest.
$ac_ext <<EOF
12693 #line 12694 "configure"
12694 #include "confdefs.h"
12695 /* Override any gcc2 internal prototype to avoid an error. */
12696 /* We use char because int might match the return type of a gcc2
12697 builtin and then its argument prototype would still apply. */
12698 char krb5_principal2salt();
12701 krb5_principal2salt()
12704 if { (eval echo configure
:12705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12706 eval "ac_cv_lib_$ac_lib_var=yes"
12708 echo "configure: failed program was:" >&5
12709 cat conftest.
$ac_ext >&5
12711 eval "ac_cv_lib_$ac_lib_var=no"
12714 LIBS
="$ac_save_LIBS"
12717 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12718 echo "$ac_t""yes" 1>&6
12719 cat >> confdefs.h
<<\EOF
12720 #define HAVE_KRB5_PRINCIPAL2SALT 1
12724 echo "$ac_t""no" 1>&6
12727 echo $ac_n "checking for krb5_use_enctype in -lkrb5""... $ac_c" 1>&6
12728 echo "configure:12729: checking for krb5_use_enctype in -lkrb5" >&5
12729 ac_lib_var
=`echo krb5'_'krb5_use_enctype | sed 'y%./+-%__p_%'`
12730 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12731 echo $ac_n "(cached) $ac_c" 1>&6
12733 ac_save_LIBS
="$LIBS"
12734 LIBS
="-lkrb5 $LIBS"
12735 cat > conftest.
$ac_ext <<EOF
12736 #line 12737 "configure"
12737 #include "confdefs.h"
12738 /* Override any gcc2 internal prototype to avoid an error. */
12739 /* We use char because int might match the return type of a gcc2
12740 builtin and then its argument prototype would still apply. */
12741 char krb5_use_enctype();
12747 if { (eval echo configure
:12748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12749 eval "ac_cv_lib_$ac_lib_var=yes"
12751 echo "configure: failed program was:" >&5
12752 cat conftest.
$ac_ext >&5
12754 eval "ac_cv_lib_$ac_lib_var=no"
12757 LIBS
="$ac_save_LIBS"
12760 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12761 echo "$ac_t""yes" 1>&6
12762 cat >> confdefs.h
<<\EOF
12763 #define HAVE_KRB5_USE_ENCTYPE 1
12767 echo "$ac_t""no" 1>&6
12770 echo $ac_n "checking for krb5_string_to_key in -lkrb5""... $ac_c" 1>&6
12771 echo "configure:12772: checking for krb5_string_to_key in -lkrb5" >&5
12772 ac_lib_var
=`echo krb5'_'krb5_string_to_key | sed 'y%./+-%__p_%'`
12773 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12774 echo $ac_n "(cached) $ac_c" 1>&6
12776 ac_save_LIBS
="$LIBS"
12777 LIBS
="-lkrb5 $LIBS"
12778 cat > conftest.
$ac_ext <<EOF
12779 #line 12780 "configure"
12780 #include "confdefs.h"
12781 /* Override any gcc2 internal prototype to avoid an error. */
12782 /* We use char because int might match the return type of a gcc2
12783 builtin and then its argument prototype would still apply. */
12784 char krb5_string_to_key();
12787 krb5_string_to_key()
12790 if { (eval echo configure
:12791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12792 eval "ac_cv_lib_$ac_lib_var=yes"
12794 echo "configure: failed program was:" >&5
12795 cat conftest.
$ac_ext >&5
12797 eval "ac_cv_lib_$ac_lib_var=no"
12800 LIBS
="$ac_save_LIBS"
12803 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12804 echo "$ac_t""yes" 1>&6
12805 cat >> confdefs.h
<<\EOF
12806 #define HAVE_KRB5_STRING_TO_KEY 1
12810 echo "$ac_t""no" 1>&6
12813 echo $ac_n "checking for krb5_get_pw_salt in -lkrb5""... $ac_c" 1>&6
12814 echo "configure:12815: checking for krb5_get_pw_salt in -lkrb5" >&5
12815 ac_lib_var
=`echo krb5'_'krb5_get_pw_salt | sed 'y%./+-%__p_%'`
12816 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12817 echo $ac_n "(cached) $ac_c" 1>&6
12819 ac_save_LIBS
="$LIBS"
12820 LIBS
="-lkrb5 $LIBS"
12821 cat > conftest.
$ac_ext <<EOF
12822 #line 12823 "configure"
12823 #include "confdefs.h"
12824 /* Override any gcc2 internal prototype to avoid an error. */
12825 /* We use char because int might match the return type of a gcc2
12826 builtin and then its argument prototype would still apply. */
12827 char krb5_get_pw_salt();
12833 if { (eval echo configure
:12834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12835 eval "ac_cv_lib_$ac_lib_var=yes"
12837 echo "configure: failed program was:" >&5
12838 cat conftest.
$ac_ext >&5
12840 eval "ac_cv_lib_$ac_lib_var=no"
12843 LIBS
="$ac_save_LIBS"
12846 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12847 echo "$ac_t""yes" 1>&6
12848 cat >> confdefs.h
<<\EOF
12849 #define HAVE_KRB5_GET_PW_SALT 1
12853 echo "$ac_t""no" 1>&6
12856 echo $ac_n "checking for krb5_string_to_key_salt in -lkrb5""... $ac_c" 1>&6
12857 echo "configure:12858: checking for krb5_string_to_key_salt in -lkrb5" >&5
12858 ac_lib_var
=`echo krb5'_'krb5_string_to_key_salt | sed 'y%./+-%__p_%'`
12859 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12860 echo $ac_n "(cached) $ac_c" 1>&6
12862 ac_save_LIBS
="$LIBS"
12863 LIBS
="-lkrb5 $LIBS"
12864 cat > conftest.
$ac_ext <<EOF
12865 #line 12866 "configure"
12866 #include "confdefs.h"
12867 /* Override any gcc2 internal prototype to avoid an error. */
12868 /* We use char because int might match the return type of a gcc2
12869 builtin and then its argument prototype would still apply. */
12870 char krb5_string_to_key_salt();
12873 krb5_string_to_key_salt()
12876 if { (eval echo configure
:12877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12878 eval "ac_cv_lib_$ac_lib_var=yes"
12880 echo "configure: failed program was:" >&5
12881 cat conftest.
$ac_ext >&5
12883 eval "ac_cv_lib_$ac_lib_var=no"
12886 LIBS
="$ac_save_LIBS"
12889 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12890 echo "$ac_t""yes" 1>&6
12891 cat >> confdefs.h
<<\EOF
12892 #define HAVE_KRB5_STRING_TO_KEY_SALT 1
12896 echo "$ac_t""no" 1>&6
12899 echo $ac_n "checking for krb5_auth_con_setkey in -lkrb5""... $ac_c" 1>&6
12900 echo "configure:12901: checking for krb5_auth_con_setkey in -lkrb5" >&5
12901 ac_lib_var
=`echo krb5'_'krb5_auth_con_setkey | sed 'y%./+-%__p_%'`
12902 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12903 echo $ac_n "(cached) $ac_c" 1>&6
12905 ac_save_LIBS
="$LIBS"
12906 LIBS
="-lkrb5 $LIBS"
12907 cat > conftest.
$ac_ext <<EOF
12908 #line 12909 "configure"
12909 #include "confdefs.h"
12910 /* Override any gcc2 internal prototype to avoid an error. */
12911 /* We use char because int might match the return type of a gcc2
12912 builtin and then its argument prototype would still apply. */
12913 char krb5_auth_con_setkey();
12916 krb5_auth_con_setkey()
12919 if { (eval echo configure
:12920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12921 eval "ac_cv_lib_$ac_lib_var=yes"
12923 echo "configure: failed program was:" >&5
12924 cat conftest.
$ac_ext >&5
12926 eval "ac_cv_lib_$ac_lib_var=no"
12929 LIBS
="$ac_save_LIBS"
12932 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12933 echo "$ac_t""yes" 1>&6
12934 cat >> confdefs.h
<<\EOF
12935 #define HAVE_KRB5_AUTH_CON_SETKEY 1
12939 echo "$ac_t""no" 1>&6
12942 echo $ac_n "checking for krb5_auth_con_setuseruserkey in -lkrb5""... $ac_c" 1>&6
12943 echo "configure:12944: checking for krb5_auth_con_setuseruserkey in -lkrb5" >&5
12944 ac_lib_var
=`echo krb5'_'krb5_auth_con_setuseruserkey | sed 'y%./+-%__p_%'`
12945 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12946 echo $ac_n "(cached) $ac_c" 1>&6
12948 ac_save_LIBS
="$LIBS"
12949 LIBS
="-lkrb5 $LIBS"
12950 cat > conftest.
$ac_ext <<EOF
12951 #line 12952 "configure"
12952 #include "confdefs.h"
12953 /* Override any gcc2 internal prototype to avoid an error. */
12954 /* We use char because int might match the return type of a gcc2
12955 builtin and then its argument prototype would still apply. */
12956 char krb5_auth_con_setuseruserkey();
12959 krb5_auth_con_setuseruserkey()
12962 if { (eval echo configure
:12963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12964 eval "ac_cv_lib_$ac_lib_var=yes"
12966 echo "configure: failed program was:" >&5
12967 cat conftest.
$ac_ext >&5
12969 eval "ac_cv_lib_$ac_lib_var=no"
12972 LIBS
="$ac_save_LIBS"
12975 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12976 echo "$ac_t""yes" 1>&6
12977 cat >> confdefs.h
<<\EOF
12978 #define HAVE_KRB5_AUTH_CON_SETUSERUSERKEY 1
12982 echo "$ac_t""no" 1>&6
12986 echo $ac_n "checking for addrtype in krb5_address""... $ac_c" 1>&6
12987 echo "configure:12988: checking for addrtype in krb5_address" >&5
12988 if eval "test \"`echo '$''{'samba_cv_HAVE_ADDRTYPE_IN_KRB5_ADDRESS'+set}'`\" = set"; then
12989 echo $ac_n "(cached) $ac_c" 1>&6
12992 cat > conftest.
$ac_ext <<EOF
12993 #line 12994 "configure"
12994 #include "confdefs.h"
12997 krb5_address kaddr; kaddr.addrtype = ADDRTYPE_INET;
13000 if { (eval echo configure
:13001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13002 samba_cv_HAVE_ADDRTYPE_IN_KRB5_ADDRESS
=yes
13004 echo "configure: failed program was:" >&5
13005 cat conftest.
$ac_ext >&5
13007 samba_cv_HAVE_ADDRTYPE_IN_KRB5_ADDRESS
=no
13012 echo "$ac_t""$samba_cv_HAVE_ADDRTYPE_IN_KRB5_ADDRESS" 1>&6
13013 if test x
"$samba_cv_HAVE_ADDRTYPE_IN_KRB5_ADDRESS" = x
"yes"; then
13014 cat >> confdefs.h
<<\EOF
13015 #define HAVE_ADDRTYPE_IN_KRB5_ADDRESS 1
13020 echo $ac_n "checking for addr_type in krb5_address""... $ac_c" 1>&6
13021 echo "configure:13022: checking for addr_type in krb5_address" >&5
13022 if eval "test \"`echo '$''{'samba_cv_HAVE_ADDR_TYPE_IN_KRB5_ADDRESS'+set}'`\" = set"; then
13023 echo $ac_n "(cached) $ac_c" 1>&6
13026 cat > conftest.
$ac_ext <<EOF
13027 #line 13028 "configure"
13028 #include "confdefs.h"
13031 krb5_address kaddr; kaddr.addr_type = KRB5_ADDRESS_INET;
13034 if { (eval echo configure
:13035: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13036 samba_cv_HAVE_ADDR_TYPE_IN_KRB5_ADDRESS
=yes
13038 echo "configure: failed program was:" >&5
13039 cat conftest.
$ac_ext >&5
13041 samba_cv_HAVE_ADDR_TYPE_IN_KRB5_ADDRESS
=no
13046 echo "$ac_t""$samba_cv_HAVE_ADDR_TYPE_IN_KRB5_ADDRESS" 1>&6
13047 if test x
"$samba_cv_HAVE_ADDR_TYPE_IN_KRB5_ADDRESS" = x
"yes"; then
13048 cat >> confdefs.h
<<\EOF
13049 #define HAVE_ADDR_TYPE_IN_KRB5_ADDRESS 1
13054 echo $ac_n "checking for enc_part2 in krb5_ticket""... $ac_c" 1>&6
13055 echo "configure:13056: checking for enc_part2 in krb5_ticket" >&5
13056 if eval "test \"`echo '$''{'samba_cv_HAVE_KRB5_TKT_ENC_PART2'+set}'`\" = set"; then
13057 echo $ac_n "(cached) $ac_c" 1>&6
13060 cat > conftest.
$ac_ext <<EOF
13061 #line 13062 "configure"
13062 #include "confdefs.h"
13065 krb5_ticket tkt; tkt.enc_part2->authorization_data[0]->contents = NULL;
13068 if { (eval echo configure
:13069: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13070 samba_cv_HAVE_KRB5_TKT_ENC_PART2
=yes
13072 echo "configure: failed program was:" >&5
13073 cat conftest.
$ac_ext >&5
13075 samba_cv_HAVE_KRB5_TKT_ENC_PART2
=no
13080 echo "$ac_t""$samba_cv_HAVE_KRB5_TKT_ENC_PART2" 1>&6
13081 if test x
"$samba_cv_HAVE_KRB5_TKT_ENC_PART2" = x
"yes"; then
13082 cat >> confdefs.h
<<\EOF
13083 #define HAVE_KRB5_TKT_ENC_PART2 1
13088 ########################################################
13089 # now see if we can find the krb5 libs in standard paths
13090 # or as specified above
13091 echo $ac_n "checking for krb5_mk_req_extended in -lkrb5""... $ac_c" 1>&6
13092 echo "configure:13093: checking for krb5_mk_req_extended in -lkrb5" >&5
13093 ac_lib_var
=`echo krb5'_'krb5_mk_req_extended | sed 'y%./+-%__p_%'`
13094 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13095 echo $ac_n "(cached) $ac_c" 1>&6
13097 ac_save_LIBS
="$LIBS"
13098 LIBS
="-lkrb5 $LIBS"
13099 cat > conftest.
$ac_ext <<EOF
13100 #line 13101 "configure"
13101 #include "confdefs.h"
13102 /* Override any gcc2 internal prototype to avoid an error. */
13103 /* We use char because int might match the return type of a gcc2
13104 builtin and then its argument prototype would still apply. */
13105 char krb5_mk_req_extended();
13108 krb5_mk_req_extended()
13111 if { (eval echo configure
:13112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13113 eval "ac_cv_lib_$ac_lib_var=yes"
13115 echo "configure: failed program was:" >&5
13116 cat conftest.
$ac_ext >&5
13118 eval "ac_cv_lib_$ac_lib_var=no"
13121 LIBS
="$ac_save_LIBS"
13124 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13125 echo "$ac_t""yes" 1>&6
13126 LIBS
="$LIBS -lkrb5";
13127 cat >> confdefs.h
<<\EOF
13128 #define HAVE_KRB5 1
13132 echo "$ac_t""no" 1>&6
13136 ########################################################
13137 # now see if we can find the gssapi libs in standard paths
13138 echo $ac_n "checking for gss_display_status in -lgssapi_krb5""... $ac_c" 1>&6
13139 echo "configure:13140: checking for gss_display_status in -lgssapi_krb5" >&5
13140 ac_lib_var
=`echo gssapi_krb5'_'gss_display_status | sed 'y%./+-%__p_%'`
13141 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13142 echo $ac_n "(cached) $ac_c" 1>&6
13144 ac_save_LIBS
="$LIBS"
13145 LIBS
="-lgssapi_krb5 $LIBS"
13146 cat > conftest.
$ac_ext <<EOF
13147 #line 13148 "configure"
13148 #include "confdefs.h"
13149 /* Override any gcc2 internal prototype to avoid an error. */
13150 /* We use char because int might match the return type of a gcc2
13151 builtin and then its argument prototype would still apply. */
13152 char gss_display_status();
13155 gss_display_status()
13158 if { (eval echo configure
:13159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13160 eval "ac_cv_lib_$ac_lib_var=yes"
13162 echo "configure: failed program was:" >&5
13163 cat conftest.
$ac_ext >&5
13165 eval "ac_cv_lib_$ac_lib_var=no"
13168 LIBS
="$ac_save_LIBS"
13171 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13172 echo "$ac_t""yes" 1>&6
13173 LIBS
="$LIBS -lgssapi_krb5";
13174 cat >> confdefs.h
<<\EOF
13175 #define HAVE_GSSAPI 1
13179 echo "$ac_t""no" 1>&6
13184 ########################################################
13185 # Compile with LDAP support?
13187 with_ldap_support
=yes
13188 echo $ac_n "checking whether to use LDAP""... $ac_c" 1>&6
13189 echo "configure:13190: checking whether to use LDAP" >&5
13191 # Check whether --with-ldap or --without-ldap was given.
13192 if test "${with_ldap+set}" = set; then
13193 withval
="$with_ldap"
13196 with_ldap_support
=no
13202 echo "$ac_t""$with_ldap_support" 1>&6
13204 if test x
"$with_ldap_support" = x
"yes"; then
13206 ##################################################################
13207 # we might need the lber lib on some systems. To avoid link errors
13208 # this test must be before the libldap test
13209 echo $ac_n "checking for ber_scanf in -llber""... $ac_c" 1>&6
13210 echo "configure:13211: checking for ber_scanf in -llber" >&5
13211 ac_lib_var
=`echo lber'_'ber_scanf | sed 'y%./+-%__p_%'`
13212 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13213 echo $ac_n "(cached) $ac_c" 1>&6
13215 ac_save_LIBS
="$LIBS"
13216 LIBS
="-llber $LIBS"
13217 cat > conftest.
$ac_ext <<EOF
13218 #line 13219 "configure"
13219 #include "confdefs.h"
13220 /* Override any gcc2 internal prototype to avoid an error. */
13221 /* We use char because int might match the return type of a gcc2
13222 builtin and then its argument prototype would still apply. */
13229 if { (eval echo configure
:13230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13231 eval "ac_cv_lib_$ac_lib_var=yes"
13233 echo "configure: failed program was:" >&5
13234 cat conftest.
$ac_ext >&5
13236 eval "ac_cv_lib_$ac_lib_var=no"
13239 LIBS
="$ac_save_LIBS"
13242 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13243 echo "$ac_t""yes" 1>&6
13244 LIBS
="$LIBS -llber"
13246 echo "$ac_t""no" 1>&6
13250 ########################################################
13251 # now see if we can find the ldap libs in standard paths
13252 if test x
$have_ldap != xyes
; then
13253 echo $ac_n "checking for ldap_domain2hostlist in -lldap""... $ac_c" 1>&6
13254 echo "configure:13255: checking for ldap_domain2hostlist in -lldap" >&5
13255 ac_lib_var
=`echo ldap'_'ldap_domain2hostlist | sed 'y%./+-%__p_%'`
13256 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13257 echo $ac_n "(cached) $ac_c" 1>&6
13259 ac_save_LIBS
="$LIBS"
13260 LIBS
="-lldap $LIBS"
13261 cat > conftest.
$ac_ext <<EOF
13262 #line 13263 "configure"
13263 #include "confdefs.h"
13264 /* Override any gcc2 internal prototype to avoid an error. */
13265 /* We use char because int might match the return type of a gcc2
13266 builtin and then its argument prototype would still apply. */
13267 char ldap_domain2hostlist();
13270 ldap_domain2hostlist()
13273 if { (eval echo configure
:13274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13275 eval "ac_cv_lib_$ac_lib_var=yes"
13277 echo "configure: failed program was:" >&5
13278 cat conftest.
$ac_ext >&5
13280 eval "ac_cv_lib_$ac_lib_var=no"
13283 LIBS
="$ac_save_LIBS"
13286 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13287 echo "$ac_t""yes" 1>&6
13288 LIBS
="$LIBS -lldap";
13289 cat >> confdefs.h
<<\EOF
13290 #define HAVE_LDAP 1
13294 echo "$ac_t""no" 1>&6
13298 ########################################################
13299 # If we have LDAP, does it's rebind procedure take 2 or 3 arguments?
13300 # Check found in pam_ldap 145.
13301 for ac_func
in ldap_set_rebind_proc
13303 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13304 echo "configure:13305: checking for $ac_func" >&5
13305 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13306 echo $ac_n "(cached) $ac_c" 1>&6
13308 cat > conftest.
$ac_ext <<EOF
13309 #line 13310 "configure"
13310 #include "confdefs.h"
13311 /* System header to define __stub macros and hopefully few prototypes,
13312 which can conflict with char $ac_func(); below. */
13313 #include <assert.h>
13314 /* Override any gcc2 internal prototype to avoid an error. */
13315 /* We use char because int might match the return type of a gcc2
13316 builtin and then its argument prototype would still apply. */
13321 /* The GNU C library defines this for functions which it implements
13322 to always fail with ENOSYS. Some functions are actually named
13323 something starting with __ and the normal name is an alias. */
13324 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13332 if { (eval echo configure
:13333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13334 eval "ac_cv_func_$ac_func=yes"
13336 echo "configure: failed program was:" >&5
13337 cat conftest.
$ac_ext >&5
13339 eval "ac_cv_func_$ac_func=no"
13344 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13345 echo "$ac_t""yes" 1>&6
13346 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13347 cat >> confdefs.h
<<EOF
13348 #define $ac_tr_func 1
13352 echo "$ac_t""no" 1>&6
13356 echo $ac_n "checking whether ldap_set_rebind_proc takes 3 arguments""... $ac_c" 1>&6
13357 echo "configure:13358: checking whether ldap_set_rebind_proc takes 3 arguments" >&5
13358 if eval "test \"`echo '$''{'pam_ldap_cv_ldap_set_rebind_proc'+set}'`\" = set"; then
13359 echo $ac_n "(cached) $ac_c" 1>&6
13362 cat > conftest.
$ac_ext <<EOF
13363 #line 13364 "configure"
13364 #include "confdefs.h"
13369 ldap_set_rebind_proc(0, 0, 0);
13372 if { (eval echo configure
:13373: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13374 pam_ldap_cv_ldap_set_rebind_proc
=3
13376 echo "configure: failed program was:" >&5
13377 cat conftest.
$ac_ext >&5
13379 pam_ldap_cv_ldap_set_rebind_proc
=2
13384 echo "$ac_t""$pam_ldap_cv_ldap_set_rebind_proc" 1>&6
13385 cat >> confdefs.h
<<EOF
13386 #define LDAP_SET_REBIND_PROC_ARGS $pam_ldap_cv_ldap_set_rebind_proc
13392 ########################################################
13393 # Compile with MySQL support?
13394 # Check whether --with-mysql-prefix or --without-mysql-prefix was given.
13395 if test "${with_mysql_prefix+set}" = set; then
13396 withval
="$with_mysql_prefix"
13397 mysql_prefix
="$withval"
13402 # Check whether --with-mysql-exec-prefix or --without-mysql-exec-prefix was given.
13403 if test "${with_mysql_exec_prefix+set}" = set; then
13404 withval
="$with_mysql_exec_prefix"
13405 mysql_exec_prefix
="$withval"
13407 mysql_exec_prefix
=""
13410 # Check whether --enable-mysqltest or --disable-mysqltest was given.
13411 if test "${enable_mysqltest+set}" = set; then
13412 enableval
="$enable_mysqltest"
13415 enable_mysqltest
=yes
13419 if test x
$mysql_exec_prefix != x
; then
13420 mysql_args
="$mysql_args --exec-prefix=$mysql_exec_prefix"
13421 if test x
${MYSQL_CONFIG+set} != xset
; then
13422 MYSQL_CONFIG
=$mysql_exec_prefix/bin
/mysql_config
13425 if test x
$mysql_prefix != x
; then
13426 mysql_args
="$mysql_args --prefix=$mysql_prefix"
13427 if test x
${MYSQL_CONFIG+set} != xset
; then
13428 MYSQL_CONFIG
=$mysql_prefix/bin
/mysql_config
13433 # Extract the first word of "mysql_config", so it can be a program name with args.
13434 set dummy mysql_config
; ac_word
=$2
13435 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13436 echo "configure:13437: checking for $ac_word" >&5
13437 if eval "test \"`echo '$''{'ac_cv_path_MYSQL_CONFIG'+set}'`\" = set"; then
13438 echo $ac_n "(cached) $ac_c" 1>&6
13440 case "$MYSQL_CONFIG" in
13442 ac_cv_path_MYSQL_CONFIG
="$MYSQL_CONFIG" # Let the user override the test with a path.
13445 ac_cv_path_MYSQL_CONFIG
="$MYSQL_CONFIG" # Let the user override the test with a dos path.
13448 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
13450 for ac_dir
in $ac_dummy; do
13451 test -z "$ac_dir" && ac_dir
=.
13452 if test -f $ac_dir/$ac_word; then
13453 ac_cv_path_MYSQL_CONFIG
="$ac_dir/$ac_word"
13458 test -z "$ac_cv_path_MYSQL_CONFIG" && ac_cv_path_MYSQL_CONFIG
="no"
13462 MYSQL_CONFIG
="$ac_cv_path_MYSQL_CONFIG"
13463 if test -n "$MYSQL_CONFIG"; then
13464 echo "$ac_t""$MYSQL_CONFIG" 1>&6
13466 echo "$ac_t""no" 1>&6
13469 min_mysql_version
=0.11.0
13470 echo $ac_n "checking for MYSQL - version >= $min_mysql_version""... $ac_c" 1>&6
13471 echo "configure:13472: checking for MYSQL - version >= $min_mysql_version" >&5
13473 if test "$MYSQL_CONFIG" = "no" ; then
13476 MYSQL_CFLAGS
=`$MYSQL_CONFIG $mysqlconf_args --cflags | sed -e "s/'//g"`
13477 MYSQL_LIBS
=`$MYSQL_CONFIG $mysqlconf_args --libs | sed -e "s/'//g"`
13479 mysql_major_version
=`$MYSQL_CONFIG $mysql_args --version | \
13480 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13481 mysql_minor_version
=`$MYSQL_CONFIG $mysql_args --version | \
13482 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13483 mysql_micro_version
=`$MYSQL_CONFIG $mysql_config_args --version | \
13484 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13485 if test "x$enable_mysqltest" = "xyes" ; then
13486 ac_save_CFLAGS
="$CFLAGS"
13487 ac_save_LIBS
="$LIBS"
13488 CFLAGS
="$CFLAGS $MYSQL_CFLAGS"
13489 LIBS
="$LIBS $MYSQL_LIBS"
13490 rm -f conf.mysqltest
13491 if test "$cross_compiling" = yes; then
13492 echo $ac_n "cross compiling; assumed OK... $ac_c"
13494 cat > conftest.
$ac_ext <<EOF
13495 #line 13496 "configure"
13496 #include "confdefs.h"
13499 #include <stdlib.h>
13500 #include <string.h>
13504 my_strdup (char *str)
13510 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
13511 strcpy (new_str, str);
13519 int main (int argc, char *argv[])
13521 int major, minor, micro;
13524 /* This hangs on some systems (?)
13525 system ("touch conf.mysqltest");
13527 { FILE *fp = fopen("conf.mysqltest", "a"); if ( fp ) fclose(fp); }
13529 /* HP/UX 9 (%@#!) writes to sscanf strings */
13530 tmp_version = my_strdup("$min_mysql_version");
13531 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
13532 printf("%s, bad version string\n", "$min_mysql_version");
13536 if (($mysql_major_version > major) ||
13537 (($mysql_major_version == major) && ($mysql_minor_version > minor)) ||
13538 (($mysql_major_version == major) && ($mysql_minor_version == minor) && ($mysql_micro_version >= micro)))
13544 printf("\n*** 'mysql_config --version' returned %d.%d.%d, but the minimum version\n", $mysql_major_version, $mysql_minor_version, $mysql_micro_version);
13545 printf("*** of MYSQL required is %d.%d.%d. If mysql_config is correct, then it is\n", major, minor, micro);
13546 printf("*** best to upgrade to the required version.\n");
13547 printf("*** If mysql_config was wrong, set the environment variable MYSQL_CONFIG\n");
13548 printf("*** to point to the correct copy of mysql_config, and remove the file\n");
13549 printf("*** config.cache before re-running configure\n");
13556 if { (eval echo configure
:13557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
13560 echo "configure: failed program was:" >&5
13561 cat conftest.
$ac_ext >&5
13568 CFLAGS
="$ac_save_CFLAGS"
13569 LIBS
="$ac_save_LIBS"
13572 if test "x$no_mysql" = x
; then
13573 echo "$ac_t""yes" 1>&6
13574 MODULE_MYSQL
=bin
/pdb_mysql.so
13576 echo "$ac_t""no" 1>&6
13577 if test "$MYSQL_CONFIG" = "no" ; then
13578 echo "*** The mysql_config script installed by MYSQL could not be found"
13579 echo "*** If MYSQL was installed in PREFIX, make sure PREFIX/bin is in"
13580 echo "*** your path, or set the MYSQL_CONFIG environment variable to the"
13581 echo "*** full path to mysql_config."
13583 if test -f conf.mysqltest
; then
13586 echo "*** Could not run MYSQL test program, checking why..."
13587 CFLAGS
="$CFLAGS $MYSQL_CFLAGS"
13588 LIBS
="$LIBS $MYSQL_LIBS"
13589 cat > conftest.
$ac_ext <<EOF
13590 #line 13591 "configure"
13591 #include "confdefs.h"
13596 int main(int argc, char *argv[])
13599 #define main K_and_R_C_main
13605 if { (eval echo configure
:13606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13607 echo "*** The test program compiled, but did not run. This usually means"
13608 echo "*** that the run-time linker is not finding MYSQL or finding the wrong"
13609 echo "*** version of MYSQL. If it is not finding MYSQL, you'll need to set your"
13610 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13611 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13612 echo "*** is required on your system"
13614 echo "*** If you have an old version installed, it is best to remove it, although"
13615 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13617 echo "configure: failed program was:" >&5
13618 cat conftest.
$ac_ext >&5
13620 echo "*** The test program failed to compile or link. See the file config.log for the"
13621 echo "*** exact error that occured. This usually means MYSQL was incorrectly installed"
13622 echo "*** or that you have moved MYSQL since it was installed. In the latter case, you"
13623 echo "*** may want to edit the mysql_config script: $MYSQL_CONFIG"
13626 CFLAGS
="$ac_save_CFLAGS"
13627 LIBS
="$ac_save_LIBS"
13636 rm -f conf.mysqltest
13638 CFLAGS
="$CFLAGS $MYSQL_CFLAGS"
13641 ########################################################
13642 # Compile with XML support?
13644 # Check whether --with-xml-prefix or --without-xml-prefix was given.
13645 if test "${with_xml_prefix+set}" = set; then
13646 withval
="$with_xml_prefix"
13647 xml_config_prefix
="$withval"
13649 xml_config_prefix
=""
13652 # Check whether --with-xml-exec-prefix or --without-xml-exec-prefix was given.
13653 if test "${with_xml_exec_prefix+set}" = set; then
13654 withval
="$with_xml_exec_prefix"
13655 xml_config_exec_prefix
="$withval"
13657 xml_config_exec_prefix
=""
13660 # Check whether --enable-xmltest or --disable-xmltest was given.
13661 if test "${enable_xmltest+set}" = set; then
13662 enableval
="$enable_xmltest"
13669 if test x
$xml_config_exec_prefix != x
; then
13670 xml_config_args
="$xml_config_args --exec-prefix=$xml_config_exec_prefix"
13671 if test x
${XML2_CONFIG+set} != xset
; then
13672 XML2_CONFIG
=$xml_config_exec_prefix/bin
/xml2-config
13675 if test x
$xml_config_prefix != x
; then
13676 xml_config_args
="$xml_config_args --prefix=$xml_config_prefix"
13677 if test x
${XML2_CONFIG+set} != xset
; then
13678 XML2_CONFIG
=$xml_config_prefix/bin
/xml2-config
13682 # Extract the first word of "xml2-config", so it can be a program name with args.
13683 set dummy xml2-config
; ac_word
=$2
13684 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13685 echo "configure:13686: checking for $ac_word" >&5
13686 if eval "test \"`echo '$''{'ac_cv_path_XML2_CONFIG'+set}'`\" = set"; then
13687 echo $ac_n "(cached) $ac_c" 1>&6
13689 case "$XML2_CONFIG" in
13691 ac_cv_path_XML2_CONFIG
="$XML2_CONFIG" # Let the user override the test with a path.
13694 ac_cv_path_XML2_CONFIG
="$XML2_CONFIG" # Let the user override the test with a dos path.
13697 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
13699 for ac_dir
in $ac_dummy; do
13700 test -z "$ac_dir" && ac_dir
=.
13701 if test -f $ac_dir/$ac_word; then
13702 ac_cv_path_XML2_CONFIG
="$ac_dir/$ac_word"
13707 test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG
="no"
13711 XML2_CONFIG
="$ac_cv_path_XML2_CONFIG"
13712 if test -n "$XML2_CONFIG"; then
13713 echo "$ac_t""$XML2_CONFIG" 1>&6
13715 echo "$ac_t""no" 1>&6
13718 min_xml_version
=2.0.0
13719 echo $ac_n "checking for libxml - version >= $min_xml_version""... $ac_c" 1>&6
13720 echo "configure:13721: checking for libxml - version >= $min_xml_version" >&5
13722 if test "$XML2_CONFIG" = "no" ; then
13725 XML_CFLAGS
=`$XML2_CONFIG $xml_config_args --cflags`
13726 XML_LIBS
=`$XML2_CONFIG $xml_config_args --libs`
13727 xml_config_major_version
=`$XML2_CONFIG $xml_config_args --version | \
13728 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13729 xml_config_minor_version
=`$XML2_CONFIG $xml_config_args --version | \
13730 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13731 xml_config_micro_version
=`$XML2_CONFIG $xml_config_args --version | \
13732 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13733 if test "x$enable_xmltest" = "xyes" ; then
13734 ac_save_CFLAGS
="$CFLAGS"
13735 ac_save_LIBS
="$LIBS"
13736 CFLAGS
="$CFLAGS $XML_CFLAGS"
13737 LIBS
="$XML_LIBS $LIBS"
13739 if test "$cross_compiling" = yes; then
13740 echo $ac_n "cross compiling; assumed OK... $ac_c"
13742 cat > conftest.
$ac_ext <<EOF
13743 #line 13744 "configure"
13744 #include "confdefs.h"
13746 #include <stdlib.h>
13748 #include <string.h>
13749 #include <libxml/xmlversion.h>
13754 int xml_major_version, xml_minor_version, xml_micro_version;
13755 int major, minor, micro;
13758 system("touch conf.xmltest");
13760 /* Capture xml2-config output via autoconf/configure variables */
13761 /* HP/UX 9 (%@#!) writes to sscanf strings */
13762 tmp_version = (char *)strdup("$min_xml_version");
13763 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
13764 printf("%s, bad version string from xml2-config\n", "$min_xml_version");
13769 /* Capture the version information from the header files */
13770 tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
13771 if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
13772 printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
13777 /* Compare xml2-config output to the libxml headers */
13778 if ((xml_major_version != $xml_config_major_version) ||
13779 (xml_minor_version != $xml_config_minor_version) ||
13780 (xml_micro_version != $xml_config_micro_version))
13782 printf("*** libxml header files (version %d.%d.%d) do not match\n",
13783 xml_major_version, xml_minor_version, xml_micro_version);
13784 printf("*** xml2-config (version %d.%d.%d)\n",
13785 $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
13788 /* Compare the headers to the library to make sure we match */
13789 /* Less than ideal -- doesn't provide us with return value feedback,
13790 * only exits if there's a serious mismatch between header and library.
13792 LIBXML_TEST_VERSION;
13794 /* Test that the library is greater than our minimum version */
13795 if ((xml_major_version > major) ||
13796 ((xml_major_version == major) && (xml_minor_version > minor)) ||
13797 ((xml_major_version == major) && (xml_minor_version == minor) &&
13798 (xml_micro_version >= micro)))
13804 printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
13805 xml_major_version, xml_minor_version, xml_micro_version);
13806 printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
13807 major, minor, micro);
13808 printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
13810 printf("*** If you have already installed a sufficiently new version, this error\n");
13811 printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
13812 printf("*** being found. The easiest way to fix this is to remove the old version\n");
13813 printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
13814 printf("*** correct copy of xml2-config. (In this case, you will have to\n");
13815 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
13816 printf("*** so that the correct libraries are found at run-time))\n");
13822 if { (eval echo configure
:13823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
13826 echo "configure: failed program was:" >&5
13827 cat conftest.
$ac_ext >&5
13834 CFLAGS
="$ac_save_CFLAGS"
13835 LIBS
="$ac_save_LIBS"
13839 if test "x$no_xml" = x
; then
13840 echo "$ac_t""yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" 1>&6
13841 MODULE_XML
=bin
/pdb_xml.so
13843 echo "$ac_t""no" 1>&6
13844 if test "$XML2_CONFIG" = "no" ; then
13845 echo "*** The xml2-config script installed by LIBXML could not be found"
13846 echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
13847 echo "*** your path, or set the XML2_CONFIG environment variable to the"
13848 echo "*** full path to xml2-config."
13850 if test -f conf.xmltest
; then
13853 echo "*** Could not run libxml test program, checking why..."
13854 CFLAGS
="$CFLAGS $XML_CFLAGS"
13855 LIBS
="$LIBS $XML_LIBS"
13856 cat > conftest.
$ac_ext <<EOF
13857 #line 13858 "configure"
13858 #include "confdefs.h"
13860 #include <libxml/xmlversion.h>
13864 LIBXML_TEST_VERSION; return 0;
13867 if { (eval echo configure
:13868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13869 echo "*** The test program compiled, but did not run. This usually means"
13870 echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
13871 echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
13872 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13873 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13874 echo "*** is required on your system"
13876 echo "*** If you have an old version installed, it is best to remove it, although"
13877 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13879 echo "configure: failed program was:" >&5
13880 cat conftest.
$ac_ext >&5
13882 echo "*** The test program failed to compile or link. See the file config.log for the"
13883 echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
13884 echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
13885 echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
13888 CFLAGS
="$ac_save_CFLAGS"
13889 LIBS
="$ac_save_LIBS"
13901 CFLAGS
="$CFLAGS $XML_CFLAGS"
13904 #################################################
13905 # check for automount support
13906 echo $ac_n "checking whether to use automount""... $ac_c" 1>&6
13907 echo "configure:13908: checking whether to use automount" >&5
13908 # Check whether --with-automount or --without-automount was given.
13909 if test "${with_automount+set}" = set; then
13910 withval
="$with_automount"
13913 echo "$ac_t""yes" 1>&6
13914 cat >> confdefs.h
<<\EOF
13915 #define WITH_AUTOMOUNT 1
13920 echo "$ac_t""no" 1>&6
13924 echo "$ac_t""no" 1>&6
13929 #################################################
13930 # check for smbmount support
13931 echo $ac_n "checking whether to use smbmount""... $ac_c" 1>&6
13932 echo "configure:13933: checking whether to use smbmount" >&5
13933 # Check whether --with-smbmount or --without-smbmount was given.
13934 if test "${with_smbmount+set}" = set; then
13935 withval
="$with_smbmount"
13940 echo "$ac_t""yes" 1>&6
13941 cat >> confdefs.h
<<\EOF
13942 #define WITH_SMBMOUNT 1
13945 EXTRA_BIN_PROGS
="$EXTRA_BIN_PROGS bin/smbmount bin/smbmnt bin/smbumount"
13948 { echo "configure: error: not on a linux system!" 1>&2; exit 1; }
13953 echo "$ac_t""no" 1>&6
13957 echo "$ac_t""no" 1>&6
13963 #################################################
13964 # check for a PAM clear-text auth, accounts, password and session support
13965 with_pam_for_crypt
=no
13966 echo $ac_n "checking whether to use PAM""... $ac_c" 1>&6
13967 echo "configure:13968: checking whether to use PAM" >&5
13968 # Check whether --with-pam or --without-pam was given.
13969 if test "${with_pam+set}" = set; then
13970 withval
="$with_pam"
13973 echo "$ac_t""yes" 1>&6
13974 cat >> confdefs.h
<<\EOF
13978 AUTHLIBS
="$AUTHLIBS -lpam"
13979 with_pam_for_crypt
=yes
13982 echo "$ac_t""no" 1>&6
13986 echo "$ac_t""no" 1>&6
13991 # we can't build a pam module if we don't have pam.
13992 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
13993 echo "configure:13994: checking for pam_get_data in -lpam" >&5
13994 ac_lib_var
=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
13995 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13996 echo $ac_n "(cached) $ac_c" 1>&6
13998 ac_save_LIBS
="$LIBS"
14000 cat > conftest.
$ac_ext <<EOF
14001 #line 14002 "configure"
14002 #include "confdefs.h"
14003 /* Override any gcc2 internal prototype to avoid an error. */
14004 /* We use char because int might match the return type of a gcc2
14005 builtin and then its argument prototype would still apply. */
14006 char pam_get_data();
14012 if { (eval echo configure
:14013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
14014 eval "ac_cv_lib_$ac_lib_var=yes"
14016 echo "configure: failed program was:" >&5
14017 cat conftest.
$ac_ext >&5
14019 eval "ac_cv_lib_$ac_lib_var=no"
14022 LIBS
="$ac_save_LIBS"
14025 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14026 echo "$ac_t""yes" 1>&6
14027 cat >> confdefs.h
<<\EOF
14028 #define HAVE_LIBPAM 1
14032 echo "$ac_t""no" 1>&6
14036 #################################################
14037 # check for pam_smbpass support
14038 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
14039 echo "configure:14040: checking whether to use pam_smbpass" >&5
14040 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
14041 if test "${with_pam_smbpass+set}" = set; then
14042 withval
="$with_pam_smbpass"
14045 echo "$ac_t""yes" 1>&6
14047 # Conditions under which pam_smbpass should not be built.
14049 if test x
$PICFLAG = x
; then
14050 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
14051 elif test x
$ac_cv_lib_pam_pam_get_data = xno
; then
14052 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
14054 SHLIB_PROGS
="$SHLIB_PROGS bin/pam_smbpass.so"
14058 echo "$ac_t""no" 1>&6
14062 echo "$ac_t""no" 1>&6
14068 ###############################################
14069 # test for where we get crypt() from, but only
14071 if test x
"$with_pam_for_crypt" = x
"no"; then
14072 for ac_func
in crypt
14074 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14075 echo "configure:14076: checking for $ac_func" >&5
14076 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14077 echo $ac_n "(cached) $ac_c" 1>&6
14079 cat > conftest.
$ac_ext <<EOF
14080 #line 14081 "configure"
14081 #include "confdefs.h"
14082 /* System header to define __stub macros and hopefully few prototypes,
14083 which can conflict with char $ac_func(); below. */
14084 #include <assert.h>
14085 /* Override any gcc2 internal prototype to avoid an error. */
14086 /* We use char because int might match the return type of a gcc2
14087 builtin and then its argument prototype would still apply. */
14092 /* The GNU C library defines this for functions which it implements
14093 to always fail with ENOSYS. Some functions are actually named
14094 something starting with __ and the normal name is an alias. */
14095 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14103 if { (eval echo configure
:14104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
14105 eval "ac_cv_func_$ac_func=yes"
14107 echo "configure: failed program was:" >&5
14108 cat conftest.
$ac_ext >&5
14110 eval "ac_cv_func_$ac_func=no"
14115 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14116 echo "$ac_t""yes" 1>&6
14117 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14118 cat >> confdefs.h
<<EOF
14119 #define $ac_tr_func 1
14123 echo "$ac_t""no" 1>&6
14127 if test x
"$ac_cv_func_crypt" = x
"no"; then
14128 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
14129 echo "configure:14130: checking for crypt in -lcrypt" >&5
14130 ac_lib_var
=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
14131 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14132 echo $ac_n "(cached) $ac_c" 1>&6
14134 ac_save_LIBS
="$LIBS"
14135 LIBS
="-lcrypt $LIBS"
14136 cat > conftest.
$ac_ext <<EOF
14137 #line 14138 "configure"
14138 #include "confdefs.h"
14139 /* Override any gcc2 internal prototype to avoid an error. */
14140 /* We use char because int might match the return type of a gcc2
14141 builtin and then its argument prototype would still apply. */
14148 if { (eval echo configure
:14149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
14150 eval "ac_cv_lib_$ac_lib_var=yes"
14152 echo "configure: failed program was:" >&5
14153 cat conftest.
$ac_ext >&5
14155 eval "ac_cv_lib_$ac_lib_var=no"
14158 LIBS
="$ac_save_LIBS"
14161 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14162 echo "$ac_t""yes" 1>&6
14163 AUTHLIBS
="$AUTHLIBS -lcrypt";
14164 cat >> confdefs.h
<<\EOF
14165 #define HAVE_CRYPT 1
14169 echo "$ac_t""no" 1>&6
14176 ## moved after the check for -lcrypt in order to
14177 ## ensure that the necessary libraries are included
14178 ## check checking for truncated salt. Wrapped by the
14179 ## $with_pam_for_crypt variable as above --jerry
14181 if test $with_pam_for_crypt = no
; then
14182 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
14183 echo "configure:14184: checking for a crypt that needs truncated salt" >&5
14184 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
14185 echo $ac_n "(cached) $ac_c" 1>&6
14189 LIBS
="$AUTHLIBS $LIBS"
14190 if test "$cross_compiling" = yes; then
14191 samba_cv_HAVE_TRUNCATED_SALT
=cross
14193 cat > conftest.
$ac_ext <<EOF
14194 #line 14195 "configure"
14195 #include "confdefs.h"
14196 #include "${srcdir-.}/tests/crypttest.c"
14198 if { (eval echo configure
:14199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
14200 samba_cv_HAVE_TRUNCATED_SALT
=no
14202 echo "configure: failed program was:" >&5
14203 cat conftest.
$ac_ext >&5
14205 samba_cv_HAVE_TRUNCATED_SALT
=yes
14213 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
14214 if test x
"$samba_cv_HAVE_TRUNCATED_SALT" = x
"yes"; then
14215 cat >> confdefs.h
<<\EOF
14216 #define HAVE_TRUNCATED_SALT 1
14222 ########################################################################################
14224 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
14226 ########################################################################################
14228 #################################################
14229 # check for a LDAP password database configuration backwards compatibility
14230 echo $ac_n "checking whether to use LDAP SAM 2.2 compatible configuration""... $ac_c" 1>&6
14231 echo "configure:14232: checking whether to use LDAP SAM 2.2 compatible configuration" >&5
14232 # Check whether --with-ldapsam or --without-ldapsam was given.
14233 if test "${with_ldapsam+set}" = set; then
14234 withval
="$with_ldapsam"
14237 echo "$ac_t""yes" 1>&6
14238 cat >> confdefs.h
<<\EOF
14239 #define WITH_LDAP_SAMCONFIG 1
14244 echo "$ac_t""no" 1>&6
14248 echo "$ac_t""no" 1>&6
14253 #################################################
14254 # check for a TDB password database
14255 echo $ac_n "checking whether to use TDB SAM database""... $ac_c" 1>&6
14256 echo "configure:14257: checking whether to use TDB SAM database" >&5
14257 # Check whether --with-tdbsam or --without-tdbsam was given.
14258 if test "${with_tdbsam+set}" = set; then
14259 withval
="$with_tdbsam"
14262 echo "$ac_t""yes" 1>&6
14263 cat >> confdefs.h
<<\EOF
14264 #define WITH_TDB_SAM 1
14269 echo "$ac_t""no" 1>&6
14273 echo "$ac_t""no" 1>&6
14278 #################################################
14279 # check for a NISPLUS password database
14280 echo $ac_n "checking whether to use NISPLUS SAM database""... $ac_c" 1>&6
14281 echo "configure:14282: checking whether to use NISPLUS SAM database" >&5
14282 # Check whether --with-nisplussam or --without-nisplussam was given.
14283 if test "${with_nisplussam+set}" = set; then
14284 withval
="$with_nisplussam"
14287 echo "$ac_t""yes" 1>&6
14288 cat >> confdefs.h
<<\EOF
14289 #define WITH_NISPLUS_SAM 1
14294 echo "$ac_t""no" 1>&6
14298 echo "$ac_t""no" 1>&6
14303 ########################################################################################
14305 ## END OF TESTS FOR SAM BACKENDS.
14307 ########################################################################################
14309 #################################################
14310 # check for a NISPLUS_HOME support
14311 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
14312 echo "configure:14313: checking whether to use NISPLUS_HOME" >&5
14313 # Check whether --with-nisplus-home or --without-nisplus-home was given.
14314 if test "${with_nisplus_home+set}" = set; then
14315 withval
="$with_nisplus_home"
14318 echo "$ac_t""yes" 1>&6
14319 cat >> confdefs.h
<<\EOF
14320 #define WITH_NISPLUS_HOME 1
14325 echo "$ac_t""no" 1>&6
14329 echo "$ac_t""no" 1>&6
14334 #################################################
14335 # check for syslog logging
14336 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
14337 echo "configure:14338: checking whether to use syslog logging" >&5
14338 # Check whether --with-syslog or --without-syslog was given.
14339 if test "${with_syslog+set}" = set; then
14340 withval
="$with_syslog"
14343 echo "$ac_t""yes" 1>&6
14344 cat >> confdefs.h
<<\EOF
14345 #define WITH_SYSLOG 1
14350 echo "$ac_t""no" 1>&6
14354 echo "$ac_t""no" 1>&6
14359 #################################################
14360 # check for a shared memory profiling support
14361 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
14362 echo "configure:14363: checking whether to use profiling" >&5
14363 # Check whether --with-profiling-data or --without-profiling-data was given.
14364 if test "${with_profiling_data+set}" = set; then
14365 withval
="$with_profiling_data"
14368 echo "$ac_t""yes" 1>&6
14369 cat >> confdefs.h
<<\EOF
14370 #define WITH_PROFILE 1
14375 echo "$ac_t""no" 1>&6
14379 echo "$ac_t""no" 1>&6
14385 #################################################
14386 # check for experimental disk-quotas support
14387 QUOTAOBJS
=smbd
/noquotas.o
14389 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
14390 echo "configure:14391: checking whether to support disk-quotas" >&5
14391 # Check whether --with-quotas or --without-quotas was given.
14392 if test "${with_quotas+set}" = set; then
14393 withval
="$with_quotas"
14396 echo "$ac_t""yes" 1>&6
14399 # Check for kernel 2.4.x quota braindamage...
14400 echo $ac_n "checking for linux 2.4.x quota braindamage..""... $ac_c" 1>&6
14401 echo "configure:14402: checking for linux 2.4.x quota braindamage.." >&5
14402 if eval "test \"`echo '$''{'samba_cv_linux_2_4_quota_braindamage'+set}'`\" = set"; then
14403 echo $ac_n "(cached) $ac_c" 1>&6
14406 cat > conftest.
$ac_ext <<EOF
14407 #line 14408 "configure"
14408 #include "confdefs.h"
14410 #include <sys/types.h>
14411 #include <asm/types.h>
14412 #include <linux/quota.h>
14413 #include <mntent.h>
14414 #include <linux/unistd.h>
14416 struct mem_dqblk D;
14419 if { (eval echo configure
:14420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14421 samba_cv_linux_2_4_quota_braindamage
=yes
14423 echo "configure: failed program was:" >&5
14424 cat conftest.
$ac_ext >&5
14426 samba_cv_linux_2_4_quota_braindamage
=no
14431 echo "$ac_t""$samba_cv_linux_2_4_quota_braindamage" 1>&6
14432 if test x
"$samba_cv_linux_2_4_quota_braindamage" = x
"yes"; then
14433 cat >> confdefs.h
<<\EOF
14434 #define LINUX_QUOTAS_2 1
14438 cat >> confdefs.h
<<\EOF
14439 #define LINUX_QUOTAS_1 1
14447 QUOTAOBJS
=smbd
/quotas.o
14448 cat >> confdefs.h
<<\EOF
14449 #define WITH_QUOTAS 1
14454 echo "$ac_t""no" 1>&6
14458 echo "$ac_t""no" 1>&6
14464 #################################################
14465 # check for experimental utmp accounting
14467 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
14468 echo "configure:14469: checking whether to support utmp accounting" >&5
14469 # Check whether --with-utmp or --without-utmp was given.
14470 if test "${with_utmp+set}" = set; then
14471 withval
="$with_utmp"
14474 echo "$ac_t""yes" 1>&6
14475 cat >> confdefs.h
<<\EOF
14476 #define WITH_UTMP 1
14481 echo "$ac_t""no" 1>&6
14485 echo "$ac_t""no" 1>&6
14490 #################################################
14491 # choose native language(s) of man pages
14492 echo $ac_n "checking chosen man pages' language(s)""... $ac_c" 1>&6
14493 echo "configure:14494: checking chosen man pages' language(s)" >&5
14494 # Check whether --with-manpages-langs or --without-manpages-langs was given.
14495 if test "${with_manpages_langs+set}" = set; then
14496 withval
="$with_manpages_langs"
14499 echo "configure: warning: --with-manpages-langs called without argument - will use default" 1>&2
14503 manlangs
="$withval"
14507 echo "$ac_t""$manlangs" 1>&6
14508 manlangs
=`echo $manlangs | sed "s/,/ /g"` # replacing commas with spaces to produce a list
14512 echo "$ac_t""$manlangs" 1>&6
14518 #################################################
14519 # should we build libsmbclient?
14521 LIBSMBCLIENT_SHARED
=
14523 echo $ac_n "checking whether to build the libsmbclient shared library""... $ac_c" 1>&6
14524 echo "configure:14525: checking whether to build the libsmbclient shared library" >&5
14525 # Check whether --with-libsmbclient or --without-libsmbclient was given.
14526 if test "${with_libsmbclient+set}" = set; then
14527 withval
="$with_libsmbclient"
14530 echo "$ac_t""no" 1>&6
14533 if test $BLDSHARED = true
; then
14534 LIBSMBCLIENT_SHARED
=bin
/libsmbclient.
$SHLIBEXT
14535 LIBSMBCLIENT
=libsmbclient
14536 echo "$ac_t""yes" 1>&6
14538 echo "$ac_t""no shared library support" 1>&6
14543 echo "$ac_t""yes" 1>&6
14549 #################################################
14550 # these tests are taken from the GNU fileutils package
14551 echo "checking how to get filesystem space usage" 1>&6
14552 echo "configure:14553: checking how to get filesystem space usage" >&5
14555 # Test for statvfs64.
14556 if test $space = no
; then
14558 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
14559 echo "configure:14560: checking statvfs64 function (SVR4)" >&5
14560 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
14561 echo $ac_n "(cached) $ac_c" 1>&6
14563 if test "$cross_compiling" = yes; then
14564 fu_cv_sys_stat_statvfs64
=cross
14566 cat > conftest.
$ac_ext <<EOF
14567 #line 14568 "configure"
14568 #include "confdefs.h"
14570 #if defined(HAVE_UNISTD_H)
14571 #include <unistd.h>
14573 #include <sys/types.h>
14574 #include <sys/statvfs.h>
14577 struct statvfs64 fsd;
14578 exit (statvfs64 (".", &fsd));
14581 if { (eval echo configure
:14582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
14583 fu_cv_sys_stat_statvfs64
=yes
14585 echo "configure: failed program was:" >&5
14586 cat conftest.
$ac_ext >&5
14588 fu_cv_sys_stat_statvfs64
=no
14595 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
14596 if test $fu_cv_sys_stat_statvfs64 = yes; then
14598 cat >> confdefs.h
<<\EOF
14599 #define STAT_STATVFS64 1
14605 # Perform only the link test since it seems there are no variants of the
14606 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
14607 # because that got a false positive on SCO OSR5. Adding the declaration
14608 # of a `struct statvfs' causes this test to fail (as it should) on such
14609 # systems. That system is reported to work fine with STAT_STATFS4 which
14610 # is what it gets when this test fails.
14611 if test $space = no
; then
14613 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
14614 echo "configure:14615: checking statvfs function (SVR4)" >&5
14615 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
14616 echo $ac_n "(cached) $ac_c" 1>&6
14618 cat > conftest.
$ac_ext <<EOF
14619 #line 14620 "configure"
14620 #include "confdefs.h"
14621 #include <sys/types.h>
14622 #include <sys/statvfs.h>
14624 struct statvfs fsd; statvfs (0, &fsd);
14627 if { (eval echo configure
:14628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
14629 fu_cv_sys_stat_statvfs
=yes
14631 echo "configure: failed program was:" >&5
14632 cat conftest.
$ac_ext >&5
14634 fu_cv_sys_stat_statvfs
=no
14639 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
14640 if test $fu_cv_sys_stat_statvfs = yes; then
14642 cat >> confdefs.h
<<\EOF
14643 #define STAT_STATVFS 1
14649 if test $space = no
; then
14650 # DEC Alpha running OSF/1
14651 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
14652 echo "configure:14653: checking for 3-argument statfs function (DEC OSF/1)" >&5
14653 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
14654 echo $ac_n "(cached) $ac_c" 1>&6
14656 if test "$cross_compiling" = yes; then
14657 fu_cv_sys_stat_statfs3_osf1
=no
14659 cat > conftest.
$ac_ext <<EOF
14660 #line 14661 "configure"
14661 #include "confdefs.h"
14663 #include <sys/param.h>
14664 #include <sys/types.h>
14665 #include <sys/mount.h>
14670 exit (statfs (".", &fsd, sizeof (struct statfs)));
14673 if { (eval echo configure
:14674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
14675 fu_cv_sys_stat_statfs3_osf1
=yes
14677 echo "configure: failed program was:" >&5
14678 cat conftest.
$ac_ext >&5
14680 fu_cv_sys_stat_statfs3_osf1
=no
14687 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
14688 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
14690 cat >> confdefs.h
<<\EOF
14691 #define STAT_STATFS3_OSF1 1
14697 if test $space = no
; then
14699 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
14700 echo "configure:14701: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
14701 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
14702 echo $ac_n "(cached) $ac_c" 1>&6
14704 if test "$cross_compiling" = yes; then
14705 fu_cv_sys_stat_statfs2_bsize
=no
14707 cat > conftest.
$ac_ext <<EOF
14708 #line 14709 "configure"
14709 #include "confdefs.h"
14711 #ifdef HAVE_SYS_PARAM_H
14712 #include <sys/param.h>
14714 #ifdef HAVE_SYS_MOUNT_H
14715 #include <sys/mount.h>
14717 #ifdef HAVE_SYS_VFS_H
14718 #include <sys/vfs.h>
14724 exit (statfs (".", &fsd));
14727 if { (eval echo configure
:14728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
14729 fu_cv_sys_stat_statfs2_bsize
=yes
14731 echo "configure: failed program was:" >&5
14732 cat conftest.
$ac_ext >&5
14734 fu_cv_sys_stat_statfs2_bsize
=no
14741 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
14742 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
14744 cat >> confdefs.h
<<\EOF
14745 #define STAT_STATFS2_BSIZE 1
14751 if test $space = no
; then
14753 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
14754 echo "configure:14755: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
14755 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
14756 echo $ac_n "(cached) $ac_c" 1>&6
14758 if test "$cross_compiling" = yes; then
14759 fu_cv_sys_stat_statfs4
=no
14761 cat > conftest.
$ac_ext <<EOF
14762 #line 14763 "configure"
14763 #include "confdefs.h"
14764 #include <sys/types.h>
14765 #include <sys/statfs.h>
14769 exit (statfs (".", &fsd, sizeof fsd, 0));
14772 if { (eval echo configure
:14773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
14774 fu_cv_sys_stat_statfs4
=yes
14776 echo "configure: failed program was:" >&5
14777 cat conftest.
$ac_ext >&5
14779 fu_cv_sys_stat_statfs4
=no
14786 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
14787 if test $fu_cv_sys_stat_statfs4 = yes; then
14789 cat >> confdefs.h
<<\EOF
14790 #define STAT_STATFS4 1
14796 if test $space = no
; then
14797 # 4.4BSD and NetBSD
14798 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
14799 echo "configure:14800: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
14800 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
14801 echo $ac_n "(cached) $ac_c" 1>&6
14803 if test "$cross_compiling" = yes; then
14804 fu_cv_sys_stat_statfs2_fsize
=no
14806 cat > conftest.
$ac_ext <<EOF
14807 #line 14808 "configure"
14808 #include "confdefs.h"
14809 #include <sys/types.h>
14810 #ifdef HAVE_SYS_PARAM_H
14811 #include <sys/param.h>
14813 #ifdef HAVE_SYS_MOUNT_H
14814 #include <sys/mount.h>
14820 exit (statfs (".", &fsd));
14823 if { (eval echo configure
:14824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
14825 fu_cv_sys_stat_statfs2_fsize
=yes
14827 echo "configure: failed program was:" >&5
14828 cat conftest.
$ac_ext >&5
14830 fu_cv_sys_stat_statfs2_fsize
=no
14837 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
14838 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
14840 cat >> confdefs.h
<<\EOF
14841 #define STAT_STATFS2_FSIZE 1
14847 if test $space = no
; then
14849 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
14850 echo "configure:14851: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
14851 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
14852 echo $ac_n "(cached) $ac_c" 1>&6
14854 if test "$cross_compiling" = yes; then
14855 fu_cv_sys_stat_fs_data
=no
14857 cat > conftest.
$ac_ext <<EOF
14858 #line 14859 "configure"
14859 #include "confdefs.h"
14860 #include <sys/types.h>
14861 #ifdef HAVE_SYS_PARAM_H
14862 #include <sys/param.h>
14864 #ifdef HAVE_SYS_MOUNT_H
14865 #include <sys/mount.h>
14867 #ifdef HAVE_SYS_FS_TYPES_H
14868 #include <sys/fs_types.h>
14872 struct fs_data fsd;
14873 /* Ultrix's statfs returns 1 for success,
14874 0 for not mounted, -1 for failure. */
14875 exit (statfs (".", &fsd) != 1);
14878 if { (eval echo configure
:14879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
14880 fu_cv_sys_stat_fs_data
=yes
14882 echo "configure: failed program was:" >&5
14883 cat conftest.
$ac_ext >&5
14885 fu_cv_sys_stat_fs_data
=no
14892 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
14893 if test $fu_cv_sys_stat_fs_data = yes; then
14895 cat >> confdefs.h
<<\EOF
14896 #define STAT_STATFS2_FS_DATA 1
14903 # As a gating factor for large file support, in order to
14904 # use <4GB files we must have the following minimal support
14906 # long long, and a 64 bit off_t or off64_t.
14907 # If we don't have all of these then disable large
14910 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
14911 echo "configure:14912: checking if large file support can be enabled" >&5
14912 cat > conftest.
$ac_ext <<EOF
14913 #line 14914 "configure"
14914 #include "confdefs.h"
14916 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
14917 #include <sys/types.h>
14926 if { (eval echo configure
:14927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14928 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=yes
14930 echo "configure: failed program was:" >&5
14931 cat conftest.
$ac_ext >&5
14933 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=no
14936 if test x
"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x
"yes"; then
14937 cat >> confdefs.h
<<\EOF
14938 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
14942 echo "$ac_t""$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" 1>&6
14944 # Check whether --with-spinlocks or --without-spinlocks was given.
14945 if test "${with_spinlocks+set}" = set; then
14946 withval
="$with_spinlocks"
14950 if test "x$with_spinlocks" = "xyes"; then
14951 cat >> confdefs.h
<<\EOF
14952 #define USE_SPINLOCKS 1
14956 case "$host_cpu" in
14958 cat >> confdefs.h
<<\EOF
14959 #define SPARC_SPINLOCKS 1
14964 i386|i486|i586|i686
)
14965 cat >> confdefs.h
<<\EOF
14966 #define INTEL_SPINLOCKS 1
14972 cat >> confdefs.h
<<\EOF
14973 #define MIPS_SPINLOCKS 1
14979 cat >> confdefs.h
<<\EOF
14980 #define POWERPC_SPINLOCKS 1
14987 #################################################
14988 # check for ACL support
14990 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
14991 echo "configure:14992: checking whether to support ACLs" >&5
14992 # Check whether --with-acl-support or --without-acl-support was given.
14993 if test "${with_acl_support+set}" = set; then
14994 withval
="$with_acl_support"
15000 echo "$ac_t""Using UnixWare ACLs" 1>&6
15001 cat >> confdefs.h
<<\EOF
15002 #define HAVE_UNIXWARE_ACLS 1
15007 echo "$ac_t""Using solaris ACLs" 1>&6
15008 cat >> confdefs.h
<<\EOF
15009 #define HAVE_SOLARIS_ACLS 1
15014 echo "$ac_t""Using HPUX ACLs" 1>&6
15015 cat >> confdefs.h
<<\EOF
15016 #define HAVE_HPUX_ACLS 1
15021 echo "$ac_t""Using IRIX ACLs" 1>&6
15022 cat >> confdefs.h
<<\EOF
15023 #define HAVE_IRIX_ACLS 1
15028 echo "$ac_t""Using AIX ACLs" 1>&6
15029 cat >> confdefs.h
<<\EOF
15030 #define HAVE_AIX_ACLS 1
15035 echo "$ac_t""Using Tru64 ACLs" 1>&6
15036 cat >> confdefs.h
<<\EOF
15037 #define HAVE_TRU64_ACLS 1
15040 LIBS
="$LIBS -lpacl"
15043 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
15044 echo "configure:15045: checking for acl_get_file in -lacl" >&5
15045 ac_lib_var
=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
15046 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15047 echo $ac_n "(cached) $ac_c" 1>&6
15049 ac_save_LIBS
="$LIBS"
15051 cat > conftest.
$ac_ext <<EOF
15052 #line 15053 "configure"
15053 #include "confdefs.h"
15054 /* Override any gcc2 internal prototype to avoid an error. */
15055 /* We use char because int might match the return type of a gcc2
15056 builtin and then its argument prototype would still apply. */
15057 char acl_get_file();
15063 if { (eval echo configure
:15064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
15065 eval "ac_cv_lib_$ac_lib_var=yes"
15067 echo "configure: failed program was:" >&5
15068 cat conftest.
$ac_ext >&5
15070 eval "ac_cv_lib_$ac_lib_var=no"
15073 LIBS
="$ac_save_LIBS"
15076 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15077 echo "$ac_t""yes" 1>&6
15078 ac_tr_lib
=HAVE_LIB
`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
15079 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
15080 cat >> confdefs.h
<<EOF
15081 #define $ac_tr_lib 1
15087 echo "$ac_t""no" 1>&6
15090 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
15091 echo "configure:15092: checking for ACL support" >&5
15092 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
15093 echo $ac_n "(cached) $ac_c" 1>&6
15096 cat > conftest.
$ac_ext <<EOF
15097 #line 15098 "configure"
15098 #include "confdefs.h"
15099 #include <sys/types.h>
15100 #include <sys/acl.h>
15102 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
15105 if { (eval echo configure
:15106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
15107 samba_cv_HAVE_POSIX_ACLS
=yes
15109 echo "configure: failed program was:" >&5
15110 cat conftest.
$ac_ext >&5
15112 samba_cv_HAVE_POSIX_ACLS
=no
15117 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
15118 if test x
"$samba_cv_HAVE_POSIX_ACLS" = x
"yes"; then
15119 echo "$ac_t""Using posix ACLs" 1>&6
15120 cat >> confdefs.h
<<\EOF
15121 #define HAVE_POSIX_ACLS 1
15124 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
15125 echo "configure:15126: checking for acl_get_perm_np" >&5
15126 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
15127 echo $ac_n "(cached) $ac_c" 1>&6
15130 cat > conftest.
$ac_ext <<EOF
15131 #line 15132 "configure"
15132 #include "confdefs.h"
15133 #include <sys/types.h>
15134 #include <sys/acl.h>
15136 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
15139 if { (eval echo configure
:15140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
15141 samba_cv_HAVE_ACL_GET_PERM_NP
=yes
15143 echo "configure: failed program was:" >&5
15144 cat conftest.
$ac_ext >&5
15146 samba_cv_HAVE_ACL_GET_PERM_NP
=no
15151 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
15152 if test x
"$samba_cv_HAVE_ACL_GET_PERM_NP" = x
"yes"; then
15153 cat >> confdefs.h
<<\EOF
15154 #define HAVE_ACL_GET_PERM_NP 1
15163 echo "$ac_t""no" 1>&6
15164 cat >> confdefs.h
<<\EOF
15165 #define HAVE_NO_ACLS 1
15171 cat >> confdefs.h
<<\EOF
15172 #define HAVE_NO_ACLS 1
15175 echo "$ac_t""no" 1>&6
15180 #################################################
15181 # check for sendfile support
15183 with_sendfile_support
=yes
15184 echo $ac_n "checking whether to check to support sendfile""... $ac_c" 1>&6
15185 echo "configure:15186: checking whether to check to support sendfile" >&5
15186 # Check whether --with-sendfile-support or --without-sendfile-support was given.
15187 if test "${with_sendfile_support+set}" = set; then
15188 withval
="$with_sendfile_support"
15192 echo "$ac_t""yes" 1>&6;
15196 echo $ac_n "checking for linux sendfile64 support""... $ac_c" 1>&6
15197 echo "configure:15198: checking for linux sendfile64 support" >&5
15198 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE64'+set}'`\" = set"; then
15199 echo $ac_n "(cached) $ac_c" 1>&6
15202 cat > conftest.
$ac_ext <<EOF
15203 #line 15204 "configure"
15204 #include "confdefs.h"
15205 #include <sys/sendfile.h>
15211 ssize_t nwritten = sendfile64(tofd, fromfd, &offset, total);
15215 if { (eval echo configure
:15216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
15217 samba_cv_HAVE_SENDFILE64
=yes
15219 echo "configure: failed program was:" >&5
15220 cat conftest.
$ac_ext >&5
15222 samba_cv_HAVE_SENDFILE64
=no
15227 echo "$ac_t""$samba_cv_HAVE_SENDFILE64" 1>&6
15229 echo $ac_n "checking for linux sendfile support""... $ac_c" 1>&6
15230 echo "configure:15231: checking for linux sendfile support" >&5
15231 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE'+set}'`\" = set"; then
15232 echo $ac_n "(cached) $ac_c" 1>&6
15235 cat > conftest.
$ac_ext <<EOF
15236 #line 15237 "configure"
15237 #include "confdefs.h"
15238 #include <sys/sendfile.h>
15244 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
15248 if { (eval echo configure
:15249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
15250 samba_cv_HAVE_SENDFILE
=yes
15252 echo "configure: failed program was:" >&5
15253 cat conftest.
$ac_ext >&5
15255 samba_cv_HAVE_SENDFILE
=no
15260 echo "$ac_t""$samba_cv_HAVE_SENDFILE" 1>&6
15262 # Try and cope with broken Linux sendfile....
15263 echo $ac_n "checking for broken linux sendfile support""... $ac_c" 1>&6
15264 echo "configure:15265: checking for broken linux sendfile support" >&5
15265 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_LINUX_SENDFILE'+set}'`\" = set"; then
15266 echo $ac_n "(cached) $ac_c" 1>&6
15269 cat > conftest.
$ac_ext <<EOF
15270 #line 15271 "configure"
15271 #include "confdefs.h"
15273 #if defined(_FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS == 64)
15274 #undef _FILE_OFFSET_BITS
15276 #include <sys/sendfile.h>
15282 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
15286 if { (eval echo configure
:15287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
15288 samba_cv_HAVE_BROKEN_LINUX_SENDFILE
=yes
15290 echo "configure: failed program was:" >&5
15291 cat conftest.
$ac_ext >&5
15293 samba_cv_HAVE_BROKEN_LINUX_SENDFILE
=no
15298 echo "$ac_t""$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" 1>&6
15300 if test x
"$samba_cv_HAVE_SENDFILE64" = x
"yes"; then
15301 cat >> confdefs.h
<<\EOF
15302 #define HAVE_SENDFILE64 1
15305 cat >> confdefs.h
<<\EOF
15306 #define LINUX_SENDFILE_API 1
15309 cat >> confdefs.h
<<\EOF
15310 #define WITH_SENDFILE 1
15313 elif test x
"$samba_cv_HAVE_SENDFILE" = x
"yes"; then
15314 cat >> confdefs.h
<<\EOF
15315 #define HAVE_SENDFILE 1
15318 cat >> confdefs.h
<<\EOF
15319 #define LINUX_SENDFILE_API 1
15322 cat >> confdefs.h
<<\EOF
15323 #define WITH_SENDFILE 1
15326 elif test x
"$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" = x
"yes"; then
15327 cat >> confdefs.h
<<\EOF
15328 #define LINUX_BROKEN_SENDFILE_API 1
15331 cat >> confdefs.h
<<\EOF
15332 #define WITH_SENDFILE 1
15336 echo "$ac_t""no" 1>&6;
15341 echo $ac_n "checking for freebsd sendfile support""... $ac_c" 1>&6
15342 echo "configure:15343: checking for freebsd sendfile support" >&5
15343 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE'+set}'`\" = set"; then
15344 echo $ac_n "(cached) $ac_c" 1>&6
15347 cat > conftest.
$ac_ext <<EOF
15348 #line 15349 "configure"
15349 #include "confdefs.h"
15351 #include <sys/types.h>
15352 #include <unistd.h>
15353 #include <sys/socket.h>
15354 #include <sys/uio.h>
15357 int fromfd, tofd, ret, total=0;
15358 off_t offset, nwritten;
15359 struct sf_hdtr hdr;
15360 struct iovec hdtrl;
15361 hdr.headers = &hdtrl;
15363 hdr.trailers = NULL;
15365 hdtrl.iov_base = NULL;
15367 ret = sendfile(fromfd, tofd, offset, total, &hdr, &nwritten, 0);
15371 if { (eval echo configure
:15372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
15373 samba_cv_HAVE_SENDFILE
=yes
15375 echo "configure: failed program was:" >&5
15376 cat conftest.
$ac_ext >&5
15378 samba_cv_HAVE_SENDFILE
=no
15383 echo "$ac_t""$samba_cv_HAVE_SENDFILE" 1>&6
15385 if test x
"$samba_cv_HAVE_SENDFILE" = x
"yes"; then
15386 cat >> confdefs.h
<<\EOF
15387 #define HAVE_SENDFILE 1
15390 cat >> confdefs.h
<<\EOF
15391 #define FREEBSD_SENDFILE_API 1
15394 cat >> confdefs.h
<<\EOF
15395 #define WITH_SENDFILE 1
15399 echo "$ac_t""no" 1>&6;
15404 echo $ac_n "checking for hpux sendfile64 support""... $ac_c" 1>&6
15405 echo "configure:15406: checking for hpux sendfile64 support" >&5
15406 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE64'+set}'`\" = set"; then
15407 echo $ac_n "(cached) $ac_c" 1>&6
15410 cat > conftest.
$ac_ext <<EOF
15411 #line 15412 "configure"
15412 #include "confdefs.h"
15414 #include <sys/socket.h>
15415 #include <sys/uio.h>
15420 struct iovec hdtrl[2];
15424 hdtrl[0].iov_base = 0;
15425 hdtrl[0].iov_len = 0;
15427 nwritten = sendfile64(tofd, fromfd, offset, total, &hdtrl[0], 0);
15431 if { (eval echo configure
:15432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
15433 samba_cv_HAVE_SENDFILE64
=yes
15435 echo "configure: failed program was:" >&5
15436 cat conftest.
$ac_ext >&5
15438 samba_cv_HAVE_SENDFILE64
=no
15443 echo "$ac_t""$samba_cv_HAVE_SENDFILE64" 1>&6
15444 if test x
"$samba_cv_HAVE_SENDFILE64" = x
"yes"; then
15445 cat >> confdefs.h
<<\EOF
15446 #define HAVE_SENDFILE64 1
15449 cat >> confdefs.h
<<\EOF
15450 #define HPUX_SENDFILE_API 1
15453 cat >> confdefs.h
<<\EOF
15454 #define WITH_SENDFILE 1
15458 echo "$ac_t""no" 1>&6;
15461 echo $ac_n "checking for hpux sendfile support""... $ac_c" 1>&6
15462 echo "configure:15463: checking for hpux sendfile support" >&5
15463 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE'+set}'`\" = set"; then
15464 echo $ac_n "(cached) $ac_c" 1>&6
15467 cat > conftest.
$ac_ext <<EOF
15468 #line 15469 "configure"
15469 #include "confdefs.h"
15471 #include <sys/socket.h>
15472 #include <sys/uio.h>
15477 struct iovec hdtrl[2];
15481 hdtrl[0].iov_base = 0;
15482 hdtrl[0].iov_len = 0;
15484 nwritten = sendfile(tofd, fromfd, offset, total, &hdtrl[0], 0);
15488 if { (eval echo configure
:15489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
15490 samba_cv_HAVE_SENDFILE
=yes
15492 echo "configure: failed program was:" >&5
15493 cat conftest.
$ac_ext >&5
15495 samba_cv_HAVE_SENDFILE
=no
15500 echo "$ac_t""$samba_cv_HAVE_SENDFILE" 1>&6
15501 if test x
"$samba_cv_HAVE_SENDFILE" = x
"yes"; then
15502 cat >> confdefs.h
<<\EOF
15503 #define HAVE_SENDFILE 1
15506 cat >> confdefs.h
<<\EOF
15507 #define HPUX_SENDFILE_API 1
15510 cat >> confdefs.h
<<\EOF
15511 #define WITH_SENDFILE 1
15515 echo "$ac_t""no" 1>&6;
15520 echo $ac_n "checking for sendfilev in -lsendfile""... $ac_c" 1>&6
15521 echo "configure:15522: checking for sendfilev in -lsendfile" >&5
15522 ac_lib_var
=`echo sendfile'_'sendfilev | sed 'y%./+-%__p_%'`
15523 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15524 echo $ac_n "(cached) $ac_c" 1>&6
15526 ac_save_LIBS
="$LIBS"
15527 LIBS
="-lsendfile $LIBS"
15528 cat > conftest.
$ac_ext <<EOF
15529 #line 15530 "configure"
15530 #include "confdefs.h"
15531 /* Override any gcc2 internal prototype to avoid an error. */
15532 /* We use char because int might match the return type of a gcc2
15533 builtin and then its argument prototype would still apply. */
15540 if { (eval echo configure
:15541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
15542 eval "ac_cv_lib_$ac_lib_var=yes"
15544 echo "configure: failed program was:" >&5
15545 cat conftest.
$ac_ext >&5
15547 eval "ac_cv_lib_$ac_lib_var=no"
15550 LIBS
="$ac_save_LIBS"
15553 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15554 echo "$ac_t""yes" 1>&6
15555 ac_tr_lib
=HAVE_LIB
`echo sendfile | sed -e 's/[^a-zA-Z0-9_]/_/g' \
15556 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
15557 cat >> confdefs.h
<<EOF
15558 #define $ac_tr_lib 1
15561 LIBS
="-lsendfile $LIBS"
15564 echo "$ac_t""no" 1>&6
15567 echo $ac_n "checking for solaris sendfilev64 support""... $ac_c" 1>&6
15568 echo "configure:15569: checking for solaris sendfilev64 support" >&5
15569 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILEV64'+set}'`\" = set"; then
15570 echo $ac_n "(cached) $ac_c" 1>&6
15573 cat > conftest.
$ac_ext <<EOF
15574 #line 15575 "configure"
15575 #include "confdefs.h"
15577 #include <sys/sendfile.h>
15582 struct sendfilevec vec[2];
15588 vec[0].sfv_fd = SFV_FD_SELF;
15589 vec[0].sfv_flag = 0;
15590 vec[0].sfv_off = 0;
15591 vec[0].sfv_len = 0;
15594 vec[1].sfv_flag = 0;
15595 vec[1].sfv_off = 0;
15596 vec[1].sfv_len = 0;
15597 nwritten = sendfilev64(tofd, vec, sfvcnt, &xferred);
15601 if { (eval echo configure
:15602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
15603 samba_cv_HAVE_SENDFILEV64
=yes
15605 echo "configure: failed program was:" >&5
15606 cat conftest.
$ac_ext >&5
15608 samba_cv_HAVE_SENDFILEV64
=no
15613 echo "$ac_t""$samba_cv_HAVE_SENDFILEV64" 1>&6
15615 if test x
"$samba_cv_HAVE_SENDFILEV64" = x
"yes"; then
15616 cat >> confdefs.h
<<\EOF
15617 #define HAVE_SENDFILEV64 1
15620 cat >> confdefs.h
<<\EOF
15621 #define SOLARIS_SENDFILE_API 1
15624 cat >> confdefs.h
<<\EOF
15625 #define WITH_SENDFILE 1
15629 echo "$ac_t""no" 1>&6;
15632 echo $ac_n "checking for solaris sendfilev support""... $ac_c" 1>&6
15633 echo "configure:15634: checking for solaris sendfilev support" >&5
15634 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILEV'+set}'`\" = set"; then
15635 echo $ac_n "(cached) $ac_c" 1>&6
15638 cat > conftest.
$ac_ext <<EOF
15639 #line 15640 "configure"
15640 #include "confdefs.h"
15642 #include <sys/sendfile.h>
15647 struct sendfilevec vec[2];
15653 vec[0].sfv_fd = SFV_FD_SELF;
15654 vec[0].sfv_flag = 0;
15655 vec[0].sfv_off = 0;
15656 vec[0].sfv_len = 0;
15659 vec[1].sfv_flag = 0;
15660 vec[1].sfv_off = 0;
15661 vec[1].sfv_len = 0;
15662 nwritten = sendfilev(tofd, vec, sfvcnt, &xferred);
15666 if { (eval echo configure
:15667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
15668 samba_cv_HAVE_SENDFILEV
=yes
15670 echo "configure: failed program was:" >&5
15671 cat conftest.
$ac_ext >&5
15673 samba_cv_HAVE_SENDFILEV
=no
15678 echo "$ac_t""$samba_cv_HAVE_SENDFILEV" 1>&6
15680 if test x
"$samba_cv_HAVE_SENDFILEV" = x
"yes"; then
15681 cat >> confdefs.h
<<\EOF
15682 #define HAVE_SENDFILEV 1
15685 cat >> confdefs.h
<<\EOF
15686 #define SOLARIS_SENDFILE_API 1
15689 cat >> confdefs.h
<<\EOF
15690 #define WITH_SENDFILE 1
15694 echo "$ac_t""no" 1>&6;
15703 echo "$ac_t""no" 1>&6
15707 echo "$ac_t""yes" 1>&6
15713 #################################################
15714 # Check whether winbind is supported on this platform. If so we need to
15715 # build and install client programs, sbin programs and shared libraries
15717 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
15718 echo "configure:15719: checking whether to build winbind" >&5
15720 # Initially, the value of $host_os decides whether winbind is supported
15728 WINBIND_NSS_EXTRA_OBJS
="nsswitch/winbind_nss_solaris.o"
15729 WINBIND_NSS_EXTRA_LIBS
="-lsocket"
15733 WINBIND_NSS_EXTRA_OBJS
="nsswitch/winbind_nss_solaris.o"
15737 winbind_no_reason
=", unsupported on $host_os"
15744 # Check the setting of --with-winbindd
15746 # Check whether --with-winbind or --without-winbind was given.
15747 if test "${with_winbind+set}" = set; then
15748 withval
="$with_winbind"
15762 # We need unix domain sockets for winbind
15764 if test x
"$HAVE_WINBIND" = x
"yes"; then
15765 if test x
"$samba_cv_unixsocket" = x
"no"; then
15766 winbind_no_reason
=", no unix domain socket support on $host_os"
15771 # Display test results
15773 if test x
"$HAVE_WINBIND" = x
"yes"; then
15774 echo "$ac_t""yes" 1>&6
15775 cat >> confdefs.h
<<\EOF
15776 #define WITH_WINBIND 1
15780 EXTRA_BIN_PROGS
="$EXTRA_BIN_PROGS bin/wbinfo\$(EXEEXT)"
15781 EXTRA_SBIN_PROGS
="$EXTRA_SBIN_PROGS bin/winbindd\$(EXEEXT)"
15782 if test x
"$BLDSHARED" = x
"true"; then
15785 SHLIB_PROGS
="$SHLIB_PROGS nsswitch/libns_winbind.so"
15788 SHLIB_PROGS
="$SHLIB_PROGS nsswitch/libnss_winbind.so"
15791 if test x
"$with_pam" = x
"yes"; then
15792 SHLIB_PROGS
="$SHLIB_PROGS nsswitch/pam_winbind.so"
15796 echo "$ac_t""no$winbind_no_reason" 1>&6
15799 # Solaris has some extra fields in struct passwd that need to be
15800 # initialised otherwise nscd crashes. Unfortunately autoconf < 2.50
15801 # doesn't have the AC_CHECK_MEMBER macro which would be handy for checking
15804 #AC_CHECK_MEMBER(struct passwd.pw_comment,
15805 # AC_DEFINE(HAVE_PASSWD_PW_COMMENT, 1, [Defined if struct passwd has pw_comment field]),
15806 # [#include <pwd.h>])
15808 echo $ac_n "checking whether struct passwd has pw_comment""... $ac_c" 1>&6
15809 echo "configure:15810: checking whether struct passwd has pw_comment" >&5
15810 if eval "test \"`echo '$''{'samba_cv_passwd_pw_comment'+set}'`\" = set"; then
15811 echo $ac_n "(cached) $ac_c" 1>&6
15814 cat > conftest.
$ac_ext <<EOF
15815 #line 15816 "configure"
15816 #include "confdefs.h"
15819 struct passwd p; p.pw_comment;
15822 if { (eval echo configure
:15823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15824 samba_cv_passwd_pw_comment
=yes
15826 echo "configure: failed program was:" >&5
15827 cat conftest.
$ac_ext >&5
15829 samba_cv_passwd_pw_comment
=no
15834 echo "$ac_t""$samba_cv_passwd_pw_comment" 1>&6
15835 if test x
"$samba_cv_passwd_pw_comment" = x
"yes"; then
15836 cat >> confdefs.h
<<\EOF
15837 #define HAVE_PASSWD_PW_COMMENT 1
15842 #AC_CHECK_MEMBER(struct passwd.pw_age,
15843 # AC_DEFINE(HAVE_PASSWD_PW_AGE, 1, [Defined if struct passwd has pw_age field]),
15844 # [#include <pwd.h>])
15846 echo $ac_n "checking whether struct passwd has pw_age""... $ac_c" 1>&6
15847 echo "configure:15848: checking whether struct passwd has pw_age" >&5
15848 if eval "test \"`echo '$''{'samba_cv_passwd_pw_age'+set}'`\" = set"; then
15849 echo $ac_n "(cached) $ac_c" 1>&6
15852 cat > conftest.
$ac_ext <<EOF
15853 #line 15854 "configure"
15854 #include "confdefs.h"
15857 struct passwd p; p.pw_age;
15860 if { (eval echo configure
:15861: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15862 samba_cv_passwd_pw_age
=yes
15864 echo "configure: failed program was:" >&5
15865 cat conftest.
$ac_ext >&5
15867 samba_cv_passwd_pw_age
=no
15872 echo "$ac_t""$samba_cv_passwd_pw_age" 1>&6
15873 if test x
"$samba_cv_passwd_pw_age" = x
"yes"; then
15874 cat >> confdefs.h
<<\EOF
15875 #define HAVE_PASSWD_PW_AGE 1
15880 #################################################
15881 # Check to see if we should use the included popt
15883 # Check whether --with-included-popt or --without-included-popt was given.
15884 if test "${with_included_popt+set}" = set; then
15885 withval
="$with_included_popt"
15897 if test x
"$INCLUDED_POPT" != x
"yes"; then
15898 echo $ac_n "checking for poptGetContext in -lpopt""... $ac_c" 1>&6
15899 echo "configure:15900: checking for poptGetContext in -lpopt" >&5
15900 ac_lib_var
=`echo popt'_'poptGetContext | sed 'y%./+-%__p_%'`
15901 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15902 echo $ac_n "(cached) $ac_c" 1>&6
15904 ac_save_LIBS
="$LIBS"
15905 LIBS
="-lpopt $LIBS"
15906 cat > conftest.
$ac_ext <<EOF
15907 #line 15908 "configure"
15908 #include "confdefs.h"
15909 /* Override any gcc2 internal prototype to avoid an error. */
15910 /* We use char because int might match the return type of a gcc2
15911 builtin and then its argument prototype would still apply. */
15912 char poptGetContext();
15918 if { (eval echo configure
:15919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
15920 eval "ac_cv_lib_$ac_lib_var=yes"
15922 echo "configure: failed program was:" >&5
15923 cat conftest.
$ac_ext >&5
15925 eval "ac_cv_lib_$ac_lib_var=no"
15928 LIBS
="$ac_save_LIBS"
15931 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15932 echo "$ac_t""yes" 1>&6
15935 echo "$ac_t""no" 1>&6
15941 echo $ac_n "checking whether to use included popt""... $ac_c" 1>&6
15942 echo "configure:15943: checking whether to use included popt" >&5
15943 if test x
"$INCLUDED_POPT" = x
"yes"; then
15944 echo "$ac_t""yes" 1>&6
15945 BUILD_POPT
='$(POPT_OBJS)'
15946 FLAGS1
="-I$srcdir/popt"
15948 echo "$ac_t""no" 1>&6
15949 LIBS
="$LIBS -lpopt"
15954 #################################################
15955 # Check if the user wants Python
15957 # At the moment, you can use this to set which Python binary to link
15958 # against. (Libraries built for Python2.2 can't be used by 2.1,
15959 # though they can coexist in different directories.) In the future
15960 # this might make the Python stuff be built by default.
15962 # Defaulting python breaks the clean target if python isn't installed
15966 # Check whether --with-python or --without-python was given.
15967 if test "${with_python+set}" = set; then
15968 withval
="$with_python"
15969 case "${withval-python}" in
15972 EXTRA_ALL_TARGETS
="$EXTRA_ALL_TARGETS python_ext"
15978 PYTHON
=${withval-python}
15985 #################################################
15986 # do extra things if we are running insure
15988 if test "${ac_cv_prog_CC}" = "insure"; then
15989 CPPFLAGS
="$CPPFLAGS -D__INSURE__"
15992 #################################################
15993 # final configure stuff
15995 echo $ac_n "checking configure summary""... $ac_c" 1>&6
15996 echo "configure:15997: checking configure summary" >&5
15997 if test "$cross_compiling" = yes; then
15998 echo "configure: warning: cannot run when cross-compiling" 1>&2
16000 cat > conftest.
$ac_ext <<EOF
16001 #line 16002 "configure"
16002 #include "confdefs.h"
16003 #include "${srcdir-.}/tests/summary.c"
16005 if { (eval echo configure
:16006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
16007 echo "$ac_t""yes" 1>&6
16009 echo "configure: failed program was:" >&5
16010 cat conftest.
$ac_ext >&5
16012 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }; exit 1;
16022 cat > confcache
<<\EOF
16023 # This file is a shell script that caches the results of configure
16024 # tests run on this system so they can be shared between configure
16025 # scripts and configure runs. It is not useful on other systems.
16026 # If it contains results you don't want to keep, you may remove or edit it.
16028 # By default, configure uses ./config.cache as the cache file,
16029 # creating it if it does not exist already. You can give configure
16030 # the --cache-file=FILE option to use a different cache file; that is
16031 # what configure does when it calls configure scripts in
16032 # subdirectories, so they share the cache.
16033 # Giving --cache-file=/dev/null disables caching, for debugging configure.
16034 # config.status only pays attention to the cache file if you give it the
16035 # --recheck option to rerun configure.
16038 # The following way of writing the cache mishandles newlines in values,
16039 # but we know of no workaround that is simple, portable, and efficient.
16040 # So, don't put newlines in cache variables' values.
16041 # Ultrix sh set writes to stderr and can't be redirected directly,
16042 # and sets the high bit in the cache file unless we assign to the vars.
16044 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16046 # `set' does not quote correctly, so add quotes (double-quote substitution
16047 # turns \\\\ into \\, and sed turns \\ into \).
16049 -e "s/'/'\\\\''/g" \
16050 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
16053 # `set' quotes correctly as required by POSIX, so do not add quotes.
16054 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
16057 if cmp -s $cache_file confcache
; then
16060 if test -w $cache_file; then
16061 echo "updating cache $cache_file"
16062 cat confcache
> $cache_file
16064 echo "not updating unwritable cache $cache_file"
16069 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
16071 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16072 # Let make expand exec_prefix.
16073 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16075 # Any assignment to VPATH causes Sun make to only execute
16076 # the first set of double-colon rules, so remove it if not needed.
16077 # If there is a colon in the path, we need to keep it.
16078 if test "x$srcdir" = x.
; then
16079 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
16082 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
16084 DEFS
=-DHAVE_CONFIG_H
16086 # Without the "./", some shells look in PATH for config.status.
16087 : ${CONFIG_STATUS=./config.status}
16089 echo creating
$CONFIG_STATUS
16090 rm -f $CONFIG_STATUS
16091 cat > $CONFIG_STATUS <<EOF
16093 # Generated automatically by configure.
16094 # Run this file to recreate the current configuration.
16095 # This directory was configured as follows,
16096 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16098 # $0 $ac_configure_args
16100 # Compiler output produced by configure, useful for debugging
16101 # configure, is in ./config.log if it exists.
16103 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
16106 case "\$ac_option" in
16107 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16108 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
16109 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
16110 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
16111 echo "$CONFIG_STATUS generated by autoconf version 2.13"
16113 -help | --help | --hel | --he | --h)
16114 echo "\$ac_cs_usage"; exit 0 ;;
16115 *) echo "\$ac_cs_usage"; exit 1 ;;
16119 ac_given_srcdir=$srcdir
16120 ac_given_INSTALL="$INSTALL"
16122 trap 'rm -fr `echo "include/stamp-h Makefile script/findsmb include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
16124 cat >> $CONFIG_STATUS <<EOF
16126 # Protect against being on the right side of a sed subst in config.status.
16127 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
16128 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
16132 s%@CFLAGS@%$CFLAGS%g
16133 s%@CPPFLAGS@%$CPPFLAGS%g
16134 s%@CXXFLAGS@%$CXXFLAGS%g
16135 s%@FFLAGS@%$FFLAGS%g
16137 s%@LDFLAGS@%$LDFLAGS%g
16139 s%@exec_prefix@%$exec_prefix%g
16140 s%@prefix@%$prefix%g
16141 s%@program_transform_name@%$program_transform_name%g
16142 s%@bindir@%$bindir%g
16143 s%@sbindir@%$sbindir%g
16144 s%@libexecdir@%$libexecdir%g
16145 s%@datadir@%$datadir%g
16146 s%@sysconfdir@%$sysconfdir%g
16147 s%@sharedstatedir@%$sharedstatedir%g
16148 s%@localstatedir@%$localstatedir%g
16149 s%@libdir@%$libdir%g
16150 s%@includedir@%$includedir%g
16151 s%@oldincludedir@%$oldincludedir%g
16152 s%@infodir@%$infodir%g
16153 s%@mandir@%$mandir%g
16154 s%@configdir@%$configdir%g
16155 s%@lockdir@%$lockdir%g
16156 s%@piddir@%$piddir%g
16157 s%@logfilebase@%$logfilebase%g
16158 s%@privatedir@%$privatedir%g
16159 s%@swatdir@%$swatdir%g
16160 s%@LDSHFLAGS@%$LDSHFLAGS%g
16161 s%@SONAMEFLAG@%$SONAMEFLAG%g
16163 s%@HOST_OS@%$HOST_OS%g
16164 s%@PICFLAG@%$PICFLAG%g
16165 s%@PICSUFFIX@%$PICSUFFIX%g
16166 s%@POBAD_CC@%$POBAD_CC%g
16167 s%@SHLIBEXT@%$SHLIBEXT%g
16168 s%@LIBSMBCLIENT_SHARED@%$LIBSMBCLIENT_SHARED%g
16169 s%@LIBSMBCLIENT@%$LIBSMBCLIENT%g
16170 s%@PRINTLIBS@%$PRINTLIBS%g
16171 s%@AUTHLIBS@%$AUTHLIBS%g
16172 s%@SHLIB_PROGS@%$SHLIB_PROGS%g
16173 s%@SMBWRAPPER@%$SMBWRAPPER%g
16174 s%@EXTRA_BIN_PROGS@%$EXTRA_BIN_PROGS%g
16175 s%@EXTRA_SBIN_PROGS@%$EXTRA_SBIN_PROGS%g
16176 s%@EXTRA_ALL_TARGETS@%$EXTRA_ALL_TARGETS%g
16178 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
16179 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
16180 s%@INSTALL_DATA@%$INSTALL_DATA%g
16182 s%@EXEEXT@%$EXEEXT%g
16183 s%@BROKEN_CC@%$BROKEN_CC%g
16185 s%@host_alias@%$host_alias%g
16186 s%@host_cpu@%$host_cpu%g
16187 s%@host_vendor@%$host_vendor%g
16188 s%@host_os@%$host_os%g
16189 s%@target@%$target%g
16190 s%@target_alias@%$target_alias%g
16191 s%@target_cpu@%$target_cpu%g
16192 s%@target_vendor@%$target_vendor%g
16193 s%@target_os@%$target_os%g
16195 s%@build_alias@%$build_alias%g
16196 s%@build_cpu@%$build_cpu%g
16197 s%@build_vendor@%$build_vendor%g
16198 s%@build_os@%$build_os%g
16200 s%@CUPS_CONFIG@%$CUPS_CONFIG%g
16201 s%@LIBOBJS@%$LIBOBJS%g
16202 s%@TERMLIBS@%$TERMLIBS%g
16203 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
16205 s%@DYNEXP@%$DYNEXP%g
16206 s%@MYSQL_CONFIG@%$MYSQL_CONFIG%g
16207 s%@MYSQL_CFLAGS@%$MYSQL_CFLAGS%g
16208 s%@MYSQL_LIBS@%$MYSQL_LIBS%g
16209 s%@MODULE_MYSQL@%$MODULE_MYSQL%g
16210 s%@XML2_CONFIG@%$XML2_CONFIG%g
16211 s%@XML_CFLAGS@%$XML_CFLAGS%g
16212 s%@XML_LIBS@%$XML_LIBS%g
16213 s%@MODULE_XML@%$MODULE_XML%g
16214 s%@QUOTAOBJS@%$QUOTAOBJS%g
16215 s%@manlangs@%$manlangs%g
16216 s%@WINBIND_NSS_EXTRA_OBJS@%$WINBIND_NSS_EXTRA_OBJS%g
16217 s%@WINBIND_NSS_EXTRA_LIBS@%$WINBIND_NSS_EXTRA_LIBS%g
16218 s%@BUILD_POPT@%$BUILD_POPT%g
16219 s%@FLAGS1@%$FLAGS1%g
16220 s%@PYTHON@%$PYTHON%g
16221 s%@builddir@%$builddir%g
16226 cat >> $CONFIG_STATUS <<\EOF
16228 # Split the substitutions into bite-sized pieces for seds with
16229 # small command number limits, like on Digital OSF/1 and HP-UX.
16230 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
16231 ac_file
=1 # Number of current file.
16232 ac_beg
=1 # First line for current file.
16233 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
16236 while $ac_more_lines; do
16237 if test $ac_beg -gt 1; then
16238 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
16240 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
16242 if test ! -s conftest.s
$ac_file; then
16243 ac_more_lines
=false
16244 rm -f conftest.s
$ac_file
16246 if test -z "$ac_sed_cmds"; then
16247 ac_sed_cmds
="sed -f conftest.s$ac_file"
16249 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
16251 ac_file
=`expr $ac_file + 1`
16253 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
16256 if test -z "$ac_sed_cmds"; then
16261 cat >> $CONFIG_STATUS <<EOF
16263 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile script/findsmb"}
16265 cat >> $CONFIG_STATUS <<\EOF
16266 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
16267 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16269 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
16270 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
16271 *) ac_file_in
="${ac_file}.in" ;;
16274 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16276 # Remove last slash and all that follows it. Not all systems have dirname.
16277 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16278 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
16279 # The file is in a subdirectory.
16280 test ! -d "$ac_dir" && mkdir
"$ac_dir"
16281 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
16282 # A "../" for each directory in $ac_dir_suffix.
16283 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16285 ac_dir_suffix
= ac_dots
=
16288 case "$ac_given_srcdir" in
16290 if test -z "$ac_dots"; then top_srcdir
=.
16291 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16292 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
16293 *) # Relative path.
16294 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16295 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
16298 case "$ac_given_INSTALL" in
16299 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
16300 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
16303 echo creating
"$ac_file"
16305 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16307 *Makefile
*) ac_comsub
="1i\\
16308 # $configure_input" ;;
16312 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16314 s%@configure_input@%$configure_input%g
16315 s%@srcdir@%$srcdir%g
16316 s%@top_srcdir@%$top_srcdir%g
16317 s%@INSTALL@%$INSTALL%g
16318 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
16322 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16323 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16325 # ac_d sets the value in "#define NAME VALUE" lines.
16326 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16327 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
16330 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16331 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16332 ac_uB
='\([ ]\)%\1#\2define\3'
16335 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16336 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16337 ac_eB
='$%\1#\2define\3'
16341 if test "${CONFIG_HEADERS+set}" != set; then
16343 cat >> $CONFIG_STATUS <<EOF
16344 CONFIG_HEADERS="include/config.h"
16346 cat >> $CONFIG_STATUS <<\EOF
16348 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
16349 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16351 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
16352 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
16353 *) ac_file_in
="${ac_file}.in" ;;
16356 echo creating
$ac_file
16358 rm -f conftest.frag conftest.
in conftest.out
16359 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16360 cat $ac_file_inputs > conftest.
in
16364 # Transform confdefs.h into a sed script conftest.vals that substitutes
16365 # the proper values into config.h.in to produce config.h. And first:
16366 # Protect against being on the right side of a sed subst in config.status.
16367 # Protect against being in an unquoted here document in config.status.
16368 rm -f conftest.vals
16369 cat > conftest.hdr
<<\EOF
16372 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16376 sed -n -f conftest.hdr confdefs.h > conftest.vals
16379 # This sed command replaces #undef with comments. This is necessary, for
16380 # example, in the case of _POSIX_SOURCE, which is predefined and required
16381 # on some systems where configure will not decide to define it.
16382 cat >> conftest.vals <<\EOF
16383 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16386 # Break up conftest.vals because some shells have a limit on
16387 # the size of here documents, and old seds have small limits too.
16389 rm -f conftest.tail
16392 ac_lines=`grep -c . conftest.vals
`
16393 # grep -c gives empty output for an empty file on some AIX systems.
16394 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16395 # Write a limited-size here document to conftest.frag.
16396 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16397 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16399 sed -f conftest.frag conftest.in > conftest.out
16401 mv conftest.out conftest.in
16402 ' >> $CONFIG_STATUS
16403 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16404 rm -f conftest.vals
16405 mv conftest.tail conftest.vals
16407 rm -f conftest.vals
16409 cat >> $CONFIG_STATUS <<\EOF
16410 rm -f conftest.frag conftest.h
16411 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
16412 cat conftest.in >> conftest.h
16414 if cmp -s $ac_file conftest.h 2>/dev/null; then
16415 echo "$ac_file is unchanged"
16418 # Remove last slash and all that follows it. Not all systems have dirname.
16419 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
16420 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16421 # The file is in a subdirectory.
16422 test ! -d "$ac_dir" && mkdir "$ac_dir"
16425 mv conftest.h $ac_file
16430 cat >> $CONFIG_STATUS <<EOF
16433 cat >> $CONFIG_STATUS <<\EOF
16437 chmod +x $CONFIG_STATUS
16438 rm -fr confdefs* $ac_clean_files
16439 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
16442 #################################################
16443 # Print very concise instructions on building/use
16444 if test "x$enable_dmalloc" = xyes
16446 echo "$ac_t""Note: The dmalloc debug library will be included. To turn it on use" 1>&6
16447 echo "$ac_t"" \$ eval \`dmalloc samba\
`." 1>&6