3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
14 ac_default_prefix
=/usr
/local
/samba
16 --with-fhs Use FHS-compliant paths (default=no)"
18 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
20 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
22 --with-piddir=DIR Where to put pid files ($ac_default_prefix/var/locks)"
24 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
26 --with-configdir=DIR Where to put configuration files (\$libdir)"
28 --with-codepagedir=DIR Where to put codepage files (\$libdir/codepages)"
30 --with-logfilebase=DIR Where to put log files (\$(VARDIR))"
32 --enable-debug Turn on compiler debugging information (default=no)"
34 --enable-cups Turn on CUPS support (default=auto)"
36 --with-readline[=DIR] Look for readline include/libs in DIR (default=auto)"
38 --with-smbwrapper Include SMB wrapper support (default=no)"
40 --with-afs Include AFS support (default=no)"
42 --with-dce-dfs Include DCE/DFS support (default=no)"
44 --with-krb4=base-dir Include Kerberos IV support (default=no)"
46 --with-krb5=base-dir Include Kerberos 5 support (default=no)"
48 --with-automount Include AUTOMOUNT support (default=no)"
50 --with-smbmount Include SMBMOUNT (Linux only) support (default=no)"
52 --with-pam Include PAM password database support (default=no)"
54 --with-pam_smbpass Include the smbpass PAM module (default=no)"
56 --with-tdbsam Include experimental TDB SAM support (default=no)"
58 --with-ldapsam Include experimental LDAP SAM support (default=no)"
60 --with-nisplussam Include NISPLUS SAM support (default=no)"
62 --with-nisplus-home Include NISPLUS_HOME support (default=no)"
64 --with-ssl Include SSL support (default=no)
65 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl/include)
66 --with-ssllib=DIR Where the SSL libraries are (defaults to /usr/local/ssl/lib)"
68 --with-syslog Include experimental SYSLOG support (default=no)"
70 --with-profiling-data Include gathering source code profile information (default=no)"
72 --with-quotas Include experimental disk-quota support (default=no)"
74 --with-utmp Include experimental utmp accounting (default=no)"
76 --with-msdfs Include MS Dfs support (default=no)"
78 --with-libsmbclient Build the libsmbclient shared library (default=no)"
80 --with-spinlocks Use spin locks instead of fcntl locks (default=no)"
82 --with-acl-support Include ACL support (default=no)"
84 --with-sendfile-support Check for sendfile support (default=no)"
86 --with-winbind Build winbind (default, if supported by OS)"
88 --with-winbind-auth-challenge Enable winbindd_pam_auth_crap() functionality (default no)"
90 --with-winbind-ldap-hack Enable winbindd_ldap_hack() functionality (default no)"
92 --with-included-popt use bundled popt library, not from system"
94 # Initialize some variables set by options.
95 # The variables have the same names as the options, with
96 # dashes changed to underlines.
98 cache_file
=.
/config.cache
107 program_transform_name
=s
,x
,x
,
115 bindir
='${exec_prefix}/bin'
116 sbindir
='${exec_prefix}/sbin'
117 libexecdir
='${exec_prefix}/libexec'
118 datadir
='${prefix}/share'
119 sysconfdir
='${prefix}/etc'
120 sharedstatedir
='${prefix}/com'
121 localstatedir
='${prefix}/var'
122 libdir
='${exec_prefix}/lib'
123 includedir
='${prefix}/include'
124 oldincludedir
='/usr/include'
125 infodir
='${prefix}/info'
126 mandir
='${prefix}/man'
128 # Initialize some other variables.
131 SHELL
=${CONFIG_SHELL-/bin/sh}
132 # Maximum number of lines to put in a shell here document.
139 # If the previous option needs an argument, assign it.
140 if test -n "$ac_prev"; then
141 eval "$ac_prev=\$ac_option"
147 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
151 # Accept the important Cygnus configure options, so we can diagnose typos.
155 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
157 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
158 bindir
="$ac_optarg" ;;
160 -build |
--build |
--buil |
--bui |
--bu)
162 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
163 build
="$ac_optarg" ;;
165 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
166 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
167 ac_prev
=cache_file
;;
168 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
169 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
170 cache_file
="$ac_optarg" ;;
172 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
174 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
176 datadir
="$ac_optarg" ;;
178 -disable-* |
--disable-*)
179 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
180 # Reject names that are not valid shell variable names.
181 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
182 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
184 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
185 eval "enable_${ac_feature}=no" ;;
187 -enable-* |
--enable-*)
188 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
189 # Reject names that are not valid shell variable names.
190 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
191 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
193 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
198 eval "enable_${ac_feature}='$ac_optarg'" ;;
200 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
201 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
202 |
--exec |
--exe |
--ex)
203 ac_prev
=exec_prefix
;;
204 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
205 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
206 |
--exec=* |
--exe=* |
--ex=*)
207 exec_prefix
="$ac_optarg" ;;
209 -gas |
--gas |
--ga |
--g)
210 # Obsolete; use --with-gas.
213 -help |
--help |
--hel |
--he)
214 # Omit some internal or obsolete options to make the list less imposing.
215 # This message is too long to be a string in the A/UX 3.1 sh.
217 Usage: configure [options] [host]
218 Options: [defaults in brackets after descriptions]
220 --cache-file=FILE cache test results in FILE
221 --help print this message
222 --no-create do not create output files
223 --quiet, --silent do not print \`checking...' messages
224 --version print the version of autoconf that created configure
225 Directory and file names:
226 --prefix=PREFIX install architecture-independent files in PREFIX
228 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
230 --bindir=DIR user executables in DIR [EPREFIX/bin]
231 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
232 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
233 --datadir=DIR read-only architecture-independent data in DIR
235 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
236 --sharedstatedir=DIR modifiable architecture-independent data in DIR
238 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
239 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
240 --includedir=DIR C header files in DIR [PREFIX/include]
241 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
242 --infodir=DIR info documentation in DIR [PREFIX/info]
243 --mandir=DIR man documentation in DIR [PREFIX/man]
244 --srcdir=DIR find the sources in DIR [configure dir or ..]
245 --program-prefix=PREFIX prepend PREFIX to installed program names
246 --program-suffix=SUFFIX append SUFFIX to installed program names
247 --program-transform-name=PROGRAM
248 run sed PROGRAM on installed program names
252 --build=BUILD configure for building on BUILD [BUILD=HOST]
253 --host=HOST configure for HOST [guessed]
254 --target=TARGET configure for TARGET [TARGET=HOST]
255 Features and packages:
256 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
257 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
258 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
259 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
260 --x-includes=DIR X include files are in DIR
261 --x-libraries=DIR X library files are in DIR
263 if test -n "$ac_help"; then
264 echo "--enable and --with options recognized:$ac_help"
268 -host |
--host |
--hos |
--ho)
270 -host=* |
--host=* |
--hos=* |
--ho=*)
273 -includedir |
--includedir |
--includedi |
--included |
--include \
274 |
--includ |
--inclu |
--incl |
--inc)
275 ac_prev
=includedir
;;
276 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
277 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
278 includedir
="$ac_optarg" ;;
280 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
282 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
283 infodir
="$ac_optarg" ;;
285 -libdir |
--libdir |
--libdi |
--libd)
287 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
288 libdir
="$ac_optarg" ;;
290 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
291 |
--libexe |
--libex |
--libe)
292 ac_prev
=libexecdir
;;
293 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
294 |
--libexe=* |
--libex=* |
--libe=*)
295 libexecdir
="$ac_optarg" ;;
297 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
298 |
--localstate |
--localstat |
--localsta |
--localst \
299 |
--locals |
--local |
--loca |
--loc |
--lo)
300 ac_prev
=localstatedir
;;
301 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
302 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
303 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
304 localstatedir
="$ac_optarg" ;;
306 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
308 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
309 mandir
="$ac_optarg" ;;
312 # Obsolete; use --without-fp.
315 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
319 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
320 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
323 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
324 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
325 |
--oldin |
--oldi |
--old |
--ol |
--o)
326 ac_prev
=oldincludedir
;;
327 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
328 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
329 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
330 oldincludedir
="$ac_optarg" ;;
332 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
334 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
335 prefix
="$ac_optarg" ;;
337 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
338 |
--program-pre |
--program-pr |
--program-p)
339 ac_prev
=program_prefix
;;
340 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
341 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
342 program_prefix
="$ac_optarg" ;;
344 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
345 |
--program-suf |
--program-su |
--program-s)
346 ac_prev
=program_suffix
;;
347 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
348 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
349 program_suffix
="$ac_optarg" ;;
351 -program-transform-name |
--program-transform-name \
352 |
--program-transform-nam |
--program-transform-na \
353 |
--program-transform-n |
--program-transform- \
354 |
--program-transform |
--program-transfor \
355 |
--program-transfo |
--program-transf \
356 |
--program-trans |
--program-tran \
357 |
--progr-tra |
--program-tr |
--program-t)
358 ac_prev
=program_transform_name
;;
359 -program-transform-name=* |
--program-transform-name=* \
360 |
--program-transform-nam=* |
--program-transform-na=* \
361 |
--program-transform-n=* |
--program-transform-=* \
362 |
--program-transform=* |
--program-transfor=* \
363 |
--program-transfo=* |
--program-transf=* \
364 |
--program-trans=* |
--program-tran=* \
365 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
366 program_transform_name
="$ac_optarg" ;;
368 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
369 |
-silent |
--silent |
--silen |
--sile |
--sil)
372 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
374 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
376 sbindir
="$ac_optarg" ;;
378 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
379 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
380 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
382 ac_prev
=sharedstatedir
;;
383 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
384 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
385 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
387 sharedstatedir
="$ac_optarg" ;;
389 -site |
--site |
--sit)
391 -site=* |
--site=* |
--sit=*)
394 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
396 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
397 srcdir
="$ac_optarg" ;;
399 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
400 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
401 ac_prev
=sysconfdir
;;
402 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
403 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
404 sysconfdir
="$ac_optarg" ;;
406 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
408 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
409 target
="$ac_optarg" ;;
411 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
414 -version |
--version |
--versio |
--versi |
--vers)
415 echo "configure generated by autoconf version 2.13"
419 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
420 # Reject names that are not valid shell variable names.
421 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
422 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
424 ac_package
=`echo $ac_package| sed 's/-/_/g'`
429 eval "with_${ac_package}='$ac_optarg'" ;;
431 -without-* |
--without-*)
432 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
433 # Reject names that are not valid shell variable names.
434 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
435 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
437 ac_package
=`echo $ac_package| sed 's/-/_/g'`
438 eval "with_${ac_package}=no" ;;
441 # Obsolete; use --with-x.
444 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
445 |
--x-incl |
--x-inc |
--x-in |
--x-i)
446 ac_prev
=x_includes
;;
447 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
448 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
449 x_includes
="$ac_optarg" ;;
451 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
452 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
453 ac_prev
=x_libraries
;;
454 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
455 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
456 x_libraries
="$ac_optarg" ;;
458 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
462 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
463 echo "configure: warning: $ac_option: invalid host type" 1>&2
465 if test "x$nonopt" != xNONE
; then
466 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
474 if test -n "$ac_prev"; then
475 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
478 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
480 # File descriptor usage:
483 # 2 errors and warnings
484 # 3 some systems may open it to /dev/tty
485 # 4 used on the Kubota Titan
486 # 6 checking for... messages and results
487 # 5 compiler messages saved in config.log
488 if test "$silent" = yes; then
496 This file contains any messages produced by compilers while
497 running configure, to aid debugging if configure makes a mistake.
500 # Strip out --no-create and --no-recursion so they do not pile up.
501 # Also quote any args containing shell metacharacters.
506 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
507 |
--no-cr |
--no-c) ;;
508 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
509 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
510 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
511 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
512 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
517 # Only set these to C if already set. These must not be set unconditionally
518 # because not all systems understand e.g. LANG=C (notably SCO).
519 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
520 # Non-C LC_CTYPE values break the ctype check.
521 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
522 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
523 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
524 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
526 # confdefs.h avoids OS command line length limits that DEFS can exceed.
527 rm -rf conftest
* confdefs.h
528 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
531 # A filename unique to this package, relative to the directory that
532 # configure is in, which we can look for to find out if srcdir is correct.
533 ac_unique_file
=include
/includes.h
535 # Find the source files, if location was not specified.
536 if test -z "$srcdir"; then
537 ac_srcdir_defaulted
=yes
538 # Try the directory containing this script, then its parent.
540 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
541 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
543 if test ! -r $srcdir/$ac_unique_file; then
547 ac_srcdir_defaulted
=no
549 if test ! -r $srcdir/$ac_unique_file; then
550 if test "$ac_srcdir_defaulted" = yes; then
551 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
553 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
556 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
558 # Prefer explicitly selected file to automatically selected ones.
559 if test -z "$CONFIG_SITE"; then
560 if test "x$prefix" != xNONE
; then
561 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
563 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
566 for ac_site_file
in $CONFIG_SITE; do
567 if test -r "$ac_site_file"; then
568 echo "loading site script $ac_site_file"
573 if test -r "$cache_file"; then
574 echo "loading cache $cache_file"
577 echo "creating cache $cache_file"
582 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
583 ac_cpp
='$CPP $CPPFLAGS'
584 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
585 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
586 cross_compiling
=$ac_cv_prog_cc_cross
590 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
591 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
592 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
599 ac_n
= ac_c
='\c' ac_t
=
605 #################################################
606 # Directory handling stuff to support both the
607 # legacy SAMBA directories and FHS compliant
611 # Check whether --with-fhs or --without-fhs was given.
612 if test "${with_fhs+set}" = set; then
614 codepagedir
="\$(DATADIR)/samba/codepages"
615 configdir
="${sysconfdir}/samba"
616 lockdir
="\${VARDIR}/cache/samba"
617 piddir
="\$(VARDIR)/run/samba"
618 logfilebase
="\${VARDIR}/log/samba"
619 privatedir
="\${CONFIGDIR}/private"
620 swatdir
="\${DATADIR}/samba/swat"
622 codepagedir
="\$(LIBDIR)/codepages"
623 configdir
="\$(LIBDIR)"
624 logfilebase
="\$(VARDIR)"
625 lockdir
="\${VARDIR}/locks"
626 piddir
="\$(VARDIR)/locks"
627 privatedir
="\${prefix}/private"
628 swatdir
="\${prefix}/swat"
632 #################################################
633 # set private directory location
634 # Check whether --with-privatedir or --without-privatedir was given.
635 if test "${with_privatedir+set}" = set; then
636 withval
="$with_privatedir"
640 # Just in case anybody calls it without argument
642 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
645 privatedir
="$withval"
651 #################################################
652 # set lock directory location
653 # Check whether --with-lockdir or --without-lockdir was given.
654 if test "${with_lockdir+set}" = set; then
655 withval
="$with_lockdir"
659 # Just in case anybody calls it without argument
661 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
670 #################################################
671 # set pid directory location
672 # Check whether --with-piddir or --without-piddir was given.
673 if test "${with_piddir+set}" = set; then
674 withval
="$with_piddir"
678 # Just in case anybody calls it without argument
680 echo "configure: warning: --with-piddir called without argument - will use default" 1>&2
689 #################################################
690 # set SWAT directory location
691 # Check whether --with-swatdir or --without-swatdir was given.
692 if test "${with_swatdir+set}" = set; then
693 withval
="$with_swatdir"
697 # Just in case anybody does it
699 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
708 #################################################
709 # set configuration directory location
710 # Check whether --with-configdir or --without-configdir was given.
711 if test "${with_configdir+set}" = set; then
712 withval
="$with_configdir"
716 # Just in case anybody does it
718 echo "configure: warning: --with-configdir called without argument - will use default" 1>&2
727 #################################################
728 # set codepage directory location
729 # Check whether --with-codepagedir or --without-codepagedir was given.
730 if test "${with_codepagedir+set}" = set; then
731 withval
="$with_codepagedir"
735 # Just in case anybody does it
737 echo "configure: warning: --with-codepagedir called without argument - will use default" 1>&2
740 codepagedir
="$withval"
746 #################################################
747 # set log directory location
748 # Check whether --with-logfilebase or --without-logfilebase was given.
749 if test "${with_logfilebase+set}" = set; then
750 withval
="$with_logfilebase"
754 # Just in case anybody does it
756 echo "configure: warning: --with-logfilebase called without argument - will use default" 1>&2
759 logfilebase
="$withval"
796 # compile with optimization and without debugging by default
797 CFLAGS
="-O ${CFLAGS}"
799 # Check whether --enable-debug or --disable-debug was given.
800 if test "${enable_debug+set}" = set; then
801 enableval
="$enable_debug"
802 if eval "test x$enable_debug = xyes"; then
803 CFLAGS
="${CFLAGS} -g"
810 # Extract the first word of "gcc", so it can be a program name with args.
811 set dummy gcc
; ac_word
=$2
812 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
813 echo "configure:814: checking for $ac_word" >&5
814 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
815 echo $ac_n "(cached) $ac_c" 1>&6
817 if test -n "$CC"; then
818 ac_cv_prog_CC
="$CC" # Let the user override the test.
820 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
822 for ac_dir
in $ac_dummy; do
823 test -z "$ac_dir" && ac_dir
=.
824 if test -f $ac_dir/$ac_word; then
833 if test -n "$CC"; then
834 echo "$ac_t""$CC" 1>&6
836 echo "$ac_t""no" 1>&6
839 if test -z "$CC"; then
840 # Extract the first word of "cc", so it can be a program name with args.
841 set dummy cc
; ac_word
=$2
842 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
843 echo "configure:844: checking for $ac_word" >&5
844 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
845 echo $ac_n "(cached) $ac_c" 1>&6
847 if test -n "$CC"; then
848 ac_cv_prog_CC
="$CC" # Let the user override the test.
850 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
853 for ac_dir
in $ac_dummy; do
854 test -z "$ac_dir" && ac_dir
=.
855 if test -f $ac_dir/$ac_word; then
856 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
865 if test $ac_prog_rejected = yes; then
866 # We found a bogon in the path, so make sure we never use it.
867 set dummy
$ac_cv_prog_CC
869 if test $# -gt 0; then
870 # We chose a different compiler from the bogus one.
871 # However, it has the same basename, so the bogon will be chosen
872 # first if we set CC to just the basename; use the full file name.
874 set dummy
"$ac_dir/$ac_word" "$@"
882 if test -n "$CC"; then
883 echo "$ac_t""$CC" 1>&6
885 echo "$ac_t""no" 1>&6
888 if test -z "$CC"; then
891 # Extract the first word of "cl", so it can be a program name with args.
892 set dummy cl
; ac_word
=$2
893 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
894 echo "configure:895: checking for $ac_word" >&5
895 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
896 echo $ac_n "(cached) $ac_c" 1>&6
898 if test -n "$CC"; then
899 ac_cv_prog_CC
="$CC" # Let the user override the test.
901 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
903 for ac_dir
in $ac_dummy; do
904 test -z "$ac_dir" && ac_dir
=.
905 if test -f $ac_dir/$ac_word; then
914 if test -n "$CC"; then
915 echo "$ac_t""$CC" 1>&6
917 echo "$ac_t""no" 1>&6
922 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
925 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
926 echo "configure:927: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
929 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
930 ac_cpp
='$CPP $CPPFLAGS'
931 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
932 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
933 cross_compiling
=$ac_cv_prog_cc_cross
935 cat > conftest.
$ac_ext << EOF
937 #line 938 "configure"
938 #include "confdefs.h"
942 if { (eval echo configure
:943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
943 ac_cv_prog_cc_works
=yes
944 # If we can't run a trivial program, we are probably using a cross compiler.
945 if (.
/conftest
; exit) 2>/dev
/null
; then
946 ac_cv_prog_cc_cross
=no
948 ac_cv_prog_cc_cross
=yes
951 echo "configure: failed program was:" >&5
952 cat conftest.
$ac_ext >&5
953 ac_cv_prog_cc_works
=no
957 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
958 ac_cpp
='$CPP $CPPFLAGS'
959 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
960 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
961 cross_compiling
=$ac_cv_prog_cc_cross
963 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
964 if test $ac_cv_prog_cc_works = no
; then
965 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
967 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
968 echo "configure:969: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
969 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
970 cross_compiling
=$ac_cv_prog_cc_cross
972 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
973 echo "configure:974: checking whether we are using GNU C" >&5
974 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
975 echo $ac_n "(cached) $ac_c" 1>&6
977 cat > conftest.c
<<EOF
982 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:983: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
989 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
991 if test $ac_cv_prog_gcc = yes; then
997 ac_test_CFLAGS
="${CFLAGS+set}"
998 ac_save_CFLAGS
="$CFLAGS"
1000 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1001 echo "configure:1002: checking whether ${CC-cc} accepts -g" >&5
1002 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1003 echo $ac_n "(cached) $ac_c" 1>&6
1005 echo 'void f(){}' > conftest.c
1006 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1015 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1016 if test "$ac_test_CFLAGS" = set; then
1017 CFLAGS
="$ac_save_CFLAGS"
1018 elif test $ac_cv_prog_cc_g = yes; then
1019 if test "$GCC" = yes; then
1025 if test "$GCC" = yes; then
1033 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1034 if test -f $ac_dir/install-sh
; then
1036 ac_install_sh
="$ac_aux_dir/install-sh -c"
1038 elif test -f $ac_dir/install.sh
; then
1040 ac_install_sh
="$ac_aux_dir/install.sh -c"
1044 if test -z "$ac_aux_dir"; then
1045 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1047 ac_config_guess
=$ac_aux_dir/config.guess
1048 ac_config_sub
=$ac_aux_dir/config.sub
1049 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1051 # Find a good install program. We prefer a C program (faster),
1052 # so one script is as good as another. But avoid the broken or
1053 # incompatible versions:
1054 # SysV /etc/install, /usr/sbin/install
1055 # SunOS /usr/etc/install
1056 # IRIX /sbin/install
1058 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1059 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1060 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1061 # ./install, which can be erroneously created by make from ./install.sh.
1062 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1063 echo "configure:1064: checking for a BSD compatible install" >&5
1064 if test -z "$INSTALL"; then
1065 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1066 echo $ac_n "(cached) $ac_c" 1>&6
1068 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1069 for ac_dir
in $PATH; do
1070 # Account for people who put trailing slashes in PATH elements.
1072 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1074 # OSF1 and SCO ODT 3.0 have their own names for install.
1075 # Don't use installbsd from OSF since it installs stuff as root
1077 for ac_prog
in ginstall scoinst
install; do
1078 if test -f $ac_dir/$ac_prog; then
1079 if test $ac_prog = install &&
1080 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1081 # AIX install. It has an incompatible calling convention.
1084 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1095 if test "${ac_cv_path_install+set}" = set; then
1096 INSTALL
="$ac_cv_path_install"
1098 # As a last resort, use the slow shell script. We don't cache a
1099 # path for INSTALL within a source directory, because that will
1100 # break other packages using the cache if that directory is
1101 # removed, or if the path is relative.
1102 INSTALL
="$ac_install_sh"
1105 echo "$ac_t""$INSTALL" 1>&6
1107 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1108 # It thinks the first close brace ends the variable substitution.
1109 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1111 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1113 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1115 for ac_prog
in gawk mawk nawk
awk
1117 # Extract the first word of "$ac_prog", so it can be a program name with args.
1118 set dummy
$ac_prog; ac_word
=$2
1119 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1120 echo "configure:1121: checking for $ac_word" >&5
1121 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1122 echo $ac_n "(cached) $ac_c" 1>&6
1124 if test -n "$AWK"; then
1125 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1127 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1129 for ac_dir
in $ac_dummy; do
1130 test -z "$ac_dir" && ac_dir
=.
1131 if test -f $ac_dir/$ac_word; then
1132 ac_cv_prog_AWK
="$ac_prog"
1139 AWK
="$ac_cv_prog_AWK"
1140 if test -n "$AWK"; then
1141 echo "$ac_t""$AWK" 1>&6
1143 echo "$ac_t""no" 1>&6
1146 test -n "$AWK" && break
1150 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1151 echo "configure:1152: checking if the linker ($LD) is GNU ld" >&5
1152 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1153 echo $ac_n "(cached) $ac_c" 1>&6
1155 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1156 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1157 ac_cv_prog_gnu_ld
=yes
1159 ac_cv_prog_gnu_ld
=no
1163 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1165 # Extract the first word of "passwd", so it can be a program name with args.
1166 set dummy passwd
; ac_word
=$2
1167 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1168 echo "configure:1169: checking for $ac_word" >&5
1169 if eval "test \"`echo '$''{'ac_cv_path_passwd_program'+set}'`\" = set"; then
1170 echo $ac_n "(cached) $ac_c" 1>&6
1172 case "$passwd_program" in
1174 ac_cv_path_passwd_program
="$passwd_program" # Let the user override the test with a path.
1177 ac_cv_path_passwd_program
="$passwd_program" # Let the user override the test with a dos path.
1180 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1182 for ac_dir
in $ac_dummy; do
1183 test -z "$ac_dir" && ac_dir
=.
1184 if test -f $ac_dir/$ac_word; then
1185 ac_cv_path_passwd_program
="$ac_dir/$ac_word"
1190 test -z "$ac_cv_path_passwd_program" && ac_cv_path_passwd_program
="/bin/passwd"
1194 passwd_program
="$ac_cv_path_passwd_program"
1195 if test -n "$passwd_program"; then
1196 echo "$ac_t""$passwd_program" 1>&6
1198 echo "$ac_t""no" 1>&6
1203 if test "x$CC" != xcc
; then
1204 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1205 echo "configure:1206: checking whether $CC and cc understand -c and -o together" >&5
1207 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1208 echo "configure:1209: checking whether cc understands -c and -o together" >&5
1210 set dummy
$CC; ac_cc
="`echo $2 |
1211 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1212 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1213 echo $ac_n "(cached) $ac_c" 1>&6
1215 echo 'foo(){}' > conftest.c
1216 # Make sure it works both with $CC and with simple cc.
1217 # We do the test twice because some compilers refuse to overwrite an
1218 # existing .o file with -o, though they will create one.
1219 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1220 if { (eval echo configure
:1221: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1221 test -f conftest.o
&& { (eval echo configure
:1222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1223 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1224 if test "x$CC" != xcc
; then
1225 # Test first that cc exists at all.
1226 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:1227: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1227 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
1228 if { (eval echo configure
:1229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1229 test -f conftest.o
&& { (eval echo configure
:1230: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1234 # cc exists but doesn't like -o.
1235 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1240 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1245 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1246 echo "$ac_t""yes" 1>&6
1248 echo "$ac_t""no" 1>&6
1249 cat >> confdefs.h
<<\EOF
1250 #define NO_MINUS_C_MINUS_O 1
1255 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1262 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1263 echo "configure:1264: checking that the C compiler understands volatile" >&5
1264 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1265 echo $ac_n "(cached) $ac_c" 1>&6
1268 cat > conftest.
$ac_ext <<EOF
1269 #line 1270 "configure"
1270 #include "confdefs.h"
1271 #include <sys/types.h>
1276 if { (eval echo configure
:1277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1278 samba_cv_volatile
=yes
1280 echo "configure: failed program was:" >&5
1281 cat conftest.
$ac_ext >&5
1283 samba_cv_volatile
=no
1288 echo "$ac_t""$samba_cv_volatile" 1>&6
1289 if test x
"$samba_cv_volatile" = x
"yes"; then
1290 cat >> confdefs.h
<<\EOF
1291 #define HAVE_VOLATILE 1
1299 # Do some error checking and defaulting for the host and target type.
1301 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1304 # 1. You are not allowed to specify --host, --target, and nonopt at the
1306 # 2. Host defaults to nonopt.
1307 # 3. If nonopt is not specified, then host defaults to the current host,
1308 # as determined by config.guess.
1309 # 4. Target and build default to nonopt.
1310 # 5. If nonopt is not specified, then target and build default to host.
1312 # The aliases save the names the user supplied, while $host etc.
1313 # will get canonicalized.
1314 case $host---$target---$nonopt in
1315 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1316 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1320 # Make sure we can run config.sub.
1321 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1322 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1325 echo $ac_n "checking host system type""... $ac_c" 1>&6
1326 echo "configure:1327: checking host system type" >&5
1329 case "$host_alias" in
1333 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1334 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1336 *) host_alias
=$nonopt ;;
1340 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1341 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1342 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1343 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1344 echo "$ac_t""$host" 1>&6
1346 echo $ac_n "checking target system type""... $ac_c" 1>&6
1347 echo "configure:1348: checking target system type" >&5
1349 target_alias
=$target
1350 case "$target_alias" in
1353 NONE
) target_alias
=$host_alias ;;
1354 *) target_alias
=$nonopt ;;
1358 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1359 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1360 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1361 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1362 echo "$ac_t""$target" 1>&6
1364 echo $ac_n "checking build system type""... $ac_c" 1>&6
1365 echo "configure:1366: checking build system type" >&5
1368 case "$build_alias" in
1371 NONE
) build_alias
=$host_alias ;;
1372 *) build_alias
=$nonopt ;;
1376 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1377 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1378 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1379 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1380 echo "$ac_t""$build" 1>&6
1382 test "$host_alias" != "$target_alias" &&
1383 test "$program_prefix$program_suffix$program_transform_name" = \
1385 program_prefix
=${target_alias}-
1389 *irix6
*) cat >> confdefs.h
<<\EOF
1390 #include <standards.h>
1398 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1399 echo "configure:1400: checking config.cache system type" >&5
1400 if { test x
"${ac_cv_host_system_type+set}" = x
"set" &&
1401 test x
"$ac_cv_host_system_type" != x
"$host"; } ||
1402 { test x
"${ac_cv_build_system_type+set}" = x
"set" &&
1403 test x
"$ac_cv_build_system_type" != x
"$build"; } ||
1404 { test x
"${ac_cv_target_system_type+set}" = x
"set" &&
1405 test x
"$ac_cv_target_system_type" != x
"$target"; }; then
1406 echo "$ac_t""different" 1>&6
1407 { echo "configure: error: "you must remove config.cache and restart configure
"" 1>&2; exit 1; }
1409 echo "$ac_t""same" 1>&6
1411 ac_cv_host_system_type
="$host"
1412 ac_cv_build_system_type
="$build"
1413 ac_cv_target_system_type
="$target"
1419 # Config CPPFLAG settings for strange OS's that must be set
1420 # before other tests.
1423 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1425 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1426 echo "configure:1427: checking whether ${CC-cc} accepts -Ae" >&5
1427 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1428 echo $ac_n "(cached) $ac_c" 1>&6
1430 echo 'void f(){}' > conftest.c
1431 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1432 ac_cv_prog_cc_Ae
=yes
1440 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1441 # mmap on HPUX is completely broken...
1442 cat >> confdefs.h
<<\EOF
1443 #define MMAP_BLACKLIST 1
1446 if test $ac_cv_prog_cc_Ae = yes; then
1447 CPPFLAGS
="$CPPFLAGS -Ae"
1450 # Defines needed for HPUX support.
1451 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1452 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1456 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4 -DMAX_POSITIVE_LOCK_OFFSET=0x1ffffffffffLL"
1457 cat >> confdefs.h
<<\EOF
1458 #define USE_BOTH_CRYPT_CALLS 1
1461 cat >> confdefs.h
<<\EOF
1462 #define _HPUX_SOURCE 1
1465 cat >> confdefs.h
<<\EOF
1466 #define _POSIX_SOURCE 1
1469 cat >> confdefs.h
<<\EOF
1470 #define _ALIGNMENT_REQUIRED 1
1473 cat >> confdefs.h
<<\EOF
1474 #define _MAX_ALIGNMENT 4
1479 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4 -DMAX_POSITIVE_LOCK_OFFSET=0x1ffffffffffLL"
1480 cat >> confdefs.h
<<\EOF
1481 #define _HPUX_SOURCE 1
1484 cat >> confdefs.h
<<\EOF
1485 #define _POSIX_SOURCE 1
1488 cat >> confdefs.h
<<\EOF
1489 #define _LARGEFILE64_SOURCE 1
1492 cat >> confdefs.h
<<\EOF
1493 #define POSIX_ACL_NEEDS_MASK 1
1496 cat >> confdefs.h
<<\EOF
1497 #define _ALIGNMENT_REQUIRED 1
1500 cat >> confdefs.h
<<\EOF
1501 #define _MAX_ALIGNMENT 4
1504 cat >> confdefs.h
<<\EOF
1505 #define USE_BOTH_CRYPT_CALLS 1
1515 # CRAY Unicos has broken const handling
1517 echo "$ac_t""disabling const" 1>&6
1518 CPPFLAGS
="$CPPFLAGS -Dconst="
1522 # AIX4.x doesn't even admit to having large
1523 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1526 echo "$ac_t""enabling large file support" 1>&6
1527 CPPFLAGS
="$CPPFLAGS -D_LARGE_FILES"
1528 cat >> confdefs.h
<<\EOF
1529 #define _LARGE_FILES 1
1534 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1535 # to the existance of large files..
1536 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1537 # recommendations on large file support, however it makes the
1538 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1539 # recommendation makes the compile fail on gcc2.7. JRA.
1543 5.0*|
5.1*|
5.2*|
5.3*|
5.5*)
1544 echo "$ac_t""no large file support" 1>&6
1547 echo "$ac_t""enabling large file support" 1>&6
1548 if test "$ac_cv_prog_gcc" = yes; then
1549 ${CC-cc} -v >conftest.c
2>&1
1550 ac_cv_gcc_compiler_version_number
=`grep 'gcc version' conftest.c`
1552 case "$ac_cv_gcc_compiler_version_number" in
1553 *"gcc version 2.6"*|
*"gcc version 2.7"*)
1554 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1555 cat >> confdefs.h
<<\EOF
1556 #define _LARGEFILE64_SOURCE 1
1561 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1562 cat >> confdefs.h
<<\EOF
1563 #define _LARGEFILE64_SOURCE 1
1566 cat >> confdefs.h
<<\EOF
1567 #define _FILE_OFFSET_BITS 64
1573 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1574 cat >> confdefs.h
<<\EOF
1575 #define _LARGEFILE64_SOURCE 1
1578 cat >> confdefs.h
<<\EOF
1579 #define _FILE_OFFSET_BITS 64
1587 # VOS may need to have POSIX support and System V compatibility enabled.
1591 *-D_POSIX_C_SOURCE*)
1594 CPPFLAGS
="$CPPFLAGS -D_POSIX_C_SOURCE=199506L"
1595 cat >> confdefs.h
<<\EOF
1596 #define _POSIX_C_SOURCE 199506L
1602 *-D_SYSV*|
*-D_SVID_SOURCE*)
1605 CPPFLAGS
="$CPPFLAGS -D_SYSV"
1606 cat >> confdefs.h
<<\EOF
1613 # Tests needed for SINIX large file support.
1616 if test $host = mips-sni-sysv4
; then
1617 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1618 echo "configure:1619: checking for LFS support" >&5
1619 old_CPPFLAGS
="$CPPFLAGS"
1620 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1621 if test "$cross_compiling" = yes; then
1622 SINIX_LFS_SUPPORT
=cross
1624 cat > conftest.
$ac_ext <<EOF
1625 #line 1626 "configure"
1626 #include "confdefs.h"
1630 #if _LFS64_LARGEFILE == 1
1637 if { (eval echo configure
:1638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1639 SINIX_LFS_SUPPORT
=yes
1641 echo "configure: failed program was:" >&5
1642 cat conftest.
$ac_ext >&5
1644 SINIX_LFS_SUPPORT
=no
1649 CPPFLAGS
="$old_CPPFLAGS"
1650 if test x
$SINIX_LFS_SUPPORT = xyes
; then
1651 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1652 cat >> confdefs.h
<<\EOF
1653 #define _LARGEFILE64_SOURCE 1
1656 CFLAGS
="`getconf LFS64_CFLAGS` $CFLAGS"
1657 LDFLAGS
="`getconf LFS64_LDFLAGS` $LDFLAGS"
1658 LIBS
="`getconf LFS64_LIBS` $LIBS"
1660 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1664 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1667 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1668 echo "configure:1669: checking for LFS support" >&5
1669 old_CPPFLAGS
="$CPPFLAGS"
1670 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1671 if test "$cross_compiling" = yes; then
1672 LINUX_LFS_SUPPORT
=cross
1674 cat > conftest.
$ac_ext <<EOF
1675 #line 1676 "configure"
1676 #include "confdefs.h"
1679 #include <sys/utsname.h>
1681 #if _LFS64_LARGEFILE == 1
1686 /* Ensure this is glibc 2.2 or higher */
1687 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1688 int libc_major = __GLIBC__;
1689 int libc_minor = __GLIBC_MINOR__;
1697 /* Ensure this is kernel 2.4 or higher */
1700 release = uts.release;
1701 major = atoi(strsep(&release, "."));
1702 minor = atoi(strsep(&release, "."));
1704 if (major > 2 || (major == 2 && minor > 3))
1713 if { (eval echo configure
:1714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1715 LINUX_LFS_SUPPORT
=yes
1717 echo "configure: failed program was:" >&5
1718 cat conftest.
$ac_ext >&5
1720 LINUX_LFS_SUPPORT
=no
1725 CPPFLAGS
="$old_CPPFLAGS"
1726 if test x
$LINUX_LFS_SUPPORT = xyes
; then
1727 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1728 cat >> confdefs.h
<<\EOF
1729 #define _LARGEFILE64_SOURCE 1
1732 cat >> confdefs.h
<<\EOF
1733 #define _FILE_OFFSET_BITS 64
1736 cat >> confdefs.h
<<\EOF
1737 #define _GNU_SOURCE 1
1741 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
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_GNU_SOURCE $CPPFLAGS"
1749 if test "$cross_compiling" = yes; then
1750 GLIBC_LFS_SUPPORT
=cross
1752 cat > conftest.
$ac_ext <<EOF
1753 #line 1754 "configure"
1754 #include "confdefs.h"
1758 #if _LFS64_LARGEFILE == 1
1765 if { (eval echo configure
:1766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1767 GLIBC_LFS_SUPPORT
=yes
1769 echo "configure: failed program was:" >&5
1770 cat conftest.
$ac_ext >&5
1772 GLIBC_LFS_SUPPORT
=no
1777 CPPFLAGS
="$old_CPPFLAGS"
1778 if test x
$GLIBC_LFS_SUPPORT = xyes
; then
1779 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1780 cat >> confdefs.h
<<\EOF
1781 #define _LARGEFILE64_SOURCE 1
1784 cat >> confdefs.h
<<\EOF
1785 #define _GNU_SOURCE 1
1789 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1794 echo $ac_n "checking for inline""... $ac_c" 1>&6
1795 echo "configure:1796: checking for inline" >&5
1796 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1797 echo $ac_n "(cached) $ac_c" 1>&6
1800 for ac_kw
in inline __inline__ __inline
; do
1801 cat > conftest.
$ac_ext <<EOF
1802 #line 1803 "configure"
1803 #include "confdefs.h"
1809 if { (eval echo configure
:1810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1811 ac_cv_c_inline
=$ac_kw; break
1813 echo "configure: failed program was:" >&5
1814 cat conftest.
$ac_ext >&5
1821 echo "$ac_t""$ac_cv_c_inline" 1>&6
1822 case "$ac_cv_c_inline" in
1824 no
) cat >> confdefs.h
<<\EOF
1828 *) cat >> confdefs.h
<<EOF
1829 #define inline $ac_cv_c_inline
1834 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1835 echo "configure:1836: checking how to run the C preprocessor" >&5
1836 # On Suns, sometimes $CPP names a directory.
1837 if test -n "$CPP" && test -d "$CPP"; then
1840 if test -z "$CPP"; then
1841 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1842 echo $ac_n "(cached) $ac_c" 1>&6
1844 # This must be in double quotes, not single quotes, because CPP may get
1845 # substituted into the Makefile and "${CC-cc}" will confuse make.
1847 # On the NeXT, cc -E runs the code through the compiler's parser,
1848 # not just through cpp.
1849 cat > conftest.
$ac_ext <<EOF
1850 #line 1851 "configure"
1851 #include "confdefs.h"
1855 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1856 { (eval echo configure
:1857: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1857 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1858 if test -z "$ac_err"; then
1862 echo "configure: failed program was:" >&5
1863 cat conftest.
$ac_ext >&5
1865 CPP
="${CC-cc} -E -traditional-cpp"
1866 cat > conftest.
$ac_ext <<EOF
1867 #line 1868 "configure"
1868 #include "confdefs.h"
1872 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1873 { (eval echo configure
:1874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1874 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1875 if test -z "$ac_err"; then
1879 echo "configure: failed program was:" >&5
1880 cat conftest.
$ac_ext >&5
1882 CPP
="${CC-cc} -nologo -E"
1883 cat > conftest.
$ac_ext <<EOF
1884 #line 1885 "configure"
1885 #include "confdefs.h"
1889 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1890 { (eval echo configure
:1891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1891 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1892 if test -z "$ac_err"; then
1896 echo "configure: failed program was:" >&5
1897 cat conftest.
$ac_ext >&5
1906 ac_cv_prog_CPP
="$CPP"
1908 CPP
="$ac_cv_prog_CPP"
1910 ac_cv_prog_CPP
="$CPP"
1912 echo "$ac_t""$CPP" 1>&6
1914 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1915 echo "configure:1916: checking for ANSI C header files" >&5
1916 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1917 echo $ac_n "(cached) $ac_c" 1>&6
1919 cat > conftest.
$ac_ext <<EOF
1920 #line 1921 "configure"
1921 #include "confdefs.h"
1927 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1928 { (eval echo configure
:1929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1929 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1930 if test -z "$ac_err"; then
1932 ac_cv_header_stdc
=yes
1935 echo "configure: failed program was:" >&5
1936 cat conftest.
$ac_ext >&5
1938 ac_cv_header_stdc
=no
1942 if test $ac_cv_header_stdc = yes; then
1943 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1944 cat > conftest.
$ac_ext <<EOF
1945 #line 1946 "configure"
1946 #include "confdefs.h"
1949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1950 egrep "memchr" >/dev
/null
2>&1; then
1954 ac_cv_header_stdc
=no
1960 if test $ac_cv_header_stdc = yes; then
1961 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1962 cat > conftest.
$ac_ext <<EOF
1963 #line 1964 "configure"
1964 #include "confdefs.h"
1967 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1968 egrep "free" >/dev
/null
2>&1; then
1972 ac_cv_header_stdc
=no
1978 if test $ac_cv_header_stdc = yes; then
1979 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1980 if test "$cross_compiling" = yes; then
1983 cat > conftest.
$ac_ext <<EOF
1984 #line 1985 "configure"
1985 #include "confdefs.h"
1987 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1988 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1989 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1990 int main () { int i; for (i = 0; i < 256; i++)
1991 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1995 if { (eval echo configure
:1996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1999 echo "configure: failed program was:" >&5
2000 cat conftest.
$ac_ext >&5
2002 ac_cv_header_stdc
=no
2010 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2011 if test $ac_cv_header_stdc = yes; then
2012 cat >> confdefs.h
<<\EOF
2013 #define STDC_HEADERS 1
2019 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
2021 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2022 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2023 echo "configure:2024: checking for $ac_hdr that defines DIR" >&5
2024 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2025 echo $ac_n "(cached) $ac_c" 1>&6
2027 cat > conftest.
$ac_ext <<EOF
2028 #line 2029 "configure"
2029 #include "confdefs.h"
2030 #include <sys/types.h>
2036 if { (eval echo configure
:2037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2038 eval "ac_cv_header_dirent_$ac_safe=yes"
2040 echo "configure: failed program was:" >&5
2041 cat conftest.
$ac_ext >&5
2043 eval "ac_cv_header_dirent_$ac_safe=no"
2047 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2048 echo "$ac_t""yes" 1>&6
2049 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2050 cat >> confdefs.h
<<EOF
2051 #define $ac_tr_hdr 1
2053 ac_header_dirent
=$ac_hdr; break
2055 echo "$ac_t""no" 1>&6
2058 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2059 if test $ac_header_dirent = dirent.h
; then
2060 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2061 echo "configure:2062: checking for opendir in -ldir" >&5
2062 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2063 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2064 echo $ac_n "(cached) $ac_c" 1>&6
2066 ac_save_LIBS
="$LIBS"
2068 cat > conftest.
$ac_ext <<EOF
2069 #line 2070 "configure"
2070 #include "confdefs.h"
2071 /* Override any gcc2 internal prototype to avoid an error. */
2072 /* We use char because int might match the return type of a gcc2
2073 builtin and then its argument prototype would still apply. */
2080 if { (eval echo configure
:2081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2082 eval "ac_cv_lib_$ac_lib_var=yes"
2084 echo "configure: failed program was:" >&5
2085 cat conftest.
$ac_ext >&5
2087 eval "ac_cv_lib_$ac_lib_var=no"
2090 LIBS
="$ac_save_LIBS"
2093 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2094 echo "$ac_t""yes" 1>&6
2097 echo "$ac_t""no" 1>&6
2101 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2102 echo "configure:2103: checking for opendir in -lx" >&5
2103 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2104 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2105 echo $ac_n "(cached) $ac_c" 1>&6
2107 ac_save_LIBS
="$LIBS"
2109 cat > conftest.
$ac_ext <<EOF
2110 #line 2111 "configure"
2111 #include "confdefs.h"
2112 /* Override any gcc2 internal prototype to avoid an error. */
2113 /* We use char because int might match the return type of a gcc2
2114 builtin and then its argument prototype would still apply. */
2121 if { (eval echo configure
:2122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2123 eval "ac_cv_lib_$ac_lib_var=yes"
2125 echo "configure: failed program was:" >&5
2126 cat conftest.
$ac_ext >&5
2128 eval "ac_cv_lib_$ac_lib_var=no"
2131 LIBS
="$ac_save_LIBS"
2134 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2135 echo "$ac_t""yes" 1>&6
2138 echo "$ac_t""no" 1>&6
2143 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2144 echo "configure:2145: checking whether time.h and sys/time.h may both be included" >&5
2145 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2146 echo $ac_n "(cached) $ac_c" 1>&6
2148 cat > conftest.
$ac_ext <<EOF
2149 #line 2150 "configure"
2150 #include "confdefs.h"
2151 #include <sys/types.h>
2152 #include <sys/time.h>
2158 if { (eval echo configure
:2159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2160 ac_cv_header_time
=yes
2162 echo "configure: failed program was:" >&5
2163 cat conftest.
$ac_ext >&5
2165 ac_cv_header_time
=no
2170 echo "$ac_t""$ac_cv_header_time" 1>&6
2171 if test $ac_cv_header_time = yes; then
2172 cat >> confdefs.h
<<\EOF
2173 #define TIME_WITH_SYS_TIME 1
2178 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2179 echo "configure:2180: checking for sys/wait.h that is POSIX.1 compatible" >&5
2180 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2181 echo $ac_n "(cached) $ac_c" 1>&6
2183 cat > conftest.
$ac_ext <<EOF
2184 #line 2185 "configure"
2185 #include "confdefs.h"
2186 #include <sys/types.h>
2187 #include <sys/wait.h>
2189 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2192 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2197 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2200 if { (eval echo configure
:2201: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2202 ac_cv_header_sys_wait_h
=yes
2204 echo "configure: failed program was:" >&5
2205 cat conftest.
$ac_ext >&5
2207 ac_cv_header_sys_wait_h
=no
2212 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2213 if test $ac_cv_header_sys_wait_h = yes; then
2214 cat >> confdefs.h
<<\EOF
2215 #define HAVE_SYS_WAIT_H 1
2220 for ac_hdr
in arpa
/inet.h sys
/fcntl.h sys
/select.h fcntl.h sys
/time.h sys
/unistd.h
2222 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2223 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2224 echo "configure:2225: checking for $ac_hdr" >&5
2225 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2226 echo $ac_n "(cached) $ac_c" 1>&6
2228 cat > conftest.
$ac_ext <<EOF
2229 #line 2230 "configure"
2230 #include "confdefs.h"
2233 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2234 { (eval echo configure
:2235: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2235 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2236 if test -z "$ac_err"; then
2238 eval "ac_cv_header_$ac_safe=yes"
2241 echo "configure: failed program was:" >&5
2242 cat conftest.
$ac_ext >&5
2244 eval "ac_cv_header_$ac_safe=no"
2248 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2249 echo "$ac_t""yes" 1>&6
2250 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2251 cat >> confdefs.h
<<EOF
2252 #define $ac_tr_hdr 1
2256 echo "$ac_t""no" 1>&6
2260 for ac_hdr
in unistd.h utime.h grp.h sys
/id.h limits.h memory.h net
/if.h
2262 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2263 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2264 echo "configure:2265: checking for $ac_hdr" >&5
2265 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2266 echo $ac_n "(cached) $ac_c" 1>&6
2268 cat > conftest.
$ac_ext <<EOF
2269 #line 2270 "configure"
2270 #include "confdefs.h"
2273 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2274 { (eval echo configure
:2275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2275 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2276 if test -z "$ac_err"; then
2278 eval "ac_cv_header_$ac_safe=yes"
2281 echo "configure: failed program was:" >&5
2282 cat conftest.
$ac_ext >&5
2284 eval "ac_cv_header_$ac_safe=no"
2288 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2289 echo "$ac_t""yes" 1>&6
2290 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2291 cat >> confdefs.h
<<EOF
2292 #define $ac_tr_hdr 1
2296 echo "$ac_t""no" 1>&6
2300 for ac_hdr
in compat.h rpc
/rpc.h rpcsvc
/nis.h rpcsvc
/yp_prot.h rpcsvc
/ypclnt.h
2302 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2303 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2304 echo "configure:2305: checking for $ac_hdr" >&5
2305 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2306 echo $ac_n "(cached) $ac_c" 1>&6
2308 cat > conftest.
$ac_ext <<EOF
2309 #line 2310 "configure"
2310 #include "confdefs.h"
2313 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2314 { (eval echo configure
:2315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2315 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2316 if test -z "$ac_err"; then
2318 eval "ac_cv_header_$ac_safe=yes"
2321 echo "configure: failed program was:" >&5
2322 cat conftest.
$ac_ext >&5
2324 eval "ac_cv_header_$ac_safe=no"
2328 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2329 echo "$ac_t""yes" 1>&6
2330 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2331 cat >> confdefs.h
<<EOF
2332 #define $ac_tr_hdr 1
2336 echo "$ac_t""no" 1>&6
2340 for ac_hdr
in stdlib.h string.h
strings.h syslog.h sys
/file.h
2342 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2343 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2344 echo "configure:2345: checking for $ac_hdr" >&5
2345 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2346 echo $ac_n "(cached) $ac_c" 1>&6
2348 cat > conftest.
$ac_ext <<EOF
2349 #line 2350 "configure"
2350 #include "confdefs.h"
2353 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2354 { (eval echo configure
:2355: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2355 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2356 if test -z "$ac_err"; then
2358 eval "ac_cv_header_$ac_safe=yes"
2361 echo "configure: failed program was:" >&5
2362 cat conftest.
$ac_ext >&5
2364 eval "ac_cv_header_$ac_safe=no"
2368 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2369 echo "$ac_t""yes" 1>&6
2370 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2371 cat >> confdefs.h
<<EOF
2372 #define $ac_tr_hdr 1
2376 echo "$ac_t""no" 1>&6
2380 for ac_hdr
in sys
/param.h ctype.h sys
/wait.h sys
/resource.h sys
/ioctl.h sys
/ipc.h sys
/mode.h
2382 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2383 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2384 echo "configure:2385: checking for $ac_hdr" >&5
2385 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2386 echo $ac_n "(cached) $ac_c" 1>&6
2388 cat > conftest.
$ac_ext <<EOF
2389 #line 2390 "configure"
2390 #include "confdefs.h"
2393 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2394 { (eval echo configure
:2395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2395 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2396 if test -z "$ac_err"; then
2398 eval "ac_cv_header_$ac_safe=yes"
2401 echo "configure: failed program was:" >&5
2402 cat conftest.
$ac_ext >&5
2404 eval "ac_cv_header_$ac_safe=no"
2408 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2409 echo "$ac_t""yes" 1>&6
2410 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2411 cat >> confdefs.h
<<EOF
2412 #define $ac_tr_hdr 1
2416 echo "$ac_t""no" 1>&6
2420 for ac_hdr
in sys
/mman.h sys
/filio.h sys
/priv.h sys
/shm.h sys
/socket.h
2422 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2423 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2424 echo "configure:2425: checking for $ac_hdr" >&5
2425 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2426 echo $ac_n "(cached) $ac_c" 1>&6
2428 cat > conftest.
$ac_ext <<EOF
2429 #line 2430 "configure"
2430 #include "confdefs.h"
2433 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2434 { (eval echo configure
:2435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2435 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2436 if test -z "$ac_err"; then
2438 eval "ac_cv_header_$ac_safe=yes"
2441 echo "configure: failed program was:" >&5
2442 cat conftest.
$ac_ext >&5
2444 eval "ac_cv_header_$ac_safe=no"
2448 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2449 echo "$ac_t""yes" 1>&6
2450 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2451 cat >> confdefs.h
<<EOF
2452 #define $ac_tr_hdr 1
2456 echo "$ac_t""no" 1>&6
2460 for ac_hdr
in syslog.h sys
/syslog.h sys
/mount.h sys
/vfs.h sys
/fs
/s5param.h sys
/filsys.h termios.h termio.h
2462 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2463 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2464 echo "configure:2465: checking for $ac_hdr" >&5
2465 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2466 echo $ac_n "(cached) $ac_c" 1>&6
2468 cat > conftest.
$ac_ext <<EOF
2469 #line 2470 "configure"
2470 #include "confdefs.h"
2473 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2474 { (eval echo configure
:2475: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2475 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2476 if test -z "$ac_err"; then
2478 eval "ac_cv_header_$ac_safe=yes"
2481 echo "configure: failed program was:" >&5
2482 cat conftest.
$ac_ext >&5
2484 eval "ac_cv_header_$ac_safe=no"
2488 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2489 echo "$ac_t""yes" 1>&6
2490 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2491 cat >> confdefs.h
<<EOF
2492 #define $ac_tr_hdr 1
2496 echo "$ac_t""no" 1>&6
2500 for ac_hdr
in sys
/termio.h sys
/statfs.h sys
/dustat.h sys
/statvfs.h stdarg.h sys
/sockio.h
2502 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2503 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2504 echo "configure:2505: checking for $ac_hdr" >&5
2505 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2506 echo $ac_n "(cached) $ac_c" 1>&6
2508 cat > conftest.
$ac_ext <<EOF
2509 #line 2510 "configure"
2510 #include "confdefs.h"
2513 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2514 { (eval echo configure
:2515: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2515 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2516 if test -z "$ac_err"; then
2518 eval "ac_cv_header_$ac_safe=yes"
2521 echo "configure: failed program was:" >&5
2522 cat conftest.
$ac_ext >&5
2524 eval "ac_cv_header_$ac_safe=no"
2528 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2529 echo "$ac_t""yes" 1>&6
2530 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2531 cat >> confdefs.h
<<EOF
2532 #define $ac_tr_hdr 1
2536 echo "$ac_t""no" 1>&6
2540 for ac_hdr
in security
/pam_modules.h security
/_pam_macros.h dlfcn.h synch.h pthread.h nsswitch.h
2542 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2543 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2544 echo "configure:2545: checking for $ac_hdr" >&5
2545 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2546 echo $ac_n "(cached) $ac_c" 1>&6
2548 cat > conftest.
$ac_ext <<EOF
2549 #line 2550 "configure"
2550 #include "confdefs.h"
2553 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2554 { (eval echo configure
:2555: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2555 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2556 if test -z "$ac_err"; then
2558 eval "ac_cv_header_$ac_safe=yes"
2561 echo "configure: failed program was:" >&5
2562 cat conftest.
$ac_ext >&5
2564 eval "ac_cv_header_$ac_safe=no"
2568 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2569 echo "$ac_t""yes" 1>&6
2570 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2571 cat >> confdefs.h
<<EOF
2572 #define $ac_tr_hdr 1
2576 echo "$ac_t""no" 1>&6
2582 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2583 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2587 cat > conftest.
$ac_ext <<EOF
2588 #line 2589 "configure"
2589 #include "confdefs.h"
2595 if { (eval echo configure
:2596: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2597 ac_cv_header_shadow_h
=yes
2599 echo "configure: failed program was:" >&5
2600 cat conftest.
$ac_ext >&5
2602 ac_cv_header_shadow_h
=no
2605 if test x
"$ac_cv_header_shadow_h" = x
"yes"; then
2606 cat >> confdefs.h
<<\EOF
2607 #define HAVE_SHADOW_H 1
2613 for ac_hdr
in shadow.h netinet
/ip.h netinet
/tcp.h netinet
/in_systm.h netinet
/in_ip.h
2615 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2616 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2617 echo "configure:2618: checking for $ac_hdr" >&5
2618 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2619 echo $ac_n "(cached) $ac_c" 1>&6
2621 cat > conftest.
$ac_ext <<EOF
2622 #line 2623 "configure"
2623 #include "confdefs.h"
2626 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2627 { (eval echo configure
:2628: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2628 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2629 if test -z "$ac_err"; then
2631 eval "ac_cv_header_$ac_safe=yes"
2634 echo "configure: failed program was:" >&5
2635 cat conftest.
$ac_ext >&5
2637 eval "ac_cv_header_$ac_safe=no"
2641 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2642 echo "$ac_t""yes" 1>&6
2643 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2644 cat >> confdefs.h
<<EOF
2645 #define $ac_tr_hdr 1
2649 echo "$ac_t""no" 1>&6
2653 for ac_hdr
in nss.h nss_common.h ns_api.h sys
/security.h security
/pam_appl.h security
/pam_modules.h
2655 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2656 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2657 echo "configure:2658: checking for $ac_hdr" >&5
2658 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2659 echo $ac_n "(cached) $ac_c" 1>&6
2661 cat > conftest.
$ac_ext <<EOF
2662 #line 2663 "configure"
2663 #include "confdefs.h"
2666 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2667 { (eval echo configure
:2668: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2668 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2669 if test -z "$ac_err"; then
2671 eval "ac_cv_header_$ac_safe=yes"
2674 echo "configure: failed program was:" >&5
2675 cat conftest.
$ac_ext >&5
2677 eval "ac_cv_header_$ac_safe=no"
2681 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2682 echo "$ac_t""yes" 1>&6
2683 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2684 cat >> confdefs.h
<<EOF
2685 #define $ac_tr_hdr 1
2689 echo "$ac_t""no" 1>&6
2693 for ac_hdr
in stropts.h poll.h
2695 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2696 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2697 echo "configure:2698: checking for $ac_hdr" >&5
2698 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2699 echo $ac_n "(cached) $ac_c" 1>&6
2701 cat > conftest.
$ac_ext <<EOF
2702 #line 2703 "configure"
2703 #include "confdefs.h"
2706 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2707 { (eval echo configure
:2708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2708 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2709 if test -z "$ac_err"; then
2711 eval "ac_cv_header_$ac_safe=yes"
2714 echo "configure: failed program was:" >&5
2715 cat conftest.
$ac_ext >&5
2717 eval "ac_cv_header_$ac_safe=no"
2721 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2722 echo "$ac_t""yes" 1>&6
2723 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2724 cat >> confdefs.h
<<EOF
2725 #define $ac_tr_hdr 1
2729 echo "$ac_t""no" 1>&6
2733 for ac_hdr
in sys
/capability.h syscall.h sys
/syscall.h
2735 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2736 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2737 echo "configure:2738: checking for $ac_hdr" >&5
2738 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2739 echo $ac_n "(cached) $ac_c" 1>&6
2741 cat > conftest.
$ac_ext <<EOF
2742 #line 2743 "configure"
2743 #include "confdefs.h"
2746 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2747 { (eval echo configure
:2748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2748 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2749 if test -z "$ac_err"; then
2751 eval "ac_cv_header_$ac_safe=yes"
2754 echo "configure: failed program was:" >&5
2755 cat conftest.
$ac_ext >&5
2757 eval "ac_cv_header_$ac_safe=no"
2761 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2762 echo "$ac_t""yes" 1>&6
2763 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2764 cat >> confdefs.h
<<EOF
2765 #define $ac_tr_hdr 1
2769 echo "$ac_t""no" 1>&6
2773 for ac_hdr
in sys
/acl.h sys
/cdefs.h glob.h
2775 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2776 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2777 echo "configure:2778: checking for $ac_hdr" >&5
2778 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2779 echo $ac_n "(cached) $ac_c" 1>&6
2781 cat > conftest.
$ac_ext <<EOF
2782 #line 2783 "configure"
2783 #include "confdefs.h"
2786 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2787 { (eval echo configure
:2788: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2788 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2789 if test -z "$ac_err"; then
2791 eval "ac_cv_header_$ac_safe=yes"
2794 echo "configure: failed program was:" >&5
2795 cat conftest.
$ac_ext >&5
2797 eval "ac_cv_header_$ac_safe=no"
2801 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2802 echo "$ac_t""yes" 1>&6
2803 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2804 cat >> confdefs.h
<<EOF
2805 #define $ac_tr_hdr 1
2809 echo "$ac_t""no" 1>&6
2814 # For experimental utmp support (lastlog on some BSD-like systems)
2815 for ac_hdr
in utmp.h utmpx.h lastlog.h
2817 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2818 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2819 echo "configure:2820: checking for $ac_hdr" >&5
2820 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2821 echo $ac_n "(cached) $ac_c" 1>&6
2823 cat > conftest.
$ac_ext <<EOF
2824 #line 2825 "configure"
2825 #include "confdefs.h"
2828 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2829 { (eval echo configure
:2830: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2830 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2831 if test -z "$ac_err"; then
2833 eval "ac_cv_header_$ac_safe=yes"
2836 echo "configure: failed program was:" >&5
2837 cat conftest.
$ac_ext >&5
2839 eval "ac_cv_header_$ac_safe=no"
2843 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2844 echo "$ac_t""yes" 1>&6
2845 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2846 cat >> confdefs.h
<<EOF
2847 #define $ac_tr_hdr 1
2851 echo "$ac_t""no" 1>&6
2856 # For quotas on Veritas VxFS filesystems
2857 for ac_hdr
in sys
/fs
/vx_quota.h
2859 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2860 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2861 echo "configure:2862: checking for $ac_hdr" >&5
2862 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2863 echo $ac_n "(cached) $ac_c" 1>&6
2865 cat > conftest.
$ac_ext <<EOF
2866 #line 2867 "configure"
2867 #include "confdefs.h"
2870 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2871 { (eval echo configure
:2872: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2872 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2873 if test -z "$ac_err"; then
2875 eval "ac_cv_header_$ac_safe=yes"
2878 echo "configure: failed program was:" >&5
2879 cat conftest.
$ac_ext >&5
2881 eval "ac_cv_header_$ac_safe=no"
2885 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2886 echo "$ac_t""yes" 1>&6
2887 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2888 cat >> confdefs.h
<<EOF
2889 #define $ac_tr_hdr 1
2893 echo "$ac_t""no" 1>&6
2898 # For quotas on Linux XFS filesystems
2899 for ac_hdr
in linux
/xqm.h
2901 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2902 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2903 echo "configure:2904: checking for $ac_hdr" >&5
2904 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2905 echo $ac_n "(cached) $ac_c" 1>&6
2907 cat > conftest.
$ac_ext <<EOF
2908 #line 2909 "configure"
2909 #include "confdefs.h"
2912 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2913 { (eval echo configure
:2914: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2914 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2915 if test -z "$ac_err"; then
2917 eval "ac_cv_header_$ac_safe=yes"
2920 echo "configure: failed program was:" >&5
2921 cat conftest.
$ac_ext >&5
2923 eval "ac_cv_header_$ac_safe=no"
2927 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2928 echo "$ac_t""yes" 1>&6
2929 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2930 cat >> confdefs.h
<<EOF
2931 #define $ac_tr_hdr 1
2935 echo "$ac_t""no" 1>&6
2940 echo $ac_n "checking size of int""... $ac_c" 1>&6
2941 echo "configure:2942: checking size of int" >&5
2942 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2943 echo $ac_n "(cached) $ac_c" 1>&6
2945 if test "$cross_compiling" = yes; then
2946 ac_cv_sizeof_int
=cross
2948 cat > conftest.
$ac_ext <<EOF
2949 #line 2950 "configure"
2950 #include "confdefs.h"
2954 FILE *f=fopen("conftestval", "w");
2956 fprintf(f, "%d\n", sizeof(int));
2960 if { (eval echo configure
:2961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2962 ac_cv_sizeof_int
=`cat conftestval`
2964 echo "configure: failed program was:" >&5
2965 cat conftest.
$ac_ext >&5
2973 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2974 cat >> confdefs.h
<<EOF
2975 #define SIZEOF_INT $ac_cv_sizeof_int
2979 echo $ac_n "checking size of long""... $ac_c" 1>&6
2980 echo "configure:2981: checking size of long" >&5
2981 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2982 echo $ac_n "(cached) $ac_c" 1>&6
2984 if test "$cross_compiling" = yes; then
2985 ac_cv_sizeof_long
=cross
2987 cat > conftest.
$ac_ext <<EOF
2988 #line 2989 "configure"
2989 #include "confdefs.h"
2993 FILE *f=fopen("conftestval", "w");
2995 fprintf(f, "%d\n", sizeof(long));
2999 if { (eval echo configure
:3000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3001 ac_cv_sizeof_long
=`cat conftestval`
3003 echo "configure: failed program was:" >&5
3004 cat conftest.
$ac_ext >&5
3012 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3013 cat >> confdefs.h
<<EOF
3014 #define SIZEOF_LONG $ac_cv_sizeof_long
3018 echo $ac_n "checking size of short""... $ac_c" 1>&6
3019 echo "configure:3020: checking size of short" >&5
3020 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
3021 echo $ac_n "(cached) $ac_c" 1>&6
3023 if test "$cross_compiling" = yes; then
3024 ac_cv_sizeof_short
=cross
3026 cat > conftest.
$ac_ext <<EOF
3027 #line 3028 "configure"
3028 #include "confdefs.h"
3032 FILE *f=fopen("conftestval", "w");
3034 fprintf(f, "%d\n", sizeof(short));
3038 if { (eval echo configure
:3039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3040 ac_cv_sizeof_short
=`cat conftestval`
3042 echo "configure: failed program was:" >&5
3043 cat conftest.
$ac_ext >&5
3045 ac_cv_sizeof_short
=0
3051 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
3052 cat >> confdefs.h
<<EOF
3053 #define SIZEOF_SHORT $ac_cv_sizeof_short
3058 echo $ac_n "checking for working const""... $ac_c" 1>&6
3059 echo "configure:3060: checking for working const" >&5
3060 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3061 echo $ac_n "(cached) $ac_c" 1>&6
3063 cat > conftest.
$ac_ext <<EOF
3064 #line 3065 "configure"
3065 #include "confdefs.h"
3069 /* Ultrix mips cc rejects this. */
3070 typedef int charset[2]; const charset x;
3071 /* SunOS 4.1.1 cc rejects this. */
3072 char const *const *ccp;
3074 /* NEC SVR4.0.2 mips cc rejects this. */
3075 struct point {int x, y;};
3076 static struct point const zero = {0,0};
3077 /* AIX XL C 1.02.0.0 rejects this.
3078 It does not let you subtract one const X* pointer from another in an arm
3079 of an if-expression whose if-part is not a constant expression */
3080 const char *g = "string";
3081 ccp = &g + (g ? g-g : 0);
3082 /* HPUX 7.0 cc rejects these. */
3085 ccp = (char const *const *) p;
3086 { /* SCO 3.2v4 cc rejects this. */
3088 char const *s = 0 ? (char *) 0 : (char const *) 0;
3092 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3094 const int *foo = &x[0];
3097 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3098 typedef const int *iptr;
3102 { /* AIX XL C 1.02.0.0 rejects this saying
3103 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3104 struct s { int j; const int *ap[3]; };
3105 struct s *b; b->j = 5;
3107 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3113 if { (eval echo configure
:3114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3117 echo "configure: failed program was:" >&5
3118 cat conftest.
$ac_ext >&5
3125 echo "$ac_t""$ac_cv_c_const" 1>&6
3126 if test $ac_cv_c_const = no
; then
3127 cat >> confdefs.h
<<\EOF
3133 echo $ac_n "checking for inline""... $ac_c" 1>&6
3134 echo "configure:3135: checking for inline" >&5
3135 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3136 echo $ac_n "(cached) $ac_c" 1>&6
3139 for ac_kw
in inline __inline__ __inline
; do
3140 cat > conftest.
$ac_ext <<EOF
3141 #line 3142 "configure"
3142 #include "confdefs.h"
3148 if { (eval echo configure
:3149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3150 ac_cv_c_inline
=$ac_kw; break
3152 echo "configure: failed program was:" >&5
3153 cat conftest.
$ac_ext >&5
3160 echo "$ac_t""$ac_cv_c_inline" 1>&6
3161 case "$ac_cv_c_inline" in
3163 no
) cat >> confdefs.h
<<\EOF
3167 *) cat >> confdefs.h
<<EOF
3168 #define inline $ac_cv_c_inline
3173 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3174 echo "configure:3175: checking whether byte ordering is bigendian" >&5
3175 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3176 echo $ac_n "(cached) $ac_c" 1>&6
3178 ac_cv_c_bigendian
=unknown
3179 # See if sys/param.h defines the BYTE_ORDER macro.
3180 cat > conftest.
$ac_ext <<EOF
3181 #line 3182 "configure"
3182 #include "confdefs.h"
3183 #include <sys/types.h>
3184 #include <sys/param.h>
3187 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3192 if { (eval echo configure
:3193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3194 # It does; now see whether it defined to BIG_ENDIAN or not.
3195 cat > conftest.
$ac_ext <<EOF
3196 #line 3197 "configure"
3197 #include "confdefs.h"
3198 #include <sys/types.h>
3199 #include <sys/param.h>
3202 #if BYTE_ORDER != BIG_ENDIAN
3207 if { (eval echo configure
:3208: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3209 ac_cv_c_bigendian
=yes
3211 echo "configure: failed program was:" >&5
3212 cat conftest.
$ac_ext >&5
3214 ac_cv_c_bigendian
=no
3218 echo "configure: failed program was:" >&5
3219 cat conftest.
$ac_ext >&5
3222 if test $ac_cv_c_bigendian = unknown
; then
3223 if test "$cross_compiling" = yes; then
3224 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3226 cat > conftest.
$ac_ext <<EOF
3227 #line 3228 "configure"
3228 #include "confdefs.h"
3230 /* Are we little or big endian? From Harbison&Steele. */
3234 char c[sizeof (long)];
3237 exit (u.c[sizeof (long) - 1] == 1);
3240 if { (eval echo configure
:3241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3242 ac_cv_c_bigendian
=no
3244 echo "configure: failed program was:" >&5
3245 cat conftest.
$ac_ext >&5
3247 ac_cv_c_bigendian
=yes
3255 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3256 if test $ac_cv_c_bigendian = yes; then
3257 cat >> confdefs.h
<<\EOF
3258 #define WORDS_BIGENDIAN 1
3263 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3264 echo "configure:3265: checking whether char is unsigned" >&5
3265 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3266 echo $ac_n "(cached) $ac_c" 1>&6
3268 if test "$GCC" = yes; then
3269 # GCC predefines this symbol on systems where it applies.
3270 cat > conftest.
$ac_ext <<EOF
3271 #line 3272 "configure"
3272 #include "confdefs.h"
3273 #ifdef __CHAR_UNSIGNED__
3278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3279 egrep "yes" >/dev
/null
2>&1; then
3281 ac_cv_c_char_unsigned
=yes
3284 ac_cv_c_char_unsigned
=no
3289 if test "$cross_compiling" = yes; then
3290 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3292 cat > conftest.
$ac_ext <<EOF
3293 #line 3294 "configure"
3294 #include "confdefs.h"
3295 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3296 #if !defined(__STDC__) || __STDC__ != 1
3300 volatile char c = 255; exit(c < 0);
3303 if { (eval echo configure
:3304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3305 ac_cv_c_char_unsigned
=yes
3307 echo "configure: failed program was:" >&5
3308 cat conftest.
$ac_ext >&5
3310 ac_cv_c_char_unsigned
=no
3318 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3319 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3320 cat >> confdefs.h
<<\EOF
3321 #define __CHAR_UNSIGNED__ 1
3327 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3328 echo "configure:3329: checking return type of signal handlers" >&5
3329 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3330 echo $ac_n "(cached) $ac_c" 1>&6
3332 cat > conftest.
$ac_ext <<EOF
3333 #line 3334 "configure"
3334 #include "confdefs.h"
3335 #include <sys/types.h>
3341 extern "C" void (*signal (int, void (*)(int)))(int);
3343 void (*signal ()) ();
3350 if { (eval echo configure
:3351: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3352 ac_cv_type_signal
=void
3354 echo "configure: failed program was:" >&5
3355 cat conftest.
$ac_ext >&5
3357 ac_cv_type_signal
=int
3362 echo "$ac_t""$ac_cv_type_signal" 1>&6
3363 cat >> confdefs.h
<<EOF
3364 #define RETSIGTYPE $ac_cv_type_signal
3368 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3369 echo "configure:3370: checking for uid_t in sys/types.h" >&5
3370 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3371 echo $ac_n "(cached) $ac_c" 1>&6
3373 cat > conftest.
$ac_ext <<EOF
3374 #line 3375 "configure"
3375 #include "confdefs.h"
3376 #include <sys/types.h>
3378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3379 egrep "uid_t" >/dev
/null
2>&1; then
3381 ac_cv_type_uid_t
=yes
3390 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3391 if test $ac_cv_type_uid_t = no
; then
3392 cat >> confdefs.h
<<\EOF
3396 cat >> confdefs.h
<<\EOF
3402 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3403 echo "configure:3404: checking for mode_t" >&5
3404 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3405 echo $ac_n "(cached) $ac_c" 1>&6
3407 cat > conftest.
$ac_ext <<EOF
3408 #line 3409 "configure"
3409 #include "confdefs.h"
3410 #include <sys/types.h>
3416 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3417 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3419 ac_cv_type_mode_t
=yes
3422 ac_cv_type_mode_t
=no
3427 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3428 if test $ac_cv_type_mode_t = no
; then
3429 cat >> confdefs.h
<<\EOF
3435 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3436 echo "configure:3437: checking for off_t" >&5
3437 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3438 echo $ac_n "(cached) $ac_c" 1>&6
3440 cat > conftest.
$ac_ext <<EOF
3441 #line 3442 "configure"
3442 #include "confdefs.h"
3443 #include <sys/types.h>
3449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3450 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3452 ac_cv_type_off_t
=yes
3460 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3461 if test $ac_cv_type_off_t = no
; then
3462 cat >> confdefs.h
<<\EOF
3468 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3469 echo "configure:3470: checking for size_t" >&5
3470 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3471 echo $ac_n "(cached) $ac_c" 1>&6
3473 cat > conftest.
$ac_ext <<EOF
3474 #line 3475 "configure"
3475 #include "confdefs.h"
3476 #include <sys/types.h>
3482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3483 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3485 ac_cv_type_size_t
=yes
3488 ac_cv_type_size_t
=no
3493 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3494 if test $ac_cv_type_size_t = no
; then
3495 cat >> confdefs.h
<<\EOF
3496 #define size_t unsigned
3501 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3502 echo "configure:3503: checking for pid_t" >&5
3503 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3504 echo $ac_n "(cached) $ac_c" 1>&6
3506 cat > conftest.
$ac_ext <<EOF
3507 #line 3508 "configure"
3508 #include "confdefs.h"
3509 #include <sys/types.h>
3515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3516 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3518 ac_cv_type_pid_t
=yes
3526 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3527 if test $ac_cv_type_pid_t = no
; then
3528 cat >> confdefs.h
<<\EOF
3534 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3535 echo "configure:3536: checking for st_rdev in struct stat" >&5
3536 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3537 echo $ac_n "(cached) $ac_c" 1>&6
3539 cat > conftest.
$ac_ext <<EOF
3540 #line 3541 "configure"
3541 #include "confdefs.h"
3542 #include <sys/types.h>
3543 #include <sys/stat.h>
3545 struct stat s; s.st_rdev;
3548 if { (eval echo configure
:3549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3550 ac_cv_struct_st_rdev
=yes
3552 echo "configure: failed program was:" >&5
3553 cat conftest.
$ac_ext >&5
3555 ac_cv_struct_st_rdev
=no
3560 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3561 if test $ac_cv_struct_st_rdev = yes; then
3562 cat >> confdefs.h
<<\EOF
3563 #define HAVE_ST_RDEV 1
3568 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3569 echo "configure:3570: checking for d_off in dirent" >&5
3570 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3571 echo $ac_n "(cached) $ac_c" 1>&6
3573 cat > conftest.
$ac_ext <<EOF
3574 #line 3575 "configure"
3575 #include "confdefs.h"
3578 #include <sys/types.h>
3581 struct dirent d; d.d_off;
3584 if { (eval echo configure
:3585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3586 ac_cv_dirent_d_off
=yes
3588 echo "configure: failed program was:" >&5
3589 cat conftest.
$ac_ext >&5
3591 ac_cv_dirent_d_off
=no
3596 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3597 if test $ac_cv_dirent_d_off = yes; then
3598 cat >> confdefs.h
<<\EOF
3599 #define HAVE_DIRENT_D_OFF 1
3604 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3605 echo "configure:3606: checking for ino_t" >&5
3606 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3607 echo $ac_n "(cached) $ac_c" 1>&6
3609 cat > conftest.
$ac_ext <<EOF
3610 #line 3611 "configure"
3611 #include "confdefs.h"
3612 #include <sys/types.h>
3618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3619 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3621 ac_cv_type_ino_t
=yes
3629 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3630 if test $ac_cv_type_ino_t = no
; then
3631 cat >> confdefs.h
<<\EOF
3632 #define ino_t unsigned
3637 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3638 echo "configure:3639: checking for loff_t" >&5
3639 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3640 echo $ac_n "(cached) $ac_c" 1>&6
3642 cat > conftest.
$ac_ext <<EOF
3643 #line 3644 "configure"
3644 #include "confdefs.h"
3645 #include <sys/types.h>
3651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3652 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3654 ac_cv_type_loff_t
=yes
3657 ac_cv_type_loff_t
=no
3662 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3663 if test $ac_cv_type_loff_t = no
; then
3664 cat >> confdefs.h
<<\EOF
3665 #define loff_t off_t
3670 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3671 echo "configure:3672: checking for offset_t" >&5
3672 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3673 echo $ac_n "(cached) $ac_c" 1>&6
3675 cat > conftest.
$ac_ext <<EOF
3676 #line 3677 "configure"
3677 #include "confdefs.h"
3678 #include <sys/types.h>
3684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3685 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3687 ac_cv_type_offset_t
=yes
3690 ac_cv_type_offset_t
=no
3695 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3696 if test $ac_cv_type_offset_t = no
; then
3697 cat >> confdefs.h
<<\EOF
3698 #define offset_t loff_t
3703 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3704 echo "configure:3705: checking for ssize_t" >&5
3705 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3706 echo $ac_n "(cached) $ac_c" 1>&6
3708 cat > conftest.
$ac_ext <<EOF
3709 #line 3710 "configure"
3710 #include "confdefs.h"
3711 #include <sys/types.h>
3717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3718 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3720 ac_cv_type_ssize_t
=yes
3723 ac_cv_type_ssize_t
=no
3728 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3729 if test $ac_cv_type_ssize_t = no
; then
3730 cat >> confdefs.h
<<\EOF
3736 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3737 echo "configure:3738: checking for wchar_t" >&5
3738 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3739 echo $ac_n "(cached) $ac_c" 1>&6
3741 cat > conftest.
$ac_ext <<EOF
3742 #line 3743 "configure"
3743 #include "confdefs.h"
3744 #include <sys/types.h>
3750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3751 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3753 ac_cv_type_wchar_t
=yes
3756 ac_cv_type_wchar_t
=no
3761 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3762 if test $ac_cv_type_wchar_t = no
; then
3763 cat >> confdefs.h
<<\EOF
3764 #define wchar_t unsigned short
3770 ############################################
3771 # for cups support we need libcups, and a handful of header files
3773 # Check whether --enable-cups or --disable-cups was given.
3774 if test "${enable_cups+set}" = set; then
3775 enableval
="$enable_cups"
3780 if test x
$enable_cups != xno
; then
3781 # Extract the first word of "cups-config", so it can be a program name with args.
3782 set dummy cups-config
; ac_word
=$2
3783 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3784 echo "configure:3785: checking for $ac_word" >&5
3785 if eval "test \"`echo '$''{'ac_cv_path_CUPS_CONFIG'+set}'`\" = set"; then
3786 echo $ac_n "(cached) $ac_c" 1>&6
3788 case "$CUPS_CONFIG" in
3790 ac_cv_path_CUPS_CONFIG
="$CUPS_CONFIG" # Let the user override the test with a path.
3793 ac_cv_path_CUPS_CONFIG
="$CUPS_CONFIG" # Let the user override the test with a dos path.
3796 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3798 for ac_dir
in $ac_dummy; do
3799 test -z "$ac_dir" && ac_dir
=.
3800 if test -f $ac_dir/$ac_word; then
3801 ac_cv_path_CUPS_CONFIG
="$ac_dir/$ac_word"
3809 CUPS_CONFIG
="$ac_cv_path_CUPS_CONFIG"
3810 if test -n "$CUPS_CONFIG"; then
3811 echo "$ac_t""$CUPS_CONFIG" 1>&6
3813 echo "$ac_t""no" 1>&6
3817 if test "x$CUPS_CONFIG" != x
; then
3818 cat >> confdefs.h
<<\EOF
3822 CFLAGS
="$CFLAGS `$CUPS_CONFIG --cflags`"
3823 LDFLAGS
="$LDFLAGS `$CUPS_CONFIG --ldflags`"
3824 LIBS
="$LIBS `$CUPS_CONFIG --libs`"
3828 ############################################
3829 # we need dlopen/dlclose/dlsym/dlerror for PAM, the password database plugins and the new VFS code
3830 for ac_func
in dlopen
3832 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3833 echo "configure:3834: checking for $ac_func" >&5
3834 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3835 echo $ac_n "(cached) $ac_c" 1>&6
3837 cat > conftest.
$ac_ext <<EOF
3838 #line 3839 "configure"
3839 #include "confdefs.h"
3840 /* System header to define __stub macros and hopefully few prototypes,
3841 which can conflict with char $ac_func(); below. */
3843 /* Override any gcc2 internal prototype to avoid an error. */
3844 /* We use char because int might match the return type of a gcc2
3845 builtin and then its argument prototype would still apply. */
3850 /* The GNU C library defines this for functions which it implements
3851 to always fail with ENOSYS. Some functions are actually named
3852 something starting with __ and the normal name is an alias. */
3853 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3861 if { (eval echo configure
:3862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3863 eval "ac_cv_func_$ac_func=yes"
3865 echo "configure: failed program was:" >&5
3866 cat conftest.
$ac_ext >&5
3868 eval "ac_cv_func_$ac_func=no"
3873 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3874 echo "$ac_t""yes" 1>&6
3875 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3876 cat >> confdefs.h
<<EOF
3877 #define $ac_tr_func 1
3881 echo "$ac_t""no" 1>&6
3885 if test x
"$ac_cv_func_dlopen" = x
"no"; then
3886 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3887 echo "configure:3888: checking for dlopen in -ldl" >&5
3888 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3889 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3890 echo $ac_n "(cached) $ac_c" 1>&6
3892 ac_save_LIBS
="$LIBS"
3894 cat > conftest.
$ac_ext <<EOF
3895 #line 3896 "configure"
3896 #include "confdefs.h"
3897 /* Override any gcc2 internal prototype to avoid an error. */
3898 /* We use char because int might match the return type of a gcc2
3899 builtin and then its argument prototype would still apply. */
3906 if { (eval echo configure
:3907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3908 eval "ac_cv_lib_$ac_lib_var=yes"
3910 echo "configure: failed program was:" >&5
3911 cat conftest.
$ac_ext >&5
3913 eval "ac_cv_lib_$ac_lib_var=no"
3916 LIBS
="$ac_save_LIBS"
3919 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3920 echo "$ac_t""yes" 1>&6
3922 cat >> confdefs.h
<<\EOF
3923 #define HAVE_DLOPEN 1
3927 echo "$ac_t""no" 1>&6
3931 # dlopen/dlclose/dlsym/dlerror will be checked again later and defines will be set then
3933 ############################################
3934 # check if the compiler can do immediate structures
3935 echo $ac_n "checking for immediate structures""... $ac_c" 1>&6
3936 echo "configure:3937: checking for immediate structures" >&5
3937 if eval "test \"`echo '$''{'samba_cv_immediate_structures'+set}'`\" = set"; then
3938 echo $ac_n "(cached) $ac_c" 1>&6
3941 cat > conftest.
$ac_ext <<EOF
3942 #line 3943 "configure"
3943 #include "confdefs.h"
3948 typedef struct {unsigned x;} FOOBAR;
3949 #define X_FOOBAR(x) ((FOOBAR) { x })
3950 #define FOO_ONE X_FOOBAR(1)
3960 if { (eval echo configure
:3961: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3962 samba_cv_immediate_structures
=yes
3964 echo "configure: failed program was:" >&5
3965 cat conftest.
$ac_ext >&5
3967 samba_cv_immediate_structures
=no
3972 echo "$ac_t""$samba_cv_immediate_structures" 1>&6
3973 if test x
"$samba_cv_immediate_structures" = x
"yes"; then
3974 cat >> confdefs.h
<<\EOF
3975 #define HAVE_IMMEDIATE_STRUCTURES 1
3980 ############################################
3981 # check for unix domain sockets
3982 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
3983 echo "configure:3984: checking for unix domain sockets" >&5
3984 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
3985 echo $ac_n "(cached) $ac_c" 1>&6
3988 cat > conftest.
$ac_ext <<EOF
3989 #line 3990 "configure"
3990 #include "confdefs.h"
3992 #include <sys/types.h>
3995 #include <sys/socket.h>
3999 struct sockaddr_un sunaddr;
4000 sunaddr.sun_family = AF_UNIX;
4004 if { (eval echo configure
:4005: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4006 samba_cv_unixsocket
=yes
4008 echo "configure: failed program was:" >&5
4009 cat conftest.
$ac_ext >&5
4011 samba_cv_unixsocket
=no
4016 echo "$ac_t""$samba_cv_unixsocket" 1>&6
4017 if test x
"$samba_cv_unixsocket" = x
"yes"; then
4018 cat >> confdefs.h
<<\EOF
4019 #define HAVE_UNIXSOCKET 1
4024 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
4025 echo "configure:4026: checking for socklen_t type" >&5
4026 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
4027 echo $ac_n "(cached) $ac_c" 1>&6
4030 cat > conftest.
$ac_ext <<EOF
4031 #line 4032 "configure"
4032 #include "confdefs.h"
4034 #include <sys/types.h>
4039 #include <sys/socket.h>
4044 if { (eval echo configure
:4045: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4046 samba_cv_socklen_t
=yes
4048 echo "configure: failed program was:" >&5
4049 cat conftest.
$ac_ext >&5
4051 samba_cv_socklen_t
=no
4056 echo "$ac_t""$samba_cv_socklen_t" 1>&6
4057 if test x
"$samba_cv_socklen_t" = x
"yes"; then
4058 cat >> confdefs.h
<<\EOF
4059 #define HAVE_SOCKLEN_T_TYPE 1
4064 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
4065 echo "configure:4066: checking for sig_atomic_t type" >&5
4066 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
4067 echo $ac_n "(cached) $ac_c" 1>&6
4070 cat > conftest.
$ac_ext <<EOF
4071 #line 4072 "configure"
4072 #include "confdefs.h"
4074 #include <sys/types.h>
4084 if { (eval echo configure
:4085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4086 samba_cv_sig_atomic_t
=yes
4088 echo "configure: failed program was:" >&5
4089 cat conftest.
$ac_ext >&5
4091 samba_cv_sig_atomic_t
=no
4096 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
4097 if test x
"$samba_cv_sig_atomic_t" = x
"yes"; then
4098 cat >> confdefs.h
<<\EOF
4099 #define HAVE_SIG_ATOMIC_T_TYPE 1
4104 # stupid headers have the functions but no declaration. grrrr.
4106 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
4107 echo "configure:4108: checking for errno declaration" >&5
4108 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
4109 echo $ac_n "(cached) $ac_c" 1>&6
4112 cat > conftest.
$ac_ext <<EOF
4113 #line 4114 "configure"
4114 #include "confdefs.h"
4120 if { (eval echo configure
:4121: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4122 ac_cv_have_errno_decl
=yes
4124 echo "configure: failed program was:" >&5
4125 cat conftest.
$ac_ext >&5
4127 ac_cv_have_errno_decl
=no
4132 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
4133 if test x
"$ac_cv_have_errno_decl" = x
"yes"; then
4134 cat >> confdefs.h
<<\EOF
4135 #define HAVE_ERRNO_DECL 1
4141 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
4142 echo "configure:4143: checking for setresuid declaration" >&5
4143 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
4144 echo $ac_n "(cached) $ac_c" 1>&6
4147 cat > conftest.
$ac_ext <<EOF
4148 #line 4149 "configure"
4149 #include "confdefs.h"
4152 int i = (int)setresuid
4155 if { (eval echo configure
:4156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4157 ac_cv_have_setresuid_decl
=yes
4159 echo "configure: failed program was:" >&5
4160 cat conftest.
$ac_ext >&5
4162 ac_cv_have_setresuid_decl
=no
4167 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
4168 if test x
"$ac_cv_have_setresuid_decl" = x
"yes"; then
4169 cat >> confdefs.h
<<\EOF
4170 #define HAVE_SETRESUID_DECL 1
4176 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
4177 echo "configure:4178: checking for setresgid declaration" >&5
4178 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
4179 echo $ac_n "(cached) $ac_c" 1>&6
4182 cat > conftest.
$ac_ext <<EOF
4183 #line 4184 "configure"
4184 #include "confdefs.h"
4187 int i = (int)setresgid
4190 if { (eval echo configure
:4191: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4192 ac_cv_have_setresgid_decl
=yes
4194 echo "configure: failed program was:" >&5
4195 cat conftest.
$ac_ext >&5
4197 ac_cv_have_setresgid_decl
=no
4202 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
4203 if test x
"$ac_cv_have_setresgid_decl" = x
"yes"; then
4204 cat >> confdefs.h
<<\EOF
4205 #define HAVE_SETRESGID_DECL 1
4211 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
4212 echo "configure:4213: checking for asprintf declaration" >&5
4213 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
4214 echo $ac_n "(cached) $ac_c" 1>&6
4217 cat > conftest.
$ac_ext <<EOF
4218 #line 4219 "configure"
4219 #include "confdefs.h"
4222 int i = (int)asprintf
4225 if { (eval echo configure
:4226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4227 ac_cv_have_asprintf_decl
=yes
4229 echo "configure: failed program was:" >&5
4230 cat conftest.
$ac_ext >&5
4232 ac_cv_have_asprintf_decl
=no
4237 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
4238 if test x
"$ac_cv_have_asprintf_decl" = x
"yes"; then
4239 cat >> confdefs.h
<<\EOF
4240 #define HAVE_ASPRINTF_DECL 1
4246 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
4247 echo "configure:4248: checking for vasprintf declaration" >&5
4248 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
4249 echo $ac_n "(cached) $ac_c" 1>&6
4252 cat > conftest.
$ac_ext <<EOF
4253 #line 4254 "configure"
4254 #include "confdefs.h"
4257 int i = (int)vasprintf
4260 if { (eval echo configure
:4261: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4262 ac_cv_have_vasprintf_decl
=yes
4264 echo "configure: failed program was:" >&5
4265 cat conftest.
$ac_ext >&5
4267 ac_cv_have_vasprintf_decl
=no
4272 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
4273 if test x
"$ac_cv_have_vasprintf_decl" = x
"yes"; then
4274 cat >> confdefs.h
<<\EOF
4275 #define HAVE_VASPRINTF_DECL 1
4281 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
4282 echo "configure:4283: checking for vsnprintf declaration" >&5
4283 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
4284 echo $ac_n "(cached) $ac_c" 1>&6
4287 cat > conftest.
$ac_ext <<EOF
4288 #line 4289 "configure"
4289 #include "confdefs.h"
4292 int i = (int)vsnprintf
4295 if { (eval echo configure
:4296: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4297 ac_cv_have_vsnprintf_decl
=yes
4299 echo "configure: failed program was:" >&5
4300 cat conftest.
$ac_ext >&5
4302 ac_cv_have_vsnprintf_decl
=no
4307 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
4308 if test x
"$ac_cv_have_vsnprintf_decl" = x
"yes"; then
4309 cat >> confdefs.h
<<\EOF
4310 #define HAVE_VSNPRINTF_DECL 1
4316 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
4317 echo "configure:4318: checking for snprintf declaration" >&5
4318 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
4319 echo $ac_n "(cached) $ac_c" 1>&6
4322 cat > conftest.
$ac_ext <<EOF
4323 #line 4324 "configure"
4324 #include "confdefs.h"
4327 int i = (int)snprintf
4330 if { (eval echo configure
:4331: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4332 ac_cv_have_snprintf_decl
=yes
4334 echo "configure: failed program was:" >&5
4335 cat conftest.
$ac_ext >&5
4337 ac_cv_have_snprintf_decl
=no
4342 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
4343 if test x
"$ac_cv_have_snprintf_decl" = x
"yes"; then
4344 cat >> confdefs.h
<<\EOF
4345 #define HAVE_SNPRINTF_DECL 1
4351 # and glibc has setresuid under linux but the function does
4352 # nothing until kernel 2.1.44! very dumb.
4353 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
4354 echo "configure:4355: checking for real setresuid" >&5
4355 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
4356 echo $ac_n "(cached) $ac_c" 1>&6
4359 if test "$cross_compiling" = yes; then
4360 samba_cv_have_setresuid
=cross
4362 cat > conftest.
$ac_ext <<EOF
4363 #line 4364 "configure"
4364 #include "confdefs.h"
4366 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4368 if { (eval echo configure
:4369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4370 samba_cv_have_setresuid
=yes
4372 echo "configure: failed program was:" >&5
4373 cat conftest.
$ac_ext >&5
4375 samba_cv_have_setresuid
=no
4382 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4383 if test x
"$samba_cv_have_setresuid" = x
"yes"; then
4384 cat >> confdefs.h
<<\EOF
4385 #define HAVE_SETRESUID 1
4390 # Do the same check for setresguid...
4392 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4393 echo "configure:4394: checking for real setresgid" >&5
4394 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4395 echo $ac_n "(cached) $ac_c" 1>&6
4398 if test "$cross_compiling" = yes; then
4399 samba_cv_have_setresgid
=cross
4401 cat > conftest.
$ac_ext <<EOF
4402 #line 4403 "configure"
4403 #include "confdefs.h"
4406 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4408 if { (eval echo configure
:4409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4410 samba_cv_have_setresgid
=yes
4412 echo "configure: failed program was:" >&5
4413 cat conftest.
$ac_ext >&5
4415 samba_cv_have_setresgid
=no
4422 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4423 if test x
"$samba_cv_have_setresgid" = x
"yes"; then
4424 cat >> confdefs.h
<<\EOF
4425 #define HAVE_SETRESGID 1
4430 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4431 echo "configure:4432: checking for 8-bit clean memcmp" >&5
4432 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4433 echo $ac_n "(cached) $ac_c" 1>&6
4435 if test "$cross_compiling" = yes; then
4436 ac_cv_func_memcmp_clean
=no
4438 cat > conftest.
$ac_ext <<EOF
4439 #line 4440 "configure"
4440 #include "confdefs.h"
4444 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4445 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4449 if { (eval echo configure
:4450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4451 ac_cv_func_memcmp_clean
=yes
4453 echo "configure: failed program was:" >&5
4454 cat conftest.
$ac_ext >&5
4456 ac_cv_func_memcmp_clean
=no
4463 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4464 test $ac_cv_func_memcmp_clean = no
&& LIBOBJS
="$LIBOBJS memcmp.${ac_objext}"
4467 ###############################################
4468 # Readline included by default unless explicitly asked not to
4469 test "${with_readline+set}" != "set" && with_readline
=yes
4471 # test for where we get readline() from
4472 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4473 echo "configure:4474: checking whether to use readline" >&5
4474 # Check whether --with-readline or --without-readline was given.
4475 if test "${with_readline+set}" = set; then
4476 withval
="$with_readline"
4477 case "$with_readline" in
4479 echo "$ac_t""yes" 1>&6
4481 for ac_hdr
in readline.h
history.h readline
/readline.h
4483 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4484 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4485 echo "configure:4486: checking for $ac_hdr" >&5
4486 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4487 echo $ac_n "(cached) $ac_c" 1>&6
4489 cat > conftest.
$ac_ext <<EOF
4490 #line 4491 "configure"
4491 #include "confdefs.h"
4494 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4495 { (eval echo configure
:4496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4496 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4497 if test -z "$ac_err"; then
4499 eval "ac_cv_header_$ac_safe=yes"
4502 echo "configure: failed program was:" >&5
4503 cat conftest.
$ac_ext >&5
4505 eval "ac_cv_header_$ac_safe=no"
4509 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4510 echo "$ac_t""yes" 1>&6
4511 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4512 cat >> confdefs.h
<<EOF
4513 #define $ac_tr_hdr 1
4517 echo "$ac_t""no" 1>&6
4521 for ac_hdr
in readline
/history.h
4523 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4524 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4525 echo "configure:4526: checking for $ac_hdr" >&5
4526 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4527 echo $ac_n "(cached) $ac_c" 1>&6
4529 cat > conftest.
$ac_ext <<EOF
4530 #line 4531 "configure"
4531 #include "confdefs.h"
4534 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4535 { (eval echo configure
:4536: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4536 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4537 if test -z "$ac_err"; then
4539 eval "ac_cv_header_$ac_safe=yes"
4542 echo "configure: failed program was:" >&5
4543 cat conftest.
$ac_ext >&5
4545 eval "ac_cv_header_$ac_safe=no"
4549 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4550 echo "$ac_t""yes" 1>&6
4551 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4552 cat >> confdefs.h
<<EOF
4553 #define $ac_tr_hdr 1
4557 echo "$ac_t""no" 1>&6
4562 for ac_hdr
in readline.h readline
/readline.h
4564 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4565 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4566 echo "configure:4567: checking for $ac_hdr" >&5
4567 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4568 echo $ac_n "(cached) $ac_c" 1>&6
4570 cat > conftest.
$ac_ext <<EOF
4571 #line 4572 "configure"
4572 #include "confdefs.h"
4575 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4576 { (eval echo configure
:4577: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4577 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4578 if test -z "$ac_err"; then
4580 eval "ac_cv_header_$ac_safe=yes"
4583 echo "configure: failed program was:" >&5
4584 cat conftest.
$ac_ext >&5
4586 eval "ac_cv_header_$ac_safe=no"
4590 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4591 echo "$ac_t""yes" 1>&6
4592 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4593 cat >> confdefs.h
<<EOF
4594 #define $ac_tr_hdr 1
4597 for termlib
in ncurses curses termcap terminfo termlib
; do
4598 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4599 echo "configure:4600: checking for tgetent in -l${termlib}" >&5
4600 ac_lib_var
=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4601 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4602 echo $ac_n "(cached) $ac_c" 1>&6
4604 ac_save_LIBS
="$LIBS"
4605 LIBS
="-l${termlib} $LIBS"
4606 cat > conftest.
$ac_ext <<EOF
4607 #line 4608 "configure"
4608 #include "confdefs.h"
4609 /* Override any gcc2 internal prototype to avoid an error. */
4610 /* We use char because int might match the return type of a gcc2
4611 builtin and then its argument prototype would still apply. */
4618 if { (eval echo configure
:4619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4620 eval "ac_cv_lib_$ac_lib_var=yes"
4622 echo "configure: failed program was:" >&5
4623 cat conftest.
$ac_ext >&5
4625 eval "ac_cv_lib_$ac_lib_var=no"
4628 LIBS
="$ac_save_LIBS"
4631 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4632 echo "$ac_t""yes" 1>&6
4633 TERMLIBS
="-l${termlib}"; break
4635 echo "$ac_t""no" 1>&6
4639 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4640 echo "configure:4641: checking for rl_callback_handler_install in -lreadline" >&5
4641 ac_lib_var
=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4642 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4643 echo $ac_n "(cached) $ac_c" 1>&6
4645 ac_save_LIBS
="$LIBS"
4646 LIBS
="-lreadline $TERMLIBS $LIBS"
4647 cat > conftest.
$ac_ext <<EOF
4648 #line 4649 "configure"
4649 #include "confdefs.h"
4650 /* Override any gcc2 internal prototype to avoid an error. */
4651 /* We use char because int might match the return type of a gcc2
4652 builtin and then its argument prototype would still apply. */
4653 char rl_callback_handler_install();
4656 rl_callback_handler_install()
4659 if { (eval echo configure
:4660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4661 eval "ac_cv_lib_$ac_lib_var=yes"
4663 echo "configure: failed program was:" >&5
4664 cat conftest.
$ac_ext >&5
4666 eval "ac_cv_lib_$ac_lib_var=no"
4669 LIBS
="$ac_save_LIBS"
4672 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4673 echo "$ac_t""yes" 1>&6
4674 TERMLIBS
="-lreadline $TERMLIBS"
4675 cat >> confdefs.h
<<\EOF
4676 #define HAVE_LIBREADLINE 1
4681 echo "$ac_t""no" 1>&6
4686 echo "$ac_t""no" 1>&6
4692 echo "$ac_t""no" 1>&6
4695 echo "$ac_t""yes" 1>&6
4697 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4698 # alternate readline path
4700 _cppflags
=${CPPFLAGS}
4702 # Add additional search path
4703 LDFLAGS
="-L$with_readline/lib $LDFLAGS"
4704 CPPFLAGS
="-I$with_readline/include $CPPFLAGS"
4706 for ac_hdr
in readline.h
history.h readline
/readline.h
4708 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4709 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4710 echo "configure:4711: checking for $ac_hdr" >&5
4711 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4712 echo $ac_n "(cached) $ac_c" 1>&6
4714 cat > conftest.
$ac_ext <<EOF
4715 #line 4716 "configure"
4716 #include "confdefs.h"
4719 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4720 { (eval echo configure
:4721: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4721 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4722 if test -z "$ac_err"; then
4724 eval "ac_cv_header_$ac_safe=yes"
4727 echo "configure: failed program was:" >&5
4728 cat conftest.
$ac_ext >&5
4730 eval "ac_cv_header_$ac_safe=no"
4734 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4735 echo "$ac_t""yes" 1>&6
4736 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4737 cat >> confdefs.h
<<EOF
4738 #define $ac_tr_hdr 1
4742 echo "$ac_t""no" 1>&6
4746 for ac_hdr
in readline
/history.h
4748 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4749 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4750 echo "configure:4751: checking for $ac_hdr" >&5
4751 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4752 echo $ac_n "(cached) $ac_c" 1>&6
4754 cat > conftest.
$ac_ext <<EOF
4755 #line 4756 "configure"
4756 #include "confdefs.h"
4759 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4760 { (eval echo configure
:4761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4761 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4762 if test -z "$ac_err"; then
4764 eval "ac_cv_header_$ac_safe=yes"
4767 echo "configure: failed program was:" >&5
4768 cat conftest.
$ac_ext >&5
4770 eval "ac_cv_header_$ac_safe=no"
4774 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4775 echo "$ac_t""yes" 1>&6
4776 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4777 cat >> confdefs.h
<<EOF
4778 #define $ac_tr_hdr 1
4782 echo "$ac_t""no" 1>&6
4787 for ac_hdr
in readline.h readline
/readline.h
4789 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4790 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4791 echo "configure:4792: checking for $ac_hdr" >&5
4792 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4793 echo $ac_n "(cached) $ac_c" 1>&6
4795 cat > conftest.
$ac_ext <<EOF
4796 #line 4797 "configure"
4797 #include "confdefs.h"
4800 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4801 { (eval echo configure
:4802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4802 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4803 if test -z "$ac_err"; then
4805 eval "ac_cv_header_$ac_safe=yes"
4808 echo "configure: failed program was:" >&5
4809 cat conftest.
$ac_ext >&5
4811 eval "ac_cv_header_$ac_safe=no"
4815 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4816 echo "$ac_t""yes" 1>&6
4817 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4818 cat >> confdefs.h
<<EOF
4819 #define $ac_tr_hdr 1
4822 for termlib
in ncurses curses termcap terminfo termlib
; do
4823 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4824 echo "configure:4825: checking for tgetent in -l${termlib}" >&5
4825 ac_lib_var
=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4826 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4827 echo $ac_n "(cached) $ac_c" 1>&6
4829 ac_save_LIBS
="$LIBS"
4830 LIBS
="-l${termlib} $LIBS"
4831 cat > conftest.
$ac_ext <<EOF
4832 #line 4833 "configure"
4833 #include "confdefs.h"
4834 /* Override any gcc2 internal prototype to avoid an error. */
4835 /* We use char because int might match the return type of a gcc2
4836 builtin and then its argument prototype would still apply. */
4843 if { (eval echo configure
:4844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4845 eval "ac_cv_lib_$ac_lib_var=yes"
4847 echo "configure: failed program was:" >&5
4848 cat conftest.
$ac_ext >&5
4850 eval "ac_cv_lib_$ac_lib_var=no"
4853 LIBS
="$ac_save_LIBS"
4856 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4857 echo "$ac_t""yes" 1>&6
4858 TERMLIBS
="-l${termlib}"; break
4860 echo "$ac_t""no" 1>&6
4864 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4865 echo "configure:4866: checking for rl_callback_handler_install in -lreadline" >&5
4866 ac_lib_var
=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4867 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4868 echo $ac_n "(cached) $ac_c" 1>&6
4870 ac_save_LIBS
="$LIBS"
4871 LIBS
="-lreadline $TERMLIBS $LIBS"
4872 cat > conftest.
$ac_ext <<EOF
4873 #line 4874 "configure"
4874 #include "confdefs.h"
4875 /* Override any gcc2 internal prototype to avoid an error. */
4876 /* We use char because int might match the return type of a gcc2
4877 builtin and then its argument prototype would still apply. */
4878 char rl_callback_handler_install();
4881 rl_callback_handler_install()
4884 if { (eval echo configure
:4885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4886 eval "ac_cv_lib_$ac_lib_var=yes"
4888 echo "configure: failed program was:" >&5
4889 cat conftest.
$ac_ext >&5
4891 eval "ac_cv_lib_$ac_lib_var=no"
4894 LIBS
="$ac_save_LIBS"
4897 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4898 echo "$ac_t""yes" 1>&6
4899 TERMLDFLAGS
="-L$with_readline/lib"
4900 TERMCPPFLAGS
="-I$with_readline/include"
4901 CPPFLAGS
="-I$with_readline/include $CPPFLAGS"
4902 TERMLIBS
="-lreadline $TERMLIBS"
4903 cat >> confdefs.h
<<\EOF
4904 #define HAVE_LIBREADLINE 1
4909 echo "$ac_t""no" 1>&6
4910 TERMLIBS
= CPPFLAGS
=$_cppflags
4914 echo "$ac_t""no" 1>&6
4923 echo "$ac_t""no" 1>&6
4930 # The following test taken from the cvs sources
4931 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4932 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4933 # libsocket.so which has a bad implementation of gethostbyname (it
4934 # only looks in /etc/hosts), so we only look for -lsocket if we need
4936 for ac_func
in connect
4938 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4939 echo "configure:4940: checking for $ac_func" >&5
4940 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4941 echo $ac_n "(cached) $ac_c" 1>&6
4943 cat > conftest.
$ac_ext <<EOF
4944 #line 4945 "configure"
4945 #include "confdefs.h"
4946 /* System header to define __stub macros and hopefully few prototypes,
4947 which can conflict with char $ac_func(); below. */
4949 /* Override any gcc2 internal prototype to avoid an error. */
4950 /* We use char because int might match the return type of a gcc2
4951 builtin and then its argument prototype would still apply. */
4956 /* The GNU C library defines this for functions which it implements
4957 to always fail with ENOSYS. Some functions are actually named
4958 something starting with __ and the normal name is an alias. */
4959 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4967 if { (eval echo configure
:4968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4969 eval "ac_cv_func_$ac_func=yes"
4971 echo "configure: failed program was:" >&5
4972 cat conftest.
$ac_ext >&5
4974 eval "ac_cv_func_$ac_func=no"
4979 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4980 echo "$ac_t""yes" 1>&6
4981 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4982 cat >> confdefs.h
<<EOF
4983 #define $ac_tr_func 1
4987 echo "$ac_t""no" 1>&6
4991 if test x
"$ac_cv_func_connect" = x
"no"; then
4994 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4995 echo "configure:4996: checking for printf in -lnsl_s" >&5
4996 ac_lib_var
=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4997 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4998 echo $ac_n "(cached) $ac_c" 1>&6
5000 ac_save_LIBS
="$LIBS"
5001 LIBS
="-lnsl_s $LIBS"
5002 cat > conftest.
$ac_ext <<EOF
5003 #line 5004 "configure"
5004 #include "confdefs.h"
5005 /* Override any gcc2 internal prototype to avoid an error. */
5006 /* We use char because int might match the return type of a gcc2
5007 builtin and then its argument prototype would still apply. */
5014 if { (eval echo configure
:5015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5016 eval "ac_cv_lib_$ac_lib_var=yes"
5018 echo "configure: failed program was:" >&5
5019 cat conftest.
$ac_ext >&5
5021 eval "ac_cv_lib_$ac_lib_var=no"
5024 LIBS
="$ac_save_LIBS"
5027 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5028 echo "$ac_t""yes" 1>&6
5029 ac_tr_lib
=HAVE_LIB
`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5030 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5031 cat >> confdefs.h
<<EOF
5032 #define $ac_tr_lib 1
5035 LIBS
="-lnsl_s $LIBS"
5038 echo "$ac_t""no" 1>&6
5044 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
5045 echo "configure:5046: checking for printf in -lnsl" >&5
5046 ac_lib_var
=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
5047 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5048 echo $ac_n "(cached) $ac_c" 1>&6
5050 ac_save_LIBS
="$LIBS"
5052 cat > conftest.
$ac_ext <<EOF
5053 #line 5054 "configure"
5054 #include "confdefs.h"
5055 /* Override any gcc2 internal prototype to avoid an error. */
5056 /* We use char because int might match the return type of a gcc2
5057 builtin and then its argument prototype would still apply. */
5064 if { (eval echo configure
:5065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5066 eval "ac_cv_lib_$ac_lib_var=yes"
5068 echo "configure: failed program was:" >&5
5069 cat conftest.
$ac_ext >&5
5071 eval "ac_cv_lib_$ac_lib_var=no"
5074 LIBS
="$ac_save_LIBS"
5077 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5078 echo "$ac_t""yes" 1>&6
5079 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5080 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5081 cat >> confdefs.h
<<EOF
5082 #define $ac_tr_lib 1
5088 echo "$ac_t""no" 1>&6
5094 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
5095 echo "configure:5096: checking for connect in -lsocket" >&5
5096 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5097 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5098 echo $ac_n "(cached) $ac_c" 1>&6
5100 ac_save_LIBS
="$LIBS"
5101 LIBS
="-lsocket $LIBS"
5102 cat > conftest.
$ac_ext <<EOF
5103 #line 5104 "configure"
5104 #include "confdefs.h"
5105 /* Override any gcc2 internal prototype to avoid an error. */
5106 /* We use char because int might match the return type of a gcc2
5107 builtin and then its argument prototype would still apply. */
5114 if { (eval echo configure
:5115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5116 eval "ac_cv_lib_$ac_lib_var=yes"
5118 echo "configure: failed program was:" >&5
5119 cat conftest.
$ac_ext >&5
5121 eval "ac_cv_lib_$ac_lib_var=no"
5124 LIBS
="$ac_save_LIBS"
5127 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5128 echo "$ac_t""yes" 1>&6
5129 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5130 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5131 cat >> confdefs.h
<<EOF
5132 #define $ac_tr_lib 1
5135 LIBS
="-lsocket $LIBS"
5138 echo "$ac_t""no" 1>&6
5144 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
5145 echo "configure:5146: checking for connect in -linet" >&5
5146 ac_lib_var
=`echo inet'_'connect | sed 'y%./+-%__p_%'`
5147 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5148 echo $ac_n "(cached) $ac_c" 1>&6
5150 ac_save_LIBS
="$LIBS"
5152 cat > conftest.
$ac_ext <<EOF
5153 #line 5154 "configure"
5154 #include "confdefs.h"
5155 /* Override any gcc2 internal prototype to avoid an error. */
5156 /* We use char because int might match the return type of a gcc2
5157 builtin and then its argument prototype would still apply. */
5164 if { (eval echo configure
:5165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5166 eval "ac_cv_lib_$ac_lib_var=yes"
5168 echo "configure: failed program was:" >&5
5169 cat conftest.
$ac_ext >&5
5171 eval "ac_cv_lib_$ac_lib_var=no"
5174 LIBS
="$ac_save_LIBS"
5177 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5178 echo "$ac_t""yes" 1>&6
5179 ac_tr_lib
=HAVE_LIB
`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5180 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5181 cat >> confdefs.h
<<EOF
5182 #define $ac_tr_lib 1
5188 echo "$ac_t""no" 1>&6
5192 if test x
"$ac_cv_lib_socket_connect" = x
"yes" ||
5193 test x
"$ac_cv_lib_inet_connect" = x
"yes"; then
5194 # ac_cv_func_connect=yes
5195 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
5196 cat >> confdefs.h
<<\EOF
5197 #define HAVE_CONNECT 1
5203 ###############################################
5204 # test for where we get get_yp_default_domain() from
5205 for ac_func
in yp_get_default_domain
5207 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5208 echo "configure:5209: checking for $ac_func" >&5
5209 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5210 echo $ac_n "(cached) $ac_c" 1>&6
5212 cat > conftest.
$ac_ext <<EOF
5213 #line 5214 "configure"
5214 #include "confdefs.h"
5215 /* System header to define __stub macros and hopefully few prototypes,
5216 which can conflict with char $ac_func(); below. */
5218 /* Override any gcc2 internal prototype to avoid an error. */
5219 /* We use char because int might match the return type of a gcc2
5220 builtin and then its argument prototype would still apply. */
5225 /* The GNU C library defines this for functions which it implements
5226 to always fail with ENOSYS. Some functions are actually named
5227 something starting with __ and the normal name is an alias. */
5228 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5236 if { (eval echo configure
:5237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5238 eval "ac_cv_func_$ac_func=yes"
5240 echo "configure: failed program was:" >&5
5241 cat conftest.
$ac_ext >&5
5243 eval "ac_cv_func_$ac_func=no"
5248 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5249 echo "$ac_t""yes" 1>&6
5250 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5251 cat >> confdefs.h
<<EOF
5252 #define $ac_tr_func 1
5256 echo "$ac_t""no" 1>&6
5260 if test x
"$ac_cv_func_yp_get_default_domain" = x
"no"; then
5261 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
5262 echo "configure:5263: checking for yp_get_default_domain in -lnsl" >&5
5263 ac_lib_var
=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
5264 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5265 echo $ac_n "(cached) $ac_c" 1>&6
5267 ac_save_LIBS
="$LIBS"
5269 cat > conftest.
$ac_ext <<EOF
5270 #line 5271 "configure"
5271 #include "confdefs.h"
5272 /* Override any gcc2 internal prototype to avoid an error. */
5273 /* We use char because int might match the return type of a gcc2
5274 builtin and then its argument prototype would still apply. */
5275 char yp_get_default_domain();
5278 yp_get_default_domain()
5281 if { (eval echo configure
:5282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5283 eval "ac_cv_lib_$ac_lib_var=yes"
5285 echo "configure: failed program was:" >&5
5286 cat conftest.
$ac_ext >&5
5288 eval "ac_cv_lib_$ac_lib_var=no"
5291 LIBS
="$ac_save_LIBS"
5294 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5295 echo "$ac_t""yes" 1>&6
5297 cat >> confdefs.h
<<\EOF
5298 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
5302 echo "$ac_t""no" 1>&6
5307 # Check if we have execl, if not we need to compile smbrun.
5308 for ac_func
in execl
5310 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5311 echo "configure:5312: checking for $ac_func" >&5
5312 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5313 echo $ac_n "(cached) $ac_c" 1>&6
5315 cat > conftest.
$ac_ext <<EOF
5316 #line 5317 "configure"
5317 #include "confdefs.h"
5318 /* System header to define __stub macros and hopefully few prototypes,
5319 which can conflict with char $ac_func(); below. */
5321 /* Override any gcc2 internal prototype to avoid an error. */
5322 /* We use char because int might match the return type of a gcc2
5323 builtin and then its argument prototype would still apply. */
5328 /* The GNU C library defines this for functions which it implements
5329 to always fail with ENOSYS. Some functions are actually named
5330 something starting with __ and the normal name is an alias. */
5331 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5339 if { (eval echo configure
:5340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5341 eval "ac_cv_func_$ac_func=yes"
5343 echo "configure: failed program was:" >&5
5344 cat conftest.
$ac_ext >&5
5346 eval "ac_cv_func_$ac_func=no"
5351 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5352 echo "$ac_t""yes" 1>&6
5353 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5354 cat >> confdefs.h
<<EOF
5355 #define $ac_tr_func 1
5359 echo "$ac_t""no" 1>&6
5363 if test x
"$ac_cv_func_execl" = x
"no"; then
5364 RUNPROG
="bin/smbrun"
5369 for ac_func
in dlopen dlclose dlsym dlerror waitpid getcwd strdup strndup strnlen strtoul strerror chown fchown
chmod fchmod chroot link
5371 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5372 echo "configure:5373: checking for $ac_func" >&5
5373 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5374 echo $ac_n "(cached) $ac_c" 1>&6
5376 cat > conftest.
$ac_ext <<EOF
5377 #line 5378 "configure"
5378 #include "confdefs.h"
5379 /* System header to define __stub macros and hopefully few prototypes,
5380 which can conflict with char $ac_func(); below. */
5382 /* Override any gcc2 internal prototype to avoid an error. */
5383 /* We use char because int might match the return type of a gcc2
5384 builtin and then its argument prototype would still apply. */
5389 /* The GNU C library defines this for functions which it implements
5390 to always fail with ENOSYS. Some functions are actually named
5391 something starting with __ and the normal name is an alias. */
5392 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5400 if { (eval echo configure
:5401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5402 eval "ac_cv_func_$ac_func=yes"
5404 echo "configure: failed program was:" >&5
5405 cat conftest.
$ac_ext >&5
5407 eval "ac_cv_func_$ac_func=no"
5412 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5413 echo "$ac_t""yes" 1>&6
5414 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5415 cat >> confdefs.h
<<EOF
5416 #define $ac_tr_func 1
5420 echo "$ac_t""no" 1>&6
5424 for ac_func
in fstat strchr utime utimes getrlimit fsync bzero memset strlcpy strlcat setpgid mknod mknod64
5426 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5427 echo "configure:5428: checking for $ac_func" >&5
5428 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5429 echo $ac_n "(cached) $ac_c" 1>&6
5431 cat > conftest.
$ac_ext <<EOF
5432 #line 5433 "configure"
5433 #include "confdefs.h"
5434 /* System header to define __stub macros and hopefully few prototypes,
5435 which can conflict with char $ac_func(); below. */
5437 /* Override any gcc2 internal prototype to avoid an error. */
5438 /* We use char because int might match the return type of a gcc2
5439 builtin and then its argument prototype would still apply. */
5444 /* The GNU C library defines this for functions which it implements
5445 to always fail with ENOSYS. Some functions are actually named
5446 something starting with __ and the normal name is an alias. */
5447 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5455 if { (eval echo configure
:5456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5457 eval "ac_cv_func_$ac_func=yes"
5459 echo "configure: failed program was:" >&5
5460 cat conftest.
$ac_ext >&5
5462 eval "ac_cv_func_$ac_func=no"
5467 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5468 echo "$ac_t""yes" 1>&6
5469 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5470 cat >> confdefs.h
<<EOF
5471 #define $ac_tr_func 1
5475 echo "$ac_t""no" 1>&6
5479 for ac_func
in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5481 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5482 echo "configure:5483: checking for $ac_func" >&5
5483 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5484 echo $ac_n "(cached) $ac_c" 1>&6
5486 cat > conftest.
$ac_ext <<EOF
5487 #line 5488 "configure"
5488 #include "confdefs.h"
5489 /* System header to define __stub macros and hopefully few prototypes,
5490 which can conflict with char $ac_func(); below. */
5492 /* Override any gcc2 internal prototype to avoid an error. */
5493 /* We use char because int might match the return type of a gcc2
5494 builtin and then its argument prototype would still apply. */
5499 /* The GNU C library defines this for functions which it implements
5500 to always fail with ENOSYS. Some functions are actually named
5501 something starting with __ and the normal name is an alias. */
5502 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5510 if { (eval echo configure
:5511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5512 eval "ac_cv_func_$ac_func=yes"
5514 echo "configure: failed program was:" >&5
5515 cat conftest.
$ac_ext >&5
5517 eval "ac_cv_func_$ac_func=no"
5522 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5523 echo "$ac_t""yes" 1>&6
5524 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5525 cat >> confdefs.h
<<EOF
5526 #define $ac_tr_func 1
5530 echo "$ac_t""no" 1>&6
5534 for ac_func
in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
5536 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5537 echo "configure:5538: checking for $ac_func" >&5
5538 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5539 echo $ac_n "(cached) $ac_c" 1>&6
5541 cat > conftest.
$ac_ext <<EOF
5542 #line 5543 "configure"
5543 #include "confdefs.h"
5544 /* System header to define __stub macros and hopefully few prototypes,
5545 which can conflict with char $ac_func(); below. */
5547 /* Override any gcc2 internal prototype to avoid an error. */
5548 /* We use char because int might match the return type of a gcc2
5549 builtin and then its argument prototype would still apply. */
5554 /* The GNU C library defines this for functions which it implements
5555 to always fail with ENOSYS. Some functions are actually named
5556 something starting with __ and the normal name is an alias. */
5557 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5565 if { (eval echo configure
:5566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5567 eval "ac_cv_func_$ac_func=yes"
5569 echo "configure: failed program was:" >&5
5570 cat conftest.
$ac_ext >&5
5572 eval "ac_cv_func_$ac_func=no"
5577 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5578 echo "$ac_t""yes" 1>&6
5579 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5580 cat >> confdefs.h
<<EOF
5581 #define $ac_tr_func 1
5585 echo "$ac_t""no" 1>&6
5589 for ac_func
in initgroups
select poll rdchk getgrnam getgrent pathconf realpath
5591 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5592 echo "configure:5593: checking for $ac_func" >&5
5593 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5594 echo $ac_n "(cached) $ac_c" 1>&6
5596 cat > conftest.
$ac_ext <<EOF
5597 #line 5598 "configure"
5598 #include "confdefs.h"
5599 /* System header to define __stub macros and hopefully few prototypes,
5600 which can conflict with char $ac_func(); below. */
5602 /* Override any gcc2 internal prototype to avoid an error. */
5603 /* We use char because int might match the return type of a gcc2
5604 builtin and then its argument prototype would still apply. */
5609 /* The GNU C library defines this for functions which it implements
5610 to always fail with ENOSYS. Some functions are actually named
5611 something starting with __ and the normal name is an alias. */
5612 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5620 if { (eval echo configure
:5621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5622 eval "ac_cv_func_$ac_func=yes"
5624 echo "configure: failed program was:" >&5
5625 cat conftest.
$ac_ext >&5
5627 eval "ac_cv_func_$ac_func=no"
5632 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5633 echo "$ac_t""yes" 1>&6
5634 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5635 cat >> confdefs.h
<<EOF
5636 #define $ac_tr_func 1
5640 echo "$ac_t""no" 1>&6
5644 for ac_func
in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5646 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5647 echo "configure:5648: checking for $ac_func" >&5
5648 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5649 echo $ac_n "(cached) $ac_c" 1>&6
5651 cat > conftest.
$ac_ext <<EOF
5652 #line 5653 "configure"
5653 #include "confdefs.h"
5654 /* System header to define __stub macros and hopefully few prototypes,
5655 which can conflict with char $ac_func(); below. */
5657 /* Override any gcc2 internal prototype to avoid an error. */
5658 /* We use char because int might match the return type of a gcc2
5659 builtin and then its argument prototype would still apply. */
5664 /* The GNU C library defines this for functions which it implements
5665 to always fail with ENOSYS. Some functions are actually named
5666 something starting with __ and the normal name is an alias. */
5667 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5675 if { (eval echo configure
:5676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5677 eval "ac_cv_func_$ac_func=yes"
5679 echo "configure: failed program was:" >&5
5680 cat conftest.
$ac_ext >&5
5682 eval "ac_cv_func_$ac_func=no"
5687 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5688 echo "$ac_t""yes" 1>&6
5689 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5690 cat >> confdefs.h
<<EOF
5691 #define $ac_tr_func 1
5695 echo "$ac_t""no" 1>&6
5699 for ac_func
in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5701 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5702 echo "configure:5703: checking for $ac_func" >&5
5703 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5704 echo $ac_n "(cached) $ac_c" 1>&6
5706 cat > conftest.
$ac_ext <<EOF
5707 #line 5708 "configure"
5708 #include "confdefs.h"
5709 /* System header to define __stub macros and hopefully few prototypes,
5710 which can conflict with char $ac_func(); below. */
5712 /* Override any gcc2 internal prototype to avoid an error. */
5713 /* We use char because int might match the return type of a gcc2
5714 builtin and then its argument prototype would still apply. */
5719 /* The GNU C library defines this for functions which it implements
5720 to always fail with ENOSYS. Some functions are actually named
5721 something starting with __ and the normal name is an alias. */
5722 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5730 if { (eval echo configure
:5731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5732 eval "ac_cv_func_$ac_func=yes"
5734 echo "configure: failed program was:" >&5
5735 cat conftest.
$ac_ext >&5
5737 eval "ac_cv_func_$ac_func=no"
5742 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5743 echo "$ac_t""yes" 1>&6
5744 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5745 cat >> confdefs.h
<<EOF
5746 #define $ac_tr_func 1
5750 echo "$ac_t""no" 1>&6
5754 for ac_func
in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5756 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5757 echo "configure:5758: checking for $ac_func" >&5
5758 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5759 echo $ac_n "(cached) $ac_c" 1>&6
5761 cat > conftest.
$ac_ext <<EOF
5762 #line 5763 "configure"
5763 #include "confdefs.h"
5764 /* System header to define __stub macros and hopefully few prototypes,
5765 which can conflict with char $ac_func(); below. */
5767 /* Override any gcc2 internal prototype to avoid an error. */
5768 /* We use char because int might match the return type of a gcc2
5769 builtin and then its argument prototype would still apply. */
5774 /* The GNU C library defines this for functions which it implements
5775 to always fail with ENOSYS. Some functions are actually named
5776 something starting with __ and the normal name is an alias. */
5777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5785 if { (eval echo configure
:5786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5787 eval "ac_cv_func_$ac_func=yes"
5789 echo "configure: failed program was:" >&5
5790 cat conftest.
$ac_ext >&5
5792 eval "ac_cv_func_$ac_func=no"
5797 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5798 echo "$ac_t""yes" 1>&6
5799 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5800 cat >> confdefs.h
<<EOF
5801 #define $ac_tr_func 1
5805 echo "$ac_t""no" 1>&6
5809 for ac_func
in srandom random srand rand setenv
usleep strcasecmp fcvt fcvtl symlink readlink
5811 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5812 echo "configure:5813: checking for $ac_func" >&5
5813 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5814 echo $ac_n "(cached) $ac_c" 1>&6
5816 cat > conftest.
$ac_ext <<EOF
5817 #line 5818 "configure"
5818 #include "confdefs.h"
5819 /* System header to define __stub macros and hopefully few prototypes,
5820 which can conflict with char $ac_func(); below. */
5822 /* Override any gcc2 internal prototype to avoid an error. */
5823 /* We use char because int might match the return type of a gcc2
5824 builtin and then its argument prototype would still apply. */
5829 /* The GNU C library defines this for functions which it implements
5830 to always fail with ENOSYS. Some functions are actually named
5831 something starting with __ and the normal name is an alias. */
5832 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5840 if { (eval echo configure
:5841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5842 eval "ac_cv_func_$ac_func=yes"
5844 echo "configure: failed program was:" >&5
5845 cat conftest.
$ac_ext >&5
5847 eval "ac_cv_func_$ac_func=no"
5852 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5853 echo "$ac_t""yes" 1>&6
5854 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5855 cat >> confdefs.h
<<EOF
5856 #define $ac_tr_func 1
5860 echo "$ac_t""no" 1>&6
5864 for ac_func
in syslog vsyslog
5866 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5867 echo "configure:5868: checking for $ac_func" >&5
5868 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5869 echo $ac_n "(cached) $ac_c" 1>&6
5871 cat > conftest.
$ac_ext <<EOF
5872 #line 5873 "configure"
5873 #include "confdefs.h"
5874 /* System header to define __stub macros and hopefully few prototypes,
5875 which can conflict with char $ac_func(); below. */
5877 /* Override any gcc2 internal prototype to avoid an error. */
5878 /* We use char because int might match the return type of a gcc2
5879 builtin and then its argument prototype would still apply. */
5884 /* The GNU C library defines this for functions which it implements
5885 to always fail with ENOSYS. Some functions are actually named
5886 something starting with __ and the normal name is an alias. */
5887 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5895 if { (eval echo configure
:5896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5897 eval "ac_cv_func_$ac_func=yes"
5899 echo "configure: failed program was:" >&5
5900 cat conftest.
$ac_ext >&5
5902 eval "ac_cv_func_$ac_func=no"
5907 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5908 echo "$ac_t""yes" 1>&6
5909 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5910 cat >> confdefs.h
<<EOF
5911 #define $ac_tr_func 1
5915 echo "$ac_t""no" 1>&6
5920 # syscall() is needed for smbwrapper.
5921 for ac_func
in syscall
5923 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5924 echo "configure:5925: checking for $ac_func" >&5
5925 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5926 echo $ac_n "(cached) $ac_c" 1>&6
5928 cat > conftest.
$ac_ext <<EOF
5929 #line 5930 "configure"
5930 #include "confdefs.h"
5931 /* System header to define __stub macros and hopefully few prototypes,
5932 which can conflict with char $ac_func(); below. */
5934 /* Override any gcc2 internal prototype to avoid an error. */
5935 /* We use char because int might match the return type of a gcc2
5936 builtin and then its argument prototype would still apply. */
5941 /* The GNU C library defines this for functions which it implements
5942 to always fail with ENOSYS. Some functions are actually named
5943 something starting with __ and the normal name is an alias. */
5944 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5952 if { (eval echo configure
:5953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5954 eval "ac_cv_func_$ac_func=yes"
5956 echo "configure: failed program was:" >&5
5957 cat conftest.
$ac_ext >&5
5959 eval "ac_cv_func_$ac_func=no"
5964 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5965 echo "$ac_t""yes" 1>&6
5966 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5967 cat >> confdefs.h
<<EOF
5968 #define $ac_tr_func 1
5972 echo "$ac_t""no" 1>&6
5977 for ac_func
in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5979 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5980 echo "configure:5981: checking for $ac_func" >&5
5981 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5982 echo $ac_n "(cached) $ac_c" 1>&6
5984 cat > conftest.
$ac_ext <<EOF
5985 #line 5986 "configure"
5986 #include "confdefs.h"
5987 /* System header to define __stub macros and hopefully few prototypes,
5988 which can conflict with char $ac_func(); below. */
5990 /* Override any gcc2 internal prototype to avoid an error. */
5991 /* We use char because int might match the return type of a gcc2
5992 builtin and then its argument prototype would still apply. */
5997 /* The GNU C library defines this for functions which it implements
5998 to always fail with ENOSYS. Some functions are actually named
5999 something starting with __ and the normal name is an alias. */
6000 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6008 if { (eval echo configure
:6009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6010 eval "ac_cv_func_$ac_func=yes"
6012 echo "configure: failed program was:" >&5
6013 cat conftest.
$ac_ext >&5
6015 eval "ac_cv_func_$ac_func=no"
6020 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6021 echo "$ac_t""yes" 1>&6
6022 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6023 cat >> confdefs.h
<<EOF
6024 #define $ac_tr_func 1
6028 echo "$ac_t""no" 1>&6
6032 for ac_func
in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
6034 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6035 echo "configure:6036: checking for $ac_func" >&5
6036 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6037 echo $ac_n "(cached) $ac_c" 1>&6
6039 cat > conftest.
$ac_ext <<EOF
6040 #line 6041 "configure"
6041 #include "confdefs.h"
6042 /* System header to define __stub macros and hopefully few prototypes,
6043 which can conflict with char $ac_func(); below. */
6045 /* Override any gcc2 internal prototype to avoid an error. */
6046 /* We use char because int might match the return type of a gcc2
6047 builtin and then its argument prototype would still apply. */
6052 /* The GNU C library defines this for functions which it implements
6053 to always fail with ENOSYS. Some functions are actually named
6054 something starting with __ and the normal name is an alias. */
6055 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6063 if { (eval echo configure
:6064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6065 eval "ac_cv_func_$ac_func=yes"
6067 echo "configure: failed program was:" >&5
6068 cat conftest.
$ac_ext >&5
6070 eval "ac_cv_func_$ac_func=no"
6075 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6076 echo "$ac_t""yes" 1>&6
6077 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6078 cat >> confdefs.h
<<EOF
6079 #define $ac_tr_func 1
6083 echo "$ac_t""no" 1>&6
6087 for ac_func
in __getcwd _getcwd
6089 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6090 echo "configure:6091: checking for $ac_func" >&5
6091 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6092 echo $ac_n "(cached) $ac_c" 1>&6
6094 cat > conftest.
$ac_ext <<EOF
6095 #line 6096 "configure"
6096 #include "confdefs.h"
6097 /* System header to define __stub macros and hopefully few prototypes,
6098 which can conflict with char $ac_func(); below. */
6100 /* Override any gcc2 internal prototype to avoid an error. */
6101 /* We use char because int might match the return type of a gcc2
6102 builtin and then its argument prototype would still apply. */
6107 /* The GNU C library defines this for functions which it implements
6108 to always fail with ENOSYS. Some functions are actually named
6109 something starting with __ and the normal name is an alias. */
6110 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6118 if { (eval echo configure
:6119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6120 eval "ac_cv_func_$ac_func=yes"
6122 echo "configure: failed program was:" >&5
6123 cat conftest.
$ac_ext >&5
6125 eval "ac_cv_func_$ac_func=no"
6130 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6131 echo "$ac_t""yes" 1>&6
6132 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6133 cat >> confdefs.h
<<EOF
6134 #define $ac_tr_func 1
6138 echo "$ac_t""no" 1>&6
6142 for ac_func
in __xstat __fxstat __lxstat
6144 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6145 echo "configure:6146: checking for $ac_func" >&5
6146 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6147 echo $ac_n "(cached) $ac_c" 1>&6
6149 cat > conftest.
$ac_ext <<EOF
6150 #line 6151 "configure"
6151 #include "confdefs.h"
6152 /* System header to define __stub macros and hopefully few prototypes,
6153 which can conflict with char $ac_func(); below. */
6155 /* Override any gcc2 internal prototype to avoid an error. */
6156 /* We use char because int might match the return type of a gcc2
6157 builtin and then its argument prototype would still apply. */
6162 /* The GNU C library defines this for functions which it implements
6163 to always fail with ENOSYS. Some functions are actually named
6164 something starting with __ and the normal name is an alias. */
6165 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6173 if { (eval echo configure
:6174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6175 eval "ac_cv_func_$ac_func=yes"
6177 echo "configure: failed program was:" >&5
6178 cat conftest.
$ac_ext >&5
6180 eval "ac_cv_func_$ac_func=no"
6185 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6186 echo "$ac_t""yes" 1>&6
6187 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6188 cat >> confdefs.h
<<EOF
6189 #define $ac_tr_func 1
6193 echo "$ac_t""no" 1>&6
6197 for ac_func
in _stat _lstat _fstat __stat __lstat __fstat
6199 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6200 echo "configure:6201: checking for $ac_func" >&5
6201 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6202 echo $ac_n "(cached) $ac_c" 1>&6
6204 cat > conftest.
$ac_ext <<EOF
6205 #line 6206 "configure"
6206 #include "confdefs.h"
6207 /* System header to define __stub macros and hopefully few prototypes,
6208 which can conflict with char $ac_func(); below. */
6210 /* Override any gcc2 internal prototype to avoid an error. */
6211 /* We use char because int might match the return type of a gcc2
6212 builtin and then its argument prototype would still apply. */
6217 /* The GNU C library defines this for functions which it implements
6218 to always fail with ENOSYS. Some functions are actually named
6219 something starting with __ and the normal name is an alias. */
6220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6228 if { (eval echo configure
:6229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6230 eval "ac_cv_func_$ac_func=yes"
6232 echo "configure: failed program was:" >&5
6233 cat conftest.
$ac_ext >&5
6235 eval "ac_cv_func_$ac_func=no"
6240 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6241 echo "$ac_t""yes" 1>&6
6242 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6243 cat >> confdefs.h
<<EOF
6244 #define $ac_tr_func 1
6248 echo "$ac_t""no" 1>&6
6252 for ac_func
in _acl __acl _facl __facl _open __open _chdir __chdir
6254 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6255 echo "configure:6256: checking for $ac_func" >&5
6256 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6257 echo $ac_n "(cached) $ac_c" 1>&6
6259 cat > conftest.
$ac_ext <<EOF
6260 #line 6261 "configure"
6261 #include "confdefs.h"
6262 /* System header to define __stub macros and hopefully few prototypes,
6263 which can conflict with char $ac_func(); below. */
6265 /* Override any gcc2 internal prototype to avoid an error. */
6266 /* We use char because int might match the return type of a gcc2
6267 builtin and then its argument prototype would still apply. */
6272 /* The GNU C library defines this for functions which it implements
6273 to always fail with ENOSYS. Some functions are actually named
6274 something starting with __ and the normal name is an alias. */
6275 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6283 if { (eval echo configure
:6284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6285 eval "ac_cv_func_$ac_func=yes"
6287 echo "configure: failed program was:" >&5
6288 cat conftest.
$ac_ext >&5
6290 eval "ac_cv_func_$ac_func=no"
6295 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6296 echo "$ac_t""yes" 1>&6
6297 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6298 cat >> confdefs.h
<<EOF
6299 #define $ac_tr_func 1
6303 echo "$ac_t""no" 1>&6
6307 for ac_func
in _close __close _fchdir __fchdir _fcntl __fcntl
6309 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6310 echo "configure:6311: checking for $ac_func" >&5
6311 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6312 echo $ac_n "(cached) $ac_c" 1>&6
6314 cat > conftest.
$ac_ext <<EOF
6315 #line 6316 "configure"
6316 #include "confdefs.h"
6317 /* System header to define __stub macros and hopefully few prototypes,
6318 which can conflict with char $ac_func(); below. */
6320 /* Override any gcc2 internal prototype to avoid an error. */
6321 /* We use char because int might match the return type of a gcc2
6322 builtin and then its argument prototype would still apply. */
6327 /* The GNU C library defines this for functions which it implements
6328 to always fail with ENOSYS. Some functions are actually named
6329 something starting with __ and the normal name is an alias. */
6330 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6338 if { (eval echo configure
:6339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6340 eval "ac_cv_func_$ac_func=yes"
6342 echo "configure: failed program was:" >&5
6343 cat conftest.
$ac_ext >&5
6345 eval "ac_cv_func_$ac_func=no"
6350 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6351 echo "$ac_t""yes" 1>&6
6352 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6353 cat >> confdefs.h
<<EOF
6354 #define $ac_tr_func 1
6358 echo "$ac_t""no" 1>&6
6362 for ac_func
in getdents _getdents __getdents _lseek __lseek _read __read
6364 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6365 echo "configure:6366: checking for $ac_func" >&5
6366 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6367 echo $ac_n "(cached) $ac_c" 1>&6
6369 cat > conftest.
$ac_ext <<EOF
6370 #line 6371 "configure"
6371 #include "confdefs.h"
6372 /* System header to define __stub macros and hopefully few prototypes,
6373 which can conflict with char $ac_func(); below. */
6375 /* Override any gcc2 internal prototype to avoid an error. */
6376 /* We use char because int might match the return type of a gcc2
6377 builtin and then its argument prototype would still apply. */
6382 /* The GNU C library defines this for functions which it implements
6383 to always fail with ENOSYS. Some functions are actually named
6384 something starting with __ and the normal name is an alias. */
6385 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6393 if { (eval echo configure
:6394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6395 eval "ac_cv_func_$ac_func=yes"
6397 echo "configure: failed program was:" >&5
6398 cat conftest.
$ac_ext >&5
6400 eval "ac_cv_func_$ac_func=no"
6405 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6406 echo "$ac_t""yes" 1>&6
6407 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6408 cat >> confdefs.h
<<EOF
6409 #define $ac_tr_func 1
6413 echo "$ac_t""no" 1>&6
6417 for ac_func
in _write __write _fork __fork
6419 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6420 echo "configure:6421: checking for $ac_func" >&5
6421 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6422 echo $ac_n "(cached) $ac_c" 1>&6
6424 cat > conftest.
$ac_ext <<EOF
6425 #line 6426 "configure"
6426 #include "confdefs.h"
6427 /* System header to define __stub macros and hopefully few prototypes,
6428 which can conflict with char $ac_func(); below. */
6430 /* Override any gcc2 internal prototype to avoid an error. */
6431 /* We use char because int might match the return type of a gcc2
6432 builtin and then its argument prototype would still apply. */
6437 /* The GNU C library defines this for functions which it implements
6438 to always fail with ENOSYS. Some functions are actually named
6439 something starting with __ and the normal name is an alias. */
6440 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6448 if { (eval echo configure
:6449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6450 eval "ac_cv_func_$ac_func=yes"
6452 echo "configure: failed program was:" >&5
6453 cat conftest.
$ac_ext >&5
6455 eval "ac_cv_func_$ac_func=no"
6460 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6461 echo "$ac_t""yes" 1>&6
6462 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6463 cat >> confdefs.h
<<EOF
6464 #define $ac_tr_func 1
6468 echo "$ac_t""no" 1>&6
6472 for ac_func
in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6474 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6475 echo "configure:6476: checking for $ac_func" >&5
6476 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6477 echo $ac_n "(cached) $ac_c" 1>&6
6479 cat > conftest.
$ac_ext <<EOF
6480 #line 6481 "configure"
6481 #include "confdefs.h"
6482 /* System header to define __stub macros and hopefully few prototypes,
6483 which can conflict with char $ac_func(); below. */
6485 /* Override any gcc2 internal prototype to avoid an error. */
6486 /* We use char because int might match the return type of a gcc2
6487 builtin and then its argument prototype would still apply. */
6492 /* The GNU C library defines this for functions which it implements
6493 to always fail with ENOSYS. Some functions are actually named
6494 something starting with __ and the normal name is an alias. */
6495 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6503 if { (eval echo configure
:6504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6505 eval "ac_cv_func_$ac_func=yes"
6507 echo "configure: failed program was:" >&5
6508 cat conftest.
$ac_ext >&5
6510 eval "ac_cv_func_$ac_func=no"
6515 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6516 echo "$ac_t""yes" 1>&6
6517 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6518 cat >> confdefs.h
<<EOF
6519 #define $ac_tr_func 1
6523 echo "$ac_t""no" 1>&6
6527 for ac_func
in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6529 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6530 echo "configure:6531: checking for $ac_func" >&5
6531 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6532 echo $ac_n "(cached) $ac_c" 1>&6
6534 cat > conftest.
$ac_ext <<EOF
6535 #line 6536 "configure"
6536 #include "confdefs.h"
6537 /* System header to define __stub macros and hopefully few prototypes,
6538 which can conflict with char $ac_func(); below. */
6540 /* Override any gcc2 internal prototype to avoid an error. */
6541 /* We use char because int might match the return type of a gcc2
6542 builtin and then its argument prototype would still apply. */
6547 /* The GNU C library defines this for functions which it implements
6548 to always fail with ENOSYS. Some functions are actually named
6549 something starting with __ and the normal name is an alias. */
6550 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6558 if { (eval echo configure
:6559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6560 eval "ac_cv_func_$ac_func=yes"
6562 echo "configure: failed program was:" >&5
6563 cat conftest.
$ac_ext >&5
6565 eval "ac_cv_func_$ac_func=no"
6570 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6571 echo "$ac_t""yes" 1>&6
6572 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6573 cat >> confdefs.h
<<EOF
6574 #define $ac_tr_func 1
6578 echo "$ac_t""no" 1>&6
6582 for ac_func
in pread _pread __pread pread64 _pread64 __pread64
6584 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6585 echo "configure:6586: checking for $ac_func" >&5
6586 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6587 echo $ac_n "(cached) $ac_c" 1>&6
6589 cat > conftest.
$ac_ext <<EOF
6590 #line 6591 "configure"
6591 #include "confdefs.h"
6592 /* System header to define __stub macros and hopefully few prototypes,
6593 which can conflict with char $ac_func(); below. */
6595 /* Override any gcc2 internal prototype to avoid an error. */
6596 /* We use char because int might match the return type of a gcc2
6597 builtin and then its argument prototype would still apply. */
6602 /* The GNU C library defines this for functions which it implements
6603 to always fail with ENOSYS. Some functions are actually named
6604 something starting with __ and the normal name is an alias. */
6605 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6613 if { (eval echo configure
:6614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6615 eval "ac_cv_func_$ac_func=yes"
6617 echo "configure: failed program was:" >&5
6618 cat conftest.
$ac_ext >&5
6620 eval "ac_cv_func_$ac_func=no"
6625 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6626 echo "$ac_t""yes" 1>&6
6627 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6628 cat >> confdefs.h
<<EOF
6629 #define $ac_tr_func 1
6633 echo "$ac_t""no" 1>&6
6637 for ac_func
in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6639 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6640 echo "configure:6641: checking for $ac_func" >&5
6641 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6642 echo $ac_n "(cached) $ac_c" 1>&6
6644 cat > conftest.
$ac_ext <<EOF
6645 #line 6646 "configure"
6646 #include "confdefs.h"
6647 /* System header to define __stub macros and hopefully few prototypes,
6648 which can conflict with char $ac_func(); below. */
6650 /* Override any gcc2 internal prototype to avoid an error. */
6651 /* We use char because int might match the return type of a gcc2
6652 builtin and then its argument prototype would still apply. */
6657 /* The GNU C library defines this for functions which it implements
6658 to always fail with ENOSYS. Some functions are actually named
6659 something starting with __ and the normal name is an alias. */
6660 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6668 if { (eval echo configure
:6669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6670 eval "ac_cv_func_$ac_func=yes"
6672 echo "configure: failed program was:" >&5
6673 cat conftest.
$ac_ext >&5
6675 eval "ac_cv_func_$ac_func=no"
6680 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6681 echo "$ac_t""yes" 1>&6
6682 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6683 cat >> confdefs.h
<<EOF
6684 #define $ac_tr_func 1
6688 echo "$ac_t""no" 1>&6
6692 for ac_func
in open64 _open64 __open64 creat64
6694 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6695 echo "configure:6696: checking for $ac_func" >&5
6696 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6697 echo $ac_n "(cached) $ac_c" 1>&6
6699 cat > conftest.
$ac_ext <<EOF
6700 #line 6701 "configure"
6701 #include "confdefs.h"
6702 /* System header to define __stub macros and hopefully few prototypes,
6703 which can conflict with char $ac_func(); below. */
6705 /* Override any gcc2 internal prototype to avoid an error. */
6706 /* We use char because int might match the return type of a gcc2
6707 builtin and then its argument prototype would still apply. */
6712 /* The GNU C library defines this for functions which it implements
6713 to always fail with ENOSYS. Some functions are actually named
6714 something starting with __ and the normal name is an alias. */
6715 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6723 if { (eval echo configure
:6724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6725 eval "ac_cv_func_$ac_func=yes"
6727 echo "configure: failed program was:" >&5
6728 cat conftest.
$ac_ext >&5
6730 eval "ac_cv_func_$ac_func=no"
6735 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6736 echo "$ac_t""yes" 1>&6
6737 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6738 cat >> confdefs.h
<<EOF
6739 #define $ac_tr_func 1
6743 echo "$ac_t""no" 1>&6
6749 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6752 if test x
$ac_cv_func_stat64 = xno
; then
6753 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6754 echo "configure:6755: checking for stat64 in <sys/stat.h>" >&5
6755 cat > conftest.
$ac_ext <<EOF
6756 #line 6757 "configure"
6757 #include "confdefs.h"
6759 #if defined(HAVE_UNISTD_H)
6762 #include <sys/stat.h>
6765 struct stat64 st64; exit(stat64(".",&st64));
6768 if { (eval echo configure
:6769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6770 ac_cv_func_stat64
=yes
6772 echo "configure: failed program was:" >&5
6773 cat conftest.
$ac_ext >&5
6776 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6777 if test x
$ac_cv_func_stat64 = xyes
; then
6778 cat >> confdefs.h
<<\EOF
6779 #define HAVE_STAT64 1
6785 if test x
$ac_cv_func_lstat64 = xno
; then
6786 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6787 echo "configure:6788: checking for lstat64 in <sys/stat.h>" >&5
6788 cat > conftest.
$ac_ext <<EOF
6789 #line 6790 "configure"
6790 #include "confdefs.h"
6792 #if defined(HAVE_UNISTD_H)
6795 #include <sys/stat.h>
6798 struct stat64 st64; exit(lstat64(".",&st64));
6801 if { (eval echo configure
:6802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6803 ac_cv_func_lstat64
=yes
6805 echo "configure: failed program was:" >&5
6806 cat conftest.
$ac_ext >&5
6809 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6810 if test x
$ac_cv_func_lstat64 = xyes
; then
6811 cat >> confdefs.h
<<\EOF
6812 #define HAVE_LSTAT64 1
6818 if test x
$ac_cv_func_fstat64 = xno
; then
6819 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6820 echo "configure:6821: checking for fstat64 in <sys/stat.h>" >&5
6821 cat > conftest.
$ac_ext <<EOF
6822 #line 6823 "configure"
6823 #include "confdefs.h"
6825 #if defined(HAVE_UNISTD_H)
6828 #include <sys/stat.h>
6831 struct stat64 st64; exit(fstat64(0,&st64));
6834 if { (eval echo configure
:6835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6836 ac_cv_func_fstat64
=yes
6838 echo "configure: failed program was:" >&5
6839 cat conftest.
$ac_ext >&5
6842 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6843 if test x
$ac_cv_func_fstat64 = xyes
; then
6844 cat >> confdefs.h
<<\EOF
6845 #define HAVE_FSTAT64 1
6852 # If no strcasecmp, check for it in some known places
6853 # It is in -lresolv on ReliantUNIX and UnixWare
6854 # -lresolve *must* follow -lnsl for name resolution to work properly
6857 if test x
$ac_cv_func_strcasecmp = xno
; then
6858 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6859 echo "configure:6860: checking for strcasecmp in -lresolv" >&5
6860 ac_lib_var
=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6861 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6862 echo $ac_n "(cached) $ac_c" 1>&6
6864 ac_save_LIBS
="$LIBS"
6865 LIBS
="-lresolv $LIBS"
6866 cat > conftest.
$ac_ext <<EOF
6867 #line 6868 "configure"
6868 #include "confdefs.h"
6869 /* Override any gcc2 internal prototype to avoid an error. */
6870 /* We use char because int might match the return type of a gcc2
6871 builtin and then its argument prototype would still apply. */
6878 if { (eval echo configure
:6879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6880 eval "ac_cv_lib_$ac_lib_var=yes"
6882 echo "configure: failed program was:" >&5
6883 cat conftest.
$ac_ext >&5
6885 eval "ac_cv_lib_$ac_lib_var=no"
6888 LIBS
="$ac_save_LIBS"
6891 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6892 echo "$ac_t""yes" 1>&6
6893 LIBS
="$LIBS -lresolv"
6894 cat >> confdefs.h
<<\EOF
6895 #define HAVE_STRCASECMP 1
6899 echo "$ac_t""no" 1>&6
6905 # Check for the functions putprpwnam, set_auth_parameters,
6906 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6907 # Needed for OSF1 and HPUX.
6911 *-lsecurity*) for ac_func
in putprpwnam
6913 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6914 echo "configure:6915: checking for $ac_func" >&5
6915 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6916 echo $ac_n "(cached) $ac_c" 1>&6
6918 cat > conftest.
$ac_ext <<EOF
6919 #line 6920 "configure"
6920 #include "confdefs.h"
6921 /* System header to define __stub macros and hopefully few prototypes,
6922 which can conflict with char $ac_func(); below. */
6924 /* Override any gcc2 internal prototype to avoid an error. */
6925 /* We use char because int might match the return type of a gcc2
6926 builtin and then its argument prototype would still apply. */
6931 /* The GNU C library defines this for functions which it implements
6932 to always fail with ENOSYS. Some functions are actually named
6933 something starting with __ and the normal name is an alias. */
6934 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6942 if { (eval echo configure
:6943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6944 eval "ac_cv_func_$ac_func=yes"
6946 echo "configure: failed program was:" >&5
6947 cat conftest.
$ac_ext >&5
6949 eval "ac_cv_func_$ac_func=no"
6954 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6955 echo "$ac_t""yes" 1>&6
6956 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6957 cat >> confdefs.h
<<EOF
6958 #define $ac_tr_func 1
6962 echo "$ac_t""no" 1>&6
6966 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6967 echo "configure:6968: checking for putprpwnam in -lsecurity" >&5
6968 ac_lib_var
=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6969 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6970 echo $ac_n "(cached) $ac_c" 1>&6
6972 ac_save_LIBS
="$LIBS"
6973 LIBS
="-lsecurity $LIBS"
6974 cat > conftest.
$ac_ext <<EOF
6975 #line 6976 "configure"
6976 #include "confdefs.h"
6977 /* Override any gcc2 internal prototype to avoid an error. */
6978 /* We use char because int might match the return type of a gcc2
6979 builtin and then its argument prototype would still apply. */
6986 if { (eval echo configure
:6987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6988 eval "ac_cv_lib_$ac_lib_var=yes"
6990 echo "configure: failed program was:" >&5
6991 cat conftest.
$ac_ext >&5
6993 eval "ac_cv_lib_$ac_lib_var=no"
6996 LIBS
="$ac_save_LIBS"
6999 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7000 echo "$ac_t""yes" 1>&6
7001 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7002 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7003 cat >> confdefs.h
<<EOF
7004 #define $ac_tr_lib 1
7007 LIBS
="-lsecurity $LIBS"
7010 echo "$ac_t""no" 1>&6
7013 for ac_func
in putprpwnam
7015 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7016 echo "configure:7017: checking for $ac_func" >&5
7017 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7018 echo $ac_n "(cached) $ac_c" 1>&6
7020 cat > conftest.
$ac_ext <<EOF
7021 #line 7022 "configure"
7022 #include "confdefs.h"
7023 /* System header to define __stub macros and hopefully few prototypes,
7024 which can conflict with char $ac_func(); below. */
7026 /* Override any gcc2 internal prototype to avoid an error. */
7027 /* We use char because int might match the return type of a gcc2
7028 builtin and then its argument prototype would still apply. */
7033 /* The GNU C library defines this for functions which it implements
7034 to always fail with ENOSYS. Some functions are actually named
7035 something starting with __ and the normal name is an alias. */
7036 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7044 if { (eval echo configure
:7045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7046 eval "ac_cv_func_$ac_func=yes"
7048 echo "configure: failed program was:" >&5
7049 cat conftest.
$ac_ext >&5
7051 eval "ac_cv_func_$ac_func=no"
7056 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7057 echo "$ac_t""yes" 1>&6
7058 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7059 cat >> confdefs.h
<<EOF
7060 #define $ac_tr_func 1
7064 echo "$ac_t""no" 1>&6
7072 *-lsec*) for ac_func
in putprpwnam
7074 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7075 echo "configure:7076: checking for $ac_func" >&5
7076 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7077 echo $ac_n "(cached) $ac_c" 1>&6
7079 cat > conftest.
$ac_ext <<EOF
7080 #line 7081 "configure"
7081 #include "confdefs.h"
7082 /* System header to define __stub macros and hopefully few prototypes,
7083 which can conflict with char $ac_func(); below. */
7085 /* Override any gcc2 internal prototype to avoid an error. */
7086 /* We use char because int might match the return type of a gcc2
7087 builtin and then its argument prototype would still apply. */
7092 /* The GNU C library defines this for functions which it implements
7093 to always fail with ENOSYS. Some functions are actually named
7094 something starting with __ and the normal name is an alias. */
7095 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7103 if { (eval echo configure
:7104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7105 eval "ac_cv_func_$ac_func=yes"
7107 echo "configure: failed program was:" >&5
7108 cat conftest.
$ac_ext >&5
7110 eval "ac_cv_func_$ac_func=no"
7115 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7116 echo "$ac_t""yes" 1>&6
7117 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7118 cat >> confdefs.h
<<EOF
7119 #define $ac_tr_func 1
7123 echo "$ac_t""no" 1>&6
7127 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
7128 echo "configure:7129: checking for putprpwnam in -lsec" >&5
7129 ac_lib_var
=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
7130 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7131 echo $ac_n "(cached) $ac_c" 1>&6
7133 ac_save_LIBS
="$LIBS"
7135 cat > conftest.
$ac_ext <<EOF
7136 #line 7137 "configure"
7137 #include "confdefs.h"
7138 /* Override any gcc2 internal prototype to avoid an error. */
7139 /* We use char because int might match the return type of a gcc2
7140 builtin and then its argument prototype would still apply. */
7147 if { (eval echo configure
:7148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7149 eval "ac_cv_lib_$ac_lib_var=yes"
7151 echo "configure: failed program was:" >&5
7152 cat conftest.
$ac_ext >&5
7154 eval "ac_cv_lib_$ac_lib_var=no"
7157 LIBS
="$ac_save_LIBS"
7160 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7161 echo "$ac_t""yes" 1>&6
7162 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7163 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7164 cat >> confdefs.h
<<EOF
7165 #define $ac_tr_lib 1
7171 echo "$ac_t""no" 1>&6
7174 for ac_func
in putprpwnam
7176 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7177 echo "configure:7178: checking for $ac_func" >&5
7178 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7179 echo $ac_n "(cached) $ac_c" 1>&6
7181 cat > conftest.
$ac_ext <<EOF
7182 #line 7183 "configure"
7183 #include "confdefs.h"
7184 /* System header to define __stub macros and hopefully few prototypes,
7185 which can conflict with char $ac_func(); below. */
7187 /* Override any gcc2 internal prototype to avoid an error. */
7188 /* We use char because int might match the return type of a gcc2
7189 builtin and then its argument prototype would still apply. */
7194 /* The GNU C library defines this for functions which it implements
7195 to always fail with ENOSYS. Some functions are actually named
7196 something starting with __ and the normal name is an alias. */
7197 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7205 if { (eval echo configure
:7206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7207 eval "ac_cv_func_$ac_func=yes"
7209 echo "configure: failed program was:" >&5
7210 cat conftest.
$ac_ext >&5
7212 eval "ac_cv_func_$ac_func=no"
7217 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7218 echo "$ac_t""yes" 1>&6
7219 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7220 cat >> confdefs.h
<<EOF
7221 #define $ac_tr_func 1
7225 echo "$ac_t""no" 1>&6
7234 *-lsecurity*) for ac_func
in set_auth_parameters
7236 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7237 echo "configure:7238: checking for $ac_func" >&5
7238 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7239 echo $ac_n "(cached) $ac_c" 1>&6
7241 cat > conftest.
$ac_ext <<EOF
7242 #line 7243 "configure"
7243 #include "confdefs.h"
7244 /* System header to define __stub macros and hopefully few prototypes,
7245 which can conflict with char $ac_func(); below. */
7247 /* Override any gcc2 internal prototype to avoid an error. */
7248 /* We use char because int might match the return type of a gcc2
7249 builtin and then its argument prototype would still apply. */
7254 /* The GNU C library defines this for functions which it implements
7255 to always fail with ENOSYS. Some functions are actually named
7256 something starting with __ and the normal name is an alias. */
7257 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7265 if { (eval echo configure
:7266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7267 eval "ac_cv_func_$ac_func=yes"
7269 echo "configure: failed program was:" >&5
7270 cat conftest.
$ac_ext >&5
7272 eval "ac_cv_func_$ac_func=no"
7277 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7278 echo "$ac_t""yes" 1>&6
7279 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7280 cat >> confdefs.h
<<EOF
7281 #define $ac_tr_func 1
7285 echo "$ac_t""no" 1>&6
7289 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
7290 echo "configure:7291: checking for set_auth_parameters in -lsecurity" >&5
7291 ac_lib_var
=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7292 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7293 echo $ac_n "(cached) $ac_c" 1>&6
7295 ac_save_LIBS
="$LIBS"
7296 LIBS
="-lsecurity $LIBS"
7297 cat > conftest.
$ac_ext <<EOF
7298 #line 7299 "configure"
7299 #include "confdefs.h"
7300 /* Override any gcc2 internal prototype to avoid an error. */
7301 /* We use char because int might match the return type of a gcc2
7302 builtin and then its argument prototype would still apply. */
7303 char set_auth_parameters();
7306 set_auth_parameters()
7309 if { (eval echo configure
:7310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7311 eval "ac_cv_lib_$ac_lib_var=yes"
7313 echo "configure: failed program was:" >&5
7314 cat conftest.
$ac_ext >&5
7316 eval "ac_cv_lib_$ac_lib_var=no"
7319 LIBS
="$ac_save_LIBS"
7322 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7323 echo "$ac_t""yes" 1>&6
7324 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7325 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7326 cat >> confdefs.h
<<EOF
7327 #define $ac_tr_lib 1
7330 LIBS
="-lsecurity $LIBS"
7333 echo "$ac_t""no" 1>&6
7336 for ac_func
in set_auth_parameters
7338 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7339 echo "configure:7340: checking for $ac_func" >&5
7340 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7341 echo $ac_n "(cached) $ac_c" 1>&6
7343 cat > conftest.
$ac_ext <<EOF
7344 #line 7345 "configure"
7345 #include "confdefs.h"
7346 /* System header to define __stub macros and hopefully few prototypes,
7347 which can conflict with char $ac_func(); below. */
7349 /* Override any gcc2 internal prototype to avoid an error. */
7350 /* We use char because int might match the return type of a gcc2
7351 builtin and then its argument prototype would still apply. */
7356 /* The GNU C library defines this for functions which it implements
7357 to always fail with ENOSYS. Some functions are actually named
7358 something starting with __ and the normal name is an alias. */
7359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7367 if { (eval echo configure
:7368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7369 eval "ac_cv_func_$ac_func=yes"
7371 echo "configure: failed program was:" >&5
7372 cat conftest.
$ac_ext >&5
7374 eval "ac_cv_func_$ac_func=no"
7379 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7380 echo "$ac_t""yes" 1>&6
7381 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7382 cat >> confdefs.h
<<EOF
7383 #define $ac_tr_func 1
7387 echo "$ac_t""no" 1>&6
7395 *-lsec*) for ac_func
in set_auth_parameters
7397 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7398 echo "configure:7399: checking for $ac_func" >&5
7399 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7400 echo $ac_n "(cached) $ac_c" 1>&6
7402 cat > conftest.
$ac_ext <<EOF
7403 #line 7404 "configure"
7404 #include "confdefs.h"
7405 /* System header to define __stub macros and hopefully few prototypes,
7406 which can conflict with char $ac_func(); below. */
7408 /* Override any gcc2 internal prototype to avoid an error. */
7409 /* We use char because int might match the return type of a gcc2
7410 builtin and then its argument prototype would still apply. */
7415 /* The GNU C library defines this for functions which it implements
7416 to always fail with ENOSYS. Some functions are actually named
7417 something starting with __ and the normal name is an alias. */
7418 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7426 if { (eval echo configure
:7427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7428 eval "ac_cv_func_$ac_func=yes"
7430 echo "configure: failed program was:" >&5
7431 cat conftest.
$ac_ext >&5
7433 eval "ac_cv_func_$ac_func=no"
7438 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7439 echo "$ac_t""yes" 1>&6
7440 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7441 cat >> confdefs.h
<<EOF
7442 #define $ac_tr_func 1
7446 echo "$ac_t""no" 1>&6
7450 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7451 echo "configure:7452: checking for set_auth_parameters in -lsec" >&5
7452 ac_lib_var
=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7453 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7454 echo $ac_n "(cached) $ac_c" 1>&6
7456 ac_save_LIBS
="$LIBS"
7458 cat > conftest.
$ac_ext <<EOF
7459 #line 7460 "configure"
7460 #include "confdefs.h"
7461 /* Override any gcc2 internal prototype to avoid an error. */
7462 /* We use char because int might match the return type of a gcc2
7463 builtin and then its argument prototype would still apply. */
7464 char set_auth_parameters();
7467 set_auth_parameters()
7470 if { (eval echo configure
:7471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7472 eval "ac_cv_lib_$ac_lib_var=yes"
7474 echo "configure: failed program was:" >&5
7475 cat conftest.
$ac_ext >&5
7477 eval "ac_cv_lib_$ac_lib_var=no"
7480 LIBS
="$ac_save_LIBS"
7483 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7484 echo "$ac_t""yes" 1>&6
7485 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7486 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7487 cat >> confdefs.h
<<EOF
7488 #define $ac_tr_lib 1
7494 echo "$ac_t""no" 1>&6
7497 for ac_func
in set_auth_parameters
7499 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7500 echo "configure:7501: checking for $ac_func" >&5
7501 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7502 echo $ac_n "(cached) $ac_c" 1>&6
7504 cat > conftest.
$ac_ext <<EOF
7505 #line 7506 "configure"
7506 #include "confdefs.h"
7507 /* System header to define __stub macros and hopefully few prototypes,
7508 which can conflict with char $ac_func(); below. */
7510 /* Override any gcc2 internal prototype to avoid an error. */
7511 /* We use char because int might match the return type of a gcc2
7512 builtin and then its argument prototype would still apply. */
7517 /* The GNU C library defines this for functions which it implements
7518 to always fail with ENOSYS. Some functions are actually named
7519 something starting with __ and the normal name is an alias. */
7520 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7528 if { (eval echo configure
:7529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7530 eval "ac_cv_func_$ac_func=yes"
7532 echo "configure: failed program was:" >&5
7533 cat conftest.
$ac_ext >&5
7535 eval "ac_cv_func_$ac_func=no"
7540 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7541 echo "$ac_t""yes" 1>&6
7542 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7543 cat >> confdefs.h
<<EOF
7544 #define $ac_tr_func 1
7548 echo "$ac_t""no" 1>&6
7556 # UnixWare 7.x has its getspnam in -lgen
7558 *-lgen*) for ac_func
in getspnam
7560 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7561 echo "configure:7562: checking for $ac_func" >&5
7562 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7563 echo $ac_n "(cached) $ac_c" 1>&6
7565 cat > conftest.
$ac_ext <<EOF
7566 #line 7567 "configure"
7567 #include "confdefs.h"
7568 /* System header to define __stub macros and hopefully few prototypes,
7569 which can conflict with char $ac_func(); below. */
7571 /* Override any gcc2 internal prototype to avoid an error. */
7572 /* We use char because int might match the return type of a gcc2
7573 builtin and then its argument prototype would still apply. */
7578 /* The GNU C library defines this for functions which it implements
7579 to always fail with ENOSYS. Some functions are actually named
7580 something starting with __ and the normal name is an alias. */
7581 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7589 if { (eval echo configure
:7590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7591 eval "ac_cv_func_$ac_func=yes"
7593 echo "configure: failed program was:" >&5
7594 cat conftest.
$ac_ext >&5
7596 eval "ac_cv_func_$ac_func=no"
7601 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7602 echo "$ac_t""yes" 1>&6
7603 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7604 cat >> confdefs.h
<<EOF
7605 #define $ac_tr_func 1
7609 echo "$ac_t""no" 1>&6
7613 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7614 echo "configure:7615: checking for getspnam in -lgen" >&5
7615 ac_lib_var
=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7616 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7617 echo $ac_n "(cached) $ac_c" 1>&6
7619 ac_save_LIBS
="$LIBS"
7621 cat > conftest.
$ac_ext <<EOF
7622 #line 7623 "configure"
7623 #include "confdefs.h"
7624 /* Override any gcc2 internal prototype to avoid an error. */
7625 /* We use char because int might match the return type of a gcc2
7626 builtin and then its argument prototype would still apply. */
7633 if { (eval echo configure
:7634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7635 eval "ac_cv_lib_$ac_lib_var=yes"
7637 echo "configure: failed program was:" >&5
7638 cat conftest.
$ac_ext >&5
7640 eval "ac_cv_lib_$ac_lib_var=no"
7643 LIBS
="$ac_save_LIBS"
7646 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7647 echo "$ac_t""yes" 1>&6
7648 ac_tr_lib
=HAVE_LIB
`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7649 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7650 cat >> confdefs.h
<<EOF
7651 #define $ac_tr_lib 1
7657 echo "$ac_t""no" 1>&6
7660 for ac_func
in getspnam
7662 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7663 echo "configure:7664: checking for $ac_func" >&5
7664 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7665 echo $ac_n "(cached) $ac_c" 1>&6
7667 cat > conftest.
$ac_ext <<EOF
7668 #line 7669 "configure"
7669 #include "confdefs.h"
7670 /* System header to define __stub macros and hopefully few prototypes,
7671 which can conflict with char $ac_func(); below. */
7673 /* Override any gcc2 internal prototype to avoid an error. */
7674 /* We use char because int might match the return type of a gcc2
7675 builtin and then its argument prototype would still apply. */
7680 /* The GNU C library defines this for functions which it implements
7681 to always fail with ENOSYS. Some functions are actually named
7682 something starting with __ and the normal name is an alias. */
7683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7691 if { (eval echo configure
:7692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7693 eval "ac_cv_func_$ac_func=yes"
7695 echo "configure: failed program was:" >&5
7696 cat conftest.
$ac_ext >&5
7698 eval "ac_cv_func_$ac_func=no"
7703 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7704 echo "$ac_t""yes" 1>&6
7705 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7706 cat >> confdefs.h
<<EOF
7707 #define $ac_tr_func 1
7711 echo "$ac_t""no" 1>&6
7720 *-lsecurity*) for ac_func
in getspnam
7722 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7723 echo "configure:7724: checking for $ac_func" >&5
7724 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7725 echo $ac_n "(cached) $ac_c" 1>&6
7727 cat > conftest.
$ac_ext <<EOF
7728 #line 7729 "configure"
7729 #include "confdefs.h"
7730 /* System header to define __stub macros and hopefully few prototypes,
7731 which can conflict with char $ac_func(); below. */
7733 /* Override any gcc2 internal prototype to avoid an error. */
7734 /* We use char because int might match the return type of a gcc2
7735 builtin and then its argument prototype would still apply. */
7740 /* The GNU C library defines this for functions which it implements
7741 to always fail with ENOSYS. Some functions are actually named
7742 something starting with __ and the normal name is an alias. */
7743 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7751 if { (eval echo configure
:7752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7753 eval "ac_cv_func_$ac_func=yes"
7755 echo "configure: failed program was:" >&5
7756 cat conftest.
$ac_ext >&5
7758 eval "ac_cv_func_$ac_func=no"
7763 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7764 echo "$ac_t""yes" 1>&6
7765 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7766 cat >> confdefs.h
<<EOF
7767 #define $ac_tr_func 1
7771 echo "$ac_t""no" 1>&6
7775 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7776 echo "configure:7777: checking for getspnam in -lsecurity" >&5
7777 ac_lib_var
=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7778 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7779 echo $ac_n "(cached) $ac_c" 1>&6
7781 ac_save_LIBS
="$LIBS"
7782 LIBS
="-lsecurity $LIBS"
7783 cat > conftest.
$ac_ext <<EOF
7784 #line 7785 "configure"
7785 #include "confdefs.h"
7786 /* Override any gcc2 internal prototype to avoid an error. */
7787 /* We use char because int might match the return type of a gcc2
7788 builtin and then its argument prototype would still apply. */
7795 if { (eval echo configure
:7796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7797 eval "ac_cv_lib_$ac_lib_var=yes"
7799 echo "configure: failed program was:" >&5
7800 cat conftest.
$ac_ext >&5
7802 eval "ac_cv_lib_$ac_lib_var=no"
7805 LIBS
="$ac_save_LIBS"
7808 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7809 echo "$ac_t""yes" 1>&6
7810 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7811 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7812 cat >> confdefs.h
<<EOF
7813 #define $ac_tr_lib 1
7816 LIBS
="-lsecurity $LIBS"
7819 echo "$ac_t""no" 1>&6
7822 for ac_func
in getspnam
7824 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7825 echo "configure:7826: checking for $ac_func" >&5
7826 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7827 echo $ac_n "(cached) $ac_c" 1>&6
7829 cat > conftest.
$ac_ext <<EOF
7830 #line 7831 "configure"
7831 #include "confdefs.h"
7832 /* System header to define __stub macros and hopefully few prototypes,
7833 which can conflict with char $ac_func(); below. */
7835 /* Override any gcc2 internal prototype to avoid an error. */
7836 /* We use char because int might match the return type of a gcc2
7837 builtin and then its argument prototype would still apply. */
7842 /* The GNU C library defines this for functions which it implements
7843 to always fail with ENOSYS. Some functions are actually named
7844 something starting with __ and the normal name is an alias. */
7845 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7853 if { (eval echo configure
:7854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7855 eval "ac_cv_func_$ac_func=yes"
7857 echo "configure: failed program was:" >&5
7858 cat conftest.
$ac_ext >&5
7860 eval "ac_cv_func_$ac_func=no"
7865 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7866 echo "$ac_t""yes" 1>&6
7867 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7868 cat >> confdefs.h
<<EOF
7869 #define $ac_tr_func 1
7873 echo "$ac_t""no" 1>&6
7881 *-lsec*) for ac_func
in getspnam
7883 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7884 echo "configure:7885: checking for $ac_func" >&5
7885 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7886 echo $ac_n "(cached) $ac_c" 1>&6
7888 cat > conftest.
$ac_ext <<EOF
7889 #line 7890 "configure"
7890 #include "confdefs.h"
7891 /* System header to define __stub macros and hopefully few prototypes,
7892 which can conflict with char $ac_func(); below. */
7894 /* Override any gcc2 internal prototype to avoid an error. */
7895 /* We use char because int might match the return type of a gcc2
7896 builtin and then its argument prototype would still apply. */
7901 /* The GNU C library defines this for functions which it implements
7902 to always fail with ENOSYS. Some functions are actually named
7903 something starting with __ and the normal name is an alias. */
7904 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7912 if { (eval echo configure
:7913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7914 eval "ac_cv_func_$ac_func=yes"
7916 echo "configure: failed program was:" >&5
7917 cat conftest.
$ac_ext >&5
7919 eval "ac_cv_func_$ac_func=no"
7924 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7925 echo "$ac_t""yes" 1>&6
7926 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7927 cat >> confdefs.h
<<EOF
7928 #define $ac_tr_func 1
7932 echo "$ac_t""no" 1>&6
7936 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7937 echo "configure:7938: checking for getspnam in -lsec" >&5
7938 ac_lib_var
=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7939 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7940 echo $ac_n "(cached) $ac_c" 1>&6
7942 ac_save_LIBS
="$LIBS"
7944 cat > conftest.
$ac_ext <<EOF
7945 #line 7946 "configure"
7946 #include "confdefs.h"
7947 /* Override any gcc2 internal prototype to avoid an error. */
7948 /* We use char because int might match the return type of a gcc2
7949 builtin and then its argument prototype would still apply. */
7956 if { (eval echo configure
:7957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7958 eval "ac_cv_lib_$ac_lib_var=yes"
7960 echo "configure: failed program was:" >&5
7961 cat conftest.
$ac_ext >&5
7963 eval "ac_cv_lib_$ac_lib_var=no"
7966 LIBS
="$ac_save_LIBS"
7969 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7970 echo "$ac_t""yes" 1>&6
7971 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7972 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7973 cat >> confdefs.h
<<EOF
7974 #define $ac_tr_lib 1
7980 echo "$ac_t""no" 1>&6
7983 for ac_func
in getspnam
7985 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7986 echo "configure:7987: checking for $ac_func" >&5
7987 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7988 echo $ac_n "(cached) $ac_c" 1>&6
7990 cat > conftest.
$ac_ext <<EOF
7991 #line 7992 "configure"
7992 #include "confdefs.h"
7993 /* System header to define __stub macros and hopefully few prototypes,
7994 which can conflict with char $ac_func(); below. */
7996 /* Override any gcc2 internal prototype to avoid an error. */
7997 /* We use char because int might match the return type of a gcc2
7998 builtin and then its argument prototype would still apply. */
8003 /* The GNU C library defines this for functions which it implements
8004 to always fail with ENOSYS. Some functions are actually named
8005 something starting with __ and the normal name is an alias. */
8006 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8014 if { (eval echo configure
:8015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8016 eval "ac_cv_func_$ac_func=yes"
8018 echo "configure: failed program was:" >&5
8019 cat conftest.
$ac_ext >&5
8021 eval "ac_cv_func_$ac_func=no"
8026 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8027 echo "$ac_t""yes" 1>&6
8028 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8029 cat >> confdefs.h
<<EOF
8030 #define $ac_tr_func 1
8034 echo "$ac_t""no" 1>&6
8043 *-lsecurity*) for ac_func
in bigcrypt
8045 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8046 echo "configure:8047: checking for $ac_func" >&5
8047 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8048 echo $ac_n "(cached) $ac_c" 1>&6
8050 cat > conftest.
$ac_ext <<EOF
8051 #line 8052 "configure"
8052 #include "confdefs.h"
8053 /* System header to define __stub macros and hopefully few prototypes,
8054 which can conflict with char $ac_func(); below. */
8056 /* Override any gcc2 internal prototype to avoid an error. */
8057 /* We use char because int might match the return type of a gcc2
8058 builtin and then its argument prototype would still apply. */
8063 /* The GNU C library defines this for functions which it implements
8064 to always fail with ENOSYS. Some functions are actually named
8065 something starting with __ and the normal name is an alias. */
8066 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8074 if { (eval echo configure
:8075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8076 eval "ac_cv_func_$ac_func=yes"
8078 echo "configure: failed program was:" >&5
8079 cat conftest.
$ac_ext >&5
8081 eval "ac_cv_func_$ac_func=no"
8086 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8087 echo "$ac_t""yes" 1>&6
8088 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8089 cat >> confdefs.h
<<EOF
8090 #define $ac_tr_func 1
8094 echo "$ac_t""no" 1>&6
8098 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
8099 echo "configure:8100: checking for bigcrypt in -lsecurity" >&5
8100 ac_lib_var
=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
8101 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8102 echo $ac_n "(cached) $ac_c" 1>&6
8104 ac_save_LIBS
="$LIBS"
8105 LIBS
="-lsecurity $LIBS"
8106 cat > conftest.
$ac_ext <<EOF
8107 #line 8108 "configure"
8108 #include "confdefs.h"
8109 /* Override any gcc2 internal prototype to avoid an error. */
8110 /* We use char because int might match the return type of a gcc2
8111 builtin and then its argument prototype would still apply. */
8118 if { (eval echo configure
:8119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8120 eval "ac_cv_lib_$ac_lib_var=yes"
8122 echo "configure: failed program was:" >&5
8123 cat conftest.
$ac_ext >&5
8125 eval "ac_cv_lib_$ac_lib_var=no"
8128 LIBS
="$ac_save_LIBS"
8131 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8132 echo "$ac_t""yes" 1>&6
8133 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8134 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8135 cat >> confdefs.h
<<EOF
8136 #define $ac_tr_lib 1
8139 LIBS
="-lsecurity $LIBS"
8142 echo "$ac_t""no" 1>&6
8145 for ac_func
in bigcrypt
8147 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8148 echo "configure:8149: checking for $ac_func" >&5
8149 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8150 echo $ac_n "(cached) $ac_c" 1>&6
8152 cat > conftest.
$ac_ext <<EOF
8153 #line 8154 "configure"
8154 #include "confdefs.h"
8155 /* System header to define __stub macros and hopefully few prototypes,
8156 which can conflict with char $ac_func(); below. */
8158 /* Override any gcc2 internal prototype to avoid an error. */
8159 /* We use char because int might match the return type of a gcc2
8160 builtin and then its argument prototype would still apply. */
8165 /* The GNU C library defines this for functions which it implements
8166 to always fail with ENOSYS. Some functions are actually named
8167 something starting with __ and the normal name is an alias. */
8168 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8176 if { (eval echo configure
:8177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8178 eval "ac_cv_func_$ac_func=yes"
8180 echo "configure: failed program was:" >&5
8181 cat conftest.
$ac_ext >&5
8183 eval "ac_cv_func_$ac_func=no"
8188 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8189 echo "$ac_t""yes" 1>&6
8190 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8191 cat >> confdefs.h
<<EOF
8192 #define $ac_tr_func 1
8196 echo "$ac_t""no" 1>&6
8204 *-lsec*) for ac_func
in bigcrypt
8206 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8207 echo "configure:8208: checking for $ac_func" >&5
8208 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8209 echo $ac_n "(cached) $ac_c" 1>&6
8211 cat > conftest.
$ac_ext <<EOF
8212 #line 8213 "configure"
8213 #include "confdefs.h"
8214 /* System header to define __stub macros and hopefully few prototypes,
8215 which can conflict with char $ac_func(); below. */
8217 /* Override any gcc2 internal prototype to avoid an error. */
8218 /* We use char because int might match the return type of a gcc2
8219 builtin and then its argument prototype would still apply. */
8224 /* The GNU C library defines this for functions which it implements
8225 to always fail with ENOSYS. Some functions are actually named
8226 something starting with __ and the normal name is an alias. */
8227 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8235 if { (eval echo configure
:8236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8237 eval "ac_cv_func_$ac_func=yes"
8239 echo "configure: failed program was:" >&5
8240 cat conftest.
$ac_ext >&5
8242 eval "ac_cv_func_$ac_func=no"
8247 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8248 echo "$ac_t""yes" 1>&6
8249 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8250 cat >> confdefs.h
<<EOF
8251 #define $ac_tr_func 1
8255 echo "$ac_t""no" 1>&6
8259 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
8260 echo "configure:8261: checking for bigcrypt in -lsec" >&5
8261 ac_lib_var
=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
8262 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8263 echo $ac_n "(cached) $ac_c" 1>&6
8265 ac_save_LIBS
="$LIBS"
8267 cat > conftest.
$ac_ext <<EOF
8268 #line 8269 "configure"
8269 #include "confdefs.h"
8270 /* Override any gcc2 internal prototype to avoid an error. */
8271 /* We use char because int might match the return type of a gcc2
8272 builtin and then its argument prototype would still apply. */
8279 if { (eval echo configure
:8280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8281 eval "ac_cv_lib_$ac_lib_var=yes"
8283 echo "configure: failed program was:" >&5
8284 cat conftest.
$ac_ext >&5
8286 eval "ac_cv_lib_$ac_lib_var=no"
8289 LIBS
="$ac_save_LIBS"
8292 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8293 echo "$ac_t""yes" 1>&6
8294 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8295 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8296 cat >> confdefs.h
<<EOF
8297 #define $ac_tr_lib 1
8303 echo "$ac_t""no" 1>&6
8306 for ac_func
in bigcrypt
8308 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8309 echo "configure:8310: checking for $ac_func" >&5
8310 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8311 echo $ac_n "(cached) $ac_c" 1>&6
8313 cat > conftest.
$ac_ext <<EOF
8314 #line 8315 "configure"
8315 #include "confdefs.h"
8316 /* System header to define __stub macros and hopefully few prototypes,
8317 which can conflict with char $ac_func(); below. */
8319 /* Override any gcc2 internal prototype to avoid an error. */
8320 /* We use char because int might match the return type of a gcc2
8321 builtin and then its argument prototype would still apply. */
8326 /* The GNU C library defines this for functions which it implements
8327 to always fail with ENOSYS. Some functions are actually named
8328 something starting with __ and the normal name is an alias. */
8329 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8337 if { (eval echo configure
:8338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8339 eval "ac_cv_func_$ac_func=yes"
8341 echo "configure: failed program was:" >&5
8342 cat conftest.
$ac_ext >&5
8344 eval "ac_cv_func_$ac_func=no"
8349 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8350 echo "$ac_t""yes" 1>&6
8351 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8352 cat >> confdefs.h
<<EOF
8353 #define $ac_tr_func 1
8357 echo "$ac_t""no" 1>&6
8366 *-lsecurity*) for ac_func
in getprpwnam
8368 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8369 echo "configure:8370: checking for $ac_func" >&5
8370 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8371 echo $ac_n "(cached) $ac_c" 1>&6
8373 cat > conftest.
$ac_ext <<EOF
8374 #line 8375 "configure"
8375 #include "confdefs.h"
8376 /* System header to define __stub macros and hopefully few prototypes,
8377 which can conflict with char $ac_func(); below. */
8379 /* Override any gcc2 internal prototype to avoid an error. */
8380 /* We use char because int might match the return type of a gcc2
8381 builtin and then its argument prototype would still apply. */
8386 /* The GNU C library defines this for functions which it implements
8387 to always fail with ENOSYS. Some functions are actually named
8388 something starting with __ and the normal name is an alias. */
8389 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8397 if { (eval echo configure
:8398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8399 eval "ac_cv_func_$ac_func=yes"
8401 echo "configure: failed program was:" >&5
8402 cat conftest.
$ac_ext >&5
8404 eval "ac_cv_func_$ac_func=no"
8409 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8410 echo "$ac_t""yes" 1>&6
8411 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8412 cat >> confdefs.h
<<EOF
8413 #define $ac_tr_func 1
8417 echo "$ac_t""no" 1>&6
8421 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8422 echo "configure:8423: checking for getprpwnam in -lsecurity" >&5
8423 ac_lib_var
=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8424 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8425 echo $ac_n "(cached) $ac_c" 1>&6
8427 ac_save_LIBS
="$LIBS"
8428 LIBS
="-lsecurity $LIBS"
8429 cat > conftest.
$ac_ext <<EOF
8430 #line 8431 "configure"
8431 #include "confdefs.h"
8432 /* Override any gcc2 internal prototype to avoid an error. */
8433 /* We use char because int might match the return type of a gcc2
8434 builtin and then its argument prototype would still apply. */
8441 if { (eval echo configure
:8442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8443 eval "ac_cv_lib_$ac_lib_var=yes"
8445 echo "configure: failed program was:" >&5
8446 cat conftest.
$ac_ext >&5
8448 eval "ac_cv_lib_$ac_lib_var=no"
8451 LIBS
="$ac_save_LIBS"
8454 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8455 echo "$ac_t""yes" 1>&6
8456 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8457 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8458 cat >> confdefs.h
<<EOF
8459 #define $ac_tr_lib 1
8462 LIBS
="-lsecurity $LIBS"
8465 echo "$ac_t""no" 1>&6
8468 for ac_func
in getprpwnam
8470 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8471 echo "configure:8472: checking for $ac_func" >&5
8472 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8473 echo $ac_n "(cached) $ac_c" 1>&6
8475 cat > conftest.
$ac_ext <<EOF
8476 #line 8477 "configure"
8477 #include "confdefs.h"
8478 /* System header to define __stub macros and hopefully few prototypes,
8479 which can conflict with char $ac_func(); below. */
8481 /* Override any gcc2 internal prototype to avoid an error. */
8482 /* We use char because int might match the return type of a gcc2
8483 builtin and then its argument prototype would still apply. */
8488 /* The GNU C library defines this for functions which it implements
8489 to always fail with ENOSYS. Some functions are actually named
8490 something starting with __ and the normal name is an alias. */
8491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8499 if { (eval echo configure
:8500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8501 eval "ac_cv_func_$ac_func=yes"
8503 echo "configure: failed program was:" >&5
8504 cat conftest.
$ac_ext >&5
8506 eval "ac_cv_func_$ac_func=no"
8511 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8512 echo "$ac_t""yes" 1>&6
8513 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8514 cat >> confdefs.h
<<EOF
8515 #define $ac_tr_func 1
8519 echo "$ac_t""no" 1>&6
8527 *-lsec*) for ac_func
in getprpwnam
8529 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8530 echo "configure:8531: checking for $ac_func" >&5
8531 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8532 echo $ac_n "(cached) $ac_c" 1>&6
8534 cat > conftest.
$ac_ext <<EOF
8535 #line 8536 "configure"
8536 #include "confdefs.h"
8537 /* System header to define __stub macros and hopefully few prototypes,
8538 which can conflict with char $ac_func(); below. */
8540 /* Override any gcc2 internal prototype to avoid an error. */
8541 /* We use char because int might match the return type of a gcc2
8542 builtin and then its argument prototype would still apply. */
8547 /* The GNU C library defines this for functions which it implements
8548 to always fail with ENOSYS. Some functions are actually named
8549 something starting with __ and the normal name is an alias. */
8550 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8558 if { (eval echo configure
:8559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8560 eval "ac_cv_func_$ac_func=yes"
8562 echo "configure: failed program was:" >&5
8563 cat conftest.
$ac_ext >&5
8565 eval "ac_cv_func_$ac_func=no"
8570 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8571 echo "$ac_t""yes" 1>&6
8572 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8573 cat >> confdefs.h
<<EOF
8574 #define $ac_tr_func 1
8578 echo "$ac_t""no" 1>&6
8582 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8583 echo "configure:8584: checking for getprpwnam in -lsec" >&5
8584 ac_lib_var
=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8585 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8586 echo $ac_n "(cached) $ac_c" 1>&6
8588 ac_save_LIBS
="$LIBS"
8590 cat > conftest.
$ac_ext <<EOF
8591 #line 8592 "configure"
8592 #include "confdefs.h"
8593 /* Override any gcc2 internal prototype to avoid an error. */
8594 /* We use char because int might match the return type of a gcc2
8595 builtin and then its argument prototype would still apply. */
8602 if { (eval echo configure
:8603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8604 eval "ac_cv_lib_$ac_lib_var=yes"
8606 echo "configure: failed program was:" >&5
8607 cat conftest.
$ac_ext >&5
8609 eval "ac_cv_lib_$ac_lib_var=no"
8612 LIBS
="$ac_save_LIBS"
8615 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8616 echo "$ac_t""yes" 1>&6
8617 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8618 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8619 cat >> confdefs.h
<<EOF
8620 #define $ac_tr_lib 1
8626 echo "$ac_t""no" 1>&6
8629 for ac_func
in getprpwnam
8631 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8632 echo "configure:8633: checking for $ac_func" >&5
8633 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8634 echo $ac_n "(cached) $ac_c" 1>&6
8636 cat > conftest.
$ac_ext <<EOF
8637 #line 8638 "configure"
8638 #include "confdefs.h"
8639 /* System header to define __stub macros and hopefully few prototypes,
8640 which can conflict with char $ac_func(); below. */
8642 /* Override any gcc2 internal prototype to avoid an error. */
8643 /* We use char because int might match the return type of a gcc2
8644 builtin and then its argument prototype would still apply. */
8649 /* The GNU C library defines this for functions which it implements
8650 to always fail with ENOSYS. Some functions are actually named
8651 something starting with __ and the normal name is an alias. */
8652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8660 if { (eval echo configure
:8661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8662 eval "ac_cv_func_$ac_func=yes"
8664 echo "configure: failed program was:" >&5
8665 cat conftest.
$ac_ext >&5
8667 eval "ac_cv_func_$ac_func=no"
8672 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8673 echo "$ac_t""yes" 1>&6
8674 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8675 cat >> confdefs.h
<<EOF
8676 #define $ac_tr_func 1
8680 echo "$ac_t""no" 1>&6
8688 # this bit needs to be modified for each OS that is suported by
8689 # smbwrapper. You need to specify how to created a shared library and
8690 # how to compile C code to produce PIC object files
8692 # these are the defaults, good for lots of systems
8700 # Assume non-shared by default and override below
8702 echo $ac_n "checking ability to build shared libraries""... $ac_c" 1>&6
8703 echo "configure:8704: checking ability to build shared libraries" >&5
8705 # and these are for particular systems
8707 *linux
*) cat >> confdefs.h
<<\EOF
8713 DYNEXP
="-Wl,--export-dynamic"
8715 SONAMEFLAG
="-Wl,-soname="
8716 cat >> confdefs.h
<<\EOF
8717 #define STAT_ST_BLOCKSIZE 512
8721 *solaris
*) cat >> confdefs.h
<<\EOF
8728 if test "${GCC}" = "yes"; then
8730 if test "${ac_cv_prog_gnu_ld}" = "yes"; then
8735 ## ${CFLAGS} added for building 64-bit shared
8736 ## libs using Sun's Compiler
8737 LDSHFLAGS
="-G \${CFLAGS}"
8741 cat >> confdefs.h
<<\EOF
8742 #define STAT_ST_BLOCKSIZE 512
8745 cat >> confdefs.h
<<\EOF
8746 #define BROKEN_GETGRNAM 1
8750 *sunos
*) cat >> confdefs.h
<<\EOF
8756 SONAMEFLAG
="-Wl,-h,"
8757 PICFLAG
="-KPIC" # Is this correct for SunOS
8758 cat >> confdefs.h
<<\EOF
8759 #define STAT_ST_BLOCKSIZE 512
8762 cat >> confdefs.h
<<\EOF
8763 #define BROKEN_GETGRNAM 1
8767 *freebsd
*) BLDSHARED
="true"
8769 DYNEXP
="-Wl,--export-dynamic"
8770 SONAMEFLAG
="-Wl,-soname,"
8771 PICFLAG
="-fPIC -DPIC"
8772 cat >> confdefs.h
<<\EOF
8773 #define STAT_ST_BLOCKSIZE 512
8776 cat >> confdefs.h
<<\EOF
8777 #define BROKEN_GETGRNAM 1
8781 *openbsd
*) BLDSHARED
="true"
8783 DYNEXP
="-Wl,-Bdynamic"
8784 SONAMEFLAG
="-Wl,-soname,"
8786 cat >> confdefs.h
<<\EOF
8787 #define STAT_ST_BLOCKSIZE 512
8790 cat >> confdefs.h
<<\EOF
8791 #define BROKEN_GETGRNAM 1
8795 *irix
*) cat >> confdefs.h
<<\EOF
8800 *irix6
*) cat >> confdefs.h
<<\EOF
8806 ATTEMPT_WRAP32_BUILD
=yes
8808 LDSHFLAGS
="-set_version sgi1.0 -shared"
8809 SONAMEFLAG
="-soname "
8811 if test "${GCC}" = "yes"; then
8816 cat >> confdefs.h
<<\EOF
8817 #define STAT_ST_BLOCKSIZE 512
8821 *aix
*) cat >> confdefs.h
<<\EOF
8826 LDSHFLAGS
="-Wl,-bexpall,-bM:SRE,-bnoentry"
8827 DYNEXP
="-Wl,-brtl,-bexpall"
8829 if test "${GCC}" != "yes"; then
8830 ## for funky AIX compiler using strncpy()
8831 CFLAGS
="$CFLAGS -D_LINUX_SOURCE_COMPAT -qmaxmem=32000"
8834 cat >> confdefs.h
<<\EOF
8835 #define STAT_ST_BLOCKSIZE DEV_BSIZE
8839 *hpux
*) cat >> confdefs.h
<<\EOF
8844 # Use special PIC flags for the native HP-UX compiler.
8845 if test $ac_cv_prog_cc_Ae = yes; then
8848 LDSHFLAGS
="-B symbolic -b -z"
8853 cat >> confdefs.h
<<\EOF
8854 #define STAT_ST_BLOCKSIZE 8192
8857 cat >> confdefs.h
<<\EOF
8858 #define POSIX_ACL_NEEDS_MASK 1
8862 *qnx
*) cat >> confdefs.h
<<\EOF
8866 cat >> confdefs.h
<<\EOF
8867 #define STAT_ST_BLOCKSIZE 512
8871 *osf
*) cat >> confdefs.h
<<\EOF
8877 SONAMEFLAG
="-Wl,-soname,"
8879 cat >> confdefs.h
<<\EOF
8880 #define STAT_ST_BLOCKSIZE 512
8883 cat >> confdefs.h
<<\EOF
8884 #define BROKEN_GETGRNAM 1
8888 *sco
*) cat >> confdefs.h
<<\EOF
8892 cat >> confdefs.h
<<\EOF
8893 #define STAT_ST_BLOCKSIZE 512
8897 *unixware
*) cat >> confdefs.h
<<\EOF
8903 SONAMEFLAG
="-Wl,-soname,"
8905 cat >> confdefs.h
<<\EOF
8906 #define STAT_ST_BLOCKSIZE 512
8910 *next2
*) cat >> confdefs.h
<<\EOF
8914 cat >> confdefs.h
<<\EOF
8915 #define STAT_ST_BLOCKSIZE 512
8919 *dgux
*) # Extract the first word of "groff", so it can be a program name with args.
8920 set dummy
groff; ac_word
=$2
8921 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8922 echo "configure:8923: checking for $ac_word" >&5
8923 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8924 echo $ac_n "(cached) $ac_c" 1>&6
8926 if test -n "$ROFF"; then
8927 ac_cv_prog_ROFF
="$ROFF" # Let the user override the test.
8929 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8931 for ac_dir
in $ac_dummy; do
8932 test -z "$ac_dir" && ac_dir
=.
8933 if test -f $ac_dir/$ac_word; then
8934 ac_cv_prog_ROFF
="groff -etpsR -Tascii -man"
8941 ROFF
="$ac_cv_prog_ROFF"
8942 if test -n "$ROFF"; then
8943 echo "$ac_t""$ROFF" 1>&6
8945 echo "$ac_t""no" 1>&6
8948 cat >> confdefs.h
<<\EOF
8949 #define STAT_ST_BLOCKSIZE 512
8955 *-univel-*) if test "$GCC" != yes ; then
8956 cat >> confdefs.h
<<\EOF
8957 #define HAVE_MEMSET 1
8964 *mips-sni-sysv4
*) cat >> confdefs.h
<<\EOF
8965 #define RELIANTUNIX 1
8969 cat >> confdefs.h
<<\EOF
8970 #define STAT_ST_BLOCKSIZE 512
8975 if test "$GCC" != yes ; then
8976 cat >> confdefs.h
<<\EOF
8977 #define HAVE_MEMSET 1
8982 cat >> confdefs.h
<<\EOF
8983 #define STAT_ST_BLOCKSIZE 512
8987 *vos
*) cat >> confdefs.h
<<\EOF
8988 #define STAT_ST_BLOCKSIZE 4096
8995 cat >> confdefs.h
<<\EOF
8996 #define STAT_ST_BLOCKSIZE 512
9002 echo "$ac_t""$BLDSHARED" 1>&6
9003 echo $ac_n "checking linker flags for shared libraries""... $ac_c" 1>&6
9004 echo "configure:9005: checking linker flags for shared libraries" >&5
9005 echo "$ac_t""$LDSHFLAGS" 1>&6
9006 echo $ac_n "checking compiler flags for position-independent code""... $ac_c" 1>&6
9007 echo "configure:9008: checking compiler flags for position-independent code" >&5
9008 echo "$ac_t""$PICFLAGS" 1>&6
9010 # try to work out how to produce pic code with this compiler
9011 if test x
$PICFLAG = x
; then
9012 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
9013 echo "configure:9014: checking whether ${CC-cc} accepts -fpic" >&5
9014 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
9015 echo $ac_n "(cached) $ac_c" 1>&6
9017 echo 'void f(){}' > conftest.c
9018 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
9019 ac_cv_prog_cc_fpic
=yes
9021 ac_cv_prog_cc_fpic
=no
9027 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
9028 if test $ac_cv_prog_cc_fpic = yes; then
9032 if test x
$PICFLAG = x
; then
9033 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
9034 echo "configure:9035: checking whether ${CC-cc} accepts -KPIC" >&5
9035 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
9036 echo $ac_n "(cached) $ac_c" 1>&6
9038 echo 'void f(){}' > conftest.c
9039 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
9040 ac_cv_prog_cc_KPIC
=yes
9042 ac_cv_prog_cc_KPIC
=no
9048 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
9049 if test $ac_cv_prog_cc_KPIC = yes; then
9053 if test x
$PICFLAG = x
; then
9054 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
9055 echo "configure:9056: checking whether ${CC-cc} accepts -Kpic" >&5
9056 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
9057 echo $ac_n "(cached) $ac_c" 1>&6
9059 echo 'void f(){}' > conftest.c
9060 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
9061 ac_cv_prog_cc_Kpic
=yes
9063 ac_cv_prog_cc_Kpic
=no
9069 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
9070 if test $ac_cv_prog_cc_Kpic = yes; then
9077 echo $ac_n "checking for long long""... $ac_c" 1>&6
9078 echo "configure:9079: checking for long long" >&5
9079 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
9080 echo $ac_n "(cached) $ac_c" 1>&6
9083 if test "$cross_compiling" = yes; then
9084 samba_cv_have_longlong
=cross
9086 cat > conftest.
$ac_ext <<EOF
9087 #line 9088 "configure"
9088 #include "confdefs.h"
9090 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
9092 if { (eval echo configure
:9093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9094 samba_cv_have_longlong
=yes
9096 echo "configure: failed program was:" >&5
9097 cat conftest.
$ac_ext >&5
9099 samba_cv_have_longlong
=no
9106 echo "$ac_t""$samba_cv_have_longlong" 1>&6
9107 if test x
"$samba_cv_have_longlong" = x
"yes"; then
9108 cat >> confdefs.h
<<\EOF
9109 #define HAVE_LONGLONG 1
9115 # Check if the compiler supports the LL prefix on long long integers.
9118 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
9119 echo "configure:9120: checking for LL suffix on long long integers" >&5
9120 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
9121 echo $ac_n "(cached) $ac_c" 1>&6
9124 cat > conftest.
$ac_ext <<EOF
9125 #line 9126 "configure"
9126 #include "confdefs.h"
9129 long long i = 0x8000000000LL
9132 if { (eval echo configure
:9133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9134 samba_cv_compiler_supports_ll
=yes
9136 echo "configure: failed program was:" >&5
9137 cat conftest.
$ac_ext >&5
9139 samba_cv_compiler_supports_ll
=no
9144 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
9145 if test x
"$samba_cv_compiler_supports_ll" = x
"yes"; then
9146 cat >> confdefs.h
<<\EOF
9147 #define COMPILER_SUPPORTS_LL 1
9153 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
9154 echo "configure:9155: checking for 64 bit off_t" >&5
9155 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
9156 echo $ac_n "(cached) $ac_c" 1>&6
9159 if test "$cross_compiling" = yes; then
9160 samba_cv_SIZEOF_OFF_T
=cross
9162 cat > conftest.
$ac_ext <<EOF
9163 #line 9164 "configure"
9164 #include "confdefs.h"
9166 #include <sys/stat.h>
9167 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
9169 if { (eval echo configure
:9170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9171 samba_cv_SIZEOF_OFF_T
=yes
9173 echo "configure: failed program was:" >&5
9174 cat conftest.
$ac_ext >&5
9176 samba_cv_SIZEOF_OFF_T
=no
9183 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
9184 if test x
"$samba_cv_SIZEOF_OFF_T" = x
"yes"; then
9185 cat >> confdefs.h
<<\EOF
9186 #define SIZEOF_OFF_T 8
9191 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
9192 echo "configure:9193: checking for off64_t" >&5
9193 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
9194 echo $ac_n "(cached) $ac_c" 1>&6
9197 if test "$cross_compiling" = yes; then
9198 samba_cv_HAVE_OFF64_T
=cross
9200 cat > conftest.
$ac_ext <<EOF
9201 #line 9202 "configure"
9202 #include "confdefs.h"
9204 #if defined(HAVE_UNISTD_H)
9208 #include <sys/stat.h>
9209 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9211 if { (eval echo configure
:9212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9213 samba_cv_HAVE_OFF64_T
=yes
9215 echo "configure: failed program was:" >&5
9216 cat conftest.
$ac_ext >&5
9218 samba_cv_HAVE_OFF64_T
=no
9225 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
9226 if test x
"$samba_cv_HAVE_OFF64_T" = x
"yes"; then
9227 cat >> confdefs.h
<<\EOF
9228 #define HAVE_OFF64_T 1
9233 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
9234 echo "configure:9235: checking for 64 bit ino_t" >&5
9235 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
9236 echo $ac_n "(cached) $ac_c" 1>&6
9239 if test "$cross_compiling" = yes; then
9240 samba_cv_SIZEOF_INO_T
=cross
9242 cat > conftest.
$ac_ext <<EOF
9243 #line 9244 "configure"
9244 #include "confdefs.h"
9246 #include <sys/stat.h>
9247 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
9249 if { (eval echo configure
:9250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9251 samba_cv_SIZEOF_INO_T
=yes
9253 echo "configure: failed program was:" >&5
9254 cat conftest.
$ac_ext >&5
9256 samba_cv_SIZEOF_INO_T
=no
9263 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
9264 if test x
"$samba_cv_SIZEOF_INO_T" = x
"yes"; then
9265 cat >> confdefs.h
<<\EOF
9266 #define SIZEOF_INO_T 8
9271 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
9272 echo "configure:9273: checking for ino64_t" >&5
9273 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
9274 echo $ac_n "(cached) $ac_c" 1>&6
9277 if test "$cross_compiling" = yes; then
9278 samba_cv_HAVE_INO64_T
=cross
9280 cat > conftest.
$ac_ext <<EOF
9281 #line 9282 "configure"
9282 #include "confdefs.h"
9284 #if defined(HAVE_UNISTD_H)
9288 #include <sys/stat.h>
9289 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9291 if { (eval echo configure
:9292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9293 samba_cv_HAVE_INO64_T
=yes
9295 echo "configure: failed program was:" >&5
9296 cat conftest.
$ac_ext >&5
9298 samba_cv_HAVE_INO64_T
=no
9305 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
9306 if test x
"$samba_cv_HAVE_INO64_T" = x
"yes"; then
9307 cat >> confdefs.h
<<\EOF
9308 #define HAVE_INO64_T 1
9313 echo $ac_n "checking for dev64_t""... $ac_c" 1>&6
9314 echo "configure:9315: checking for dev64_t" >&5
9315 if eval "test \"`echo '$''{'samba_cv_HAVE_DEV64_T'+set}'`\" = set"; then
9316 echo $ac_n "(cached) $ac_c" 1>&6
9319 if test "$cross_compiling" = yes; then
9320 samba_cv_HAVE_DEV64_T
=cross
9322 cat > conftest.
$ac_ext <<EOF
9323 #line 9324 "configure"
9324 #include "confdefs.h"
9326 #if defined(HAVE_UNISTD_H)
9330 #include <sys/stat.h>
9331 main() { struct stat64 st; dev64_t s; if (sizeof(dev_t) == sizeof(dev64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9333 if { (eval echo configure
:9334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9335 samba_cv_HAVE_DEV64_T
=yes
9337 echo "configure: failed program was:" >&5
9338 cat conftest.
$ac_ext >&5
9340 samba_cv_HAVE_DEV64_T
=no
9347 echo "$ac_t""$samba_cv_HAVE_DEV64_T" 1>&6
9348 if test x
"$samba_cv_HAVE_DEV64_T" = x
"yes"; then
9349 cat >> confdefs.h
<<\EOF
9350 #define HAVE_DEV64_T 1
9355 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
9356 echo "configure:9357: checking for struct dirent64" >&5
9357 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
9358 echo $ac_n "(cached) $ac_c" 1>&6
9361 cat > conftest.
$ac_ext <<EOF
9362 #line 9363 "configure"
9363 #include "confdefs.h"
9365 #if defined(HAVE_UNISTD_H)
9368 #include <sys/types.h>
9374 if { (eval echo configure
:9375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9376 samba_cv_HAVE_STRUCT_DIRENT64
=yes
9378 echo "configure: failed program was:" >&5
9379 cat conftest.
$ac_ext >&5
9381 samba_cv_HAVE_STRUCT_DIRENT64
=no
9386 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
9387 if test x
"$samba_cv_HAVE_STRUCT_DIRENT64" = x
"yes" && test x
"$ac_cv_func_readdir64" = x
"yes"; then
9388 cat >> confdefs.h
<<\EOF
9389 #define HAVE_STRUCT_DIRENT64 1
9394 echo $ac_n "checking for major macro""... $ac_c" 1>&6
9395 echo "configure:9396: checking for major macro" >&5
9396 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MAJOR_FN'+set}'`\" = set"; then
9397 echo $ac_n "(cached) $ac_c" 1>&6
9400 if test "$cross_compiling" = yes; then
9401 samba_cv_HAVE_DEVICE_MAJOR_FN
=cross
9403 cat > conftest.
$ac_ext <<EOF
9404 #line 9405 "configure"
9405 #include "confdefs.h"
9407 #if defined(HAVE_UNISTD_H)
9410 #include <sys/types.h>
9411 main() { dev_t dev; int i = major(dev); return 0; }
9413 if { (eval echo configure
:9414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9415 samba_cv_HAVE_DEVICE_MAJOR_FN
=yes
9417 echo "configure: failed program was:" >&5
9418 cat conftest.
$ac_ext >&5
9420 samba_cv_HAVE_DEVICE_MAJOR_FN
=no
9427 echo "$ac_t""$samba_cv_HAVE_DEVICE_MAJOR_FN" 1>&6
9428 if test x
"$samba_cv_HAVE_DEVICE_MAJOR_FN" = x
"yes"; then
9429 cat >> confdefs.h
<<\EOF
9430 #define HAVE_DEVICE_MAJOR_FN 1
9435 echo $ac_n "checking for minor macro""... $ac_c" 1>&6
9436 echo "configure:9437: checking for minor macro" >&5
9437 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MINOR_FN'+set}'`\" = set"; then
9438 echo $ac_n "(cached) $ac_c" 1>&6
9441 if test "$cross_compiling" = yes; then
9442 samba_cv_HAVE_DEVICE_MINOR_FN
=cross
9444 cat > conftest.
$ac_ext <<EOF
9445 #line 9446 "configure"
9446 #include "confdefs.h"
9448 #if defined(HAVE_UNISTD_H)
9451 #include <sys/types.h>
9452 main() { dev_t dev; int i = minor(dev); return 0; }
9454 if { (eval echo configure
:9455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9456 samba_cv_HAVE_DEVICE_MINOR_FN
=yes
9458 echo "configure: failed program was:" >&5
9459 cat conftest.
$ac_ext >&5
9461 samba_cv_HAVE_DEVICE_MINOR_FN
=no
9468 echo "$ac_t""$samba_cv_HAVE_DEVICE_MINOR_FN" 1>&6
9469 if test x
"$samba_cv_HAVE_DEVICE_MINOR_FN" = x
"yes"; then
9470 cat >> confdefs.h
<<\EOF
9471 #define HAVE_DEVICE_MINOR_FN 1
9476 echo $ac_n "checking for makedev macro""... $ac_c" 1>&6
9477 echo "configure:9478: checking for makedev macro" >&5
9478 if eval "test \"`echo '$''{'samba_cv_HAVE_MAKEDEV_FN'+set}'`\" = set"; then
9479 echo $ac_n "(cached) $ac_c" 1>&6
9482 if test "$cross_compiling" = yes; then
9483 samba_cv_HAVE_MAKEDEV_FN
=cross
9485 cat > conftest.
$ac_ext <<EOF
9486 #line 9487 "configure"
9487 #include "confdefs.h"
9489 #if defined(HAVE_UNISTD_H)
9492 #include <sys/types.h>
9493 main() { dev_t dev = makedev(1,2); return 0; }
9495 if { (eval echo configure
:9496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9497 samba_cv_HAVE_MAKEDEV_FN
=yes
9499 echo "configure: failed program was:" >&5
9500 cat conftest.
$ac_ext >&5
9502 samba_cv_HAVE_MAKEDEV_FN
=no
9509 echo "$ac_t""$samba_cv_HAVE_MAKEDEV_FN" 1>&6
9510 if test x
"$samba_cv_HAVE_MAKEDEV_FN" = x
"yes"; then
9511 cat >> confdefs.h
<<\EOF
9512 #define MAKEDEV_FN 1
9517 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
9518 echo "configure:9519: checking for unsigned char" >&5
9519 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
9520 echo $ac_n "(cached) $ac_c" 1>&6
9523 if test "$cross_compiling" = yes; then
9524 samba_cv_HAVE_UNSIGNED_CHAR
=cross
9526 cat > conftest.
$ac_ext <<EOF
9527 #line 9528 "configure"
9528 #include "confdefs.h"
9530 main() { char c; c=250; exit((c > 0)?0:1); }
9532 if { (eval echo configure
:9533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9534 samba_cv_HAVE_UNSIGNED_CHAR
=yes
9536 echo "configure: failed program was:" >&5
9537 cat conftest.
$ac_ext >&5
9539 samba_cv_HAVE_UNSIGNED_CHAR
=no
9546 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
9547 if test x
"$samba_cv_HAVE_UNSIGNED_CHAR" = x
"yes"; then
9548 cat >> confdefs.h
<<\EOF
9549 #define HAVE_UNSIGNED_CHAR 1
9554 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
9555 echo "configure:9556: checking for sin_len in sock" >&5
9556 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
9557 echo $ac_n "(cached) $ac_c" 1>&6
9560 cat > conftest.
$ac_ext <<EOF
9561 #line 9562 "configure"
9562 #include "confdefs.h"
9563 #include <sys/types.h>
9564 #include <sys/socket.h>
9565 #include <netinet/in.h>
9567 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
9570 if { (eval echo configure
:9571: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9572 samba_cv_HAVE_SOCK_SIN_LEN
=yes
9574 echo "configure: failed program was:" >&5
9575 cat conftest.
$ac_ext >&5
9577 samba_cv_HAVE_SOCK_SIN_LEN
=no
9582 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
9583 if test x
"$samba_cv_HAVE_SOCK_SIN_LEN" = x
"yes"; then
9584 cat >> confdefs.h
<<\EOF
9585 #define HAVE_SOCK_SIN_LEN 1
9590 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
9591 echo "configure:9592: checking whether seekdir returns void" >&5
9592 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
9593 echo $ac_n "(cached) $ac_c" 1>&6
9596 cat > conftest.
$ac_ext <<EOF
9597 #line 9598 "configure"
9598 #include "confdefs.h"
9599 #include <sys/types.h>
9601 void seekdir(DIR *d, long loc) { return; }
9606 if { (eval echo configure
:9607: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9608 samba_cv_SEEKDIR_RETURNS_VOID
=yes
9610 echo "configure: failed program was:" >&5
9611 cat conftest.
$ac_ext >&5
9613 samba_cv_SEEKDIR_RETURNS_VOID
=no
9618 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
9619 if test x
"$samba_cv_SEEKDIR_RETURNS_VOID" = x
"yes"; then
9620 cat >> confdefs.h
<<\EOF
9621 #define SEEKDIR_RETURNS_VOID 1
9626 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
9627 echo "configure:9628: checking for __FILE__ macro" >&5
9628 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
9629 echo $ac_n "(cached) $ac_c" 1>&6
9632 cat > conftest.
$ac_ext <<EOF
9633 #line 9634 "configure"
9634 #include "confdefs.h"
9637 printf("%s\n", __FILE__);
9640 if { (eval echo configure
:9641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9642 samba_cv_HAVE_FILE_MACRO
=yes
9644 echo "configure: failed program was:" >&5
9645 cat conftest.
$ac_ext >&5
9647 samba_cv_HAVE_FILE_MACRO
=no
9652 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
9653 if test x
"$samba_cv_HAVE_FILE_MACRO" = x
"yes"; then
9654 cat >> confdefs.h
<<\EOF
9655 #define HAVE_FILE_MACRO 1
9660 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9661 echo "configure:9662: checking for __FUNCTION__ macro" >&5
9662 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9663 echo $ac_n "(cached) $ac_c" 1>&6
9666 cat > conftest.
$ac_ext <<EOF
9667 #line 9668 "configure"
9668 #include "confdefs.h"
9671 printf("%s\n", __FUNCTION__);
9674 if { (eval echo configure
:9675: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9676 samba_cv_HAVE_FUNCTION_MACRO
=yes
9678 echo "configure: failed program was:" >&5
9679 cat conftest.
$ac_ext >&5
9681 samba_cv_HAVE_FUNCTION_MACRO
=no
9686 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9687 if test x
"$samba_cv_HAVE_FUNCTION_MACRO" = x
"yes"; then
9688 cat >> confdefs.h
<<\EOF
9689 #define HAVE_FUNCTION_MACRO 1
9694 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9695 echo "configure:9696: checking if gettimeofday takes tz argument" >&5
9696 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9697 echo $ac_n "(cached) $ac_c" 1>&6
9700 if test "$cross_compiling" = yes; then
9701 samba_cv_HAVE_GETTIMEOFDAY_TZ
=cross
9703 cat > conftest.
$ac_ext <<EOF
9704 #line 9705 "configure"
9705 #include "confdefs.h"
9707 #include <sys/time.h>
9709 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9711 if { (eval echo configure
:9712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9713 samba_cv_HAVE_GETTIMEOFDAY_TZ
=yes
9715 echo "configure: failed program was:" >&5
9716 cat conftest.
$ac_ext >&5
9718 samba_cv_HAVE_GETTIMEOFDAY_TZ
=no
9725 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9726 if test x
"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x
"yes"; then
9727 cat >> confdefs.h
<<\EOF
9728 #define HAVE_GETTIMEOFDAY_TZ 1
9733 echo $ac_n "checking for __va_copy""... $ac_c" 1>&6
9734 echo "configure:9735: checking for __va_copy" >&5
9735 if eval "test \"`echo '$''{'samba_cv_HAVE_VA_COPY'+set}'`\" = set"; then
9736 echo $ac_n "(cached) $ac_c" 1>&6
9739 cat > conftest.
$ac_ext <<EOF
9740 #line 9741 "configure"
9741 #include "confdefs.h"
9748 if { (eval echo configure
:9749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9750 samba_cv_HAVE_VA_COPY
=yes
9752 echo "configure: failed program was:" >&5
9753 cat conftest.
$ac_ext >&5
9755 samba_cv_HAVE_VA_COPY
=no
9760 echo "$ac_t""$samba_cv_HAVE_VA_COPY" 1>&6
9761 if test x
"$samba_cv_HAVE_VA_COPY" = x
"yes"; then
9762 cat >> confdefs.h
<<\EOF
9763 #define HAVE_VA_COPY 1
9768 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
9769 echo "configure:9770: checking for C99 vsnprintf" >&5
9770 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
9771 echo $ac_n "(cached) $ac_c" 1>&6
9774 if test "$cross_compiling" = yes; then
9775 samba_cv_HAVE_C99_VSNPRINTF
=cross
9777 cat > conftest.
$ac_ext <<EOF
9778 #line 9779 "configure"
9779 #include "confdefs.h"
9781 #include <sys/types.h>
9783 void foo(const char *format, ...) {
9788 va_start(ap, format);
9789 len = vsnprintf(buf, 0, format, ap);
9791 if (len != 5) exit(1);
9793 va_start(ap, format);
9794 len = vsnprintf(0, 0, format, ap);
9796 if (len != 5) exit(1);
9798 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
9802 main() { foo("hello"); }
9805 if { (eval echo configure
:9806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9807 samba_cv_HAVE_C99_VSNPRINTF
=yes
9809 echo "configure: failed program was:" >&5
9810 cat conftest.
$ac_ext >&5
9812 samba_cv_HAVE_C99_VSNPRINTF
=no
9819 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
9820 if test x
"$samba_cv_HAVE_C99_VSNPRINTF" = x
"yes"; then
9821 cat >> confdefs.h
<<\EOF
9822 #define HAVE_C99_VSNPRINTF 1
9827 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9828 echo "configure:9829: checking for broken readdir" >&5
9829 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9830 echo $ac_n "(cached) $ac_c" 1>&6
9833 if test "$cross_compiling" = yes; then
9834 samba_cv_HAVE_BROKEN_READDIR
=cross
9836 cat > conftest.
$ac_ext <<EOF
9837 #line 9838 "configure"
9838 #include "confdefs.h"
9839 #include <sys/types.h>
9841 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9842 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9843 di->d_name[0] == 0) exit(0); exit(1);}
9845 if { (eval echo configure
:9846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9847 samba_cv_HAVE_BROKEN_READDIR
=yes
9849 echo "configure: failed program was:" >&5
9850 cat conftest.
$ac_ext >&5
9852 samba_cv_HAVE_BROKEN_READDIR
=no
9859 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9860 if test x
"$samba_cv_HAVE_BROKEN_READDIR" = x
"yes"; then
9861 cat >> confdefs.h
<<\EOF
9862 #define HAVE_BROKEN_READDIR 1
9867 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9868 echo "configure:9869: checking for utimbuf" >&5
9869 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9870 echo $ac_n "(cached) $ac_c" 1>&6
9873 cat > conftest.
$ac_ext <<EOF
9874 #line 9875 "configure"
9875 #include "confdefs.h"
9876 #include <sys/types.h>
9879 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9882 if { (eval echo configure
:9883: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9884 samba_cv_HAVE_UTIMBUF
=yes
9886 echo "configure: failed program was:" >&5
9887 cat conftest.
$ac_ext >&5
9889 samba_cv_HAVE_UTIMBUF
=no
9894 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9895 if test x
"$samba_cv_HAVE_UTIMBUF" = x
"yes"; then
9896 cat >> confdefs.h
<<\EOF
9897 #define HAVE_UTIMBUF 1
9903 for ac_func
in pututline pututxline updwtmp updwtmpx getutmpx
9905 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9906 echo "configure:9907: checking for $ac_func" >&5
9907 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9908 echo $ac_n "(cached) $ac_c" 1>&6
9910 cat > conftest.
$ac_ext <<EOF
9911 #line 9912 "configure"
9912 #include "confdefs.h"
9913 /* System header to define __stub macros and hopefully few prototypes,
9914 which can conflict with char $ac_func(); below. */
9916 /* Override any gcc2 internal prototype to avoid an error. */
9917 /* We use char because int might match the return type of a gcc2
9918 builtin and then its argument prototype would still apply. */
9923 /* The GNU C library defines this for functions which it implements
9924 to always fail with ENOSYS. Some functions are actually named
9925 something starting with __ and the normal name is an alias. */
9926 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9934 if { (eval echo configure
:9935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9936 eval "ac_cv_func_$ac_func=yes"
9938 echo "configure: failed program was:" >&5
9939 cat conftest.
$ac_ext >&5
9941 eval "ac_cv_func_$ac_func=no"
9946 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9947 echo "$ac_t""yes" 1>&6
9948 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9949 cat >> confdefs.h
<<EOF
9950 #define $ac_tr_func 1
9954 echo "$ac_t""no" 1>&6
9959 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9960 echo "configure:9961: checking for ut_name in utmp" >&5
9961 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9962 echo $ac_n "(cached) $ac_c" 1>&6
9965 cat > conftest.
$ac_ext <<EOF
9966 #line 9967 "configure"
9967 #include "confdefs.h"
9968 #include <sys/types.h>
9971 struct utmp ut; ut.ut_name[0] = 'a';
9974 if { (eval echo configure
:9975: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9976 samba_cv_HAVE_UT_UT_NAME
=yes
9978 echo "configure: failed program was:" >&5
9979 cat conftest.
$ac_ext >&5
9981 samba_cv_HAVE_UT_UT_NAME
=no
9986 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9987 if test x
"$samba_cv_HAVE_UT_UT_NAME" = x
"yes"; then
9988 cat >> confdefs.h
<<\EOF
9989 #define HAVE_UT_UT_NAME 1
9994 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
9995 echo "configure:9996: checking for ut_user in utmp" >&5
9996 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
9997 echo $ac_n "(cached) $ac_c" 1>&6
10000 cat > conftest.
$ac_ext <<EOF
10001 #line 10002 "configure"
10002 #include "confdefs.h"
10003 #include <sys/types.h>
10006 struct utmp ut; ut.ut_user[0] = 'a';
10009 if { (eval echo configure
:10010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10011 samba_cv_HAVE_UT_UT_USER
=yes
10013 echo "configure: failed program was:" >&5
10014 cat conftest.
$ac_ext >&5
10016 samba_cv_HAVE_UT_UT_USER
=no
10021 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
10022 if test x
"$samba_cv_HAVE_UT_UT_USER" = x
"yes"; then
10023 cat >> confdefs.h
<<\EOF
10024 #define HAVE_UT_UT_USER 1
10029 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
10030 echo "configure:10031: checking for ut_id in utmp" >&5
10031 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
10032 echo $ac_n "(cached) $ac_c" 1>&6
10035 cat > conftest.
$ac_ext <<EOF
10036 #line 10037 "configure"
10037 #include "confdefs.h"
10038 #include <sys/types.h>
10041 struct utmp ut; ut.ut_id[0] = 'a';
10044 if { (eval echo configure
:10045: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10046 samba_cv_HAVE_UT_UT_ID
=yes
10048 echo "configure: failed program was:" >&5
10049 cat conftest.
$ac_ext >&5
10051 samba_cv_HAVE_UT_UT_ID
=no
10056 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
10057 if test x
"$samba_cv_HAVE_UT_UT_ID" = x
"yes"; then
10058 cat >> confdefs.h
<<\EOF
10059 #define HAVE_UT_UT_ID 1
10064 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
10065 echo "configure:10066: checking for ut_host in utmp" >&5
10066 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
10067 echo $ac_n "(cached) $ac_c" 1>&6
10070 cat > conftest.
$ac_ext <<EOF
10071 #line 10072 "configure"
10072 #include "confdefs.h"
10073 #include <sys/types.h>
10076 struct utmp ut; ut.ut_host[0] = 'a';
10079 if { (eval echo configure
:10080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10081 samba_cv_HAVE_UT_UT_HOST
=yes
10083 echo "configure: failed program was:" >&5
10084 cat conftest.
$ac_ext >&5
10086 samba_cv_HAVE_UT_UT_HOST
=no
10091 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
10092 if test x
"$samba_cv_HAVE_UT_UT_HOST" = x
"yes"; then
10093 cat >> confdefs.h
<<\EOF
10094 #define HAVE_UT_UT_HOST 1
10099 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
10100 echo "configure:10101: checking for ut_time in utmp" >&5
10101 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
10102 echo $ac_n "(cached) $ac_c" 1>&6
10105 cat > conftest.
$ac_ext <<EOF
10106 #line 10107 "configure"
10107 #include "confdefs.h"
10108 #include <sys/types.h>
10111 struct utmp ut; time_t t; ut.ut_time = t;
10114 if { (eval echo configure
:10115: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10116 samba_cv_HAVE_UT_UT_TIME
=yes
10118 echo "configure: failed program was:" >&5
10119 cat conftest.
$ac_ext >&5
10121 samba_cv_HAVE_UT_UT_TIME
=no
10126 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
10127 if test x
"$samba_cv_HAVE_UT_UT_TIME" = x
"yes"; then
10128 cat >> confdefs.h
<<\EOF
10129 #define HAVE_UT_UT_TIME 1
10134 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
10135 echo "configure:10136: checking for ut_tv in utmp" >&5
10136 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
10137 echo $ac_n "(cached) $ac_c" 1>&6
10140 cat > conftest.
$ac_ext <<EOF
10141 #line 10142 "configure"
10142 #include "confdefs.h"
10143 #include <sys/types.h>
10146 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
10149 if { (eval echo configure
:10150: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10151 samba_cv_HAVE_UT_UT_TV
=yes
10153 echo "configure: failed program was:" >&5
10154 cat conftest.
$ac_ext >&5
10156 samba_cv_HAVE_UT_UT_TV
=no
10161 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
10162 if test x
"$samba_cv_HAVE_UT_UT_TV" = x
"yes"; then
10163 cat >> confdefs.h
<<\EOF
10164 #define HAVE_UT_UT_TV 1
10169 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
10170 echo "configure:10171: checking for ut_type in utmp" >&5
10171 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
10172 echo $ac_n "(cached) $ac_c" 1>&6
10175 cat > conftest.
$ac_ext <<EOF
10176 #line 10177 "configure"
10177 #include "confdefs.h"
10178 #include <sys/types.h>
10181 struct utmp ut; ut.ut_type = 0;
10184 if { (eval echo configure
:10185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10186 samba_cv_HAVE_UT_UT_TYPE
=yes
10188 echo "configure: failed program was:" >&5
10189 cat conftest.
$ac_ext >&5
10191 samba_cv_HAVE_UT_UT_TYPE
=no
10196 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
10197 if test x
"$samba_cv_HAVE_UT_UT_TYPE" = x
"yes"; then
10198 cat >> confdefs.h
<<\EOF
10199 #define HAVE_UT_UT_TYPE 1
10204 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
10205 echo "configure:10206: checking for ut_pid in utmp" >&5
10206 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
10207 echo $ac_n "(cached) $ac_c" 1>&6
10210 cat > conftest.
$ac_ext <<EOF
10211 #line 10212 "configure"
10212 #include "confdefs.h"
10213 #include <sys/types.h>
10216 struct utmp ut; ut.ut_pid = 0;
10219 if { (eval echo configure
:10220: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10221 samba_cv_HAVE_UT_UT_PID
=yes
10223 echo "configure: failed program was:" >&5
10224 cat conftest.
$ac_ext >&5
10226 samba_cv_HAVE_UT_UT_PID
=no
10231 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
10232 if test x
"$samba_cv_HAVE_UT_UT_PID" = x
"yes"; then
10233 cat >> confdefs.h
<<\EOF
10234 #define HAVE_UT_UT_PID 1
10239 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
10240 echo "configure:10241: checking for ut_exit in utmp" >&5
10241 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
10242 echo $ac_n "(cached) $ac_c" 1>&6
10245 cat > conftest.
$ac_ext <<EOF
10246 #line 10247 "configure"
10247 #include "confdefs.h"
10248 #include <sys/types.h>
10251 struct utmp ut; ut.ut_exit.e_exit = 0;
10254 if { (eval echo configure
:10255: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10256 samba_cv_HAVE_UT_UT_EXIT
=yes
10258 echo "configure: failed program was:" >&5
10259 cat conftest.
$ac_ext >&5
10261 samba_cv_HAVE_UT_UT_EXIT
=no
10266 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
10267 if test x
"$samba_cv_HAVE_UT_UT_EXIT" = x
"yes"; then
10268 cat >> confdefs.h
<<\EOF
10269 #define HAVE_UT_UT_EXIT 1
10274 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
10275 echo "configure:10276: checking for ut_addr in utmp" >&5
10276 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
10277 echo $ac_n "(cached) $ac_c" 1>&6
10280 cat > conftest.
$ac_ext <<EOF
10281 #line 10282 "configure"
10282 #include "confdefs.h"
10283 #include <sys/types.h>
10286 struct utmp ut; ut.ut_addr = 0;
10289 if { (eval echo configure
:10290: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10291 samba_cv_HAVE_UT_UT_ADDR
=yes
10293 echo "configure: failed program was:" >&5
10294 cat conftest.
$ac_ext >&5
10296 samba_cv_HAVE_UT_UT_ADDR
=no
10301 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
10302 if test x
"$samba_cv_HAVE_UT_UT_ADDR" = x
"yes"; then
10303 cat >> confdefs.h
<<\EOF
10304 #define HAVE_UT_UT_ADDR 1
10309 if test x
$ac_cv_func_pututline = xyes
; then
10310 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
10311 echo "configure:10312: checking whether pututline returns pointer" >&5
10312 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
10313 echo $ac_n "(cached) $ac_c" 1>&6
10316 cat > conftest.
$ac_ext <<EOF
10317 #line 10318 "configure"
10318 #include "confdefs.h"
10319 #include <sys/types.h>
10322 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
10325 if { (eval echo configure
:10326: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10327 samba_cv_PUTUTLINE_RETURNS_UTMP
=yes
10329 echo "configure: failed program was:" >&5
10330 cat conftest.
$ac_ext >&5
10332 samba_cv_PUTUTLINE_RETURNS_UTMP
=no
10337 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
10338 if test x
"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x
"yes"; then
10339 cat >> confdefs.h
<<\EOF
10340 #define PUTUTLINE_RETURNS_UTMP 1
10346 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
10347 echo "configure:10348: checking for ut_syslen in utmpx" >&5
10348 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
10349 echo $ac_n "(cached) $ac_c" 1>&6
10352 cat > conftest.
$ac_ext <<EOF
10353 #line 10354 "configure"
10354 #include "confdefs.h"
10355 #include <sys/types.h>
10358 struct utmpx ux; ux.ut_syslen = 0;
10361 if { (eval echo configure
:10362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10363 samba_cv_HAVE_UX_UT_SYSLEN
=yes
10365 echo "configure: failed program was:" >&5
10366 cat conftest.
$ac_ext >&5
10368 samba_cv_HAVE_UX_UT_SYSLEN
=no
10373 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
10374 if test x
"$samba_cv_HAVE_UX_UT_SYSLEN" = x
"yes"; then
10375 cat >> confdefs.h
<<\EOF
10376 #define HAVE_UX_UT_SYSLEN 1
10381 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
10382 echo "configure:10383: checking for Linux kernel oplocks" >&5
10383 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
10384 echo $ac_n "(cached) $ac_c" 1>&6
10387 if test "$cross_compiling" = yes; then
10388 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=cross
10390 cat > conftest.
$ac_ext <<EOF
10391 #line 10392 "configure"
10392 #include "confdefs.h"
10394 #include <sys/types.h>
10397 #define F_GETLEASE 1025
10400 int fd = open("/dev/null", O_RDONLY);
10401 return fcntl(fd, F_GETLEASE, 0) == -1;
10405 if { (eval echo configure
:10406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10407 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=yes
10409 echo "configure: failed program was:" >&5
10410 cat conftest.
$ac_ext >&5
10412 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=no
10419 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
10420 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x
"yes"; then
10421 cat >> confdefs.h
<<\EOF
10422 #define HAVE_KERNEL_OPLOCKS_LINUX 1
10427 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
10428 echo "configure:10429: checking for kernel change notify support" >&5
10429 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
10430 echo $ac_n "(cached) $ac_c" 1>&6
10433 if test "$cross_compiling" = yes; then
10434 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=cross
10436 cat > conftest.
$ac_ext <<EOF
10437 #line 10438 "configure"
10438 #include "confdefs.h"
10440 #include <sys/types.h>
10442 #include <signal.h>
10444 #define F_NOTIFY 1026
10447 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
10451 if { (eval echo configure
:10452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10453 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=yes
10455 echo "configure: failed program was:" >&5
10456 cat conftest.
$ac_ext >&5
10458 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=no
10465 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
10466 if test x
"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x
"yes" && test x
"$target_cpu" != x
"s390"; then
10467 cat >> confdefs.h
<<\EOF
10468 #define HAVE_KERNEL_CHANGE_NOTIFY 1
10473 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
10474 echo "configure:10475: checking for kernel share modes" >&5
10475 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
10476 echo $ac_n "(cached) $ac_c" 1>&6
10479 if test "$cross_compiling" = yes; then
10480 samba_cv_HAVE_KERNEL_SHARE_MODES
=cross
10482 cat > conftest.
$ac_ext <<EOF
10483 #line 10484 "configure"
10484 #include "confdefs.h"
10486 #include <sys/types.h>
10488 #include <signal.h>
10489 #include <sys/file.h>
10491 #define LOCK_MAND 32
10492 #define LOCK_READ 64
10495 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
10499 if { (eval echo configure
:10500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10501 samba_cv_HAVE_KERNEL_SHARE_MODES
=yes
10503 echo "configure: failed program was:" >&5
10504 cat conftest.
$ac_ext >&5
10506 samba_cv_HAVE_KERNEL_SHARE_MODES
=no
10513 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
10514 if test x
"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x
"yes"; then
10515 cat >> confdefs.h
<<\EOF
10516 #define HAVE_KERNEL_SHARE_MODES 1
10524 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
10525 echo "configure:10526: checking for IRIX kernel oplock type definitions" >&5
10526 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
10527 echo $ac_n "(cached) $ac_c" 1>&6
10530 cat > conftest.
$ac_ext <<EOF
10531 #line 10532 "configure"
10532 #include "confdefs.h"
10533 #include <sys/types.h>
10536 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
10539 if { (eval echo configure
:10540: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10541 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=yes
10543 echo "configure: failed program was:" >&5
10544 cat conftest.
$ac_ext >&5
10546 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=no
10551 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
10552 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x
"yes"; then
10553 cat >> confdefs.h
<<\EOF
10554 #define HAVE_KERNEL_OPLOCKS_IRIX 1
10559 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
10560 echo "configure:10561: checking for irix specific capabilities" >&5
10561 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
10562 echo $ac_n "(cached) $ac_c" 1>&6
10565 if test "$cross_compiling" = yes; then
10566 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=cross
10568 cat > conftest.
$ac_ext <<EOF
10569 #line 10570 "configure"
10570 #include "confdefs.h"
10571 #include <sys/types.h>
10572 #include <sys/capability.h>
10575 if ((cap = cap_get_proc()) == NULL)
10577 cap->cap_effective |= CAP_NETWORK_MGT;
10578 cap->cap_inheritable |= CAP_NETWORK_MGT;
10584 if { (eval echo configure
:10585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10586 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=yes
10588 echo "configure: failed program was:" >&5
10589 cat conftest.
$ac_ext >&5
10591 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=no
10598 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
10599 if test x
"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x
"yes"; then
10600 cat >> confdefs.h
<<\EOF
10601 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
10607 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
10608 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
10611 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10612 echo "configure:10613: checking for int16 typedef included by rpc/rpc.h" >&5
10613 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10614 echo $ac_n "(cached) $ac_c" 1>&6
10617 cat > conftest.
$ac_ext <<EOF
10618 #line 10619 "configure"
10619 #include "confdefs.h"
10620 #include <sys/types.h>
10621 #if defined(HAVE_RPC_RPC_H)
10622 #include <rpc/rpc.h>
10628 if { (eval echo configure
:10629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10630 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=yes
10632 echo "configure: failed program was:" >&5
10633 cat conftest.
$ac_ext >&5
10635 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=no
10640 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
10641 if test x
"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x
"yes"; then
10642 cat >> confdefs.h
<<\EOF
10643 #define HAVE_INT16_FROM_RPC_RPC_H 1
10648 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10649 echo "configure:10650: checking for uint16 typedef included by rpc/rpc.h" >&5
10650 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10651 echo $ac_n "(cached) $ac_c" 1>&6
10654 cat > conftest.
$ac_ext <<EOF
10655 #line 10656 "configure"
10656 #include "confdefs.h"
10657 #include <sys/types.h>
10658 #if defined(HAVE_RPC_RPC_H)
10659 #include <rpc/rpc.h>
10665 if { (eval echo configure
:10666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10667 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=yes
10669 echo "configure: failed program was:" >&5
10670 cat conftest.
$ac_ext >&5
10672 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=no
10677 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
10678 if test x
"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x
"yes"; then
10679 cat >> confdefs.h
<<\EOF
10680 #define HAVE_UINT16_FROM_RPC_RPC_H 1
10685 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10686 echo "configure:10687: checking for int32 typedef included by rpc/rpc.h" >&5
10687 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10688 echo $ac_n "(cached) $ac_c" 1>&6
10691 cat > conftest.
$ac_ext <<EOF
10692 #line 10693 "configure"
10693 #include "confdefs.h"
10694 #include <sys/types.h>
10695 #if defined(HAVE_RPC_RPC_H)
10696 #include <rpc/rpc.h>
10702 if { (eval echo configure
:10703: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10704 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=yes
10706 echo "configure: failed program was:" >&5
10707 cat conftest.
$ac_ext >&5
10709 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=no
10714 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
10715 if test x
"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x
"yes"; then
10716 cat >> confdefs.h
<<\EOF
10717 #define HAVE_INT32_FROM_RPC_RPC_H 1
10722 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10723 echo "configure:10724: checking for uint32 typedef included by rpc/rpc.h" >&5
10724 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10725 echo $ac_n "(cached) $ac_c" 1>&6
10728 cat > conftest.
$ac_ext <<EOF
10729 #line 10730 "configure"
10730 #include "confdefs.h"
10731 #include <sys/types.h>
10732 #if defined(HAVE_RPC_RPC_H)
10733 #include <rpc/rpc.h>
10739 if { (eval echo configure
:10740: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10741 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=yes
10743 echo "configure: failed program was:" >&5
10744 cat conftest.
$ac_ext >&5
10746 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=no
10751 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
10752 if test x
"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x
"yes"; then
10753 cat >> confdefs.h
<<\EOF
10754 #define HAVE_UINT32_FROM_RPC_RPC_H 1
10760 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
10761 echo "configure:10762: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
10762 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
10763 echo $ac_n "(cached) $ac_c" 1>&6
10766 cat > conftest.
$ac_ext <<EOF
10767 #line 10768 "configure"
10768 #include "confdefs.h"
10769 #include <sys/types.h>
10770 #ifdef HAVE_SYS_SECURITY_H
10771 #include <sys/security.h>
10773 #endif /* HAVE_SYS_SECURITY_H */
10774 #if defined(HAVE_RPC_RPC_H)
10775 #include <rpc/rpc.h>
10781 if { (eval echo configure
:10782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10783 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=no
10785 echo "configure: failed program was:" >&5
10786 cat conftest.
$ac_ext >&5
10788 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=yes
10793 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
10794 if test x
"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x
"yes"; then
10795 cat >> confdefs.h
<<\EOF
10796 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
10801 echo $ac_n "checking for test routines""... $ac_c" 1>&6
10802 echo "configure:10803: checking for test routines" >&5
10803 if test "$cross_compiling" = yes; then
10804 echo "configure: warning: cannot run when cross-compiling" 1>&2
10806 cat > conftest.
$ac_ext <<EOF
10807 #line 10808 "configure"
10808 #include "confdefs.h"
10809 #include "${srcdir-.}/tests/trivial.c"
10811 if { (eval echo configure
:10812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10813 echo "$ac_t""yes" 1>&6
10815 echo "configure: failed program was:" >&5
10816 cat conftest.
$ac_ext >&5
10818 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10824 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10825 echo "configure:10826: checking for ftruncate extend" >&5
10826 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10827 echo $ac_n "(cached) $ac_c" 1>&6
10830 if test "$cross_compiling" = yes; then
10831 samba_cv_HAVE_FTRUNCATE_EXTEND
=cross
10833 cat > conftest.
$ac_ext <<EOF
10834 #line 10835 "configure"
10835 #include "confdefs.h"
10836 #include "${srcdir-.}/tests/ftruncate.c"
10838 if { (eval echo configure
:10839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10840 samba_cv_HAVE_FTRUNCATE_EXTEND
=yes
10842 echo "configure: failed program was:" >&5
10843 cat conftest.
$ac_ext >&5
10845 samba_cv_HAVE_FTRUNCATE_EXTEND
=no
10852 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10853 if test x
"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x
"yes"; then
10854 cat >> confdefs.h
<<\EOF
10855 #define HAVE_FTRUNCATE_EXTEND 1
10860 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10861 echo "configure:10862: checking for broken getgroups" >&5
10862 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10863 echo $ac_n "(cached) $ac_c" 1>&6
10866 if test "$cross_compiling" = yes; then
10867 samba_cv_HAVE_BROKEN_GETGROUPS
=cross
10869 cat > conftest.
$ac_ext <<EOF
10870 #line 10871 "configure"
10871 #include "confdefs.h"
10872 #include "${srcdir-.}/tests/getgroups.c"
10874 if { (eval echo configure
:10875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10876 samba_cv_HAVE_BROKEN_GETGROUPS
=yes
10878 echo "configure: failed program was:" >&5
10879 cat conftest.
$ac_ext >&5
10881 samba_cv_HAVE_BROKEN_GETGROUPS
=no
10888 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
10889 if test x
"$samba_cv_HAVE_BROKEN_GETGROUPS" = x
"yes"; then
10890 cat >> confdefs.h
<<\EOF
10891 #define HAVE_BROKEN_GETGROUPS 1
10896 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
10897 echo "configure:10898: checking whether getpass should be replaced" >&5
10898 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
10899 echo $ac_n "(cached) $ac_c" 1>&6
10902 SAVE_CPPFLAGS
="$CPPFLAGS"
10903 CPPFLAGS
="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/popt -I${srcdir-.}/smbwrapper"
10904 cat > conftest.
$ac_ext <<EOF
10905 #line 10906 "configure"
10906 #include "confdefs.h"
10908 #define REPLACE_GETPASS 1
10909 #define NO_CONFIG_H 1
10910 #define main dont_declare_main
10911 #include "${srcdir-.}/lib/getsmbpass.c"
10918 if { (eval echo configure
:10919: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10920 samba_cv_REPLACE_GETPASS
=yes
10922 echo "configure: failed program was:" >&5
10923 cat conftest.
$ac_ext >&5
10925 samba_cv_REPLACE_GETPASS
=no
10928 CPPFLAGS
="$SAVE_CPPFLAGS"
10932 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
10933 if test x
"$samba_cv_REPLACE_GETPASS" = x
"yes"; then
10934 cat >> confdefs.h
<<\EOF
10935 #define REPLACE_GETPASS 1
10940 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
10941 echo "configure:10942: checking for broken inet_ntoa" >&5
10942 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
10943 echo $ac_n "(cached) $ac_c" 1>&6
10946 if test "$cross_compiling" = yes; then
10947 samba_cv_REPLACE_INET_NTOA
=cross
10949 cat > conftest.
$ac_ext <<EOF
10950 #line 10951 "configure"
10951 #include "confdefs.h"
10954 #include <sys/types.h>
10955 #include <netinet/in.h>
10956 #ifdef HAVE_ARPA_INET_H
10957 #include <arpa/inet.h>
10959 main() { struct in_addr ip; ip.s_addr = 0x12345678;
10960 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
10961 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
10964 if { (eval echo configure
:10965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10966 samba_cv_REPLACE_INET_NTOA
=yes
10968 echo "configure: failed program was:" >&5
10969 cat conftest.
$ac_ext >&5
10971 samba_cv_REPLACE_INET_NTOA
=no
10978 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
10979 if test x
"$samba_cv_REPLACE_INET_NTOA" = x
"yes"; then
10980 cat >> confdefs.h
<<\EOF
10981 #define REPLACE_INET_NTOA 1
10986 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
10987 echo "configure:10988: checking for secure mkstemp" >&5
10988 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
10989 echo $ac_n "(cached) $ac_c" 1>&6
10992 if test "$cross_compiling" = yes; then
10993 samba_cv_HAVE_SECURE_MKSTEMP
=cross
10995 cat > conftest.
$ac_ext <<EOF
10996 #line 10997 "configure"
10997 #include "confdefs.h"
10998 #include <stdlib.h>
10999 #include <sys/types.h>
11000 #include <sys/stat.h>
11001 #include <unistd.h>
11004 char tpl[20]="/tmp/test.XXXXXX";
11005 int fd = mkstemp(tpl);
11006 if (fd == -1) exit(1);
11008 if (fstat(fd, &st) != 0) exit(1);
11009 if ((st.st_mode & 0777) != 0600) exit(1);
11013 if { (eval echo configure
:11014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11015 samba_cv_HAVE_SECURE_MKSTEMP
=yes
11017 echo "configure: failed program was:" >&5
11018 cat conftest.
$ac_ext >&5
11020 samba_cv_HAVE_SECURE_MKSTEMP
=no
11027 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
11028 if test x
"$samba_cv_HAVE_SECURE_MKSTEMP" = x
"yes"; then
11029 cat >> confdefs.h
<<\EOF
11030 #define HAVE_SECURE_MKSTEMP 1
11035 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
11036 echo "configure:11037: checking for sysconf(_SC_NGROUPS_MAX)" >&5
11037 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
11038 echo $ac_n "(cached) $ac_c" 1>&6
11041 if test "$cross_compiling" = yes; then
11042 samba_cv_SYSCONF_SC_NGROUPS_MAX
=cross
11044 cat > conftest.
$ac_ext <<EOF
11045 #line 11046 "configure"
11046 #include "confdefs.h"
11047 #include <unistd.h>
11048 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
11050 if { (eval echo configure
:11051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11052 samba_cv_SYSCONF_SC_NGROUPS_MAX
=yes
11054 echo "configure: failed program was:" >&5
11055 cat conftest.
$ac_ext >&5
11057 samba_cv_SYSCONF_SC_NGROUPS_MAX
=no
11064 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
11065 if test x
"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x
"yes"; then
11066 cat >> confdefs.h
<<\EOF
11067 #define SYSCONF_SC_NGROUPS_MAX 1
11072 echo $ac_n "checking for root""... $ac_c" 1>&6
11073 echo "configure:11074: checking for root" >&5
11074 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
11075 echo $ac_n "(cached) $ac_c" 1>&6
11078 if test "$cross_compiling" = yes; then
11079 samba_cv_HAVE_ROOT
=cross
11081 cat > conftest.
$ac_ext <<EOF
11082 #line 11083 "configure"
11083 #include "confdefs.h"
11084 main() { exit(getuid() != 0); }
11086 if { (eval echo configure
:11087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11088 samba_cv_HAVE_ROOT
=yes
11090 echo "configure: failed program was:" >&5
11091 cat conftest.
$ac_ext >&5
11093 samba_cv_HAVE_ROOT
=no
11100 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
11101 if test x
"$samba_cv_HAVE_ROOT" = x
"yes"; then
11102 cat >> confdefs.h
<<\EOF
11103 #define HAVE_ROOT 1
11107 echo "configure: warning: running as non-root will disable some tests" 1>&2
11111 # look for a method of finding the list of network interfaces
11113 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
11114 echo "configure:11115: checking for iface AIX" >&5
11115 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
11116 echo $ac_n "(cached) $ac_c" 1>&6
11119 if test "$cross_compiling" = yes; then
11120 samba_cv_HAVE_IFACE_AIX
=cross
11122 cat > conftest.
$ac_ext <<EOF
11123 #line 11124 "configure"
11124 #include "confdefs.h"
11126 #define HAVE_IFACE_AIX 1
11127 #define AUTOCONF_TEST 1
11128 #include "confdefs.h"
11129 #include "${srcdir-.}/lib/interfaces.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 samba_cv_HAVE_IFACE_AIX
=yes
11135 echo "configure: failed program was:" >&5
11136 cat conftest.
$ac_ext >&5
11138 samba_cv_HAVE_IFACE_AIX
=no
11145 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
11146 if test x
"$samba_cv_HAVE_IFACE_AIX" = x
"yes"; then
11147 iface
=yes;cat >> confdefs.h
<<\EOF
11148 #define HAVE_IFACE_AIX 1
11153 if test $iface = no
; then
11154 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
11155 echo "configure:11156: checking for iface ifconf" >&5
11156 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
11157 echo $ac_n "(cached) $ac_c" 1>&6
11160 if test "$cross_compiling" = yes; then
11161 samba_cv_HAVE_IFACE_IFCONF
=cross
11163 cat > conftest.
$ac_ext <<EOF
11164 #line 11165 "configure"
11165 #include "confdefs.h"
11167 #define HAVE_IFACE_IFCONF 1
11168 #define AUTOCONF_TEST 1
11169 #include "confdefs.h"
11170 #include "${srcdir-.}/lib/interfaces.c"
11172 if { (eval echo configure
:11173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11174 samba_cv_HAVE_IFACE_IFCONF
=yes
11176 echo "configure: failed program was:" >&5
11177 cat conftest.
$ac_ext >&5
11179 samba_cv_HAVE_IFACE_IFCONF
=no
11186 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
11187 if test x
"$samba_cv_HAVE_IFACE_IFCONF" = x
"yes"; then
11188 iface
=yes;cat >> confdefs.h
<<\EOF
11189 #define HAVE_IFACE_IFCONF 1
11195 if test $iface = no
; then
11196 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
11197 echo "configure:11198: checking for iface ifreq" >&5
11198 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
11199 echo $ac_n "(cached) $ac_c" 1>&6
11202 if test "$cross_compiling" = yes; then
11203 samba_cv_HAVE_IFACE_IFREQ
=cross
11205 cat > conftest.
$ac_ext <<EOF
11206 #line 11207 "configure"
11207 #include "confdefs.h"
11209 #define HAVE_IFACE_IFREQ 1
11210 #define AUTOCONF_TEST 1
11211 #include "confdefs.h"
11212 #include "${srcdir-.}/lib/interfaces.c"
11214 if { (eval echo configure
:11215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11216 samba_cv_HAVE_IFACE_IFREQ
=yes
11218 echo "configure: failed program was:" >&5
11219 cat conftest.
$ac_ext >&5
11221 samba_cv_HAVE_IFACE_IFREQ
=no
11228 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
11229 if test x
"$samba_cv_HAVE_IFACE_IFREQ" = x
"yes"; then
11230 iface
=yes;cat >> confdefs.h
<<\EOF
11231 #define HAVE_IFACE_IFREQ 1
11238 ################################################
11239 # look for a method of setting the effective uid
11241 if test $seteuid = no
; then
11242 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
11243 echo "configure:11244: checking for setresuid" >&5
11244 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
11245 echo $ac_n "(cached) $ac_c" 1>&6
11248 if test "$cross_compiling" = yes; then
11249 samba_cv_USE_SETRESUID
=cross
11251 cat > conftest.
$ac_ext <<EOF
11252 #line 11253 "configure"
11253 #include "confdefs.h"
11255 #define AUTOCONF_TEST 1
11256 #define USE_SETRESUID 1
11257 #include "confdefs.h"
11258 #include "${srcdir-.}/lib/util_sec.c"
11260 if { (eval echo configure
:11261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11262 samba_cv_USE_SETRESUID
=yes
11264 echo "configure: failed program was:" >&5
11265 cat conftest.
$ac_ext >&5
11267 samba_cv_USE_SETRESUID
=no
11274 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
11275 if test x
"$samba_cv_USE_SETRESUID" = x
"yes"; then
11276 seteuid
=yes;cat >> confdefs.h
<<\EOF
11277 #define USE_SETRESUID 1
11284 if test $seteuid = no
; then
11285 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
11286 echo "configure:11287: checking for setreuid" >&5
11287 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
11288 echo $ac_n "(cached) $ac_c" 1>&6
11291 if test "$cross_compiling" = yes; then
11292 samba_cv_USE_SETREUID
=cross
11294 cat > conftest.
$ac_ext <<EOF
11295 #line 11296 "configure"
11296 #include "confdefs.h"
11298 #define AUTOCONF_TEST 1
11299 #define USE_SETREUID 1
11300 #include "confdefs.h"
11301 #include "${srcdir-.}/lib/util_sec.c"
11303 if { (eval echo configure
:11304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11305 samba_cv_USE_SETREUID
=yes
11307 echo "configure: failed program was:" >&5
11308 cat conftest.
$ac_ext >&5
11310 samba_cv_USE_SETREUID
=no
11317 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
11318 if test x
"$samba_cv_USE_SETREUID" = x
"yes"; then
11319 seteuid
=yes;cat >> confdefs.h
<<\EOF
11320 #define USE_SETREUID 1
11326 if test $seteuid = no
; then
11327 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
11328 echo "configure:11329: checking for seteuid" >&5
11329 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
11330 echo $ac_n "(cached) $ac_c" 1>&6
11333 if test "$cross_compiling" = yes; then
11334 samba_cv_USE_SETEUID
=cross
11336 cat > conftest.
$ac_ext <<EOF
11337 #line 11338 "configure"
11338 #include "confdefs.h"
11340 #define AUTOCONF_TEST 1
11341 #define USE_SETEUID 1
11342 #include "confdefs.h"
11343 #include "${srcdir-.}/lib/util_sec.c"
11345 if { (eval echo configure
:11346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11347 samba_cv_USE_SETEUID
=yes
11349 echo "configure: failed program was:" >&5
11350 cat conftest.
$ac_ext >&5
11352 samba_cv_USE_SETEUID
=no
11359 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
11360 if test x
"$samba_cv_USE_SETEUID" = x
"yes"; then
11361 seteuid
=yes;cat >> confdefs.h
<<\EOF
11362 #define USE_SETEUID 1
11368 if test $seteuid = no
; then
11369 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
11370 echo "configure:11371: checking for setuidx" >&5
11371 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
11372 echo $ac_n "(cached) $ac_c" 1>&6
11375 if test "$cross_compiling" = yes; then
11376 samba_cv_USE_SETUIDX
=cross
11378 cat > conftest.
$ac_ext <<EOF
11379 #line 11380 "configure"
11380 #include "confdefs.h"
11382 #define AUTOCONF_TEST 1
11383 #define USE_SETUIDX 1
11384 #include "confdefs.h"
11385 #include "${srcdir-.}/lib/util_sec.c"
11387 if { (eval echo configure
:11388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11389 samba_cv_USE_SETUIDX
=yes
11391 echo "configure: failed program was:" >&5
11392 cat conftest.
$ac_ext >&5
11394 samba_cv_USE_SETUIDX
=no
11401 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
11402 if test x
"$samba_cv_USE_SETUIDX" = x
"yes"; then
11403 seteuid
=yes;cat >> confdefs.h
<<\EOF
11404 #define USE_SETUIDX 1
11411 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
11412 echo "configure:11413: checking for working mmap" >&5
11413 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
11414 echo $ac_n "(cached) $ac_c" 1>&6
11417 if test "$cross_compiling" = yes; then
11418 samba_cv_HAVE_MMAP
=cross
11420 cat > conftest.
$ac_ext <<EOF
11421 #line 11422 "configure"
11422 #include "confdefs.h"
11423 #include "${srcdir-.}/tests/shared_mmap.c"
11425 if { (eval echo configure
:11426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11427 samba_cv_HAVE_MMAP
=yes
11429 echo "configure: failed program was:" >&5
11430 cat conftest.
$ac_ext >&5
11432 samba_cv_HAVE_MMAP
=no
11439 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
11440 if test x
"$samba_cv_HAVE_MMAP" = x
"yes"; then
11441 cat >> confdefs.h
<<\EOF
11442 #define HAVE_MMAP 1
11447 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
11448 echo "configure:11449: checking for ftruncate needs root" >&5
11449 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
11450 echo $ac_n "(cached) $ac_c" 1>&6
11453 if test "$cross_compiling" = yes; then
11454 samba_cv_FTRUNCATE_NEEDS_ROOT
=cross
11456 cat > conftest.
$ac_ext <<EOF
11457 #line 11458 "configure"
11458 #include "confdefs.h"
11459 #include "${srcdir-.}/tests/ftruncroot.c"
11461 if { (eval echo configure
:11462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11463 samba_cv_FTRUNCATE_NEEDS_ROOT
=yes
11465 echo "configure: failed program was:" >&5
11466 cat conftest.
$ac_ext >&5
11468 samba_cv_FTRUNCATE_NEEDS_ROOT
=no
11475 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
11476 if test x
"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x
"yes"; then
11477 cat >> confdefs.h
<<\EOF
11478 #define FTRUNCATE_NEEDS_ROOT 1
11483 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
11484 echo "configure:11485: checking for fcntl locking" >&5
11485 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
11486 echo $ac_n "(cached) $ac_c" 1>&6
11489 if test "$cross_compiling" = yes; then
11490 samba_cv_HAVE_FCNTL_LOCK
=cross
11492 cat > conftest.
$ac_ext <<EOF
11493 #line 11494 "configure"
11494 #include "confdefs.h"
11495 #include "${srcdir-.}/tests/fcntl_lock.c"
11497 if { (eval echo configure
:11498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11499 samba_cv_HAVE_FCNTL_LOCK
=yes
11501 echo "configure: failed program was:" >&5
11502 cat conftest.
$ac_ext >&5
11504 samba_cv_HAVE_FCNTL_LOCK
=no
11511 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
11512 if test x
"$samba_cv_HAVE_FCNTL_LOCK" = x
"yes"; then
11513 cat >> confdefs.h
<<\EOF
11514 #define HAVE_FCNTL_LOCK 1
11519 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
11520 echo "configure:11521: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
11521 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
11522 echo $ac_n "(cached) $ac_c" 1>&6
11525 if test "$cross_compiling" = yes; then
11526 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=cross
11528 cat > conftest.
$ac_ext <<EOF
11529 #line 11530 "configure"
11530 #include "confdefs.h"
11531 #include "${srcdir-.}/tests/fcntl_lock64.c"
11533 if { (eval echo configure
:11534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11535 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=yes
11537 echo "configure: failed program was:" >&5
11538 cat conftest.
$ac_ext >&5
11540 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=no
11547 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
11548 if test x
"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x
"yes"; then
11549 cat >> confdefs.h
<<\EOF
11550 #define HAVE_BROKEN_FCNTL64_LOCKS 1
11557 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
11558 echo "configure:11559: checking for 64 bit fcntl locking" >&5
11559 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
11560 echo $ac_n "(cached) $ac_c" 1>&6
11563 if test "$cross_compiling" = yes; then
11564 samba_cv_HAVE_STRUCT_FLOCK64
=cross
11566 cat > conftest.
$ac_ext <<EOF
11567 #line 11568 "configure"
11568 #include "confdefs.h"
11570 #if defined(HAVE_UNISTD_H)
11571 #include <unistd.h>
11574 #include <stdlib.h>
11576 #ifdef HAVE_FCNTL_H
11580 #ifdef HAVE_SYS_FCNTL_H
11581 #include <sys/fcntl.h>
11583 main() { struct flock64 fl64;
11584 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
11591 if { (eval echo configure
:11592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11593 samba_cv_HAVE_STRUCT_FLOCK64
=yes
11595 echo "configure: failed program was:" >&5
11596 cat conftest.
$ac_ext >&5
11598 samba_cv_HAVE_STRUCT_FLOCK64
=no
11605 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
11607 if test x
"$samba_cv_HAVE_STRUCT_FLOCK64" = x
"yes"; then
11608 cat >> confdefs.h
<<\EOF
11609 #define HAVE_STRUCT_FLOCK64 1
11615 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
11616 echo "configure:11617: checking for st_blocks in struct stat" >&5
11617 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLOCKS'+set}'`\" = set"; then
11618 echo $ac_n "(cached) $ac_c" 1>&6
11621 cat > conftest.
$ac_ext <<EOF
11622 #line 11623 "configure"
11623 #include "confdefs.h"
11624 #include <sys/types.h>
11625 #include <sys/stat.h>
11626 #include <unistd.h>
11628 struct stat st; st.st_blocks = 0;
11631 if { (eval echo configure
:11632: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11633 samba_cv_HAVE_STAT_ST_BLOCKS
=yes
11635 echo "configure: failed program was:" >&5
11636 cat conftest.
$ac_ext >&5
11638 samba_cv_HAVE_STAT_ST_BLOCKS
=no
11643 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLOCKS" 1>&6
11644 if test x
"$samba_cv_HAVE_STAT_ST_BLOCKS" = x
"yes"; then
11645 cat >> confdefs.h
<<\EOF
11646 #define HAVE_STAT_ST_BLOCKS 1
11651 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
11652 echo "configure:11653: checking for st_blksize in struct stat" >&5
11653 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLKSIZE'+set}'`\" = set"; then
11654 echo $ac_n "(cached) $ac_c" 1>&6
11657 cat > conftest.
$ac_ext <<EOF
11658 #line 11659 "configure"
11659 #include "confdefs.h"
11660 #include <sys/types.h>
11661 #include <sys/stat.h>
11662 #include <unistd.h>
11664 struct stat st; st.st_blksize = 0;
11667 if { (eval echo configure
:11668: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11669 samba_cv_HAVE_STAT_ST_BLKSIZE
=yes
11671 echo "configure: failed program was:" >&5
11672 cat conftest.
$ac_ext >&5
11674 samba_cv_HAVE_STAT_ST_BLKSIZE
=no
11679 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLKSIZE" 1>&6
11680 if test x
"$samba_cv_HAVE_STAT_ST_BLKSIZE" = x
"yes"; then
11681 cat >> confdefs.h
<<\EOF
11682 #define HAVE_STAT_ST_BLKSIZE 1
11689 echo $ac_n "checking for broken RedHat 7.2 system header files""... $ac_c" 1>&6
11690 echo "configure:11691: checking for broken RedHat 7.2 system header files" >&5
11691 if eval "test \"`echo '$''{'samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS'+set}'`\" = set"; then
11692 echo $ac_n "(cached) $ac_c" 1>&6
11695 cat > conftest.
$ac_ext <<EOF
11696 #line 11697 "configure"
11697 #include "confdefs.h"
11699 #ifdef HAVE_SYS_VFS_H
11700 #include <sys/vfs.h>
11702 #ifdef HAVE_SYS_CAPABILITY_H
11703 #include <sys/capability.h>
11710 if { (eval echo configure
:11711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11712 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS
=no
11714 echo "configure: failed program was:" >&5
11715 cat conftest.
$ac_ext >&5
11717 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS
=yes
11722 echo "$ac_t""$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" 1>&6
11723 if test x
"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x
"yes"; then
11724 cat >> confdefs.h
<<\EOF
11725 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
11732 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
11733 echo "configure:11734: checking for broken nisplus include files" >&5
11734 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
11735 echo $ac_n "(cached) $ac_c" 1>&6
11738 cat > conftest.
$ac_ext <<EOF
11739 #line 11740 "configure"
11740 #include "confdefs.h"
11741 #include <sys/acl.h>
11742 #if defined(HAVE_RPCSVC_NIS_H)
11743 #include <rpcsvc/nis.h>
11749 if { (eval echo configure
:11750: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11751 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=no
11753 echo "configure: failed program was:" >&5
11754 cat conftest.
$ac_ext >&5
11756 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=yes
11761 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
11762 if test x
"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x
"yes"; then
11763 cat >> confdefs.h
<<\EOF
11764 #define BROKEN_NISPLUS_INCLUDE_FILES 1
11770 #################################################
11771 # check for smbwrapper support
11772 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
11773 echo "configure:11774: checking whether to use smbwrapper" >&5
11774 # Check whether --with-smbwrapper or --without-smbwrapper was given.
11775 if test "${with_smbwrapper+set}" = set; then
11776 withval
="$with_smbwrapper"
11779 echo "$ac_t""yes" 1>&6
11780 cat >> confdefs.h
<<\EOF
11781 #define WITH_SMBWRAPPER 1
11784 WRAPPROG
="bin/smbsh"
11785 WRAP
="bin/smbwrapper.$SHLIBEXT"
11787 if test x
$ATTEMPT_WRAP32_BUILD = x
; then
11790 WRAP32
=bin
/smbwrapper
.32.
$SHLIBEXT
11793 # Conditions under which smbwrapper should not be built.
11795 if test x
$PICFLAG = x
; then
11796 echo No support
for PIC code
- disabling smbwrapper and smbsh
11800 elif test x
$ac_cv_func_syscall = xno
; then
11801 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
11808 echo "$ac_t""no" 1>&6
11812 echo "$ac_t""no" 1>&6
11817 #################################################
11818 # check for the AFS filesystem
11819 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
11820 echo "configure:11821: checking whether to use AFS" >&5
11821 # Check whether --with-afs or --without-afs was given.
11822 if test "${with_afs+set}" = set; then
11823 withval
="$with_afs"
11826 echo "$ac_t""yes" 1>&6
11827 cat >> confdefs.h
<<\EOF
11833 echo "$ac_t""no" 1>&6
11837 echo "$ac_t""no" 1>&6
11843 #################################################
11844 # check for the DFS auth system
11845 echo $ac_n "checking whether to use DCE/DFS auth""... $ac_c" 1>&6
11846 echo "configure:11847: checking whether to use DCE/DFS auth" >&5
11847 # Check whether --with-dfs or --without-dfs was given.
11848 if test "${with_dfs+set}" = set; then
11849 withval
="$with_dfs"
11852 echo "$ac_t""yes" 1>&6
11853 cat >> confdefs.h
<<\EOF
11859 echo "$ac_t""no" 1>&6
11863 echo "$ac_t""no" 1>&6
11868 #################################################
11869 # check for Kerberos IV auth system
11870 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
11871 echo "configure:11872: checking whether to use Kerberos IV" >&5
11872 # Check whether --with-krb4 or --without-krb4 was given.
11873 if test "${with_krb4+set}" = set; then
11874 withval
="$with_krb4"
11877 echo "$ac_t""yes" 1>&6
11878 cat >> confdefs.h
<<\EOF
11879 #define KRB4_AUTH 1
11882 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
11883 echo "configure:11884: checking for dn_expand in -lresolv" >&5
11884 ac_lib_var
=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
11885 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11886 echo $ac_n "(cached) $ac_c" 1>&6
11888 ac_save_LIBS
="$LIBS"
11889 LIBS
="-lresolv $LIBS"
11890 cat > conftest.
$ac_ext <<EOF
11891 #line 11892 "configure"
11892 #include "confdefs.h"
11893 /* Override any gcc2 internal prototype to avoid an error. */
11894 /* We use char because int might match the return type of a gcc2
11895 builtin and then its argument prototype would still apply. */
11902 if { (eval echo configure
:11903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11904 eval "ac_cv_lib_$ac_lib_var=yes"
11906 echo "configure: failed program was:" >&5
11907 cat conftest.
$ac_ext >&5
11909 eval "ac_cv_lib_$ac_lib_var=no"
11912 LIBS
="$ac_save_LIBS"
11915 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11916 echo "$ac_t""yes" 1>&6
11917 ac_tr_lib
=HAVE_LIB
`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11918 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11919 cat >> confdefs.h
<<EOF
11920 #define $ac_tr_lib 1
11923 LIBS
="-lresolv $LIBS"
11926 echo "$ac_t""no" 1>&6
11929 LIBS
="$LIBS -lkrb -ldes"
11930 CFLAGS
="$CFLAGS -I$withval/include"
11931 LDFLAGS
="$LDFLAGS -L$withval/lib"
11934 echo "$ac_t""no" 1>&6
11938 echo "$ac_t""no" 1>&6
11943 #################################################
11944 # check for Kerberos 5 auth system
11945 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
11946 echo "configure:11947: checking whether to use Kerberos 5" >&5
11947 # Check whether --with-krb5 or --without-krb5 was given.
11948 if test "${with_krb5+set}" = set; then
11949 withval
="$with_krb5"
11952 echo "$ac_t""yes" 1>&6
11953 cat >> confdefs.h
<<\EOF
11954 #define KRB5_AUTH 1
11957 LIBS
="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
11958 CFLAGS
="$CFLAGS -I$withval/include"
11959 LDFLAGS
="$LDFLAGS -L$withval/lib"
11962 echo "$ac_t""no" 1>&6
11966 echo "$ac_t""no" 1>&6
11971 #################################################
11972 # check for automount support
11973 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
11974 echo "configure:11975: checking whether to use AUTOMOUNT" >&5
11975 # Check whether --with-automount or --without-automount was given.
11976 if test "${with_automount+set}" = set; then
11977 withval
="$with_automount"
11980 echo "$ac_t""yes" 1>&6
11981 cat >> confdefs.h
<<\EOF
11982 #define WITH_AUTOMOUNT 1
11987 echo "$ac_t""no" 1>&6
11991 echo "$ac_t""no" 1>&6
11996 #################################################
11997 # check for smbmount support
11998 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
11999 echo "configure:12000: checking whether to use SMBMOUNT" >&5
12000 # Check whether --with-smbmount or --without-smbmount was given.
12001 if test "${with_smbmount+set}" = set; then
12002 withval
="$with_smbmount"
12007 echo "$ac_t""yes" 1>&6
12008 cat >> confdefs.h
<<\EOF
12009 #define WITH_SMBMOUNT 1
12012 MPROGS
="bin/smbmount bin/smbmnt bin/smbumount"
12015 { echo "configure: error: not on a linux system!" 1>&2; exit 1; }
12020 echo "$ac_t""no" 1>&6
12025 echo "$ac_t""no" 1>&6
12032 #################################################
12033 # check for a PAM password database
12034 with_pam_for_crypt
=no
12035 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
12036 echo "configure:12037: checking whether to use PAM password database" >&5
12037 # Check whether --with-pam or --without-pam was given.
12038 if test "${with_pam+set}" = set; then
12039 withval
="$with_pam"
12042 echo "$ac_t""yes" 1>&6
12043 cat >> confdefs.h
<<\EOF
12048 with_pam_for_crypt
=yes
12051 echo "$ac_t""no" 1>&6
12055 echo "$ac_t""no" 1>&6
12060 # we can't build a pam module if we don't have pam.
12061 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
12062 echo "configure:12063: checking for pam_get_data in -lpam" >&5
12063 ac_lib_var
=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
12064 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12065 echo $ac_n "(cached) $ac_c" 1>&6
12067 ac_save_LIBS
="$LIBS"
12069 cat > conftest.
$ac_ext <<EOF
12070 #line 12071 "configure"
12071 #include "confdefs.h"
12072 /* Override any gcc2 internal prototype to avoid an error. */
12073 /* We use char because int might match the return type of a gcc2
12074 builtin and then its argument prototype would still apply. */
12075 char pam_get_data();
12081 if { (eval echo configure
:12082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12083 eval "ac_cv_lib_$ac_lib_var=yes"
12085 echo "configure: failed program was:" >&5
12086 cat conftest.
$ac_ext >&5
12088 eval "ac_cv_lib_$ac_lib_var=no"
12091 LIBS
="$ac_save_LIBS"
12094 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12095 echo "$ac_t""yes" 1>&6
12096 cat >> confdefs.h
<<\EOF
12097 #define HAVE_LIBPAM 1
12101 echo "$ac_t""no" 1>&6
12105 #################################################
12106 # check for pam_smbpass support
12107 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
12108 echo "configure:12109: checking whether to use pam_smbpass" >&5
12109 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
12110 if test "${with_pam_smbpass+set}" = set; then
12111 withval
="$with_pam_smbpass"
12114 echo "$ac_t""yes" 1>&6
12116 # Conditions under which pam_smbpass should not be built.
12118 if test x
$PICFLAG = x
; then
12119 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
12121 elif test x
$ac_cv_lib_pam_pam_get_data = xno
; then
12122 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
12125 cat >> confdefs.h
<<\EOF
12126 #define WITH_PAM_SMBPASS 1
12129 PAM_MOD
="bin/pam_smbpass.so"
12133 echo "$ac_t""no" 1>&6
12137 echo "$ac_t""no" 1>&6
12143 ###############################################
12144 # test for where we get crypt() from, but only
12146 if test $with_pam_for_crypt = no
; then
12147 for ac_func
in crypt
12149 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12150 echo "configure:12151: checking for $ac_func" >&5
12151 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12152 echo $ac_n "(cached) $ac_c" 1>&6
12154 cat > conftest.
$ac_ext <<EOF
12155 #line 12156 "configure"
12156 #include "confdefs.h"
12157 /* System header to define __stub macros and hopefully few prototypes,
12158 which can conflict with char $ac_func(); below. */
12159 #include <assert.h>
12160 /* Override any gcc2 internal prototype to avoid an error. */
12161 /* We use char because int might match the return type of a gcc2
12162 builtin and then its argument prototype would still apply. */
12167 /* The GNU C library defines this for functions which it implements
12168 to always fail with ENOSYS. Some functions are actually named
12169 something starting with __ and the normal name is an alias. */
12170 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12178 if { (eval echo configure
:12179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12180 eval "ac_cv_func_$ac_func=yes"
12182 echo "configure: failed program was:" >&5
12183 cat conftest.
$ac_ext >&5
12185 eval "ac_cv_func_$ac_func=no"
12190 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12191 echo "$ac_t""yes" 1>&6
12192 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12193 cat >> confdefs.h
<<EOF
12194 #define $ac_tr_func 1
12198 echo "$ac_t""no" 1>&6
12202 if test x
"$ac_cv_func_crypt" = x
"no"; then
12203 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
12204 echo "configure:12205: checking for crypt in -lcrypt" >&5
12205 ac_lib_var
=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
12206 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12207 echo $ac_n "(cached) $ac_c" 1>&6
12209 ac_save_LIBS
="$LIBS"
12210 LIBS
="-lcrypt $LIBS"
12211 cat > conftest.
$ac_ext <<EOF
12212 #line 12213 "configure"
12213 #include "confdefs.h"
12214 /* Override any gcc2 internal prototype to avoid an error. */
12215 /* We use char because int might match the return type of a gcc2
12216 builtin and then its argument prototype would still apply. */
12223 if { (eval echo configure
:12224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12225 eval "ac_cv_lib_$ac_lib_var=yes"
12227 echo "configure: failed program was:" >&5
12228 cat conftest.
$ac_ext >&5
12230 eval "ac_cv_lib_$ac_lib_var=no"
12233 LIBS
="$ac_save_LIBS"
12236 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12237 echo "$ac_t""yes" 1>&6
12238 LIBS
="$LIBS -lcrypt";
12239 cat >> confdefs.h
<<\EOF
12240 #define HAVE_CRYPT 1
12244 echo "$ac_t""no" 1>&6
12251 ## moved after the check for -lcrypt in order to
12252 ## ensure that the necessary libraries are included
12253 ## check checking for truncated salt. Wrapped by the
12254 ## $with_pam_for_crypt variable as above --jerry
12256 if test $with_pam_for_crypt = no
; then
12257 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
12258 echo "configure:12259: checking for a crypt that needs truncated salt" >&5
12259 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
12260 echo $ac_n "(cached) $ac_c" 1>&6
12263 if test "$cross_compiling" = yes; then
12264 samba_cv_HAVE_TRUNCATED_SALT
=cross
12266 cat > conftest.
$ac_ext <<EOF
12267 #line 12268 "configure"
12268 #include "confdefs.h"
12269 #include "${srcdir-.}/tests/crypttest.c"
12271 if { (eval echo configure
:12272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12273 samba_cv_HAVE_TRUNCATED_SALT
=no
12275 echo "configure: failed program was:" >&5
12276 cat conftest.
$ac_ext >&5
12278 samba_cv_HAVE_TRUNCATED_SALT
=yes
12285 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
12286 if test x
"$samba_cv_HAVE_TRUNCATED_SALT" = x
"yes"; then
12287 cat >> confdefs.h
<<\EOF
12288 #define HAVE_TRUNCATED_SALT 1
12295 ########################################################################################
12297 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
12299 ########################################################################################
12301 ## set the with_smbpasswd_sam as the default
12302 with_smbpasswd_sam
=yes
12306 #################################################
12307 # check for a TDB password database
12308 echo $ac_n "checking whether to use TDB SAM database""... $ac_c" 1>&6
12309 echo "configure:12310: checking whether to use TDB SAM database" >&5
12310 # Check whether --with-tdbsam or --without-tdbsam was given.
12311 if test "${with_tdbsam+set}" = set; then
12312 withval
="$with_tdbsam"
12315 echo "$ac_t""yes" 1>&6
12316 cat >> confdefs.h
<<\EOF
12317 #define WITH_TDB_SAM 1
12320 with_smbpasswd_sam
=no
12323 echo "$ac_t""no" 1>&6
12327 echo "$ac_t""no" 1>&6
12332 #################################################
12333 # check for a LDAP password database
12334 echo $ac_n "checking whether to use LDAP SAM database""... $ac_c" 1>&6
12335 echo "configure:12336: checking whether to use LDAP SAM database" >&5
12336 # Check whether --with-ldapsam or --without-ldapsam was given.
12337 if test "${with_ldapsam+set}" = set; then
12338 withval
="$with_ldapsam"
12341 echo "$ac_t""yes" 1>&6
12342 cat >> confdefs.h
<<\EOF
12343 #define WITH_LDAP_SAM 1
12347 echo $ac_n "checking for ber_bvfree in -llber""... $ac_c" 1>&6
12348 echo "configure:12349: checking for ber_bvfree in -llber" >&5
12349 ac_lib_var
=`echo lber'_'ber_bvfree | sed 'y%./+-%__p_%'`
12350 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12351 echo $ac_n "(cached) $ac_c" 1>&6
12353 ac_save_LIBS
="$LIBS"
12354 LIBS
="-llber $LIBS"
12355 cat > conftest.
$ac_ext <<EOF
12356 #line 12357 "configure"
12357 #include "confdefs.h"
12358 /* Override any gcc2 internal prototype to avoid an error. */
12359 /* We use char because int might match the return type of a gcc2
12360 builtin and then its argument prototype would still apply. */
12367 if { (eval echo configure
:12368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12369 eval "ac_cv_lib_$ac_lib_var=yes"
12371 echo "configure: failed program was:" >&5
12372 cat conftest.
$ac_ext >&5
12374 eval "ac_cv_lib_$ac_lib_var=no"
12377 LIBS
="$ac_save_LIBS"
12380 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12381 echo "$ac_t""yes" 1>&6
12382 LDAPLIBS
="$LDAPLIBS -llber"
12384 echo "$ac_t""no" 1>&6
12387 ## remove -lresolv as this should be included by the -lsasl dependency
12388 ## in the OpenLDAP clients. By not requiring it specifically, we avoid
12389 ## issues on platforms that don't have it
12390 LDAPLIBS
="$LDAPLIBS"
12391 old_LDFLAGS
="$LDFLAGS"
12392 LDFLAGS
="$LDFLAGS $LDAPLIBS"
12393 for ac_func
in ldap_start_tls_s
12395 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12396 echo "configure:12397: checking for $ac_func" >&5
12397 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12398 echo $ac_n "(cached) $ac_c" 1>&6
12400 cat > conftest.
$ac_ext <<EOF
12401 #line 12402 "configure"
12402 #include "confdefs.h"
12403 /* System header to define __stub macros and hopefully few prototypes,
12404 which can conflict with char $ac_func(); below. */
12405 #include <assert.h>
12406 /* Override any gcc2 internal prototype to avoid an error. */
12407 /* We use char because int might match the return type of a gcc2
12408 builtin and then its argument prototype would still apply. */
12413 /* The GNU C library defines this for functions which it implements
12414 to always fail with ENOSYS. Some functions are actually named
12415 something starting with __ and the normal name is an alias. */
12416 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
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_func_$ac_func=yes"
12428 echo "configure: failed program was:" >&5
12429 cat conftest.
$ac_ext >&5
12431 eval "ac_cv_func_$ac_func=no"
12436 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12437 echo "$ac_t""yes" 1>&6
12438 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12439 cat >> confdefs.h
<<EOF
12440 #define $ac_tr_func 1
12444 echo "$ac_t""no" 1>&6
12448 LDFLAGS
="$old_LDFLAGS"
12449 with_smbpasswd_sam
=no
12451 echo $ac_n "checking whether ldap_set_rebind_proc takes 3 arguments""... $ac_c" 1>&6
12452 echo "configure:12453: checking whether ldap_set_rebind_proc takes 3 arguments" >&5
12453 if eval "test \"`echo '$''{'samba_cv_ldap_set_rebind_proc'+set}'`\" = set"; then
12454 echo $ac_n "(cached) $ac_c" 1>&6
12457 cat > conftest.
$ac_ext <<EOF
12458 #line 12459 "configure"
12459 #include "confdefs.h"
12464 ldap_set_rebind_proc(0, 0, 0);
12467 if { (eval echo configure
:12468: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12469 samba_cv_ldap_set_rebind_proc
=3
12471 echo "configure: failed program was:" >&5
12472 cat conftest.
$ac_ext >&5
12474 samba_cv_ldap_set_rebind_proc
=2
12479 echo "$ac_t""$samba_cv_ldap_set_rebind_proc" 1>&6
12480 if test x
"$samba_cv_ldap_set_rebind_proc" = x
"3"; then
12481 cat >> confdefs.h
<<\EOF
12482 #define LDAP_SET_REBIND_PROC_ARGS 3
12486 cat >> confdefs.h
<<\EOF
12487 #define LDAP_SET_REBIND_PROC_ARGS 2
12493 echo "$ac_t""no" 1>&6
12497 echo "$ac_t""no" 1>&6
12503 #################################################
12504 # check for a NISPLUS password database
12505 echo $ac_n "checking whether to use NISPLUS SAM database""... $ac_c" 1>&6
12506 echo "configure:12507: checking whether to use NISPLUS SAM database" >&5
12507 # Check whether --with-nisplussam or --without-nisplussam was given.
12508 if test "${with_nisplussam+set}" = set; then
12509 withval
="$with_nisplussam"
12512 echo "$ac_t""yes" 1>&6
12513 cat >> confdefs.h
<<\EOF
12514 #define WITH_NISPLUS_SAM 1
12517 with_smbpasswd_sam
=no
12520 echo "$ac_t""no" 1>&6
12524 echo "$ac_t""no" 1>&6
12529 ################################################
12530 # This test should come last because the
12531 # smbpasswd SAM is only used if another format
12532 # has not been defined
12533 echo $ac_n "checking whether to use traditional smbpasswd file""... $ac_c" 1>&6
12534 echo "configure:12535: checking whether to use traditional smbpasswd file" >&5
12535 if test $with_smbpasswd_sam = yes; then
12536 echo "$ac_t""yes" 1>&6
12537 cat >> confdefs.h
<<\EOF
12538 #define WITH_SMBPASSWD_SAM 1
12543 echo "$ac_t""no" 1>&6
12544 PDBEDIT
=bin
/pdbedit
12547 ########################################################################################
12549 ## END OF TESTS FOR SAM BACKENDS.
12551 ########################################################################################
12553 #################################################
12554 # check for a NISPLUS_HOME support
12555 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
12556 echo "configure:12557: checking whether to use NISPLUS_HOME" >&5
12557 # Check whether --with-nisplus-home or --without-nisplus-home was given.
12558 if test "${with_nisplus_home+set}" = set; then
12559 withval
="$with_nisplus_home"
12562 echo "$ac_t""yes" 1>&6
12563 cat >> confdefs.h
<<\EOF
12564 #define WITH_NISPLUS_HOME 1
12569 echo "$ac_t""no" 1>&6
12573 echo "$ac_t""no" 1>&6
12578 #################################################
12579 # check for the secure socket layer
12580 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
12581 echo "configure:12582: checking whether to use SSL" >&5
12582 # Check whether --with-ssl or --without-ssl was given.
12583 if test "${with_ssl+set}" = set; then
12584 withval
="$with_ssl"
12587 echo "$ac_t""yes" 1>&6
12588 cat >> confdefs.h
<<\EOF
12592 withval
="/usr/local/ssl" # default
12594 if test "${with_sslinc+set}" = set; then
12596 withval
="$with_sslinc"
12599 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
12600 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
12603 CFLAGS
="-I${withval} $CFLAGS"
12609 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
12613 if test "${with_ssllib+set}" = set; then
12615 withval
="$with_ssllib"
12618 echo "configure: warning: --with-ssllib called without argument - will use default" 1>&w
12619 LDFLAGS
="-L/usr/local/ssl/lib $LDFLAGS"
12622 LDFLAGS
="-L${withval}/lib $LDFLAGS"
12628 LDFLAGS
="-L/usr/local/ssl/lib $LDFLAGS"
12632 LIBS
="-lssl -lcrypto $LIBS"
12634 # if test ! -d ${withval}; then
12635 # echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
12639 CFLAGS
="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
12643 echo "$ac_t""no" 1>&6
12647 echo "$ac_t""no" 1>&6
12652 #################################################
12653 # check for syslog logging
12654 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
12655 echo "configure:12656: checking whether to use syslog logging" >&5
12656 # Check whether --with-syslog or --without-syslog was given.
12657 if test "${with_syslog+set}" = set; then
12658 withval
="$with_syslog"
12661 echo "$ac_t""yes" 1>&6
12662 cat >> confdefs.h
<<\EOF
12663 #define WITH_SYSLOG 1
12668 echo "$ac_t""no" 1>&6
12672 echo "$ac_t""no" 1>&6
12677 #################################################
12678 # check for a shared memory profiling support
12679 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
12680 echo "configure:12681: checking whether to use profiling" >&5
12681 # Check whether --with-profiling-data or --without-profiling-data was given.
12682 if test "${with_profiling_data+set}" = set; then
12683 withval
="$with_profiling_data"
12686 echo "$ac_t""yes" 1>&6
12687 cat >> confdefs.h
<<\EOF
12688 #define WITH_PROFILE 1
12693 echo "$ac_t""no" 1>&6
12697 echo "$ac_t""no" 1>&6
12703 #################################################
12704 # check for experimental disk-quotas support
12705 QUOTAOBJS
=smbd
/noquotas.o
12707 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
12708 echo "configure:12709: checking whether to support disk-quotas" >&5
12709 # Check whether --with-quotas or --without-quotas was given.
12710 if test "${with_quotas+set}" = set; then
12711 withval
="$with_quotas"
12714 echo "$ac_t""yes" 1>&6
12715 QUOTAOBJS
=smbd
/quotas.o
12718 echo "$ac_t""no" 1>&6
12722 echo "$ac_t""no" 1>&6
12728 #################################################
12729 # check for experimental utmp accounting
12731 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
12732 echo "configure:12733: checking whether to support utmp accounting" >&5
12733 # Check whether --with-utmp or --without-utmp was given.
12734 if test "${with_utmp+set}" = set; then
12735 withval
="$with_utmp"
12738 echo "$ac_t""yes" 1>&6
12739 cat >> confdefs.h
<<\EOF
12740 #define WITH_UTMP 1
12745 echo "$ac_t""no" 1>&6
12749 echo "$ac_t""no" 1>&6
12754 #################################################
12755 # check for MS Dfs support
12757 echo $ac_n "checking whether to support Microsoft Dfs""... $ac_c" 1>&6
12758 echo "configure:12759: checking whether to support Microsoft Dfs" >&5
12759 # Check whether --with-msdfs or --without-msdfs was given.
12760 if test "${with_msdfs+set}" = set; then
12761 withval
="$with_msdfs"
12764 echo "$ac_t""yes" 1>&6
12765 cat >> confdefs.h
<<\EOF
12766 #define WITH_MSDFS 1
12771 echo "$ac_t""no" 1>&6
12775 echo "$ac_t""no" 1>&6
12780 #################################################
12781 # should we build libsmbclient?
12783 INSTALLCLIENTCMD_SH
=:
12784 INSTALLCLIENTCMD_A
=:
12785 LIBSMBCLIENT_SHARED
=
12787 echo $ac_n "checking whether to build the libsmbclient shared library""... $ac_c" 1>&6
12788 echo "configure:12789: checking whether to build the libsmbclient shared library" >&5
12789 # Check whether --with-libsmbclient or --without-libsmbclient was given.
12790 if test "${with_libsmbclient+set}" = set; then
12791 withval
="$with_libsmbclient"
12794 if test $BLDSHARED = true
; then
12795 INSTALLCLIENTCMD_SH
="\$(INSTALLCMD)"
12796 LIBSMBCLIENT_SHARED
=bin
/libsmbclient.
$SHLIBEXT
12797 LIBSMBCLIENT
=libsmbclient
12798 echo "$ac_t""yes" 1>&6
12800 INSTALLCLIENTCMD_A
="\$(INSTALLCMD)"
12801 LIBSMBCLIENT
=libsmbclient
12802 echo "$ac_t""no shared library support -- will supply static library" 1>&6
12806 echo "$ac_t""no" 1>&6
12810 echo "$ac_t""no" 1>&6
12815 #################################################
12816 # these tests are taken from the GNU fileutils package
12817 echo "checking how to get filesystem space usage" 1>&6
12818 echo "configure:12819: checking how to get filesystem space usage" >&5
12821 # Test for statvfs64.
12822 if test $space = no
; then
12824 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
12825 echo "configure:12826: checking statvfs64 function (SVR4)" >&5
12826 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
12827 echo $ac_n "(cached) $ac_c" 1>&6
12829 if test "$cross_compiling" = yes; then
12830 fu_cv_sys_stat_statvfs64
=cross
12832 cat > conftest.
$ac_ext <<EOF
12833 #line 12834 "configure"
12834 #include "confdefs.h"
12836 #if defined(HAVE_UNISTD_H)
12837 #include <unistd.h>
12839 #include <sys/types.h>
12840 #include <sys/statvfs.h>
12843 struct statvfs64 fsd;
12844 exit (statvfs64 (".", &fsd));
12847 if { (eval echo configure
:12848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12849 fu_cv_sys_stat_statvfs64
=yes
12851 echo "configure: failed program was:" >&5
12852 cat conftest.
$ac_ext >&5
12854 fu_cv_sys_stat_statvfs64
=no
12861 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
12862 if test $fu_cv_sys_stat_statvfs64 = yes; then
12864 cat >> confdefs.h
<<\EOF
12865 #define STAT_STATVFS64 1
12871 # Perform only the link test since it seems there are no variants of the
12872 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
12873 # because that got a false positive on SCO OSR5. Adding the declaration
12874 # of a `struct statvfs' causes this test to fail (as it should) on such
12875 # systems. That system is reported to work fine with STAT_STATFS4 which
12876 # is what it gets when this test fails.
12877 if test $space = no
; then
12879 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
12880 echo "configure:12881: checking statvfs function (SVR4)" >&5
12881 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
12882 echo $ac_n "(cached) $ac_c" 1>&6
12884 cat > conftest.
$ac_ext <<EOF
12885 #line 12886 "configure"
12886 #include "confdefs.h"
12887 #include <sys/types.h>
12888 #include <sys/statvfs.h>
12890 struct statvfs fsd; statvfs (0, &fsd);
12893 if { (eval echo configure
:12894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12895 fu_cv_sys_stat_statvfs
=yes
12897 echo "configure: failed program was:" >&5
12898 cat conftest.
$ac_ext >&5
12900 fu_cv_sys_stat_statvfs
=no
12905 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
12906 if test $fu_cv_sys_stat_statvfs = yes; then
12908 cat >> confdefs.h
<<\EOF
12909 #define STAT_STATVFS 1
12915 if test $space = no
; then
12916 # DEC Alpha running OSF/1
12917 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
12918 echo "configure:12919: checking for 3-argument statfs function (DEC OSF/1)" >&5
12919 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
12920 echo $ac_n "(cached) $ac_c" 1>&6
12922 if test "$cross_compiling" = yes; then
12923 fu_cv_sys_stat_statfs3_osf1
=no
12925 cat > conftest.
$ac_ext <<EOF
12926 #line 12927 "configure"
12927 #include "confdefs.h"
12929 #include <sys/param.h>
12930 #include <sys/types.h>
12931 #include <sys/mount.h>
12936 exit (statfs (".", &fsd, sizeof (struct statfs)));
12939 if { (eval echo configure
:12940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12941 fu_cv_sys_stat_statfs3_osf1
=yes
12943 echo "configure: failed program was:" >&5
12944 cat conftest.
$ac_ext >&5
12946 fu_cv_sys_stat_statfs3_osf1
=no
12953 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
12954 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
12956 cat >> confdefs.h
<<\EOF
12957 #define STAT_STATFS3_OSF1 1
12963 if test $space = no
; then
12965 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
12966 echo "configure:12967: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
12967 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
12968 echo $ac_n "(cached) $ac_c" 1>&6
12970 if test "$cross_compiling" = yes; then
12971 fu_cv_sys_stat_statfs2_bsize
=no
12973 cat > conftest.
$ac_ext <<EOF
12974 #line 12975 "configure"
12975 #include "confdefs.h"
12977 #ifdef HAVE_SYS_PARAM_H
12978 #include <sys/param.h>
12980 #ifdef HAVE_SYS_MOUNT_H
12981 #include <sys/mount.h>
12983 #ifdef HAVE_SYS_VFS_H
12984 #include <sys/vfs.h>
12990 exit (statfs (".", &fsd));
12993 if { (eval echo configure
:12994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12995 fu_cv_sys_stat_statfs2_bsize
=yes
12997 echo "configure: failed program was:" >&5
12998 cat conftest.
$ac_ext >&5
13000 fu_cv_sys_stat_statfs2_bsize
=no
13007 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
13008 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
13010 cat >> confdefs.h
<<\EOF
13011 #define STAT_STATFS2_BSIZE 1
13017 if test $space = no
; then
13019 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
13020 echo "configure:13021: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
13021 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
13022 echo $ac_n "(cached) $ac_c" 1>&6
13024 if test "$cross_compiling" = yes; then
13025 fu_cv_sys_stat_statfs4
=no
13027 cat > conftest.
$ac_ext <<EOF
13028 #line 13029 "configure"
13029 #include "confdefs.h"
13030 #include <sys/types.h>
13031 #include <sys/statfs.h>
13035 exit (statfs (".", &fsd, sizeof fsd, 0));
13038 if { (eval echo configure
:13039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
13040 fu_cv_sys_stat_statfs4
=yes
13042 echo "configure: failed program was:" >&5
13043 cat conftest.
$ac_ext >&5
13045 fu_cv_sys_stat_statfs4
=no
13052 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
13053 if test $fu_cv_sys_stat_statfs4 = yes; then
13055 cat >> confdefs.h
<<\EOF
13056 #define STAT_STATFS4 1
13062 if test $space = no
; then
13063 # 4.4BSD and NetBSD
13064 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
13065 echo "configure:13066: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
13066 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
13067 echo $ac_n "(cached) $ac_c" 1>&6
13069 if test "$cross_compiling" = yes; then
13070 fu_cv_sys_stat_statfs2_fsize
=no
13072 cat > conftest.
$ac_ext <<EOF
13073 #line 13074 "configure"
13074 #include "confdefs.h"
13075 #include <sys/types.h>
13076 #ifdef HAVE_SYS_PARAM_H
13077 #include <sys/param.h>
13079 #ifdef HAVE_SYS_MOUNT_H
13080 #include <sys/mount.h>
13086 exit (statfs (".", &fsd));
13089 if { (eval echo configure
:13090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
13091 fu_cv_sys_stat_statfs2_fsize
=yes
13093 echo "configure: failed program was:" >&5
13094 cat conftest.
$ac_ext >&5
13096 fu_cv_sys_stat_statfs2_fsize
=no
13103 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
13104 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
13106 cat >> confdefs.h
<<\EOF
13107 #define STAT_STATFS2_FSIZE 1
13113 if test $space = no
; then
13115 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
13116 echo "configure:13117: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
13117 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
13118 echo $ac_n "(cached) $ac_c" 1>&6
13120 if test "$cross_compiling" = yes; then
13121 fu_cv_sys_stat_fs_data
=no
13123 cat > conftest.
$ac_ext <<EOF
13124 #line 13125 "configure"
13125 #include "confdefs.h"
13126 #include <sys/types.h>
13127 #ifdef HAVE_SYS_PARAM_H
13128 #include <sys/param.h>
13130 #ifdef HAVE_SYS_MOUNT_H
13131 #include <sys/mount.h>
13133 #ifdef HAVE_SYS_FS_TYPES_H
13134 #include <sys/fs_types.h>
13138 struct fs_data fsd;
13139 /* Ultrix's statfs returns 1 for success,
13140 0 for not mounted, -1 for failure. */
13141 exit (statfs (".", &fsd) != 1);
13144 if { (eval echo configure
:13145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
13146 fu_cv_sys_stat_fs_data
=yes
13148 echo "configure: failed program was:" >&5
13149 cat conftest.
$ac_ext >&5
13151 fu_cv_sys_stat_fs_data
=no
13158 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
13159 if test $fu_cv_sys_stat_fs_data = yes; then
13161 cat >> confdefs.h
<<\EOF
13162 #define STAT_STATFS2_FS_DATA 1
13169 # As a gating factor for large file support, in order to
13170 # use <4GB files we must have the following minimal support
13172 # long long, and a 64 bit off_t or off64_t.
13173 # If we don't have all of these then disable large
13176 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
13177 echo "configure:13178: checking if large file support can be enabled" >&5
13178 cat > conftest.
$ac_ext <<EOF
13179 #line 13180 "configure"
13180 #include "confdefs.h"
13182 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
13183 #include <sys/types.h>
13192 if { (eval echo configure
:13193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13194 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=yes
13196 echo "configure: failed program was:" >&5
13197 cat conftest.
$ac_ext >&5
13199 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=no
13202 if test x
"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x
"yes"; then
13203 echo "$ac_t""yes" 1>&6
13204 cat >> confdefs.h
<<\EOF
13205 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
13209 echo "$ac_t""no" 1>&6
13212 # Check whether --with-spinlocks or --without-spinlocks was given.
13213 if test "${with_spinlocks+set}" = set; then
13214 withval
="$with_spinlocks"
13218 if test "x$with_spinlocks" = "xyes"; then
13219 cat >> confdefs.h
<<\EOF
13220 #define USE_SPINLOCKS 1
13224 case "$host_cpu" in
13226 cat >> confdefs.h
<<\EOF
13227 #define SPARC_SPINLOCKS 1
13232 i386|i486|i586|i686
)
13233 cat >> confdefs.h
<<\EOF
13234 #define INTEL_SPINLOCKS 1
13240 cat >> confdefs.h
<<\EOF
13241 #define MIPS_SPINLOCKS 1
13247 cat >> confdefs.h
<<\EOF
13248 #define POWERPC_SPINLOCKS 1
13255 #################################################
13256 # check for ACL support
13258 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
13259 echo "configure:13260: checking whether to support ACLs" >&5
13260 # Check whether --with-acl-support or --without-acl-support was given.
13261 if test "${with_acl_support+set}" = set; then
13262 withval
="$with_acl_support"
13268 echo "$ac_t""Using UnixWare ACLs" 1>&6
13269 cat >> confdefs.h
<<\EOF
13270 #define HAVE_UNIXWARE_ACLS 1
13275 echo "$ac_t""Using solaris ACLs" 1>&6
13276 cat >> confdefs.h
<<\EOF
13277 #define HAVE_SOLARIS_ACLS 1
13282 echo "$ac_t""Using HPUX ACLs" 1>&6
13283 cat >> confdefs.h
<<\EOF
13284 #define HAVE_HPUX_ACLS 1
13289 echo "$ac_t""Using IRIX ACLs" 1>&6
13290 cat >> confdefs.h
<<\EOF
13291 #define HAVE_IRIX_ACLS 1
13296 echo "$ac_t""Using AIX ACLs" 1>&6
13297 cat >> confdefs.h
<<\EOF
13298 #define HAVE_AIX_ACLS 1
13303 echo "$ac_t""Using Tru64 ACLs" 1>&6
13304 cat >> confdefs.h
<<\EOF
13305 #define HAVE_TRU64_ACLS 1
13308 LIBS
="$LIBS -lpacl"
13311 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
13312 echo "configure:13313: checking for acl_get_file in -lacl" >&5
13313 ac_lib_var
=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
13314 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13315 echo $ac_n "(cached) $ac_c" 1>&6
13317 ac_save_LIBS
="$LIBS"
13319 cat > conftest.
$ac_ext <<EOF
13320 #line 13321 "configure"
13321 #include "confdefs.h"
13322 /* Override any gcc2 internal prototype to avoid an error. */
13323 /* We use char because int might match the return type of a gcc2
13324 builtin and then its argument prototype would still apply. */
13325 char acl_get_file();
13331 if { (eval echo configure
:13332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13333 eval "ac_cv_lib_$ac_lib_var=yes"
13335 echo "configure: failed program was:" >&5
13336 cat conftest.
$ac_ext >&5
13338 eval "ac_cv_lib_$ac_lib_var=no"
13341 LIBS
="$ac_save_LIBS"
13344 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13345 echo "$ac_t""yes" 1>&6
13346 ac_tr_lib
=HAVE_LIB
`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13347 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13348 cat >> confdefs.h
<<EOF
13349 #define $ac_tr_lib 1
13355 echo "$ac_t""no" 1>&6
13358 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
13359 echo "configure:13360: checking for ACL support" >&5
13360 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
13361 echo $ac_n "(cached) $ac_c" 1>&6
13364 cat > conftest.
$ac_ext <<EOF
13365 #line 13366 "configure"
13366 #include "confdefs.h"
13367 #include <sys/types.h>
13368 #include <sys/acl.h>
13370 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
13373 if { (eval echo configure
:13374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13375 samba_cv_HAVE_POSIX_ACLS
=yes
13377 echo "configure: failed program was:" >&5
13378 cat conftest.
$ac_ext >&5
13380 samba_cv_HAVE_POSIX_ACLS
=no
13385 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
13386 if test x
"$samba_cv_HAVE_POSIX_ACLS" = x
"yes"; then
13387 echo "$ac_t""Using posix ACLs" 1>&6
13388 cat >> confdefs.h
<<\EOF
13389 #define HAVE_POSIX_ACLS 1
13392 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
13393 echo "configure:13394: checking for acl_get_perm_np" >&5
13394 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
13395 echo $ac_n "(cached) $ac_c" 1>&6
13398 cat > conftest.
$ac_ext <<EOF
13399 #line 13400 "configure"
13400 #include "confdefs.h"
13401 #include <sys/types.h>
13402 #include <sys/acl.h>
13404 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
13407 if { (eval echo configure
:13408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13409 samba_cv_HAVE_ACL_GET_PERM_NP
=yes
13411 echo "configure: failed program was:" >&5
13412 cat conftest.
$ac_ext >&5
13414 samba_cv_HAVE_ACL_GET_PERM_NP
=no
13419 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
13420 if test x
"$samba_cv_HAVE_ACL_GET_PERM_NP" = x
"yes"; then
13421 cat >> confdefs.h
<<\EOF
13422 #define HAVE_ACL_GET_PERM_NP 1
13431 echo "$ac_t""no" 1>&6
13432 cat >> confdefs.h
<<\EOF
13433 #define HAVE_NO_ACLS 1
13439 cat >> confdefs.h
<<\EOF
13440 #define HAVE_NO_ACLS 1
13443 echo "$ac_t""no" 1>&6
13448 #################################################
13449 # check for the historical SAMBA installation
13451 if test "x$prefix" = xNONE
-a "$sbindir" = "\${exec_prefix}/sbin"; then
13452 # Put all binaries under the /usr/local/samba/bin directory.
13456 #################################################
13457 # check for sendfile support
13459 echo $ac_n "checking whether to check for support sendfile""... $ac_c" 1>&6
13460 echo "configure:13461: checking whether to check for support sendfile" >&5
13461 # Check whether --with-sendfile-support or --without-sendfile-support was given.
13462 if test "${with_sendfile_support+set}" = set; then
13463 withval
="$with_sendfile_support"
13467 echo "$ac_t""yes" 1>&6;
13471 echo $ac_n "checking for linux sendfile64 support""... $ac_c" 1>&6
13472 echo "configure:13473: checking for linux sendfile64 support" >&5
13473 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE64'+set}'`\" = set"; then
13474 echo $ac_n "(cached) $ac_c" 1>&6
13477 cat > conftest.
$ac_ext <<EOF
13478 #line 13479 "configure"
13479 #include "confdefs.h"
13480 #include <sys/sendfile.h>
13486 ssize_t nwritten = sendfile64(tofd, fromfd, &offset, total);
13490 if { (eval echo configure
:13491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13492 samba_cv_HAVE_SENDFILE64
=yes
13494 echo "configure: failed program was:" >&5
13495 cat conftest.
$ac_ext >&5
13497 samba_cv_HAVE_SENDFILE64
=no
13502 echo "$ac_t""$samba_cv_HAVE_SENDFILE64" 1>&6
13504 echo $ac_n "checking for linux sendfile support""... $ac_c" 1>&6
13505 echo "configure:13506: checking for linux sendfile support" >&5
13506 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE'+set}'`\" = set"; then
13507 echo $ac_n "(cached) $ac_c" 1>&6
13510 cat > conftest.
$ac_ext <<EOF
13511 #line 13512 "configure"
13512 #include "confdefs.h"
13513 #include <sys/sendfile.h>
13519 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
13523 if { (eval echo configure
:13524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13525 samba_cv_HAVE_SENDFILE
=yes
13527 echo "configure: failed program was:" >&5
13528 cat conftest.
$ac_ext >&5
13530 samba_cv_HAVE_SENDFILE
=no
13535 echo "$ac_t""$samba_cv_HAVE_SENDFILE" 1>&6
13537 # Try and cope with broken Linux sendfile....
13538 echo $ac_n "checking for broken linux sendfile support""... $ac_c" 1>&6
13539 echo "configure:13540: checking for broken linux sendfile support" >&5
13540 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_LINUX_SENDFILE'+set}'`\" = set"; then
13541 echo $ac_n "(cached) $ac_c" 1>&6
13544 cat > conftest.
$ac_ext <<EOF
13545 #line 13546 "configure"
13546 #include "confdefs.h"
13548 #if defined(_FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS == 64)
13549 #undef _FILE_OFFSET_BITS
13551 #include <sys/sendfile.h>
13557 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
13561 if { (eval echo configure
:13562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13563 samba_cv_HAVE_BROKEN_LINUX_SENDFILE
=yes
13565 echo "configure: failed program was:" >&5
13566 cat conftest.
$ac_ext >&5
13568 samba_cv_HAVE_BROKEN_LINUX_SENDFILE
=no
13573 echo "$ac_t""$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" 1>&6
13575 if test x
"$samba_cv_HAVE_SENDFILE64" = x
"yes"; then
13576 cat >> confdefs.h
<<\EOF
13577 #define HAVE_SENDFILE64 1
13580 cat >> confdefs.h
<<\EOF
13581 #define LINUX_SENDFILE_API 1
13584 cat >> confdefs.h
<<\EOF
13585 #define WITH_SENDFILE 1
13588 elif test x
"$samba_cv_HAVE_SENDFILE" = x
"yes"; then
13589 cat >> confdefs.h
<<\EOF
13590 #define HAVE_SENDFILE 1
13593 cat >> confdefs.h
<<\EOF
13594 #define LINUX_SENDFILE_API 1
13597 cat >> confdefs.h
<<\EOF
13598 #define WITH_SENDFILE 1
13601 elif test x
"$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" = x
"yes"; then
13602 cat >> confdefs.h
<<\EOF
13603 #define LINUX_BROKEN_SENDFILE_API 1
13606 cat >> confdefs.h
<<\EOF
13607 #define WITH_SENDFILE 1
13611 echo "$ac_t""no" 1>&6;
13616 echo $ac_n "checking for freebsd sendfile support""... $ac_c" 1>&6
13617 echo "configure:13618: checking for freebsd sendfile support" >&5
13618 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE'+set}'`\" = set"; then
13619 echo $ac_n "(cached) $ac_c" 1>&6
13622 cat > conftest.
$ac_ext <<EOF
13623 #line 13624 "configure"
13624 #include "confdefs.h"
13626 #include <sys/types.h>
13627 #include <sys/socket.h>
13628 #include <sys/uio.h>
13631 #define NULL (void *)0
13632 int fromfd, tofd, ret, total;
13633 off_t offset, nwritten;
13635 struct iovec *headers;
13637 struct iovec *trailers;
13640 struct iovec hdtrl;
13641 hdr.headers = &hdtrl;
13643 hdr.trailers = NULL;
13645 hdtrl.iov_base = NULL;
13647 ret = sendfile(fromfd, tofd, offset, total, &hdr, &nwritten, 0);
13651 if { (eval echo configure
:13652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13653 samba_cv_HAVE_SENDFILE
=yes
13655 echo "configure: failed program was:" >&5
13656 cat conftest.
$ac_ext >&5
13658 samba_cv_HAVE_SENDFILE
=no
13663 echo "$ac_t""$samba_cv_HAVE_SENDFILE" 1>&6
13665 if test x
"$samba_cv_HAVE_SENDFILE" = x
"yes"; then
13666 cat >> confdefs.h
<<\EOF
13667 #define HAVE_SENDFILE 1
13670 cat >> confdefs.h
<<\EOF
13671 #define FREEBSD_SENDFILE_API 1
13674 cat >> confdefs.h
<<\EOF
13675 #define WITH_SENDFILE 1
13679 echo "$ac_t""no" 1>&6;
13684 echo $ac_n "checking for hpux sendfile64 support""... $ac_c" 1>&6
13685 echo "configure:13686: checking for hpux sendfile64 support" >&5
13686 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE64'+set}'`\" = set"; then
13687 echo $ac_n "(cached) $ac_c" 1>&6
13690 cat > conftest.
$ac_ext <<EOF
13691 #line 13692 "configure"
13692 #include "confdefs.h"
13694 #include <sys/socket.h>
13695 #include <sys/uio.h>
13700 struct iovec hdtrl[2];
13704 hdtrl[0].iov_base = 0;
13705 hdtrl[0].iov_len = 0;
13707 nwritten = sendfile64(tofd, fromfd, offset, total, &hdtrl[0], 0);
13711 if { (eval echo configure
:13712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13713 samba_cv_HAVE_SENDFILE64
=yes
13715 echo "configure: failed program was:" >&5
13716 cat conftest.
$ac_ext >&5
13718 samba_cv_HAVE_SENDFILE64
=no
13723 echo "$ac_t""$samba_cv_HAVE_SENDFILE64" 1>&6
13724 if test x
"$samba_cv_HAVE_SENDFILE64" = x
"yes"; then
13725 cat >> confdefs.h
<<\EOF
13726 #define HAVE_SENDFILE64 1
13729 cat >> confdefs.h
<<\EOF
13730 #define HPUX_SENDFILE_API 1
13733 cat >> confdefs.h
<<\EOF
13734 #define WITH_SENDFILE 1
13738 echo "$ac_t""no" 1>&6;
13741 echo $ac_n "checking for hpux sendfile support""... $ac_c" 1>&6
13742 echo "configure:13743: checking for hpux sendfile support" >&5
13743 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE'+set}'`\" = set"; then
13744 echo $ac_n "(cached) $ac_c" 1>&6
13747 cat > conftest.
$ac_ext <<EOF
13748 #line 13749 "configure"
13749 #include "confdefs.h"
13751 #include <sys/socket.h>
13752 #include <sys/uio.h>
13757 struct iovec hdtrl[2];
13761 hdtrl[0].iov_base = 0;
13762 hdtrl[0].iov_len = 0;
13764 nwritten = sendfile(tofd, fromfd, offset, total, &hdtrl[0], 0);
13768 if { (eval echo configure
:13769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13770 samba_cv_HAVE_SENDFILE
=yes
13772 echo "configure: failed program was:" >&5
13773 cat conftest.
$ac_ext >&5
13775 samba_cv_HAVE_SENDFILE
=no
13780 echo "$ac_t""$samba_cv_HAVE_SENDFILE" 1>&6
13781 if test x
"$samba_cv_HAVE_SENDFILE" = x
"yes"; then
13782 cat >> confdefs.h
<<\EOF
13783 #define HAVE_SENDFILE 1
13786 cat >> confdefs.h
<<\EOF
13787 #define HPUX_SENDFILE_API 1
13790 cat >> confdefs.h
<<\EOF
13791 #define WITH_SENDFILE 1
13795 echo "$ac_t""no" 1>&6;
13800 LIBS
="$LIBS -lsendfile"
13801 echo $ac_n "checking for solaris sendfilev64 support""... $ac_c" 1>&6
13802 echo "configure:13803: checking for solaris sendfilev64 support" >&5
13803 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILEV64'+set}'`\" = set"; then
13804 echo $ac_n "(cached) $ac_c" 1>&6
13807 cat > conftest.
$ac_ext <<EOF
13808 #line 13809 "configure"
13809 #include "confdefs.h"
13811 #include <sys/sendfile.h>
13816 struct sendfilevec vec[2];
13822 vec[0].sfv_fd = SFV_FD_SELF;
13823 vec[0].sfv_flag = 0;
13824 vec[0].sfv_off = 0;
13825 vec[0].sfv_len = 0;
13828 vec[1].sfv_flag = 0;
13829 vec[1].sfv_off = 0;
13830 vec[1].sfv_len = 0;
13831 nwritten = sendfilev64(tofd, vec, sfvcnt, &xferred);
13835 if { (eval echo configure
:13836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13837 samba_cv_HAVE_SENDFILEV64
=yes
13839 echo "configure: failed program was:" >&5
13840 cat conftest.
$ac_ext >&5
13842 samba_cv_HAVE_SENDFILEV64
=no
13847 echo "$ac_t""$samba_cv_HAVE_SENDFILEV64" 1>&6
13849 if test x
"$samba_cv_HAVE_SENDFILEV64" = x
"yes"; then
13850 cat >> confdefs.h
<<\EOF
13851 #define HAVE_SENDFILEV64 1
13854 cat >> confdefs.h
<<\EOF
13855 #define SOLARIS_SENDFILE_API 1
13858 cat >> confdefs.h
<<\EOF
13859 #define WITH_SENDFILE 1
13863 echo "$ac_t""no" 1>&6;
13866 echo $ac_n "checking for solaris sendfilev support""... $ac_c" 1>&6
13867 echo "configure:13868: checking for solaris sendfilev support" >&5
13868 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILEV'+set}'`\" = set"; then
13869 echo $ac_n "(cached) $ac_c" 1>&6
13872 cat > conftest.
$ac_ext <<EOF
13873 #line 13874 "configure"
13874 #include "confdefs.h"
13876 #include <sys/sendfile.h>
13881 struct sendfilevec vec[2];
13887 vec[0].sfv_fd = SFV_FD_SELF;
13888 vec[0].sfv_flag = 0;
13889 vec[0].sfv_off = 0;
13890 vec[0].sfv_len = 0;
13893 vec[1].sfv_flag = 0;
13894 vec[1].sfv_off = 0;
13895 vec[1].sfv_len = 0;
13896 nwritten = sendfilev(tofd, vec, sfvcnt, &xferred);
13900 if { (eval echo configure
:13901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13902 samba_cv_HAVE_SENDFILEV
=yes
13904 echo "configure: failed program was:" >&5
13905 cat conftest.
$ac_ext >&5
13907 samba_cv_HAVE_SENDFILEV
=no
13912 echo "$ac_t""$samba_cv_HAVE_SENDFILEV" 1>&6
13914 if test x
"$samba_cv_HAVE_SENDFILEV" = x
"yes"; then
13915 cat >> confdefs.h
<<\EOF
13916 #define HAVE_SENDFILEV 1
13919 cat >> confdefs.h
<<\EOF
13920 #define SOLARIS_SENDFILE_API 1
13923 cat >> confdefs.h
<<\EOF
13924 #define WITH_SENDFILE 1
13928 echo "$ac_t""no" 1>&6;
13937 echo "$ac_t""no" 1>&6
13941 echo "$ac_t""no" 1>&6
13946 #################################################
13947 # Check whether winbind is supported on this platform. If so we need to
13948 # build and install client programs (WINBIND_TARGETS), sbin programs
13949 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
13951 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
13952 echo "configure:13953: checking whether to build winbind" >&5
13954 # Initially, the value of $host_os decides whether winbind is supported
13962 WINBIND_NSS_EXTRA_OBJS
="nsswitch/winbind_nss_solaris.o"
13963 WINBIND_NSS_EXTRA_LIBS
="-lsocket"
13967 WINBIND_NSS_EXTRA_OBJS
="nsswitch/winbind_nss_solaris.o"
13974 winbind_no_reason
=", unsupported on $host_os"
13978 # Check the setting of --with-winbindd
13980 # Check whether --with-winbind or --without-winbind was given.
13981 if test "${with_winbind+set}" = set; then
13982 withval
="$with_winbind"
13996 # We need unix domain sockets for winbind
13998 if test x
"$HAVE_WINBIND" = x
"yes"; then
13999 if test x
"$samba_cv_unixsocket" = x
"no"; then
14000 winbind_no_reason
=", no unix domain socket support on $host_os"
14005 # Display test results
14007 if test x
"$HAVE_WINBIND" = x
"yes"; then
14009 echo "$ac_t""yes" 1>&6
14011 echo $ac_n "checking whether to enable winbind auth challenge/response code""... $ac_c" 1>&6
14012 echo "configure:14013: checking whether to enable winbind auth challenge/response code" >&5
14013 # Check whether --with-winbind-auth-challenge or --without-winbind-auth-challenge was given.
14014 if test "${with_winbind_auth_challenge+set}" = set; then
14015 withval
="$with_winbind_auth_challenge"
14019 cat >> confdefs.h
<<\EOF
14020 #define WITH_WINBIND_AUTH_CRAP 1
14023 echo "$ac_t""yes" 1>&6
14026 echo "$ac_t""no" 1>&6
14030 echo "$ac_t""no" 1>&6
14035 # Check for FreeBSD problem with getgroups
14037 WINBIND_TARGETS
="bin/wbinfo"
14038 WINBIND_STARGETS
="bin/winbindd"
14041 WINBIND_LTARGETS
="nsswitch/libns_winbind.so"
14044 WINBIND_LTARGETS
="nsswitch/libnss_winbind.so"
14049 case "$with_pam" in
14051 WINBIND_PAM_TARGETS
="nsswitch/pam_winbind.so"
14055 # Check for Horrible winbindd ldap hack.
14057 echo $ac_n "checking whether to enable winbind ldap hack""... $ac_c" 1>&6
14058 echo "configure:14059: checking whether to enable winbind ldap hack" >&5
14059 # Check whether --with-winbind-ldap-hack or --without-winbind-ldap-hack was given.
14060 if test "${with_winbind_ldap_hack+set}" = set; then
14061 withval
="$with_winbind_ldap_hack"
14065 cat >> confdefs.h
<<\EOF
14066 #define WITH_HORRIBLE_LDAP_NATIVE_MODE_HACK 1
14069 LIBS
="$LIBS -lldap";
14070 echo "$ac_t""yes" 1>&6
14073 echo "$ac_t""no" 1>&6
14077 echo "$ac_t""no" 1>&6
14083 echo "$ac_t""no$winbind_no_reason" 1>&6
14086 WINBIND_STARGETS
=""
14087 WINBIND_LTARGETS
=""
14088 WINBIND_PAM_TARGETS
=""
14092 # Check for FreeBSD problem with getgroups
14093 # It returns EGID too many times in the list of groups
14094 # and causes a security problem
14095 echo $ac_n "checking whether or not getgroups returns EGID too many times""... $ac_c" 1>&6
14096 echo "configure:14097: checking whether or not getgroups returns EGID too many times" >&5
14097 if eval "test \"`echo '$''{'samba_cv_have_getgroups_too_many_egids'+set}'`\" = set"; then
14098 echo $ac_n "(cached) $ac_c" 1>&6
14100 if test "$cross_compiling" = yes; then
14101 samba_cv_have_getgroups_too_many_egids
=cross
14103 cat > conftest.
$ac_ext <<EOF
14104 #line 14105 "configure"
14105 #include "confdefs.h"
14107 #include <sys/types.h>
14110 int main(int argc, char *argv[])
14115 n = getgroups(n, &groups);
14116 /* Could actually pass back the number of EGIDs there ... */
14117 exit((n > 1 && groups[0] == getegid() && groups[1] == getegid()) ? 1 : 0);
14120 if { (eval echo configure
:14121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
14122 samba_cv_have_getgroups_too_many_egids
=no
14124 echo "configure: failed program was:" >&5
14125 cat conftest.
$ac_ext >&5
14127 samba_cv_have_getgroups_too_many_egids
=yes
14134 echo "$ac_t""$samba_cv_have_getgroups_too_many_egids" 1>&6
14135 if test x
"$samba_cv_have_getgroups_too_many_egids" = x
"yes"; then
14136 cat >> confdefs.h
<<\EOF
14137 #define HAVE_GETGROUPS_TOO_MANY_EGIDS 1
14142 # Substitution time!
14151 # Solaris has some extra fields in struct passwd that need to be
14152 # initialised otherwise nscd crashes. Unfortunately autoconf < 2.50
14153 # doesn't have the AC_CHECK_MEMBER macro which would be handy for checking
14156 #AC_CHECK_MEMBER(struct passwd.pw_comment,
14157 # AC_DEFINE(HAVE_PASSWD_PW_COMMENT, 1, [Defined if struct passwd has pw_comment field]),
14158 # [#include <pwd.h>])
14160 echo $ac_n "checking whether struct passwd has pw_comment""... $ac_c" 1>&6
14161 echo "configure:14162: checking whether struct passwd has pw_comment" >&5
14162 if eval "test \"`echo '$''{'samba_cv_passwd_pw_comment'+set}'`\" = set"; then
14163 echo $ac_n "(cached) $ac_c" 1>&6
14166 cat > conftest.
$ac_ext <<EOF
14167 #line 14168 "configure"
14168 #include "confdefs.h"
14171 struct passwd p; p.pw_comment;
14174 if { (eval echo configure
:14175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14176 samba_cv_passwd_pw_comment
=yes
14178 echo "configure: failed program was:" >&5
14179 cat conftest.
$ac_ext >&5
14181 samba_cv_passwd_pw_comment
=no
14186 echo "$ac_t""$samba_cv_passwd_pw_comment" 1>&6
14187 if test x
"$samba_cv_passwd_pw_comment" = x
"yes"; then
14188 cat >> confdefs.h
<<\EOF
14189 #define HAVE_PASSWD_PW_COMMENT 1
14194 #AC_CHECK_MEMBER(struct passwd.pw_age,
14195 # AC_DEFINE(HAVE_PASSWD_PW_AGE, 1, [Defined if struct passwd has pw_age field]),
14196 # [#include <pwd.h>])
14198 echo $ac_n "checking whether struct passwd has pw_age""... $ac_c" 1>&6
14199 echo "configure:14200: checking whether struct passwd has pw_age" >&5
14200 if eval "test \"`echo '$''{'samba_cv_passwd_pw_age'+set}'`\" = set"; then
14201 echo $ac_n "(cached) $ac_c" 1>&6
14204 cat > conftest.
$ac_ext <<EOF
14205 #line 14206 "configure"
14206 #include "confdefs.h"
14209 struct passwd p; p.pw_age;
14212 if { (eval echo configure
:14213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14214 samba_cv_passwd_pw_age
=yes
14216 echo "configure: failed program was:" >&5
14217 cat conftest.
$ac_ext >&5
14219 samba_cv_passwd_pw_age
=no
14224 echo "$ac_t""$samba_cv_passwd_pw_age" 1>&6
14225 if test x
"$samba_cv_passwd_pw_age" = x
"yes"; then
14226 cat >> confdefs.h
<<\EOF
14227 #define HAVE_PASSWD_PW_AGE 1
14232 #################################################
14233 # Check to see if we should use the included popt
14235 # Check whether --with-included-popt or --without-included-popt was given.
14236 if test "${with_included_popt+set}" = set; then
14237 withval
="$with_included_popt"
14249 if test x
"$INCLUDED_POPT" != x
"yes"; then
14250 echo $ac_n "checking for poptGetContext in -lpopt""... $ac_c" 1>&6
14251 echo "configure:14252: checking for poptGetContext in -lpopt" >&5
14252 ac_lib_var
=`echo popt'_'poptGetContext | sed 'y%./+-%__p_%'`
14253 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14254 echo $ac_n "(cached) $ac_c" 1>&6
14256 ac_save_LIBS
="$LIBS"
14257 LIBS
="-lpopt $LIBS"
14258 cat > conftest.
$ac_ext <<EOF
14259 #line 14260 "configure"
14260 #include "confdefs.h"
14261 /* Override any gcc2 internal prototype to avoid an error. */
14262 /* We use char because int might match the return type of a gcc2
14263 builtin and then its argument prototype would still apply. */
14264 char poptGetContext();
14270 if { (eval echo configure
:14271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
14272 eval "ac_cv_lib_$ac_lib_var=yes"
14274 echo "configure: failed program was:" >&5
14275 cat conftest.
$ac_ext >&5
14277 eval "ac_cv_lib_$ac_lib_var=no"
14280 LIBS
="$ac_save_LIBS"
14283 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14284 echo "$ac_t""yes" 1>&6
14287 echo "$ac_t""no" 1>&6
14293 echo $ac_n "checking whether to use included popt""... $ac_c" 1>&6
14294 echo "configure:14295: checking whether to use included popt" >&5
14295 if test x
"$INCLUDED_POPT" = x
"yes"; then
14296 echo "$ac_t""$srcdir/popt" 1>&6
14297 BUILD_POPT
='$(POPT_OBJS)'
14298 FLAGS1
="-I$srcdir/popt"
14300 echo "$ac_t""no" 1>&6
14301 LIBS
="$LIBS -lpopt"
14306 #################################################
14307 # final configure stuff
14308 echo $ac_n "checking configure summary""... $ac_c" 1>&6
14309 echo "configure:14310: checking configure summary" >&5
14310 if test "$cross_compiling" = yes; then
14311 echo "configure: warning: cannot run when cross-compiling" 1>&2
14313 cat > conftest.
$ac_ext <<EOF
14314 #line 14315 "configure"
14315 #include "confdefs.h"
14316 #include "${srcdir-.}/tests/summary.c"
14318 if { (eval echo configure
:14319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
14320 echo "$ac_t""yes" 1>&6
14322 echo "configure: failed program was:" >&5
14323 cat conftest.
$ac_ext >&5
14325 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }; exit 1;
14335 cat > confcache
<<\EOF
14336 # This file is a shell script that caches the results of configure
14337 # tests run on this system so they can be shared between configure
14338 # scripts and configure runs. It is not useful on other systems.
14339 # If it contains results you don't want to keep, you may remove or edit it.
14341 # By default, configure uses ./config.cache as the cache file,
14342 # creating it if it does not exist already. You can give configure
14343 # the --cache-file=FILE option to use a different cache file; that is
14344 # what configure does when it calls configure scripts in
14345 # subdirectories, so they share the cache.
14346 # Giving --cache-file=/dev/null disables caching, for debugging configure.
14347 # config.status only pays attention to the cache file if you give it the
14348 # --recheck option to rerun configure.
14351 # The following way of writing the cache mishandles newlines in values,
14352 # but we know of no workaround that is simple, portable, and efficient.
14353 # So, don't put newlines in cache variables' values.
14354 # Ultrix sh set writes to stderr and can't be redirected directly,
14355 # and sets the high bit in the cache file unless we assign to the vars.
14357 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14359 # `set' does not quote correctly, so add quotes (double-quote substitution
14360 # turns \\\\ into \\, and sed turns \\ into \).
14362 -e "s/'/'\\\\''/g" \
14363 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
14366 # `set' quotes correctly as required by POSIX, so do not add quotes.
14367 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
14370 if cmp -s $cache_file confcache
; then
14373 if test -w $cache_file; then
14374 echo "updating cache $cache_file"
14375 cat confcache
> $cache_file
14377 echo "not updating unwritable cache $cache_file"
14382 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
14384 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
14385 # Let make expand exec_prefix.
14386 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
14388 # Any assignment to VPATH causes Sun make to only execute
14389 # the first set of double-colon rules, so remove it if not needed.
14390 # If there is a colon in the path, we need to keep it.
14391 if test "x$srcdir" = x.
; then
14392 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
14395 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
14397 DEFS
=-DHAVE_CONFIG_H
14399 # Without the "./", some shells look in PATH for config.status.
14400 : ${CONFIG_STATUS=./config.status}
14402 echo creating
$CONFIG_STATUS
14403 rm -f $CONFIG_STATUS
14404 cat > $CONFIG_STATUS <<EOF
14406 # Generated automatically by configure.
14407 # Run this file to recreate the current configuration.
14408 # This directory was configured as follows,
14409 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14411 # $0 $ac_configure_args
14413 # Compiler output produced by configure, useful for debugging
14414 # configure, is in ./config.log if it exists.
14416 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
14419 case "\$ac_option" in
14420 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14421 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
14422 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
14423 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
14424 echo "$CONFIG_STATUS generated by autoconf version 2.13"
14426 -help | --help | --hel | --he | --h)
14427 echo "\$ac_cs_usage"; exit 0 ;;
14428 *) echo "\$ac_cs_usage"; exit 1 ;;
14432 ac_given_srcdir=$srcdir
14433 ac_given_INSTALL="$INSTALL"
14435 trap 'rm -fr `echo "include/stamp-h Makefile script/findsmb include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
14437 cat >> $CONFIG_STATUS <<EOF
14439 # Protect against being on the right side of a sed subst in config.status.
14440 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
14441 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
14445 s%@CFLAGS@%$CFLAGS%g
14446 s%@CPPFLAGS@%$CPPFLAGS%g
14447 s%@CXXFLAGS@%$CXXFLAGS%g
14448 s%@FFLAGS@%$FFLAGS%g
14450 s%@LDFLAGS@%$LDFLAGS%g
14452 s%@exec_prefix@%$exec_prefix%g
14453 s%@prefix@%$prefix%g
14454 s%@program_transform_name@%$program_transform_name%g
14455 s%@bindir@%$bindir%g
14456 s%@sbindir@%$sbindir%g
14457 s%@libexecdir@%$libexecdir%g
14458 s%@datadir@%$datadir%g
14459 s%@sysconfdir@%$sysconfdir%g
14460 s%@sharedstatedir@%$sharedstatedir%g
14461 s%@localstatedir@%$localstatedir%g
14462 s%@libdir@%$libdir%g
14463 s%@includedir@%$includedir%g
14464 s%@oldincludedir@%$oldincludedir%g
14465 s%@infodir@%$infodir%g
14466 s%@mandir@%$mandir%g
14467 s%@codepagedir@%$codepagedir%g
14468 s%@configdir@%$configdir%g
14469 s%@lockdir@%$lockdir%g
14470 s%@piddir@%$piddir%g
14471 s%@logfilebase@%$logfilebase%g
14472 s%@privatedir@%$privatedir%g
14473 s%@swatdir@%$swatdir%g
14474 s%@RUNPROG@%$RUNPROG%g
14475 s%@MPROGS@%$MPROGS%g
14476 s%@LDSHFLAGS@%$LDSHFLAGS%g
14477 s%@SONAMEFLAG@%$SONAMEFLAG%g
14479 s%@HOST_OS@%$HOST_OS%g
14480 s%@PAM_MOD@%$PAM_MOD%g
14481 s%@PDBEDIT@%$PDBEDIT%g
14483 s%@WRAP32@%$WRAP32%g
14484 s%@WRAPPROG@%$WRAPPROG%g
14485 s%@PICFLAG@%$PICFLAG%g
14486 s%@PICSUFFIX@%$PICSUFFIX%g
14487 s%@SHLIBEXT@%$SHLIBEXT%g
14488 s%@BLDSHARED@%$BLDSHARED%g
14489 s%@INSTALLCLIENTCMD_SH@%$INSTALLCLIENTCMD_SH%g
14490 s%@INSTALLCLIENTCMD_A@%$INSTALLCLIENTCMD_A%g
14491 s%@LIBSMBCLIENT_SHARED@%$LIBSMBCLIENT_SHARED%g
14492 s%@LIBSMBCLIENT@%$LIBSMBCLIENT%g
14494 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
14495 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
14496 s%@INSTALL_DATA@%$INSTALL_DATA%g
14498 s%@passwd_program@%$passwd_program%g
14499 s%@BROKEN_CC@%$BROKEN_CC%g
14501 s%@host_alias@%$host_alias%g
14502 s%@host_cpu@%$host_cpu%g
14503 s%@host_vendor@%$host_vendor%g
14504 s%@host_os@%$host_os%g
14505 s%@target@%$target%g
14506 s%@target_alias@%$target_alias%g
14507 s%@target_cpu@%$target_cpu%g
14508 s%@target_vendor@%$target_vendor%g
14509 s%@target_os@%$target_os%g
14511 s%@build_alias@%$build_alias%g
14512 s%@build_cpu@%$build_cpu%g
14513 s%@build_vendor@%$build_vendor%g
14514 s%@build_os@%$build_os%g
14516 s%@CUPS_CONFIG@%$CUPS_CONFIG%g
14517 s%@LIBOBJS@%$LIBOBJS%g
14518 s%@TERMLIBS@%$TERMLIBS%g
14519 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
14521 s%@DYNEXP@%$DYNEXP%g
14522 s%@LDAPLIBS@%$LDAPLIBS%g
14523 s%@QUOTAOBJS@%$QUOTAOBJS%g
14524 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
14525 s%@WINBIND_STARGETS@%$WINBIND_STARGETS%g
14526 s%@WINBIND_LTARGETS@%$WINBIND_LTARGETS%g
14527 s%@WINBIND_PAM_TARGETS@%$WINBIND_PAM_TARGETS%g
14528 s%@WINBIND_NSS_EXTRA_OBJS@%$WINBIND_NSS_EXTRA_OBJS%g
14529 s%@WINBIND_NSS_EXTRA_LIBS@%$WINBIND_NSS_EXTRA_LIBS%g
14530 s%@BUILD_POPT@%$BUILD_POPT%g
14531 s%@FLAGS1@%$FLAGS1%g
14532 s%@builddir@%$builddir%g
14537 cat >> $CONFIG_STATUS <<\EOF
14539 # Split the substitutions into bite-sized pieces for seds with
14540 # small command number limits, like on Digital OSF/1 and HP-UX.
14541 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
14542 ac_file
=1 # Number of current file.
14543 ac_beg
=1 # First line for current file.
14544 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
14547 while $ac_more_lines; do
14548 if test $ac_beg -gt 1; then
14549 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
14551 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
14553 if test ! -s conftest.s
$ac_file; then
14554 ac_more_lines
=false
14555 rm -f conftest.s
$ac_file
14557 if test -z "$ac_sed_cmds"; then
14558 ac_sed_cmds
="sed -f conftest.s$ac_file"
14560 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
14562 ac_file
=`expr $ac_file + 1`
14564 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
14567 if test -z "$ac_sed_cmds"; then
14572 cat >> $CONFIG_STATUS <<EOF
14574 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile script/findsmb"}
14576 cat >> $CONFIG_STATUS <<\EOF
14577 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
14578 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14580 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
14581 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
14582 *) ac_file_in
="${ac_file}.in" ;;
14585 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
14587 # Remove last slash and all that follows it. Not all systems have dirname.
14588 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14589 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
14590 # The file is in a subdirectory.
14591 test ! -d "$ac_dir" && mkdir
"$ac_dir"
14592 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
14593 # A "../" for each directory in $ac_dir_suffix.
14594 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
14596 ac_dir_suffix
= ac_dots
=
14599 case "$ac_given_srcdir" in
14601 if test -z "$ac_dots"; then top_srcdir
=.
14602 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
14603 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
14604 *) # Relative path.
14605 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
14606 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
14609 case "$ac_given_INSTALL" in
14610 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
14611 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
14614 echo creating
"$ac_file"
14616 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
14618 *Makefile
*) ac_comsub
="1i\\
14619 # $configure_input" ;;
14623 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14625 s%@configure_input@%$configure_input%g
14626 s%@srcdir@%$srcdir%g
14627 s%@top_srcdir@%$top_srcdir%g
14628 s%@INSTALL@%$INSTALL%g
14629 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
14633 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14634 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14636 # ac_d sets the value in "#define NAME VALUE" lines.
14637 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14638 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
14641 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
14642 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14643 ac_uB
='\([ ]\)%\1#\2define\3'
14646 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14647 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14648 ac_eB
='$%\1#\2define\3'
14652 if test "${CONFIG_HEADERS+set}" != set; then
14654 cat >> $CONFIG_STATUS <<EOF
14655 CONFIG_HEADERS="include/config.h"
14657 cat >> $CONFIG_STATUS <<\EOF
14659 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
14660 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14662 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
14663 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
14664 *) ac_file_in
="${ac_file}.in" ;;
14667 echo creating
$ac_file
14669 rm -f conftest.frag conftest.
in conftest.out
14670 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14671 cat $ac_file_inputs > conftest.
in
14675 # Transform confdefs.h into a sed script conftest.vals that substitutes
14676 # the proper values into config.h.in to produce config.h. And first:
14677 # Protect against being on the right side of a sed subst in config.status.
14678 # Protect against being in an unquoted here document in config.status.
14679 rm -f conftest.vals
14680 cat > conftest.hdr
<<\EOF
14683 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
14687 sed -n -f conftest.hdr confdefs.h > conftest.vals
14690 # This sed command replaces #undef with comments. This is necessary, for
14691 # example, in the case of _POSIX_SOURCE, which is predefined and required
14692 # on some systems where configure will not decide to define it.
14693 cat >> conftest.vals <<\EOF
14694 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
14697 # Break up conftest.vals because some shells have a limit on
14698 # the size of here documents, and old seds have small limits too.
14700 rm -f conftest.tail
14703 ac_lines=`grep -c . conftest.vals
`
14704 # grep -c gives empty output for an empty file on some AIX systems.
14705 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
14706 # Write a limited-size here document to conftest.frag.
14707 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
14708 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
14710 sed -f conftest.frag conftest.in > conftest.out
14712 mv conftest.out conftest.in
14713 ' >> $CONFIG_STATUS
14714 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
14715 rm -f conftest.vals
14716 mv conftest.tail conftest.vals
14718 rm -f conftest.vals
14720 cat >> $CONFIG_STATUS <<\EOF
14721 rm -f conftest.frag conftest.h
14722 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
14723 cat conftest.in >> conftest.h
14725 if cmp -s $ac_file conftest.h 2>/dev/null; then
14726 echo "$ac_file is unchanged"
14729 # Remove last slash and all that follows it. Not all systems have dirname.
14730 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
14731 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14732 # The file is in a subdirectory.
14733 test ! -d "$ac_dir" && mkdir "$ac_dir"
14736 mv conftest.h $ac_file
14741 cat >> $CONFIG_STATUS <<EOF
14744 cat >> $CONFIG_STATUS <<\EOF
14748 chmod +x $CONFIG_STATUS
14749 rm -fr confdefs* $ac_clean_files
14750 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1