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
3948 for ac_func
in dlopen
3950 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3951 echo "configure:3952: checking for $ac_func" >&5
3952 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3953 echo $ac_n "(cached) $ac_c" 1>&6
3955 cat > conftest.
$ac_ext <<EOF
3956 #line 3957 "configure"
3957 #include "confdefs.h"
3958 /* System header to define __stub macros and hopefully few prototypes,
3959 which can conflict with char $ac_func(); below. */
3961 /* Override any gcc2 internal prototype to avoid an error. */
3962 /* We use char because int might match the return type of a gcc2
3963 builtin and then its argument prototype would still apply. */
3968 /* The GNU C library defines this for functions which it implements
3969 to always fail with ENOSYS. Some functions are actually named
3970 something starting with __ and the normal name is an alias. */
3971 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3979 if { (eval echo configure
:3980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3981 eval "ac_cv_func_$ac_func=yes"
3983 echo "configure: failed program was:" >&5
3984 cat conftest.
$ac_ext >&5
3986 eval "ac_cv_func_$ac_func=no"
3991 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3992 echo "$ac_t""yes" 1>&6
3993 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3994 cat >> confdefs.h
<<EOF
3995 #define $ac_tr_func 1
3999 echo "$ac_t""no" 1>&6
4003 if test x
"$ac_cv_func_dlopen" = x
"no"; then
4004 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4005 echo "configure:4006: checking for dlopen in -ldl" >&5
4006 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4007 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4008 echo $ac_n "(cached) $ac_c" 1>&6
4010 ac_save_LIBS
="$LIBS"
4012 cat > conftest.
$ac_ext <<EOF
4013 #line 4014 "configure"
4014 #include "confdefs.h"
4015 /* Override any gcc2 internal prototype to avoid an error. */
4016 /* We use char because int might match the return type of a gcc2
4017 builtin and then its argument prototype would still apply. */
4024 if { (eval echo configure
:4025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4026 eval "ac_cv_lib_$ac_lib_var=yes"
4028 echo "configure: failed program was:" >&5
4029 cat conftest.
$ac_ext >&5
4031 eval "ac_cv_lib_$ac_lib_var=no"
4034 LIBS
="$ac_save_LIBS"
4037 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4038 echo "$ac_t""yes" 1>&6
4040 cat >> confdefs.h
<<\EOF
4041 #define HAVE_DLOPEN 1
4045 echo "$ac_t""no" 1>&6
4049 # dlopen/dlclose/dlsym/dlerror will be checked again later and defines will be set then
4051 ############################################
4052 # check if the compiler can do immediate structures
4053 echo $ac_n "checking for immediate structures""... $ac_c" 1>&6
4054 echo "configure:4055: checking for immediate structures" >&5
4055 if eval "test \"`echo '$''{'samba_cv_immediate_structures'+set}'`\" = set"; then
4056 echo $ac_n "(cached) $ac_c" 1>&6
4059 cat > conftest.
$ac_ext <<EOF
4060 #line 4061 "configure"
4061 #include "confdefs.h"
4066 typedef struct {unsigned x;} FOOBAR;
4067 #define X_FOOBAR(x) ((FOOBAR) { x })
4068 #define FOO_ONE X_FOOBAR(1)
4078 if { (eval echo configure
:4079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4080 samba_cv_immediate_structures
=yes
4082 echo "configure: failed program was:" >&5
4083 cat conftest.
$ac_ext >&5
4085 samba_cv_immediate_structures
=no
4090 echo "$ac_t""$samba_cv_immediate_structures" 1>&6
4091 if test x
"$samba_cv_immediate_structures" = x
"yes"; then
4092 cat >> confdefs.h
<<\EOF
4093 #define HAVE_IMMEDIATE_STRUCTURES 1
4098 ############################################
4099 # check for unix domain sockets
4100 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
4101 echo "configure:4102: checking for unix domain sockets" >&5
4102 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
4103 echo $ac_n "(cached) $ac_c" 1>&6
4106 cat > conftest.
$ac_ext <<EOF
4107 #line 4108 "configure"
4108 #include "confdefs.h"
4110 #include <sys/types.h>
4113 #include <sys/socket.h>
4117 struct sockaddr_un sunaddr;
4118 sunaddr.sun_family = AF_UNIX;
4122 if { (eval echo configure
:4123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4124 samba_cv_unixsocket
=yes
4126 echo "configure: failed program was:" >&5
4127 cat conftest.
$ac_ext >&5
4129 samba_cv_unixsocket
=no
4134 echo "$ac_t""$samba_cv_unixsocket" 1>&6
4135 if test x
"$samba_cv_unixsocket" = x
"yes"; then
4136 cat >> confdefs.h
<<\EOF
4137 #define HAVE_UNIXSOCKET 1
4143 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
4144 echo "configure:4145: checking for socklen_t type" >&5
4145 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
4146 echo $ac_n "(cached) $ac_c" 1>&6
4149 cat > conftest.
$ac_ext <<EOF
4150 #line 4151 "configure"
4151 #include "confdefs.h"
4153 #include <sys/types.h>
4158 #include <sys/socket.h>
4163 if { (eval echo configure
:4164: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4165 samba_cv_socklen_t
=yes
4167 echo "configure: failed program was:" >&5
4168 cat conftest.
$ac_ext >&5
4170 samba_cv_socklen_t
=no
4175 echo "$ac_t""$samba_cv_socklen_t" 1>&6
4176 if test x
"$samba_cv_socklen_t" = x
"yes"; then
4177 cat >> confdefs.h
<<\EOF
4178 #define HAVE_SOCKLEN_T_TYPE 1
4183 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
4184 echo "configure:4185: checking for sig_atomic_t type" >&5
4185 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
4186 echo $ac_n "(cached) $ac_c" 1>&6
4189 cat > conftest.
$ac_ext <<EOF
4190 #line 4191 "configure"
4191 #include "confdefs.h"
4193 #include <sys/types.h>
4203 if { (eval echo configure
:4204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4205 samba_cv_sig_atomic_t
=yes
4207 echo "configure: failed program was:" >&5
4208 cat conftest.
$ac_ext >&5
4210 samba_cv_sig_atomic_t
=no
4215 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
4216 if test x
"$samba_cv_sig_atomic_t" = x
"yes"; then
4217 cat >> confdefs.h
<<\EOF
4218 #define HAVE_SIG_ATOMIC_T_TYPE 1
4223 # stupid headers have the functions but no declaration. grrrr.
4225 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
4226 echo "configure:4227: checking for errno declaration" >&5
4227 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
4228 echo $ac_n "(cached) $ac_c" 1>&6
4231 cat > conftest.
$ac_ext <<EOF
4232 #line 4233 "configure"
4233 #include "confdefs.h"
4239 if { (eval echo configure
:4240: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4241 ac_cv_have_errno_decl
=yes
4243 echo "configure: failed program was:" >&5
4244 cat conftest.
$ac_ext >&5
4246 ac_cv_have_errno_decl
=no
4251 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
4252 if test x
"$ac_cv_have_errno_decl" = x
"yes"; then
4253 cat >> confdefs.h
<<\EOF
4254 #define HAVE_ERRNO_DECL 1
4260 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
4261 echo "configure:4262: checking for setresuid declaration" >&5
4262 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
4263 echo $ac_n "(cached) $ac_c" 1>&6
4266 cat > conftest.
$ac_ext <<EOF
4267 #line 4268 "configure"
4268 #include "confdefs.h"
4271 int i = (int)setresuid
4274 if { (eval echo configure
:4275: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4276 ac_cv_have_setresuid_decl
=yes
4278 echo "configure: failed program was:" >&5
4279 cat conftest.
$ac_ext >&5
4281 ac_cv_have_setresuid_decl
=no
4286 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
4287 if test x
"$ac_cv_have_setresuid_decl" = x
"yes"; then
4288 cat >> confdefs.h
<<\EOF
4289 #define HAVE_SETRESUID_DECL 1
4295 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
4296 echo "configure:4297: checking for setresgid declaration" >&5
4297 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
4298 echo $ac_n "(cached) $ac_c" 1>&6
4301 cat > conftest.
$ac_ext <<EOF
4302 #line 4303 "configure"
4303 #include "confdefs.h"
4306 int i = (int)setresgid
4309 if { (eval echo configure
:4310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4311 ac_cv_have_setresgid_decl
=yes
4313 echo "configure: failed program was:" >&5
4314 cat conftest.
$ac_ext >&5
4316 ac_cv_have_setresgid_decl
=no
4321 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
4322 if test x
"$ac_cv_have_setresgid_decl" = x
"yes"; then
4323 cat >> confdefs.h
<<\EOF
4324 #define HAVE_SETRESGID_DECL 1
4330 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
4331 echo "configure:4332: checking for asprintf declaration" >&5
4332 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
4333 echo $ac_n "(cached) $ac_c" 1>&6
4336 cat > conftest.
$ac_ext <<EOF
4337 #line 4338 "configure"
4338 #include "confdefs.h"
4341 int i = (int)asprintf
4344 if { (eval echo configure
:4345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4346 ac_cv_have_asprintf_decl
=yes
4348 echo "configure: failed program was:" >&5
4349 cat conftest.
$ac_ext >&5
4351 ac_cv_have_asprintf_decl
=no
4356 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
4357 if test x
"$ac_cv_have_asprintf_decl" = x
"yes"; then
4358 cat >> confdefs.h
<<\EOF
4359 #define HAVE_ASPRINTF_DECL 1
4365 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
4366 echo "configure:4367: checking for vasprintf declaration" >&5
4367 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
4368 echo $ac_n "(cached) $ac_c" 1>&6
4371 cat > conftest.
$ac_ext <<EOF
4372 #line 4373 "configure"
4373 #include "confdefs.h"
4376 int i = (int)vasprintf
4379 if { (eval echo configure
:4380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4381 ac_cv_have_vasprintf_decl
=yes
4383 echo "configure: failed program was:" >&5
4384 cat conftest.
$ac_ext >&5
4386 ac_cv_have_vasprintf_decl
=no
4391 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
4392 if test x
"$ac_cv_have_vasprintf_decl" = x
"yes"; then
4393 cat >> confdefs.h
<<\EOF
4394 #define HAVE_VASPRINTF_DECL 1
4400 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
4401 echo "configure:4402: checking for vsnprintf declaration" >&5
4402 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
4403 echo $ac_n "(cached) $ac_c" 1>&6
4406 cat > conftest.
$ac_ext <<EOF
4407 #line 4408 "configure"
4408 #include "confdefs.h"
4411 int i = (int)vsnprintf
4414 if { (eval echo configure
:4415: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4416 ac_cv_have_vsnprintf_decl
=yes
4418 echo "configure: failed program was:" >&5
4419 cat conftest.
$ac_ext >&5
4421 ac_cv_have_vsnprintf_decl
=no
4426 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
4427 if test x
"$ac_cv_have_vsnprintf_decl" = x
"yes"; then
4428 cat >> confdefs.h
<<\EOF
4429 #define HAVE_VSNPRINTF_DECL 1
4435 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
4436 echo "configure:4437: checking for snprintf declaration" >&5
4437 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
4438 echo $ac_n "(cached) $ac_c" 1>&6
4441 cat > conftest.
$ac_ext <<EOF
4442 #line 4443 "configure"
4443 #include "confdefs.h"
4446 int i = (int)snprintf
4449 if { (eval echo configure
:4450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4451 ac_cv_have_snprintf_decl
=yes
4453 echo "configure: failed program was:" >&5
4454 cat conftest.
$ac_ext >&5
4456 ac_cv_have_snprintf_decl
=no
4461 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
4462 if test x
"$ac_cv_have_snprintf_decl" = x
"yes"; then
4463 cat >> confdefs.h
<<\EOF
4464 #define HAVE_SNPRINTF_DECL 1
4470 # and glibc has setresuid under linux but the function does
4471 # nothing until kernel 2.1.44! very dumb.
4472 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
4473 echo "configure:4474: checking for real setresuid" >&5
4474 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
4475 echo $ac_n "(cached) $ac_c" 1>&6
4478 if test "$cross_compiling" = yes; then
4479 samba_cv_have_setresuid
=cross
4481 cat > conftest.
$ac_ext <<EOF
4482 #line 4483 "configure"
4483 #include "confdefs.h"
4485 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4487 if { (eval echo configure
:4488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4489 samba_cv_have_setresuid
=yes
4491 echo "configure: failed program was:" >&5
4492 cat conftest.
$ac_ext >&5
4494 samba_cv_have_setresuid
=no
4501 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4502 if test x
"$samba_cv_have_setresuid" = x
"yes"; then
4503 cat >> confdefs.h
<<\EOF
4504 #define HAVE_SETRESUID 1
4509 # Do the same check for setresguid...
4511 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4512 echo "configure:4513: checking for real setresgid" >&5
4513 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4514 echo $ac_n "(cached) $ac_c" 1>&6
4517 if test "$cross_compiling" = yes; then
4518 samba_cv_have_setresgid
=cross
4520 cat > conftest.
$ac_ext <<EOF
4521 #line 4522 "configure"
4522 #include "confdefs.h"
4525 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4527 if { (eval echo configure
:4528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4529 samba_cv_have_setresgid
=yes
4531 echo "configure: failed program was:" >&5
4532 cat conftest.
$ac_ext >&5
4534 samba_cv_have_setresgid
=no
4541 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4542 if test x
"$samba_cv_have_setresgid" = x
"yes"; then
4543 cat >> confdefs.h
<<\EOF
4544 #define HAVE_SETRESGID 1
4549 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4550 echo "configure:4551: checking for 8-bit clean memcmp" >&5
4551 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4552 echo $ac_n "(cached) $ac_c" 1>&6
4554 if test "$cross_compiling" = yes; then
4555 ac_cv_func_memcmp_clean
=no
4557 cat > conftest.
$ac_ext <<EOF
4558 #line 4559 "configure"
4559 #include "confdefs.h"
4563 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4564 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4568 if { (eval echo configure
:4569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4570 ac_cv_func_memcmp_clean
=yes
4572 echo "configure: failed program was:" >&5
4573 cat conftest.
$ac_ext >&5
4575 ac_cv_func_memcmp_clean
=no
4582 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4583 test $ac_cv_func_memcmp_clean = no
&& LIBOBJS
="$LIBOBJS memcmp.${ac_objext}"
4586 ###############################################
4587 # test for where we get crypt() from
4588 for ac_func
in crypt
4590 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4591 echo "configure:4592: checking for $ac_func" >&5
4592 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4593 echo $ac_n "(cached) $ac_c" 1>&6
4595 cat > conftest.
$ac_ext <<EOF
4596 #line 4597 "configure"
4597 #include "confdefs.h"
4598 /* System header to define __stub macros and hopefully few prototypes,
4599 which can conflict with char $ac_func(); below. */
4601 /* Override any gcc2 internal prototype to avoid an error. */
4602 /* We use char because int might match the return type of a gcc2
4603 builtin and then its argument prototype would still apply. */
4608 /* The GNU C library defines this for functions which it implements
4609 to always fail with ENOSYS. Some functions are actually named
4610 something starting with __ and the normal name is an alias. */
4611 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4619 if { (eval echo configure
:4620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4621 eval "ac_cv_func_$ac_func=yes"
4623 echo "configure: failed program was:" >&5
4624 cat conftest.
$ac_ext >&5
4626 eval "ac_cv_func_$ac_func=no"
4631 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4632 echo "$ac_t""yes" 1>&6
4633 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4634 cat >> confdefs.h
<<EOF
4635 #define $ac_tr_func 1
4639 echo "$ac_t""no" 1>&6
4643 if test x
"$ac_cv_func_crypt" = x
"no"; then
4644 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4645 echo "configure:4646: checking for crypt in -lcrypt" >&5
4646 ac_lib_var
=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4647 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4648 echo $ac_n "(cached) $ac_c" 1>&6
4650 ac_save_LIBS
="$LIBS"
4651 LIBS
="-lcrypt $LIBS"
4652 cat > conftest.
$ac_ext <<EOF
4653 #line 4654 "configure"
4654 #include "confdefs.h"
4655 /* Override any gcc2 internal prototype to avoid an error. */
4656 /* We use char because int might match the return type of a gcc2
4657 builtin and then its argument prototype would still apply. */
4664 if { (eval echo configure
:4665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4666 eval "ac_cv_lib_$ac_lib_var=yes"
4668 echo "configure: failed program was:" >&5
4669 cat conftest.
$ac_ext >&5
4671 eval "ac_cv_lib_$ac_lib_var=no"
4674 LIBS
="$ac_save_LIBS"
4677 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4678 echo "$ac_t""yes" 1>&6
4679 AUTHLIBS
="$AUTHLIBS -lcrypt";
4680 cat >> confdefs.h
<<\EOF
4681 #define HAVE_CRYPT 1
4685 echo "$ac_t""no" 1>&6
4691 ###############################################
4692 # Readline included by default unless explicitly asked not to
4693 test "${with_readline+set}" != "set" && with_readline
=yes
4695 # test for where we get readline() from
4696 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4697 echo "configure:4698: checking whether to use readline" >&5
4698 # Check whether --with-readline or --without-readline was given.
4699 if test "${with_readline+set}" = set; then
4700 withval
="$with_readline"
4701 case "$with_readline" in
4703 echo "$ac_t""yes" 1>&6
4705 for ac_hdr
in readline.h
history.h readline
/readline.h
4707 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4708 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4709 echo "configure:4710: checking for $ac_hdr" >&5
4710 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4711 echo $ac_n "(cached) $ac_c" 1>&6
4713 cat > conftest.
$ac_ext <<EOF
4714 #line 4715 "configure"
4715 #include "confdefs.h"
4718 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4719 { (eval echo configure
:4720: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4720 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4721 if test -z "$ac_err"; then
4723 eval "ac_cv_header_$ac_safe=yes"
4726 echo "configure: failed program was:" >&5
4727 cat conftest.
$ac_ext >&5
4729 eval "ac_cv_header_$ac_safe=no"
4733 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4734 echo "$ac_t""yes" 1>&6
4735 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4736 cat >> confdefs.h
<<EOF
4737 #define $ac_tr_hdr 1
4741 echo "$ac_t""no" 1>&6
4745 for ac_hdr
in readline
/history.h
4747 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4748 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4749 echo "configure:4750: checking for $ac_hdr" >&5
4750 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4751 echo $ac_n "(cached) $ac_c" 1>&6
4753 cat > conftest.
$ac_ext <<EOF
4754 #line 4755 "configure"
4755 #include "confdefs.h"
4758 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4759 { (eval echo configure
:4760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4760 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4761 if test -z "$ac_err"; then
4763 eval "ac_cv_header_$ac_safe=yes"
4766 echo "configure: failed program was:" >&5
4767 cat conftest.
$ac_ext >&5
4769 eval "ac_cv_header_$ac_safe=no"
4773 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4774 echo "$ac_t""yes" 1>&6
4775 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4776 cat >> confdefs.h
<<EOF
4777 #define $ac_tr_hdr 1
4781 echo "$ac_t""no" 1>&6
4786 for ac_hdr
in readline.h readline
/readline.h
4788 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4789 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4790 echo "configure:4791: checking for $ac_hdr" >&5
4791 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4792 echo $ac_n "(cached) $ac_c" 1>&6
4794 cat > conftest.
$ac_ext <<EOF
4795 #line 4796 "configure"
4796 #include "confdefs.h"
4799 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4800 { (eval echo configure
:4801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4801 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4802 if test -z "$ac_err"; then
4804 eval "ac_cv_header_$ac_safe=yes"
4807 echo "configure: failed program was:" >&5
4808 cat conftest.
$ac_ext >&5
4810 eval "ac_cv_header_$ac_safe=no"
4814 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4815 echo "$ac_t""yes" 1>&6
4816 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4817 cat >> confdefs.h
<<EOF
4818 #define $ac_tr_hdr 1
4821 for termlib
in ncurses curses termcap terminfo termlib
; do
4822 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4823 echo "configure:4824: checking for tgetent in -l${termlib}" >&5
4824 ac_lib_var
=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4825 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4826 echo $ac_n "(cached) $ac_c" 1>&6
4828 ac_save_LIBS
="$LIBS"
4829 LIBS
="-l${termlib} $LIBS"
4830 cat > conftest.
$ac_ext <<EOF
4831 #line 4832 "configure"
4832 #include "confdefs.h"
4833 /* Override any gcc2 internal prototype to avoid an error. */
4834 /* We use char because int might match the return type of a gcc2
4835 builtin and then its argument prototype would still apply. */
4842 if { (eval echo configure
:4843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4844 eval "ac_cv_lib_$ac_lib_var=yes"
4846 echo "configure: failed program was:" >&5
4847 cat conftest.
$ac_ext >&5
4849 eval "ac_cv_lib_$ac_lib_var=no"
4852 LIBS
="$ac_save_LIBS"
4855 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4856 echo "$ac_t""yes" 1>&6
4857 TERMLIBS
="-l${termlib}"; break
4859 echo "$ac_t""no" 1>&6
4863 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4864 echo "configure:4865: checking for rl_callback_handler_install in -lreadline" >&5
4865 ac_lib_var
=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4866 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4867 echo $ac_n "(cached) $ac_c" 1>&6
4869 ac_save_LIBS
="$LIBS"
4870 LIBS
="-lreadline $TERMLIBS $LIBS"
4871 cat > conftest.
$ac_ext <<EOF
4872 #line 4873 "configure"
4873 #include "confdefs.h"
4874 /* Override any gcc2 internal prototype to avoid an error. */
4875 /* We use char because int might match the return type of a gcc2
4876 builtin and then its argument prototype would still apply. */
4877 char rl_callback_handler_install();
4880 rl_callback_handler_install()
4883 if { (eval echo configure
:4884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4885 eval "ac_cv_lib_$ac_lib_var=yes"
4887 echo "configure: failed program was:" >&5
4888 cat conftest.
$ac_ext >&5
4890 eval "ac_cv_lib_$ac_lib_var=no"
4893 LIBS
="$ac_save_LIBS"
4896 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4897 echo "$ac_t""yes" 1>&6
4898 TERMLIBS
="-lreadline $TERMLIBS"
4899 cat >> confdefs.h
<<\EOF
4900 #define HAVE_LIBREADLINE 1
4905 echo "$ac_t""no" 1>&6
4910 echo "$ac_t""no" 1>&6
4916 echo "$ac_t""no" 1>&6
4919 echo "$ac_t""yes" 1>&6
4921 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4922 # alternate readline path
4924 _cppflags
=${CPPFLAGS}
4926 # Add additional search path
4927 LDFLAGS
="-L$with_readline/lib $LDFLAGS"
4928 CPPFLAGS
="-I$with_readline/include $CPPFLAGS"
4930 for ac_hdr
in readline.h
history.h readline
/readline.h
4932 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4933 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4934 echo "configure:4935: checking for $ac_hdr" >&5
4935 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4936 echo $ac_n "(cached) $ac_c" 1>&6
4938 cat > conftest.
$ac_ext <<EOF
4939 #line 4940 "configure"
4940 #include "confdefs.h"
4943 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4944 { (eval echo configure
:4945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4945 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4946 if test -z "$ac_err"; then
4948 eval "ac_cv_header_$ac_safe=yes"
4951 echo "configure: failed program was:" >&5
4952 cat conftest.
$ac_ext >&5
4954 eval "ac_cv_header_$ac_safe=no"
4958 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4959 echo "$ac_t""yes" 1>&6
4960 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4961 cat >> confdefs.h
<<EOF
4962 #define $ac_tr_hdr 1
4966 echo "$ac_t""no" 1>&6
4970 for ac_hdr
in readline
/history.h
4972 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4973 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4974 echo "configure:4975: checking for $ac_hdr" >&5
4975 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4976 echo $ac_n "(cached) $ac_c" 1>&6
4978 cat > conftest.
$ac_ext <<EOF
4979 #line 4980 "configure"
4980 #include "confdefs.h"
4983 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4984 { (eval echo configure
:4985: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4985 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4986 if test -z "$ac_err"; then
4988 eval "ac_cv_header_$ac_safe=yes"
4991 echo "configure: failed program was:" >&5
4992 cat conftest.
$ac_ext >&5
4994 eval "ac_cv_header_$ac_safe=no"
4998 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4999 echo "$ac_t""yes" 1>&6
5000 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5001 cat >> confdefs.h
<<EOF
5002 #define $ac_tr_hdr 1
5006 echo "$ac_t""no" 1>&6
5011 for ac_hdr
in readline.h readline
/readline.h
5013 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5014 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5015 echo "configure:5016: checking for $ac_hdr" >&5
5016 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5017 echo $ac_n "(cached) $ac_c" 1>&6
5019 cat > conftest.
$ac_ext <<EOF
5020 #line 5021 "configure"
5021 #include "confdefs.h"
5024 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5025 { (eval echo configure
:5026: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5026 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5027 if test -z "$ac_err"; then
5029 eval "ac_cv_header_$ac_safe=yes"
5032 echo "configure: failed program was:" >&5
5033 cat conftest.
$ac_ext >&5
5035 eval "ac_cv_header_$ac_safe=no"
5039 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5040 echo "$ac_t""yes" 1>&6
5041 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5042 cat >> confdefs.h
<<EOF
5043 #define $ac_tr_hdr 1
5046 for termlib
in ncurses curses termcap terminfo termlib
; do
5047 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
5048 echo "configure:5049: checking for tgetent in -l${termlib}" >&5
5049 ac_lib_var
=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
5050 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5051 echo $ac_n "(cached) $ac_c" 1>&6
5053 ac_save_LIBS
="$LIBS"
5054 LIBS
="-l${termlib} $LIBS"
5055 cat > conftest.
$ac_ext <<EOF
5056 #line 5057 "configure"
5057 #include "confdefs.h"
5058 /* Override any gcc2 internal prototype to avoid an error. */
5059 /* We use char because int might match the return type of a gcc2
5060 builtin and then its argument prototype would still apply. */
5067 if { (eval echo configure
:5068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5069 eval "ac_cv_lib_$ac_lib_var=yes"
5071 echo "configure: failed program was:" >&5
5072 cat conftest.
$ac_ext >&5
5074 eval "ac_cv_lib_$ac_lib_var=no"
5077 LIBS
="$ac_save_LIBS"
5080 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5081 echo "$ac_t""yes" 1>&6
5082 TERMLIBS
="-l${termlib}"; break
5084 echo "$ac_t""no" 1>&6
5088 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
5089 echo "configure:5090: checking for rl_callback_handler_install in -lreadline" >&5
5090 ac_lib_var
=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
5091 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5092 echo $ac_n "(cached) $ac_c" 1>&6
5094 ac_save_LIBS
="$LIBS"
5095 LIBS
="-lreadline $TERMLIBS $LIBS"
5096 cat > conftest.
$ac_ext <<EOF
5097 #line 5098 "configure"
5098 #include "confdefs.h"
5099 /* Override any gcc2 internal prototype to avoid an error. */
5100 /* We use char because int might match the return type of a gcc2
5101 builtin and then its argument prototype would still apply. */
5102 char rl_callback_handler_install();
5105 rl_callback_handler_install()
5108 if { (eval echo configure
:5109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5110 eval "ac_cv_lib_$ac_lib_var=yes"
5112 echo "configure: failed program was:" >&5
5113 cat conftest.
$ac_ext >&5
5115 eval "ac_cv_lib_$ac_lib_var=no"
5118 LIBS
="$ac_save_LIBS"
5121 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5122 echo "$ac_t""yes" 1>&6
5123 TERMLDFLAGS
="-L$with_readline/lib"
5124 TERMCPPFLAGS
="-I$with_readline/include"
5125 CPPFLAGS
="-I$with_readline/include $CPPFLAGS"
5126 TERMLIBS
="-lreadline $TERMLIBS"
5127 cat >> confdefs.h
<<\EOF
5128 #define HAVE_LIBREADLINE 1
5133 echo "$ac_t""no" 1>&6
5134 TERMLIBS
= CPPFLAGS
=$_cppflags
5138 echo "$ac_t""no" 1>&6
5147 echo "$ac_t""no" 1>&6
5154 # The readline API changed slightly from readline3 to readline4, so
5155 # code will generate warnings on one of them unless we have a few
5157 echo $ac_n "checking for rl_completion_matches in -lreadline""... $ac_c" 1>&6
5158 echo "configure:5159: checking for rl_completion_matches in -lreadline" >&5
5159 ac_lib_var
=`echo readline'_'rl_completion_matches | sed 'y%./+-%__p_%'`
5160 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5161 echo $ac_n "(cached) $ac_c" 1>&6
5163 ac_save_LIBS
="$LIBS"
5164 LIBS
="-lreadline $TERMLIBS $LIBS"
5165 cat > conftest.
$ac_ext <<EOF
5166 #line 5167 "configure"
5167 #include "confdefs.h"
5168 /* Override any gcc2 internal prototype to avoid an error. */
5169 /* We use char because int might match the return type of a gcc2
5170 builtin and then its argument prototype would still apply. */
5171 char rl_completion_matches();
5174 rl_completion_matches()
5177 if { (eval echo configure
:5178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5179 eval "ac_cv_lib_$ac_lib_var=yes"
5181 echo "configure: failed program was:" >&5
5182 cat conftest.
$ac_ext >&5
5184 eval "ac_cv_lib_$ac_lib_var=no"
5187 LIBS
="$ac_save_LIBS"
5190 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5191 echo "$ac_t""yes" 1>&6
5192 cat >> confdefs.h
<<\EOF
5193 #define HAVE_NEW_LIBREADLINE 1
5197 echo "$ac_t""no" 1>&6
5201 # The following test taken from the cvs sources
5202 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
5203 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
5204 # libsocket.so which has a bad implementation of gethostbyname (it
5205 # only looks in /etc/hosts), so we only look for -lsocket if we need
5207 for ac_func
in connect
5209 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5210 echo "configure:5211: checking for $ac_func" >&5
5211 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5212 echo $ac_n "(cached) $ac_c" 1>&6
5214 cat > conftest.
$ac_ext <<EOF
5215 #line 5216 "configure"
5216 #include "confdefs.h"
5217 /* System header to define __stub macros and hopefully few prototypes,
5218 which can conflict with char $ac_func(); below. */
5220 /* Override any gcc2 internal prototype to avoid an error. */
5221 /* We use char because int might match the return type of a gcc2
5222 builtin and then its argument prototype would still apply. */
5227 /* The GNU C library defines this for functions which it implements
5228 to always fail with ENOSYS. Some functions are actually named
5229 something starting with __ and the normal name is an alias. */
5230 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5238 if { (eval echo configure
:5239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5240 eval "ac_cv_func_$ac_func=yes"
5242 echo "configure: failed program was:" >&5
5243 cat conftest.
$ac_ext >&5
5245 eval "ac_cv_func_$ac_func=no"
5250 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5251 echo "$ac_t""yes" 1>&6
5252 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5253 cat >> confdefs.h
<<EOF
5254 #define $ac_tr_func 1
5258 echo "$ac_t""no" 1>&6
5262 if test x
"$ac_cv_func_connect" = x
"no"; then
5265 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
5266 echo "configure:5267: checking for printf in -lnsl_s" >&5
5267 ac_lib_var
=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
5268 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5269 echo $ac_n "(cached) $ac_c" 1>&6
5271 ac_save_LIBS
="$LIBS"
5272 LIBS
="-lnsl_s $LIBS"
5273 cat > conftest.
$ac_ext <<EOF
5274 #line 5275 "configure"
5275 #include "confdefs.h"
5276 /* Override any gcc2 internal prototype to avoid an error. */
5277 /* We use char because int might match the return type of a gcc2
5278 builtin and then its argument prototype would still apply. */
5285 if { (eval echo configure
:5286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5287 eval "ac_cv_lib_$ac_lib_var=yes"
5289 echo "configure: failed program was:" >&5
5290 cat conftest.
$ac_ext >&5
5292 eval "ac_cv_lib_$ac_lib_var=no"
5295 LIBS
="$ac_save_LIBS"
5298 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5299 echo "$ac_t""yes" 1>&6
5300 ac_tr_lib
=HAVE_LIB
`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5301 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5302 cat >> confdefs.h
<<EOF
5303 #define $ac_tr_lib 1
5306 LIBS
="-lnsl_s $LIBS"
5309 echo "$ac_t""no" 1>&6
5315 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
5316 echo "configure:5317: checking for printf in -lnsl" >&5
5317 ac_lib_var
=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
5318 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5319 echo $ac_n "(cached) $ac_c" 1>&6
5321 ac_save_LIBS
="$LIBS"
5323 cat > conftest.
$ac_ext <<EOF
5324 #line 5325 "configure"
5325 #include "confdefs.h"
5326 /* Override any gcc2 internal prototype to avoid an error. */
5327 /* We use char because int might match the return type of a gcc2
5328 builtin and then its argument prototype would still apply. */
5335 if { (eval echo configure
:5336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5337 eval "ac_cv_lib_$ac_lib_var=yes"
5339 echo "configure: failed program was:" >&5
5340 cat conftest.
$ac_ext >&5
5342 eval "ac_cv_lib_$ac_lib_var=no"
5345 LIBS
="$ac_save_LIBS"
5348 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5349 echo "$ac_t""yes" 1>&6
5350 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5351 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5352 cat >> confdefs.h
<<EOF
5353 #define $ac_tr_lib 1
5359 echo "$ac_t""no" 1>&6
5365 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
5366 echo "configure:5367: checking for connect in -lsocket" >&5
5367 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5368 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5369 echo $ac_n "(cached) $ac_c" 1>&6
5371 ac_save_LIBS
="$LIBS"
5372 LIBS
="-lsocket $LIBS"
5373 cat > conftest.
$ac_ext <<EOF
5374 #line 5375 "configure"
5375 #include "confdefs.h"
5376 /* Override any gcc2 internal prototype to avoid an error. */
5377 /* We use char because int might match the return type of a gcc2
5378 builtin and then its argument prototype would still apply. */
5385 if { (eval echo configure
:5386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5387 eval "ac_cv_lib_$ac_lib_var=yes"
5389 echo "configure: failed program was:" >&5
5390 cat conftest.
$ac_ext >&5
5392 eval "ac_cv_lib_$ac_lib_var=no"
5395 LIBS
="$ac_save_LIBS"
5398 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5399 echo "$ac_t""yes" 1>&6
5400 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5401 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5402 cat >> confdefs.h
<<EOF
5403 #define $ac_tr_lib 1
5406 LIBS
="-lsocket $LIBS"
5409 echo "$ac_t""no" 1>&6
5415 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
5416 echo "configure:5417: checking for connect in -linet" >&5
5417 ac_lib_var
=`echo inet'_'connect | sed 'y%./+-%__p_%'`
5418 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5419 echo $ac_n "(cached) $ac_c" 1>&6
5421 ac_save_LIBS
="$LIBS"
5423 cat > conftest.
$ac_ext <<EOF
5424 #line 5425 "configure"
5425 #include "confdefs.h"
5426 /* Override any gcc2 internal prototype to avoid an error. */
5427 /* We use char because int might match the return type of a gcc2
5428 builtin and then its argument prototype would still apply. */
5435 if { (eval echo configure
:5436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5437 eval "ac_cv_lib_$ac_lib_var=yes"
5439 echo "configure: failed program was:" >&5
5440 cat conftest.
$ac_ext >&5
5442 eval "ac_cv_lib_$ac_lib_var=no"
5445 LIBS
="$ac_save_LIBS"
5448 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5449 echo "$ac_t""yes" 1>&6
5450 ac_tr_lib
=HAVE_LIB
`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5451 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5452 cat >> confdefs.h
<<EOF
5453 #define $ac_tr_lib 1
5459 echo "$ac_t""no" 1>&6
5463 if test x
"$ac_cv_lib_socket_connect" = x
"yes" ||
5464 test x
"$ac_cv_lib_inet_connect" = x
"yes"; then
5465 # ac_cv_func_connect=yes
5466 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
5467 cat >> confdefs.h
<<\EOF
5468 #define HAVE_CONNECT 1
5474 ###############################################
5475 # test for where we get get_yp_default_domain() from
5476 for ac_func
in yp_get_default_domain
5478 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5479 echo "configure:5480: checking for $ac_func" >&5
5480 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5481 echo $ac_n "(cached) $ac_c" 1>&6
5483 cat > conftest.
$ac_ext <<EOF
5484 #line 5485 "configure"
5485 #include "confdefs.h"
5486 /* System header to define __stub macros and hopefully few prototypes,
5487 which can conflict with char $ac_func(); below. */
5489 /* Override any gcc2 internal prototype to avoid an error. */
5490 /* We use char because int might match the return type of a gcc2
5491 builtin and then its argument prototype would still apply. */
5496 /* The GNU C library defines this for functions which it implements
5497 to always fail with ENOSYS. Some functions are actually named
5498 something starting with __ and the normal name is an alias. */
5499 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5507 if { (eval echo configure
:5508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5509 eval "ac_cv_func_$ac_func=yes"
5511 echo "configure: failed program was:" >&5
5512 cat conftest.
$ac_ext >&5
5514 eval "ac_cv_func_$ac_func=no"
5519 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5520 echo "$ac_t""yes" 1>&6
5521 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5522 cat >> confdefs.h
<<EOF
5523 #define $ac_tr_func 1
5527 echo "$ac_t""no" 1>&6
5531 if test x
"$ac_cv_func_yp_get_default_domain" = x
"no"; then
5532 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
5533 echo "configure:5534: checking for yp_get_default_domain in -lnsl" >&5
5534 ac_lib_var
=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
5535 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5536 echo $ac_n "(cached) $ac_c" 1>&6
5538 ac_save_LIBS
="$LIBS"
5540 cat > conftest.
$ac_ext <<EOF
5541 #line 5542 "configure"
5542 #include "confdefs.h"
5543 /* Override any gcc2 internal prototype to avoid an error. */
5544 /* We use char because int might match the return type of a gcc2
5545 builtin and then its argument prototype would still apply. */
5546 char yp_get_default_domain();
5549 yp_get_default_domain()
5552 if { (eval echo configure
:5553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5554 eval "ac_cv_lib_$ac_lib_var=yes"
5556 echo "configure: failed program was:" >&5
5557 cat conftest.
$ac_ext >&5
5559 eval "ac_cv_lib_$ac_lib_var=no"
5562 LIBS
="$ac_save_LIBS"
5565 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5566 echo "$ac_t""yes" 1>&6
5568 cat >> confdefs.h
<<\EOF
5569 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
5573 echo "$ac_t""no" 1>&6
5578 # Check if we have execl, if not we need to compile smbrun.
5579 for ac_func
in execl
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 if test x
"$ac_cv_func_execl" = x
"no"; then
5635 EXTRA_BIN_PROGS
="$EXTRA_BIN_PROGS bin/smbrun\$(EXEEXT)"
5638 for ac_func
in dlopen dlclose dlsym dlerror waitpid getcwd strdup strndup strnlen strtoul strerror chown fchown
chmod fchmod chroot link mknod mknod64
5640 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5641 echo "configure:5642: checking for $ac_func" >&5
5642 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5643 echo $ac_n "(cached) $ac_c" 1>&6
5645 cat > conftest.
$ac_ext <<EOF
5646 #line 5647 "configure"
5647 #include "confdefs.h"
5648 /* System header to define __stub macros and hopefully few prototypes,
5649 which can conflict with char $ac_func(); below. */
5651 /* Override any gcc2 internal prototype to avoid an error. */
5652 /* We use char because int might match the return type of a gcc2
5653 builtin and then its argument prototype would still apply. */
5658 /* The GNU C library defines this for functions which it implements
5659 to always fail with ENOSYS. Some functions are actually named
5660 something starting with __ and the normal name is an alias. */
5661 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5669 if { (eval echo configure
:5670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5671 eval "ac_cv_func_$ac_func=yes"
5673 echo "configure: failed program was:" >&5
5674 cat conftest.
$ac_ext >&5
5676 eval "ac_cv_func_$ac_func=no"
5681 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5682 echo "$ac_t""yes" 1>&6
5683 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5684 cat >> confdefs.h
<<EOF
5685 #define $ac_tr_func 1
5689 echo "$ac_t""no" 1>&6
5693 for ac_func
in fstat strchr utime utimes getrlimit fsync bzero memset strlcpy strlcat setpgid
5695 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5696 echo "configure:5697: checking for $ac_func" >&5
5697 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5698 echo $ac_n "(cached) $ac_c" 1>&6
5700 cat > conftest.
$ac_ext <<EOF
5701 #line 5702 "configure"
5702 #include "confdefs.h"
5703 /* System header to define __stub macros and hopefully few prototypes,
5704 which can conflict with char $ac_func(); below. */
5706 /* Override any gcc2 internal prototype to avoid an error. */
5707 /* We use char because int might match the return type of a gcc2
5708 builtin and then its argument prototype would still apply. */
5713 /* The GNU C library defines this for functions which it implements
5714 to always fail with ENOSYS. Some functions are actually named
5715 something starting with __ and the normal name is an alias. */
5716 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5724 if { (eval echo configure
:5725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5726 eval "ac_cv_func_$ac_func=yes"
5728 echo "configure: failed program was:" >&5
5729 cat conftest.
$ac_ext >&5
5731 eval "ac_cv_func_$ac_func=no"
5736 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5737 echo "$ac_t""yes" 1>&6
5738 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5739 cat >> confdefs.h
<<EOF
5740 #define $ac_tr_func 1
5744 echo "$ac_t""no" 1>&6
5748 for ac_func
in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5750 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5751 echo "configure:5752: checking for $ac_func" >&5
5752 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5753 echo $ac_n "(cached) $ac_c" 1>&6
5755 cat > conftest.
$ac_ext <<EOF
5756 #line 5757 "configure"
5757 #include "confdefs.h"
5758 /* System header to define __stub macros and hopefully few prototypes,
5759 which can conflict with char $ac_func(); below. */
5761 /* Override any gcc2 internal prototype to avoid an error. */
5762 /* We use char because int might match the return type of a gcc2
5763 builtin and then its argument prototype would still apply. */
5768 /* The GNU C library defines this for functions which it implements
5769 to always fail with ENOSYS. Some functions are actually named
5770 something starting with __ and the normal name is an alias. */
5771 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5779 if { (eval echo configure
:5780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5781 eval "ac_cv_func_$ac_func=yes"
5783 echo "configure: failed program was:" >&5
5784 cat conftest.
$ac_ext >&5
5786 eval "ac_cv_func_$ac_func=no"
5791 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5792 echo "$ac_t""yes" 1>&6
5793 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5794 cat >> confdefs.h
<<EOF
5795 #define $ac_tr_func 1
5799 echo "$ac_t""no" 1>&6
5803 for ac_func
in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
5805 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5806 echo "configure:5807: checking for $ac_func" >&5
5807 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5808 echo $ac_n "(cached) $ac_c" 1>&6
5810 cat > conftest.
$ac_ext <<EOF
5811 #line 5812 "configure"
5812 #include "confdefs.h"
5813 /* System header to define __stub macros and hopefully few prototypes,
5814 which can conflict with char $ac_func(); below. */
5816 /* Override any gcc2 internal prototype to avoid an error. */
5817 /* We use char because int might match the return type of a gcc2
5818 builtin and then its argument prototype would still apply. */
5823 /* The GNU C library defines this for functions which it implements
5824 to always fail with ENOSYS. Some functions are actually named
5825 something starting with __ and the normal name is an alias. */
5826 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5834 if { (eval echo configure
:5835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5836 eval "ac_cv_func_$ac_func=yes"
5838 echo "configure: failed program was:" >&5
5839 cat conftest.
$ac_ext >&5
5841 eval "ac_cv_func_$ac_func=no"
5846 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5847 echo "$ac_t""yes" 1>&6
5848 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5849 cat >> confdefs.h
<<EOF
5850 #define $ac_tr_func 1
5854 echo "$ac_t""no" 1>&6
5858 for ac_func
in initgroups
select poll rdchk getgrnam getgrent pathconf realpath
5860 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5861 echo "configure:5862: checking for $ac_func" >&5
5862 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5863 echo $ac_n "(cached) $ac_c" 1>&6
5865 cat > conftest.
$ac_ext <<EOF
5866 #line 5867 "configure"
5867 #include "confdefs.h"
5868 /* System header to define __stub macros and hopefully few prototypes,
5869 which can conflict with char $ac_func(); below. */
5871 /* Override any gcc2 internal prototype to avoid an error. */
5872 /* We use char because int might match the return type of a gcc2
5873 builtin and then its argument prototype would still apply. */
5878 /* The GNU C library defines this for functions which it implements
5879 to always fail with ENOSYS. Some functions are actually named
5880 something starting with __ and the normal name is an alias. */
5881 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5889 if { (eval echo configure
:5890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5891 eval "ac_cv_func_$ac_func=yes"
5893 echo "configure: failed program was:" >&5
5894 cat conftest.
$ac_ext >&5
5896 eval "ac_cv_func_$ac_func=no"
5901 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5902 echo "$ac_t""yes" 1>&6
5903 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5904 cat >> confdefs.h
<<EOF
5905 #define $ac_tr_func 1
5909 echo "$ac_t""no" 1>&6
5913 for ac_func
in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5915 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5916 echo "configure:5917: checking for $ac_func" >&5
5917 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5918 echo $ac_n "(cached) $ac_c" 1>&6
5920 cat > conftest.
$ac_ext <<EOF
5921 #line 5922 "configure"
5922 #include "confdefs.h"
5923 /* System header to define __stub macros and hopefully few prototypes,
5924 which can conflict with char $ac_func(); below. */
5926 /* Override any gcc2 internal prototype to avoid an error. */
5927 /* We use char because int might match the return type of a gcc2
5928 builtin and then its argument prototype would still apply. */
5933 /* The GNU C library defines this for functions which it implements
5934 to always fail with ENOSYS. Some functions are actually named
5935 something starting with __ and the normal name is an alias. */
5936 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5944 if { (eval echo configure
:5945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5946 eval "ac_cv_func_$ac_func=yes"
5948 echo "configure: failed program was:" >&5
5949 cat conftest.
$ac_ext >&5
5951 eval "ac_cv_func_$ac_func=no"
5956 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5957 echo "$ac_t""yes" 1>&6
5958 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5959 cat >> confdefs.h
<<EOF
5960 #define $ac_tr_func 1
5964 echo "$ac_t""no" 1>&6
5968 for ac_func
in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5970 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5971 echo "configure:5972: checking for $ac_func" >&5
5972 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5973 echo $ac_n "(cached) $ac_c" 1>&6
5975 cat > conftest.
$ac_ext <<EOF
5976 #line 5977 "configure"
5977 #include "confdefs.h"
5978 /* System header to define __stub macros and hopefully few prototypes,
5979 which can conflict with char $ac_func(); below. */
5981 /* Override any gcc2 internal prototype to avoid an error. */
5982 /* We use char because int might match the return type of a gcc2
5983 builtin and then its argument prototype would still apply. */
5988 /* The GNU C library defines this for functions which it implements
5989 to always fail with ENOSYS. Some functions are actually named
5990 something starting with __ and the normal name is an alias. */
5991 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5999 if { (eval echo configure
:6000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6001 eval "ac_cv_func_$ac_func=yes"
6003 echo "configure: failed program was:" >&5
6004 cat conftest.
$ac_ext >&5
6006 eval "ac_cv_func_$ac_func=no"
6011 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6012 echo "$ac_t""yes" 1>&6
6013 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6014 cat >> confdefs.h
<<EOF
6015 #define $ac_tr_func 1
6019 echo "$ac_t""no" 1>&6
6023 for ac_func
in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
6025 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6026 echo "configure:6027: checking for $ac_func" >&5
6027 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6028 echo $ac_n "(cached) $ac_c" 1>&6
6030 cat > conftest.
$ac_ext <<EOF
6031 #line 6032 "configure"
6032 #include "confdefs.h"
6033 /* System header to define __stub macros and hopefully few prototypes,
6034 which can conflict with char $ac_func(); below. */
6036 /* Override any gcc2 internal prototype to avoid an error. */
6037 /* We use char because int might match the return type of a gcc2
6038 builtin and then its argument prototype would still apply. */
6043 /* The GNU C library defines this for functions which it implements
6044 to always fail with ENOSYS. Some functions are actually named
6045 something starting with __ and the normal name is an alias. */
6046 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6054 if { (eval echo configure
:6055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6056 eval "ac_cv_func_$ac_func=yes"
6058 echo "configure: failed program was:" >&5
6059 cat conftest.
$ac_ext >&5
6061 eval "ac_cv_func_$ac_func=no"
6066 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6067 echo "$ac_t""yes" 1>&6
6068 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6069 cat >> confdefs.h
<<EOF
6070 #define $ac_tr_func 1
6074 echo "$ac_t""no" 1>&6
6078 for ac_func
in srandom random srand rand setenv
usleep strcasecmp fcvt fcvtl symlink readlink
6080 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6081 echo "configure:6082: checking for $ac_func" >&5
6082 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6083 echo $ac_n "(cached) $ac_c" 1>&6
6085 cat > conftest.
$ac_ext <<EOF
6086 #line 6087 "configure"
6087 #include "confdefs.h"
6088 /* System header to define __stub macros and hopefully few prototypes,
6089 which can conflict with char $ac_func(); below. */
6091 /* Override any gcc2 internal prototype to avoid an error. */
6092 /* We use char because int might match the return type of a gcc2
6093 builtin and then its argument prototype would still apply. */
6098 /* The GNU C library defines this for functions which it implements
6099 to always fail with ENOSYS. Some functions are actually named
6100 something starting with __ and the normal name is an alias. */
6101 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6109 if { (eval echo configure
:6110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6111 eval "ac_cv_func_$ac_func=yes"
6113 echo "configure: failed program was:" >&5
6114 cat conftest.
$ac_ext >&5
6116 eval "ac_cv_func_$ac_func=no"
6121 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6122 echo "$ac_t""yes" 1>&6
6123 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6124 cat >> confdefs.h
<<EOF
6125 #define $ac_tr_func 1
6129 echo "$ac_t""no" 1>&6
6133 for ac_func
in syslog vsyslog getgrouplist timegm
6135 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6136 echo "configure:6137: checking for $ac_func" >&5
6137 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6138 echo $ac_n "(cached) $ac_c" 1>&6
6140 cat > conftest.
$ac_ext <<EOF
6141 #line 6142 "configure"
6142 #include "confdefs.h"
6143 /* System header to define __stub macros and hopefully few prototypes,
6144 which can conflict with char $ac_func(); below. */
6146 /* Override any gcc2 internal prototype to avoid an error. */
6147 /* We use char because int might match the return type of a gcc2
6148 builtin and then its argument prototype would still apply. */
6153 /* The GNU C library defines this for functions which it implements
6154 to always fail with ENOSYS. Some functions are actually named
6155 something starting with __ and the normal name is an alias. */
6156 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6164 if { (eval echo configure
:6165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6166 eval "ac_cv_func_$ac_func=yes"
6168 echo "configure: failed program was:" >&5
6169 cat conftest.
$ac_ext >&5
6171 eval "ac_cv_func_$ac_func=no"
6176 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6177 echo "$ac_t""yes" 1>&6
6178 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6179 cat >> confdefs.h
<<EOF
6180 #define $ac_tr_func 1
6184 echo "$ac_t""no" 1>&6
6188 # setbuffer, shmget, shm_open are needed for smbtorture
6189 for ac_func
in setbuffer shmget shm_open
6191 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6192 echo "configure:6193: checking for $ac_func" >&5
6193 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6194 echo $ac_n "(cached) $ac_c" 1>&6
6196 cat > conftest.
$ac_ext <<EOF
6197 #line 6198 "configure"
6198 #include "confdefs.h"
6199 /* System header to define __stub macros and hopefully few prototypes,
6200 which can conflict with char $ac_func(); below. */
6202 /* Override any gcc2 internal prototype to avoid an error. */
6203 /* We use char because int might match the return type of a gcc2
6204 builtin and then its argument prototype would still apply. */
6209 /* The GNU C library defines this for functions which it implements
6210 to always fail with ENOSYS. Some functions are actually named
6211 something starting with __ and the normal name is an alias. */
6212 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6220 if { (eval echo configure
:6221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6222 eval "ac_cv_func_$ac_func=yes"
6224 echo "configure: failed program was:" >&5
6225 cat conftest.
$ac_ext >&5
6227 eval "ac_cv_func_$ac_func=no"
6232 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6233 echo "$ac_t""yes" 1>&6
6234 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6235 cat >> confdefs.h
<<EOF
6236 #define $ac_tr_func 1
6240 echo "$ac_t""no" 1>&6
6245 # syscall() is needed for smbwrapper.
6246 for ac_func
in syscall
6248 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6249 echo "configure:6250: checking for $ac_func" >&5
6250 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6251 echo $ac_n "(cached) $ac_c" 1>&6
6253 cat > conftest.
$ac_ext <<EOF
6254 #line 6255 "configure"
6255 #include "confdefs.h"
6256 /* System header to define __stub macros and hopefully few prototypes,
6257 which can conflict with char $ac_func(); below. */
6259 /* Override any gcc2 internal prototype to avoid an error. */
6260 /* We use char because int might match the return type of a gcc2
6261 builtin and then its argument prototype would still apply. */
6266 /* The GNU C library defines this for functions which it implements
6267 to always fail with ENOSYS. Some functions are actually named
6268 something starting with __ and the normal name is an alias. */
6269 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6277 if { (eval echo configure
:6278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6279 eval "ac_cv_func_$ac_func=yes"
6281 echo "configure: failed program was:" >&5
6282 cat conftest.
$ac_ext >&5
6284 eval "ac_cv_func_$ac_func=no"
6289 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6290 echo "$ac_t""yes" 1>&6
6291 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6292 cat >> confdefs.h
<<EOF
6293 #define $ac_tr_func 1
6297 echo "$ac_t""no" 1>&6
6302 for ac_func
in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
6304 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6305 echo "configure:6306: checking for $ac_func" >&5
6306 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6307 echo $ac_n "(cached) $ac_c" 1>&6
6309 cat > conftest.
$ac_ext <<EOF
6310 #line 6311 "configure"
6311 #include "confdefs.h"
6312 /* System header to define __stub macros and hopefully few prototypes,
6313 which can conflict with char $ac_func(); below. */
6315 /* Override any gcc2 internal prototype to avoid an error. */
6316 /* We use char because int might match the return type of a gcc2
6317 builtin and then its argument prototype would still apply. */
6322 /* The GNU C library defines this for functions which it implements
6323 to always fail with ENOSYS. Some functions are actually named
6324 something starting with __ and the normal name is an alias. */
6325 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6333 if { (eval echo configure
:6334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6335 eval "ac_cv_func_$ac_func=yes"
6337 echo "configure: failed program was:" >&5
6338 cat conftest.
$ac_ext >&5
6340 eval "ac_cv_func_$ac_func=no"
6345 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6346 echo "$ac_t""yes" 1>&6
6347 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6348 cat >> confdefs.h
<<EOF
6349 #define $ac_tr_func 1
6353 echo "$ac_t""no" 1>&6
6357 for ac_func
in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
6359 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6360 echo "configure:6361: checking for $ac_func" >&5
6361 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6362 echo $ac_n "(cached) $ac_c" 1>&6
6364 cat > conftest.
$ac_ext <<EOF
6365 #line 6366 "configure"
6366 #include "confdefs.h"
6367 /* System header to define __stub macros and hopefully few prototypes,
6368 which can conflict with char $ac_func(); below. */
6370 /* Override any gcc2 internal prototype to avoid an error. */
6371 /* We use char because int might match the return type of a gcc2
6372 builtin and then its argument prototype would still apply. */
6377 /* The GNU C library defines this for functions which it implements
6378 to always fail with ENOSYS. Some functions are actually named
6379 something starting with __ and the normal name is an alias. */
6380 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6388 if { (eval echo configure
:6389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6390 eval "ac_cv_func_$ac_func=yes"
6392 echo "configure: failed program was:" >&5
6393 cat conftest.
$ac_ext >&5
6395 eval "ac_cv_func_$ac_func=no"
6400 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6401 echo "$ac_t""yes" 1>&6
6402 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6403 cat >> confdefs.h
<<EOF
6404 #define $ac_tr_func 1
6408 echo "$ac_t""no" 1>&6
6412 for ac_func
in __getcwd _getcwd
6414 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6415 echo "configure:6416: checking for $ac_func" >&5
6416 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6417 echo $ac_n "(cached) $ac_c" 1>&6
6419 cat > conftest.
$ac_ext <<EOF
6420 #line 6421 "configure"
6421 #include "confdefs.h"
6422 /* System header to define __stub macros and hopefully few prototypes,
6423 which can conflict with char $ac_func(); below. */
6425 /* Override any gcc2 internal prototype to avoid an error. */
6426 /* We use char because int might match the return type of a gcc2
6427 builtin and then its argument prototype would still apply. */
6432 /* The GNU C library defines this for functions which it implements
6433 to always fail with ENOSYS. Some functions are actually named
6434 something starting with __ and the normal name is an alias. */
6435 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6443 if { (eval echo configure
:6444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6445 eval "ac_cv_func_$ac_func=yes"
6447 echo "configure: failed program was:" >&5
6448 cat conftest.
$ac_ext >&5
6450 eval "ac_cv_func_$ac_func=no"
6455 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6456 echo "$ac_t""yes" 1>&6
6457 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6458 cat >> confdefs.h
<<EOF
6459 #define $ac_tr_func 1
6463 echo "$ac_t""no" 1>&6
6467 for ac_func
in __xstat __fxstat __lxstat
6469 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6470 echo "configure:6471: checking for $ac_func" >&5
6471 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6472 echo $ac_n "(cached) $ac_c" 1>&6
6474 cat > conftest.
$ac_ext <<EOF
6475 #line 6476 "configure"
6476 #include "confdefs.h"
6477 /* System header to define __stub macros and hopefully few prototypes,
6478 which can conflict with char $ac_func(); below. */
6480 /* Override any gcc2 internal prototype to avoid an error. */
6481 /* We use char because int might match the return type of a gcc2
6482 builtin and then its argument prototype would still apply. */
6487 /* The GNU C library defines this for functions which it implements
6488 to always fail with ENOSYS. Some functions are actually named
6489 something starting with __ and the normal name is an alias. */
6490 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6498 if { (eval echo configure
:6499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6500 eval "ac_cv_func_$ac_func=yes"
6502 echo "configure: failed program was:" >&5
6503 cat conftest.
$ac_ext >&5
6505 eval "ac_cv_func_$ac_func=no"
6510 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6511 echo "$ac_t""yes" 1>&6
6512 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6513 cat >> confdefs.h
<<EOF
6514 #define $ac_tr_func 1
6518 echo "$ac_t""no" 1>&6
6522 for ac_func
in _stat _lstat _fstat __stat __lstat __fstat
6524 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6525 echo "configure:6526: checking for $ac_func" >&5
6526 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6527 echo $ac_n "(cached) $ac_c" 1>&6
6529 cat > conftest.
$ac_ext <<EOF
6530 #line 6531 "configure"
6531 #include "confdefs.h"
6532 /* System header to define __stub macros and hopefully few prototypes,
6533 which can conflict with char $ac_func(); below. */
6535 /* Override any gcc2 internal prototype to avoid an error. */
6536 /* We use char because int might match the return type of a gcc2
6537 builtin and then its argument prototype would still apply. */
6542 /* The GNU C library defines this for functions which it implements
6543 to always fail with ENOSYS. Some functions are actually named
6544 something starting with __ and the normal name is an alias. */
6545 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6553 if { (eval echo configure
:6554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6555 eval "ac_cv_func_$ac_func=yes"
6557 echo "configure: failed program was:" >&5
6558 cat conftest.
$ac_ext >&5
6560 eval "ac_cv_func_$ac_func=no"
6565 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6566 echo "$ac_t""yes" 1>&6
6567 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6568 cat >> confdefs.h
<<EOF
6569 #define $ac_tr_func 1
6573 echo "$ac_t""no" 1>&6
6577 for ac_func
in _acl __acl _facl __facl _open __open _chdir __chdir
6579 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6580 echo "configure:6581: checking for $ac_func" >&5
6581 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6582 echo $ac_n "(cached) $ac_c" 1>&6
6584 cat > conftest.
$ac_ext <<EOF
6585 #line 6586 "configure"
6586 #include "confdefs.h"
6587 /* System header to define __stub macros and hopefully few prototypes,
6588 which can conflict with char $ac_func(); below. */
6590 /* Override any gcc2 internal prototype to avoid an error. */
6591 /* We use char because int might match the return type of a gcc2
6592 builtin and then its argument prototype would still apply. */
6597 /* The GNU C library defines this for functions which it implements
6598 to always fail with ENOSYS. Some functions are actually named
6599 something starting with __ and the normal name is an alias. */
6600 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6608 if { (eval echo configure
:6609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6610 eval "ac_cv_func_$ac_func=yes"
6612 echo "configure: failed program was:" >&5
6613 cat conftest.
$ac_ext >&5
6615 eval "ac_cv_func_$ac_func=no"
6620 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6621 echo "$ac_t""yes" 1>&6
6622 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6623 cat >> confdefs.h
<<EOF
6624 #define $ac_tr_func 1
6628 echo "$ac_t""no" 1>&6
6632 for ac_func
in _close __close _fchdir __fchdir _fcntl __fcntl
6634 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6635 echo "configure:6636: checking for $ac_func" >&5
6636 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6637 echo $ac_n "(cached) $ac_c" 1>&6
6639 cat > conftest.
$ac_ext <<EOF
6640 #line 6641 "configure"
6641 #include "confdefs.h"
6642 /* System header to define __stub macros and hopefully few prototypes,
6643 which can conflict with char $ac_func(); below. */
6645 /* Override any gcc2 internal prototype to avoid an error. */
6646 /* We use char because int might match the return type of a gcc2
6647 builtin and then its argument prototype would still apply. */
6652 /* The GNU C library defines this for functions which it implements
6653 to always fail with ENOSYS. Some functions are actually named
6654 something starting with __ and the normal name is an alias. */
6655 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6663 if { (eval echo configure
:6664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6665 eval "ac_cv_func_$ac_func=yes"
6667 echo "configure: failed program was:" >&5
6668 cat conftest.
$ac_ext >&5
6670 eval "ac_cv_func_$ac_func=no"
6675 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6676 echo "$ac_t""yes" 1>&6
6677 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6678 cat >> confdefs.h
<<EOF
6679 #define $ac_tr_func 1
6683 echo "$ac_t""no" 1>&6
6687 for ac_func
in getdents _getdents __getdents _lseek __lseek _read __read
6689 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6690 echo "configure:6691: checking for $ac_func" >&5
6691 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6692 echo $ac_n "(cached) $ac_c" 1>&6
6694 cat > conftest.
$ac_ext <<EOF
6695 #line 6696 "configure"
6696 #include "confdefs.h"
6697 /* System header to define __stub macros and hopefully few prototypes,
6698 which can conflict with char $ac_func(); below. */
6700 /* Override any gcc2 internal prototype to avoid an error. */
6701 /* We use char because int might match the return type of a gcc2
6702 builtin and then its argument prototype would still apply. */
6707 /* The GNU C library defines this for functions which it implements
6708 to always fail with ENOSYS. Some functions are actually named
6709 something starting with __ and the normal name is an alias. */
6710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6718 if { (eval echo configure
:6719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6720 eval "ac_cv_func_$ac_func=yes"
6722 echo "configure: failed program was:" >&5
6723 cat conftest.
$ac_ext >&5
6725 eval "ac_cv_func_$ac_func=no"
6730 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6731 echo "$ac_t""yes" 1>&6
6732 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6733 cat >> confdefs.h
<<EOF
6734 #define $ac_tr_func 1
6738 echo "$ac_t""no" 1>&6
6742 for ac_func
in _write __write _fork __fork
6744 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6745 echo "configure:6746: checking for $ac_func" >&5
6746 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6747 echo $ac_n "(cached) $ac_c" 1>&6
6749 cat > conftest.
$ac_ext <<EOF
6750 #line 6751 "configure"
6751 #include "confdefs.h"
6752 /* System header to define __stub macros and hopefully few prototypes,
6753 which can conflict with char $ac_func(); below. */
6755 /* Override any gcc2 internal prototype to avoid an error. */
6756 /* We use char because int might match the return type of a gcc2
6757 builtin and then its argument prototype would still apply. */
6762 /* The GNU C library defines this for functions which it implements
6763 to always fail with ENOSYS. Some functions are actually named
6764 something starting with __ and the normal name is an alias. */
6765 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6773 if { (eval echo configure
:6774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6775 eval "ac_cv_func_$ac_func=yes"
6777 echo "configure: failed program was:" >&5
6778 cat conftest.
$ac_ext >&5
6780 eval "ac_cv_func_$ac_func=no"
6785 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6786 echo "$ac_t""yes" 1>&6
6787 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6788 cat >> confdefs.h
<<EOF
6789 #define $ac_tr_func 1
6793 echo "$ac_t""no" 1>&6
6797 for ac_func
in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6799 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6800 echo "configure:6801: checking for $ac_func" >&5
6801 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6802 echo $ac_n "(cached) $ac_c" 1>&6
6804 cat > conftest.
$ac_ext <<EOF
6805 #line 6806 "configure"
6806 #include "confdefs.h"
6807 /* System header to define __stub macros and hopefully few prototypes,
6808 which can conflict with char $ac_func(); below. */
6810 /* Override any gcc2 internal prototype to avoid an error. */
6811 /* We use char because int might match the return type of a gcc2
6812 builtin and then its argument prototype would still apply. */
6817 /* The GNU C library defines this for functions which it implements
6818 to always fail with ENOSYS. Some functions are actually named
6819 something starting with __ and the normal name is an alias. */
6820 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6828 if { (eval echo configure
:6829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6830 eval "ac_cv_func_$ac_func=yes"
6832 echo "configure: failed program was:" >&5
6833 cat conftest.
$ac_ext >&5
6835 eval "ac_cv_func_$ac_func=no"
6840 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6841 echo "$ac_t""yes" 1>&6
6842 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6843 cat >> confdefs.h
<<EOF
6844 #define $ac_tr_func 1
6848 echo "$ac_t""no" 1>&6
6852 for ac_func
in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6854 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6855 echo "configure:6856: checking for $ac_func" >&5
6856 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6857 echo $ac_n "(cached) $ac_c" 1>&6
6859 cat > conftest.
$ac_ext <<EOF
6860 #line 6861 "configure"
6861 #include "confdefs.h"
6862 /* System header to define __stub macros and hopefully few prototypes,
6863 which can conflict with char $ac_func(); below. */
6865 /* Override any gcc2 internal prototype to avoid an error. */
6866 /* We use char because int might match the return type of a gcc2
6867 builtin and then its argument prototype would still apply. */
6872 /* The GNU C library defines this for functions which it implements
6873 to always fail with ENOSYS. Some functions are actually named
6874 something starting with __ and the normal name is an alias. */
6875 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6883 if { (eval echo configure
:6884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6885 eval "ac_cv_func_$ac_func=yes"
6887 echo "configure: failed program was:" >&5
6888 cat conftest.
$ac_ext >&5
6890 eval "ac_cv_func_$ac_func=no"
6895 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6896 echo "$ac_t""yes" 1>&6
6897 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6898 cat >> confdefs.h
<<EOF
6899 #define $ac_tr_func 1
6903 echo "$ac_t""no" 1>&6
6907 for ac_func
in pread _pread __pread pread64 _pread64 __pread64
6909 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6910 echo "configure:6911: checking for $ac_func" >&5
6911 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6912 echo $ac_n "(cached) $ac_c" 1>&6
6914 cat > conftest.
$ac_ext <<EOF
6915 #line 6916 "configure"
6916 #include "confdefs.h"
6917 /* System header to define __stub macros and hopefully few prototypes,
6918 which can conflict with char $ac_func(); below. */
6920 /* Override any gcc2 internal prototype to avoid an error. */
6921 /* We use char because int might match the return type of a gcc2
6922 builtin and then its argument prototype would still apply. */
6927 /* The GNU C library defines this for functions which it implements
6928 to always fail with ENOSYS. Some functions are actually named
6929 something starting with __ and the normal name is an alias. */
6930 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6938 if { (eval echo configure
:6939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6940 eval "ac_cv_func_$ac_func=yes"
6942 echo "configure: failed program was:" >&5
6943 cat conftest.
$ac_ext >&5
6945 eval "ac_cv_func_$ac_func=no"
6950 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6951 echo "$ac_t""yes" 1>&6
6952 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6953 cat >> confdefs.h
<<EOF
6954 #define $ac_tr_func 1
6958 echo "$ac_t""no" 1>&6
6962 for ac_func
in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6964 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6965 echo "configure:6966: checking for $ac_func" >&5
6966 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6967 echo $ac_n "(cached) $ac_c" 1>&6
6969 cat > conftest.
$ac_ext <<EOF
6970 #line 6971 "configure"
6971 #include "confdefs.h"
6972 /* System header to define __stub macros and hopefully few prototypes,
6973 which can conflict with char $ac_func(); below. */
6975 /* Override any gcc2 internal prototype to avoid an error. */
6976 /* We use char because int might match the return type of a gcc2
6977 builtin and then its argument prototype would still apply. */
6982 /* The GNU C library defines this for functions which it implements
6983 to always fail with ENOSYS. Some functions are actually named
6984 something starting with __ and the normal name is an alias. */
6985 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6993 if { (eval echo configure
:6994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6995 eval "ac_cv_func_$ac_func=yes"
6997 echo "configure: failed program was:" >&5
6998 cat conftest.
$ac_ext >&5
7000 eval "ac_cv_func_$ac_func=no"
7005 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7006 echo "$ac_t""yes" 1>&6
7007 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7008 cat >> confdefs.h
<<EOF
7009 #define $ac_tr_func 1
7013 echo "$ac_t""no" 1>&6
7017 for ac_func
in open64 _open64 __open64 creat64
7019 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7020 echo "configure:7021: checking for $ac_func" >&5
7021 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7022 echo $ac_n "(cached) $ac_c" 1>&6
7024 cat > conftest.
$ac_ext <<EOF
7025 #line 7026 "configure"
7026 #include "confdefs.h"
7027 /* System header to define __stub macros and hopefully few prototypes,
7028 which can conflict with char $ac_func(); below. */
7030 /* Override any gcc2 internal prototype to avoid an error. */
7031 /* We use char because int might match the return type of a gcc2
7032 builtin and then its argument prototype would still apply. */
7037 /* The GNU C library defines this for functions which it implements
7038 to always fail with ENOSYS. Some functions are actually named
7039 something starting with __ and the normal name is an alias. */
7040 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7048 if { (eval echo configure
:7049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7050 eval "ac_cv_func_$ac_func=yes"
7052 echo "configure: failed program was:" >&5
7053 cat conftest.
$ac_ext >&5
7055 eval "ac_cv_func_$ac_func=no"
7060 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7061 echo "$ac_t""yes" 1>&6
7062 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7063 cat >> confdefs.h
<<EOF
7064 #define $ac_tr_func 1
7068 echo "$ac_t""no" 1>&6
7074 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
7077 if test x
$ac_cv_func_stat64 = xno
; then
7078 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
7079 echo "configure:7080: checking for stat64 in <sys/stat.h>" >&5
7080 cat > conftest.
$ac_ext <<EOF
7081 #line 7082 "configure"
7082 #include "confdefs.h"
7084 #if defined(HAVE_UNISTD_H)
7087 #include <sys/stat.h>
7090 struct stat64 st64; exit(stat64(".",&st64));
7093 if { (eval echo configure
:7094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7095 ac_cv_func_stat64
=yes
7097 echo "configure: failed program was:" >&5
7098 cat conftest.
$ac_ext >&5
7101 echo "$ac_t""$ac_cv_func_stat64" 1>&6
7102 if test x
$ac_cv_func_stat64 = xyes
; then
7103 cat >> confdefs.h
<<\EOF
7104 #define HAVE_STAT64 1
7110 if test x
$ac_cv_func_lstat64 = xno
; then
7111 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
7112 echo "configure:7113: checking for lstat64 in <sys/stat.h>" >&5
7113 cat > conftest.
$ac_ext <<EOF
7114 #line 7115 "configure"
7115 #include "confdefs.h"
7117 #if defined(HAVE_UNISTD_H)
7120 #include <sys/stat.h>
7123 struct stat64 st64; exit(lstat64(".",&st64));
7126 if { (eval echo configure
:7127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7128 ac_cv_func_lstat64
=yes
7130 echo "configure: failed program was:" >&5
7131 cat conftest.
$ac_ext >&5
7134 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
7135 if test x
$ac_cv_func_lstat64 = xyes
; then
7136 cat >> confdefs.h
<<\EOF
7137 #define HAVE_LSTAT64 Whether lstat64() is available
7143 if test x
$ac_cv_func_fstat64 = xno
; then
7144 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
7145 echo "configure:7146: checking for fstat64 in <sys/stat.h>" >&5
7146 cat > conftest.
$ac_ext <<EOF
7147 #line 7148 "configure"
7148 #include "confdefs.h"
7150 #if defined(HAVE_UNISTD_H)
7153 #include <sys/stat.h>
7156 struct stat64 st64; exit(fstat64(0,&st64));
7159 if { (eval echo configure
:7160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7161 ac_cv_func_fstat64
=yes
7163 echo "configure: failed program was:" >&5
7164 cat conftest.
$ac_ext >&5
7167 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
7168 if test x
$ac_cv_func_fstat64 = xyes
; then
7169 cat >> confdefs.h
<<\EOF
7170 #define HAVE_FSTAT64 1
7176 #####################################
7177 # we might need the resolv library on some systems
7178 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
7179 echo "configure:7180: checking for dn_expand in -lresolv" >&5
7180 ac_lib_var
=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
7181 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7182 echo $ac_n "(cached) $ac_c" 1>&6
7184 ac_save_LIBS
="$LIBS"
7185 LIBS
="-lresolv $LIBS"
7186 cat > conftest.
$ac_ext <<EOF
7187 #line 7188 "configure"
7188 #include "confdefs.h"
7189 /* Override any gcc2 internal prototype to avoid an error. */
7190 /* We use char because int might match the return type of a gcc2
7191 builtin and then its argument prototype would still apply. */
7198 if { (eval echo configure
:7199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7200 eval "ac_cv_lib_$ac_lib_var=yes"
7202 echo "configure: failed program was:" >&5
7203 cat conftest.
$ac_ext >&5
7205 eval "ac_cv_lib_$ac_lib_var=no"
7208 LIBS
="$ac_save_LIBS"
7211 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7212 echo "$ac_t""yes" 1>&6
7213 ac_tr_lib
=HAVE_LIB
`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7214 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7215 cat >> confdefs.h
<<EOF
7216 #define $ac_tr_lib 1
7219 LIBS
="-lresolv $LIBS"
7222 echo "$ac_t""no" 1>&6
7227 # Check for the functions putprpwnam, set_auth_parameters,
7228 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
7229 # Needed for OSF1 and HPUX.
7233 *-lsecurity*) for ac_func
in putprpwnam
7235 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7236 echo "configure:7237: checking for $ac_func" >&5
7237 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7238 echo $ac_n "(cached) $ac_c" 1>&6
7240 cat > conftest.
$ac_ext <<EOF
7241 #line 7242 "configure"
7242 #include "confdefs.h"
7243 /* System header to define __stub macros and hopefully few prototypes,
7244 which can conflict with char $ac_func(); below. */
7246 /* Override any gcc2 internal prototype to avoid an error. */
7247 /* We use char because int might match the return type of a gcc2
7248 builtin and then its argument prototype would still apply. */
7253 /* The GNU C library defines this for functions which it implements
7254 to always fail with ENOSYS. Some functions are actually named
7255 something starting with __ and the normal name is an alias. */
7256 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7264 if { (eval echo configure
:7265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7266 eval "ac_cv_func_$ac_func=yes"
7268 echo "configure: failed program was:" >&5
7269 cat conftest.
$ac_ext >&5
7271 eval "ac_cv_func_$ac_func=no"
7276 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7277 echo "$ac_t""yes" 1>&6
7278 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7279 cat >> confdefs.h
<<EOF
7280 #define $ac_tr_func 1
7284 echo "$ac_t""no" 1>&6
7288 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
7289 echo "configure:7290: checking for putprpwnam in -lsecurity" >&5
7290 ac_lib_var
=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
7291 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7292 echo $ac_n "(cached) $ac_c" 1>&6
7294 ac_save_LIBS
="$LIBS"
7295 LIBS
="-lsecurity $LIBS"
7296 cat > conftest.
$ac_ext <<EOF
7297 #line 7298 "configure"
7298 #include "confdefs.h"
7299 /* Override any gcc2 internal prototype to avoid an error. */
7300 /* We use char because int might match the return type of a gcc2
7301 builtin and then its argument prototype would still apply. */
7308 if { (eval echo configure
:7309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7310 eval "ac_cv_lib_$ac_lib_var=yes"
7312 echo "configure: failed program was:" >&5
7313 cat conftest.
$ac_ext >&5
7315 eval "ac_cv_lib_$ac_lib_var=no"
7318 LIBS
="$ac_save_LIBS"
7321 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7322 echo "$ac_t""yes" 1>&6
7323 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7324 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7325 cat >> confdefs.h
<<EOF
7326 #define $ac_tr_lib 1
7329 LIBS
="-lsecurity $LIBS"
7332 echo "$ac_t""no" 1>&6
7335 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
7394 *-lsec*) for ac_func
in putprpwnam
7396 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7397 echo "configure:7398: checking for $ac_func" >&5
7398 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7399 echo $ac_n "(cached) $ac_c" 1>&6
7401 cat > conftest.
$ac_ext <<EOF
7402 #line 7403 "configure"
7403 #include "confdefs.h"
7404 /* System header to define __stub macros and hopefully few prototypes,
7405 which can conflict with char $ac_func(); below. */
7407 /* Override any gcc2 internal prototype to avoid an error. */
7408 /* We use char because int might match the return type of a gcc2
7409 builtin and then its argument prototype would still apply. */
7414 /* The GNU C library defines this for functions which it implements
7415 to always fail with ENOSYS. Some functions are actually named
7416 something starting with __ and the normal name is an alias. */
7417 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7425 if { (eval echo configure
:7426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7427 eval "ac_cv_func_$ac_func=yes"
7429 echo "configure: failed program was:" >&5
7430 cat conftest.
$ac_ext >&5
7432 eval "ac_cv_func_$ac_func=no"
7437 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7438 echo "$ac_t""yes" 1>&6
7439 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7440 cat >> confdefs.h
<<EOF
7441 #define $ac_tr_func 1
7445 echo "$ac_t""no" 1>&6
7449 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
7450 echo "configure:7451: checking for putprpwnam in -lsec" >&5
7451 ac_lib_var
=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
7452 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7453 echo $ac_n "(cached) $ac_c" 1>&6
7455 ac_save_LIBS
="$LIBS"
7457 cat > conftest.
$ac_ext <<EOF
7458 #line 7459 "configure"
7459 #include "confdefs.h"
7460 /* Override any gcc2 internal prototype to avoid an error. */
7461 /* We use char because int might match the return type of a gcc2
7462 builtin and then its argument prototype would still apply. */
7469 if { (eval echo configure
:7470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7471 eval "ac_cv_lib_$ac_lib_var=yes"
7473 echo "configure: failed program was:" >&5
7474 cat conftest.
$ac_ext >&5
7476 eval "ac_cv_lib_$ac_lib_var=no"
7479 LIBS
="$ac_save_LIBS"
7482 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7483 echo "$ac_t""yes" 1>&6
7484 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7485 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7486 cat >> confdefs.h
<<EOF
7487 #define $ac_tr_lib 1
7493 echo "$ac_t""no" 1>&6
7496 for ac_func
in putprpwnam
7498 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7499 echo "configure:7500: checking for $ac_func" >&5
7500 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7501 echo $ac_n "(cached) $ac_c" 1>&6
7503 cat > conftest.
$ac_ext <<EOF
7504 #line 7505 "configure"
7505 #include "confdefs.h"
7506 /* System header to define __stub macros and hopefully few prototypes,
7507 which can conflict with char $ac_func(); below. */
7509 /* Override any gcc2 internal prototype to avoid an error. */
7510 /* We use char because int might match the return type of a gcc2
7511 builtin and then its argument prototype would still apply. */
7516 /* The GNU C library defines this for functions which it implements
7517 to always fail with ENOSYS. Some functions are actually named
7518 something starting with __ and the normal name is an alias. */
7519 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7527 if { (eval echo configure
:7528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7529 eval "ac_cv_func_$ac_func=yes"
7531 echo "configure: failed program was:" >&5
7532 cat conftest.
$ac_ext >&5
7534 eval "ac_cv_func_$ac_func=no"
7539 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7540 echo "$ac_t""yes" 1>&6
7541 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7542 cat >> confdefs.h
<<EOF
7543 #define $ac_tr_func 1
7547 echo "$ac_t""no" 1>&6
7556 *-lsecurity*) for ac_func
in set_auth_parameters
7558 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7559 echo "configure:7560: checking for $ac_func" >&5
7560 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7561 echo $ac_n "(cached) $ac_c" 1>&6
7563 cat > conftest.
$ac_ext <<EOF
7564 #line 7565 "configure"
7565 #include "confdefs.h"
7566 /* System header to define __stub macros and hopefully few prototypes,
7567 which can conflict with char $ac_func(); below. */
7569 /* Override any gcc2 internal prototype to avoid an error. */
7570 /* We use char because int might match the return type of a gcc2
7571 builtin and then its argument prototype would still apply. */
7576 /* The GNU C library defines this for functions which it implements
7577 to always fail with ENOSYS. Some functions are actually named
7578 something starting with __ and the normal name is an alias. */
7579 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7587 if { (eval echo configure
:7588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7589 eval "ac_cv_func_$ac_func=yes"
7591 echo "configure: failed program was:" >&5
7592 cat conftest.
$ac_ext >&5
7594 eval "ac_cv_func_$ac_func=no"
7599 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7600 echo "$ac_t""yes" 1>&6
7601 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7602 cat >> confdefs.h
<<EOF
7603 #define $ac_tr_func 1
7607 echo "$ac_t""no" 1>&6
7611 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
7612 echo "configure:7613: checking for set_auth_parameters in -lsecurity" >&5
7613 ac_lib_var
=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7614 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7615 echo $ac_n "(cached) $ac_c" 1>&6
7617 ac_save_LIBS
="$LIBS"
7618 LIBS
="-lsecurity $LIBS"
7619 cat > conftest.
$ac_ext <<EOF
7620 #line 7621 "configure"
7621 #include "confdefs.h"
7622 /* Override any gcc2 internal prototype to avoid an error. */
7623 /* We use char because int might match the return type of a gcc2
7624 builtin and then its argument prototype would still apply. */
7625 char set_auth_parameters();
7628 set_auth_parameters()
7631 if { (eval echo configure
:7632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7633 eval "ac_cv_lib_$ac_lib_var=yes"
7635 echo "configure: failed program was:" >&5
7636 cat conftest.
$ac_ext >&5
7638 eval "ac_cv_lib_$ac_lib_var=no"
7641 LIBS
="$ac_save_LIBS"
7644 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7645 echo "$ac_t""yes" 1>&6
7646 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7647 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7648 cat >> confdefs.h
<<EOF
7649 #define $ac_tr_lib 1
7652 LIBS
="-lsecurity $LIBS"
7655 echo "$ac_t""no" 1>&6
7658 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
7717 *-lsec*) for ac_func
in set_auth_parameters
7719 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7720 echo "configure:7721: checking for $ac_func" >&5
7721 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7722 echo $ac_n "(cached) $ac_c" 1>&6
7724 cat > conftest.
$ac_ext <<EOF
7725 #line 7726 "configure"
7726 #include "confdefs.h"
7727 /* System header to define __stub macros and hopefully few prototypes,
7728 which can conflict with char $ac_func(); below. */
7730 /* Override any gcc2 internal prototype to avoid an error. */
7731 /* We use char because int might match the return type of a gcc2
7732 builtin and then its argument prototype would still apply. */
7737 /* The GNU C library defines this for functions which it implements
7738 to always fail with ENOSYS. Some functions are actually named
7739 something starting with __ and the normal name is an alias. */
7740 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7748 if { (eval echo configure
:7749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7750 eval "ac_cv_func_$ac_func=yes"
7752 echo "configure: failed program was:" >&5
7753 cat conftest.
$ac_ext >&5
7755 eval "ac_cv_func_$ac_func=no"
7760 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7761 echo "$ac_t""yes" 1>&6
7762 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7763 cat >> confdefs.h
<<EOF
7764 #define $ac_tr_func 1
7768 echo "$ac_t""no" 1>&6
7772 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7773 echo "configure:7774: checking for set_auth_parameters in -lsec" >&5
7774 ac_lib_var
=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7775 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7776 echo $ac_n "(cached) $ac_c" 1>&6
7778 ac_save_LIBS
="$LIBS"
7780 cat > conftest.
$ac_ext <<EOF
7781 #line 7782 "configure"
7782 #include "confdefs.h"
7783 /* Override any gcc2 internal prototype to avoid an error. */
7784 /* We use char because int might match the return type of a gcc2
7785 builtin and then its argument prototype would still apply. */
7786 char set_auth_parameters();
7789 set_auth_parameters()
7792 if { (eval echo configure
:7793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7794 eval "ac_cv_lib_$ac_lib_var=yes"
7796 echo "configure: failed program was:" >&5
7797 cat conftest.
$ac_ext >&5
7799 eval "ac_cv_lib_$ac_lib_var=no"
7802 LIBS
="$ac_save_LIBS"
7805 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7806 echo "$ac_t""yes" 1>&6
7807 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7808 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7809 cat >> confdefs.h
<<EOF
7810 #define $ac_tr_lib 1
7816 echo "$ac_t""no" 1>&6
7819 for ac_func
in set_auth_parameters
7821 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7822 echo "configure:7823: checking for $ac_func" >&5
7823 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7824 echo $ac_n "(cached) $ac_c" 1>&6
7826 cat > conftest.
$ac_ext <<EOF
7827 #line 7828 "configure"
7828 #include "confdefs.h"
7829 /* System header to define __stub macros and hopefully few prototypes,
7830 which can conflict with char $ac_func(); below. */
7832 /* Override any gcc2 internal prototype to avoid an error. */
7833 /* We use char because int might match the return type of a gcc2
7834 builtin and then its argument prototype would still apply. */
7839 /* The GNU C library defines this for functions which it implements
7840 to always fail with ENOSYS. Some functions are actually named
7841 something starting with __ and the normal name is an alias. */
7842 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7850 if { (eval echo configure
:7851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7852 eval "ac_cv_func_$ac_func=yes"
7854 echo "configure: failed program was:" >&5
7855 cat conftest.
$ac_ext >&5
7857 eval "ac_cv_func_$ac_func=no"
7862 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7863 echo "$ac_t""yes" 1>&6
7864 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7865 cat >> confdefs.h
<<EOF
7866 #define $ac_tr_func 1
7870 echo "$ac_t""no" 1>&6
7878 # UnixWare 7.x has its getspnam in -lgen
7880 *-lgen*) for ac_func
in getspnam
7882 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7883 echo "configure:7884: checking for $ac_func" >&5
7884 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7885 echo $ac_n "(cached) $ac_c" 1>&6
7887 cat > conftest.
$ac_ext <<EOF
7888 #line 7889 "configure"
7889 #include "confdefs.h"
7890 /* System header to define __stub macros and hopefully few prototypes,
7891 which can conflict with char $ac_func(); below. */
7893 /* Override any gcc2 internal prototype to avoid an error. */
7894 /* We use char because int might match the return type of a gcc2
7895 builtin and then its argument prototype would still apply. */
7900 /* The GNU C library defines this for functions which it implements
7901 to always fail with ENOSYS. Some functions are actually named
7902 something starting with __ and the normal name is an alias. */
7903 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7911 if { (eval echo configure
:7912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7913 eval "ac_cv_func_$ac_func=yes"
7915 echo "configure: failed program was:" >&5
7916 cat conftest.
$ac_ext >&5
7918 eval "ac_cv_func_$ac_func=no"
7923 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7924 echo "$ac_t""yes" 1>&6
7925 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7926 cat >> confdefs.h
<<EOF
7927 #define $ac_tr_func 1
7931 echo "$ac_t""no" 1>&6
7935 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7936 echo "configure:7937: checking for getspnam in -lgen" >&5
7937 ac_lib_var
=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7938 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7939 echo $ac_n "(cached) $ac_c" 1>&6
7941 ac_save_LIBS
="$LIBS"
7943 cat > conftest.
$ac_ext <<EOF
7944 #line 7945 "configure"
7945 #include "confdefs.h"
7946 /* Override any gcc2 internal prototype to avoid an error. */
7947 /* We use char because int might match the return type of a gcc2
7948 builtin and then its argument prototype would still apply. */
7955 if { (eval echo configure
:7956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7957 eval "ac_cv_lib_$ac_lib_var=yes"
7959 echo "configure: failed program was:" >&5
7960 cat conftest.
$ac_ext >&5
7962 eval "ac_cv_lib_$ac_lib_var=no"
7965 LIBS
="$ac_save_LIBS"
7968 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7969 echo "$ac_t""yes" 1>&6
7970 ac_tr_lib
=HAVE_LIB
`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7971 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7972 cat >> confdefs.h
<<EOF
7973 #define $ac_tr_lib 1
7979 echo "$ac_t""no" 1>&6
7982 for ac_func
in getspnam
7984 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7985 echo "configure:7986: checking for $ac_func" >&5
7986 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7987 echo $ac_n "(cached) $ac_c" 1>&6
7989 cat > conftest.
$ac_ext <<EOF
7990 #line 7991 "configure"
7991 #include "confdefs.h"
7992 /* System header to define __stub macros and hopefully few prototypes,
7993 which can conflict with char $ac_func(); below. */
7995 /* Override any gcc2 internal prototype to avoid an error. */
7996 /* We use char because int might match the return type of a gcc2
7997 builtin and then its argument prototype would still apply. */
8002 /* The GNU C library defines this for functions which it implements
8003 to always fail with ENOSYS. Some functions are actually named
8004 something starting with __ and the normal name is an alias. */
8005 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8013 if { (eval echo configure
:8014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8015 eval "ac_cv_func_$ac_func=yes"
8017 echo "configure: failed program was:" >&5
8018 cat conftest.
$ac_ext >&5
8020 eval "ac_cv_func_$ac_func=no"
8025 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8026 echo "$ac_t""yes" 1>&6
8027 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8028 cat >> confdefs.h
<<EOF
8029 #define $ac_tr_func 1
8033 echo "$ac_t""no" 1>&6
8042 *-lsecurity*) for ac_func
in getspnam
8044 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8045 echo "configure:8046: checking for $ac_func" >&5
8046 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8047 echo $ac_n "(cached) $ac_c" 1>&6
8049 cat > conftest.
$ac_ext <<EOF
8050 #line 8051 "configure"
8051 #include "confdefs.h"
8052 /* System header to define __stub macros and hopefully few prototypes,
8053 which can conflict with char $ac_func(); below. */
8055 /* Override any gcc2 internal prototype to avoid an error. */
8056 /* We use char because int might match the return type of a gcc2
8057 builtin and then its argument prototype would still apply. */
8062 /* The GNU C library defines this for functions which it implements
8063 to always fail with ENOSYS. Some functions are actually named
8064 something starting with __ and the normal name is an alias. */
8065 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8073 if { (eval echo configure
:8074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8075 eval "ac_cv_func_$ac_func=yes"
8077 echo "configure: failed program was:" >&5
8078 cat conftest.
$ac_ext >&5
8080 eval "ac_cv_func_$ac_func=no"
8085 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8086 echo "$ac_t""yes" 1>&6
8087 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8088 cat >> confdefs.h
<<EOF
8089 #define $ac_tr_func 1
8093 echo "$ac_t""no" 1>&6
8097 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
8098 echo "configure:8099: checking for getspnam in -lsecurity" >&5
8099 ac_lib_var
=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
8100 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8101 echo $ac_n "(cached) $ac_c" 1>&6
8103 ac_save_LIBS
="$LIBS"
8104 LIBS
="-lsecurity $LIBS"
8105 cat > conftest.
$ac_ext <<EOF
8106 #line 8107 "configure"
8107 #include "confdefs.h"
8108 /* Override any gcc2 internal prototype to avoid an error. */
8109 /* We use char because int might match the return type of a gcc2
8110 builtin and then its argument prototype would still apply. */
8117 if { (eval echo configure
:8118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8119 eval "ac_cv_lib_$ac_lib_var=yes"
8121 echo "configure: failed program was:" >&5
8122 cat conftest.
$ac_ext >&5
8124 eval "ac_cv_lib_$ac_lib_var=no"
8127 LIBS
="$ac_save_LIBS"
8130 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8131 echo "$ac_t""yes" 1>&6
8132 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8133 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8134 cat >> confdefs.h
<<EOF
8135 #define $ac_tr_lib 1
8138 LIBS
="-lsecurity $LIBS"
8141 echo "$ac_t""no" 1>&6
8144 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
8203 *-lsec*) for ac_func
in getspnam
8205 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8206 echo "configure:8207: checking for $ac_func" >&5
8207 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8208 echo $ac_n "(cached) $ac_c" 1>&6
8210 cat > conftest.
$ac_ext <<EOF
8211 #line 8212 "configure"
8212 #include "confdefs.h"
8213 /* System header to define __stub macros and hopefully few prototypes,
8214 which can conflict with char $ac_func(); below. */
8216 /* Override any gcc2 internal prototype to avoid an error. */
8217 /* We use char because int might match the return type of a gcc2
8218 builtin and then its argument prototype would still apply. */
8223 /* The GNU C library defines this for functions which it implements
8224 to always fail with ENOSYS. Some functions are actually named
8225 something starting with __ and the normal name is an alias. */
8226 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8234 if { (eval echo configure
:8235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8236 eval "ac_cv_func_$ac_func=yes"
8238 echo "configure: failed program was:" >&5
8239 cat conftest.
$ac_ext >&5
8241 eval "ac_cv_func_$ac_func=no"
8246 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8247 echo "$ac_t""yes" 1>&6
8248 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8249 cat >> confdefs.h
<<EOF
8250 #define $ac_tr_func 1
8254 echo "$ac_t""no" 1>&6
8258 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
8259 echo "configure:8260: checking for getspnam in -lsec" >&5
8260 ac_lib_var
=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
8261 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8262 echo $ac_n "(cached) $ac_c" 1>&6
8264 ac_save_LIBS
="$LIBS"
8266 cat > conftest.
$ac_ext <<EOF
8267 #line 8268 "configure"
8268 #include "confdefs.h"
8269 /* Override any gcc2 internal prototype to avoid an error. */
8270 /* We use char because int might match the return type of a gcc2
8271 builtin and then its argument prototype would still apply. */
8278 if { (eval echo configure
:8279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8280 eval "ac_cv_lib_$ac_lib_var=yes"
8282 echo "configure: failed program was:" >&5
8283 cat conftest.
$ac_ext >&5
8285 eval "ac_cv_lib_$ac_lib_var=no"
8288 LIBS
="$ac_save_LIBS"
8291 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8292 echo "$ac_t""yes" 1>&6
8293 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8294 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8295 cat >> confdefs.h
<<EOF
8296 #define $ac_tr_lib 1
8302 echo "$ac_t""no" 1>&6
8305 for ac_func
in getspnam
8307 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8308 echo "configure:8309: checking for $ac_func" >&5
8309 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8310 echo $ac_n "(cached) $ac_c" 1>&6
8312 cat > conftest.
$ac_ext <<EOF
8313 #line 8314 "configure"
8314 #include "confdefs.h"
8315 /* System header to define __stub macros and hopefully few prototypes,
8316 which can conflict with char $ac_func(); below. */
8318 /* Override any gcc2 internal prototype to avoid an error. */
8319 /* We use char because int might match the return type of a gcc2
8320 builtin and then its argument prototype would still apply. */
8325 /* The GNU C library defines this for functions which it implements
8326 to always fail with ENOSYS. Some functions are actually named
8327 something starting with __ and the normal name is an alias. */
8328 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8336 if { (eval echo configure
:8337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8338 eval "ac_cv_func_$ac_func=yes"
8340 echo "configure: failed program was:" >&5
8341 cat conftest.
$ac_ext >&5
8343 eval "ac_cv_func_$ac_func=no"
8348 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8349 echo "$ac_t""yes" 1>&6
8350 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8351 cat >> confdefs.h
<<EOF
8352 #define $ac_tr_func 1
8356 echo "$ac_t""no" 1>&6
8365 *-lsecurity*) for ac_func
in bigcrypt
8367 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8368 echo "configure:8369: checking for $ac_func" >&5
8369 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8370 echo $ac_n "(cached) $ac_c" 1>&6
8372 cat > conftest.
$ac_ext <<EOF
8373 #line 8374 "configure"
8374 #include "confdefs.h"
8375 /* System header to define __stub macros and hopefully few prototypes,
8376 which can conflict with char $ac_func(); below. */
8378 /* Override any gcc2 internal prototype to avoid an error. */
8379 /* We use char because int might match the return type of a gcc2
8380 builtin and then its argument prototype would still apply. */
8385 /* The GNU C library defines this for functions which it implements
8386 to always fail with ENOSYS. Some functions are actually named
8387 something starting with __ and the normal name is an alias. */
8388 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8396 if { (eval echo configure
:8397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8398 eval "ac_cv_func_$ac_func=yes"
8400 echo "configure: failed program was:" >&5
8401 cat conftest.
$ac_ext >&5
8403 eval "ac_cv_func_$ac_func=no"
8408 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8409 echo "$ac_t""yes" 1>&6
8410 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8411 cat >> confdefs.h
<<EOF
8412 #define $ac_tr_func 1
8416 echo "$ac_t""no" 1>&6
8420 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
8421 echo "configure:8422: checking for bigcrypt in -lsecurity" >&5
8422 ac_lib_var
=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
8423 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8424 echo $ac_n "(cached) $ac_c" 1>&6
8426 ac_save_LIBS
="$LIBS"
8427 LIBS
="-lsecurity $LIBS"
8428 cat > conftest.
$ac_ext <<EOF
8429 #line 8430 "configure"
8430 #include "confdefs.h"
8431 /* Override any gcc2 internal prototype to avoid an error. */
8432 /* We use char because int might match the return type of a gcc2
8433 builtin and then its argument prototype would still apply. */
8440 if { (eval echo configure
:8441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8442 eval "ac_cv_lib_$ac_lib_var=yes"
8444 echo "configure: failed program was:" >&5
8445 cat conftest.
$ac_ext >&5
8447 eval "ac_cv_lib_$ac_lib_var=no"
8450 LIBS
="$ac_save_LIBS"
8453 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8454 echo "$ac_t""yes" 1>&6
8455 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8456 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8457 cat >> confdefs.h
<<EOF
8458 #define $ac_tr_lib 1
8461 LIBS
="-lsecurity $LIBS"
8464 echo "$ac_t""no" 1>&6
8467 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
8526 *-lsec*) for ac_func
in bigcrypt
8528 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8529 echo "configure:8530: checking for $ac_func" >&5
8530 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8531 echo $ac_n "(cached) $ac_c" 1>&6
8533 cat > conftest.
$ac_ext <<EOF
8534 #line 8535 "configure"
8535 #include "confdefs.h"
8536 /* System header to define __stub macros and hopefully few prototypes,
8537 which can conflict with char $ac_func(); below. */
8539 /* Override any gcc2 internal prototype to avoid an error. */
8540 /* We use char because int might match the return type of a gcc2
8541 builtin and then its argument prototype would still apply. */
8546 /* The GNU C library defines this for functions which it implements
8547 to always fail with ENOSYS. Some functions are actually named
8548 something starting with __ and the normal name is an alias. */
8549 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8557 if { (eval echo configure
:8558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8559 eval "ac_cv_func_$ac_func=yes"
8561 echo "configure: failed program was:" >&5
8562 cat conftest.
$ac_ext >&5
8564 eval "ac_cv_func_$ac_func=no"
8569 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8570 echo "$ac_t""yes" 1>&6
8571 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8572 cat >> confdefs.h
<<EOF
8573 #define $ac_tr_func 1
8577 echo "$ac_t""no" 1>&6
8581 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
8582 echo "configure:8583: checking for bigcrypt in -lsec" >&5
8583 ac_lib_var
=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
8584 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8585 echo $ac_n "(cached) $ac_c" 1>&6
8587 ac_save_LIBS
="$LIBS"
8589 cat > conftest.
$ac_ext <<EOF
8590 #line 8591 "configure"
8591 #include "confdefs.h"
8592 /* Override any gcc2 internal prototype to avoid an error. */
8593 /* We use char because int might match the return type of a gcc2
8594 builtin and then its argument prototype would still apply. */
8601 if { (eval echo configure
:8602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8603 eval "ac_cv_lib_$ac_lib_var=yes"
8605 echo "configure: failed program was:" >&5
8606 cat conftest.
$ac_ext >&5
8608 eval "ac_cv_lib_$ac_lib_var=no"
8611 LIBS
="$ac_save_LIBS"
8614 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8615 echo "$ac_t""yes" 1>&6
8616 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8617 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8618 cat >> confdefs.h
<<EOF
8619 #define $ac_tr_lib 1
8625 echo "$ac_t""no" 1>&6
8628 for ac_func
in bigcrypt
8630 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8631 echo "configure:8632: checking for $ac_func" >&5
8632 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8633 echo $ac_n "(cached) $ac_c" 1>&6
8635 cat > conftest.
$ac_ext <<EOF
8636 #line 8637 "configure"
8637 #include "confdefs.h"
8638 /* System header to define __stub macros and hopefully few prototypes,
8639 which can conflict with char $ac_func(); below. */
8641 /* Override any gcc2 internal prototype to avoid an error. */
8642 /* We use char because int might match the return type of a gcc2
8643 builtin and then its argument prototype would still apply. */
8648 /* The GNU C library defines this for functions which it implements
8649 to always fail with ENOSYS. Some functions are actually named
8650 something starting with __ and the normal name is an alias. */
8651 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8659 if { (eval echo configure
:8660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8661 eval "ac_cv_func_$ac_func=yes"
8663 echo "configure: failed program was:" >&5
8664 cat conftest.
$ac_ext >&5
8666 eval "ac_cv_func_$ac_func=no"
8671 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8672 echo "$ac_t""yes" 1>&6
8673 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8674 cat >> confdefs.h
<<EOF
8675 #define $ac_tr_func 1
8679 echo "$ac_t""no" 1>&6
8688 *-lsecurity*) for ac_func
in getprpwnam
8690 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8691 echo "configure:8692: checking for $ac_func" >&5
8692 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8693 echo $ac_n "(cached) $ac_c" 1>&6
8695 cat > conftest.
$ac_ext <<EOF
8696 #line 8697 "configure"
8697 #include "confdefs.h"
8698 /* System header to define __stub macros and hopefully few prototypes,
8699 which can conflict with char $ac_func(); below. */
8701 /* Override any gcc2 internal prototype to avoid an error. */
8702 /* We use char because int might match the return type of a gcc2
8703 builtin and then its argument prototype would still apply. */
8708 /* The GNU C library defines this for functions which it implements
8709 to always fail with ENOSYS. Some functions are actually named
8710 something starting with __ and the normal name is an alias. */
8711 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8719 if { (eval echo configure
:8720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8721 eval "ac_cv_func_$ac_func=yes"
8723 echo "configure: failed program was:" >&5
8724 cat conftest.
$ac_ext >&5
8726 eval "ac_cv_func_$ac_func=no"
8731 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8732 echo "$ac_t""yes" 1>&6
8733 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8734 cat >> confdefs.h
<<EOF
8735 #define $ac_tr_func 1
8739 echo "$ac_t""no" 1>&6
8743 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8744 echo "configure:8745: checking for getprpwnam in -lsecurity" >&5
8745 ac_lib_var
=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8746 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8747 echo $ac_n "(cached) $ac_c" 1>&6
8749 ac_save_LIBS
="$LIBS"
8750 LIBS
="-lsecurity $LIBS"
8751 cat > conftest.
$ac_ext <<EOF
8752 #line 8753 "configure"
8753 #include "confdefs.h"
8754 /* Override any gcc2 internal prototype to avoid an error. */
8755 /* We use char because int might match the return type of a gcc2
8756 builtin and then its argument prototype would still apply. */
8763 if { (eval echo configure
:8764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8765 eval "ac_cv_lib_$ac_lib_var=yes"
8767 echo "configure: failed program was:" >&5
8768 cat conftest.
$ac_ext >&5
8770 eval "ac_cv_lib_$ac_lib_var=no"
8773 LIBS
="$ac_save_LIBS"
8776 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8777 echo "$ac_t""yes" 1>&6
8778 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8779 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8780 cat >> confdefs.h
<<EOF
8781 #define $ac_tr_lib 1
8784 LIBS
="-lsecurity $LIBS"
8787 echo "$ac_t""no" 1>&6
8790 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
8849 *-lsec*) for ac_func
in getprpwnam
8851 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8852 echo "configure:8853: checking for $ac_func" >&5
8853 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8854 echo $ac_n "(cached) $ac_c" 1>&6
8856 cat > conftest.
$ac_ext <<EOF
8857 #line 8858 "configure"
8858 #include "confdefs.h"
8859 /* System header to define __stub macros and hopefully few prototypes,
8860 which can conflict with char $ac_func(); below. */
8862 /* Override any gcc2 internal prototype to avoid an error. */
8863 /* We use char because int might match the return type of a gcc2
8864 builtin and then its argument prototype would still apply. */
8869 /* The GNU C library defines this for functions which it implements
8870 to always fail with ENOSYS. Some functions are actually named
8871 something starting with __ and the normal name is an alias. */
8872 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8880 if { (eval echo configure
:8881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8882 eval "ac_cv_func_$ac_func=yes"
8884 echo "configure: failed program was:" >&5
8885 cat conftest.
$ac_ext >&5
8887 eval "ac_cv_func_$ac_func=no"
8892 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8893 echo "$ac_t""yes" 1>&6
8894 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8895 cat >> confdefs.h
<<EOF
8896 #define $ac_tr_func 1
8900 echo "$ac_t""no" 1>&6
8904 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8905 echo "configure:8906: checking for getprpwnam in -lsec" >&5
8906 ac_lib_var
=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8907 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8908 echo $ac_n "(cached) $ac_c" 1>&6
8910 ac_save_LIBS
="$LIBS"
8912 cat > conftest.
$ac_ext <<EOF
8913 #line 8914 "configure"
8914 #include "confdefs.h"
8915 /* Override any gcc2 internal prototype to avoid an error. */
8916 /* We use char because int might match the return type of a gcc2
8917 builtin and then its argument prototype would still apply. */
8924 if { (eval echo configure
:8925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8926 eval "ac_cv_lib_$ac_lib_var=yes"
8928 echo "configure: failed program was:" >&5
8929 cat conftest.
$ac_ext >&5
8931 eval "ac_cv_lib_$ac_lib_var=no"
8934 LIBS
="$ac_save_LIBS"
8937 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8938 echo "$ac_t""yes" 1>&6
8939 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8940 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8941 cat >> confdefs.h
<<EOF
8942 #define $ac_tr_lib 1
8948 echo "$ac_t""no" 1>&6
8951 for ac_func
in getprpwnam
8953 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8954 echo "configure:8955: checking for $ac_func" >&5
8955 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8956 echo $ac_n "(cached) $ac_c" 1>&6
8958 cat > conftest.
$ac_ext <<EOF
8959 #line 8960 "configure"
8960 #include "confdefs.h"
8961 /* System header to define __stub macros and hopefully few prototypes,
8962 which can conflict with char $ac_func(); below. */
8964 /* Override any gcc2 internal prototype to avoid an error. */
8965 /* We use char because int might match the return type of a gcc2
8966 builtin and then its argument prototype would still apply. */
8971 /* The GNU C library defines this for functions which it implements
8972 to always fail with ENOSYS. Some functions are actually named
8973 something starting with __ and the normal name is an alias. */
8974 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8982 if { (eval echo configure
:8983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8984 eval "ac_cv_func_$ac_func=yes"
8986 echo "configure: failed program was:" >&5
8987 cat conftest.
$ac_ext >&5
8989 eval "ac_cv_func_$ac_func=no"
8994 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8995 echo "$ac_t""yes" 1>&6
8996 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8997 cat >> confdefs.h
<<EOF
8998 #define $ac_tr_func 1
9002 echo "$ac_t""no" 1>&6
9010 # this bit needs to be modified for each OS that is suported by
9011 # smbwrapper. You need to specify how to created a shared library and
9012 # how to compile C code to produce PIC object files
9014 # these are the defaults, good for lots of systems
9023 # Assume non-shared by default and override below
9025 echo $ac_n "checking ability to build shared libraries""... $ac_c" 1>&6
9026 echo "configure:9027: checking ability to build shared libraries" >&5
9028 # and these are for particular systems
9030 *linux
*) cat >> confdefs.h
<<\EOF
9036 DYNEXP
="-Wl,--export-dynamic"
9038 SONAMEFLAG
="-Wl,-soname="
9039 cat >> confdefs.h
<<\EOF
9040 #define STAT_ST_BLOCKSIZE 512
9044 *solaris
*) cat >> confdefs.h
<<\EOF
9051 if test "${GCC}" = "yes"; then
9053 if test "${ac_cv_prog_gnu_ld}" = "yes"; then
9058 ## ${CFLAGS} added for building 64-bit shared
9059 ## libs using Sun's Compiler
9060 LDSHFLAGS
="-G \${CFLAGS}"
9064 cat >> confdefs.h
<<\EOF
9065 #define STAT_ST_BLOCKSIZE 512
9069 *sunos
*) cat >> confdefs.h
<<\EOF
9075 SONAMEFLAG
="-Wl,-h,"
9076 PICFLAG
="-KPIC" # Is this correct for SunOS
9077 cat >> confdefs.h
<<\EOF
9078 #define STAT_ST_BLOCKSIZE 512
9082 *freebsd
*) BLDSHARED
="true"
9084 DYNEXP
="-Wl,--export-dynamic"
9085 SONAMEFLAG
="-Wl,-soname,"
9086 PICFLAG
="-fPIC -DPIC"
9087 cat >> confdefs.h
<<\EOF
9088 #define STAT_ST_BLOCKSIZE 512
9092 *openbsd
*) BLDSHARED
="true"
9094 DYNEXP
="-Wl,-Bdynamic"
9095 SONAMEFLAG
="-Wl,-soname,"
9097 cat >> confdefs.h
<<\EOF
9098 #define STAT_ST_BLOCKSIZE 512
9102 *irix
*) cat >> confdefs.h
<<\EOF
9107 *irix6
*) cat >> confdefs.h
<<\EOF
9113 ATTEMPT_WRAP32_BUILD
=yes
9115 LDSHFLAGS
="-set_version sgi1.0 -shared"
9116 SONAMEFLAG
="-soname "
9118 if test "${GCC}" = "yes"; then
9123 cat >> confdefs.h
<<\EOF
9124 #define STAT_ST_BLOCKSIZE 512
9128 *aix
*) cat >> confdefs.h
<<\EOF
9133 LDSHFLAGS
="-Wl,-bexpall,-bM:SRE,-bnoentry"
9134 DYNEXP
="-Wl,-brtl,-bexpall"
9136 if test "${GCC}" != "yes"; then
9137 ## for funky AIX compiler using strncpy()
9138 CFLAGS
="$CFLAGS -D_LINUX_SOURCE_COMPAT -qmaxmem=32000"
9141 cat >> confdefs.h
<<\EOF
9142 #define STAT_ST_BLOCKSIZE DEV_BSIZE
9146 *hpux
*) cat >> confdefs.h
<<\EOF
9151 # Use special PIC flags for the native HP-UX compiler.
9152 if test $ac_cv_prog_cc_Ae = yes; then
9155 LDSHFLAGS
="-B symbolic -b -z"
9160 cat >> confdefs.h
<<\EOF
9161 #define STAT_ST_BLOCKSIZE 8192
9165 *qnx
*) cat >> confdefs.h
<<\EOF
9169 cat >> confdefs.h
<<\EOF
9170 #define STAT_ST_BLOCKSIZE 512
9174 *osf
*) cat >> confdefs.h
<<\EOF
9180 SONAMEFLAG
="-Wl,-soname,"
9182 cat >> confdefs.h
<<\EOF
9183 #define STAT_ST_BLOCKSIZE 512
9187 *sco
*) cat >> confdefs.h
<<\EOF
9191 cat >> confdefs.h
<<\EOF
9192 #define STAT_ST_BLOCKSIZE 512
9196 *unixware
*) cat >> confdefs.h
<<\EOF
9202 SONAMEFLAG
="-Wl,-soname,"
9204 cat >> confdefs.h
<<\EOF
9205 #define STAT_ST_BLOCKSIZE 512
9209 *next2
*) cat >> confdefs.h
<<\EOF
9213 cat >> confdefs.h
<<\EOF
9214 #define STAT_ST_BLOCKSIZE 512
9218 *dgux
*) # Extract the first word of "groff", so it can be a program name with args.
9219 set dummy
groff; ac_word
=$2
9220 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9221 echo "configure:9222: checking for $ac_word" >&5
9222 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
9223 echo $ac_n "(cached) $ac_c" 1>&6
9225 if test -n "$ROFF"; then
9226 ac_cv_prog_ROFF
="$ROFF" # Let the user override the test.
9228 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
9230 for ac_dir
in $ac_dummy; do
9231 test -z "$ac_dir" && ac_dir
=.
9232 if test -f $ac_dir/$ac_word; then
9233 ac_cv_prog_ROFF
="groff -etpsR -Tascii -man"
9240 ROFF
="$ac_cv_prog_ROFF"
9241 if test -n "$ROFF"; then
9242 echo "$ac_t""$ROFF" 1>&6
9244 echo "$ac_t""no" 1>&6
9247 cat >> confdefs.h
<<\EOF
9248 #define STAT_ST_BLOCKSIZE 512
9252 *sysv4
*) cat >> confdefs.h
<<\EOF
9257 *-univel-*) if test "$GCC" != yes ; then
9258 cat >> confdefs.h
<<\EOF
9259 #define HAVE_MEMSET 1
9266 *mips-sni-sysv4
*) cat >> confdefs.h
<<\EOF
9267 #define RELIANTUNIX 1
9271 cat >> confdefs.h
<<\EOF
9272 #define STAT_ST_BLOCKSIZE 512
9277 *sysv5
*) cat >> confdefs.h
<<\EOF
9281 if test "$GCC" != yes ; then
9282 cat >> confdefs.h
<<\EOF
9283 #define HAVE_MEMSET 1
9288 cat >> confdefs.h
<<\EOF
9289 #define STAT_ST_BLOCKSIZE 512
9294 cat >> confdefs.h
<<\EOF
9295 #define STAT_ST_BLOCKSIZE 512
9301 echo "$ac_t""$BLDSHARED" 1>&6
9302 echo $ac_n "checking linker flags for shared libraries""... $ac_c" 1>&6
9303 echo "configure:9304: checking linker flags for shared libraries" >&5
9304 echo "$ac_t""$LDSHFLAGS" 1>&6
9305 echo $ac_n "checking compiler flags for position-independent code""... $ac_c" 1>&6
9306 echo "configure:9307: checking compiler flags for position-independent code" >&5
9307 echo "$ac_t""$PICFLAGS" 1>&6
9309 #######################################################
9310 # test whether building a shared library actually works
9311 if test $BLDSHARED = true
; then
9312 echo $ac_n "checking whether building shared libraries actually works""... $ac_c" 1>&6
9313 echo "configure:9314: checking whether building shared libraries actually works" >&5
9314 if eval "test \"`echo '$''{'ac_cv_shlib_works'+set}'`\" = set"; then
9315 echo $ac_n "(cached) $ac_c" 1>&6
9318 ac_cv_shlib_works
=no
9319 # try building a trivial shared library
9320 if test "$PICSUFFIX" = "po"; then
9321 $CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.po
${srcdir-.}/tests
/shlib.c
&&
9322 $CC $CPPFLAGS $CFLAGS `eval echo $LDSHFLAGS` -o shlib.so shlib.po
&&
9323 ac_cv_shlib_works
=yes
9325 $CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.
$PICSUFFIX ${srcdir-.}/tests
/shlib.c
&&
9326 mv shlib.
$PICSUFFIX shlib.po
&&
9327 $CC $CPPFLAGS $CFLAGS `eval echo $LDSHFLAGS` -o shlib.so shlib.po
&&
9328 ac_cv_shlib_works
=yes
9330 rm -f shlib.so shlib.po
9334 echo "$ac_t""$ac_cv_shlib_works" 1>&6
9335 if test $ac_cv_shlib_works = no
; then
9341 # this updates our target list if we can build shared libs
9342 if test $BLDSHARED = true
; then
9343 LIBSMBCLIENT_SHARED
=bin
/libsmbclient.
$SHLIBEXT
9345 LIBSMBCLIENT_SHARED
=
9350 echo $ac_n "checking for long long""... $ac_c" 1>&6
9351 echo "configure:9352: checking for long long" >&5
9352 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
9353 echo $ac_n "(cached) $ac_c" 1>&6
9356 if test "$cross_compiling" = yes; then
9357 samba_cv_have_longlong
=cross
9359 cat > conftest.
$ac_ext <<EOF
9360 #line 9361 "configure"
9361 #include "confdefs.h"
9363 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
9365 if { (eval echo configure
:9366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9367 samba_cv_have_longlong
=yes
9369 echo "configure: failed program was:" >&5
9370 cat conftest.
$ac_ext >&5
9372 samba_cv_have_longlong
=no
9379 echo "$ac_t""$samba_cv_have_longlong" 1>&6
9380 if test x
"$samba_cv_have_longlong" = x
"yes"; then
9381 cat >> confdefs.h
<<\EOF
9382 #define HAVE_LONGLONG 1
9388 # Check if the compiler supports the LL prefix on long long integers.
9391 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
9392 echo "configure:9393: checking for LL suffix on long long integers" >&5
9393 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
9394 echo $ac_n "(cached) $ac_c" 1>&6
9397 cat > conftest.
$ac_ext <<EOF
9398 #line 9399 "configure"
9399 #include "confdefs.h"
9402 long long i = 0x8000000000LL
9405 if { (eval echo configure
:9406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9407 samba_cv_compiler_supports_ll
=yes
9409 echo "configure: failed program was:" >&5
9410 cat conftest.
$ac_ext >&5
9412 samba_cv_compiler_supports_ll
=no
9417 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
9418 if test x
"$samba_cv_compiler_supports_ll" = x
"yes"; then
9419 cat >> confdefs.h
<<\EOF
9420 #define COMPILER_SUPPORTS_LL 1
9426 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
9427 echo "configure:9428: checking for 64 bit off_t" >&5
9428 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
9429 echo $ac_n "(cached) $ac_c" 1>&6
9432 if test "$cross_compiling" = yes; then
9433 samba_cv_SIZEOF_OFF_T
=cross
9435 cat > conftest.
$ac_ext <<EOF
9436 #line 9437 "configure"
9437 #include "confdefs.h"
9439 #include <sys/stat.h>
9440 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
9442 if { (eval echo configure
:9443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9444 samba_cv_SIZEOF_OFF_T
=yes
9446 echo "configure: failed program was:" >&5
9447 cat conftest.
$ac_ext >&5
9449 samba_cv_SIZEOF_OFF_T
=no
9456 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
9457 if test x
"$samba_cv_SIZEOF_OFF_T" = x
"yes"; then
9458 cat >> confdefs.h
<<\EOF
9459 #define SIZEOF_OFF_T 8
9464 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
9465 echo "configure:9466: checking for off64_t" >&5
9466 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
9467 echo $ac_n "(cached) $ac_c" 1>&6
9470 if test "$cross_compiling" = yes; then
9471 samba_cv_HAVE_OFF64_T
=cross
9473 cat > conftest.
$ac_ext <<EOF
9474 #line 9475 "configure"
9475 #include "confdefs.h"
9477 #if defined(HAVE_UNISTD_H)
9481 #include <sys/stat.h>
9482 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9484 if { (eval echo configure
:9485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9486 samba_cv_HAVE_OFF64_T
=yes
9488 echo "configure: failed program was:" >&5
9489 cat conftest.
$ac_ext >&5
9491 samba_cv_HAVE_OFF64_T
=no
9498 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
9499 if test x
"$samba_cv_HAVE_OFF64_T" = x
"yes"; then
9500 cat >> confdefs.h
<<\EOF
9501 #define HAVE_OFF64_T 1
9506 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
9507 echo "configure:9508: checking for 64 bit ino_t" >&5
9508 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
9509 echo $ac_n "(cached) $ac_c" 1>&6
9512 if test "$cross_compiling" = yes; then
9513 samba_cv_SIZEOF_INO_T
=cross
9515 cat > conftest.
$ac_ext <<EOF
9516 #line 9517 "configure"
9517 #include "confdefs.h"
9519 #include <sys/stat.h>
9520 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
9522 if { (eval echo configure
:9523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9524 samba_cv_SIZEOF_INO_T
=yes
9526 echo "configure: failed program was:" >&5
9527 cat conftest.
$ac_ext >&5
9529 samba_cv_SIZEOF_INO_T
=no
9536 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
9537 if test x
"$samba_cv_SIZEOF_INO_T" = x
"yes"; then
9538 cat >> confdefs.h
<<\EOF
9539 #define SIZEOF_INO_T 8
9544 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
9545 echo "configure:9546: checking for ino64_t" >&5
9546 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
9547 echo $ac_n "(cached) $ac_c" 1>&6
9550 if test "$cross_compiling" = yes; then
9551 samba_cv_HAVE_INO64_T
=cross
9553 cat > conftest.
$ac_ext <<EOF
9554 #line 9555 "configure"
9555 #include "confdefs.h"
9557 #if defined(HAVE_UNISTD_H)
9561 #include <sys/stat.h>
9562 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9564 if { (eval echo configure
:9565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9566 samba_cv_HAVE_INO64_T
=yes
9568 echo "configure: failed program was:" >&5
9569 cat conftest.
$ac_ext >&5
9571 samba_cv_HAVE_INO64_T
=no
9578 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
9579 if test x
"$samba_cv_HAVE_INO64_T" = x
"yes"; then
9580 cat >> confdefs.h
<<\EOF
9581 #define HAVE_INO64_T 1
9586 echo $ac_n "checking for dev64_t""... $ac_c" 1>&6
9587 echo "configure:9588: checking for dev64_t" >&5
9588 if eval "test \"`echo '$''{'samba_cv_HAVE_DEV64_T'+set}'`\" = set"; then
9589 echo $ac_n "(cached) $ac_c" 1>&6
9592 if test "$cross_compiling" = yes; then
9593 samba_cv_HAVE_DEV64_T
=cross
9595 cat > conftest.
$ac_ext <<EOF
9596 #line 9597 "configure"
9597 #include "confdefs.h"
9599 #if defined(HAVE_UNISTD_H)
9603 #include <sys/stat.h>
9604 main() { struct stat64 st; dev64_t s; if (sizeof(dev_t) == sizeof(dev64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9606 if { (eval echo configure
:9607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9608 samba_cv_HAVE_DEV64_T
=yes
9610 echo "configure: failed program was:" >&5
9611 cat conftest.
$ac_ext >&5
9613 samba_cv_HAVE_DEV64_T
=no
9620 echo "$ac_t""$samba_cv_HAVE_DEV64_T" 1>&6
9621 if test x
"$samba_cv_HAVE_DEV64_T" = x
"yes"; then
9622 cat >> confdefs.h
<<\EOF
9623 #define HAVE_DEV64_T 1
9628 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
9629 echo "configure:9630: checking for struct dirent64" >&5
9630 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
9631 echo $ac_n "(cached) $ac_c" 1>&6
9634 cat > conftest.
$ac_ext <<EOF
9635 #line 9636 "configure"
9636 #include "confdefs.h"
9638 #if defined(HAVE_UNISTD_H)
9641 #include <sys/types.h>
9647 if { (eval echo configure
:9648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9649 samba_cv_HAVE_STRUCT_DIRENT64
=yes
9651 echo "configure: failed program was:" >&5
9652 cat conftest.
$ac_ext >&5
9654 samba_cv_HAVE_STRUCT_DIRENT64
=no
9659 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
9660 if test x
"$samba_cv_HAVE_STRUCT_DIRENT64" = x
"yes" && test x
"$ac_cv_func_readdir64" = x
"yes"; then
9661 cat >> confdefs.h
<<\EOF
9662 #define HAVE_STRUCT_DIRENT64 1
9667 echo $ac_n "checking for major macro""... $ac_c" 1>&6
9668 echo "configure:9669: checking for major macro" >&5
9669 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MAJOR_FN'+set}'`\" = set"; then
9670 echo $ac_n "(cached) $ac_c" 1>&6
9673 if test "$cross_compiling" = yes; then
9674 samba_cv_HAVE_DEVICE_MAJOR_FN
=cross
9676 cat > conftest.
$ac_ext <<EOF
9677 #line 9678 "configure"
9678 #include "confdefs.h"
9680 #if defined(HAVE_UNISTD_H)
9683 #include <sys/types.h>
9684 main() { dev_t dev; int i = major(dev); return 0; }
9686 if { (eval echo configure
:9687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9688 samba_cv_HAVE_DEVICE_MAJOR_FN
=yes
9690 echo "configure: failed program was:" >&5
9691 cat conftest.
$ac_ext >&5
9693 samba_cv_HAVE_DEVICE_MAJOR_FN
=no
9700 echo "$ac_t""$samba_cv_HAVE_DEVICE_MAJOR_FN" 1>&6
9701 if test x
"$samba_cv_HAVE_DEVICE_MAJOR_FN" = x
"yes"; then
9702 cat >> confdefs.h
<<\EOF
9703 #define HAVE_DEVICE_MAJOR_FN 1
9708 echo $ac_n "checking for minor macro""... $ac_c" 1>&6
9709 echo "configure:9710: checking for minor macro" >&5
9710 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MINOR_FN'+set}'`\" = set"; then
9711 echo $ac_n "(cached) $ac_c" 1>&6
9714 if test "$cross_compiling" = yes; then
9715 samba_cv_HAVE_DEVICE_MINOR_FN
=cross
9717 cat > conftest.
$ac_ext <<EOF
9718 #line 9719 "configure"
9719 #include "confdefs.h"
9721 #if defined(HAVE_UNISTD_H)
9724 #include <sys/types.h>
9725 main() { dev_t dev; int i = minor(dev); return 0; }
9727 if { (eval echo configure
:9728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9729 samba_cv_HAVE_DEVICE_MINOR_FN
=yes
9731 echo "configure: failed program was:" >&5
9732 cat conftest.
$ac_ext >&5
9734 samba_cv_HAVE_DEVICE_MINOR_FN
=no
9741 echo "$ac_t""$samba_cv_HAVE_DEVICE_MINOR_FN" 1>&6
9742 if test x
"$samba_cv_HAVE_DEVICE_MINOR_FN" = x
"yes"; then
9743 cat >> confdefs.h
<<\EOF
9744 #define HAVE_DEVICE_MINOR_FN 1
9749 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
9750 echo "configure:9751: checking for unsigned char" >&5
9751 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
9752 echo $ac_n "(cached) $ac_c" 1>&6
9755 if test "$cross_compiling" = yes; then
9756 samba_cv_HAVE_UNSIGNED_CHAR
=cross
9758 cat > conftest.
$ac_ext <<EOF
9759 #line 9760 "configure"
9760 #include "confdefs.h"
9762 main() { char c; c=250; exit((c > 0)?0:1); }
9764 if { (eval echo configure
:9765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9766 samba_cv_HAVE_UNSIGNED_CHAR
=yes
9768 echo "configure: failed program was:" >&5
9769 cat conftest.
$ac_ext >&5
9771 samba_cv_HAVE_UNSIGNED_CHAR
=no
9778 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
9779 if test x
"$samba_cv_HAVE_UNSIGNED_CHAR" = x
"yes"; then
9780 cat >> confdefs.h
<<\EOF
9781 #define HAVE_UNSIGNED_CHAR 1
9786 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
9787 echo "configure:9788: checking for sin_len in sock" >&5
9788 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
9789 echo $ac_n "(cached) $ac_c" 1>&6
9792 cat > conftest.
$ac_ext <<EOF
9793 #line 9794 "configure"
9794 #include "confdefs.h"
9795 #include <sys/types.h>
9796 #include <sys/socket.h>
9797 #include <netinet/in.h>
9799 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
9802 if { (eval echo configure
:9803: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9804 samba_cv_HAVE_SOCK_SIN_LEN
=yes
9806 echo "configure: failed program was:" >&5
9807 cat conftest.
$ac_ext >&5
9809 samba_cv_HAVE_SOCK_SIN_LEN
=no
9814 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
9815 if test x
"$samba_cv_HAVE_SOCK_SIN_LEN" = x
"yes"; then
9816 cat >> confdefs.h
<<\EOF
9817 #define HAVE_SOCK_SIN_LEN 1
9822 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
9823 echo "configure:9824: checking whether seekdir returns void" >&5
9824 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
9825 echo $ac_n "(cached) $ac_c" 1>&6
9828 cat > conftest.
$ac_ext <<EOF
9829 #line 9830 "configure"
9830 #include "confdefs.h"
9831 #include <sys/types.h>
9833 void seekdir(DIR *d, long loc) { return; }
9838 if { (eval echo configure
:9839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9840 samba_cv_SEEKDIR_RETURNS_VOID
=yes
9842 echo "configure: failed program was:" >&5
9843 cat conftest.
$ac_ext >&5
9845 samba_cv_SEEKDIR_RETURNS_VOID
=no
9850 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
9851 if test x
"$samba_cv_SEEKDIR_RETURNS_VOID" = x
"yes"; then
9852 cat >> confdefs.h
<<\EOF
9853 #define SEEKDIR_RETURNS_VOID 1
9858 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9859 echo "configure:9860: checking for __FUNCTION__ macro" >&5
9860 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9861 echo $ac_n "(cached) $ac_c" 1>&6
9864 cat > conftest.
$ac_ext <<EOF
9865 #line 9866 "configure"
9866 #include "confdefs.h"
9869 printf("%s\n", __FUNCTION__);
9872 if { (eval echo configure
:9873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9874 samba_cv_HAVE_FUNCTION_MACRO
=yes
9876 echo "configure: failed program was:" >&5
9877 cat conftest.
$ac_ext >&5
9879 samba_cv_HAVE_FUNCTION_MACRO
=no
9884 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9885 if test x
"$samba_cv_HAVE_FUNCTION_MACRO" = x
"yes"; then
9886 cat >> confdefs.h
<<\EOF
9887 #define HAVE_FUNCTION_MACRO 1
9892 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9893 echo "configure:9894: checking if gettimeofday takes tz argument" >&5
9894 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9895 echo $ac_n "(cached) $ac_c" 1>&6
9898 if test "$cross_compiling" = yes; then
9899 samba_cv_HAVE_GETTIMEOFDAY_TZ
=cross
9901 cat > conftest.
$ac_ext <<EOF
9902 #line 9903 "configure"
9903 #include "confdefs.h"
9905 #include <sys/time.h>
9907 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9909 if { (eval echo configure
:9910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9911 samba_cv_HAVE_GETTIMEOFDAY_TZ
=yes
9913 echo "configure: failed program was:" >&5
9914 cat conftest.
$ac_ext >&5
9916 samba_cv_HAVE_GETTIMEOFDAY_TZ
=no
9923 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9924 if test x
"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x
"yes"; then
9925 cat >> confdefs.h
<<\EOF
9926 #define HAVE_GETTIMEOFDAY_TZ 1
9931 echo $ac_n "checking for __va_copy""... $ac_c" 1>&6
9932 echo "configure:9933: checking for __va_copy" >&5
9933 if eval "test \"`echo '$''{'samba_cv_HAVE_VA_COPY'+set}'`\" = set"; then
9934 echo $ac_n "(cached) $ac_c" 1>&6
9937 cat > conftest.
$ac_ext <<EOF
9938 #line 9939 "configure"
9939 #include "confdefs.h"
9946 if { (eval echo configure
:9947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9948 samba_cv_HAVE_VA_COPY
=yes
9950 echo "configure: failed program was:" >&5
9951 cat conftest.
$ac_ext >&5
9953 samba_cv_HAVE_VA_COPY
=no
9958 echo "$ac_t""$samba_cv_HAVE_VA_COPY" 1>&6
9959 if test x
"$samba_cv_HAVE_VA_COPY" = x
"yes"; then
9960 cat >> confdefs.h
<<\EOF
9961 #define HAVE_VA_COPY 1
9966 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
9967 echo "configure:9968: checking for C99 vsnprintf" >&5
9968 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
9969 echo $ac_n "(cached) $ac_c" 1>&6
9972 if test "$cross_compiling" = yes; then
9973 samba_cv_HAVE_C99_VSNPRINTF
=cross
9975 cat > conftest.
$ac_ext <<EOF
9976 #line 9977 "configure"
9977 #include "confdefs.h"
9979 #include <sys/types.h>
9981 void foo(const char *format, ...) {
9986 va_start(ap, format);
9987 len = vsnprintf(buf, 0, format, ap);
9989 if (len != 5) exit(1);
9991 va_start(ap, format);
9992 len = vsnprintf(0, 0, format, ap);
9994 if (len != 5) exit(1);
9996 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
10000 main() { foo("hello"); }
10003 if { (eval echo configure
:10004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10005 samba_cv_HAVE_C99_VSNPRINTF
=yes
10007 echo "configure: failed program was:" >&5
10008 cat conftest.
$ac_ext >&5
10010 samba_cv_HAVE_C99_VSNPRINTF
=no
10017 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
10018 if test x
"$samba_cv_HAVE_C99_VSNPRINTF" = x
"yes"; then
10019 cat >> confdefs.h
<<\EOF
10020 #define HAVE_C99_VSNPRINTF 1
10025 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
10026 echo "configure:10027: checking for broken readdir" >&5
10027 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
10028 echo $ac_n "(cached) $ac_c" 1>&6
10031 if test "$cross_compiling" = yes; then
10032 samba_cv_HAVE_BROKEN_READDIR
=cross
10034 cat > conftest.
$ac_ext <<EOF
10035 #line 10036 "configure"
10036 #include "confdefs.h"
10037 #include <sys/types.h>
10038 #include <dirent.h>
10039 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
10040 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
10041 di->d_name[0] == 0) exit(0); exit(1);}
10043 if { (eval echo configure
:10044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10045 samba_cv_HAVE_BROKEN_READDIR
=yes
10047 echo "configure: failed program was:" >&5
10048 cat conftest.
$ac_ext >&5
10050 samba_cv_HAVE_BROKEN_READDIR
=no
10057 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
10058 if test x
"$samba_cv_HAVE_BROKEN_READDIR" = x
"yes"; then
10059 cat >> confdefs.h
<<\EOF
10060 #define HAVE_BROKEN_READDIR 1
10065 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
10066 echo "configure:10067: checking for utimbuf" >&5
10067 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
10068 echo $ac_n "(cached) $ac_c" 1>&6
10071 cat > conftest.
$ac_ext <<EOF
10072 #line 10073 "configure"
10073 #include "confdefs.h"
10074 #include <sys/types.h>
10077 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
10080 if { (eval echo configure
:10081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10082 samba_cv_HAVE_UTIMBUF
=yes
10084 echo "configure: failed program was:" >&5
10085 cat conftest.
$ac_ext >&5
10087 samba_cv_HAVE_UTIMBUF
=no
10092 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
10093 if test x
"$samba_cv_HAVE_UTIMBUF" = x
"yes"; then
10094 cat >> confdefs.h
<<\EOF
10095 #define HAVE_UTIMBUF 1
10101 for ac_func
in pututline pututxline updwtmp updwtmpx getutmpx
10103 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10104 echo "configure:10105: checking for $ac_func" >&5
10105 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10106 echo $ac_n "(cached) $ac_c" 1>&6
10108 cat > conftest.
$ac_ext <<EOF
10109 #line 10110 "configure"
10110 #include "confdefs.h"
10111 /* System header to define __stub macros and hopefully few prototypes,
10112 which can conflict with char $ac_func(); below. */
10113 #include <assert.h>
10114 /* Override any gcc2 internal prototype to avoid an error. */
10115 /* We use char because int might match the return type of a gcc2
10116 builtin and then its argument prototype would still apply. */
10121 /* The GNU C library defines this for functions which it implements
10122 to always fail with ENOSYS. Some functions are actually named
10123 something starting with __ and the normal name is an alias. */
10124 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10132 if { (eval echo configure
:10133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10134 eval "ac_cv_func_$ac_func=yes"
10136 echo "configure: failed program was:" >&5
10137 cat conftest.
$ac_ext >&5
10139 eval "ac_cv_func_$ac_func=no"
10144 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10145 echo "$ac_t""yes" 1>&6
10146 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10147 cat >> confdefs.h
<<EOF
10148 #define $ac_tr_func 1
10152 echo "$ac_t""no" 1>&6
10157 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
10158 echo "configure:10159: checking for ut_name in utmp" >&5
10159 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
10160 echo $ac_n "(cached) $ac_c" 1>&6
10163 cat > conftest.
$ac_ext <<EOF
10164 #line 10165 "configure"
10165 #include "confdefs.h"
10166 #include <sys/types.h>
10169 struct utmp ut; ut.ut_name[0] = 'a';
10172 if { (eval echo configure
:10173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10174 samba_cv_HAVE_UT_UT_NAME
=yes
10176 echo "configure: failed program was:" >&5
10177 cat conftest.
$ac_ext >&5
10179 samba_cv_HAVE_UT_UT_NAME
=no
10184 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
10185 if test x
"$samba_cv_HAVE_UT_UT_NAME" = x
"yes"; then
10186 cat >> confdefs.h
<<\EOF
10187 #define HAVE_UT_UT_NAME 1
10192 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
10193 echo "configure:10194: checking for ut_user in utmp" >&5
10194 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
10195 echo $ac_n "(cached) $ac_c" 1>&6
10198 cat > conftest.
$ac_ext <<EOF
10199 #line 10200 "configure"
10200 #include "confdefs.h"
10201 #include <sys/types.h>
10204 struct utmp ut; ut.ut_user[0] = 'a';
10207 if { (eval echo configure
:10208: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10209 samba_cv_HAVE_UT_UT_USER
=yes
10211 echo "configure: failed program was:" >&5
10212 cat conftest.
$ac_ext >&5
10214 samba_cv_HAVE_UT_UT_USER
=no
10219 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
10220 if test x
"$samba_cv_HAVE_UT_UT_USER" = x
"yes"; then
10221 cat >> confdefs.h
<<\EOF
10222 #define HAVE_UT_UT_USER 1
10227 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
10228 echo "configure:10229: checking for ut_id in utmp" >&5
10229 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
10230 echo $ac_n "(cached) $ac_c" 1>&6
10233 cat > conftest.
$ac_ext <<EOF
10234 #line 10235 "configure"
10235 #include "confdefs.h"
10236 #include <sys/types.h>
10239 struct utmp ut; ut.ut_id[0] = 'a';
10242 if { (eval echo configure
:10243: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10244 samba_cv_HAVE_UT_UT_ID
=yes
10246 echo "configure: failed program was:" >&5
10247 cat conftest.
$ac_ext >&5
10249 samba_cv_HAVE_UT_UT_ID
=no
10254 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
10255 if test x
"$samba_cv_HAVE_UT_UT_ID" = x
"yes"; then
10256 cat >> confdefs.h
<<\EOF
10257 #define HAVE_UT_UT_ID 1
10262 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
10263 echo "configure:10264: checking for ut_host in utmp" >&5
10264 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
10265 echo $ac_n "(cached) $ac_c" 1>&6
10268 cat > conftest.
$ac_ext <<EOF
10269 #line 10270 "configure"
10270 #include "confdefs.h"
10271 #include <sys/types.h>
10274 struct utmp ut; ut.ut_host[0] = 'a';
10277 if { (eval echo configure
:10278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10279 samba_cv_HAVE_UT_UT_HOST
=yes
10281 echo "configure: failed program was:" >&5
10282 cat conftest.
$ac_ext >&5
10284 samba_cv_HAVE_UT_UT_HOST
=no
10289 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
10290 if test x
"$samba_cv_HAVE_UT_UT_HOST" = x
"yes"; then
10291 cat >> confdefs.h
<<\EOF
10292 #define HAVE_UT_UT_HOST 1
10297 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
10298 echo "configure:10299: checking for ut_time in utmp" >&5
10299 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
10300 echo $ac_n "(cached) $ac_c" 1>&6
10303 cat > conftest.
$ac_ext <<EOF
10304 #line 10305 "configure"
10305 #include "confdefs.h"
10306 #include <sys/types.h>
10309 struct utmp ut; time_t t; ut.ut_time = t;
10312 if { (eval echo configure
:10313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10314 samba_cv_HAVE_UT_UT_TIME
=yes
10316 echo "configure: failed program was:" >&5
10317 cat conftest.
$ac_ext >&5
10319 samba_cv_HAVE_UT_UT_TIME
=no
10324 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
10325 if test x
"$samba_cv_HAVE_UT_UT_TIME" = x
"yes"; then
10326 cat >> confdefs.h
<<\EOF
10327 #define HAVE_UT_UT_TIME 1
10332 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
10333 echo "configure:10334: checking for ut_tv in utmp" >&5
10334 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
10335 echo $ac_n "(cached) $ac_c" 1>&6
10338 cat > conftest.
$ac_ext <<EOF
10339 #line 10340 "configure"
10340 #include "confdefs.h"
10341 #include <sys/types.h>
10344 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
10347 if { (eval echo configure
:10348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10349 samba_cv_HAVE_UT_UT_TV
=yes
10351 echo "configure: failed program was:" >&5
10352 cat conftest.
$ac_ext >&5
10354 samba_cv_HAVE_UT_UT_TV
=no
10359 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
10360 if test x
"$samba_cv_HAVE_UT_UT_TV" = x
"yes"; then
10361 cat >> confdefs.h
<<\EOF
10362 #define HAVE_UT_UT_TV 1
10367 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
10368 echo "configure:10369: checking for ut_type in utmp" >&5
10369 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
10370 echo $ac_n "(cached) $ac_c" 1>&6
10373 cat > conftest.
$ac_ext <<EOF
10374 #line 10375 "configure"
10375 #include "confdefs.h"
10376 #include <sys/types.h>
10379 struct utmp ut; ut.ut_type = 0;
10382 if { (eval echo configure
:10383: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10384 samba_cv_HAVE_UT_UT_TYPE
=yes
10386 echo "configure: failed program was:" >&5
10387 cat conftest.
$ac_ext >&5
10389 samba_cv_HAVE_UT_UT_TYPE
=no
10394 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
10395 if test x
"$samba_cv_HAVE_UT_UT_TYPE" = x
"yes"; then
10396 cat >> confdefs.h
<<\EOF
10397 #define HAVE_UT_UT_TYPE 1
10402 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
10403 echo "configure:10404: checking for ut_pid in utmp" >&5
10404 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
10405 echo $ac_n "(cached) $ac_c" 1>&6
10408 cat > conftest.
$ac_ext <<EOF
10409 #line 10410 "configure"
10410 #include "confdefs.h"
10411 #include <sys/types.h>
10414 struct utmp ut; ut.ut_pid = 0;
10417 if { (eval echo configure
:10418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10419 samba_cv_HAVE_UT_UT_PID
=yes
10421 echo "configure: failed program was:" >&5
10422 cat conftest.
$ac_ext >&5
10424 samba_cv_HAVE_UT_UT_PID
=no
10429 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
10430 if test x
"$samba_cv_HAVE_UT_UT_PID" = x
"yes"; then
10431 cat >> confdefs.h
<<\EOF
10432 #define HAVE_UT_UT_PID 1
10437 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
10438 echo "configure:10439: checking for ut_exit in utmp" >&5
10439 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
10440 echo $ac_n "(cached) $ac_c" 1>&6
10443 cat > conftest.
$ac_ext <<EOF
10444 #line 10445 "configure"
10445 #include "confdefs.h"
10446 #include <sys/types.h>
10449 struct utmp ut; ut.ut_exit.e_exit = 0;
10452 if { (eval echo configure
:10453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10454 samba_cv_HAVE_UT_UT_EXIT
=yes
10456 echo "configure: failed program was:" >&5
10457 cat conftest.
$ac_ext >&5
10459 samba_cv_HAVE_UT_UT_EXIT
=no
10464 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
10465 if test x
"$samba_cv_HAVE_UT_UT_EXIT" = x
"yes"; then
10466 cat >> confdefs.h
<<\EOF
10467 #define HAVE_UT_UT_EXIT 1
10472 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
10473 echo "configure:10474: checking for ut_addr in utmp" >&5
10474 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
10475 echo $ac_n "(cached) $ac_c" 1>&6
10478 cat > conftest.
$ac_ext <<EOF
10479 #line 10480 "configure"
10480 #include "confdefs.h"
10481 #include <sys/types.h>
10484 struct utmp ut; ut.ut_addr = 0;
10487 if { (eval echo configure
:10488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10489 samba_cv_HAVE_UT_UT_ADDR
=yes
10491 echo "configure: failed program was:" >&5
10492 cat conftest.
$ac_ext >&5
10494 samba_cv_HAVE_UT_UT_ADDR
=no
10499 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
10500 if test x
"$samba_cv_HAVE_UT_UT_ADDR" = x
"yes"; then
10501 cat >> confdefs.h
<<\EOF
10502 #define HAVE_UT_UT_ADDR 1
10507 if test x
$ac_cv_func_pututline = xyes
; then
10508 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
10509 echo "configure:10510: checking whether pututline returns pointer" >&5
10510 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
10511 echo $ac_n "(cached) $ac_c" 1>&6
10514 cat > conftest.
$ac_ext <<EOF
10515 #line 10516 "configure"
10516 #include "confdefs.h"
10517 #include <sys/types.h>
10520 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
10523 if { (eval echo configure
:10524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10525 samba_cv_PUTUTLINE_RETURNS_UTMP
=yes
10527 echo "configure: failed program was:" >&5
10528 cat conftest.
$ac_ext >&5
10530 samba_cv_PUTUTLINE_RETURNS_UTMP
=no
10535 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
10536 if test x
"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x
"yes"; then
10537 cat >> confdefs.h
<<\EOF
10538 #define PUTUTLINE_RETURNS_UTMP 1
10544 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
10545 echo "configure:10546: checking for ut_syslen in utmpx" >&5
10546 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
10547 echo $ac_n "(cached) $ac_c" 1>&6
10550 cat > conftest.
$ac_ext <<EOF
10551 #line 10552 "configure"
10552 #include "confdefs.h"
10553 #include <sys/types.h>
10556 struct utmpx ux; ux.ut_syslen = 0;
10559 if { (eval echo configure
:10560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10561 samba_cv_HAVE_UX_UT_SYSLEN
=yes
10563 echo "configure: failed program was:" >&5
10564 cat conftest.
$ac_ext >&5
10566 samba_cv_HAVE_UX_UT_SYSLEN
=no
10571 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
10572 if test x
"$samba_cv_HAVE_UX_UT_SYSLEN" = x
"yes"; then
10573 cat >> confdefs.h
<<\EOF
10574 #define HAVE_UX_UT_SYSLEN 1
10580 #################################################
10581 # check for libiconv support
10582 echo $ac_n "checking whether to use libiconv""... $ac_c" 1>&6
10583 echo "configure:10584: checking whether to use libiconv" >&5
10584 # Check whether --with-libiconv or --without-libiconv was given.
10585 if test "${with_libiconv+set}" = set; then
10586 withval
="$with_libiconv"
10589 echo "$ac_t""no" 1>&6
10592 echo "$ac_t""yes" 1>&6
10593 CFLAGS
="$CFLAGS -I$withval/include"
10594 LDFLAGS
="$LDFLAGS -L$withval/lib"
10595 echo $ac_n "checking for iconv_open in -liconv""... $ac_c" 1>&6
10596 echo "configure:10597: checking for iconv_open in -liconv" >&5
10597 ac_lib_var
=`echo iconv'_'iconv_open | sed 'y%./+-%__p_%'`
10598 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10599 echo $ac_n "(cached) $ac_c" 1>&6
10601 ac_save_LIBS
="$LIBS"
10602 LIBS
="-liconv $LIBS"
10603 cat > conftest.
$ac_ext <<EOF
10604 #line 10605 "configure"
10605 #include "confdefs.h"
10606 /* Override any gcc2 internal prototype to avoid an error. */
10607 /* We use char because int might match the return type of a gcc2
10608 builtin and then its argument prototype would still apply. */
10615 if { (eval echo configure
:10616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10617 eval "ac_cv_lib_$ac_lib_var=yes"
10619 echo "configure: failed program was:" >&5
10620 cat conftest.
$ac_ext >&5
10622 eval "ac_cv_lib_$ac_lib_var=no"
10625 LIBS
="$ac_save_LIBS"
10628 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10629 echo "$ac_t""yes" 1>&6
10630 ac_tr_lib
=HAVE_LIB
`echo iconv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10631 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10632 cat >> confdefs.h
<<EOF
10633 #define $ac_tr_lib 1
10636 LIBS
="-liconv $LIBS"
10639 echo "$ac_t""no" 1>&6
10642 cat >> confdefs.h
<<EOF
10643 #define WITH_LIBICONV "${withval}"
10649 echo "$ac_t""no" 1>&6
10656 # check for iconv in libc
10657 echo $ac_n "checking for working iconv""... $ac_c" 1>&6
10658 echo "configure:10659: checking for working iconv" >&5
10659 if eval "test \"`echo '$''{'samba_cv_HAVE_NATIVE_ICONV'+set}'`\" = set"; then
10660 echo $ac_n "(cached) $ac_c" 1>&6
10663 if test "$cross_compiling" = yes; then
10664 samba_cv_HAVE_NATIVE_ICONV
=cross
10666 cat > conftest.
$ac_ext <<EOF
10667 #line 10668 "configure"
10668 #include "confdefs.h"
10672 iconv_t cd = iconv_open("ASCII", "UCS-2LE");
10673 if (cd == 0 || cd == (iconv_t)-1) return -1;
10678 if { (eval echo configure
:10679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10680 samba_cv_HAVE_NATIVE_ICONV
=yes
10682 echo "configure: failed program was:" >&5
10683 cat conftest.
$ac_ext >&5
10685 samba_cv_HAVE_NATIVE_ICONV
=no
10692 echo "$ac_t""$samba_cv_HAVE_NATIVE_ICONV" 1>&6
10693 if test x
"$samba_cv_HAVE_NATIVE_ICONV" = x
"yes"; then
10694 cat >> confdefs.h
<<\EOF
10695 #define HAVE_NATIVE_ICONV 1
10701 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
10702 echo "configure:10703: checking for Linux kernel oplocks" >&5
10703 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
10704 echo $ac_n "(cached) $ac_c" 1>&6
10707 if test "$cross_compiling" = yes; then
10708 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=cross
10710 cat > conftest.
$ac_ext <<EOF
10711 #line 10712 "configure"
10712 #include "confdefs.h"
10714 #include <sys/types.h>
10717 #define F_GETLEASE 1025
10720 int fd = open("/dev/null", O_RDONLY);
10721 return fcntl(fd, F_GETLEASE, 0) == -1;
10725 if { (eval echo configure
:10726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10727 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=yes
10729 echo "configure: failed program was:" >&5
10730 cat conftest.
$ac_ext >&5
10732 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=no
10739 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
10740 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x
"yes"; then
10741 cat >> confdefs.h
<<\EOF
10742 #define HAVE_KERNEL_OPLOCKS_LINUX 1
10747 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
10748 echo "configure:10749: checking for kernel change notify support" >&5
10749 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
10750 echo $ac_n "(cached) $ac_c" 1>&6
10753 if test "$cross_compiling" = yes; then
10754 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=cross
10756 cat > conftest.
$ac_ext <<EOF
10757 #line 10758 "configure"
10758 #include "confdefs.h"
10760 #include <sys/types.h>
10762 #include <signal.h>
10764 #define F_NOTIFY 1026
10767 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
10771 if { (eval echo configure
:10772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10773 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=yes
10775 echo "configure: failed program was:" >&5
10776 cat conftest.
$ac_ext >&5
10778 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=no
10785 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
10786 if test x
"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x
"yes"; then
10787 cat >> confdefs.h
<<\EOF
10788 #define HAVE_KERNEL_CHANGE_NOTIFY 1
10793 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
10794 echo "configure:10795: checking for kernel share modes" >&5
10795 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
10796 echo $ac_n "(cached) $ac_c" 1>&6
10799 if test "$cross_compiling" = yes; then
10800 samba_cv_HAVE_KERNEL_SHARE_MODES
=cross
10802 cat > conftest.
$ac_ext <<EOF
10803 #line 10804 "configure"
10804 #include "confdefs.h"
10806 #include <sys/types.h>
10808 #include <signal.h>
10809 #include <sys/file.h>
10811 #define LOCK_MAND 32
10812 #define LOCK_READ 64
10815 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
10819 if { (eval echo configure
:10820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10821 samba_cv_HAVE_KERNEL_SHARE_MODES
=yes
10823 echo "configure: failed program was:" >&5
10824 cat conftest.
$ac_ext >&5
10826 samba_cv_HAVE_KERNEL_SHARE_MODES
=no
10833 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
10834 if test x
"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x
"yes"; then
10835 cat >> confdefs.h
<<\EOF
10836 #define HAVE_KERNEL_SHARE_MODES 1
10844 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
10845 echo "configure:10846: checking for IRIX kernel oplock type definitions" >&5
10846 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
10847 echo $ac_n "(cached) $ac_c" 1>&6
10850 cat > conftest.
$ac_ext <<EOF
10851 #line 10852 "configure"
10852 #include "confdefs.h"
10853 #include <sys/types.h>
10856 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
10859 if { (eval echo configure
:10860: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10861 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=yes
10863 echo "configure: failed program was:" >&5
10864 cat conftest.
$ac_ext >&5
10866 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=no
10871 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
10872 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x
"yes"; then
10873 cat >> confdefs.h
<<\EOF
10874 #define HAVE_KERNEL_OPLOCKS_IRIX 1
10879 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
10880 echo "configure:10881: checking for irix specific capabilities" >&5
10881 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
10882 echo $ac_n "(cached) $ac_c" 1>&6
10885 if test "$cross_compiling" = yes; then
10886 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=cross
10888 cat > conftest.
$ac_ext <<EOF
10889 #line 10890 "configure"
10890 #include "confdefs.h"
10891 #include <sys/types.h>
10892 #include <sys/capability.h>
10895 if ((cap = cap_get_proc()) == NULL)
10897 cap->cap_effective |= CAP_NETWORK_MGT;
10898 cap->cap_inheritable |= CAP_NETWORK_MGT;
10904 if { (eval echo configure
:10905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10906 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=yes
10908 echo "configure: failed program was:" >&5
10909 cat conftest.
$ac_ext >&5
10911 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=no
10918 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
10919 if test x
"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x
"yes"; then
10920 cat >> confdefs.h
<<\EOF
10921 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
10927 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
10928 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
10931 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10932 echo "configure:10933: checking for int16 typedef included by rpc/rpc.h" >&5
10933 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10934 echo $ac_n "(cached) $ac_c" 1>&6
10937 cat > conftest.
$ac_ext <<EOF
10938 #line 10939 "configure"
10939 #include "confdefs.h"
10940 #include <sys/types.h>
10941 #if defined(HAVE_RPC_RPC_H)
10942 #include <rpc/rpc.h>
10948 if { (eval echo configure
:10949: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10950 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=yes
10952 echo "configure: failed program was:" >&5
10953 cat conftest.
$ac_ext >&5
10955 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=no
10960 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
10961 if test x
"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x
"yes"; then
10962 cat >> confdefs.h
<<\EOF
10963 #define HAVE_INT16_FROM_RPC_RPC_H 1
10968 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10969 echo "configure:10970: checking for uint16 typedef included by rpc/rpc.h" >&5
10970 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10971 echo $ac_n "(cached) $ac_c" 1>&6
10974 cat > conftest.
$ac_ext <<EOF
10975 #line 10976 "configure"
10976 #include "confdefs.h"
10977 #include <sys/types.h>
10978 #if defined(HAVE_RPC_RPC_H)
10979 #include <rpc/rpc.h>
10985 if { (eval echo configure
:10986: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10987 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=yes
10989 echo "configure: failed program was:" >&5
10990 cat conftest.
$ac_ext >&5
10992 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=no
10997 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
10998 if test x
"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x
"yes"; then
10999 cat >> confdefs.h
<<\EOF
11000 #define HAVE_UINT16_FROM_RPC_RPC_H 1
11005 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
11006 echo "configure:11007: checking for int32 typedef included by rpc/rpc.h" >&5
11007 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
11008 echo $ac_n "(cached) $ac_c" 1>&6
11011 cat > conftest.
$ac_ext <<EOF
11012 #line 11013 "configure"
11013 #include "confdefs.h"
11014 #include <sys/types.h>
11015 #if defined(HAVE_RPC_RPC_H)
11016 #include <rpc/rpc.h>
11022 if { (eval echo configure
:11023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11024 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=yes
11026 echo "configure: failed program was:" >&5
11027 cat conftest.
$ac_ext >&5
11029 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=no
11034 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
11035 if test x
"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x
"yes"; then
11036 cat >> confdefs.h
<<\EOF
11037 #define HAVE_INT32_FROM_RPC_RPC_H 1
11042 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
11043 echo "configure:11044: checking for uint32 typedef included by rpc/rpc.h" >&5
11044 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
11045 echo $ac_n "(cached) $ac_c" 1>&6
11048 cat > conftest.
$ac_ext <<EOF
11049 #line 11050 "configure"
11050 #include "confdefs.h"
11051 #include <sys/types.h>
11052 #if defined(HAVE_RPC_RPC_H)
11053 #include <rpc/rpc.h>
11059 if { (eval echo configure
:11060: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11061 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=yes
11063 echo "configure: failed program was:" >&5
11064 cat conftest.
$ac_ext >&5
11066 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=no
11071 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
11072 if test x
"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x
"yes"; then
11073 cat >> confdefs.h
<<\EOF
11074 #define HAVE_UINT32_FROM_RPC_RPC_H 1
11080 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
11081 echo "configure:11082: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
11082 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
11083 echo $ac_n "(cached) $ac_c" 1>&6
11086 cat > conftest.
$ac_ext <<EOF
11087 #line 11088 "configure"
11088 #include "confdefs.h"
11089 #include <sys/types.h>
11090 #ifdef HAVE_SYS_SECURITY_H
11091 #include <sys/security.h>
11093 #endif /* HAVE_SYS_SECURITY_H */
11094 #if defined(HAVE_RPC_RPC_H)
11095 #include <rpc/rpc.h>
11101 if { (eval echo configure
:11102: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11103 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=no
11105 echo "configure: failed program was:" >&5
11106 cat conftest.
$ac_ext >&5
11108 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=yes
11113 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
11114 if test x
"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x
"yes"; then
11115 cat >> confdefs.h
<<\EOF
11116 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
11121 echo $ac_n "checking for test routines""... $ac_c" 1>&6
11122 echo "configure:11123: checking for test routines" >&5
11123 if test "$cross_compiling" = yes; then
11124 echo "configure: warning: cannot run when cross-compiling" 1>&2
11126 cat > conftest.
$ac_ext <<EOF
11127 #line 11128 "configure"
11128 #include "confdefs.h"
11129 #include "${srcdir-.}/tests/trivial.c"
11131 if { (eval echo configure
:11132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11133 echo "$ac_t""yes" 1>&6
11135 echo "configure: failed program was:" >&5
11136 cat conftest.
$ac_ext >&5
11138 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
11144 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
11145 echo "configure:11146: checking for ftruncate extend" >&5
11146 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
11147 echo $ac_n "(cached) $ac_c" 1>&6
11150 if test "$cross_compiling" = yes; then
11151 samba_cv_HAVE_FTRUNCATE_EXTEND
=cross
11153 cat > conftest.
$ac_ext <<EOF
11154 #line 11155 "configure"
11155 #include "confdefs.h"
11156 #include "${srcdir-.}/tests/ftruncate.c"
11158 if { (eval echo configure
:11159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11160 samba_cv_HAVE_FTRUNCATE_EXTEND
=yes
11162 echo "configure: failed program was:" >&5
11163 cat conftest.
$ac_ext >&5
11165 samba_cv_HAVE_FTRUNCATE_EXTEND
=no
11172 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
11173 if test x
"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x
"yes"; then
11174 cat >> confdefs.h
<<\EOF
11175 #define HAVE_FTRUNCATE_EXTEND 1
11180 echo $ac_n "checking for AF_LOCAL socket support""... $ac_c" 1>&6
11181 echo "configure:11182: checking for AF_LOCAL socket support" >&5
11182 if eval "test \"`echo '$''{'samba_cv_HAVE_WORKING_AF_LOCAL'+set}'`\" = set"; then
11183 echo $ac_n "(cached) $ac_c" 1>&6
11186 if test "$cross_compiling" = yes; then
11187 samba_cv_HAVE_WORKING_AF_LOCAL
=cross
11189 cat > conftest.
$ac_ext <<EOF
11190 #line 11191 "configure"
11191 #include "confdefs.h"
11192 #include "${srcdir-.}/tests/unixsock.c"
11194 if { (eval echo configure
:11195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11196 samba_cv_HAVE_WORKING_AF_LOCAL
=yes
11198 echo "configure: failed program was:" >&5
11199 cat conftest.
$ac_ext >&5
11201 samba_cv_HAVE_WORKING_AF_LOCAL
=no
11208 echo "$ac_t""$samba_cv_HAVE_WORKING_AF_LOCAL" 1>&6
11209 if test x
"$samba_cv_HAVE_WORKING_AF_LOCAL" != xno
11211 cat >> confdefs.h
<<\EOF
11212 #define HAVE_WORKING_AF_LOCAL 1
11217 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
11218 echo "configure:11219: checking for broken getgroups" >&5
11219 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
11220 echo $ac_n "(cached) $ac_c" 1>&6
11223 if test "$cross_compiling" = yes; then
11224 samba_cv_HAVE_BROKEN_GETGROUPS
=cross
11226 cat > conftest.
$ac_ext <<EOF
11227 #line 11228 "configure"
11228 #include "confdefs.h"
11229 #include "${srcdir-.}/tests/getgroups.c"
11231 if { (eval echo configure
:11232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11233 samba_cv_HAVE_BROKEN_GETGROUPS
=yes
11235 echo "configure: failed program was:" >&5
11236 cat conftest.
$ac_ext >&5
11238 samba_cv_HAVE_BROKEN_GETGROUPS
=no
11245 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
11246 if test x
"$samba_cv_HAVE_BROKEN_GETGROUPS" = x
"yes"; then
11247 cat >> confdefs.h
<<\EOF
11248 #define HAVE_BROKEN_GETGROUPS 1
11253 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
11254 echo "configure:11255: checking whether getpass should be replaced" >&5
11255 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
11256 echo $ac_n "(cached) $ac_c" 1>&6
11259 SAVE_CPPFLAGS
="$CPPFLAGS"
11260 CPPFLAGS
="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/popt -I${srcdir-.}/smbwrapper"
11261 cat > conftest.
$ac_ext <<EOF
11262 #line 11263 "configure"
11263 #include "confdefs.h"
11265 #define REPLACE_GETPASS 1
11266 #define NO_CONFIG_H 1
11267 #define main dont_declare_main
11268 #include "${srcdir-.}/lib/getsmbpass.c"
11275 if { (eval echo configure
:11276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11277 samba_cv_REPLACE_GETPASS
=yes
11279 echo "configure: failed program was:" >&5
11280 cat conftest.
$ac_ext >&5
11282 samba_cv_REPLACE_GETPASS
=no
11285 CPPFLAGS
="$SAVE_CPPFLAGS"
11289 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
11290 if test x
"$samba_cv_REPLACE_GETPASS" = x
"yes"; then
11291 cat >> confdefs.h
<<\EOF
11292 #define REPLACE_GETPASS 1
11297 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
11298 echo "configure:11299: checking for broken inet_ntoa" >&5
11299 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
11300 echo $ac_n "(cached) $ac_c" 1>&6
11303 if test "$cross_compiling" = yes; then
11304 samba_cv_REPLACE_INET_NTOA
=cross
11306 cat > conftest.
$ac_ext <<EOF
11307 #line 11308 "configure"
11308 #include "confdefs.h"
11311 #include <sys/types.h>
11312 #include <netinet/in.h>
11313 #ifdef HAVE_ARPA_INET_H
11314 #include <arpa/inet.h>
11316 main() { struct in_addr ip; ip.s_addr = 0x12345678;
11317 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
11318 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
11321 if { (eval echo configure
:11322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11323 samba_cv_REPLACE_INET_NTOA
=yes
11325 echo "configure: failed program was:" >&5
11326 cat conftest.
$ac_ext >&5
11328 samba_cv_REPLACE_INET_NTOA
=no
11335 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
11336 if test x
"$samba_cv_REPLACE_INET_NTOA" = x
"yes"; then
11337 cat >> confdefs.h
<<\EOF
11338 #define REPLACE_INET_NTOA 1
11343 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
11344 echo "configure:11345: checking for secure mkstemp" >&5
11345 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
11346 echo $ac_n "(cached) $ac_c" 1>&6
11349 if test "$cross_compiling" = yes; then
11350 samba_cv_HAVE_SECURE_MKSTEMP
=cross
11352 cat > conftest.
$ac_ext <<EOF
11353 #line 11354 "configure"
11354 #include "confdefs.h"
11355 #include <stdlib.h>
11356 #include <sys/types.h>
11357 #include <sys/stat.h>
11358 #include <unistd.h>
11361 char tpl[20]="/tmp/test.XXXXXX";
11362 int fd = mkstemp(tpl);
11363 if (fd == -1) exit(1);
11365 if (fstat(fd, &st) != 0) exit(1);
11366 if ((st.st_mode & 0777) != 0600) exit(1);
11370 if { (eval echo configure
:11371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11372 samba_cv_HAVE_SECURE_MKSTEMP
=yes
11374 echo "configure: failed program was:" >&5
11375 cat conftest.
$ac_ext >&5
11377 samba_cv_HAVE_SECURE_MKSTEMP
=no
11384 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
11385 if test x
"$samba_cv_HAVE_SECURE_MKSTEMP" = x
"yes"; then
11386 cat >> confdefs.h
<<\EOF
11387 #define HAVE_SECURE_MKSTEMP 1
11392 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
11393 echo "configure:11394: checking for sysconf(_SC_NGROUPS_MAX)" >&5
11394 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
11395 echo $ac_n "(cached) $ac_c" 1>&6
11398 if test "$cross_compiling" = yes; then
11399 samba_cv_SYSCONF_SC_NGROUPS_MAX
=cross
11401 cat > conftest.
$ac_ext <<EOF
11402 #line 11403 "configure"
11403 #include "confdefs.h"
11404 #include <unistd.h>
11405 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
11407 if { (eval echo configure
:11408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11409 samba_cv_SYSCONF_SC_NGROUPS_MAX
=yes
11411 echo "configure: failed program was:" >&5
11412 cat conftest.
$ac_ext >&5
11414 samba_cv_SYSCONF_SC_NGROUPS_MAX
=no
11421 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
11422 if test x
"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x
"yes"; then
11423 cat >> confdefs.h
<<\EOF
11424 #define SYSCONF_SC_NGROUPS_MAX 1
11429 echo $ac_n "checking for root""... $ac_c" 1>&6
11430 echo "configure:11431: checking for root" >&5
11431 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
11432 echo $ac_n "(cached) $ac_c" 1>&6
11435 if test "$cross_compiling" = yes; then
11436 samba_cv_HAVE_ROOT
=cross
11438 cat > conftest.
$ac_ext <<EOF
11439 #line 11440 "configure"
11440 #include "confdefs.h"
11441 main() { exit(getuid() != 0); }
11443 if { (eval echo configure
:11444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11445 samba_cv_HAVE_ROOT
=yes
11447 echo "configure: failed program was:" >&5
11448 cat conftest.
$ac_ext >&5
11450 samba_cv_HAVE_ROOT
=no
11457 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
11458 if test x
"$samba_cv_HAVE_ROOT" = x
"yes"; then
11459 cat >> confdefs.h
<<\EOF
11460 #define HAVE_ROOT 1
11464 echo "configure: warning: running as non-root will disable some tests" 1>&2
11468 # look for a method of finding the list of network interfaces
11470 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
11471 echo "configure:11472: checking for iface AIX" >&5
11472 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
11473 echo $ac_n "(cached) $ac_c" 1>&6
11476 if test "$cross_compiling" = yes; then
11477 samba_cv_HAVE_IFACE_AIX
=cross
11479 cat > conftest.
$ac_ext <<EOF
11480 #line 11481 "configure"
11481 #include "confdefs.h"
11483 #define HAVE_IFACE_AIX 1
11484 #define AUTOCONF_TEST 1
11485 #include "confdefs.h"
11486 #include "${srcdir-.}/lib/interfaces.c"
11488 if { (eval echo configure
:11489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11490 samba_cv_HAVE_IFACE_AIX
=yes
11492 echo "configure: failed program was:" >&5
11493 cat conftest.
$ac_ext >&5
11495 samba_cv_HAVE_IFACE_AIX
=no
11502 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
11503 if test x
"$samba_cv_HAVE_IFACE_AIX" = x
"yes"; then
11504 iface
=yes;cat >> confdefs.h
<<\EOF
11505 #define HAVE_IFACE_AIX 1
11510 if test $iface = no
; then
11511 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
11512 echo "configure:11513: checking for iface ifconf" >&5
11513 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
11514 echo $ac_n "(cached) $ac_c" 1>&6
11517 if test "$cross_compiling" = yes; then
11518 samba_cv_HAVE_IFACE_IFCONF
=cross
11520 cat > conftest.
$ac_ext <<EOF
11521 #line 11522 "configure"
11522 #include "confdefs.h"
11524 #define HAVE_IFACE_IFCONF 1
11525 #define AUTOCONF_TEST 1
11526 #include "confdefs.h"
11527 #include "${srcdir-.}/lib/interfaces.c"
11529 if { (eval echo configure
:11530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11531 samba_cv_HAVE_IFACE_IFCONF
=yes
11533 echo "configure: failed program was:" >&5
11534 cat conftest.
$ac_ext >&5
11536 samba_cv_HAVE_IFACE_IFCONF
=no
11543 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
11544 if test x
"$samba_cv_HAVE_IFACE_IFCONF" = x
"yes"; then
11545 iface
=yes;cat >> confdefs.h
<<\EOF
11546 #define HAVE_IFACE_IFCONF 1
11552 if test $iface = no
; then
11553 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
11554 echo "configure:11555: checking for iface ifreq" >&5
11555 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
11556 echo $ac_n "(cached) $ac_c" 1>&6
11559 if test "$cross_compiling" = yes; then
11560 samba_cv_HAVE_IFACE_IFREQ
=cross
11562 cat > conftest.
$ac_ext <<EOF
11563 #line 11564 "configure"
11564 #include "confdefs.h"
11566 #define HAVE_IFACE_IFREQ 1
11567 #define AUTOCONF_TEST 1
11568 #include "confdefs.h"
11569 #include "${srcdir-.}/lib/interfaces.c"
11571 if { (eval echo configure
:11572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11573 samba_cv_HAVE_IFACE_IFREQ
=yes
11575 echo "configure: failed program was:" >&5
11576 cat conftest.
$ac_ext >&5
11578 samba_cv_HAVE_IFACE_IFREQ
=no
11585 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
11586 if test x
"$samba_cv_HAVE_IFACE_IFREQ" = x
"yes"; then
11587 iface
=yes;cat >> confdefs.h
<<\EOF
11588 #define HAVE_IFACE_IFREQ 1
11595 ################################################
11596 # look for a method of setting the effective uid
11598 if test $seteuid = no
; then
11599 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
11600 echo "configure:11601: checking for setresuid" >&5
11601 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
11602 echo $ac_n "(cached) $ac_c" 1>&6
11605 if test "$cross_compiling" = yes; then
11606 samba_cv_USE_SETRESUID
=cross
11608 cat > conftest.
$ac_ext <<EOF
11609 #line 11610 "configure"
11610 #include "confdefs.h"
11612 #define AUTOCONF_TEST 1
11613 #define USE_SETRESUID 1
11614 #include "confdefs.h"
11615 #include "${srcdir-.}/lib/util_sec.c"
11617 if { (eval echo configure
:11618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11619 samba_cv_USE_SETRESUID
=yes
11621 echo "configure: failed program was:" >&5
11622 cat conftest.
$ac_ext >&5
11624 samba_cv_USE_SETRESUID
=no
11631 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
11632 if test x
"$samba_cv_USE_SETRESUID" = x
"yes"; then
11633 seteuid
=yes;cat >> confdefs.h
<<\EOF
11634 #define USE_SETRESUID 1
11641 if test $seteuid = no
; then
11642 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
11643 echo "configure:11644: checking for setreuid" >&5
11644 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
11645 echo $ac_n "(cached) $ac_c" 1>&6
11648 if test "$cross_compiling" = yes; then
11649 samba_cv_USE_SETREUID
=cross
11651 cat > conftest.
$ac_ext <<EOF
11652 #line 11653 "configure"
11653 #include "confdefs.h"
11655 #define AUTOCONF_TEST 1
11656 #define USE_SETREUID 1
11657 #include "confdefs.h"
11658 #include "${srcdir-.}/lib/util_sec.c"
11660 if { (eval echo configure
:11661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11662 samba_cv_USE_SETREUID
=yes
11664 echo "configure: failed program was:" >&5
11665 cat conftest.
$ac_ext >&5
11667 samba_cv_USE_SETREUID
=no
11674 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
11675 if test x
"$samba_cv_USE_SETREUID" = x
"yes"; then
11676 seteuid
=yes;cat >> confdefs.h
<<\EOF
11677 #define USE_SETREUID 1
11683 if test $seteuid = no
; then
11684 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
11685 echo "configure:11686: checking for seteuid" >&5
11686 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
11687 echo $ac_n "(cached) $ac_c" 1>&6
11690 if test "$cross_compiling" = yes; then
11691 samba_cv_USE_SETEUID
=cross
11693 cat > conftest.
$ac_ext <<EOF
11694 #line 11695 "configure"
11695 #include "confdefs.h"
11697 #define AUTOCONF_TEST 1
11698 #define USE_SETEUID 1
11699 #include "confdefs.h"
11700 #include "${srcdir-.}/lib/util_sec.c"
11702 if { (eval echo configure
:11703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11704 samba_cv_USE_SETEUID
=yes
11706 echo "configure: failed program was:" >&5
11707 cat conftest.
$ac_ext >&5
11709 samba_cv_USE_SETEUID
=no
11716 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
11717 if test x
"$samba_cv_USE_SETEUID" = x
"yes"; then
11718 seteuid
=yes;cat >> confdefs.h
<<\EOF
11719 #define USE_SETEUID 1
11725 if test $seteuid = no
; then
11726 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
11727 echo "configure:11728: checking for setuidx" >&5
11728 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
11729 echo $ac_n "(cached) $ac_c" 1>&6
11732 if test "$cross_compiling" = yes; then
11733 samba_cv_USE_SETUIDX
=cross
11735 cat > conftest.
$ac_ext <<EOF
11736 #line 11737 "configure"
11737 #include "confdefs.h"
11739 #define AUTOCONF_TEST 1
11740 #define USE_SETUIDX 1
11741 #include "confdefs.h"
11742 #include "${srcdir-.}/lib/util_sec.c"
11744 if { (eval echo configure
:11745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11746 samba_cv_USE_SETUIDX
=yes
11748 echo "configure: failed program was:" >&5
11749 cat conftest.
$ac_ext >&5
11751 samba_cv_USE_SETUIDX
=no
11758 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
11759 if test x
"$samba_cv_USE_SETUIDX" = x
"yes"; then
11760 seteuid
=yes;cat >> confdefs.h
<<\EOF
11761 #define USE_SETUIDX 1
11768 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
11769 echo "configure:11770: checking for working mmap" >&5
11770 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
11771 echo $ac_n "(cached) $ac_c" 1>&6
11774 if test "$cross_compiling" = yes; then
11775 samba_cv_HAVE_MMAP
=cross
11777 cat > conftest.
$ac_ext <<EOF
11778 #line 11779 "configure"
11779 #include "confdefs.h"
11780 #include "${srcdir-.}/tests/shared_mmap.c"
11782 if { (eval echo configure
:11783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11784 samba_cv_HAVE_MMAP
=yes
11786 echo "configure: failed program was:" >&5
11787 cat conftest.
$ac_ext >&5
11789 samba_cv_HAVE_MMAP
=no
11796 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
11797 if test x
"$samba_cv_HAVE_MMAP" = x
"yes"; then
11798 cat >> confdefs.h
<<\EOF
11799 #define HAVE_MMAP 1
11804 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
11805 echo "configure:11806: checking for ftruncate needs root" >&5
11806 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
11807 echo $ac_n "(cached) $ac_c" 1>&6
11810 if test "$cross_compiling" = yes; then
11811 samba_cv_FTRUNCATE_NEEDS_ROOT
=cross
11813 cat > conftest.
$ac_ext <<EOF
11814 #line 11815 "configure"
11815 #include "confdefs.h"
11816 #include "${srcdir-.}/tests/ftruncroot.c"
11818 if { (eval echo configure
:11819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11820 samba_cv_FTRUNCATE_NEEDS_ROOT
=yes
11822 echo "configure: failed program was:" >&5
11823 cat conftest.
$ac_ext >&5
11825 samba_cv_FTRUNCATE_NEEDS_ROOT
=no
11832 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
11833 if test x
"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x
"yes"; then
11834 cat >> confdefs.h
<<\EOF
11835 #define FTRUNCATE_NEEDS_ROOT 1
11840 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
11841 echo "configure:11842: checking for fcntl locking" >&5
11842 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
11843 echo $ac_n "(cached) $ac_c" 1>&6
11846 if test "$cross_compiling" = yes; then
11847 samba_cv_HAVE_FCNTL_LOCK
=cross
11849 cat > conftest.
$ac_ext <<EOF
11850 #line 11851 "configure"
11851 #include "confdefs.h"
11852 #include "${srcdir-.}/tests/fcntl_lock.c"
11854 if { (eval echo configure
:11855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11856 samba_cv_HAVE_FCNTL_LOCK
=yes
11858 echo "configure: failed program was:" >&5
11859 cat conftest.
$ac_ext >&5
11861 samba_cv_HAVE_FCNTL_LOCK
=no
11868 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
11869 if test x
"$samba_cv_HAVE_FCNTL_LOCK" = x
"yes"; then
11870 cat >> confdefs.h
<<\EOF
11871 #define HAVE_FCNTL_LOCK 1
11876 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
11877 echo "configure:11878: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
11878 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
11879 echo $ac_n "(cached) $ac_c" 1>&6
11882 if test "$cross_compiling" = yes; then
11883 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=cross
11885 cat > conftest.
$ac_ext <<EOF
11886 #line 11887 "configure"
11887 #include "confdefs.h"
11888 #include "${srcdir-.}/tests/fcntl_lock64.c"
11890 if { (eval echo configure
:11891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11892 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=yes
11894 echo "configure: failed program was:" >&5
11895 cat conftest.
$ac_ext >&5
11897 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=no
11904 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
11905 if test x
"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x
"yes"; then
11906 cat >> confdefs.h
<<\EOF
11907 #define HAVE_BROKEN_FCNTL64_LOCKS 1
11914 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
11915 echo "configure:11916: checking for 64 bit fcntl locking" >&5
11916 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
11917 echo $ac_n "(cached) $ac_c" 1>&6
11920 if test "$cross_compiling" = yes; then
11921 samba_cv_HAVE_STRUCT_FLOCK64
=cross
11923 cat > conftest.
$ac_ext <<EOF
11924 #line 11925 "configure"
11925 #include "confdefs.h"
11927 #if defined(HAVE_UNISTD_H)
11928 #include <unistd.h>
11931 #include <stdlib.h>
11933 #ifdef HAVE_FCNTL_H
11937 #ifdef HAVE_SYS_FCNTL_H
11938 #include <sys/fcntl.h>
11940 main() { struct flock64 fl64;
11941 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
11948 if { (eval echo configure
:11949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11950 samba_cv_HAVE_STRUCT_FLOCK64
=yes
11952 echo "configure: failed program was:" >&5
11953 cat conftest.
$ac_ext >&5
11955 samba_cv_HAVE_STRUCT_FLOCK64
=no
11962 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
11964 if test x
"$samba_cv_HAVE_STRUCT_FLOCK64" = x
"yes"; then
11965 cat >> confdefs.h
<<\EOF
11966 #define HAVE_STRUCT_FLOCK64 1
11972 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
11973 echo "configure:11974: checking for st_blocks in struct stat" >&5
11974 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLOCKS'+set}'`\" = set"; then
11975 echo $ac_n "(cached) $ac_c" 1>&6
11978 cat > conftest.
$ac_ext <<EOF
11979 #line 11980 "configure"
11980 #include "confdefs.h"
11981 #include <sys/types.h>
11982 #include <sys/stat.h>
11983 #include <unistd.h>
11985 struct stat st; st.st_blocks = 0;
11988 if { (eval echo configure
:11989: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11990 samba_cv_HAVE_STAT_ST_BLOCKS
=yes
11992 echo "configure: failed program was:" >&5
11993 cat conftest.
$ac_ext >&5
11995 samba_cv_HAVE_STAT_ST_BLOCKS
=no
12000 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLOCKS" 1>&6
12001 if test x
"$samba_cv_HAVE_STAT_ST_BLOCKS" = x
"yes"; then
12002 cat >> confdefs.h
<<\EOF
12003 #define HAVE_STAT_ST_BLOCKS 1
12008 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
12009 echo "configure:12010: checking for st_blksize in struct stat" >&5
12010 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLKSIZE'+set}'`\" = set"; then
12011 echo $ac_n "(cached) $ac_c" 1>&6
12014 cat > conftest.
$ac_ext <<EOF
12015 #line 12016 "configure"
12016 #include "confdefs.h"
12017 #include <sys/types.h>
12018 #include <sys/stat.h>
12019 #include <unistd.h>
12021 struct stat st; st.st_blksize = 0;
12024 if { (eval echo configure
:12025: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12026 samba_cv_HAVE_STAT_ST_BLKSIZE
=yes
12028 echo "configure: failed program was:" >&5
12029 cat conftest.
$ac_ext >&5
12031 samba_cv_HAVE_STAT_ST_BLKSIZE
=no
12036 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLKSIZE" 1>&6
12037 if test x
"$samba_cv_HAVE_STAT_ST_BLKSIZE" = x
"yes"; then
12038 cat >> confdefs.h
<<\EOF
12039 #define HAVE_STAT_ST_BLKSIZE 1
12046 echo $ac_n "checking for broken RedHat 7.2 system header files""... $ac_c" 1>&6
12047 echo "configure:12048: checking for broken RedHat 7.2 system header files" >&5
12048 if eval "test \"`echo '$''{'samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS'+set}'`\" = set"; then
12049 echo $ac_n "(cached) $ac_c" 1>&6
12052 cat > conftest.
$ac_ext <<EOF
12053 #line 12054 "configure"
12054 #include "confdefs.h"
12056 #ifdef HAVE_SYS_VFS_H
12057 #include <sys/vfs.h>
12059 #ifdef HAVE_SYS_CAPABILITY_H
12060 #include <sys/capability.h>
12067 if { (eval echo configure
:12068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12069 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS
=no
12071 echo "configure: failed program was:" >&5
12072 cat conftest.
$ac_ext >&5
12074 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS
=yes
12079 echo "$ac_t""$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" 1>&6
12080 if test x
"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x
"yes"; then
12081 cat >> confdefs.h
<<\EOF
12082 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
12089 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
12090 echo "configure:12091: checking for broken nisplus include files" >&5
12091 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
12092 echo $ac_n "(cached) $ac_c" 1>&6
12095 cat > conftest.
$ac_ext <<EOF
12096 #line 12097 "configure"
12097 #include "confdefs.h"
12098 #include <sys/acl.h>
12099 #if defined(HAVE_RPCSVC_NIS_H)
12100 #include <rpcsvc/nis.h>
12106 if { (eval echo configure
:12107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12108 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=no
12110 echo "configure: failed program was:" >&5
12111 cat conftest.
$ac_ext >&5
12113 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=yes
12118 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
12119 if test x
"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x
"yes"; then
12120 cat >> confdefs.h
<<\EOF
12121 #define BROKEN_NISPLUS_INCLUDE_FILES 1
12127 #################################################
12128 # check for smbwrapper support
12129 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
12130 echo "configure:12131: checking whether to use smbwrapper" >&5
12131 # Check whether --with-smbwrapper or --without-smbwrapper was given.
12132 if test "${with_smbwrapper+set}" = set; then
12133 withval
="$with_smbwrapper"
12136 echo "$ac_t""yes" 1>&6
12137 cat >> confdefs.h
<<\EOF
12138 #define WITH_SMBWRAPPER 1
12141 WRAPPROG
="bin/smbsh\$(EXEEXT)"
12142 WRAP
="bin/smbwrapper.$SHLIBEXT"
12144 if test x
$ATTEMPT_WRAP32_BUILD = x
; then
12147 WRAP32
=bin
/smbwrapper
.32.
$SHLIBEXT
12150 # Conditions under which smbwrapper should not be built.
12152 if test x
$PICFLAG = x
; then
12153 echo No support
for PIC code
- disabling smbwrapper and smbsh
12157 elif test x
$ac_cv_func_syscall = xno
; then
12158 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
12163 EXTRA_ALL_TARGETS
="$EXTRA_ALL_TARGETS $WRAPPROG $WRAP $WRAP32"
12164 SMBWRAPPER
="$WRAPPROG $WRAP $WRAP32"
12167 echo "$ac_t""no" 1>&6
12171 echo "$ac_t""no" 1>&6
12176 #################################################
12177 # check for AFS clear-text auth support
12178 echo $ac_n "checking whether to use AFS clear-text auth""... $ac_c" 1>&6
12179 echo "configure:12180: checking whether to use AFS clear-text auth" >&5
12180 # Check whether --with-afs or --without-afs was given.
12181 if test "${with_afs+set}" = set; then
12182 withval
="$with_afs"
12185 echo "$ac_t""yes" 1>&6
12186 cat >> confdefs.h
<<\EOF
12192 echo "$ac_t""no" 1>&6
12196 echo "$ac_t""no" 1>&6
12202 #################################################
12203 # check for the DFS clear-text auth system
12204 echo $ac_n "checking whether to use DFS clear-text auth""... $ac_c" 1>&6
12205 echo "configure:12206: checking whether to use DFS clear-text auth" >&5
12206 # Check whether --with-dfs or --without-dfs was given.
12207 if test "${with_dfs+set}" = set; then
12208 withval
="$with_dfs"
12211 echo "$ac_t""yes" 1>&6
12212 cat >> confdefs.h
<<\EOF
12218 echo "$ac_t""no" 1>&6
12222 echo "$ac_t""no" 1>&6
12227 #################################################
12228 # active directory support
12230 with_ads_support
=yes
12231 echo $ac_n "checking whether to use Active Directory""... $ac_c" 1>&6
12232 echo "configure:12233: checking whether to use Active Directory" >&5
12234 # Check whether --with-ads or --without-ads was given.
12235 if test "${with_ads+set}" = set; then
12236 withval
="$with_ads"
12239 with_ads_support
=no
12245 if test x
"$with_ads_support" = x
"yes"; then
12246 cat >> confdefs.h
<<\EOF
12252 echo "$ac_t""$with_ads_support" 1>&6
12255 if test x
"$with_ads_support" = x
"yes"; then
12257 #################################################
12258 # check for location of Kerberos 5 install
12259 echo $ac_n "checking for kerberos 5 install path""... $ac_c" 1>&6
12260 echo "configure:12261: checking for kerberos 5 install path" >&5
12261 # Check whether --with-krb5 or --without-krb5 was given.
12262 if test "${with_krb5+set}" = set; then
12263 withval
="$with_krb5"
12266 echo "$ac_t""no" 1>&6
12269 echo "$ac_t""yes" 1>&6
12270 LIBS
="$LIBS -lkrb5"
12271 CFLAGS
="$CFLAGS -I$withval/include"
12272 CPPFLAGS
="$CPPFLAGS -I$withval/include"
12273 LDFLAGS
="$LDFLAGS -L$withval/lib"
12278 echo "$ac_t""no" 1>&6
12284 if test x
$FOUND_KRB5 = x
"no"; then
12285 #################################################
12286 # see if this box has the SuSE location for the heimdal kerberos implementation
12287 echo $ac_n "checking for /usr/include/heimdal""... $ac_c" 1>&6
12288 echo "configure:12289: checking for /usr/include/heimdal" >&5
12289 if test -d /usr
/include
/heimdal
; then
12290 CFLAGS
="$CFLAGS -I/usr/include/heimdal"
12291 CPPFLAGS
="$CPPFLAGS -I/usr/include/heimdal"
12292 echo "$ac_t""yes" 1>&6
12294 echo "$ac_t""no" 1>&6
12299 if test x
$FOUND_KRB5 = x
"no"; then
12300 #################################################
12301 # see if this box has the RedHat location for kerberos
12302 echo $ac_n "checking for /usr/kerberos""... $ac_c" 1>&6
12303 echo "configure:12304: checking for /usr/kerberos" >&5
12304 if test -d /usr
/kerberos
; then
12305 LDFLAGS
="$LDFLAGS -L/usr/kerberos/lib"
12306 CFLAGS
="$CFLAGS -I/usr/kerberos/include"
12307 CPPFLAGS
="$CPPFLAGS -I/usr/kerberos/include"
12308 echo "$ac_t""yes" 1>&6
12310 echo "$ac_t""no" 1>&6
12315 # now check for krb5.h. Some systems have the libraries without the headers!
12316 # note that this check is done here to allow for different kerberos
12318 for ac_hdr
in krb5.h
12320 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12321 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12322 echo "configure:12323: checking for $ac_hdr" >&5
12323 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12324 echo $ac_n "(cached) $ac_c" 1>&6
12326 cat > conftest.
$ac_ext <<EOF
12327 #line 12328 "configure"
12328 #include "confdefs.h"
12331 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12332 { (eval echo configure
:12333: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12333 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12334 if test -z "$ac_err"; then
12336 eval "ac_cv_header_$ac_safe=yes"
12339 echo "configure: failed program was:" >&5
12340 cat conftest.
$ac_ext >&5
12342 eval "ac_cv_header_$ac_safe=no"
12346 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12347 echo "$ac_t""yes" 1>&6
12348 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12349 cat >> confdefs.h
<<EOF
12350 #define $ac_tr_hdr 1
12354 echo "$ac_t""no" 1>&6
12359 # now check for gssapi headers. This is also done here to allow for
12360 # different kerberos include paths
12361 for ac_hdr
in gssapi
/gssapi_generic.h gssapi
/gssapi.h
12363 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12364 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12365 echo "configure:12366: checking for $ac_hdr" >&5
12366 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12367 echo $ac_n "(cached) $ac_c" 1>&6
12369 cat > conftest.
$ac_ext <<EOF
12370 #line 12371 "configure"
12371 #include "confdefs.h"
12374 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12375 { (eval echo configure
:12376: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12376 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12377 if test -z "$ac_err"; then
12379 eval "ac_cv_header_$ac_safe=yes"
12382 echo "configure: failed program was:" >&5
12383 cat conftest.
$ac_ext >&5
12385 eval "ac_cv_header_$ac_safe=no"
12389 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12390 echo "$ac_t""yes" 1>&6
12391 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12392 cat >> confdefs.h
<<EOF
12393 #define $ac_tr_hdr 1
12397 echo "$ac_t""no" 1>&6
12402 ##################################################################
12403 # we might need the k5crypto and com_err libraries on some systems
12404 echo $ac_n "checking for _et_list in -lcom_err""... $ac_c" 1>&6
12405 echo "configure:12406: checking for _et_list in -lcom_err" >&5
12406 ac_lib_var
=`echo com_err'_'_et_list | sed 'y%./+-%__p_%'`
12407 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12408 echo $ac_n "(cached) $ac_c" 1>&6
12410 ac_save_LIBS
="$LIBS"
12411 LIBS
="-lcom_err $LIBS"
12412 cat > conftest.
$ac_ext <<EOF
12413 #line 12414 "configure"
12414 #include "confdefs.h"
12415 /* Override any gcc2 internal prototype to avoid an error. */
12416 /* We use char because int might match the return type of a gcc2
12417 builtin and then its argument prototype would still apply. */
12424 if { (eval echo configure
:12425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12426 eval "ac_cv_lib_$ac_lib_var=yes"
12428 echo "configure: failed program was:" >&5
12429 cat conftest.
$ac_ext >&5
12431 eval "ac_cv_lib_$ac_lib_var=no"
12434 LIBS
="$ac_save_LIBS"
12437 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12438 echo "$ac_t""yes" 1>&6
12439 LIBS
="$LIBS -lcom_err"
12441 echo "$ac_t""no" 1>&6
12444 echo $ac_n "checking for krb5_encrypt_data in -lk5crypto""... $ac_c" 1>&6
12445 echo "configure:12446: checking for krb5_encrypt_data in -lk5crypto" >&5
12446 ac_lib_var
=`echo k5crypto'_'krb5_encrypt_data | sed 'y%./+-%__p_%'`
12447 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12448 echo $ac_n "(cached) $ac_c" 1>&6
12450 ac_save_LIBS
="$LIBS"
12451 LIBS
="-lk5crypto $LIBS"
12452 cat > conftest.
$ac_ext <<EOF
12453 #line 12454 "configure"
12454 #include "confdefs.h"
12455 /* Override any gcc2 internal prototype to avoid an error. */
12456 /* We use char because int might match the return type of a gcc2
12457 builtin and then its argument prototype would still apply. */
12458 char krb5_encrypt_data();
12461 krb5_encrypt_data()
12464 if { (eval echo configure
:12465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12466 eval "ac_cv_lib_$ac_lib_var=yes"
12468 echo "configure: failed program was:" >&5
12469 cat conftest.
$ac_ext >&5
12471 eval "ac_cv_lib_$ac_lib_var=no"
12474 LIBS
="$ac_save_LIBS"
12477 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12478 echo "$ac_t""yes" 1>&6
12479 LIBS
="$LIBS -lk5crypto"
12481 echo "$ac_t""no" 1>&6
12485 ########################################################
12486 # now see if we can find the krb5 libs in standard paths
12487 # or as specified above
12488 echo $ac_n "checking for krb5_mk_req_extended in -lkrb5""... $ac_c" 1>&6
12489 echo "configure:12490: checking for krb5_mk_req_extended in -lkrb5" >&5
12490 ac_lib_var
=`echo krb5'_'krb5_mk_req_extended | sed 'y%./+-%__p_%'`
12491 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12492 echo $ac_n "(cached) $ac_c" 1>&6
12494 ac_save_LIBS
="$LIBS"
12495 LIBS
="-lkrb5 $LIBS"
12496 cat > conftest.
$ac_ext <<EOF
12497 #line 12498 "configure"
12498 #include "confdefs.h"
12499 /* Override any gcc2 internal prototype to avoid an error. */
12500 /* We use char because int might match the return type of a gcc2
12501 builtin and then its argument prototype would still apply. */
12502 char krb5_mk_req_extended();
12505 krb5_mk_req_extended()
12508 if { (eval echo configure
:12509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12510 eval "ac_cv_lib_$ac_lib_var=yes"
12512 echo "configure: failed program was:" >&5
12513 cat conftest.
$ac_ext >&5
12515 eval "ac_cv_lib_$ac_lib_var=no"
12518 LIBS
="$ac_save_LIBS"
12521 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12522 echo "$ac_t""yes" 1>&6
12523 LIBS
="$LIBS -lkrb5";
12524 cat >> confdefs.h
<<\EOF
12525 #define HAVE_KRB5 1
12529 echo "$ac_t""no" 1>&6
12533 ########################################################
12534 # now see if we can find the gssapi libs in standard paths
12535 echo $ac_n "checking for gss_display_status in -lgssapi_krb5""... $ac_c" 1>&6
12536 echo "configure:12537: checking for gss_display_status in -lgssapi_krb5" >&5
12537 ac_lib_var
=`echo gssapi_krb5'_'gss_display_status | sed 'y%./+-%__p_%'`
12538 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12539 echo $ac_n "(cached) $ac_c" 1>&6
12541 ac_save_LIBS
="$LIBS"
12542 LIBS
="-lgssapi_krb5 $LIBS"
12543 cat > conftest.
$ac_ext <<EOF
12544 #line 12545 "configure"
12545 #include "confdefs.h"
12546 /* Override any gcc2 internal prototype to avoid an error. */
12547 /* We use char because int might match the return type of a gcc2
12548 builtin and then its argument prototype would still apply. */
12549 char gss_display_status();
12552 gss_display_status()
12555 if { (eval echo configure
:12556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12557 eval "ac_cv_lib_$ac_lib_var=yes"
12559 echo "configure: failed program was:" >&5
12560 cat conftest.
$ac_ext >&5
12562 eval "ac_cv_lib_$ac_lib_var=no"
12565 LIBS
="$ac_save_LIBS"
12568 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12569 echo "$ac_t""yes" 1>&6
12570 LIBS
="$LIBS -lgssapi_krb5";
12571 cat >> confdefs.h
<<\EOF
12572 #define HAVE_GSSAPI 1
12576 echo "$ac_t""no" 1>&6
12581 ########################################################
12582 # Compile with LDAP support?
12584 with_ldap_support
=yes
12585 echo $ac_n "checking whether to use LDAP""... $ac_c" 1>&6
12586 echo "configure:12587: checking whether to use LDAP" >&5
12588 # Check whether --with-ldap or --without-ldap was given.
12589 if test "${with_ldap+set}" = set; then
12590 withval
="$with_ldap"
12593 with_ldap_support
=no
12599 echo "$ac_t""$with_ldap_support" 1>&6
12601 if test x
"$with_ldap_support" = x
"yes"; then
12603 ##################################################################
12604 # we might need the lber lib on some systems. To avoid link errors
12605 # this test must be before the libldap test
12606 echo $ac_n "checking for ber_scanf in -llber""... $ac_c" 1>&6
12607 echo "configure:12608: checking for ber_scanf in -llber" >&5
12608 ac_lib_var
=`echo lber'_'ber_scanf | sed 'y%./+-%__p_%'`
12609 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12610 echo $ac_n "(cached) $ac_c" 1>&6
12612 ac_save_LIBS
="$LIBS"
12613 LIBS
="-llber $LIBS"
12614 cat > conftest.
$ac_ext <<EOF
12615 #line 12616 "configure"
12616 #include "confdefs.h"
12617 /* Override any gcc2 internal prototype to avoid an error. */
12618 /* We use char because int might match the return type of a gcc2
12619 builtin and then its argument prototype would still apply. */
12626 if { (eval echo configure
:12627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12628 eval "ac_cv_lib_$ac_lib_var=yes"
12630 echo "configure: failed program was:" >&5
12631 cat conftest.
$ac_ext >&5
12633 eval "ac_cv_lib_$ac_lib_var=no"
12636 LIBS
="$ac_save_LIBS"
12639 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12640 echo "$ac_t""yes" 1>&6
12641 LIBS
="$LIBS -llber"
12643 echo "$ac_t""no" 1>&6
12647 ########################################################
12648 # now see if we can find the ldap libs in standard paths
12649 if test x
$have_ldap != xyes
; then
12650 echo $ac_n "checking for ldap_domain2hostlist in -lldap""... $ac_c" 1>&6
12651 echo "configure:12652: checking for ldap_domain2hostlist in -lldap" >&5
12652 ac_lib_var
=`echo ldap'_'ldap_domain2hostlist | sed 'y%./+-%__p_%'`
12653 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12654 echo $ac_n "(cached) $ac_c" 1>&6
12656 ac_save_LIBS
="$LIBS"
12657 LIBS
="-lldap $LIBS"
12658 cat > conftest.
$ac_ext <<EOF
12659 #line 12660 "configure"
12660 #include "confdefs.h"
12661 /* Override any gcc2 internal prototype to avoid an error. */
12662 /* We use char because int might match the return type of a gcc2
12663 builtin and then its argument prototype would still apply. */
12664 char ldap_domain2hostlist();
12667 ldap_domain2hostlist()
12670 if { (eval echo configure
:12671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12672 eval "ac_cv_lib_$ac_lib_var=yes"
12674 echo "configure: failed program was:" >&5
12675 cat conftest.
$ac_ext >&5
12677 eval "ac_cv_lib_$ac_lib_var=no"
12680 LIBS
="$ac_save_LIBS"
12683 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12684 echo "$ac_t""yes" 1>&6
12685 LIBS
="$LIBS -lldap";
12686 cat >> confdefs.h
<<\EOF
12687 #define HAVE_LDAP 1
12691 echo "$ac_t""no" 1>&6
12695 ########################################################
12696 # If we have LDAP, does it's rebind procedure take 2 or 3 arguments?
12697 # Check found in pam_ldap 145.
12698 for ac_func
in ldap_set_rebind_proc
12700 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12701 echo "configure:12702: checking for $ac_func" >&5
12702 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12703 echo $ac_n "(cached) $ac_c" 1>&6
12705 cat > conftest.
$ac_ext <<EOF
12706 #line 12707 "configure"
12707 #include "confdefs.h"
12708 /* System header to define __stub macros and hopefully few prototypes,
12709 which can conflict with char $ac_func(); below. */
12710 #include <assert.h>
12711 /* Override any gcc2 internal prototype to avoid an error. */
12712 /* We use char because int might match the return type of a gcc2
12713 builtin and then its argument prototype would still apply. */
12718 /* The GNU C library defines this for functions which it implements
12719 to always fail with ENOSYS. Some functions are actually named
12720 something starting with __ and the normal name is an alias. */
12721 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12729 if { (eval echo configure
:12730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12731 eval "ac_cv_func_$ac_func=yes"
12733 echo "configure: failed program was:" >&5
12734 cat conftest.
$ac_ext >&5
12736 eval "ac_cv_func_$ac_func=no"
12741 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12742 echo "$ac_t""yes" 1>&6
12743 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12744 cat >> confdefs.h
<<EOF
12745 #define $ac_tr_func 1
12749 echo "$ac_t""no" 1>&6
12753 echo $ac_n "checking whether ldap_set_rebind_proc takes 3 arguments""... $ac_c" 1>&6
12754 echo "configure:12755: checking whether ldap_set_rebind_proc takes 3 arguments" >&5
12755 if eval "test \"`echo '$''{'pam_ldap_cv_ldap_set_rebind_proc'+set}'`\" = set"; then
12756 echo $ac_n "(cached) $ac_c" 1>&6
12759 cat > conftest.
$ac_ext <<EOF
12760 #line 12761 "configure"
12761 #include "confdefs.h"
12766 ldap_set_rebind_proc(0, 0, 0);
12769 if { (eval echo configure
:12770: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12771 pam_ldap_cv_ldap_set_rebind_proc
=3
12773 echo "configure: failed program was:" >&5
12774 cat conftest.
$ac_ext >&5
12776 pam_ldap_cv_ldap_set_rebind_proc
=2
12781 echo "$ac_t""$pam_ldap_cv_ldap_set_rebind_proc" 1>&6
12782 cat >> confdefs.h
<<EOF
12783 #define LDAP_SET_REBIND_PROC_ARGS $pam_ldap_cv_ldap_set_rebind_proc
12789 ########################################################
12790 # Compile with MySQL support?
12791 # Check whether --with-mysql-prefix or --without-mysql-prefix was given.
12792 if test "${with_mysql_prefix+set}" = set; then
12793 withval
="$with_mysql_prefix"
12794 mysql_prefix
="$withval"
12799 # Check whether --with-mysql-exec-prefix or --without-mysql-exec-prefix was given.
12800 if test "${with_mysql_exec_prefix+set}" = set; then
12801 withval
="$with_mysql_exec_prefix"
12802 mysql_exec_prefix
="$withval"
12804 mysql_exec_prefix
=""
12807 # Check whether --enable-mysqltest or --disable-mysqltest was given.
12808 if test "${enable_mysqltest+set}" = set; then
12809 enableval
="$enable_mysqltest"
12812 enable_mysqltest
=yes
12816 if test x
$mysql_exec_prefix != x
; then
12817 mysql_args
="$mysql_args --exec-prefix=$mysql_exec_prefix"
12818 if test x
${MYSQL_CONFIG+set} != xset
; then
12819 MYSQL_CONFIG
=$mysql_exec_prefix/bin
/mysql_config
12822 if test x
$mysql_prefix != x
; then
12823 mysql_args
="$mysql_args --prefix=$mysql_prefix"
12824 if test x
${MYSQL_CONFIG+set} != xset
; then
12825 MYSQL_CONFIG
=$mysql_prefix/bin
/mysql_config
12830 # Extract the first word of "mysql_config", so it can be a program name with args.
12831 set dummy mysql_config
; ac_word
=$2
12832 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12833 echo "configure:12834: checking for $ac_word" >&5
12834 if eval "test \"`echo '$''{'ac_cv_path_MYSQL_CONFIG'+set}'`\" = set"; then
12835 echo $ac_n "(cached) $ac_c" 1>&6
12837 case "$MYSQL_CONFIG" in
12839 ac_cv_path_MYSQL_CONFIG
="$MYSQL_CONFIG" # Let the user override the test with a path.
12842 ac_cv_path_MYSQL_CONFIG
="$MYSQL_CONFIG" # Let the user override the test with a dos path.
12845 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
12847 for ac_dir
in $ac_dummy; do
12848 test -z "$ac_dir" && ac_dir
=.
12849 if test -f $ac_dir/$ac_word; then
12850 ac_cv_path_MYSQL_CONFIG
="$ac_dir/$ac_word"
12855 test -z "$ac_cv_path_MYSQL_CONFIG" && ac_cv_path_MYSQL_CONFIG
="no"
12859 MYSQL_CONFIG
="$ac_cv_path_MYSQL_CONFIG"
12860 if test -n "$MYSQL_CONFIG"; then
12861 echo "$ac_t""$MYSQL_CONFIG" 1>&6
12863 echo "$ac_t""no" 1>&6
12866 min_mysql_version
=0.11.0
12867 echo $ac_n "checking for MYSQL - version >= $min_mysql_version""... $ac_c" 1>&6
12868 echo "configure:12869: checking for MYSQL - version >= $min_mysql_version" >&5
12870 if test "$MYSQL_CONFIG" = "no" ; then
12873 MYSQL_CFLAGS
=`$MYSQL_CONFIG $mysqlconf_args --cflags | sed -e "s/'//g"`
12874 MYSQL_LIBS
=`$MYSQL_CONFIG $mysqlconf_args --libs | sed -e "s/'//g"`
12876 mysql_major_version
=`$MYSQL_CONFIG $mysql_args --version | \
12877 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12878 mysql_minor_version
=`$MYSQL_CONFIG $mysql_args --version | \
12879 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12880 mysql_micro_version
=`$MYSQL_CONFIG $mysql_config_args --version | \
12881 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12882 if test "x$enable_mysqltest" = "xyes" ; then
12883 ac_save_CFLAGS
="$CFLAGS"
12884 ac_save_LIBS
="$LIBS"
12885 CFLAGS
="$CFLAGS $MYSQL_CFLAGS"
12886 LIBS
="$LIBS $MYSQL_LIBS"
12887 rm -f conf.mysqltest
12888 if test "$cross_compiling" = yes; then
12889 echo $ac_n "cross compiling; assumed OK... $ac_c"
12891 cat > conftest.
$ac_ext <<EOF
12892 #line 12893 "configure"
12893 #include "confdefs.h"
12896 #include <stdlib.h>
12897 #include <string.h>
12901 my_strdup (char *str)
12907 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
12908 strcpy (new_str, str);
12916 int main (int argc, char *argv[])
12918 int major, minor, micro;
12921 /* This hangs on some systems (?)
12922 system ("touch conf.mysqltest");
12924 { FILE *fp = fopen("conf.mysqltest", "a"); if ( fp ) fclose(fp); }
12926 /* HP/UX 9 (%@#!) writes to sscanf strings */
12927 tmp_version = my_strdup("$min_mysql_version");
12928 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
12929 printf("%s, bad version string\n", "$min_mysql_version");
12933 if (($mysql_major_version > major) ||
12934 (($mysql_major_version == major) && ($mysql_minor_version > minor)) ||
12935 (($mysql_major_version == major) && ($mysql_minor_version == minor) && ($mysql_micro_version >= micro)))
12941 printf("\n*** 'mysql_config --version' returned %d.%d.%d, but the minimum version\n", $mysql_major_version, $mysql_minor_version, $mysql_micro_version);
12942 printf("*** of MYSQL required is %d.%d.%d. If mysql_config is correct, then it is\n", major, minor, micro);
12943 printf("*** best to upgrade to the required version.\n");
12944 printf("*** If mysql_config was wrong, set the environment variable MYSQL_CONFIG\n");
12945 printf("*** to point to the correct copy of mysql_config, and remove the file\n");
12946 printf("*** config.cache before re-running configure\n");
12953 if { (eval echo configure
:12954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12957 echo "configure: failed program was:" >&5
12958 cat conftest.
$ac_ext >&5
12965 CFLAGS
="$ac_save_CFLAGS"
12966 LIBS
="$ac_save_LIBS"
12969 if test "x$no_mysql" = x
; then
12970 echo "$ac_t""yes" 1>&6
12971 MODULE_MYSQL
=bin
/pdb_mysql.so
12973 echo "$ac_t""no" 1>&6
12974 if test "$MYSQL_CONFIG" = "no" ; then
12975 echo "*** The mysql_config script installed by MYSQL could not be found"
12976 echo "*** If MYSQL was installed in PREFIX, make sure PREFIX/bin is in"
12977 echo "*** your path, or set the MYSQL_CONFIG environment variable to the"
12978 echo "*** full path to mysql_config."
12980 if test -f conf.mysqltest
; then
12983 echo "*** Could not run MYSQL test program, checking why..."
12984 CFLAGS
="$CFLAGS $MYSQL_CFLAGS"
12985 LIBS
="$LIBS $MYSQL_LIBS"
12986 cat > conftest.
$ac_ext <<EOF
12987 #line 12988 "configure"
12988 #include "confdefs.h"
12993 int main(int argc, char *argv[])
12996 #define main K_and_R_C_main
13002 if { (eval echo configure
:13003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13004 echo "*** The test program compiled, but did not run. This usually means"
13005 echo "*** that the run-time linker is not finding MYSQL or finding the wrong"
13006 echo "*** version of MYSQL. If it is not finding MYSQL, you'll need to set your"
13007 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13008 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13009 echo "*** is required on your system"
13011 echo "*** If you have an old version installed, it is best to remove it, although"
13012 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13014 echo "configure: failed program was:" >&5
13015 cat conftest.
$ac_ext >&5
13017 echo "*** The test program failed to compile or link. See the file config.log for the"
13018 echo "*** exact error that occured. This usually means MYSQL was incorrectly installed"
13019 echo "*** or that you have moved MYSQL since it was installed. In the latter case, you"
13020 echo "*** may want to edit the mysql_config script: $MYSQL_CONFIG"
13023 CFLAGS
="$ac_save_CFLAGS"
13024 LIBS
="$ac_save_LIBS"
13033 rm -f conf.mysqltest
13035 CFLAGS
="$CFLAGS $MYSQL_CFLAGS"
13038 ########################################################
13039 # Compile with XML support?
13041 # Check whether --with-xml-prefix or --without-xml-prefix was given.
13042 if test "${with_xml_prefix+set}" = set; then
13043 withval
="$with_xml_prefix"
13044 xml_config_prefix
="$withval"
13046 xml_config_prefix
=""
13049 # Check whether --with-xml-exec-prefix or --without-xml-exec-prefix was given.
13050 if test "${with_xml_exec_prefix+set}" = set; then
13051 withval
="$with_xml_exec_prefix"
13052 xml_config_exec_prefix
="$withval"
13054 xml_config_exec_prefix
=""
13057 # Check whether --enable-xmltest or --disable-xmltest was given.
13058 if test "${enable_xmltest+set}" = set; then
13059 enableval
="$enable_xmltest"
13066 if test x
$xml_config_exec_prefix != x
; then
13067 xml_config_args
="$xml_config_args --exec-prefix=$xml_config_exec_prefix"
13068 if test x
${XML2_CONFIG+set} != xset
; then
13069 XML2_CONFIG
=$xml_config_exec_prefix/bin
/xml2-config
13072 if test x
$xml_config_prefix != x
; then
13073 xml_config_args
="$xml_config_args --prefix=$xml_config_prefix"
13074 if test x
${XML2_CONFIG+set} != xset
; then
13075 XML2_CONFIG
=$xml_config_prefix/bin
/xml2-config
13079 # Extract the first word of "xml2-config", so it can be a program name with args.
13080 set dummy xml2-config
; ac_word
=$2
13081 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13082 echo "configure:13083: checking for $ac_word" >&5
13083 if eval "test \"`echo '$''{'ac_cv_path_XML2_CONFIG'+set}'`\" = set"; then
13084 echo $ac_n "(cached) $ac_c" 1>&6
13086 case "$XML2_CONFIG" in
13088 ac_cv_path_XML2_CONFIG
="$XML2_CONFIG" # Let the user override the test with a path.
13091 ac_cv_path_XML2_CONFIG
="$XML2_CONFIG" # Let the user override the test with a dos path.
13094 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
13096 for ac_dir
in $ac_dummy; do
13097 test -z "$ac_dir" && ac_dir
=.
13098 if test -f $ac_dir/$ac_word; then
13099 ac_cv_path_XML2_CONFIG
="$ac_dir/$ac_word"
13104 test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG
="no"
13108 XML2_CONFIG
="$ac_cv_path_XML2_CONFIG"
13109 if test -n "$XML2_CONFIG"; then
13110 echo "$ac_t""$XML2_CONFIG" 1>&6
13112 echo "$ac_t""no" 1>&6
13115 min_xml_version
=2.0.0
13116 echo $ac_n "checking for libxml - version >= $min_xml_version""... $ac_c" 1>&6
13117 echo "configure:13118: checking for libxml - version >= $min_xml_version" >&5
13119 if test "$XML2_CONFIG" = "no" ; then
13122 XML_CFLAGS
=`$XML2_CONFIG $xml_config_args --cflags`
13123 XML_LIBS
=`$XML2_CONFIG $xml_config_args --libs`
13124 xml_config_major_version
=`$XML2_CONFIG $xml_config_args --version | \
13125 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13126 xml_config_minor_version
=`$XML2_CONFIG $xml_config_args --version | \
13127 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13128 xml_config_micro_version
=`$XML2_CONFIG $xml_config_args --version | \
13129 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13130 if test "x$enable_xmltest" = "xyes" ; then
13131 ac_save_CFLAGS
="$CFLAGS"
13132 ac_save_LIBS
="$LIBS"
13133 CFLAGS
="$CFLAGS $XML_CFLAGS"
13134 LIBS
="$XML_LIBS $LIBS"
13136 if test "$cross_compiling" = yes; then
13137 echo $ac_n "cross compiling; assumed OK... $ac_c"
13139 cat > conftest.
$ac_ext <<EOF
13140 #line 13141 "configure"
13141 #include "confdefs.h"
13143 #include <stdlib.h>
13145 #include <string.h>
13146 #include <libxml/xmlversion.h>
13151 int xml_major_version, xml_minor_version, xml_micro_version;
13152 int major, minor, micro;
13155 system("touch conf.xmltest");
13157 /* Capture xml2-config output via autoconf/configure variables */
13158 /* HP/UX 9 (%@#!) writes to sscanf strings */
13159 tmp_version = (char *)strdup("$min_xml_version");
13160 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
13161 printf("%s, bad version string from xml2-config\n", "$min_xml_version");
13166 /* Capture the version information from the header files */
13167 tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
13168 if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
13169 printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
13174 /* Compare xml2-config output to the libxml headers */
13175 if ((xml_major_version != $xml_config_major_version) ||
13176 (xml_minor_version != $xml_config_minor_version) ||
13177 (xml_micro_version != $xml_config_micro_version))
13179 printf("*** libxml header files (version %d.%d.%d) do not match\n",
13180 xml_major_version, xml_minor_version, xml_micro_version);
13181 printf("*** xml2-config (version %d.%d.%d)\n",
13182 $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
13185 /* Compare the headers to the library to make sure we match */
13186 /* Less than ideal -- doesn't provide us with return value feedback,
13187 * only exits if there's a serious mismatch between header and library.
13189 LIBXML_TEST_VERSION;
13191 /* Test that the library is greater than our minimum version */
13192 if ((xml_major_version > major) ||
13193 ((xml_major_version == major) && (xml_minor_version > minor)) ||
13194 ((xml_major_version == major) && (xml_minor_version == minor) &&
13195 (xml_micro_version >= micro)))
13201 printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
13202 xml_major_version, xml_minor_version, xml_micro_version);
13203 printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
13204 major, minor, micro);
13205 printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
13207 printf("*** If you have already installed a sufficiently new version, this error\n");
13208 printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
13209 printf("*** being found. The easiest way to fix this is to remove the old version\n");
13210 printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
13211 printf("*** correct copy of xml2-config. (In this case, you will have to\n");
13212 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
13213 printf("*** so that the correct libraries are found at run-time))\n");
13219 if { (eval echo configure
:13220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
13223 echo "configure: failed program was:" >&5
13224 cat conftest.
$ac_ext >&5
13231 CFLAGS
="$ac_save_CFLAGS"
13232 LIBS
="$ac_save_LIBS"
13236 if test "x$no_xml" = x
; then
13237 echo "$ac_t""yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" 1>&6
13238 MODULE_XML
=bin
/pdb_xml.so
13240 echo "$ac_t""no" 1>&6
13241 if test "$XML2_CONFIG" = "no" ; then
13242 echo "*** The xml2-config script installed by LIBXML could not be found"
13243 echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
13244 echo "*** your path, or set the XML2_CONFIG environment variable to the"
13245 echo "*** full path to xml2-config."
13247 if test -f conf.xmltest
; then
13250 echo "*** Could not run libxml test program, checking why..."
13251 CFLAGS
="$CFLAGS $XML_CFLAGS"
13252 LIBS
="$LIBS $XML_LIBS"
13253 cat > conftest.
$ac_ext <<EOF
13254 #line 13255 "configure"
13255 #include "confdefs.h"
13257 #include <libxml/xmlversion.h>
13261 LIBXML_TEST_VERSION; return 0;
13264 if { (eval echo configure
:13265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13266 echo "*** The test program compiled, but did not run. This usually means"
13267 echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
13268 echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
13269 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13270 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13271 echo "*** is required on your system"
13273 echo "*** If you have an old version installed, it is best to remove it, although"
13274 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13276 echo "configure: failed program was:" >&5
13277 cat conftest.
$ac_ext >&5
13279 echo "*** The test program failed to compile or link. See the file config.log for the"
13280 echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
13281 echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
13282 echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
13285 CFLAGS
="$ac_save_CFLAGS"
13286 LIBS
="$ac_save_LIBS"
13298 CFLAGS
="$CFLAGS $XML_CFLAGS"
13301 #################################################
13302 # check for automount support
13303 echo $ac_n "checking whether to use automount""... $ac_c" 1>&6
13304 echo "configure:13305: checking whether to use automount" >&5
13305 # Check whether --with-automount or --without-automount was given.
13306 if test "${with_automount+set}" = set; then
13307 withval
="$with_automount"
13310 echo "$ac_t""yes" 1>&6
13311 cat >> confdefs.h
<<\EOF
13312 #define WITH_AUTOMOUNT 1
13317 echo "$ac_t""no" 1>&6
13321 echo "$ac_t""no" 1>&6
13326 #################################################
13327 # check for smbmount support
13328 echo $ac_n "checking whether to use smbmount""... $ac_c" 1>&6
13329 echo "configure:13330: checking whether to use smbmount" >&5
13330 # Check whether --with-smbmount or --without-smbmount was given.
13331 if test "${with_smbmount+set}" = set; then
13332 withval
="$with_smbmount"
13337 echo "$ac_t""yes" 1>&6
13338 cat >> confdefs.h
<<\EOF
13339 #define WITH_SMBMOUNT 1
13342 EXTRA_BIN_PROGS
="$EXTRA_BIN_PROGS bin/smbmount bin/smbmnt bin/smbumount"
13345 { echo "configure: error: not on a linux system!" 1>&2; exit 1; }
13350 echo "$ac_t""no" 1>&6
13354 echo "$ac_t""no" 1>&6
13360 #################################################
13361 # check for a PAM clear-text auth, accounts, password and session support
13362 with_pam_for_crypt
=no
13363 echo $ac_n "checking whether to use PAM""... $ac_c" 1>&6
13364 echo "configure:13365: checking whether to use PAM" >&5
13365 # Check whether --with-pam or --without-pam was given.
13366 if test "${with_pam+set}" = set; then
13367 withval
="$with_pam"
13370 echo "$ac_t""yes" 1>&6
13371 cat >> confdefs.h
<<\EOF
13375 AUTHLIBS
="$AUTHLIBS -lpam"
13376 with_pam_for_crypt
=yes
13379 echo "$ac_t""no" 1>&6
13383 echo "$ac_t""no" 1>&6
13388 # we can't build a pam module if we don't have pam.
13389 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
13390 echo "configure:13391: checking for pam_get_data in -lpam" >&5
13391 ac_lib_var
=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
13392 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13393 echo $ac_n "(cached) $ac_c" 1>&6
13395 ac_save_LIBS
="$LIBS"
13397 cat > conftest.
$ac_ext <<EOF
13398 #line 13399 "configure"
13399 #include "confdefs.h"
13400 /* Override any gcc2 internal prototype to avoid an error. */
13401 /* We use char because int might match the return type of a gcc2
13402 builtin and then its argument prototype would still apply. */
13403 char pam_get_data();
13409 if { (eval echo configure
:13410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13411 eval "ac_cv_lib_$ac_lib_var=yes"
13413 echo "configure: failed program was:" >&5
13414 cat conftest.
$ac_ext >&5
13416 eval "ac_cv_lib_$ac_lib_var=no"
13419 LIBS
="$ac_save_LIBS"
13422 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13423 echo "$ac_t""yes" 1>&6
13424 cat >> confdefs.h
<<\EOF
13425 #define HAVE_LIBPAM 1
13429 echo "$ac_t""no" 1>&6
13433 #################################################
13434 # check for pam_smbpass support
13435 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
13436 echo "configure:13437: checking whether to use pam_smbpass" >&5
13437 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
13438 if test "${with_pam_smbpass+set}" = set; then
13439 withval
="$with_pam_smbpass"
13442 echo "$ac_t""yes" 1>&6
13444 # Conditions under which pam_smbpass should not be built.
13446 if test x
$PICFLAG = x
; then
13447 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
13448 elif test x
$ac_cv_lib_pam_pam_get_data = xno
; then
13449 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
13451 SHLIB_PROGS
="$SHLIB_PROGS bin/pam_smbpass.so"
13455 echo "$ac_t""no" 1>&6
13459 echo "$ac_t""no" 1>&6
13465 ###############################################
13466 # test for where we get crypt() from, but only
13468 if test x
"$with_pam_for_crypt" = x
"no"; then
13469 for ac_func
in crypt
13471 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13472 echo "configure:13473: checking for $ac_func" >&5
13473 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13474 echo $ac_n "(cached) $ac_c" 1>&6
13476 cat > conftest.
$ac_ext <<EOF
13477 #line 13478 "configure"
13478 #include "confdefs.h"
13479 /* System header to define __stub macros and hopefully few prototypes,
13480 which can conflict with char $ac_func(); below. */
13481 #include <assert.h>
13482 /* Override any gcc2 internal prototype to avoid an error. */
13483 /* We use char because int might match the return type of a gcc2
13484 builtin and then its argument prototype would still apply. */
13489 /* The GNU C library defines this for functions which it implements
13490 to always fail with ENOSYS. Some functions are actually named
13491 something starting with __ and the normal name is an alias. */
13492 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13500 if { (eval echo configure
:13501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13502 eval "ac_cv_func_$ac_func=yes"
13504 echo "configure: failed program was:" >&5
13505 cat conftest.
$ac_ext >&5
13507 eval "ac_cv_func_$ac_func=no"
13512 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13513 echo "$ac_t""yes" 1>&6
13514 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13515 cat >> confdefs.h
<<EOF
13516 #define $ac_tr_func 1
13520 echo "$ac_t""no" 1>&6
13524 if test x
"$ac_cv_func_crypt" = x
"no"; then
13525 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
13526 echo "configure:13527: checking for crypt in -lcrypt" >&5
13527 ac_lib_var
=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
13528 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13529 echo $ac_n "(cached) $ac_c" 1>&6
13531 ac_save_LIBS
="$LIBS"
13532 LIBS
="-lcrypt $LIBS"
13533 cat > conftest.
$ac_ext <<EOF
13534 #line 13535 "configure"
13535 #include "confdefs.h"
13536 /* Override any gcc2 internal prototype to avoid an error. */
13537 /* We use char because int might match the return type of a gcc2
13538 builtin and then its argument prototype would still apply. */
13545 if { (eval echo configure
:13546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13547 eval "ac_cv_lib_$ac_lib_var=yes"
13549 echo "configure: failed program was:" >&5
13550 cat conftest.
$ac_ext >&5
13552 eval "ac_cv_lib_$ac_lib_var=no"
13555 LIBS
="$ac_save_LIBS"
13558 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13559 echo "$ac_t""yes" 1>&6
13560 AUTHLIBS
="$AUTHLIBS -lcrypt";
13561 cat >> confdefs.h
<<\EOF
13562 #define HAVE_CRYPT 1
13566 echo "$ac_t""no" 1>&6
13573 ## moved after the check for -lcrypt in order to
13574 ## ensure that the necessary libraries are included
13575 ## check checking for truncated salt. Wrapped by the
13576 ## $with_pam_for_crypt variable as above --jerry
13578 if test $with_pam_for_crypt = no
; then
13579 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
13580 echo "configure:13581: checking for a crypt that needs truncated salt" >&5
13581 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
13582 echo $ac_n "(cached) $ac_c" 1>&6
13586 LIBS
="$AUTHLIBS $LIBS"
13587 if test "$cross_compiling" = yes; then
13588 samba_cv_HAVE_TRUNCATED_SALT
=cross
13590 cat > conftest.
$ac_ext <<EOF
13591 #line 13592 "configure"
13592 #include "confdefs.h"
13593 #include "${srcdir-.}/tests/crypttest.c"
13595 if { (eval echo configure
:13596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
13597 samba_cv_HAVE_TRUNCATED_SALT
=no
13599 echo "configure: failed program was:" >&5
13600 cat conftest.
$ac_ext >&5
13602 samba_cv_HAVE_TRUNCATED_SALT
=yes
13610 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
13611 if test x
"$samba_cv_HAVE_TRUNCATED_SALT" = x
"yes"; then
13612 cat >> confdefs.h
<<\EOF
13613 #define HAVE_TRUNCATED_SALT 1
13619 ########################################################################################
13621 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
13623 ########################################################################################
13625 #################################################
13626 # check for a LDAP password database configuration backwards compatibility
13627 echo $ac_n "checking whether to use LDAP SAM 2.2 compatible configuration""... $ac_c" 1>&6
13628 echo "configure:13629: checking whether to use LDAP SAM 2.2 compatible configuration" >&5
13629 # Check whether --with-ldapsam or --without-ldapsam was given.
13630 if test "${with_ldapsam+set}" = set; then
13631 withval
="$with_ldapsam"
13634 echo "$ac_t""yes" 1>&6
13635 cat >> confdefs.h
<<\EOF
13636 #define WITH_LDAP_SAMCONFIG 1
13641 echo "$ac_t""no" 1>&6
13645 echo "$ac_t""no" 1>&6
13650 #################################################
13651 # check for a TDB password database
13652 echo $ac_n "checking whether to use TDB SAM database""... $ac_c" 1>&6
13653 echo "configure:13654: checking whether to use TDB SAM database" >&5
13654 # Check whether --with-tdbsam or --without-tdbsam was given.
13655 if test "${with_tdbsam+set}" = set; then
13656 withval
="$with_tdbsam"
13659 echo "$ac_t""yes" 1>&6
13660 cat >> confdefs.h
<<\EOF
13661 #define WITH_TDB_SAM 1
13666 echo "$ac_t""no" 1>&6
13670 echo "$ac_t""no" 1>&6
13675 #################################################
13676 # check for a NISPLUS password database
13677 echo $ac_n "checking whether to use NISPLUS SAM database""... $ac_c" 1>&6
13678 echo "configure:13679: checking whether to use NISPLUS SAM database" >&5
13679 # Check whether --with-nisplussam or --without-nisplussam was given.
13680 if test "${with_nisplussam+set}" = set; then
13681 withval
="$with_nisplussam"
13684 echo "$ac_t""yes" 1>&6
13685 cat >> confdefs.h
<<\EOF
13686 #define WITH_NISPLUS_SAM 1
13691 echo "$ac_t""no" 1>&6
13695 echo "$ac_t""no" 1>&6
13700 ########################################################################################
13702 ## END OF TESTS FOR SAM BACKENDS.
13704 ########################################################################################
13706 #################################################
13707 # check for a NISPLUS_HOME support
13708 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
13709 echo "configure:13710: checking whether to use NISPLUS_HOME" >&5
13710 # Check whether --with-nisplus-home or --without-nisplus-home was given.
13711 if test "${with_nisplus_home+set}" = set; then
13712 withval
="$with_nisplus_home"
13715 echo "$ac_t""yes" 1>&6
13716 cat >> confdefs.h
<<\EOF
13717 #define WITH_NISPLUS_HOME 1
13722 echo "$ac_t""no" 1>&6
13726 echo "$ac_t""no" 1>&6
13731 #################################################
13732 # check for syslog logging
13733 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
13734 echo "configure:13735: checking whether to use syslog logging" >&5
13735 # Check whether --with-syslog or --without-syslog was given.
13736 if test "${with_syslog+set}" = set; then
13737 withval
="$with_syslog"
13740 echo "$ac_t""yes" 1>&6
13741 cat >> confdefs.h
<<\EOF
13742 #define WITH_SYSLOG 1
13747 echo "$ac_t""no" 1>&6
13751 echo "$ac_t""no" 1>&6
13756 #################################################
13757 # check for a shared memory profiling support
13758 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
13759 echo "configure:13760: checking whether to use profiling" >&5
13760 # Check whether --with-profiling-data or --without-profiling-data was given.
13761 if test "${with_profiling_data+set}" = set; then
13762 withval
="$with_profiling_data"
13765 echo "$ac_t""yes" 1>&6
13766 cat >> confdefs.h
<<\EOF
13767 #define WITH_PROFILE 1
13772 echo "$ac_t""no" 1>&6
13776 echo "$ac_t""no" 1>&6
13782 #################################################
13783 # check for experimental disk-quotas support
13784 QUOTAOBJS
=smbd
/noquotas.o
13786 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
13787 echo "configure:13788: checking whether to support disk-quotas" >&5
13788 # Check whether --with-quotas or --without-quotas was given.
13789 if test "${with_quotas+set}" = set; then
13790 withval
="$with_quotas"
13793 echo "$ac_t""yes" 1>&6
13796 # Check for kernel 2.4.x quota braindamage...
13797 echo $ac_n "checking for linux 2.4.x quota braindamage..""... $ac_c" 1>&6
13798 echo "configure:13799: checking for linux 2.4.x quota braindamage.." >&5
13799 if eval "test \"`echo '$''{'samba_cv_linux_2_4_quota_braindamage'+set}'`\" = set"; then
13800 echo $ac_n "(cached) $ac_c" 1>&6
13803 cat > conftest.
$ac_ext <<EOF
13804 #line 13805 "configure"
13805 #include "confdefs.h"
13807 #include <sys/types.h>
13808 #include <asm/types.h>
13809 #include <linux/quota.h>
13810 #include <mntent.h>
13811 #include <linux/unistd.h>
13813 struct mem_dqblk D;
13816 if { (eval echo configure
:13817: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13818 samba_cv_linux_2_4_quota_braindamage
=yes
13820 echo "configure: failed program was:" >&5
13821 cat conftest.
$ac_ext >&5
13823 samba_cv_linux_2_4_quota_braindamage
=no
13828 echo "$ac_t""$samba_cv_linux_2_4_quota_braindamage" 1>&6
13829 if test x
"$samba_cv_linux_2_4_quota_braindamage" = x
"yes"; then
13830 cat >> confdefs.h
<<\EOF
13831 #define LINUX_QUOTAS_2 1
13835 cat >> confdefs.h
<<\EOF
13836 #define LINUX_QUOTAS_1 1
13844 QUOTAOBJS
=smbd
/quotas.o
13845 cat >> confdefs.h
<<\EOF
13846 #define WITH_QUOTAS 1
13851 echo "$ac_t""no" 1>&6
13855 echo "$ac_t""no" 1>&6
13861 #################################################
13862 # check for experimental utmp accounting
13864 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
13865 echo "configure:13866: checking whether to support utmp accounting" >&5
13866 # Check whether --with-utmp or --without-utmp was given.
13867 if test "${with_utmp+set}" = set; then
13868 withval
="$with_utmp"
13871 echo "$ac_t""yes" 1>&6
13872 cat >> confdefs.h
<<\EOF
13873 #define WITH_UTMP 1
13878 echo "$ac_t""no" 1>&6
13882 echo "$ac_t""no" 1>&6
13887 #################################################
13888 # choose native language(s) of man pages
13889 echo $ac_n "checking chosen man pages' language(s)""... $ac_c" 1>&6
13890 echo "configure:13891: checking chosen man pages' language(s)" >&5
13891 # Check whether --with-manpages-langs or --without-manpages-langs was given.
13892 if test "${with_manpages_langs+set}" = set; then
13893 withval
="$with_manpages_langs"
13896 echo "configure: warning: --with-manpages-langs called without argument - will use default" 1>&2
13900 manlangs
="$withval"
13904 echo "$ac_t""$manlangs" 1>&6
13905 manlangs
=`echo $manlangs | sed "s/,/ /g"` # replacing commas with spaces to produce a list
13909 echo "$ac_t""$manlangs" 1>&6
13915 #################################################
13916 # should we build libsmbclient?
13918 LIBSMBCLIENT_SHARED
=
13920 echo $ac_n "checking whether to build the libsmbclient shared library""... $ac_c" 1>&6
13921 echo "configure:13922: checking whether to build the libsmbclient shared library" >&5
13922 # Check whether --with-libsmbclient or --without-libsmbclient was given.
13923 if test "${with_libsmbclient+set}" = set; then
13924 withval
="$with_libsmbclient"
13927 echo "$ac_t""no" 1>&6
13930 if test $BLDSHARED = true
; then
13931 LIBSMBCLIENT_SHARED
=bin
/libsmbclient.
$SHLIBEXT
13932 LIBSMBCLIENT
=libsmbclient
13933 echo "$ac_t""yes" 1>&6
13935 echo "$ac_t""no shared library support" 1>&6
13940 echo "$ac_t""yes" 1>&6
13946 #################################################
13947 # these tests are taken from the GNU fileutils package
13948 echo "checking how to get filesystem space usage" 1>&6
13949 echo "configure:13950: checking how to get filesystem space usage" >&5
13952 # Test for statvfs64.
13953 if test $space = no
; then
13955 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
13956 echo "configure:13957: checking statvfs64 function (SVR4)" >&5
13957 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
13958 echo $ac_n "(cached) $ac_c" 1>&6
13960 if test "$cross_compiling" = yes; then
13961 fu_cv_sys_stat_statvfs64
=cross
13963 cat > conftest.
$ac_ext <<EOF
13964 #line 13965 "configure"
13965 #include "confdefs.h"
13967 #if defined(HAVE_UNISTD_H)
13968 #include <unistd.h>
13970 #include <sys/types.h>
13971 #include <sys/statvfs.h>
13974 struct statvfs64 fsd;
13975 exit (statvfs64 (".", &fsd));
13978 if { (eval echo configure
:13979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
13980 fu_cv_sys_stat_statvfs64
=yes
13982 echo "configure: failed program was:" >&5
13983 cat conftest.
$ac_ext >&5
13985 fu_cv_sys_stat_statvfs64
=no
13992 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
13993 if test $fu_cv_sys_stat_statvfs64 = yes; then
13995 cat >> confdefs.h
<<\EOF
13996 #define STAT_STATVFS64 1
14002 # Perform only the link test since it seems there are no variants of the
14003 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
14004 # because that got a false positive on SCO OSR5. Adding the declaration
14005 # of a `struct statvfs' causes this test to fail (as it should) on such
14006 # systems. That system is reported to work fine with STAT_STATFS4 which
14007 # is what it gets when this test fails.
14008 if test $space = no
; then
14010 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
14011 echo "configure:14012: checking statvfs function (SVR4)" >&5
14012 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
14013 echo $ac_n "(cached) $ac_c" 1>&6
14015 cat > conftest.
$ac_ext <<EOF
14016 #line 14017 "configure"
14017 #include "confdefs.h"
14018 #include <sys/types.h>
14019 #include <sys/statvfs.h>
14021 struct statvfs fsd; statvfs (0, &fsd);
14024 if { (eval echo configure
:14025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
14026 fu_cv_sys_stat_statvfs
=yes
14028 echo "configure: failed program was:" >&5
14029 cat conftest.
$ac_ext >&5
14031 fu_cv_sys_stat_statvfs
=no
14036 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
14037 if test $fu_cv_sys_stat_statvfs = yes; then
14039 cat >> confdefs.h
<<\EOF
14040 #define STAT_STATVFS 1
14046 if test $space = no
; then
14047 # DEC Alpha running OSF/1
14048 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
14049 echo "configure:14050: checking for 3-argument statfs function (DEC OSF/1)" >&5
14050 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
14051 echo $ac_n "(cached) $ac_c" 1>&6
14053 if test "$cross_compiling" = yes; then
14054 fu_cv_sys_stat_statfs3_osf1
=no
14056 cat > conftest.
$ac_ext <<EOF
14057 #line 14058 "configure"
14058 #include "confdefs.h"
14060 #include <sys/param.h>
14061 #include <sys/types.h>
14062 #include <sys/mount.h>
14067 exit (statfs (".", &fsd, sizeof (struct statfs)));
14070 if { (eval echo configure
:14071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
14072 fu_cv_sys_stat_statfs3_osf1
=yes
14074 echo "configure: failed program was:" >&5
14075 cat conftest.
$ac_ext >&5
14077 fu_cv_sys_stat_statfs3_osf1
=no
14084 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
14085 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
14087 cat >> confdefs.h
<<\EOF
14088 #define STAT_STATFS3_OSF1 1
14094 if test $space = no
; then
14096 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
14097 echo "configure:14098: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
14098 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
14099 echo $ac_n "(cached) $ac_c" 1>&6
14101 if test "$cross_compiling" = yes; then
14102 fu_cv_sys_stat_statfs2_bsize
=no
14104 cat > conftest.
$ac_ext <<EOF
14105 #line 14106 "configure"
14106 #include "confdefs.h"
14108 #ifdef HAVE_SYS_PARAM_H
14109 #include <sys/param.h>
14111 #ifdef HAVE_SYS_MOUNT_H
14112 #include <sys/mount.h>
14114 #ifdef HAVE_SYS_VFS_H
14115 #include <sys/vfs.h>
14121 exit (statfs (".", &fsd));
14124 if { (eval echo configure
:14125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
14126 fu_cv_sys_stat_statfs2_bsize
=yes
14128 echo "configure: failed program was:" >&5
14129 cat conftest.
$ac_ext >&5
14131 fu_cv_sys_stat_statfs2_bsize
=no
14138 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
14139 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
14141 cat >> confdefs.h
<<\EOF
14142 #define STAT_STATFS2_BSIZE 1
14148 if test $space = no
; then
14150 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
14151 echo "configure:14152: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
14152 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
14153 echo $ac_n "(cached) $ac_c" 1>&6
14155 if test "$cross_compiling" = yes; then
14156 fu_cv_sys_stat_statfs4
=no
14158 cat > conftest.
$ac_ext <<EOF
14159 #line 14160 "configure"
14160 #include "confdefs.h"
14161 #include <sys/types.h>
14162 #include <sys/statfs.h>
14166 exit (statfs (".", &fsd, sizeof fsd, 0));
14169 if { (eval echo configure
:14170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
14171 fu_cv_sys_stat_statfs4
=yes
14173 echo "configure: failed program was:" >&5
14174 cat conftest.
$ac_ext >&5
14176 fu_cv_sys_stat_statfs4
=no
14183 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
14184 if test $fu_cv_sys_stat_statfs4 = yes; then
14186 cat >> confdefs.h
<<\EOF
14187 #define STAT_STATFS4 1
14193 if test $space = no
; then
14194 # 4.4BSD and NetBSD
14195 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
14196 echo "configure:14197: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
14197 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
14198 echo $ac_n "(cached) $ac_c" 1>&6
14200 if test "$cross_compiling" = yes; then
14201 fu_cv_sys_stat_statfs2_fsize
=no
14203 cat > conftest.
$ac_ext <<EOF
14204 #line 14205 "configure"
14205 #include "confdefs.h"
14206 #include <sys/types.h>
14207 #ifdef HAVE_SYS_PARAM_H
14208 #include <sys/param.h>
14210 #ifdef HAVE_SYS_MOUNT_H
14211 #include <sys/mount.h>
14217 exit (statfs (".", &fsd));
14220 if { (eval echo configure
:14221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
14222 fu_cv_sys_stat_statfs2_fsize
=yes
14224 echo "configure: failed program was:" >&5
14225 cat conftest.
$ac_ext >&5
14227 fu_cv_sys_stat_statfs2_fsize
=no
14234 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
14235 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
14237 cat >> confdefs.h
<<\EOF
14238 #define STAT_STATFS2_FSIZE 1
14244 if test $space = no
; then
14246 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
14247 echo "configure:14248: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
14248 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
14249 echo $ac_n "(cached) $ac_c" 1>&6
14251 if test "$cross_compiling" = yes; then
14252 fu_cv_sys_stat_fs_data
=no
14254 cat > conftest.
$ac_ext <<EOF
14255 #line 14256 "configure"
14256 #include "confdefs.h"
14257 #include <sys/types.h>
14258 #ifdef HAVE_SYS_PARAM_H
14259 #include <sys/param.h>
14261 #ifdef HAVE_SYS_MOUNT_H
14262 #include <sys/mount.h>
14264 #ifdef HAVE_SYS_FS_TYPES_H
14265 #include <sys/fs_types.h>
14269 struct fs_data fsd;
14270 /* Ultrix's statfs returns 1 for success,
14271 0 for not mounted, -1 for failure. */
14272 exit (statfs (".", &fsd) != 1);
14275 if { (eval echo configure
:14276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
14277 fu_cv_sys_stat_fs_data
=yes
14279 echo "configure: failed program was:" >&5
14280 cat conftest.
$ac_ext >&5
14282 fu_cv_sys_stat_fs_data
=no
14289 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
14290 if test $fu_cv_sys_stat_fs_data = yes; then
14292 cat >> confdefs.h
<<\EOF
14293 #define STAT_STATFS2_FS_DATA 1
14300 # As a gating factor for large file support, in order to
14301 # use <4GB files we must have the following minimal support
14303 # long long, and a 64 bit off_t or off64_t.
14304 # If we don't have all of these then disable large
14307 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
14308 echo "configure:14309: checking if large file support can be enabled" >&5
14309 cat > conftest.
$ac_ext <<EOF
14310 #line 14311 "configure"
14311 #include "confdefs.h"
14313 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
14314 #include <sys/types.h>
14323 if { (eval echo configure
:14324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14325 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=yes
14327 echo "configure: failed program was:" >&5
14328 cat conftest.
$ac_ext >&5
14330 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=no
14333 if test x
"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x
"yes"; then
14334 cat >> confdefs.h
<<\EOF
14335 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
14339 echo "$ac_t""$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" 1>&6
14341 # Check whether --with-spinlocks or --without-spinlocks was given.
14342 if test "${with_spinlocks+set}" = set; then
14343 withval
="$with_spinlocks"
14347 if test "x$with_spinlocks" = "xyes"; then
14348 cat >> confdefs.h
<<\EOF
14349 #define USE_SPINLOCKS 1
14353 case "$host_cpu" in
14355 cat >> confdefs.h
<<\EOF
14356 #define SPARC_SPINLOCKS 1
14361 i386|i486|i586|i686
)
14362 cat >> confdefs.h
<<\EOF
14363 #define INTEL_SPINLOCKS 1
14369 cat >> confdefs.h
<<\EOF
14370 #define MIPS_SPINLOCKS 1
14376 cat >> confdefs.h
<<\EOF
14377 #define POWERPC_SPINLOCKS 1
14384 #################################################
14385 # check for ACL support
14387 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
14388 echo "configure:14389: checking whether to support ACLs" >&5
14389 # Check whether --with-acl-support or --without-acl-support was given.
14390 if test "${with_acl_support+set}" = set; then
14391 withval
="$with_acl_support"
14397 echo "$ac_t""Using UnixWare ACLs" 1>&6
14398 cat >> confdefs.h
<<\EOF
14399 #define HAVE_UNIXWARE_ACLS 1
14404 echo "$ac_t""Using solaris ACLs" 1>&6
14405 cat >> confdefs.h
<<\EOF
14406 #define HAVE_SOLARIS_ACLS 1
14411 echo "$ac_t""Using HPUX ACLs" 1>&6
14412 cat >> confdefs.h
<<\EOF
14413 #define HAVE_HPUX_ACLS 1
14418 echo "$ac_t""Using IRIX ACLs" 1>&6
14419 cat >> confdefs.h
<<\EOF
14420 #define HAVE_IRIX_ACLS 1
14425 echo "$ac_t""Using AIX ACLs" 1>&6
14426 cat >> confdefs.h
<<\EOF
14427 #define HAVE_AIX_ACLS 1
14432 echo "$ac_t""Using Tru64 ACLs" 1>&6
14433 cat >> confdefs.h
<<\EOF
14434 #define HAVE_TRU64_ACLS 1
14437 LIBS
="$LIBS -lpacl"
14440 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
14441 echo "configure:14442: checking for acl_get_file in -lacl" >&5
14442 ac_lib_var
=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
14443 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14444 echo $ac_n "(cached) $ac_c" 1>&6
14446 ac_save_LIBS
="$LIBS"
14448 cat > conftest.
$ac_ext <<EOF
14449 #line 14450 "configure"
14450 #include "confdefs.h"
14451 /* Override any gcc2 internal prototype to avoid an error. */
14452 /* We use char because int might match the return type of a gcc2
14453 builtin and then its argument prototype would still apply. */
14454 char acl_get_file();
14460 if { (eval echo configure
:14461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
14462 eval "ac_cv_lib_$ac_lib_var=yes"
14464 echo "configure: failed program was:" >&5
14465 cat conftest.
$ac_ext >&5
14467 eval "ac_cv_lib_$ac_lib_var=no"
14470 LIBS
="$ac_save_LIBS"
14473 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14474 echo "$ac_t""yes" 1>&6
14475 ac_tr_lib
=HAVE_LIB
`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
14476 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
14477 cat >> confdefs.h
<<EOF
14478 #define $ac_tr_lib 1
14484 echo "$ac_t""no" 1>&6
14487 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
14488 echo "configure:14489: checking for ACL support" >&5
14489 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
14490 echo $ac_n "(cached) $ac_c" 1>&6
14493 cat > conftest.
$ac_ext <<EOF
14494 #line 14495 "configure"
14495 #include "confdefs.h"
14496 #include <sys/types.h>
14497 #include <sys/acl.h>
14499 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
14502 if { (eval echo configure
:14503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
14504 samba_cv_HAVE_POSIX_ACLS
=yes
14506 echo "configure: failed program was:" >&5
14507 cat conftest.
$ac_ext >&5
14509 samba_cv_HAVE_POSIX_ACLS
=no
14514 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
14515 if test x
"$samba_cv_HAVE_POSIX_ACLS" = x
"yes"; then
14516 echo "$ac_t""Using posix ACLs" 1>&6
14517 cat >> confdefs.h
<<\EOF
14518 #define HAVE_POSIX_ACLS 1
14521 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
14522 echo "configure:14523: checking for acl_get_perm_np" >&5
14523 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
14524 echo $ac_n "(cached) $ac_c" 1>&6
14527 cat > conftest.
$ac_ext <<EOF
14528 #line 14529 "configure"
14529 #include "confdefs.h"
14530 #include <sys/types.h>
14531 #include <sys/acl.h>
14533 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
14536 if { (eval echo configure
:14537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
14538 samba_cv_HAVE_ACL_GET_PERM_NP
=yes
14540 echo "configure: failed program was:" >&5
14541 cat conftest.
$ac_ext >&5
14543 samba_cv_HAVE_ACL_GET_PERM_NP
=no
14548 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
14549 if test x
"$samba_cv_HAVE_ACL_GET_PERM_NP" = x
"yes"; then
14550 cat >> confdefs.h
<<\EOF
14551 #define HAVE_ACL_GET_PERM_NP 1
14560 echo "$ac_t""no" 1>&6
14561 cat >> confdefs.h
<<\EOF
14562 #define HAVE_NO_ACLS 1
14568 cat >> confdefs.h
<<\EOF
14569 #define HAVE_NO_ACLS 1
14572 echo "$ac_t""no" 1>&6
14577 #################################################
14578 # check for sendfile support
14580 with_sendfile_support
=yes
14581 echo $ac_n "checking whether to check to support sendfile""... $ac_c" 1>&6
14582 echo "configure:14583: checking whether to check to support sendfile" >&5
14583 # Check whether --with-sendfile-support or --without-sendfile-support was given.
14584 if test "${with_sendfile_support+set}" = set; then
14585 withval
="$with_sendfile_support"
14589 echo "$ac_t""yes" 1>&6;
14593 echo $ac_n "checking for linux sendfile64 support""... $ac_c" 1>&6
14594 echo "configure:14595: checking for linux sendfile64 support" >&5
14595 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE64'+set}'`\" = set"; then
14596 echo $ac_n "(cached) $ac_c" 1>&6
14599 cat > conftest.
$ac_ext <<EOF
14600 #line 14601 "configure"
14601 #include "confdefs.h"
14602 #include <sys/sendfile.h>
14608 ssize_t nwritten = sendfile64(tofd, fromfd, &offset, total);
14612 if { (eval echo configure
:14613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
14614 samba_cv_HAVE_SENDFILE64
=yes
14616 echo "configure: failed program was:" >&5
14617 cat conftest.
$ac_ext >&5
14619 samba_cv_HAVE_SENDFILE64
=no
14624 echo "$ac_t""$samba_cv_HAVE_SENDFILE64" 1>&6
14626 echo $ac_n "checking for linux sendfile support""... $ac_c" 1>&6
14627 echo "configure:14628: checking for linux sendfile support" >&5
14628 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE'+set}'`\" = set"; then
14629 echo $ac_n "(cached) $ac_c" 1>&6
14632 cat > conftest.
$ac_ext <<EOF
14633 #line 14634 "configure"
14634 #include "confdefs.h"
14635 #include <sys/sendfile.h>
14641 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
14645 if { (eval echo configure
:14646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
14647 samba_cv_HAVE_SENDFILE
=yes
14649 echo "configure: failed program was:" >&5
14650 cat conftest.
$ac_ext >&5
14652 samba_cv_HAVE_SENDFILE
=no
14657 echo "$ac_t""$samba_cv_HAVE_SENDFILE" 1>&6
14659 # Try and cope with broken Linux sendfile....
14660 echo $ac_n "checking for broken linux sendfile support""... $ac_c" 1>&6
14661 echo "configure:14662: checking for broken linux sendfile support" >&5
14662 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_LINUX_SENDFILE'+set}'`\" = set"; then
14663 echo $ac_n "(cached) $ac_c" 1>&6
14666 cat > conftest.
$ac_ext <<EOF
14667 #line 14668 "configure"
14668 #include "confdefs.h"
14670 #if defined(_FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS == 64)
14671 #undef _FILE_OFFSET_BITS
14673 #include <sys/sendfile.h>
14679 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
14683 if { (eval echo configure
:14684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
14685 samba_cv_HAVE_BROKEN_LINUX_SENDFILE
=yes
14687 echo "configure: failed program was:" >&5
14688 cat conftest.
$ac_ext >&5
14690 samba_cv_HAVE_BROKEN_LINUX_SENDFILE
=no
14695 echo "$ac_t""$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" 1>&6
14697 if test x
"$samba_cv_HAVE_SENDFILE64" = x
"yes"; then
14698 cat >> confdefs.h
<<\EOF
14699 #define HAVE_SENDFILE64 1
14702 cat >> confdefs.h
<<\EOF
14703 #define LINUX_SENDFILE_API 1
14706 cat >> confdefs.h
<<\EOF
14707 #define WITH_SENDFILE 1
14710 elif test x
"$samba_cv_HAVE_SENDFILE" = x
"yes"; then
14711 cat >> confdefs.h
<<\EOF
14712 #define HAVE_SENDFILE 1
14715 cat >> confdefs.h
<<\EOF
14716 #define LINUX_SENDFILE_API 1
14719 cat >> confdefs.h
<<\EOF
14720 #define WITH_SENDFILE 1
14723 elif test x
"$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" = x
"yes"; then
14724 cat >> confdefs.h
<<\EOF
14725 #define LINUX_BROKEN_SENDFILE_API 1
14728 cat >> confdefs.h
<<\EOF
14729 #define WITH_SENDFILE 1
14733 echo "$ac_t""no" 1>&6;
14738 echo $ac_n "checking for freebsd sendfile support""... $ac_c" 1>&6
14739 echo "configure:14740: checking for freebsd sendfile support" >&5
14740 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE'+set}'`\" = set"; then
14741 echo $ac_n "(cached) $ac_c" 1>&6
14744 cat > conftest.
$ac_ext <<EOF
14745 #line 14746 "configure"
14746 #include "confdefs.h"
14748 #include <sys/types.h>
14749 #include <sys/socket.h>
14750 #include <sys/uio.h>
14754 off_t offset, nwritten;
14755 struct sf_hdtr hdr;
14756 struct iovec hdtrl;
14757 hdr->headers = &hdtrl;
14759 hdr->trailers = NULL;
14761 hdtrl.iov_base = NULL;
14763 int ret = sendfile(fromfd, tofd, offset, total, &hdr, &nwritten, 0);
14767 if { (eval echo configure
:14768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
14769 samba_cv_HAVE_SENDFILE
=yes
14771 echo "configure: failed program was:" >&5
14772 cat conftest.
$ac_ext >&5
14774 samba_cv_HAVE_SENDFILE
=no
14779 echo "$ac_t""$samba_cv_HAVE_SENDFILE" 1>&6
14781 if test x
"$samba_cv_HAVE_SENDFILE" = x
"yes"; then
14782 cat >> confdefs.h
<<\EOF
14783 #define HAVE_SENDFILE 1
14786 cat >> confdefs.h
<<\EOF
14787 #define FREEBSD_SENDFILE_API 1
14790 cat >> confdefs.h
<<\EOF
14791 #define WITH_SENDFILE 1
14795 echo "$ac_t""no" 1>&6;
14800 echo $ac_n "checking for hpux sendfile64 support""... $ac_c" 1>&6
14801 echo "configure:14802: checking for hpux sendfile64 support" >&5
14802 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE64'+set}'`\" = set"; then
14803 echo $ac_n "(cached) $ac_c" 1>&6
14806 cat > conftest.
$ac_ext <<EOF
14807 #line 14808 "configure"
14808 #include "confdefs.h"
14810 #include <sys/socket.h>
14811 #include <sys/uio.h>
14816 struct iovec hdtrl[2];
14820 hdtrl[0].iov_base = 0;
14821 hdtrl[0].iov_len = 0;
14823 nwritten = sendfile64(tofd, fromfd, offset, total, &hdtrl[0], 0);
14827 if { (eval echo configure
:14828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
14829 samba_cv_HAVE_SENDFILE64
=yes
14831 echo "configure: failed program was:" >&5
14832 cat conftest.
$ac_ext >&5
14834 samba_cv_HAVE_SENDFILE64
=no
14839 echo "$ac_t""$samba_cv_HAVE_SENDFILE64" 1>&6
14840 if test x
"$samba_cv_HAVE_SENDFILE64" = x
"yes"; then
14841 cat >> confdefs.h
<<\EOF
14842 #define HAVE_SENDFILE64 1
14845 cat >> confdefs.h
<<\EOF
14846 #define HPUX_SENDFILE_API 1
14849 cat >> confdefs.h
<<\EOF
14850 #define WITH_SENDFILE 1
14854 echo "$ac_t""no" 1>&6;
14857 echo $ac_n "checking for hpux sendfile support""... $ac_c" 1>&6
14858 echo "configure:14859: checking for hpux sendfile support" >&5
14859 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE'+set}'`\" = set"; then
14860 echo $ac_n "(cached) $ac_c" 1>&6
14863 cat > conftest.
$ac_ext <<EOF
14864 #line 14865 "configure"
14865 #include "confdefs.h"
14867 #include <sys/socket.h>
14868 #include <sys/uio.h>
14873 struct iovec hdtrl[2];
14877 hdtrl[0].iov_base = 0;
14878 hdtrl[0].iov_len = 0;
14880 nwritten = sendfile(tofd, fromfd, offset, total, &hdtrl[0], 0);
14884 if { (eval echo configure
:14885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
14886 samba_cv_HAVE_SENDFILE
=yes
14888 echo "configure: failed program was:" >&5
14889 cat conftest.
$ac_ext >&5
14891 samba_cv_HAVE_SENDFILE
=no
14896 echo "$ac_t""$samba_cv_HAVE_SENDFILE" 1>&6
14897 if test x
"$samba_cv_HAVE_SENDFILE" = x
"yes"; then
14898 cat >> confdefs.h
<<\EOF
14899 #define HAVE_SENDFILE 1
14902 cat >> confdefs.h
<<\EOF
14903 #define HPUX_SENDFILE_API 1
14906 cat >> confdefs.h
<<\EOF
14907 #define WITH_SENDFILE 1
14911 echo "$ac_t""no" 1>&6;
14916 echo $ac_n "checking for sendfilev in -lsendfile""... $ac_c" 1>&6
14917 echo "configure:14918: checking for sendfilev in -lsendfile" >&5
14918 ac_lib_var
=`echo sendfile'_'sendfilev | sed 'y%./+-%__p_%'`
14919 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14920 echo $ac_n "(cached) $ac_c" 1>&6
14922 ac_save_LIBS
="$LIBS"
14923 LIBS
="-lsendfile $LIBS"
14924 cat > conftest.
$ac_ext <<EOF
14925 #line 14926 "configure"
14926 #include "confdefs.h"
14927 /* Override any gcc2 internal prototype to avoid an error. */
14928 /* We use char because int might match the return type of a gcc2
14929 builtin and then its argument prototype would still apply. */
14936 if { (eval echo configure
:14937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
14938 eval "ac_cv_lib_$ac_lib_var=yes"
14940 echo "configure: failed program was:" >&5
14941 cat conftest.
$ac_ext >&5
14943 eval "ac_cv_lib_$ac_lib_var=no"
14946 LIBS
="$ac_save_LIBS"
14949 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14950 echo "$ac_t""yes" 1>&6
14951 ac_tr_lib
=HAVE_LIB
`echo sendfile | sed -e 's/[^a-zA-Z0-9_]/_/g' \
14952 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
14953 cat >> confdefs.h
<<EOF
14954 #define $ac_tr_lib 1
14957 LIBS
="-lsendfile $LIBS"
14960 echo "$ac_t""no" 1>&6
14963 echo $ac_n "checking for solaris sendfilev64 support""... $ac_c" 1>&6
14964 echo "configure:14965: checking for solaris sendfilev64 support" >&5
14965 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILEV64'+set}'`\" = set"; then
14966 echo $ac_n "(cached) $ac_c" 1>&6
14969 cat > conftest.
$ac_ext <<EOF
14970 #line 14971 "configure"
14971 #include "confdefs.h"
14973 #include <sys/sendfile.h>
14978 struct sendfilevec vec[2];
14984 vec[0].sfv_fd = SFV_FD_SELF;
14985 vec[0].sfv_flag = 0;
14986 vec[0].sfv_off = 0;
14987 vec[0].sfv_len = 0;
14990 vec[1].sfv_flag = 0;
14991 vec[1].sfv_off = 0;
14992 vec[1].sfv_len = 0;
14993 nwritten = sendfilev64(tofd, vec, sfvcnt, &xferred);
14997 if { (eval echo configure
:14998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
14999 samba_cv_HAVE_SENDFILEV64
=yes
15001 echo "configure: failed program was:" >&5
15002 cat conftest.
$ac_ext >&5
15004 samba_cv_HAVE_SENDFILEV64
=no
15009 echo "$ac_t""$samba_cv_HAVE_SENDFILEV64" 1>&6
15011 if test x
"$samba_cv_HAVE_SENDFILEV64" = x
"yes"; then
15012 cat >> confdefs.h
<<\EOF
15013 #define HAVE_SENDFILEV64 1
15016 cat >> confdefs.h
<<\EOF
15017 #define SOLARIS_SENDFILE_API 1
15020 cat >> confdefs.h
<<\EOF
15021 #define WITH_SENDFILE 1
15025 echo "$ac_t""no" 1>&6;
15028 echo $ac_n "checking for solaris sendfilev support""... $ac_c" 1>&6
15029 echo "configure:15030: checking for solaris sendfilev support" >&5
15030 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILEV'+set}'`\" = set"; then
15031 echo $ac_n "(cached) $ac_c" 1>&6
15034 cat > conftest.
$ac_ext <<EOF
15035 #line 15036 "configure"
15036 #include "confdefs.h"
15038 #include <sys/sendfile.h>
15043 struct sendfilevec vec[2];
15049 vec[0].sfv_fd = SFV_FD_SELF;
15050 vec[0].sfv_flag = 0;
15051 vec[0].sfv_off = 0;
15052 vec[0].sfv_len = 0;
15055 vec[1].sfv_flag = 0;
15056 vec[1].sfv_off = 0;
15057 vec[1].sfv_len = 0;
15058 nwritten = sendfilev(tofd, vec, sfvcnt, &xferred);
15062 if { (eval echo configure
:15063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
15064 samba_cv_HAVE_SENDFILEV
=yes
15066 echo "configure: failed program was:" >&5
15067 cat conftest.
$ac_ext >&5
15069 samba_cv_HAVE_SENDFILEV
=no
15074 echo "$ac_t""$samba_cv_HAVE_SENDFILEV" 1>&6
15076 if test x
"$samba_cv_HAVE_SENDFILEV" = x
"yes"; then
15077 cat >> confdefs.h
<<\EOF
15078 #define HAVE_SENDFILEV 1
15081 cat >> confdefs.h
<<\EOF
15082 #define SOLARIS_SENDFILE_API 1
15085 cat >> confdefs.h
<<\EOF
15086 #define WITH_SENDFILE 1
15090 echo "$ac_t""no" 1>&6;
15099 echo "$ac_t""no" 1>&6
15103 echo "$ac_t""yes" 1>&6
15109 #################################################
15110 # Check whether winbind is supported on this platform. If so we need to
15111 # build and install client programs, sbin programs and shared libraries
15113 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
15114 echo "configure:15115: checking whether to build winbind" >&5
15116 # Initially, the value of $host_os decides whether winbind is supported
15124 WINBIND_NSS_EXTRA_OBJS
="nsswitch/winbind_nss_solaris.o"
15125 WINBIND_NSS_EXTRA_LIBS
="-lsocket"
15129 WINBIND_NSS_EXTRA_OBJS
="nsswitch/winbind_nss_solaris.o"
15133 winbind_no_reason
=", unsupported on $host_os"
15140 # Check the setting of --with-winbindd
15142 # Check whether --with-winbind or --without-winbind was given.
15143 if test "${with_winbind+set}" = set; then
15144 withval
="$with_winbind"
15158 # We need unix domain sockets for winbind
15160 if test x
"$HAVE_WINBIND" = x
"yes"; then
15161 if test x
"$samba_cv_unixsocket" = x
"no"; then
15162 winbind_no_reason
=", no unix domain socket support on $host_os"
15167 # Display test results
15169 if test x
"$HAVE_WINBIND" = x
"yes"; then
15170 echo "$ac_t""yes" 1>&6
15171 cat >> confdefs.h
<<\EOF
15172 #define WITH_WINBIND 1
15176 EXTRA_BIN_PROGS
="$EXTRA_BIN_PROGS bin/wbinfo\$(EXEEXT)"
15177 EXTRA_SBIN_PROGS
="$EXTRA_SBIN_PROGS bin/winbindd\$(EXEEXT)"
15178 if test x
"$BLDSHARED" = x
"true"; then
15179 SHLIB_PROGS
="$SHLIB_PROGS nsswitch/libnss_winbind.so"
15180 if test x
"$with_pam" = x
"yes"; then
15181 SHLIB_PROGS
="$SHLIB_PROGS nsswitch/pam_winbind.so"
15185 echo "$ac_t""no$winbind_no_reason" 1>&6
15188 # Solaris has some extra fields in struct passwd that need to be
15189 # initialised otherwise nscd crashes. Unfortunately autoconf < 2.50
15190 # doesn't have the AC_CHECK_MEMBER macro which would be handy for checking
15193 #AC_CHECK_MEMBER(struct passwd.pw_comment,
15194 # AC_DEFINE(HAVE_PASSWD_PW_COMMENT, 1, [Defined if struct passwd has pw_comment field]),
15195 # [#include <pwd.h>])
15197 echo $ac_n "checking whether struct passwd has pw_comment""... $ac_c" 1>&6
15198 echo "configure:15199: checking whether struct passwd has pw_comment" >&5
15199 if eval "test \"`echo '$''{'samba_cv_passwd_pw_comment'+set}'`\" = set"; then
15200 echo $ac_n "(cached) $ac_c" 1>&6
15203 cat > conftest.
$ac_ext <<EOF
15204 #line 15205 "configure"
15205 #include "confdefs.h"
15208 struct passwd p; p.pw_comment;
15211 if { (eval echo configure
:15212: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15213 samba_cv_passwd_pw_comment
=yes
15215 echo "configure: failed program was:" >&5
15216 cat conftest.
$ac_ext >&5
15218 samba_cv_passwd_pw_comment
=no
15223 echo "$ac_t""$samba_cv_passwd_pw_comment" 1>&6
15224 if test x
"$samba_cv_passwd_pw_comment" = x
"yes"; then
15225 cat >> confdefs.h
<<\EOF
15226 #define HAVE_PASSWD_PW_COMMENT 1
15231 #AC_CHECK_MEMBER(struct passwd.pw_age,
15232 # AC_DEFINE(HAVE_PASSWD_PW_AGE, 1, [Defined if struct passwd has pw_age field]),
15233 # [#include <pwd.h>])
15235 echo $ac_n "checking whether struct passwd has pw_age""... $ac_c" 1>&6
15236 echo "configure:15237: checking whether struct passwd has pw_age" >&5
15237 if eval "test \"`echo '$''{'samba_cv_passwd_pw_age'+set}'`\" = set"; then
15238 echo $ac_n "(cached) $ac_c" 1>&6
15241 cat > conftest.
$ac_ext <<EOF
15242 #line 15243 "configure"
15243 #include "confdefs.h"
15246 struct passwd p; p.pw_age;
15249 if { (eval echo configure
:15250: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15251 samba_cv_passwd_pw_age
=yes
15253 echo "configure: failed program was:" >&5
15254 cat conftest.
$ac_ext >&5
15256 samba_cv_passwd_pw_age
=no
15261 echo "$ac_t""$samba_cv_passwd_pw_age" 1>&6
15262 if test x
"$samba_cv_passwd_pw_age" = x
"yes"; then
15263 cat >> confdefs.h
<<\EOF
15264 #define HAVE_PASSWD_PW_AGE 1
15269 #################################################
15270 # Check to see if we should use the included popt
15272 # Check whether --with-included-popt or --without-included-popt was given.
15273 if test "${with_included_popt+set}" = set; then
15274 withval
="$with_included_popt"
15286 if test x
"$INCLUDED_POPT" != x
"yes"; then
15287 echo $ac_n "checking for poptGetContext in -lpopt""... $ac_c" 1>&6
15288 echo "configure:15289: checking for poptGetContext in -lpopt" >&5
15289 ac_lib_var
=`echo popt'_'poptGetContext | sed 'y%./+-%__p_%'`
15290 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15291 echo $ac_n "(cached) $ac_c" 1>&6
15293 ac_save_LIBS
="$LIBS"
15294 LIBS
="-lpopt $LIBS"
15295 cat > conftest.
$ac_ext <<EOF
15296 #line 15297 "configure"
15297 #include "confdefs.h"
15298 /* Override any gcc2 internal prototype to avoid an error. */
15299 /* We use char because int might match the return type of a gcc2
15300 builtin and then its argument prototype would still apply. */
15301 char poptGetContext();
15307 if { (eval echo configure
:15308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
15309 eval "ac_cv_lib_$ac_lib_var=yes"
15311 echo "configure: failed program was:" >&5
15312 cat conftest.
$ac_ext >&5
15314 eval "ac_cv_lib_$ac_lib_var=no"
15317 LIBS
="$ac_save_LIBS"
15320 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15321 echo "$ac_t""yes" 1>&6
15324 echo "$ac_t""no" 1>&6
15330 echo $ac_n "checking whether to use included popt""... $ac_c" 1>&6
15331 echo "configure:15332: checking whether to use included popt" >&5
15332 if test x
"$INCLUDED_POPT" = x
"yes"; then
15333 echo "$ac_t""yes" 1>&6
15334 BUILD_POPT
='$(POPT_OBJS)'
15335 FLAGS1
="-I$srcdir/popt"
15337 echo "$ac_t""no" 1>&6
15338 LIBS
="$LIBS -lpopt"
15343 #################################################
15344 # Check if the user wants Python
15346 # At the moment, you can use this to set which Python binary to link
15347 # against. (Libraries built for Python2.2 can't be used by 2.1,
15348 # though they can coexist in different directories.) In the future
15349 # this might make the Python stuff be built by default.
15351 # Defaulting python breaks the clean target if python isn't installed
15355 # Check whether --with-python or --without-python was given.
15356 if test "${with_python+set}" = set; then
15357 withval
="$with_python"
15358 case "${withval-python}" in
15361 EXTRA_ALL_TARGETS
="$EXTRA_ALL_TARGETS python_ext"
15367 PYTHON
=${withval-python}
15374 #################################################
15375 # do extra things if we are running insure
15377 if test "${ac_cv_prog_CC}" = "insure"; then
15378 CPPFLAGS
="$CPPFLAGS -D__INSURE__"
15381 #################################################
15382 # final configure stuff
15384 echo $ac_n "checking configure summary""... $ac_c" 1>&6
15385 echo "configure:15386: checking configure summary" >&5
15386 if test "$cross_compiling" = yes; then
15387 echo "configure: warning: cannot run when cross-compiling" 1>&2
15389 cat > conftest.
$ac_ext <<EOF
15390 #line 15391 "configure"
15391 #include "confdefs.h"
15392 #include "${srcdir-.}/tests/summary.c"
15394 if { (eval echo configure
:15395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
15396 echo "$ac_t""yes" 1>&6
15398 echo "configure: failed program was:" >&5
15399 cat conftest.
$ac_ext >&5
15401 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }; exit 1;
15411 cat > confcache
<<\EOF
15412 # This file is a shell script that caches the results of configure
15413 # tests run on this system so they can be shared between configure
15414 # scripts and configure runs. It is not useful on other systems.
15415 # If it contains results you don't want to keep, you may remove or edit it.
15417 # By default, configure uses ./config.cache as the cache file,
15418 # creating it if it does not exist already. You can give configure
15419 # the --cache-file=FILE option to use a different cache file; that is
15420 # what configure does when it calls configure scripts in
15421 # subdirectories, so they share the cache.
15422 # Giving --cache-file=/dev/null disables caching, for debugging configure.
15423 # config.status only pays attention to the cache file if you give it the
15424 # --recheck option to rerun configure.
15427 # The following way of writing the cache mishandles newlines in values,
15428 # but we know of no workaround that is simple, portable, and efficient.
15429 # So, don't put newlines in cache variables' values.
15430 # Ultrix sh set writes to stderr and can't be redirected directly,
15431 # and sets the high bit in the cache file unless we assign to the vars.
15433 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15435 # `set' does not quote correctly, so add quotes (double-quote substitution
15436 # turns \\\\ into \\, and sed turns \\ into \).
15438 -e "s/'/'\\\\''/g" \
15439 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
15442 # `set' quotes correctly as required by POSIX, so do not add quotes.
15443 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
15446 if cmp -s $cache_file confcache
; then
15449 if test -w $cache_file; then
15450 echo "updating cache $cache_file"
15451 cat confcache
> $cache_file
15453 echo "not updating unwritable cache $cache_file"
15458 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
15460 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15461 # Let make expand exec_prefix.
15462 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15464 # Any assignment to VPATH causes Sun make to only execute
15465 # the first set of double-colon rules, so remove it if not needed.
15466 # If there is a colon in the path, we need to keep it.
15467 if test "x$srcdir" = x.
; then
15468 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
15471 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
15473 DEFS
=-DHAVE_CONFIG_H
15475 # Without the "./", some shells look in PATH for config.status.
15476 : ${CONFIG_STATUS=./config.status}
15478 echo creating
$CONFIG_STATUS
15479 rm -f $CONFIG_STATUS
15480 cat > $CONFIG_STATUS <<EOF
15482 # Generated automatically by configure.
15483 # Run this file to recreate the current configuration.
15484 # This directory was configured as follows,
15485 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15487 # $0 $ac_configure_args
15489 # Compiler output produced by configure, useful for debugging
15490 # configure, is in ./config.log if it exists.
15492 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
15495 case "\$ac_option" in
15496 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15497 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
15498 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
15499 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
15500 echo "$CONFIG_STATUS generated by autoconf version 2.13"
15502 -help | --help | --hel | --he | --h)
15503 echo "\$ac_cs_usage"; exit 0 ;;
15504 *) echo "\$ac_cs_usage"; exit 1 ;;
15508 ac_given_srcdir=$srcdir
15509 ac_given_INSTALL="$INSTALL"
15511 trap 'rm -fr `echo "include/stamp-h Makefile script/findsmb include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
15513 cat >> $CONFIG_STATUS <<EOF
15515 # Protect against being on the right side of a sed subst in config.status.
15516 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
15517 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
15521 s%@CFLAGS@%$CFLAGS%g
15522 s%@CPPFLAGS@%$CPPFLAGS%g
15523 s%@CXXFLAGS@%$CXXFLAGS%g
15524 s%@FFLAGS@%$FFLAGS%g
15526 s%@LDFLAGS@%$LDFLAGS%g
15528 s%@exec_prefix@%$exec_prefix%g
15529 s%@prefix@%$prefix%g
15530 s%@program_transform_name@%$program_transform_name%g
15531 s%@bindir@%$bindir%g
15532 s%@sbindir@%$sbindir%g
15533 s%@libexecdir@%$libexecdir%g
15534 s%@datadir@%$datadir%g
15535 s%@sysconfdir@%$sysconfdir%g
15536 s%@sharedstatedir@%$sharedstatedir%g
15537 s%@localstatedir@%$localstatedir%g
15538 s%@libdir@%$libdir%g
15539 s%@includedir@%$includedir%g
15540 s%@oldincludedir@%$oldincludedir%g
15541 s%@infodir@%$infodir%g
15542 s%@mandir@%$mandir%g
15543 s%@configdir@%$configdir%g
15544 s%@lockdir@%$lockdir%g
15545 s%@piddir@%$piddir%g
15546 s%@logfilebase@%$logfilebase%g
15547 s%@privatedir@%$privatedir%g
15548 s%@swatdir@%$swatdir%g
15549 s%@LDSHFLAGS@%$LDSHFLAGS%g
15550 s%@SONAMEFLAG@%$SONAMEFLAG%g
15552 s%@HOST_OS@%$HOST_OS%g
15553 s%@PICFLAG@%$PICFLAG%g
15554 s%@PICSUFFIX@%$PICSUFFIX%g
15555 s%@POBAD_CC@%$POBAD_CC%g
15556 s%@SHLIBEXT@%$SHLIBEXT%g
15557 s%@LIBSMBCLIENT_SHARED@%$LIBSMBCLIENT_SHARED%g
15558 s%@LIBSMBCLIENT@%$LIBSMBCLIENT%g
15559 s%@PRINTLIBS@%$PRINTLIBS%g
15560 s%@AUTHLIBS@%$AUTHLIBS%g
15561 s%@SHLIB_PROGS@%$SHLIB_PROGS%g
15562 s%@SMBWRAPPER@%$SMBWRAPPER%g
15563 s%@EXTRA_BIN_PROGS@%$EXTRA_BIN_PROGS%g
15564 s%@EXTRA_SBIN_PROGS@%$EXTRA_SBIN_PROGS%g
15565 s%@EXTRA_ALL_TARGETS@%$EXTRA_ALL_TARGETS%g
15567 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
15568 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
15569 s%@INSTALL_DATA@%$INSTALL_DATA%g
15571 s%@EXEEXT@%$EXEEXT%g
15572 s%@BROKEN_CC@%$BROKEN_CC%g
15574 s%@host_alias@%$host_alias%g
15575 s%@host_cpu@%$host_cpu%g
15576 s%@host_vendor@%$host_vendor%g
15577 s%@host_os@%$host_os%g
15578 s%@target@%$target%g
15579 s%@target_alias@%$target_alias%g
15580 s%@target_cpu@%$target_cpu%g
15581 s%@target_vendor@%$target_vendor%g
15582 s%@target_os@%$target_os%g
15584 s%@build_alias@%$build_alias%g
15585 s%@build_cpu@%$build_cpu%g
15586 s%@build_vendor@%$build_vendor%g
15587 s%@build_os@%$build_os%g
15589 s%@CUPS_CONFIG@%$CUPS_CONFIG%g
15590 s%@LIBOBJS@%$LIBOBJS%g
15591 s%@TERMLIBS@%$TERMLIBS%g
15592 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
15594 s%@DYNEXP@%$DYNEXP%g
15595 s%@MYSQL_CONFIG@%$MYSQL_CONFIG%g
15596 s%@MYSQL_CFLAGS@%$MYSQL_CFLAGS%g
15597 s%@MYSQL_LIBS@%$MYSQL_LIBS%g
15598 s%@MODULE_MYSQL@%$MODULE_MYSQL%g
15599 s%@XML2_CONFIG@%$XML2_CONFIG%g
15600 s%@XML_CFLAGS@%$XML_CFLAGS%g
15601 s%@XML_LIBS@%$XML_LIBS%g
15602 s%@MODULE_XML@%$MODULE_XML%g
15603 s%@QUOTAOBJS@%$QUOTAOBJS%g
15604 s%@manlangs@%$manlangs%g
15605 s%@WINBIND_NSS_EXTRA_OBJS@%$WINBIND_NSS_EXTRA_OBJS%g
15606 s%@WINBIND_NSS_EXTRA_LIBS@%$WINBIND_NSS_EXTRA_LIBS%g
15607 s%@BUILD_POPT@%$BUILD_POPT%g
15608 s%@FLAGS1@%$FLAGS1%g
15609 s%@PYTHON@%$PYTHON%g
15610 s%@builddir@%$builddir%g
15615 cat >> $CONFIG_STATUS <<\EOF
15617 # Split the substitutions into bite-sized pieces for seds with
15618 # small command number limits, like on Digital OSF/1 and HP-UX.
15619 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
15620 ac_file
=1 # Number of current file.
15621 ac_beg
=1 # First line for current file.
15622 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
15625 while $ac_more_lines; do
15626 if test $ac_beg -gt 1; then
15627 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
15629 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
15631 if test ! -s conftest.s
$ac_file; then
15632 ac_more_lines
=false
15633 rm -f conftest.s
$ac_file
15635 if test -z "$ac_sed_cmds"; then
15636 ac_sed_cmds
="sed -f conftest.s$ac_file"
15638 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
15640 ac_file
=`expr $ac_file + 1`
15642 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
15645 if test -z "$ac_sed_cmds"; then
15650 cat >> $CONFIG_STATUS <<EOF
15652 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile script/findsmb"}
15654 cat >> $CONFIG_STATUS <<\EOF
15655 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
15656 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15658 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
15659 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
15660 *) ac_file_in
="${ac_file}.in" ;;
15663 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
15665 # Remove last slash and all that follows it. Not all systems have dirname.
15666 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
15667 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
15668 # The file is in a subdirectory.
15669 test ! -d "$ac_dir" && mkdir
"$ac_dir"
15670 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
15671 # A "../" for each directory in $ac_dir_suffix.
15672 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
15674 ac_dir_suffix
= ac_dots
=
15677 case "$ac_given_srcdir" in
15679 if test -z "$ac_dots"; then top_srcdir
=.
15680 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
15681 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
15682 *) # Relative path.
15683 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
15684 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
15687 case "$ac_given_INSTALL" in
15688 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
15689 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
15692 echo creating
"$ac_file"
15694 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
15696 *Makefile
*) ac_comsub
="1i\\
15697 # $configure_input" ;;
15701 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
15703 s%@configure_input@%$configure_input%g
15704 s%@srcdir@%$srcdir%g
15705 s%@top_srcdir@%$top_srcdir%g
15706 s%@INSTALL@%$INSTALL%g
15707 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
15711 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15712 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15714 # ac_d sets the value in "#define NAME VALUE" lines.
15715 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15716 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
15719 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
15720 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15721 ac_uB
='\([ ]\)%\1#\2define\3'
15724 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15725 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15726 ac_eB
='$%\1#\2define\3'
15730 if test "${CONFIG_HEADERS+set}" != set; then
15732 cat >> $CONFIG_STATUS <<EOF
15733 CONFIG_HEADERS="include/config.h"
15735 cat >> $CONFIG_STATUS <<\EOF
15737 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
15738 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15740 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
15741 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
15742 *) ac_file_in
="${ac_file}.in" ;;
15745 echo creating
$ac_file
15747 rm -f conftest.frag conftest.
in conftest.out
15748 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
15749 cat $ac_file_inputs > conftest.
in
15753 # Transform confdefs.h into a sed script conftest.vals that substitutes
15754 # the proper values into config.h.in to produce config.h. And first:
15755 # Protect against being on the right side of a sed subst in config.status.
15756 # Protect against being in an unquoted here document in config.status.
15757 rm -f conftest.vals
15758 cat > conftest.hdr
<<\EOF
15761 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
15765 sed -n -f conftest.hdr confdefs.h > conftest.vals
15768 # This sed command replaces #undef with comments. This is necessary, for
15769 # example, in the case of _POSIX_SOURCE, which is predefined and required
15770 # on some systems where configure will not decide to define it.
15771 cat >> conftest.vals <<\EOF
15772 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
15775 # Break up conftest.vals because some shells have a limit on
15776 # the size of here documents, and old seds have small limits too.
15778 rm -f conftest.tail
15781 ac_lines=`grep -c . conftest.vals
`
15782 # grep -c gives empty output for an empty file on some AIX systems.
15783 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
15784 # Write a limited-size here document to conftest.frag.
15785 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
15786 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
15788 sed -f conftest.frag conftest.in > conftest.out
15790 mv conftest.out conftest.in
15791 ' >> $CONFIG_STATUS
15792 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
15793 rm -f conftest.vals
15794 mv conftest.tail conftest.vals
15796 rm -f conftest.vals
15798 cat >> $CONFIG_STATUS <<\EOF
15799 rm -f conftest.frag conftest.h
15800 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
15801 cat conftest.in >> conftest.h
15803 if cmp -s $ac_file conftest.h 2>/dev/null; then
15804 echo "$ac_file is unchanged"
15807 # Remove last slash and all that follows it. Not all systems have dirname.
15808 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
15809 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15810 # The file is in a subdirectory.
15811 test ! -d "$ac_dir" && mkdir "$ac_dir"
15814 mv conftest.h $ac_file
15819 cat >> $CONFIG_STATUS <<EOF
15822 cat >> $CONFIG_STATUS <<\EOF
15826 chmod +x $CONFIG_STATUS
15827 rm -fr confdefs* $ac_clean_files
15828 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
15831 #################################################
15832 # Print very concise instructions on building/use
15833 if test "x$enable_dmalloc" = xyes
15835 echo "$ac_t""Note: The dmalloc debug library will be included. To turn it on use" 1>&6
15836 echo "$ac_t"" \$ eval \`dmalloc samba\
`." 1>&6